2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
595 ac_unique_file="build/apr_common.m4"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars='LTLIBOBJS
655 apr_procattr_user_set_requires_password
656 apr_has_xthread_files
760 tcp_nodelay_inherited
889 program_transform_name
902 enable_option_checking
904 enable_experimental_libtool
915 enable_maintainer_mode
920 enable_nonportable_atomics
925 enable_allocator_uses_mmap
932 ac_precious_vars='build_alias
943 # Initialize some variables set by options.
945 ac_init_version=false
946 ac_unrecognized_opts=
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
957 program_transform_name=s,x,x,
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE}'
982 infodir='${datarootdir}/info'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
995 # If the previous option needs an argument, assign it.
996 if test -n "$ac_prev"; then
997 eval $ac_prev=\$ac_option
1003 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 # Accept the important Cygnus configure options, so we can diagnose typos.
1010 case $ac_dashdash$ac_option in
1014 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1016 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1017 bindir=$ac_optarg ;;
1019 -build | --build | --buil | --bui | --bu)
1020 ac_prev=build_alias ;;
1021 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1022 build_alias=$ac_optarg ;;
1024 -cache-file | --cache-file | --cache-fil | --cache-fi \
1025 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1026 ac_prev=cache_file ;;
1027 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1028 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1029 cache_file=$ac_optarg ;;
1031 --config-cache | -C)
1032 cache_file=config.cache ;;
1034 -datadir | --datadir | --datadi | --datad)
1036 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1037 datadir=$ac_optarg ;;
1039 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1040 | --dataroo | --dataro | --datar)
1041 ac_prev=datarootdir ;;
1042 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1043 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1044 datarootdir=$ac_optarg ;;
1046 -disable-* | --disable-*)
1047 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050 as_fn_error $? "invalid feature name: $ac_useropt"
1051 ac_useropt_orig=$ac_useropt
1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1055 "enable_$ac_useropt"
1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1058 ac_unrecognized_sep=', ';;
1060 eval enable_$ac_useropt=no ;;
1062 -docdir | --docdir | --docdi | --doc | --do)
1064 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065 docdir=$ac_optarg ;;
1067 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1069 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070 dvidir=$ac_optarg ;;
1072 -enable-* | --enable-*)
1073 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error $? "invalid feature name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1081 "enable_$ac_useropt"
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1086 eval enable_$ac_useropt=\$ac_optarg ;;
1088 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090 | --exec | --exe | --ex)
1091 ac_prev=exec_prefix ;;
1092 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094 | --exec=* | --exe=* | --ex=*)
1095 exec_prefix=$ac_optarg ;;
1097 -gas | --gas | --ga | --g)
1098 # Obsolete; use --with-gas.
1101 -help | --help | --hel | --he | -h)
1102 ac_init_help=long ;;
1103 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104 ac_init_help=recursive ;;
1105 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106 ac_init_help=short ;;
1108 -host | --host | --hos | --ho)
1109 ac_prev=host_alias ;;
1110 -host=* | --host=* | --hos=* | --ho=*)
1111 host_alias=$ac_optarg ;;
1113 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 htmldir=$ac_optarg ;;
1119 -includedir | --includedir | --includedi | --included | --include \
1120 | --includ | --inclu | --incl | --inc)
1121 ac_prev=includedir ;;
1122 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123 | --includ=* | --inclu=* | --incl=* | --inc=*)
1124 includedir=$ac_optarg ;;
1126 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129 infodir=$ac_optarg ;;
1131 -libdir | --libdir | --libdi | --libd)
1133 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134 libdir=$ac_optarg ;;
1136 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137 | --libexe | --libex | --libe)
1138 ac_prev=libexecdir ;;
1139 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140 | --libexe=* | --libex=* | --libe=*)
1141 libexecdir=$ac_optarg ;;
1143 -localedir | --localedir | --localedi | --localed | --locale)
1144 ac_prev=localedir ;;
1145 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146 localedir=$ac_optarg ;;
1148 -localstatedir | --localstatedir | --localstatedi | --localstated \
1149 | --localstate | --localstat | --localsta | --localst | --locals)
1150 ac_prev=localstatedir ;;
1151 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153 localstatedir=$ac_optarg ;;
1155 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158 mandir=$ac_optarg ;;
1160 -nfp | --nfp | --nf)
1161 # Obsolete; use --without-fp.
1164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165 | --no-cr | --no-c | -n)
1168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174 | --oldin | --oldi | --old | --ol | --o)
1175 ac_prev=oldincludedir ;;
1176 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179 oldincludedir=$ac_optarg ;;
1181 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184 prefix=$ac_optarg ;;
1186 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187 | --program-pre | --program-pr | --program-p)
1188 ac_prev=program_prefix ;;
1189 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191 program_prefix=$ac_optarg ;;
1193 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194 | --program-suf | --program-su | --program-s)
1195 ac_prev=program_suffix ;;
1196 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198 program_suffix=$ac_optarg ;;
1200 -program-transform-name | --program-transform-name \
1201 | --program-transform-nam | --program-transform-na \
1202 | --program-transform-n | --program-transform- \
1203 | --program-transform | --program-transfor \
1204 | --program-transfo | --program-transf \
1205 | --program-trans | --program-tran \
1206 | --progr-tra | --program-tr | --program-t)
1207 ac_prev=program_transform_name ;;
1208 -program-transform-name=* | --program-transform-name=* \
1209 | --program-transform-nam=* | --program-transform-na=* \
1210 | --program-transform-n=* | --program-transform-=* \
1211 | --program-transform=* | --program-transfor=* \
1212 | --program-transfo=* | --program-transf=* \
1213 | --program-trans=* | --program-tran=* \
1214 | --progr-tra=* | --program-tr=* | --program-t=*)
1215 program_transform_name=$ac_optarg ;;
1217 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220 pdfdir=$ac_optarg ;;
1222 -psdir | --psdir | --psdi | --psd | --ps)
1224 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228 | -silent | --silent | --silen | --sile | --sil)
1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235 sbindir=$ac_optarg ;;
1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239 | --sharedst | --shareds | --shared | --share | --shar \
1241 ac_prev=sharedstatedir ;;
1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246 sharedstatedir=$ac_optarg ;;
1248 -site | --site | --sit)
1250 -site=* | --site=* | --sit=*)
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259 | --syscon | --sysco | --sysc | --sys | --sy)
1260 ac_prev=sysconfdir ;;
1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263 sysconfdir=$ac_optarg ;;
1265 -target | --target | --targe | --targ | --tar | --ta | --t)
1266 ac_prev=target_alias ;;
1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268 target_alias=$ac_optarg ;;
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1277 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280 as_fn_error $? "invalid package name: $ac_useropt"
1281 ac_useropt_orig=$ac_useropt
1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288 ac_unrecognized_sep=', ';;
1290 eval with_$ac_useropt=\$ac_optarg ;;
1292 -without-* | --without-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 as_fn_error $? "invalid package name: $ac_useropt"
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1306 eval with_$ac_useropt=no ;;
1309 # Obsolete; use --with-x.
1312 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313 | --x-incl | --x-inc | --x-in | --x-i)
1314 ac_prev=x_includes ;;
1315 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317 x_includes=$ac_optarg ;;
1319 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321 ac_prev=x_libraries ;;
1322 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324 x_libraries=$ac_optarg ;;
1326 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1327 Try \`$0 --help' for more information"
1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 case $ac_envvar in #(
1334 '' | [0-9]* | *[!_$as_cr_alnum]* )
1335 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1337 eval $ac_envvar=\$ac_optarg
1338 export $ac_envvar ;;
1341 # FIXME: should be removed in autoconf 3.0.
1342 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1351 if test -n "$ac_prev"; then
1352 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353 as_fn_error $? "missing argument to $ac_option"
1356 if test -n "$ac_unrecognized_opts"; then
1357 case $enable_option_checking in
1359 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1360 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364 # Check all directory arguments for consistency.
1365 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366 datadir sysconfdir sharedstatedir localstatedir includedir \
1367 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368 libdir localedir mandir
1370 eval ac_val=\$$ac_var
1371 # Remove trailing slashes.
1374 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375 eval $ac_var=\$ac_val;;
1377 # Be sure to have absolute directory names.
1379 [\\/$]* | ?:[\\/]* ) continue;;
1380 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1382 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1385 # There might be people who depend on the old broken behavior: `$host'
1386 # used to hold the argument of --host etc.
1387 # FIXME: To remove some day.
1390 target=$target_alias
1392 # FIXME: To remove some day.
1393 if test "x$host_alias" != x; then
1394 if test "x$build_alias" = x; then
1395 cross_compiling=maybe
1396 elif test "x$build_alias" != "x$host_alias"; then
1402 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404 test "$silent" = yes && exec 6>/dev/null
1407 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di=`ls -di .` &&
1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410 as_fn_error $? "working directory cannot be determined"
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412 as_fn_error $? "pwd does not report name of working directory"
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417 ac_srcdir_defaulted=yes
1418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1447 ac_srcdir_defaulted=no
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1453 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1465 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 for ac_var in $ac_precious_vars; do
1468 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_env_${ac_var}_value=\$${ac_var}
1470 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475 # Report the --help message.
1477 if test "$ac_init_help" = "long"; then
1478 # Omit some internal or obsolete options to make the list less imposing.
1479 # This message is too long to be a string in the A/UX 3.1 sh.
1481 \`configure' configures this package to adapt to many kinds of systems.
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE. See below for descriptions of some of the useful variables.
1488 Defaults for the options are specified in brackets.
1491 -h, --help display this help and exit
1492 --help=short display options specific to this package
1493 --help=recursive display the short help of all the included packages
1494 -V, --version display version information and exit
1495 -q, --quiet, --silent do not print \`checking ...' messages
1496 --cache-file=FILE cache test results in FILE [disabled]
1497 -C, --config-cache alias for \`--cache-file=config.cache'
1498 -n, --no-create do not create output files
1499 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1501 Installation directories:
1502 --prefix=PREFIX install architecture-independent files in PREFIX
1503 [$ac_default_prefix]
1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1512 For better control, use the options below.
1514 Fine tuning of the installation directories:
1515 --bindir=DIR user executables [EPREFIX/bin]
1516 --sbindir=DIR system admin executables [EPREFIX/sbin]
1517 --libexecdir=DIR program executables [EPREFIX/libexec]
1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1521 --libdir=DIR object code libraries [EPREFIX/lib]
1522 --includedir=DIR C header files [PREFIX/include]
1523 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1526 --infodir=DIR info documentation [DATAROOTDIR/info]
1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1528 --mandir=DIR man documentation [DATAROOTDIR/man]
1529 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1530 --htmldir=DIR html documentation [DOCDIR]
1531 --dvidir=DIR dvi documentation [DOCDIR]
1532 --pdfdir=DIR pdf documentation [DOCDIR]
1533 --psdir=DIR ps documentation [DOCDIR]
1539 --build=BUILD configure for building on BUILD [guessed]
1540 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1541 --target=TARGET configure for building compilers for TARGET [HOST]
1545 if test -n "$ac_init_help"; then
1550 --disable-option-checking ignore unrecognized --enable/--with options
1551 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1552 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1553 --enable-layout=LAYOUT
1554 --enable-experimental-libtool Use experimental custom libtool
1555 --enable-shared[=PKGS] build shared libraries [default=yes]
1556 --enable-static[=PKGS] build static libraries [default=yes]
1557 --enable-fast-install[=PKGS]
1558 optimize for fast installation [default=yes]
1559 --disable-libtool-lock avoid locking (might break parallel builds)
1560 --enable-debug Turn on debugging and compile time warnings
1561 --enable-maintainer-mode Turn on debugging and compile time warnings
1562 --enable-profile Turn on profiling for the build (GCC)
1563 --enable-pool-debug[=yes|no|verbose|verbose-alloc|lifetime|owner|all] Turn on pools debugging
1564 --enable-malloc-debug Switch on malloc_debug for BeOS
1565 --disable-lfs Disable large file support on 32-bit platforms
1566 --enable-nonportable-atomics Use optimized atomic code which may produce nonportable binaries
1567 --enable-threads Enable threading support in APR.
1568 --enable-posix-shm Use POSIX shared memory (shm_open) if available
1569 --enable-allocator-uses-mmap Use mmap in apr_allocator instead of malloc
1570 --disable-dso Disable DSO support
1571 --enable-other-child Enable reliable child processes
1572 --disable-ipv6 Disable IPv6 support in APR.
1575 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1576 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1577 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1579 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1580 --with-sysroot=DIR Search for dependent libraries within DIR
1581 (or the compiler's sysroot if not specified).
1582 --with-installbuilddir=DIR location to store APR build files (defaults to '${datadir}/build')
1583 --without-libtool avoid using libtool to link the library
1584 --with-efence[=DIR] path to Electric Fence installation
1585 --with-sendfile Override decision to use sendfile
1586 --with-egd[=DIR] use EGD-compatible socket
1587 --with-devrandom[=DEV] use /dev/random or compatible [searches by default]
1589 Some influential environment variables:
1590 CC C compiler command
1591 CFLAGS C compiler flags
1592 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1593 nonstandard directory <lib dir>
1594 LIBS libraries to pass to the linker, e.g. -l<library>
1595 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1596 you have headers in a nonstandard directory <include dir>
1599 Use these variables to override the choices made by `configure' or to help
1600 it to find libraries and programs with nonstandard names/locations.
1602 Report bugs to the package provider.
1607 if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
1609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610 test -d "$ac_dir" ||
1611 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1616 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1619 # A ".." for each directory in $ac_dir_suffix.
1620 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1621 case $ac_top_builddir_sub in
1622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626 ac_abs_top_builddir=$ac_pwd
1627 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628 # for backward compatibility:
1629 ac_top_builddir=$ac_top_build_prefix
1632 .) # We are building in place.
1634 ac_top_srcdir=$ac_top_builddir_sub
1635 ac_abs_top_srcdir=$ac_pwd ;;
1636 [\\/]* | ?:[\\/]* ) # Absolute name.
1637 ac_srcdir=$srcdir$ac_dir_suffix;
1638 ac_top_srcdir=$srcdir
1639 ac_abs_top_srcdir=$srcdir ;;
1641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642 ac_top_srcdir=$ac_top_build_prefix$srcdir
1643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1645 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1647 cd "$ac_dir" || { ac_status=$?; continue; }
1648 # Check for guested configure.
1649 if test -f "$ac_srcdir/configure.gnu"; then
1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652 elif test -f "$ac_srcdir/configure"; then
1654 $SHELL "$ac_srcdir/configure" --help=recursive
1656 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1658 cd "$ac_pwd" || { ac_status=$?; break; }
1662 test -n "$ac_init_help" && exit $ac_status
1663 if $ac_init_version; then
1666 generated by GNU Autoconf 2.69
1668 Copyright (C) 2012 Free Software Foundation, Inc.
1669 This configure script is free software; the Free Software Foundation
1670 gives unlimited permission to copy, distribute and modify it.
1675 ## ------------------------ ##
1676 ## Autoconf initialization. ##
1677 ## ------------------------ ##
1679 # ac_fn_c_try_compile LINENO
1680 # --------------------------
1681 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_compile ()
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext
1686 if { { ac_try="$ac_compile"
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_compile") 2>conftest.err
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest.$ac_objext; then :
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1715 } # ac_fn_c_try_compile
1717 # ac_fn_c_try_cpp LINENO
1718 # ----------------------
1719 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_cpp conftest.$ac_ext"
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } > conftest.i && {
1739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1754 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1755 # -------------------------------------------------------
1756 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1757 # the include files in INCLUDES and setting the cache variable VAR
1759 ac_fn_c_check_header_mongrel ()
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if eval \${$3+:} false; then :
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766 $as_echo_n "(cached) " >&6
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 $as_echo "$ac_res" >&6; }
1772 # Is the header compilable?
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1774 $as_echo_n "checking $2 usability... " >&6; }
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1780 if ac_fn_c_try_compile "$LINENO"; then :
1781 ac_header_compiler=yes
1783 ac_header_compiler=no
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1787 $as_echo "$ac_header_compiler" >&6; }
1789 # Is the header present?
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1791 $as_echo_n "checking $2 presence... " >&6; }
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1796 if ac_fn_c_try_cpp "$LINENO"; then :
1797 ac_header_preproc=yes
1799 ac_header_preproc=no
1801 rm -f conftest.err conftest.i conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1803 $as_echo "$ac_header_preproc" >&6; }
1805 # So? What about this header?
1806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1809 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1811 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1815 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1817 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1819 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1821 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1823 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if eval \${$3+:} false; then :
1829 $as_echo_n "(cached) " >&6
1831 eval "$3=\$ac_header_compiler"
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 } # ac_fn_c_check_header_mongrel
1841 # ac_fn_c_try_run LINENO
1842 # ----------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1844 # that executables *can* be run.
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if { { ac_try="$ac_link"
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>&5
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1859 { { case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_try") 2>&5
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; }; }; then :
1871 $as_echo "$as_me: program exited with status $ac_status" >&5
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1875 ac_retval=$ac_status
1877 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 as_fn_set_status $ac_retval
1883 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1884 # -------------------------------------------------------
1885 # Tests whether HEADER exists and can be compiled using the include files in
1886 # INCLUDES, setting the cache variable VAR accordingly.
1887 ac_fn_c_check_header_compile ()
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if eval \${$3+:} false; then :
1893 $as_echo_n "(cached) " >&6
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1900 if ac_fn_c_try_compile "$LINENO"; then :
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 } # ac_fn_c_check_header_compile
1914 # ac_fn_c_try_link LINENO
1915 # -----------------------
1916 # Try to link conftest.$ac_ext, and return whether this succeeded.
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 rm -f conftest.$ac_objext conftest$ac_exeext
1921 if { { ac_try="$ac_link"
1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924 *) ac_try_echo=$ac_try;;
1926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927 $as_echo "$ac_try_echo"; } >&5
1928 (eval "$ac_link") 2>conftest.err
1930 if test -s conftest.err; then
1931 grep -v '^ *+' conftest.err >conftest.er1
1932 cat conftest.er1 >&5
1933 mv -f conftest.er1 conftest.err
1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936 test $ac_status = 0; } && {
1937 test -z "$ac_c_werror_flag" ||
1938 test ! -s conftest.err
1939 } && test -s conftest$ac_exeext && {
1940 test "$cross_compiling" = yes ||
1941 test -x conftest$ac_exeext
1945 $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1950 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1951 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1952 # interfere with the next link command; also delete a directory that is
1953 # left behind by Apple's compiler. We do this before executing the actions.
1954 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956 as_fn_set_status $ac_retval
1958 } # ac_fn_c_try_link
1960 # ac_fn_c_check_func LINENO FUNC VAR
1961 # ----------------------------------
1962 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1963 ac_fn_c_check_func ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if eval \${$3+:} false; then :
1969 $as_echo_n "(cached) " >&6
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1973 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1975 #define $2 innocuous_$2
1977 /* System header to define __stub macros and hopefully few prototypes,
1978 which can conflict with char $2 (); below.
1979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1980 <limits.h> exists even on freestanding compilers. */
1983 # include <limits.h>
1985 # include <assert.h>
1990 /* Override any GCC internal prototype to avoid an error.
1991 Use char because int might match the return type of a GCC
1992 builtin and then its argument prototype would still apply. */
1997 /* The GNU C library defines this for functions which it implements
1998 to always fail with ENOSYS. Some functions are actually named
1999 something starting with __ and the normal name is an alias. */
2000 #if defined __stub_$2 || defined __stub___$2
2012 if ac_fn_c_try_link "$LINENO"; then :
2017 rm -f core conftest.err conftest.$ac_objext \
2018 conftest$ac_exeext conftest.$ac_ext
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 } # ac_fn_c_check_func
2027 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2028 # -------------------------------------------
2029 # Tests whether TYPE exists after having included INCLUDES, setting cache
2030 # variable VAR accordingly.
2031 ac_fn_c_check_type ()
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2035 $as_echo_n "checking for $2... " >&6; }
2036 if eval \${$3+:} false; then :
2037 $as_echo_n "(cached) " >&6
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2065 if ac_fn_c_try_compile "$LINENO"; then :
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 $as_echo "$ac_res" >&6; }
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079 } # ac_fn_c_check_type
2081 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2082 # --------------------------------------------
2083 # Tries to find the compile-time value of EXPR in a program that includes
2084 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2086 ac_fn_c_compute_int ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 if test "$cross_compiling" = yes; then
2090 # Depending upon the size, compute the lo and hi bounds.
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2097 static int test_array [1 - 2 * !(($2) >= 0)];
2099 return test_array [0];
2105 if ac_fn_c_try_compile "$LINENO"; then :
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2114 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2116 return test_array [0];
2122 if ac_fn_c_try_compile "$LINENO"; then :
2123 ac_hi=$ac_mid; break
2125 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2126 if test $ac_lo -le $ac_mid; then
2130 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2141 static int test_array [1 - 2 * !(($2) < 0)];
2143 return test_array [0];
2149 if ac_fn_c_try_compile "$LINENO"; then :
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2158 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2160 return test_array [0];
2166 if ac_fn_c_try_compile "$LINENO"; then :
2167 ac_lo=$ac_mid; break
2169 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2170 if test $ac_mid -le $ac_hi; then
2174 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 # Binary search between lo and hi bounds.
2185 while test "x$ac_lo" != "x$ac_hi"; do
2186 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2193 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2195 return test_array [0];
2201 if ac_fn_c_try_compile "$LINENO"; then :
2204 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2216 static long int longval () { return $2; }
2217 static unsigned long int ulongval () { return $2; }
2224 FILE *f = fopen ("conftest.val", "w");
2229 long int i = longval ();
2232 fprintf (f, "%ld", i);
2236 unsigned long int i = ulongval ();
2239 fprintf (f, "%lu", i);
2241 /* Do not output a trailing newline, as this causes \r\n confusion
2242 on some platforms. */
2243 return ferror (f) || fclose (f) != 0;
2249 if ac_fn_c_try_run "$LINENO"; then :
2250 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2255 conftest.$ac_objext conftest.beam conftest.$ac_ext
2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260 as_fn_set_status $ac_retval
2262 } # ac_fn_c_compute_int
2264 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2265 # ---------------------------------------------
2266 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2268 ac_fn_c_check_decl ()
2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271 as_decl_name=`echo $2|sed 's/ *(.*//'`
2272 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2274 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2275 if eval \${$3+:} false; then :
2276 $as_echo_n "(cached) " >&6
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2284 #ifndef $as_decl_name
2286 (void) $as_decl_use;
2288 (void) $as_decl_name;
2296 if ac_fn_c_try_compile "$LINENO"; then :
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305 $as_echo "$ac_res" >&6; }
2306 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2308 } # ac_fn_c_check_decl
2310 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2311 # ----------------------------------------------------
2312 # Tries to find if the field MEMBER exists in type AGGR, after including
2313 # INCLUDES, setting cache variable VAR accordingly.
2314 ac_fn_c_check_member ()
2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2318 $as_echo_n "checking for $2.$3... " >&6; }
2319 if eval \${$4+:} false; then :
2320 $as_echo_n "(cached) " >&6
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2335 if ac_fn_c_try_compile "$LINENO"; then :
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2345 if (sizeof ac_aggr.$3)
2351 if ac_fn_c_try_compile "$LINENO"; then :
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2362 $as_echo "$ac_res" >&6; }
2363 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2365 } # ac_fn_c_check_member
2366 cat >config.log <<_ACEOF
2367 This file contains any messages produced by compilers while
2368 running configure, to aid debugging if configure makes a mistake.
2370 It was created by $as_me, which was
2371 generated by GNU Autoconf 2.69. Invocation command line was
2383 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2384 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2385 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2386 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2387 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2389 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2390 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2392 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2393 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2394 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2395 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2396 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2397 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2398 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 test -z "$as_dir" && as_dir=.
2407 $as_echo "PATH: $as_dir"
2423 # Keep a trace of the command line.
2424 # Strip out --no-create and --no-recursion so they do not pile up.
2425 # Strip out --silent because we don't want to record it for future runs.
2426 # Also quote any args containing shell meta-characters.
2427 # Make two passes to allow for proper duplicate-argument suppression.
2431 ac_must_keep_next=false
2437 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2439 | -silent | --silent | --silen | --sile | --sil)
2442 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2445 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2447 as_fn_append ac_configure_args1 " '$ac_arg'"
2448 if test $ac_must_keep_next = true; then
2449 ac_must_keep_next=false # Got value, back to normal.
2452 *=* | --config-cache | -C | -disable-* | --disable-* \
2453 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2454 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2455 | -with-* | --with-* | -without-* | --without-* | --x)
2456 case "$ac_configure_args0 " in
2457 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2460 -* ) ac_must_keep_next=true ;;
2463 as_fn_append ac_configure_args " '$ac_arg'"
2468 { ac_configure_args0=; unset ac_configure_args0;}
2469 { ac_configure_args1=; unset ac_configure_args1;}
2471 # When interrupted or exit'd, cleanup temporary files, and complete
2472 # config.log. We remove comments because anyway the quotes in there
2473 # would cause problems or look ugly.
2474 # WARNING: Use '\'' to represent an apostrophe within the trap.
2475 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2476 trap 'exit_status=$?
2477 # Save into config.log some information that might help in debugging.
2481 $as_echo "## ---------------- ##
2482 ## Cache variables. ##
2483 ## ---------------- ##"
2485 # The following way of writing the cache mishandles newlines in values,
2487 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2488 eval ac_val=\$$ac_var
2492 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2493 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2496 _ | IFS | as_nl) ;; #(
2497 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2498 *) { eval $ac_var=; unset $ac_var;} ;;
2503 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2504 *${as_nl}ac_space=\ *)
2506 "s/'\''/'\''\\\\'\'''\''/g;
2507 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2510 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2517 $as_echo "## ----------------- ##
2518 ## Output variables. ##
2519 ## ----------------- ##"
2521 for ac_var in $ac_subst_vars
2523 eval ac_val=\$$ac_var
2525 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2527 $as_echo "$ac_var='\''$ac_val'\''"
2531 if test -n "$ac_subst_files"; then
2532 $as_echo "## ------------------- ##
2533 ## File substitutions. ##
2534 ## ------------------- ##"
2536 for ac_var in $ac_subst_files
2538 eval ac_val=\$$ac_var
2540 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2542 $as_echo "$ac_var='\''$ac_val'\''"
2547 if test -s confdefs.h; then
2548 $as_echo "## ----------- ##
2555 test "$ac_signal" != 0 &&
2556 $as_echo "$as_me: caught signal $ac_signal"
2557 $as_echo "$as_me: exit $exit_status"
2559 rm -f core *.core core.conftest.* &&
2560 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2563 for ac_signal in 1 2 13 15; do
2564 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2568 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2569 rm -f -r conftest* confdefs.h
2571 $as_echo "/* confdefs.h */" > confdefs.h
2573 # Predefined preprocessor variables.
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_NAME "$PACKAGE_NAME"
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2587 cat >>confdefs.h <<_ACEOF
2588 #define PACKAGE_STRING "$PACKAGE_STRING"
2591 cat >>confdefs.h <<_ACEOF
2592 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2595 cat >>confdefs.h <<_ACEOF
2596 #define PACKAGE_URL "$PACKAGE_URL"
2600 # Let the site file select an alternate cache file if it wants to.
2601 # Prefer an explicitly selected file to automatically selected ones.
2604 if test -n "$CONFIG_SITE"; then
2605 # We do not want a PATH search for config.site.
2606 case $CONFIG_SITE in #((
2607 -*) ac_site_file1=./$CONFIG_SITE;;
2608 */*) ac_site_file1=$CONFIG_SITE;;
2609 *) ac_site_file1=./$CONFIG_SITE;;
2611 elif test "x$prefix" != xNONE; then
2612 ac_site_file1=$prefix/share/config.site
2613 ac_site_file2=$prefix/etc/config.site
2615 ac_site_file1=$ac_default_prefix/share/config.site
2616 ac_site_file2=$ac_default_prefix/etc/config.site
2618 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2620 test "x$ac_site_file" = xNONE && continue
2621 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2623 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2624 sed 's/^/| /' "$ac_site_file" >&5
2626 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2628 as_fn_error $? "failed to load site script $ac_site_file
2629 See \`config.log' for more details" "$LINENO" 5; }
2633 if test -r "$cache_file"; then
2634 # Some versions of bash will fail to source /dev/null (special files
2635 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2636 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2638 $as_echo "$as_me: loading cache $cache_file" >&6;}
2640 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2641 *) . "./$cache_file";;
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2646 $as_echo "$as_me: creating cache $cache_file" >&6;}
2650 # Check that the precious variables saved in the cache have kept the same
2652 ac_cache_corrupted=false
2653 for ac_var in $ac_precious_vars; do
2654 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2655 eval ac_new_set=\$ac_env_${ac_var}_set
2656 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2657 eval ac_new_val=\$ac_env_${ac_var}_value
2658 case $ac_old_set,$ac_new_set in
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2661 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2662 ac_cache_corrupted=: ;;
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2665 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2666 ac_cache_corrupted=: ;;
2669 if test "x$ac_old_val" != "x$ac_new_val"; then
2670 # differences in whitespace do not lead to failure.
2671 ac_old_val_w=`echo x $ac_old_val`
2672 ac_new_val_w=`echo x $ac_new_val`
2673 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2675 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2676 ac_cache_corrupted=:
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2679 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2680 eval $ac_var=\$ac_old_val
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2683 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2685 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2688 # Pass precious variables to config.status.
2689 if test "$ac_new_set" = set; then
2691 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2692 *) ac_arg=$ac_var=$ac_new_val ;;
2694 case " $ac_configure_args " in
2695 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2696 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2700 if $ac_cache_corrupted; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2704 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2705 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2707 ## -------------------- ##
2708 ## Main body of script. ##
2709 ## -------------------- ##
2712 ac_cpp='$CPP $CPPFLAGS'
2713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2718 ac_config_headers="$ac_config_headers include/arch/unix/apr_private.h"
2721 for ac_dir in build "$srcdir"/build; do
2722 if test -f "$ac_dir/install-sh"; then
2724 ac_install_sh="$ac_aux_dir/install-sh -c"
2726 elif test -f "$ac_dir/install.sh"; then
2728 ac_install_sh="$ac_aux_dir/install.sh -c"
2730 elif test -f "$ac_dir/shtool"; then
2732 ac_install_sh="$ac_aux_dir/shtool install -c"
2736 if test -z "$ac_aux_dir"; then
2737 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2740 # These three variables are undocumented and unsupported,
2741 # and are intended to be withdrawn in a future Autoconf release.
2742 # They can cause serious problems if a builder's source tree is in a directory
2743 # whose full name contains unusual characters.
2744 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2745 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2746 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2904 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2906 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2907 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
2909 # Written by Gordon Matzigkeit, 1996
2911 # This file is free software; the Free Software Foundation gives
2912 # unlimited permission to copy and/or distribute it, with or without
2913 # modifications, as long as this notice is preserved.
2920 # LT_PREREQ(VERSION)
2921 # ------------------
2922 # Complain and exit if this libtool version is less that VERSION.
2926 # _LT_CHECK_BUILDDIR
2927 # ------------------
2928 # Complain if the absolute build directory name contains unusual characters
2932 # LT_INIT([OPTIONS])
2933 # ------------------
2937 # This is what autoupdate's m4 run will expand. It fires
2938 # the warning (with _au_warn_XXX), outputs it into the
2939 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2940 # the replacement expansion.
2943 # This is an auxiliary macro that is also run when
2944 # autoupdate runs m4. It simply calls m4_warning, but
2945 # we need a wrapper so that each warning is emitted only
2946 # once. We break the quoting in m4_warning's argument in
2947 # order to expand this macro's arguments, not AU_DEFUN's.
2950 # Finally, this is the expansion that is picked up by
2951 # autoconf. It tells the user to run autoupdate, and
2952 # then outputs the replacement expansion. We do not care
2953 # about autoupdate's warning because that contains
2954 # information on what to do *after* running autoupdate.
2956 # This is what autoupdate's m4 run will expand. It fires
2957 # the warning (with _au_warn_XXX), outputs it into the
2958 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2959 # the replacement expansion.
2962 # This is an auxiliary macro that is also run when
2963 # autoupdate runs m4. It simply calls m4_warning, but
2964 # we need a wrapper so that each warning is emitted only
2965 # once. We break the quoting in m4_warning's argument in
2966 # order to expand this macro's arguments, not AU_DEFUN's.
2969 # Finally, this is the expansion that is picked up by
2970 # autoconf. It tells the user to run autoupdate, and
2971 # then outputs the replacement expansion. We do not care
2972 # about autoupdate's warning because that contains
2973 # information on what to do *after* running autoupdate.
2977 # _LT_CC_BASENAME(CC)
2978 # -------------------
2979 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2983 # _LT_FILEUTILS_DEFAULTS
2984 # ----------------------
2985 # It is okay to use these file commands and assume they have been set
2986 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2987 # _LT_FILEUTILS_DEFAULTS
2995 # _LT_PREPARE_SED_QUOTE_VARS
2996 # --------------------------
2997 # Define a few sed substitution that help us do robust quoting.
3002 # Note that this code is called both from `configure', and `config.status'
3003 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
3004 # `config.status' has no value for ac_aux_dir unless we are using Automake,
3005 # so we pass a copy along to make sure it has a sensible value anyway.
3009 ## ------------------------------------- ##
3010 ## Accumulate code for creating libtool. ##
3011 ## ------------------------------------- ##
3013 # So that we can recreate a full libtool script including additional
3014 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
3015 # in macros and then make a single call at the end using the `libtool'
3019 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
3020 # ----------------------------------------
3021 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
3028 # _LT_CONFIG_LIBTOOL([COMMANDS])
3029 # ------------------------------
3030 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
3037 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
3038 # -----------------------------------------------------
3042 # _LT_FORMAT_COMMENT([COMMENT])
3043 # -----------------------------
3044 # Add leading comment marks to the start of each line, and a trailing
3045 # full-stop to the whole comment if one is not present already.
3050 ## ------------------------ ##
3051 ## FIXME: Eliminate VARNAME ##
3052 ## ------------------------ ##
3055 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
3056 # -------------------------------------------------------------------
3057 # CONFIGNAME is the name given to the value in the libtool script.
3058 # VARNAME is the (base) name used in the configure script.
3059 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
3060 # VARNAME. Any other value will be used directly.
3064 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
3065 # --------------------------------------------------------
3069 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
3070 # ------------------------------------------------
3074 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
3075 # ---------------------------------------------------------
3079 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
3080 # --------------------------------------------------
3084 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
3085 # ---------------------------------------------------
3089 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
3090 # ---------------------------------------------------
3095 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
3096 # ------------------------------------------------
3101 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
3102 # ------------------------------------
3103 # Quote a variable value, and forward it to `config.status' so that its
3104 # declaration there will have the same value as in `configure'. VARNAME
3105 # must have a single quote delimited value for this to work.
3109 # _LT_CONFIG_STATUS_DECLARATIONS
3110 # ------------------------------
3111 # We delimit libtool config variables with single quotes, so when
3112 # we write them to config.status, we have to be sure to quote all
3113 # embedded single quotes properly. In configure, this macro expands
3114 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
3116 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
3122 # Output comment and list of tags supported by the script
3126 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
3127 # -----------------------------------
3128 # Extract the dictionary values for VARNAME (optionally with TAG) and
3129 # expand to a commented shell variable setting:
3131 # # Some comment about what VAR is for.
3132 # visible_name=$lt_internal_name
3136 # _LT_LIBTOOL_CONFIG_VARS
3137 # -----------------------
3138 # Produce commented declarations of non-tagged libtool config variables
3139 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
3140 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
3141 # section) are produced by _LT_LIBTOOL_TAG_VARS.
3145 # _LT_LIBTOOL_TAG_VARS(TAG)
3146 # -------------------------
3150 # _LT_TAGVAR(VARNAME, [TAGNAME])
3151 # ------------------------------
3155 # _LT_CONFIG_COMMANDS
3156 # -------------------
3157 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
3158 # variables for single and double quote escaping we saved from calls
3159 # to _LT_DECL, we can put quote escaped variables declarations
3160 # into `config.status', and then the shell code to quote escape them in
3161 # for loops in `config.status'. Finally, any additional code accumulated
3162 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
3163 #_LT_CONFIG_COMMANDS
3169 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
3170 # ------------------------------------
3171 # Generate a child script FILE with all initialization necessary to
3172 # reuse the environment learned by the parent script, and make the
3173 # file executable. If COMMENT is supplied, it is inserted after the
3174 # `#!' sequence but before initialization text begins. After this
3175 # macro, additional text can be appended to FILE to form the body of
3176 # the child script. The macro ends with non-zero status if the
3177 # file could not be fully written (such as if the disk is full).
3178 # _LT_GENERATED_FILE_INIT
3182 # This macro allows early generation of the libtool script (before
3183 # AC_OUTPUT is called), incase it is used in configure for compilation
3190 # If TAG is the built-in tag, create an initial libtool script with a
3191 # default configuration from the untagged config vars. Otherwise add code
3192 # to config.status for appending the configuration named by TAG from the
3193 # matching tagged config vars.
3197 # LT_SUPPORTED_TAG(TAG)
3198 # ---------------------
3199 # Trace this macro to discover what tags are supported by the libtool
3200 # --tag option, using:
3201 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
3205 # C support is built-in for now
3212 # Enable libtool support for the given language if not already enabled.
3216 # _LT_LANG(LANGNAME)
3217 # ------------------
3224 # _LT_LANG_DEFAULT_CONFIG
3225 # -----------------------
3226 # _LT_LANG_DEFAULT_CONFIG
3229 # This is what autoupdate's m4 run will expand. It fires
3230 # the warning (with _au_warn_XXX), outputs it into the
3231 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3232 # the replacement expansion.
3235 # This is an auxiliary macro that is also run when
3236 # autoupdate runs m4. It simply calls m4_warning, but
3237 # we need a wrapper so that each warning is emitted only
3238 # once. We break the quoting in m4_warning's argument in
3239 # order to expand this macro's arguments, not AU_DEFUN's.
3242 # Finally, this is the expansion that is picked up by
3243 # autoconf. It tells the user to run autoupdate, and
3244 # then outputs the replacement expansion. We do not care
3245 # about autoupdate's warning because that contains
3246 # information on what to do *after* running autoupdate.
3248 # This is what autoupdate's m4 run will expand. It fires
3249 # the warning (with _au_warn_XXX), outputs it into the
3250 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3251 # the replacement expansion.
3254 # This is an auxiliary macro that is also run when
3255 # autoupdate runs m4. It simply calls m4_warning, but
3256 # we need a wrapper so that each warning is emitted only
3257 # once. We break the quoting in m4_warning's argument in
3258 # order to expand this macro's arguments, not AU_DEFUN's.
3261 # Finally, this is the expansion that is picked up by
3262 # autoconf. It tells the user to run autoupdate, and
3263 # then outputs the replacement expansion. We do not care
3264 # about autoupdate's warning because that contains
3265 # information on what to do *after* running autoupdate.
3267 # This is what autoupdate's m4 run will expand. It fires
3268 # the warning (with _au_warn_XXX), outputs it into the
3269 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3270 # the replacement expansion.
3273 # This is an auxiliary macro that is also run when
3274 # autoupdate runs m4. It simply calls m4_warning, but
3275 # we need a wrapper so that each warning is emitted only
3276 # once. We break the quoting in m4_warning's argument in
3277 # order to expand this macro's arguments, not AU_DEFUN's.
3280 # Finally, this is the expansion that is picked up by
3281 # autoconf. It tells the user to run autoupdate, and
3282 # then outputs the replacement expansion. We do not care
3283 # about autoupdate's warning because that contains
3284 # information on what to do *after* running autoupdate.
3286 # This is what autoupdate's m4 run will expand. It fires
3287 # the warning (with _au_warn_XXX), outputs it into the
3288 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3289 # the replacement expansion.
3292 # This is an auxiliary macro that is also run when
3293 # autoupdate runs m4. It simply calls m4_warning, but
3294 # we need a wrapper so that each warning is emitted only
3295 # once. We break the quoting in m4_warning's argument in
3296 # order to expand this macro's arguments, not AU_DEFUN's.
3299 # Finally, this is the expansion that is picked up by
3300 # autoconf. It tells the user to run autoupdate, and
3301 # then outputs the replacement expansion. We do not care
3302 # about autoupdate's warning because that contains
3303 # information on what to do *after* running autoupdate.
3305 # This is what autoupdate's m4 run will expand. It fires
3306 # the warning (with _au_warn_XXX), outputs it into the
3307 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3308 # the replacement expansion.
3311 # This is an auxiliary macro that is also run when
3312 # autoupdate runs m4. It simply calls m4_warning, but
3313 # we need a wrapper so that each warning is emitted only
3314 # once. We break the quoting in m4_warning's argument in
3315 # order to expand this macro's arguments, not AU_DEFUN's.
3318 # Finally, this is the expansion that is picked up by
3319 # autoconf. It tells the user to run autoupdate, and
3320 # then outputs the replacement expansion. We do not care
3321 # about autoupdate's warning because that contains
3322 # information on what to do *after* running autoupdate.
3331 # _LT_COMPILER_BOILERPLATE
3332 # ------------------------
3333 # Check for compiler boilerplate output or warnings with
3334 # the simple compiler test code.
3335 # _LT_COMPILER_BOILERPLATE
3338 # _LT_LINKER_BOILERPLATE
3339 # ----------------------
3340 # Check for linker boilerplate output or warnings with
3341 # the simple link test code.
3342 # _LT_LINKER_BOILERPLATE
3344 # _LT_REQUIRED_DARWIN_CHECKS
3345 # -------------------------
3349 # _LT_DARWIN_LINKER_FEATURES([TAG])
3350 # ---------------------------------
3351 # Checks for linker and compiler features on darwin
3354 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
3355 # ----------------------------------
3356 # Links a minimal program and checks the executable
3357 # for the system default hardcoded library path. In most cases,
3358 # this is /usr/lib:/lib, but when the MPI compilers are used
3359 # the location of the communication and MPI libs are included too.
3360 # If we don't find anything, use the default library path according
3361 # to the aix ld manual.
3362 # Store the results from the different compilers for each TAGNAME.
3363 # Allow to override them for all tags through lt_cv_aix_libpath.
3364 # _LT_SYS_MODULE_PATH_AIX
3367 # _LT_SHELL_INIT(ARG)
3368 # -------------------
3373 # _LT_PROG_ECHO_BACKSLASH
3374 # -----------------------
3375 # Find how we can fake an echo command that does not interpret backslash.
3376 # In particular, with Autoconf 2.60 or later we add some code to the start
3377 # of the generated configure script which will find a shell with a builtin
3378 # printf (which we can use as an echo command).
3379 # _LT_PROG_ECHO_BACKSLASH
3396 # _LT_CMD_OLD_ARCHIVE
3397 # -------------------
3398 # _LT_CMD_OLD_ARCHIVE
3401 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3402 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3403 # ----------------------------------------------------------------
3404 # Check whether the given compiler option works
3405 # _LT_COMPILER_OPTION
3408 # This is what autoupdate's m4 run will expand. It fires
3409 # the warning (with _au_warn_XXX), outputs it into the
3410 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3411 # the replacement expansion.
3414 # This is an auxiliary macro that is also run when
3415 # autoupdate runs m4. It simply calls m4_warning, but
3416 # we need a wrapper so that each warning is emitted only
3417 # once. We break the quoting in m4_warning's argument in
3418 # order to expand this macro's arguments, not AU_DEFUN's.
3421 # Finally, this is the expansion that is picked up by
3422 # autoconf. It tells the user to run autoupdate, and
3423 # then outputs the replacement expansion. We do not care
3424 # about autoupdate's warning because that contains
3425 # information on what to do *after* running autoupdate.
3429 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3430 # [ACTION-SUCCESS], [ACTION-FAILURE])
3431 # ----------------------------------------------------
3432 # Check whether the given linker option works
3436 # This is what autoupdate's m4 run will expand. It fires
3437 # the warning (with _au_warn_XXX), outputs it into the
3438 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3439 # the replacement expansion.
3442 # This is an auxiliary macro that is also run when
3443 # autoupdate runs m4. It simply calls m4_warning, but
3444 # we need a wrapper so that each warning is emitted only
3445 # once. We break the quoting in m4_warning's argument in
3446 # order to expand this macro's arguments, not AU_DEFUN's.
3449 # Finally, this is the expansion that is picked up by
3450 # autoconf. It tells the user to run autoupdate, and
3451 # then outputs the replacement expansion. We do not care
3452 # about autoupdate's warning because that contains
3453 # information on what to do *after* running autoupdate.
3462 # This is what autoupdate's m4 run will expand. It fires
3463 # the warning (with _au_warn_XXX), outputs it into the
3464 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3465 # the replacement expansion.
3468 # This is an auxiliary macro that is also run when
3469 # autoupdate runs m4. It simply calls m4_warning, but
3470 # we need a wrapper so that each warning is emitted only
3471 # once. We break the quoting in m4_warning's argument in
3472 # order to expand this macro's arguments, not AU_DEFUN's.
3475 # Finally, this is the expansion that is picked up by
3476 # autoconf. It tells the user to run autoupdate, and
3477 # then outputs the replacement expansion. We do not care
3478 # about autoupdate's warning because that contains
3479 # information on what to do *after* running autoupdate.
3488 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3489 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3490 # ----------------------------------------------------------------
3491 # _LT_TRY_DLOPEN_SELF
3494 # LT_SYS_DLOPEN_SELF
3495 # ------------------
3496 # LT_SYS_DLOPEN_SELF
3499 # This is what autoupdate's m4 run will expand. It fires
3500 # the warning (with _au_warn_XXX), outputs it into the
3501 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3502 # the replacement expansion.
3505 # This is an auxiliary macro that is also run when
3506 # autoupdate runs m4. It simply calls m4_warning, but
3507 # we need a wrapper so that each warning is emitted only
3508 # once. We break the quoting in m4_warning's argument in
3509 # order to expand this macro's arguments, not AU_DEFUN's.
3512 # Finally, this is the expansion that is picked up by
3513 # autoconf. It tells the user to run autoupdate, and
3514 # then outputs the replacement expansion. We do not care
3515 # about autoupdate's warning because that contains
3516 # information on what to do *after* running autoupdate.
3520 # _LT_COMPILER_C_O([TAGNAME])
3521 # ---------------------------
3522 # Check to see if options -c and -o are simultaneously supported by compiler.
3523 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
3527 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
3528 # ----------------------------------
3529 # Check to see if we can do hard links to lock some files if needed
3530 # _LT_COMPILER_FILE_LOCKS
3538 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3539 # --------------------------------------
3540 # Check hardcoding attributes.
3541 # _LT_LINKER_HARDCODE_LIBPATH
3549 # _LT_SYS_DYNAMIC_LINKER([TAG])
3550 # -----------------------------
3551 # PORTME Fill in your ld.so characteristics
3552 # _LT_SYS_DYNAMIC_LINKER
3555 # _LT_PATH_TOOL_PREFIX(TOOL)
3556 # --------------------------
3557 # find a file program which can recognize shared library
3558 # _LT_PATH_TOOL_PREFIX
3561 # This is what autoupdate's m4 run will expand. It fires
3562 # the warning (with _au_warn_XXX), outputs it into the
3563 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3564 # the replacement expansion.
3567 # This is an auxiliary macro that is also run when
3568 # autoupdate runs m4. It simply calls m4_warning, but
3569 # we need a wrapper so that each warning is emitted only
3570 # once. We break the quoting in m4_warning's argument in
3571 # order to expand this macro's arguments, not AU_DEFUN's.
3574 # Finally, this is the expansion that is picked up by
3575 # autoconf. It tells the user to run autoupdate, and
3576 # then outputs the replacement expansion. We do not care
3577 # about autoupdate's warning because that contains
3578 # information on what to do *after* running autoupdate.
3584 # find a file program which can recognize a shared library
3590 # find the pathname to the GNU or non-GNU linker
3594 # This is what autoupdate's m4 run will expand. It fires
3595 # the warning (with _au_warn_XXX), outputs it into the
3596 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3597 # the replacement expansion.
3600 # This is an auxiliary macro that is also run when
3601 # autoupdate runs m4. It simply calls m4_warning, but
3602 # we need a wrapper so that each warning is emitted only
3603 # once. We break the quoting in m4_warning's argument in
3604 # order to expand this macro's arguments, not AU_DEFUN's.
3607 # Finally, this is the expansion that is picked up by
3608 # autoconf. It tells the user to run autoupdate, and
3609 # then outputs the replacement expansion. We do not care
3610 # about autoupdate's warning because that contains
3611 # information on what to do *after* running autoupdate.
3613 # This is what autoupdate's m4 run will expand. It fires
3614 # the warning (with _au_warn_XXX), outputs it into the
3615 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3616 # the replacement expansion.
3619 # This is an auxiliary macro that is also run when
3620 # autoupdate runs m4. It simply calls m4_warning, but
3621 # we need a wrapper so that each warning is emitted only
3622 # once. We break the quoting in m4_warning's argument in
3623 # order to expand this macro's arguments, not AU_DEFUN's.
3626 # Finally, this is the expansion that is picked up by
3627 # autoconf. It tells the user to run autoupdate, and
3628 # then outputs the replacement expansion. We do not care
3629 # about autoupdate's warning because that contains
3630 # information on what to do *after* running autoupdate.
3641 # find reload flag for linker
3642 # -- PORTME Some linkers may need a different reload flag.
3646 # _LT_CHECK_MAGIC_METHOD
3647 # ----------------------
3648 # how to check for library dependencies
3649 # -- PORTME fill in with the dynamic library characteristics
3650 # _LT_CHECK_MAGIC_METHOD
3655 # find the pathname to a BSD- or MS-compatible name lister
3659 # This is what autoupdate's m4 run will expand. It fires
3660 # the warning (with _au_warn_XXX), outputs it into the
3661 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3662 # the replacement expansion.
3665 # This is an auxiliary macro that is also run when
3666 # autoupdate runs m4. It simply calls m4_warning, but
3667 # we need a wrapper so that each warning is emitted only
3668 # once. We break the quoting in m4_warning's argument in
3669 # order to expand this macro's arguments, not AU_DEFUN's.
3672 # Finally, this is the expansion that is picked up by
3673 # autoconf. It tells the user to run autoupdate, and
3674 # then outputs the replacement expansion. We do not care
3675 # about autoupdate's warning because that contains
3676 # information on what to do *after* running autoupdate.
3678 # This is what autoupdate's m4 run will expand. It fires
3679 # the warning (with _au_warn_XXX), outputs it into the
3680 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3681 # the replacement expansion.
3684 # This is an auxiliary macro that is also run when
3685 # autoupdate runs m4. It simply calls m4_warning, but
3686 # we need a wrapper so that each warning is emitted only
3687 # once. We break the quoting in m4_warning's argument in
3688 # order to expand this macro's arguments, not AU_DEFUN's.
3691 # Finally, this is the expansion that is picked up by
3692 # autoconf. It tells the user to run autoupdate, and
3693 # then outputs the replacement expansion. We do not care
3694 # about autoupdate's warning because that contains
3695 # information on what to do *after* running autoupdate.
3698 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3699 # --------------------------------
3700 # how to determine the name of the shared library
3701 # associated with a specific link library.
3702 # -- PORTME fill in with the dynamic library characteristics
3703 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3706 # _LT_PATH_MANIFEST_TOOL
3707 # ----------------------
3708 # locate the manifest tool
3709 # _LT_PATH_MANIFEST_TOOL
3714 # check for math library
3718 # This is what autoupdate's m4 run will expand. It fires
3719 # the warning (with _au_warn_XXX), outputs it into the
3720 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3721 # the replacement expansion.
3724 # This is an auxiliary macro that is also run when
3725 # autoupdate runs m4. It simply calls m4_warning, but
3726 # we need a wrapper so that each warning is emitted only
3727 # once. We break the quoting in m4_warning's argument in
3728 # order to expand this macro's arguments, not AU_DEFUN's.
3731 # Finally, this is the expansion that is picked up by
3732 # autoconf. It tells the user to run autoupdate, and
3733 # then outputs the replacement expansion. We do not care
3734 # about autoupdate's warning because that contains
3735 # information on what to do *after* running autoupdate.
3739 # _LT_COMPILER_NO_RTTI([TAGNAME])
3740 # -------------------------------
3741 # _LT_COMPILER_NO_RTTI
3744 # _LT_CMD_GLOBAL_SYMBOLS
3745 # ----------------------
3746 # _LT_CMD_GLOBAL_SYMBOLS
3749 # _LT_COMPILER_PIC([TAGNAME])
3750 # ---------------------------
3754 # _LT_LINKER_SHLIBS([TAGNAME])
3755 # ----------------------------
3756 # See if the linker supports building shared libraries.
3760 # _LT_LANG_C_CONFIG([TAG])
3761 # ------------------------
3762 # Ensure that the configuration variables for a C compiler are suitably
3763 # defined. These variables are subsequently used by _LT_CONFIG to write
3764 # the compiler configuration to `libtool'.
3768 # _LT_LANG_CXX_CONFIG([TAG])
3769 # --------------------------
3770 # Ensure that the configuration variables for a C++ compiler are suitably
3771 # defined. These variables are subsequently used by _LT_CONFIG to write
3772 # the compiler configuration to `libtool'.
3773 # _LT_LANG_CXX_CONFIG
3776 # _LT_FUNC_STRIPNAME_CNF
3777 # ----------------------
3778 # func_stripname_cnf prefix suffix name
3779 # strip PREFIX and SUFFIX off of NAME.
3780 # PREFIX and SUFFIX must not contain globbing or regex special
3781 # characters, hashes, percent signs, but SUFFIX may contain a leading
3782 # dot (in which case that matches only a dot).
3784 # This function is identical to the (non-XSI) version of func_stripname,
3785 # except this one can be used by m4 code that may be executed by configure,
3786 # rather than the libtool script.
3787 # _LT_FUNC_STRIPNAME_CNF
3789 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3790 # ---------------------------------
3791 # Figure out "hidden" library dependencies from verbose
3792 # compiler output when linking a shared library.
3793 # Parse the compiler output and extract the necessary
3794 # objects, libraries and library flags.
3795 # _LT_SYS_HIDDEN_LIBDEPS
3798 # _LT_LANG_F77_CONFIG([TAG])
3799 # --------------------------
3800 # Ensure that the configuration variables for a Fortran 77 compiler are
3801 # suitably defined. These variables are subsequently used by _LT_CONFIG
3802 # to write the compiler configuration to `libtool'.
3803 # _LT_LANG_F77_CONFIG
3806 # _LT_LANG_FC_CONFIG([TAG])
3807 # -------------------------
3808 # Ensure that the configuration variables for a Fortran compiler are
3809 # suitably defined. These variables are subsequently used by _LT_CONFIG
3810 # to write the compiler configuration to `libtool'.
3811 # _LT_LANG_FC_CONFIG
3814 # _LT_LANG_GCJ_CONFIG([TAG])
3815 # --------------------------
3816 # Ensure that the configuration variables for the GNU Java Compiler compiler
3817 # are suitably defined. These variables are subsequently used by _LT_CONFIG
3818 # to write the compiler configuration to `libtool'.
3819 # _LT_LANG_GCJ_CONFIG
3822 # _LT_LANG_GO_CONFIG([TAG])
3823 # --------------------------
3824 # Ensure that the configuration variables for the GNU Go compiler
3825 # are suitably defined. These variables are subsequently used by _LT_CONFIG
3826 # to write the compiler configuration to `libtool'.
3827 # _LT_LANG_GO_CONFIG
3830 # _LT_LANG_RC_CONFIG([TAG])
3831 # -------------------------
3832 # Ensure that the configuration variables for the Windows resource compiler
3833 # are suitably defined. These variables are subsequently used by _LT_CONFIG
3834 # to write the compiler configuration to `libtool'.
3835 # _LT_LANG_RC_CONFIG
3843 # This is what autoupdate's m4 run will expand. It fires
3844 # the warning (with _au_warn_XXX), outputs it into the
3845 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3846 # the replacement expansion.
3849 # This is an auxiliary macro that is also run when
3850 # autoupdate runs m4. It simply calls m4_warning, but
3851 # we need a wrapper so that each warning is emitted only
3852 # once. We break the quoting in m4_warning's argument in
3853 # order to expand this macro's arguments, not AU_DEFUN's.
3856 # Finally, this is the expansion that is picked up by
3857 # autoconf. It tells the user to run autoupdate, and
3858 # then outputs the replacement expansion. We do not care
3859 # about autoupdate's warning because that contains
3860 # information on what to do *after* running autoupdate.
3874 # This is what autoupdate's m4 run will expand. It fires
3875 # the warning (with _au_warn_XXX), outputs it into the
3876 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3877 # the replacement expansion.
3880 # This is an auxiliary macro that is also run when
3881 # autoupdate runs m4. It simply calls m4_warning, but
3882 # we need a wrapper so that each warning is emitted only
3883 # once. We break the quoting in m4_warning's argument in
3884 # order to expand this macro's arguments, not AU_DEFUN's.
3887 # Finally, this is the expansion that is picked up by
3888 # autoconf. It tells the user to run autoupdate, and
3889 # then outputs the replacement expansion. We do not care
3890 # about autoupdate's warning because that contains
3891 # information on what to do *after* running autoupdate.
3897 # If we don't have a new enough Autoconf to choose the best grep
3898 # available, choose the one first in the user's PATH.
3904 # If we don't have a new enough Autoconf to choose the best objdump
3905 # available, choose the one first in the user's PATH.
3910 # Ensure DLLTOOL variable is set.
3915 # Check for a fully-functional sed program, that truncates
3916 # as few characters as possible. Prefer GNU sed if found.
3922 # This is what autoupdate's m4 run will expand. It fires
3923 # the warning (with _au_warn_XXX), outputs it into the
3924 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3925 # the replacement expansion.
3928 # This is an auxiliary macro that is also run when
3929 # autoupdate runs m4. It simply calls m4_warning, but
3930 # we need a wrapper so that each warning is emitted only
3931 # once. We break the quoting in m4_warning's argument in
3932 # order to expand this macro's arguments, not AU_DEFUN's.
3935 # Finally, this is the expansion that is picked up by
3936 # autoconf. It tells the user to run autoupdate, and
3937 # then outputs the replacement expansion. We do not care
3938 # about autoupdate's warning because that contains
3939 # information on what to do *after* running autoupdate.
3943 # _LT_CHECK_SHELL_FEATURES
3944 # ------------------------
3945 # Find out whether the shell is Bourne or XSI compatible,
3946 # or has some other useful features.
3947 # _LT_CHECK_SHELL_FEATURES
3950 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
3951 # ------------------------------------------------------
3952 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
3953 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
3957 # _LT_PROG_REPLACE_SHELLFNS
3958 # -------------------------
3959 # Replace existing portable implementations of several shell functions with
3960 # equivalent extended shell implementations where those features are available..
3963 # _LT_PATH_CONVERSION_FUNCTIONS
3964 # -----------------------------
3965 # Determine which file name conversion functions should be used by
3966 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
3967 # for certain cross-compile configurations and native mingw.
3968 # _LT_PATH_CONVERSION_FUNCTIONS
3970 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3972 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3973 # Written by Gary V. Vaughan, 2004
3975 # This file is free software; the Free Software Foundation gives
3976 # unlimited permission to copy and/or distribute it, with or without
3977 # modifications, as long as this notice is preserved.
3979 # serial 6 ltsugar.m4
3981 # This is to help aclocal find these macros, as it can't see m4_define.
3985 # lt_join(SEP, ARG1, [ARG2...])
3986 # -----------------------------
3987 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3988 # associated separator.
3989 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3990 # versions in m4sugar had bugs.
3998 # Manipulate m4 lists.
3999 # These macros are necessary as long as will still need to support
4000 # Autoconf-2.59 which quotes differently.
4006 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
4007 # ------------------------------------------
4008 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
4009 # Note that neither SEPARATOR nor STRING are expanded; they are appended
4010 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
4011 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
4012 # than defined and empty).
4014 # This macro is needed until we can rely on Autoconf 2.62, since earlier
4015 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
4020 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
4021 # ----------------------------------------------------------
4022 # Produce a SEP delimited list of all paired combinations of elements of
4023 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
4024 # has the form PREFIXmINFIXSUFFIXn.
4025 # Needed until we can rely on m4_combine added in Autoconf 2.62.
4029 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
4030 # -----------------------------------------------------------------------
4031 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
4032 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
4036 # lt_dict_add(DICT, KEY, VALUE)
4037 # -----------------------------
4041 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
4042 # --------------------------------------------
4046 # lt_dict_fetch(DICT, KEY, [SUBKEY])
4047 # ----------------------------------
4051 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
4052 # -----------------------------------------------------------------
4056 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
4057 # --------------------------------------------------------------
4061 # Helper functions for option handling. -*- Autoconf -*-
4063 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
4065 # Written by Gary V. Vaughan, 2004
4067 # This file is free software; the Free Software Foundation gives
4068 # unlimited permission to copy and/or distribute it, with or without
4069 # modifications, as long as this notice is preserved.
4071 # serial 7 ltoptions.m4
4073 # This is to help aclocal find these macros, as it can't see m4_define.
4077 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
4078 # ------------------------------------------
4082 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
4083 # ---------------------------------------
4084 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
4085 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
4090 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
4091 # ------------------------------------------------------------
4092 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
4096 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
4097 # -------------------------------------------------------
4098 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
4103 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
4104 # ----------------------------------------
4105 # OPTION-LIST is a space-separated list of Libtool options associated
4106 # with MACRO-NAME. If any OPTION has a matching handler declared with
4107 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
4108 # the unknown option and exit.
4112 ## --------------------------------- ##
4113 ## Macros to handle LT_INIT options. ##
4114 ## --------------------------------- ##
4116 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
4117 # -----------------------------------------
4121 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
4122 # -----------------------------------------------
4130 # This is what autoupdate's m4 run will expand. It fires
4131 # the warning (with _au_warn_XXX), outputs it into the
4132 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4133 # the replacement expansion.
4136 # This is an auxiliary macro that is also run when
4137 # autoupdate runs m4. It simply calls m4_warning, but
4138 # we need a wrapper so that each warning is emitted only
4139 # once. We break the quoting in m4_warning's argument in
4140 # order to expand this macro's arguments, not AU_DEFUN's.
4143 # Finally, this is the expansion that is picked up by
4144 # autoconf. It tells the user to run autoupdate, and
4145 # then outputs the replacement expansion. We do not care
4146 # about autoupdate's warning because that contains
4147 # information on what to do *after* running autoupdate.
4154 # Declare package support for building win32 dll's.
4157 # This is what autoupdate's m4 run will expand. It fires
4158 # the warning (with _au_warn_XXX), outputs it into the
4159 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4160 # the replacement expansion.
4163 # This is an auxiliary macro that is also run when
4164 # autoupdate runs m4. It simply calls m4_warning, but
4165 # we need a wrapper so that each warning is emitted only
4166 # once. We break the quoting in m4_warning's argument in
4167 # order to expand this macro's arguments, not AU_DEFUN's.
4170 # Finally, this is the expansion that is picked up by
4171 # autoconf. It tells the user to run autoupdate, and
4172 # then outputs the replacement expansion. We do not care
4173 # about autoupdate's warning because that contains
4174 # information on what to do *after* running autoupdate.
4179 # _LT_ENABLE_SHARED([DEFAULT])
4180 # ----------------------------
4181 # implement the --enable-shared flag, and supports the `shared' and
4182 # `disable-shared' LT_INIT options.
4183 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
4194 # This is what autoupdate's m4 run will expand. It fires
4195 # the warning (with _au_warn_XXX), outputs it into the
4196 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4197 # the replacement expansion.
4200 # This is an auxiliary macro that is also run when
4201 # autoupdate runs m4. It simply calls m4_warning, but
4202 # we need a wrapper so that each warning is emitted only
4203 # once. We break the quoting in m4_warning's argument in
4204 # order to expand this macro's arguments, not AU_DEFUN's.
4207 # Finally, this is the expansion that is picked up by
4208 # autoconf. It tells the user to run autoupdate, and
4209 # then outputs the replacement expansion. We do not care
4210 # about autoupdate's warning because that contains
4211 # information on what to do *after* running autoupdate.
4213 # This is what autoupdate's m4 run will expand. It fires
4214 # the warning (with _au_warn_XXX), outputs it into the
4215 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4216 # the replacement expansion.
4219 # This is an auxiliary macro that is also run when
4220 # autoupdate runs m4. It simply calls m4_warning, but
4221 # we need a wrapper so that each warning is emitted only
4222 # once. We break the quoting in m4_warning's argument in
4223 # order to expand this macro's arguments, not AU_DEFUN's.
4226 # Finally, this is the expansion that is picked up by
4227 # autoconf. It tells the user to run autoupdate, and
4228 # then outputs the replacement expansion. We do not care
4229 # about autoupdate's warning because that contains
4230 # information on what to do *after* running autoupdate.
4236 # _LT_ENABLE_STATIC([DEFAULT])
4237 # ----------------------------
4238 # implement the --enable-static flag, and support the `static' and
4239 # `disable-static' LT_INIT options.
4240 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
4251 # This is what autoupdate's m4 run will expand. It fires
4252 # the warning (with _au_warn_XXX), outputs it into the
4253 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4254 # the replacement expansion.
4257 # This is an auxiliary macro that is also run when
4258 # autoupdate runs m4. It simply calls m4_warning, but
4259 # we need a wrapper so that each warning is emitted only
4260 # once. We break the quoting in m4_warning's argument in
4261 # order to expand this macro's arguments, not AU_DEFUN's.
4264 # Finally, this is the expansion that is picked up by
4265 # autoconf. It tells the user to run autoupdate, and
4266 # then outputs the replacement expansion. We do not care
4267 # about autoupdate's warning because that contains
4268 # information on what to do *after* running autoupdate.
4270 # This is what autoupdate's m4 run will expand. It fires
4271 # the warning (with _au_warn_XXX), outputs it into the
4272 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4273 # the replacement expansion.
4276 # This is an auxiliary macro that is also run when
4277 # autoupdate runs m4. It simply calls m4_warning, but
4278 # we need a wrapper so that each warning is emitted only
4279 # once. We break the quoting in m4_warning's argument in
4280 # order to expand this macro's arguments, not AU_DEFUN's.
4283 # Finally, this is the expansion that is picked up by
4284 # autoconf. It tells the user to run autoupdate, and
4285 # then outputs the replacement expansion. We do not care
4286 # about autoupdate's warning because that contains
4287 # information on what to do *after* running autoupdate.
4293 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
4294 # ----------------------------------
4295 # implement the --enable-fast-install flag, and support the `fast-install'
4296 # and `disable-fast-install' LT_INIT options.
4297 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
4298 # _LT_ENABLE_FAST_INSTALL
4304 # This is what autoupdate's m4 run will expand. It fires
4305 # the warning (with _au_warn_XXX), outputs it into the
4306 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4307 # the replacement expansion.
4310 # This is an auxiliary macro that is also run when
4311 # autoupdate runs m4. It simply calls m4_warning, but
4312 # we need a wrapper so that each warning is emitted only
4313 # once. We break the quoting in m4_warning's argument in
4314 # order to expand this macro's arguments, not AU_DEFUN's.
4317 # Finally, this is the expansion that is picked up by
4318 # autoconf. It tells the user to run autoupdate, and
4319 # then outputs the replacement expansion. We do not care
4320 # about autoupdate's warning because that contains
4321 # information on what to do *after* running autoupdate.
4324 # This is what autoupdate's m4 run will expand. It fires
4325 # the warning (with _au_warn_XXX), outputs it into the
4326 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4327 # the replacement expansion.
4330 # This is an auxiliary macro that is also run when
4331 # autoupdate runs m4. It simply calls m4_warning, but
4332 # we need a wrapper so that each warning is emitted only
4333 # once. We break the quoting in m4_warning's argument in
4334 # order to expand this macro's arguments, not AU_DEFUN's.
4337 # Finally, this is the expansion that is picked up by
4338 # autoconf. It tells the user to run autoupdate, and
4339 # then outputs the replacement expansion. We do not care
4340 # about autoupdate's warning because that contains
4341 # information on what to do *after* running autoupdate.
4346 # _LT_WITH_PIC([MODE])
4347 # --------------------
4348 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
4350 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
4357 # This is what autoupdate's m4 run will expand. It fires
4358 # the warning (with _au_warn_XXX), outputs it into the
4359 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4360 # the replacement expansion.
4363 # This is an auxiliary macro that is also run when
4364 # autoupdate runs m4. It simply calls m4_warning, but
4365 # we need a wrapper so that each warning is emitted only
4366 # once. We break the quoting in m4_warning's argument in
4367 # order to expand this macro's arguments, not AU_DEFUN's.
4370 # Finally, this is the expansion that is picked up by
4371 # autoconf. It tells the user to run autoupdate, and
4372 # then outputs the replacement expansion. We do not care
4373 # about autoupdate's warning because that contains
4374 # information on what to do *after* running autoupdate.
4378 ## ----------------- ##
4379 ## LTDL_INIT Options ##
4380 ## ----------------- ##
4391 # ltversion.m4 -- version numbers -*- Autoconf -*-
4393 # Copyright (C) 2004 Free Software Foundation, Inc.
4394 # Written by Scott James Remnant, 2004
4396 # This file is free software; the Free Software Foundation gives
4397 # unlimited permission to copy and/or distribute it, with or without
4398 # modifications, as long as this notice is preserved.
4402 # serial 3337 ltversion.m4
4403 # This file is part of GNU Libtool
4410 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
4412 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
4413 # Written by Scott James Remnant, 2004.
4415 # This file is free software; the Free Software Foundation gives
4416 # unlimited permission to copy and/or distribute it, with or without
4417 # modifications, as long as this notice is preserved.
4419 # serial 5 lt~obsolete.m4
4421 # These exist entirely to fool aclocal when bootstrapping libtool.
4423 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
4424 # which have later been changed to m4_define as they aren't part of the
4425 # exported API, or moved to Autoconf or Automake where they belong.
4427 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
4428 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
4429 # using a macro with the same name in our local m4/libtool.m4 it'll
4430 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
4431 # and doesn't know about Autoconf macros at all.)
4433 # So we provide this file, which has a silly filename so it's always
4434 # included after everything else. This provides aclocal with the
4435 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
4436 # because those macros already exist, or will be overwritten later.
4437 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
4439 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
4440 # Yes, that means every name once taken will need to remain here until
4441 # we give up compatibility with versions before 1.7, at which point
4442 # we need to keep only those names which we still refer to.
4444 # This is to help aclocal find these macros, as it can't see m4_define.
4515 apr_ste_save_CPPFLAGS="$CPPFLAGS"
4518 apr_ste_save_CFLAGS="$CFLAGS"
4521 apr_ste_save_LDFLAGS="$LDFLAGS"
4524 apr_ste_save_LIBS="$LIBS"
4527 apr_ste_save_INCLUDES="$INCLUDES"
4532 cat >config.nice<<EOF
4535 # Created by configure
4538 if test -n "$CC"; then
4539 echo "CC=\"$CC\"; export CC" >> config.nice
4541 if test -n "$CFLAGS"; then
4542 echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
4544 if test -n "$CPPFLAGS"; then
4545 echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
4547 if test -n "$LDFLAGS"; then
4548 echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
4550 if test -n "$LTFLAGS"; then
4551 echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
4553 if test -n "$LIBS"; then
4554 echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
4556 if test -n "$INCLUDES"; then
4557 echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
4559 if test -n "$NOTEST_CFLAGS"; then
4560 echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
4562 if test -n "$NOTEST_CPPFLAGS"; then
4563 echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
4565 if test -n "$NOTEST_LDFLAGS"; then
4566 echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
4568 if test -n "$NOTEST_LIBS"; then
4569 echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
4572 # Retrieve command-line arguments.
4573 eval "set x $0 $ac_configure_args"
4581 while test "x${ap_cur}" != "x${ap_last}";
4584 ap_cur=`eval "echo ${ap_cur}"`
4588 echo "\"$arg\" \\" >> config.nice
4590 echo '"$@"' >> config.nice
4591 chmod +x config.nice
4594 # Make sure we can run config.sub.
4595 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4596 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4599 $as_echo_n "checking build system type... " >&6; }
4600 if ${ac_cv_build+:} false; then :
4601 $as_echo_n "(cached) " >&6
4603 ac_build_alias=$build_alias
4604 test "x$ac_build_alias" = x &&
4605 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4606 test "x$ac_build_alias" = x &&
4607 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4608 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4609 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4613 $as_echo "$ac_cv_build" >&6; }
4614 case $ac_cv_build in
4616 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4619 ac_save_IFS=$IFS; IFS='-'
4625 # Remember, the first character of IFS is used to create $*,
4626 # except with old shells:
4629 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4633 $as_echo_n "checking host system type... " >&6; }
4634 if ${ac_cv_host+:} false; then :
4635 $as_echo_n "(cached) " >&6
4637 if test "x$host_alias" = x; then
4638 ac_cv_host=$ac_cv_build
4640 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4641 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4646 $as_echo "$ac_cv_host" >&6; }
4649 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4652 ac_save_IFS=$IFS; IFS='-'
4658 # Remember, the first character of IFS is used to create $*,
4659 # except with old shells:
4662 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4666 $as_echo_n "checking target system type... " >&6; }
4667 if ${ac_cv_target+:} false; then :
4668 $as_echo_n "(cached) " >&6
4670 if test "x$target_alias" = x; then
4671 ac_cv_target=$ac_cv_host
4673 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4674 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4679 $as_echo "$ac_cv_target" >&6; }
4680 case $ac_cv_target in
4682 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4684 target=$ac_cv_target
4685 ac_save_IFS=$IFS; IFS='-'
4691 # Remember, the first character of IFS is used to create $*,
4692 # except with old shells:
4695 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4698 # The aliases save the names the user supplied, while $host etc.
4699 # will get canonicalized.
4700 test -n "$target_alias" &&
4701 test "$program_prefix$program_suffix$program_transform_name" = \
4703 program_prefix=${target_alias}-
4705 echo "Configuring APR library"
4706 echo "Platform: $host"
4710 # Absolute source/build directory
4711 apr_srcdir=`(cd $srcdir && pwd)`
4716 if test "$apr_builddir" != "$apr_srcdir"; then
4718 APR_CONFIG_LOCATION=build
4720 APR_CONFIG_LOCATION=source
4725 # Libtool might need this symbol -- it must point to the location of
4726 # the generated libtool script (not necessarily the "top" build dir).
4728 top_builddir="$apr_builddir"
4731 # Directory containing apr build macros, helpers, and make rules
4732 # NOTE: make rules (apr_rules.mk) will be in the builddir for vpath
4734 apr_buildout=$apr_builddir/build
4735 apr_builders=$apr_srcdir/build
4738 MKDIR=$apr_builders/mkdir.sh
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5
4742 $as_echo_n "checking for working mkdir -p... " >&6; }
4743 if ${ac_cv_mkdir_p+:} false; then :
4744 $as_echo_n "(cached) " >&6
4747 test -d conftestdir && rm -rf conftestdir
4748 mkdir -p conftestdir/somedir >/dev/null 2>&1
4749 if test -d conftestdir/somedir; then
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5
4758 $as_echo "$ac_cv_mkdir_p" >&6; }
4759 if test "$ac_cv_mkdir_p" = "yes"; then
4762 mkdir_p="$apr_builders/mkdir.sh"
4766 # get our version information
4767 get_version="$apr_builders/get-version.sh"
4768 version_hdr="$apr_srcdir/include/apr_version.h"
4769 APR_MAJOR_VERSION="`$get_version major $version_hdr APR`"
4770 APR_DOTTED_VERSION="`$get_version all $version_hdr APR`"
4775 echo "APR Version: ${APR_DOTTED_VERSION}"
4778 # Check whether --enable-layout was given.
4779 if test "${enable_layout+set}" = set; then :
4780 enableval=$enable_layout;
4786 if test -z "$LAYOUT"; then
4790 if test ! -f $srcdir/config.layout; then
4791 echo "** Error: Layout file $srcdir/config.layout not found"
4792 echo "** Error: Cannot use undefined layout '$LAYOUT'"
4795 # Catch layout names including a slash which will otherwise
4796 # confuse the heck out of the sed script.
4799 echo "** Error: $LAYOUT is not a valid layout name"
4802 pldconf=./config.pld
4804 sed -e "1s/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*//;1t" \
4805 -e "1,/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*/d" \
4806 -e '/[ ]*<\/Layout>[ ]*/,$d' \
4808 -e "s/:[ ]*/=\'/g" \
4810 $srcdir/config.layout > $pldconf
4812 if test ! -s $pldconf; then
4813 echo "** Error: unable to find layout $layout_name"
4818 for var in prefix exec_prefix bindir sbindir libexecdir mandir \
4819 sysconfdir datadir includedir localstatedir runtimedir \
4820 logfiledir libdir installbuilddir libsuffix ; do
4821 eval "val=\"\$$var\""
4824 val=`echo $val | sed -e 's;\+$;;'`
4825 eval "$var=\"\$val\""
4832 val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
4833 val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
4834 if test "$autosuffix" = "yes"; then
4835 if echo $val | grep apache >/dev/null; then
4840 if test "$addtarget" = "yes"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5
4850 $as_echo_n "checking for chosen layout... " >&6; }
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5
4852 $as_echo "$layout_name" >&6; }
4856 # Retrieve the command-line arguments. The eval is needed because
4857 # the arguments are quoted to preserve accuracy.
4858 eval "set x $ac_configure_args"
4862 # If the previous option needs an argument, assign it.
4863 if test -n "$ac_prev"; then
4864 eval "$ac_prev=\$ac_option"
4869 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
4873 -bindir | --bindir | --bindi | --bind | --bin | --bi)
4875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
4876 bindir="$ac_optarg" ;;
4878 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
4880 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
4882 datadir="$ac_optarg" ;;
4884 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
4885 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
4886 | --exec | --exe | --ex)
4887 ac_prev=exec_prefix ;;
4888 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
4889 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
4890 | --exec=* | --exe=* | --ex=*)
4891 exec_prefix="$ac_optarg" ;;
4893 -includedir | --includedir | --includedi | --included | --include \
4894 | --includ | --inclu | --incl | --inc)
4895 ac_prev=includedir ;;
4896 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
4897 | --includ=* | --inclu=* | --incl=* | --inc=*)
4898 includedir="$ac_optarg" ;;
4900 -infodir | --infodir | --infodi | --infod | --info | --inf)
4902 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
4903 infodir="$ac_optarg" ;;
4905 -libdir | --libdir | --libdi | --libd)
4907 -libdir=* | --libdir=* | --libdi=* | --libd=*)
4908 libdir="$ac_optarg" ;;
4910 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
4911 | --libexe | --libex | --libe)
4912 ac_prev=libexecdir ;;
4913 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
4914 | --libexe=* | --libex=* | --libe=*)
4915 libexecdir="$ac_optarg" ;;
4917 -localstatedir | --localstatedir | --localstatedi | --localstated \
4918 | --localstate | --localstat | --localsta | --localst \
4919 | --locals | --local | --loca | --loc | --lo)
4920 ac_prev=localstatedir ;;
4921 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
4922 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
4923 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
4924 localstatedir="$ac_optarg" ;;
4926 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
4928 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
4929 mandir="$ac_optarg" ;;
4931 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4933 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4934 prefix="$ac_optarg" ;;
4936 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
4938 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
4940 sbindir="$ac_optarg" ;;
4942 -sharedstatedir | --sharedstatedir | --sharedstatedi \
4943 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
4944 | --sharedst | --shareds | --shared | --share | --shar \
4946 ac_prev=sharedstatedir ;;
4947 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
4948 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
4949 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
4951 sharedstatedir="$ac_optarg" ;;
4953 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
4954 | --syscon | --sysco | --sysc | --sys | --sy)
4955 ac_prev=sysconfdir ;;
4956 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
4957 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
4958 sysconfdir="$ac_optarg" ;;
4963 # Be sure to have absolute paths.
4964 for ac_var in exec_prefix prefix
4966 eval ac_val=$`echo $ac_var`
4968 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
4969 *) as_fn_error $? "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;;
4979 if test -z "$CC"; then
4980 test "x$silent" != "xyes" && echo " setting CC to \"gcc\""
4985 bs2000*-siemens-sysv*)
4987 if test -z "$CC"; then
4988 test "x$silent" != "xyes" && echo " setting CC to \"c89 -XLLML -XLLMK -XL -Kno_integer_overflow\""
4989 CC="c89 -XLLML -XLLMK -XL -Kno_integer_overflow"
4995 if test -z "$CC"; then
4996 test "x$silent" != "xyes" && echo " setting CC to \"cc\""
5003 if test -z "$CC"; then
5004 test "x$silent" != "xyes" && echo " setting CC to \"cc\""
5011 if test -z "$CC"; then
5012 test "x$silent" != "xyes" && echo " setting CC to \"icc\""
5019 if test -z "$CC"; then
5020 test "x$silent" != "xyes" && echo " setting CC to \"gcc\""
5027 if test -z "$CC"; then
5028 test "x$silent" != "xyes" && echo " setting CC to \"cc\""
5035 if test -z "$CC"; then
5036 test "x$silent" != "xyes" && echo " setting CC to \"cc\""
5043 if test -z "$CC"; then
5044 test "x$silent" != "xyes" && echo " setting CC to \"cc -F\""
5051 if test -z "$CC"; then
5052 test "x$silent" != "xyes" && echo " setting CC to \"c89\""
5059 if test -z "$CC"; then
5060 test "x$silent" != "xyes" && echo " setting CC to \"c89\""
5069 ac_cpp='$CPP $CPPFLAGS'
5070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5073 if test -n "$ac_tool_prefix"; then
5074 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5075 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if ${ac_cv_prog_CC+:} false; then :
5079 $as_echo_n "(cached) " >&6
5081 if test -n "$CC"; then
5082 ac_cv_prog_CC="$CC" # Let the user override the test.
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5091 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 if test -n "$CC"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5104 $as_echo "$CC" >&6; }
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5112 if test -z "$ac_cv_prog_CC"; then
5114 # Extract the first word of "gcc", so it can be a program name with args.
5115 set dummy gcc; ac_word=$2
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5119 $as_echo_n "(cached) " >&6
5121 if test -n "$ac_ct_CC"; then
5122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5131 ac_cv_prog_ac_ct_CC="gcc"
5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5142 if test -n "$ac_ct_CC"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5144 $as_echo "$ac_ct_CC" >&6; }
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5150 if test "x$ac_ct_CC" = x; then
5153 case $cross_compiling:$ac_tool_warned in
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5157 ac_tool_warned=yes ;;
5165 if test -z "$CC"; then
5166 if test -n "$ac_tool_prefix"; then
5167 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5168 set dummy ${ac_tool_prefix}cc; ac_word=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if ${ac_cv_prog_CC+:} false; then :
5172 $as_echo_n "(cached) " >&6
5174 if test -n "$CC"; then
5175 ac_cv_prog_CC="$CC" # Let the user override the test.
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184 ac_cv_prog_CC="${ac_tool_prefix}cc"
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 if test -n "$CC"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5197 $as_echo "$CC" >&6; }
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5206 if test -z "$CC"; then
5207 # Extract the first word of "cc", so it can be a program name with args.
5208 set dummy cc; ac_word=$2
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210 $as_echo_n "checking for $ac_word... " >&6; }
5211 if ${ac_cv_prog_CC+:} false; then :
5212 $as_echo_n "(cached) " >&6
5214 if test -n "$CC"; then
5215 ac_cv_prog_CC="$CC" # Let the user override the test.
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5226 ac_prog_rejected=yes
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 if test $ac_prog_rejected = yes; then
5238 # We found a bogon in the path, so make sure we never use it.
5239 set dummy $ac_cv_prog_CC
5241 if test $# != 0; then
5242 # We chose a different compiler from the bogus one.
5243 # However, it has the same basename, so the bogon will be chosen
5244 # first if we set CC to just the basename; use the full file name.
5246 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5252 if test -n "$CC"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5254 $as_echo "$CC" >&6; }
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5262 if test -z "$CC"; then
5263 if test -n "$ac_tool_prefix"; then
5264 for ac_prog in cl.exe
5266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if ${ac_cv_prog_CC+:} false; then :
5271 $as_echo_n "(cached) " >&6
5273 if test -n "$CC"; then
5274 ac_cv_prog_CC="$CC" # Let the user override the test.
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 if test -n "$CC"; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5296 $as_echo "$CC" >&6; }
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5303 test -n "$CC" && break
5306 if test -z "$CC"; then
5308 for ac_prog in cl.exe
5310 # Extract the first word of "$ac_prog", so it can be a program name with args.
5311 set dummy $ac_prog; ac_word=$2
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313 $as_echo_n "checking for $ac_word... " >&6; }
5314 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5315 $as_echo_n "(cached) " >&6
5317 if test -n "$ac_ct_CC"; then
5318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327 ac_cv_prog_ac_ct_CC="$ac_prog"
5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5338 if test -n "$ac_ct_CC"; then
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5340 $as_echo "$ac_ct_CC" >&6; }
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5347 test -n "$ac_ct_CC" && break
5350 if test "x$ac_ct_CC" = x; then
5353 case $cross_compiling:$ac_tool_warned in
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5357 ac_tool_warned=yes ;;
5366 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5368 as_fn_error $? "no acceptable C compiler found in \$PATH
5369 See \`config.log' for more details" "$LINENO" 5; }
5371 # Provide some information about the compiler.
5372 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5375 for ac_option in --version -v -V -qversion; do
5376 { { ac_try="$ac_compiler $ac_option >&5"
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5382 $as_echo "$ac_try_echo"; } >&5
5383 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5385 if test -s conftest.err; then
5387 ... rest of stderr output deleted ...
5388 10q' conftest.err >conftest.er1
5389 cat conftest.er1 >&5
5391 rm -f conftest.er1 conftest.err
5392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5393 test $ac_status = 0; }
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5407 ac_clean_files_save=$ac_clean_files
5408 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5409 # Try to create an executable without -o first, disregard a.out.
5410 # It will help us diagnose broken compilers, and finding out an intuition
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5413 $as_echo_n "checking whether the C compiler works... " >&6; }
5414 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5416 # The possible output files:
5417 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5420 for ac_file in $ac_files
5423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5424 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5429 if { { ac_try="$ac_link_default"
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5435 $as_echo "$ac_try_echo"; } >&5
5436 (eval "$ac_link_default") 2>&5
5438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5439 test $ac_status = 0; }; then :
5440 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5441 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5442 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5443 # so that the user can short-circuit this test for compilers unknown to
5445 for ac_file in $ac_files ''
5447 test -f "$ac_file" || continue
5449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5452 # We found the default executable, but exeext='' is most
5456 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5458 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5460 # We set ac_cv_exeext here because the later test for it is not
5461 # safe: cross compilers may not add the suffix if given an `-o'
5462 # argument, so we may need to know it at that point already.
5463 # Even if this section looks crufty: it has the advantage of
5470 test "$ac_cv_exeext" = no && ac_cv_exeext=
5475 if test -z "$ac_file"; then :
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5478 $as_echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5483 as_fn_error 77 "C compiler cannot create executables
5484 See \`config.log' for more details" "$LINENO" 5; }
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5487 $as_echo "yes" >&6; }
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5490 $as_echo_n "checking for C compiler default output file name... " >&6; }
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5492 $as_echo "$ac_file" >&6; }
5493 ac_exeext=$ac_cv_exeext
5495 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5496 ac_clean_files=$ac_clean_files_save
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5498 $as_echo_n "checking for suffix of executables... " >&6; }
5499 if { { ac_try="$ac_link"
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5505 $as_echo "$ac_try_echo"; } >&5
5506 (eval "$ac_link") 2>&5
5508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5509 test $ac_status = 0; }; then :
5510 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5511 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5512 # work properly (i.e., refer to `conftest.exe'), while it won't with
5514 for ac_file in conftest.exe conftest conftest.*; do
5515 test -f "$ac_file" || continue
5517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5518 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5526 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5527 See \`config.log' for more details" "$LINENO" 5; }
5529 rm -f conftest conftest$ac_cv_exeext
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5531 $as_echo "$ac_cv_exeext" >&6; }
5533 rm -f conftest.$ac_ext
5534 EXEEXT=$ac_cv_exeext
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5542 FILE *f = fopen ("conftest.out", "w");
5543 return ferror (f) || fclose (f) != 0;
5549 ac_clean_files="$ac_clean_files conftest.out"
5550 # Check that the compiler produces executables we can run. If not, either
5551 # the compiler is broken, or we cross compile.
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5553 $as_echo_n "checking whether we are cross compiling... " >&6; }
5554 if test "$cross_compiling" != yes; then
5555 { { ac_try="$ac_link"
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5561 $as_echo "$ac_try_echo"; } >&5
5562 (eval "$ac_link") 2>&5
5564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5565 test $ac_status = 0; }
5566 if { ac_try='./conftest$ac_cv_exeext'
5567 { { case "(($ac_try" in
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5572 $as_echo "$ac_try_echo"; } >&5
5573 (eval "$ac_try") 2>&5
5575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5576 test $ac_status = 0; }; }; then
5579 if test "$cross_compiling" = maybe; then
5582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5584 as_fn_error $? "cannot run C compiled programs.
5585 If you meant to cross compile, use \`--host'.
5586 See \`config.log' for more details" "$LINENO" 5; }
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5591 $as_echo "$cross_compiling" >&6; }
5593 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5594 ac_clean_files=$ac_clean_files_save
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5596 $as_echo_n "checking for suffix of object files... " >&6; }
5597 if ${ac_cv_objext+:} false; then :
5598 $as_echo_n "(cached) " >&6
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5611 rm -f conftest.o conftest.obj
5612 if { { ac_try="$ac_compile"
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5618 $as_echo "$ac_try_echo"; } >&5
5619 (eval "$ac_compile") 2>&5
5621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5622 test $ac_status = 0; }; then :
5623 for ac_file in conftest.o conftest.obj conftest.*; do
5624 test -f "$ac_file" || continue;
5626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5627 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5632 $as_echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5637 as_fn_error $? "cannot compute suffix of object files: cannot compile
5638 See \`config.log' for more details" "$LINENO" 5; }
5640 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5643 $as_echo "$ac_cv_objext" >&6; }
5644 OBJEXT=$ac_cv_objext
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5647 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5648 if ${ac_cv_c_compiler_gnu+:} false; then :
5649 $as_echo_n "(cached) " >&6
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5665 if ac_fn_c_try_compile "$LINENO"; then :
5670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5675 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5676 if test $ac_compiler_gnu = yes; then
5681 ac_test_CFLAGS=${CFLAGS+set}
5682 ac_save_CFLAGS=$CFLAGS
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5684 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5685 if ${ac_cv_prog_cc_g+:} false; then :
5686 $as_echo_n "(cached) " >&6
5688 ac_save_c_werror_flag=$ac_c_werror_flag
5689 ac_c_werror_flag=yes
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5703 if ac_fn_c_try_compile "$LINENO"; then :
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5718 if ac_fn_c_try_compile "$LINENO"; then :
5721 ac_c_werror_flag=$ac_save_c_werror_flag
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5734 if ac_fn_c_try_compile "$LINENO"; then :
5737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742 ac_c_werror_flag=$ac_save_c_werror_flag
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5745 $as_echo "$ac_cv_prog_cc_g" >&6; }
5746 if test "$ac_test_CFLAGS" = set; then
5747 CFLAGS=$ac_save_CFLAGS
5748 elif test $ac_cv_prog_cc_g = yes; then
5749 if test "$GCC" = yes; then
5755 if test "$GCC" = yes; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5762 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5763 if ${ac_cv_prog_cc_c89+:} false; then :
5764 $as_echo_n "(cached) " >&6
5766 ac_cv_prog_cc_c89=no
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5773 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5774 struct buf { int x; };
5775 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5776 static char *e (p, i)
5782 static char *f (char * (*g) (char **, int), char **p, ...)
5787 s = g (p, va_arg (v,int));
5792 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5793 function prototypes and stuff, but not '\xHH' hex character constants.
5794 These don't provoke an error unfortunately, instead are silently treated
5795 as 'x'. The following induces an error, until -std is added to get
5796 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5797 array size at least. It's necessary to write '\x00'==0 to get something
5798 that's true only with -std. */
5799 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5801 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5802 inside strings and character constants. */
5804 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5806 int test (int i, double x);
5807 struct s1 {int (*f) (int a);};
5808 struct s2 {int (*f) (double a);};
5809 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5815 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5820 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5821 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5823 CC="$ac_save_CC $ac_arg"
5824 if ac_fn_c_try_compile "$LINENO"; then :
5825 ac_cv_prog_cc_c89=$ac_arg
5827 rm -f core conftest.err conftest.$ac_objext
5828 test "x$ac_cv_prog_cc_c89" != "xno" && break
5830 rm -f conftest.$ac_ext
5835 case "x$ac_cv_prog_cc_c89" in
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5838 $as_echo "none needed" >&6; } ;;
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5841 $as_echo "unsupported" >&6; } ;;
5843 CC="$CC $ac_cv_prog_cc_c89"
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5845 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5847 if test "x$ac_cv_prog_cc_c89" != xno; then :
5852 ac_cpp='$CPP $CPPFLAGS'
5853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5859 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5860 if ${ac_cv_path_SED+:} false; then :
5861 $as_echo_n "(cached) " >&6
5863 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5864 for ac_i in 1 2 3 4 5 6 7; do
5865 ac_script="$ac_script$as_nl$ac_script"
5867 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5868 { ac_script=; unset ac_script;}
5869 if test -z "$SED"; then
5870 ac_path_SED_found=false
5871 # Loop through the user's path and test for each of PROGNAME-LIST
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_prog in sed gsed; do
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5880 as_fn_executable_p "$ac_path_SED" || continue
5881 # Check for GNU ac_path_SED and select it if it is found.
5882 # Check for GNU $ac_path_SED
5883 case `"$ac_path_SED" --version 2>&1` in
5885 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5888 $as_echo_n 0123456789 >"conftest.in"
5891 cat "conftest.in" "conftest.in" >"conftest.tmp"
5892 mv "conftest.tmp" "conftest.in"
5893 cp "conftest.in" "conftest.nl"
5894 $as_echo '' >> "conftest.nl"
5895 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5896 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5897 as_fn_arith $ac_count + 1 && ac_count=$as_val
5898 if test $ac_count -gt ${ac_path_SED_max-0}; then
5899 # Best one so far, save it but keep looking for a better one
5900 ac_cv_path_SED="$ac_path_SED"
5901 ac_path_SED_max=$ac_count
5903 # 10*(2^10) chars as input seems more than enough
5904 test $ac_count -gt 10 && break
5906 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5909 $ac_path_SED_found && break 3
5914 if test -z "$ac_cv_path_SED"; then
5915 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5923 $as_echo "$ac_cv_path_SED" >&6; }
5924 SED="$ac_cv_path_SED"
5929 if test "x$apr_preload_done" != "xyes" ; then
5931 apr_preload_done="yes"
5933 echo "Applying APR hints file rules for $host"
5938 if test "x$CPPFLAGS" = "x"; then
5939 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DMINT -D_GNU_SOURCE\""
5940 CPPFLAGS="-DMINT -D_GNU_SOURCE"
5942 apr_addto_bugger="-DMINT -D_GNU_SOURCE"
5943 for i in $apr_addto_bugger; do
5944 apr_addto_duplicate="0"
5945 for j in $CPPFLAGS; do
5946 if test "x$i" = "x$j"; then
5947 apr_addto_duplicate="1"
5951 if test $apr_addto_duplicate = "0"; then
5952 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
5953 CPPFLAGS="$CPPFLAGS $i"
5961 if test "x$CPPFLAGS" = "x"; then
5962 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE\""
5963 CPPFLAGS="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
5965 apr_addto_bugger="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
5966 for i in $apr_addto_bugger; do
5967 apr_addto_duplicate="0"
5968 for j in $CPPFLAGS; do
5969 if test "x$i" = "x$j"; then
5970 apr_addto_duplicate="1"
5974 if test $apr_addto_duplicate = "0"; then
5975 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
5976 CPPFLAGS="$CPPFLAGS $i"
5982 if test "x$LIBS" = "x"; then
5983 test "x$silent" != "xyes" && echo " setting LIBS to \"-lsvipc -lcurses\""
5984 LIBS="-lsvipc -lcurses"
5986 apr_addto_bugger="-lsvipc -lcurses"
5987 for i in $apr_addto_bugger; do
5988 apr_addto_duplicate="0"
5990 if test "x$i" = "x$j"; then
5991 apr_addto_duplicate="1"
5995 if test $apr_addto_duplicate = "0"; then
5996 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
6003 if test "x$LDFLAGS" = "x"; then
6004 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\"\""
6005 LDFLAGS="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
6007 apr_addto_bugger="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
6008 for i in $apr_addto_bugger; do
6009 apr_addto_duplicate="0"
6010 for j in $LDFLAGS; do
6011 if test "x$i" = "x$j"; then
6012 apr_addto_duplicate="1"
6016 if test $apr_addto_duplicate = "0"; then
6017 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
6018 LDFLAGS="$LDFLAGS $i"
6026 if test "x$CPPFLAGS" = "x"; then
6027 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAUX3 -D_POSIX_SOURCE\""
6028 CPPFLAGS="-DAUX3 -D_POSIX_SOURCE"
6030 apr_addto_bugger="-DAUX3 -D_POSIX_SOURCE"
6031 for i in $apr_addto_bugger; do
6032 apr_addto_duplicate="0"
6033 for j in $CPPFLAGS; do
6034 if test "x$i" = "x$j"; then
6035 apr_addto_duplicate="1"
6039 if test $apr_addto_duplicate = "0"; then
6040 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6041 CPPFLAGS="$CPPFLAGS $i"
6047 if test "x$LIBS" = "x"; then
6048 test "x$silent" != "xyes" && echo " setting LIBS to \"-lposix -lbsd\""
6049 LIBS="-lposix -lbsd"
6051 apr_addto_bugger="-lposix -lbsd"
6052 for i in $apr_addto_bugger; do
6053 apr_addto_duplicate="0"
6055 if test "x$i" = "x$j"; then
6056 apr_addto_duplicate="1"
6060 if test $apr_addto_duplicate = "0"; then
6061 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
6068 if test "x$LDFLAGS" = "x"; then
6069 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-s\""
6072 apr_addto_bugger="-s"
6073 for i in $apr_addto_bugger; do
6074 apr_addto_duplicate="0"
6075 for j in $LDFLAGS; do
6076 if test "x$i" = "x$j"; then
6077 apr_addto_duplicate="1"
6081 if test $apr_addto_duplicate = "0"; then
6082 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
6083 LDFLAGS="$LDFLAGS $i"
6089 test "x$silent" != "xyes" && echo " forcing SHELL to \"/bin/ksh\""
6095 if test "x$CPPFLAGS" = "x"; then
6096 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-U__STR__ -D_THREAD_SAFE\""
6097 CPPFLAGS="-U__STR__ -D_THREAD_SAFE"
6099 apr_addto_bugger="-U__STR__ -D_THREAD_SAFE"
6100 for i in $apr_addto_bugger; do
6101 apr_addto_duplicate="0"
6102 for j in $CPPFLAGS; do
6103 if test "x$i" = "x$j"; then
6104 apr_addto_duplicate="1"
6108 if test $apr_addto_duplicate = "0"; then
6109 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6110 CPPFLAGS="$CPPFLAGS $i"
6118 if test "x$CPPFLAGS" = "x"; then
6119 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_USE_IRS\""
6120 CPPFLAGS="-D_USE_IRS"
6122 apr_addto_bugger="-D_USE_IRS"
6123 for i in $apr_addto_bugger; do
6124 apr_addto_duplicate="0"
6125 for j in $CPPFLAGS; do
6126 if test "x$i" = "x$j"; then
6127 apr_addto_duplicate="1"
6131 if test $apr_addto_duplicate = "0"; then
6132 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6133 CPPFLAGS="$CPPFLAGS $i"
6141 if test "x$CPPFLAGS" = "x"; then
6142 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_USE_IRS\""
6143 CPPFLAGS="-D_USE_IRS"
6145 apr_addto_bugger="-D_USE_IRS"
6146 for i in $apr_addto_bugger; do
6147 apr_addto_duplicate="0"
6148 for j in $CPPFLAGS; do
6149 if test "x$i" = "x$j"; then
6150 apr_addto_duplicate="1"
6154 if test $apr_addto_duplicate = "0"; then
6155 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6156 CPPFLAGS="$CPPFLAGS $i"
6164 if test "x$CPPFLAGS" = "x"; then
6165 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_USE_IRS\""
6166 CPPFLAGS="-D_USE_IRS"
6168 apr_addto_bugger="-D_USE_IRS"
6169 for i in $apr_addto_bugger; do
6170 apr_addto_duplicate="0"
6171 for j in $CPPFLAGS; do
6172 if test "x$i" = "x$j"; then
6173 apr_addto_duplicate="1"
6177 if test $apr_addto_duplicate = "0"; then
6178 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6179 CPPFLAGS="$CPPFLAGS $i"
6186 if $CC 2>&1 | grep 'xlc' > /dev/null; then
6188 if test -z "$AIX_XLC"; then
6189 test "x$silent" != "xyes" && echo " setting AIX_XLC to \"yes\""
6194 if test "x$CFLAGS" = "x"; then
6195 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-qHALT=E\""
6198 apr_addto_bugger="-qHALT=E"
6199 for i in $apr_addto_bugger; do
6200 apr_addto_duplicate="0"
6201 for j in $CFLAGS; do
6202 if test "x$i" = "x$j"; then
6203 apr_addto_duplicate="1"
6207 if test $apr_addto_duplicate = "0"; then
6208 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
6216 if test -z "$apr_sysvsem_is_global"; then
6217 test "x$silent" != "xyes" && echo " setting apr_sysvsem_is_global to \"yes\""
6218 apr_sysvsem_is_global="yes"
6222 if test -z "$apr_lock_method"; then
6223 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
6224 apr_lock_method="USE_SYSVSEM_SERIALIZE"
6228 *-ibm-aix3* | *-ibm-aix4.1.*)
6232 if test "x$LDFLAGS" = "x"; then
6233 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Wl,-brtl\""
6236 apr_addto_bugger="-Wl,-brtl"
6237 for i in $apr_addto_bugger; do
6238 apr_addto_duplicate="0"
6239 for j in $LDFLAGS; do
6240 if test "x$i" = "x$j"; then
6241 apr_addto_duplicate="1"
6245 if test $apr_addto_duplicate = "0"; then
6246 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
6247 LDFLAGS="$LDFLAGS $i"
6257 if test "x$CPPFLAGS" = "x"; then
6258 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPOLLO\""
6261 apr_addto_bugger="-DAPOLLO"
6262 for i in $apr_addto_bugger; do
6263 apr_addto_duplicate="0"
6264 for j in $CPPFLAGS; do
6265 if test "x$i" = "x$j"; then
6266 apr_addto_duplicate="1"
6270 if test $apr_addto_duplicate = "0"; then
6271 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6272 CPPFLAGS="$CPPFLAGS $i"
6280 if test "x$CPPFLAGS" = "x"; then
6281 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DDGUX\""
6284 apr_addto_bugger="-DDGUX"
6285 for i in $apr_addto_bugger; do
6286 apr_addto_duplicate="0"
6287 for j in $CPPFLAGS; do
6288 if test "x$i" = "x$j"; then
6289 apr_addto_duplicate="1"
6293 if test $apr_addto_duplicate = "0"; then
6294 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6295 CPPFLAGS="$CPPFLAGS $i"
6303 test "x$silent" != "xyes" && echo " forcing SHELL to \"sh\""
6307 if test -z "$apr_gethostbyname_is_thread_safe"; then
6308 test "x$silent" != "xyes" && echo " setting apr_gethostbyname_is_thread_safe to \"yes\""
6309 apr_gethostbyname_is_thread_safe="yes"
6313 if test -z "$apr_gethostbyaddr_is_thread_safe"; then
6314 test "x$silent" != "xyes" && echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\""
6315 apr_gethostbyaddr_is_thread_safe="yes"
6319 if test -z "$apr_getservbyname_is_thread_safe"; then
6320 test "x$silent" != "xyes" && echo " setting apr_getservbyname_is_thread_safe to \"yes\""
6321 apr_getservbyname_is_thread_safe="yes"
6327 if test "x$CPPFLAGS" = "x"; then
6328 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DHIUX\""
6331 apr_addto_bugger="-DHIUX"
6332 for i in $apr_addto_bugger; do
6333 apr_addto_duplicate="0"
6334 for j in $CPPFLAGS; do
6335 if test "x$i" = "x$j"; then
6336 apr_addto_duplicate="1"
6340 if test $apr_addto_duplicate = "0"; then
6341 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6342 CPPFLAGS="$CPPFLAGS $i"
6350 if test "x$CPPFLAGS" = "x"; then
6351 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE\""
6352 CPPFLAGS="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
6354 apr_addto_bugger="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
6355 for i in $apr_addto_bugger; do
6356 apr_addto_duplicate="0"
6357 for j in $CPPFLAGS; do
6358 if test "x$i" = "x$j"; then
6359 apr_addto_duplicate="1"
6363 if test $apr_addto_duplicate = "0"; then
6364 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6365 CPPFLAGS="$CPPFLAGS $i"
6375 if test "x$CPPFLAGS" = "x"; then
6376 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSELECT_NEEDS_CAST\""
6377 CPPFLAGS="-DSELECT_NEEDS_CAST"
6379 apr_addto_bugger="-DSELECT_NEEDS_CAST"
6380 for i in $apr_addto_bugger; do
6381 apr_addto_duplicate="0"
6382 for j in $CPPFLAGS; do
6383 if test "x$i" = "x$j"; then
6384 apr_addto_duplicate="1"
6388 if test $apr_addto_duplicate = "0"; then
6389 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6390 CPPFLAGS="$CPPFLAGS $i"
6398 if test "x$CPPFLAGS" = "x"; then
6399 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_REENTRANT\""
6400 CPPFLAGS="-D_REENTRANT"
6402 apr_addto_bugger="-D_REENTRANT"
6403 for i in $apr_addto_bugger; do
6404 apr_addto_duplicate="0"
6405 for j in $CPPFLAGS; do
6406 if test "x$i" = "x$j"; then
6407 apr_addto_duplicate="1"
6411 if test $apr_addto_duplicate = "0"; then
6412 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6413 CPPFLAGS="$CPPFLAGS $i"
6421 if test "x$CPPFLAGS" = "x"; then
6422 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DHPUX -D_REENTRANT\""
6423 CPPFLAGS="-DHPUX -D_REENTRANT"
6425 apr_addto_bugger="-DHPUX -D_REENTRANT"
6426 for i in $apr_addto_bugger; do
6427 apr_addto_duplicate="0"
6428 for j in $CPPFLAGS; do
6429 if test "x$i" = "x$j"; then
6430 apr_addto_duplicate="1"
6434 if test $apr_addto_duplicate = "0"; then
6435 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6436 CPPFLAGS="$CPPFLAGS $i"
6444 if test "x$CPPFLAGS" = "x"; then
6445 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DLINUX -D_REENTRANT -D_GNU_SOURCE\""
6446 CPPFLAGS="-DLINUX -D_REENTRANT -D_GNU_SOURCE"
6448 apr_addto_bugger="-DLINUX -D_REENTRANT -D_GNU_SOURCE"
6449 for i in $apr_addto_bugger; do
6450 apr_addto_duplicate="0"
6451 for j in $CPPFLAGS; do
6452 if test "x$i" = "x$j"; then
6453 apr_addto_duplicate="1"
6457 if test $apr_addto_duplicate = "0"; then
6458 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6459 CPPFLAGS="$CPPFLAGS $i"
6467 if test "x$CPPFLAGS" = "x"; then
6468 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D__NO_INCLUDE_WARN__ -DLYNXOS\""
6469 CPPFLAGS="-D__NO_INCLUDE_WARN__ -DLYNXOS"
6471 apr_addto_bugger="-D__NO_INCLUDE_WARN__ -DLYNXOS"
6472 for i in $apr_addto_bugger; do
6473 apr_addto_duplicate="0"
6474 for j in $CPPFLAGS; do
6475 if test "x$i" = "x$j"; then
6476 apr_addto_duplicate="1"
6480 if test $apr_addto_duplicate = "0"; then
6481 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6482 CPPFLAGS="$CPPFLAGS $i"
6488 if test "x$LIBS" = "x"; then
6489 test "x$silent" != "xyes" && echo " setting LIBS to \"-lbsd\""
6492 apr_addto_bugger="-lbsd"
6493 for i in $apr_addto_bugger; do
6494 apr_addto_duplicate="0"
6496 if test "x$i" = "x$j"; then
6497 apr_addto_duplicate="1"
6501 if test $apr_addto_duplicate = "0"; then
6502 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
6511 if test "x$CFLAGS" = "x"; then
6512 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-m486\""
6515 apr_addto_bugger="-m486"
6516 for i in $apr_addto_bugger; do
6517 apr_addto_duplicate="0"
6518 for j in $CFLAGS; do
6519 if test "x$i" = "x$j"; then
6520 apr_addto_duplicate="1"
6524 if test $apr_addto_duplicate = "0"; then
6525 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
6536 if test "x$CFLAGS" = "x"; then
6537 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-D_REENTRANT\""
6538 CFLAGS="-D_REENTRANT"
6540 apr_addto_bugger="-D_REENTRANT"
6541 for i in $apr_addto_bugger; do
6542 apr_addto_duplicate="0"
6543 for j in $CFLAGS; do
6544 if test "x$i" = "x$j"; then
6545 apr_addto_duplicate="1"
6549 if test $apr_addto_duplicate = "0"; then
6550 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
6561 if test "x$CPPFLAGS" = "x"; then
6562 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_POSIX_THREADS\""
6563 CPPFLAGS="-D_POSIX_THREADS"
6565 apr_addto_bugger="-D_POSIX_THREADS"
6566 for i in $apr_addto_bugger; do
6567 apr_addto_duplicate="0"
6568 for j in $CPPFLAGS; do
6569 if test "x$i" = "x$j"; then
6570 apr_addto_duplicate="1"
6574 if test $apr_addto_duplicate = "0"; then
6575 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6576 CPPFLAGS="$CPPFLAGS $i"
6581 # binding to an ephemeral port fails on OpenBSD so override
6582 # the test for O_NONBLOCK inheritance across accept().
6584 if test -z "$ac_cv_o_nonblock_inherited"; then
6585 test "x$silent" != "xyes" && echo " setting ac_cv_o_nonblock_inherited to \"yes\""
6586 ac_cv_o_nonblock_inherited="yes"
6592 if test "x$CPPFLAGS" = "x"; then
6593 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNETBSD\""
6596 apr_addto_bugger="-DNETBSD"
6597 for i in $apr_addto_bugger; do
6598 apr_addto_duplicate="0"
6599 for j in $CPPFLAGS; do
6600 if test "x$i" = "x$j"; then
6601 apr_addto_duplicate="1"
6605 if test $apr_addto_duplicate = "0"; then
6606 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6607 CPPFLAGS="$CPPFLAGS $i"
6612 # fcntl() lies about O_NONBLOCK on an accept()ed socket (PR kern/26950)
6614 if test -z "$ac_cv_o_nonblock_inherited"; then
6615 test "x$silent" != "xyes" && echo " setting ac_cv_o_nonblock_inherited to \"yes\""
6616 ac_cv_o_nonblock_inherited="yes"
6622 if test -z "$apr_lock_method"; then
6623 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_FLOCK_SERIALIZE\""
6624 apr_lock_method="USE_FLOCK_SERIALIZE"
6627 if test -x /sbin/sysctl; then
6628 os_version=`/sbin/sysctl -n kern.osreldate`
6632 # 502102 is when libc_r switched to libpthread (aka libkse).
6633 if test $os_version -ge "502102"; then
6634 apr_cv_pthreads_cflags="none"
6635 apr_cv_pthreads_lib="-lpthread"
6638 if test "x$CPPFLAGS" = "x"; then
6639 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_THREAD_SAFE -D_REENTRANT\""
6640 CPPFLAGS="-D_THREAD_SAFE -D_REENTRANT"
6642 apr_addto_bugger="-D_THREAD_SAFE -D_REENTRANT"
6643 for i in $apr_addto_bugger; do
6644 apr_addto_duplicate="0"
6645 for j in $CPPFLAGS; do
6646 if test "x$i" = "x$j"; then
6647 apr_addto_duplicate="1"
6651 if test $apr_addto_duplicate = "0"; then
6652 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6653 CPPFLAGS="$CPPFLAGS $i"
6659 if test -z "$enable_threads"; then
6660 test "x$silent" != "xyes" && echo " setting enable_threads to \"no\""
6665 # prevent use of KQueue before FreeBSD 4.8
6666 if test $os_version -lt "480000"; then
6668 if test -z "$ac_cv_func_kqueue"; then
6669 test "x$silent" != "xyes" && echo " setting ac_cv_func_kqueue to \"no\""
6670 ac_cv_func_kqueue="no"
6677 if test "x$CPPFLAGS" = "x"; then
6678 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE\""
6679 CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE"
6681 apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE"
6682 for i in $apr_addto_bugger; do
6683 apr_addto_duplicate="0"
6684 for j in $CPPFLAGS; do
6685 if test "x$i" = "x$j"; then
6686 apr_addto_duplicate="1"
6690 if test $apr_addto_duplicate = "0"; then
6691 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6692 CPPFLAGS="$CPPFLAGS $i"
6700 if test "x$CPPFLAGS" = "x"; then
6701 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE -DHURD\""
6702 CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE -DHURD"
6704 apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE -DHURD"
6705 for i in $apr_addto_bugger; do
6706 apr_addto_duplicate="0"
6707 for j in $CPPFLAGS; do
6708 if test "x$i" = "x$j"; then
6709 apr_addto_duplicate="1"
6713 if test $apr_addto_duplicate = "0"; then
6714 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6715 CPPFLAGS="$CPPFLAGS $i"
6723 if test -z "$CFLAGS"; then
6724 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
6729 if test "x$CPPFLAGS" = "x"; then
6730 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNEXT\""
6733 apr_addto_bugger="-DNEXT"
6734 for i in $apr_addto_bugger; do
6735 apr_addto_duplicate="0"
6736 for j in $CPPFLAGS; do
6737 if test "x$i" = "x$j"; then
6738 apr_addto_duplicate="1"
6742 if test $apr_addto_duplicate = "0"; then
6743 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6744 CPPFLAGS="$CPPFLAGS $i"
6752 if test -z "$CFLAGS"; then
6753 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
6758 if test "x$CPPFLAGS" = "x"; then
6759 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNEXT\""
6762 apr_addto_bugger="-DNEXT"
6763 for i in $apr_addto_bugger; do
6764 apr_addto_duplicate="0"
6765 for j in $CPPFLAGS; do
6766 if test "x$i" = "x$j"; then
6767 apr_addto_duplicate="1"
6771 if test $apr_addto_duplicate = "0"; then
6772 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6773 CPPFLAGS="$CPPFLAGS $i"
6781 if test "x$CPPFLAGS" = "x"; then
6782 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DRHAPSODY\""
6783 CPPFLAGS="-DRHAPSODY"
6785 apr_addto_bugger="-DRHAPSODY"
6786 for i in $apr_addto_bugger; do
6787 apr_addto_duplicate="0"
6788 for j in $CPPFLAGS; do
6789 if test "x$i" = "x$j"; then
6790 apr_addto_duplicate="1"
6794 if test $apr_addto_duplicate = "0"; then
6795 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6796 CPPFLAGS="$CPPFLAGS $i"
6804 if test "x$CPPFLAGS" = "x"; then
6805 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK\""
6806 CPPFLAGS="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK"
6808 apr_addto_bugger="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK"
6809 for i in $apr_addto_bugger; do
6810 apr_addto_duplicate="0"
6811 for j in $CPPFLAGS; do
6812 if test "x$i" = "x$j"; then
6813 apr_addto_duplicate="1"
6817 if test $apr_addto_duplicate = "0"; then
6818 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6819 CPPFLAGS="$CPPFLAGS $i"
6825 if test -z "$apr_posixsem_is_global"; then
6826 test "x$silent" != "xyes" && echo " setting apr_posixsem_is_global to \"yes\""
6827 apr_posixsem_is_global="yes"
6831 *-apple-darwin[1-9].*)
6832 # APR's use of kqueue has triggered kernel panics for some
6833 # 10.5.x (Darwin 9.x) users when running the entire test suite.
6834 # In 10.4.x, use of kqueue would cause the socket tests to hang.
6835 # 10.6+ (Darwin 10.x is supposed to fix the KQueue issues
6837 if test -z "$ac_cv_func_kqueue"; then
6838 test "x$silent" != "xyes" && echo " setting ac_cv_func_kqueue to \"no\""
6839 ac_cv_func_kqueue="no"
6843 if test -z "$ac_cv_func_poll"; then
6844 test "x$silent" != "xyes" && echo " setting ac_cv_func_poll to \"no\""
6845 ac_cv_func_poll="no"
6851 if test "x$CPPFLAGS" = "x"; then
6852 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DDARWIN_10\""
6853 CPPFLAGS="-DDARWIN_10"
6855 apr_addto_bugger="-DDARWIN_10"
6856 for i in $apr_addto_bugger; do
6857 apr_addto_duplicate="0"
6858 for j in $CPPFLAGS; do
6859 if test "x$i" = "x$j"; then
6860 apr_addto_duplicate="1"
6864 if test $apr_addto_duplicate = "0"; then
6865 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6866 CPPFLAGS="$CPPFLAGS $i"
6876 if test "x$CPPFLAGS" = "x"; then
6877 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DOSF1\""
6880 apr_addto_bugger="-DOSF1"
6881 for i in $apr_addto_bugger; do
6882 apr_addto_duplicate="0"
6883 for j in $CPPFLAGS; do
6884 if test "x$i" = "x$j"; then
6885 apr_addto_duplicate="1"
6889 if test $apr_addto_duplicate = "0"; then
6890 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6891 CPPFLAGS="$CPPFLAGS $i"
6896 # process-shared mutexes don't seem to work in Tru64 5.0
6898 if test -z "$apr_cv_process_shared_works"; then
6899 test "x$silent" != "xyes" && echo " setting apr_cv_process_shared_works to \"no\""
6900 apr_cv_process_shared_works="no"
6908 if test "x$CPPFLAGS" = "x"; then
6909 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DQNX\""
6912 apr_addto_bugger="-DQNX"
6913 for i in $apr_addto_bugger; do
6914 apr_addto_duplicate="0"
6915 for j in $CPPFLAGS; do
6916 if test "x$i" = "x$j"; then
6917 apr_addto_duplicate="1"
6921 if test $apr_addto_duplicate = "0"; then
6922 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6923 CPPFLAGS="$CPPFLAGS $i"
6929 if test "x$LIBS" = "x"; then
6930 test "x$silent" != "xyes" && echo " setting LIBS to \"-N128k -lunix\""
6931 LIBS="-N128k -lunix"
6933 apr_addto_bugger="-N128k -lunix"
6934 for i in $apr_addto_bugger; do
6935 apr_addto_duplicate="0"
6937 if test "x$i" = "x$j"; then
6938 apr_addto_duplicate="1"
6942 if test $apr_addto_duplicate = "0"; then
6943 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
6952 if test "x$CPPFLAGS" = "x"; then
6953 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DQNX\""
6956 apr_addto_bugger="-DQNX"
6957 for i in $apr_addto_bugger; do
6958 apr_addto_duplicate="0"
6959 for j in $CPPFLAGS; do
6960 if test "x$i" = "x$j"; then
6961 apr_addto_duplicate="1"
6965 if test $apr_addto_duplicate = "0"; then
6966 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6967 CPPFLAGS="$CPPFLAGS $i"
6973 if test "x$CFLAGS" = "x"; then
6974 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-mf -3\""
6977 apr_addto_bugger="-mf -3"
6978 for i in $apr_addto_bugger; do
6979 apr_addto_duplicate="0"
6980 for j in $CFLAGS; do
6981 if test "x$i" = "x$j"; then
6982 apr_addto_duplicate="1"
6986 if test $apr_addto_duplicate = "0"; then
6987 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
6994 if test "x$LIBS" = "x"; then
6995 test "x$silent" != "xyes" && echo " setting LIBS to \"-N128k -lunix\""
6996 LIBS="-N128k -lunix"
6998 apr_addto_bugger="-N128k -lunix"
6999 for i in $apr_addto_bugger; do
7000 apr_addto_duplicate="0"
7002 if test "x$i" = "x$j"; then
7003 apr_addto_duplicate="1"
7007 if test $apr_addto_duplicate = "0"; then
7008 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7017 if test "x$CPPFLAGS" = "x"; then
7018 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-posix -DISC\""
7019 CPPFLAGS="-posix -DISC"
7021 apr_addto_bugger="-posix -DISC"
7022 for i in $apr_addto_bugger; do
7023 apr_addto_duplicate="0"
7024 for j in $CPPFLAGS; do
7025 if test "x$i" = "x$j"; then
7026 apr_addto_duplicate="1"
7030 if test $apr_addto_duplicate = "0"; then
7031 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7032 CPPFLAGS="$CPPFLAGS $i"
7038 if test "x$LDFLAGS" = "x"; then
7039 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-posix\""
7042 apr_addto_bugger="-posix"
7043 for i in $apr_addto_bugger; do
7044 apr_addto_duplicate="0"
7045 for j in $LDFLAGS; do
7046 if test "x$i" = "x$j"; then
7047 apr_addto_duplicate="1"
7051 if test $apr_addto_duplicate = "0"; then
7052 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
7053 LDFLAGS="$LDFLAGS $i"
7059 if test "x$LIBS" = "x"; then
7060 test "x$silent" != "xyes" && echo " setting LIBS to \"-linet\""
7063 apr_addto_bugger="-linet"
7064 for i in $apr_addto_bugger; do
7065 apr_addto_duplicate="0"
7067 if test "x$i" = "x$j"; then
7068 apr_addto_duplicate="1"
7072 if test $apr_addto_duplicate = "0"; then
7073 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7082 if test "x$CPPFLAGS" = "x"; then
7083 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
7084 CPPFLAGS="-DSCO -D_REENTRANT"
7086 apr_addto_bugger="-DSCO -D_REENTRANT"
7087 for i in $apr_addto_bugger; do
7088 apr_addto_duplicate="0"
7089 for j in $CPPFLAGS; do
7090 if test "x$i" = "x$j"; then
7091 apr_addto_duplicate="1"
7095 if test $apr_addto_duplicate = "0"; then
7096 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7097 CPPFLAGS="$CPPFLAGS $i"
7102 if test "$GCC" = "no"; then
7104 if test "x$CFLAGS" = "x"; then
7105 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Oacgiltz\""
7108 apr_addto_bugger="-Oacgiltz"
7109 for i in $apr_addto_bugger; do
7110 apr_addto_duplicate="0"
7111 for j in $CFLAGS; do
7112 if test "x$i" = "x$j"; then
7113 apr_addto_duplicate="1"
7117 if test $apr_addto_duplicate = "0"; then
7118 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
7126 if test "x$LIBS" = "x"; then
7127 test "x$silent" != "xyes" && echo " setting LIBS to \"-lPW -lmalloc\""
7128 LIBS="-lPW -lmalloc"
7130 apr_addto_bugger="-lPW -lmalloc"
7131 for i in $apr_addto_bugger; do
7132 apr_addto_duplicate="0"
7134 if test "x$i" = "x$j"; then
7135 apr_addto_duplicate="1"
7139 if test $apr_addto_duplicate = "0"; then
7140 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7149 if test "x$CPPFLAGS" = "x"; then
7150 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSCO5 -D_REENTRANT\""
7151 CPPFLAGS="-DSCO5 -D_REENTRANT"
7153 apr_addto_bugger="-DSCO5 -D_REENTRANT"
7154 for i in $apr_addto_bugger; do
7155 apr_addto_duplicate="0"
7156 for j in $CPPFLAGS; do
7157 if test "x$i" = "x$j"; then
7158 apr_addto_duplicate="1"
7162 if test $apr_addto_duplicate = "0"; then
7163 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7164 CPPFLAGS="$CPPFLAGS $i"
7170 *-sco_sv*|*-SCO_SV*)
7172 if test "x$CPPFLAGS" = "x"; then
7173 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
7174 CPPFLAGS="-DSCO -D_REENTRANT"
7176 apr_addto_bugger="-DSCO -D_REENTRANT"
7177 for i in $apr_addto_bugger; do
7178 apr_addto_duplicate="0"
7179 for j in $CPPFLAGS; do
7180 if test "x$i" = "x$j"; then
7181 apr_addto_duplicate="1"
7185 if test $apr_addto_duplicate = "0"; then
7186 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7187 CPPFLAGS="$CPPFLAGS $i"
7193 if test "x$LIBS" = "x"; then
7194 test "x$silent" != "xyes" && echo " setting LIBS to \"-lPW -lmalloc\""
7195 LIBS="-lPW -lmalloc"
7197 apr_addto_bugger="-lPW -lmalloc"
7198 for i in $apr_addto_bugger; do
7199 apr_addto_duplicate="0"
7201 if test "x$i" = "x$j"; then
7202 apr_addto_duplicate="1"
7206 if test $apr_addto_duplicate = "0"; then
7207 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7215 PLATOSVERS=`echo $host | sed 's/^.*solaris2.//'`
7217 if test "x$CPPFLAGS" = "x"; then
7218 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT\""
7219 CPPFLAGS="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
7221 apr_addto_bugger="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
7222 for i in $apr_addto_bugger; do
7223 apr_addto_duplicate="0"
7224 for j in $CPPFLAGS; do
7225 if test "x$i" = "x$j"; then
7226 apr_addto_duplicate="1"
7230 if test $apr_addto_duplicate = "0"; then
7231 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7232 CPPFLAGS="$CPPFLAGS $i"
7237 if test $PLATOSVERS -ge 10; then
7239 if test -z "$apr_lock_method"; then
7240 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_PROC_PTHREAD_SERIALIZE\""
7241 apr_lock_method="USE_PROC_PTHREAD_SERIALIZE"
7246 if test -z "$apr_lock_method"; then
7247 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_FCNTL_SERIALIZE\""
7248 apr_lock_method="USE_FCNTL_SERIALIZE"
7252 # readdir64_r error handling seems broken on Solaris (at least
7253 # up till 2.8) -- it will return -1 at end-of-directory.
7255 if test -z "$ac_cv_func_readdir64_r"; then
7256 test "x$silent" != "xyes" && echo " setting ac_cv_func_readdir64_r to \"no\""
7257 ac_cv_func_readdir64_r="no"
7263 if test "x$CPPFLAGS" = "x"; then
7264 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSUNOS4\""
7267 apr_addto_bugger="-DSUNOS4"
7268 for i in $apr_addto_bugger; do
7269 apr_addto_duplicate="0"
7270 for j in $CPPFLAGS; do
7271 if test "x$i" = "x$j"; then
7272 apr_addto_duplicate="1"
7276 if test $apr_addto_duplicate = "0"; then
7277 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7278 CPPFLAGS="$CPPFLAGS $i"
7286 if test "x$CPPFLAGS" = "x"; then
7287 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=100\""
7290 apr_addto_bugger="-DUW=100"
7291 for i in $apr_addto_bugger; do
7292 apr_addto_duplicate="0"
7293 for j in $CPPFLAGS; do
7294 if test "x$i" = "x$j"; then
7295 apr_addto_duplicate="1"
7299 if test $apr_addto_duplicate = "0"; then
7300 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7301 CPPFLAGS="$CPPFLAGS $i"
7309 if test "x$CPPFLAGS" = "x"; then
7310 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=200\""
7313 apr_addto_bugger="-DUW=200"
7314 for i in $apr_addto_bugger; do
7315 apr_addto_duplicate="0"
7316 for j in $CPPFLAGS; do
7317 if test "x$i" = "x$j"; then
7318 apr_addto_duplicate="1"
7322 if test $apr_addto_duplicate = "0"; then
7323 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7324 CPPFLAGS="$CPPFLAGS $i"
7330 if test "x$LIBS" = "x"; then
7331 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
7334 apr_addto_bugger="-lgen"
7335 for i in $apr_addto_bugger; do
7336 apr_addto_duplicate="0"
7338 if test "x$i" = "x$j"; then
7339 apr_addto_duplicate="1"
7343 if test $apr_addto_duplicate = "0"; then
7344 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7353 if test "x$CPPFLAGS" = "x"; then
7354 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=211\""
7357 apr_addto_bugger="-DUW=211"
7358 for i in $apr_addto_bugger; do
7359 apr_addto_duplicate="0"
7360 for j in $CPPFLAGS; do
7361 if test "x$i" = "x$j"; then
7362 apr_addto_duplicate="1"
7366 if test $apr_addto_duplicate = "0"; then
7367 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7368 CPPFLAGS="$CPPFLAGS $i"
7374 if test "x$LIBS" = "x"; then
7375 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
7378 apr_addto_bugger="-lgen"
7379 for i in $apr_addto_bugger; do
7380 apr_addto_duplicate="0"
7382 if test "x$i" = "x$j"; then
7383 apr_addto_duplicate="1"
7387 if test $apr_addto_duplicate = "0"; then
7388 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7397 if test "x$CPPFLAGS" = "x"; then
7398 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=212\""
7401 apr_addto_bugger="-DUW=212"
7402 for i in $apr_addto_bugger; do
7403 apr_addto_duplicate="0"
7404 for j in $CPPFLAGS; do
7405 if test "x$i" = "x$j"; then
7406 apr_addto_duplicate="1"
7410 if test $apr_addto_duplicate = "0"; then
7411 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7412 CPPFLAGS="$CPPFLAGS $i"
7418 if test "x$LIBS" = "x"; then
7419 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
7422 apr_addto_bugger="-lgen"
7423 for i in $apr_addto_bugger; do
7424 apr_addto_duplicate="0"
7426 if test "x$i" = "x$j"; then
7427 apr_addto_duplicate="1"
7431 if test $apr_addto_duplicate = "0"; then
7432 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7441 if test "x$CPPFLAGS" = "x"; then
7442 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=700\""
7445 apr_addto_bugger="-DUW=700"
7446 for i in $apr_addto_bugger; do
7447 apr_addto_duplicate="0"
7448 for j in $CPPFLAGS; do
7449 if test "x$i" = "x$j"; then
7450 apr_addto_duplicate="1"
7454 if test $apr_addto_duplicate = "0"; then
7455 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7456 CPPFLAGS="$CPPFLAGS $i"
7462 if test "x$LIBS" = "x"; then
7463 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
7466 apr_addto_bugger="-lgen"
7467 for i in $apr_addto_bugger; do
7468 apr_addto_duplicate="0"
7470 if test "x$i" = "x$j"; then
7471 apr_addto_duplicate="1"
7475 if test $apr_addto_duplicate = "0"; then
7476 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7485 if test "x$CPPFLAGS" = "x"; then
7486 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
7489 apr_addto_bugger="-DSVR4"
7490 for i in $apr_addto_bugger; do
7491 apr_addto_duplicate="0"
7492 for j in $CPPFLAGS; do
7493 if test "x$i" = "x$j"; then
7494 apr_addto_duplicate="1"
7498 if test $apr_addto_duplicate = "0"; then
7499 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7500 CPPFLAGS="$CPPFLAGS $i"
7506 if test "x$LIBS" = "x"; then
7507 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -lgen\""
7510 apr_addto_bugger="-lc -lgen"
7511 for i in $apr_addto_bugger; do
7512 apr_addto_duplicate="0"
7514 if test "x$i" = "x$j"; then
7515 apr_addto_duplicate="1"
7519 if test $apr_addto_duplicate = "0"; then
7520 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7529 if test "x$CPPFLAGS" = "x"; then
7530 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
7533 apr_addto_bugger="-DSVR4"
7534 for i in $apr_addto_bugger; do
7535 apr_addto_duplicate="0"
7536 for j in $CPPFLAGS; do
7537 if test "x$i" = "x$j"; then
7538 apr_addto_duplicate="1"
7542 if test $apr_addto_duplicate = "0"; then
7543 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7544 CPPFLAGS="$CPPFLAGS $i"
7550 if test "x$LIBS" = "x"; then
7551 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
7554 apr_addto_bugger="-lgen"
7555 for i in $apr_addto_bugger; do
7556 apr_addto_duplicate="0"
7558 if test "x$i" = "x$j"; then
7559 apr_addto_duplicate="1"
7563 if test $apr_addto_duplicate = "0"; then
7564 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7573 if test "x$CPPFLAGS" = "x"; then
7574 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DTPF -D_POSIX_SOURCE\""
7575 CPPFLAGS="-DTPF -D_POSIX_SOURCE"
7577 apr_addto_bugger="-DTPF -D_POSIX_SOURCE"
7578 for i in $apr_addto_bugger; do
7579 apr_addto_duplicate="0"
7580 for j in $CPPFLAGS; do
7581 if test "x$i" = "x$j"; then
7582 apr_addto_duplicate="1"
7586 if test $apr_addto_duplicate = "0"; then
7587 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7588 CPPFLAGS="$CPPFLAGS $i"
7594 bs2000*-siemens-sysv*)
7596 if test -z "$CFLAGS"; then
7597 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
7602 if test "x$CPPFLAGS" = "x"; then
7603 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -D_KMEMUSER\""
7604 CPPFLAGS="-DSVR4 -D_XPG_IV -D_KMEMUSER"
7606 apr_addto_bugger="-DSVR4 -D_XPG_IV -D_KMEMUSER"
7607 for i in $apr_addto_bugger; do
7608 apr_addto_duplicate="0"
7609 for j in $CPPFLAGS; do
7610 if test "x$i" = "x$j"; then
7611 apr_addto_duplicate="1"
7615 if test $apr_addto_duplicate = "0"; then
7616 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7617 CPPFLAGS="$CPPFLAGS $i"
7623 if test "x$LIBS" = "x"; then
7624 test "x$silent" != "xyes" && echo " setting LIBS to \"-lsocket\""
7627 apr_addto_bugger="-lsocket"
7628 for i in $apr_addto_bugger; do
7629 apr_addto_duplicate="0"
7631 if test "x$i" = "x$j"; then
7632 apr_addto_duplicate="1"
7636 if test $apr_addto_duplicate = "0"; then
7637 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7644 if test -z "$enable_threads"; then
7645 test "x$silent" != "xyes" && echo " setting enable_threads to \"no\""
7652 if test "x$CPPFLAGS" = "x"; then
7653 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT\""
7654 CPPFLAGS="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
7656 apr_addto_bugger="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
7657 for i in $apr_addto_bugger; do
7658 apr_addto_duplicate="0"
7659 for j in $CPPFLAGS; do
7660 if test "x$i" = "x$j"; then
7661 apr_addto_duplicate="1"
7665 if test $apr_addto_duplicate = "0"; then
7666 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7667 CPPFLAGS="$CPPFLAGS $i"
7673 if test "x$LIBS" = "x"; then
7674 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
7677 apr_addto_bugger="-lc"
7678 for i in $apr_addto_bugger; do
7679 apr_addto_duplicate="0"
7681 if test "x$i" = "x$j"; then
7682 apr_addto_duplicate="1"
7686 if test $apr_addto_duplicate = "0"; then
7687 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7694 pyramid-pyramid-svr4)
7696 if test "x$CPPFLAGS" = "x"; then
7697 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DNO_LONG_DOUBLE\""
7698 CPPFLAGS="-DSVR4 -DNO_LONG_DOUBLE"
7700 apr_addto_bugger="-DSVR4 -DNO_LONG_DOUBLE"
7701 for i in $apr_addto_bugger; do
7702 apr_addto_duplicate="0"
7703 for j in $CPPFLAGS; do
7704 if test "x$i" = "x$j"; then
7705 apr_addto_duplicate="1"
7709 if test $apr_addto_duplicate = "0"; then
7710 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7711 CPPFLAGS="$CPPFLAGS $i"
7717 if test "x$LIBS" = "x"; then
7718 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
7721 apr_addto_bugger="-lc"
7722 for i in $apr_addto_bugger; do
7723 apr_addto_duplicate="0"
7725 if test "x$i" = "x$j"; then
7726 apr_addto_duplicate="1"
7730 if test $apr_addto_duplicate = "0"; then
7731 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7738 DS/90\ 7000-*-sysv4*)
7740 if test "x$CPPFLAGS" = "x"; then
7741 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUXPDS\""
7744 apr_addto_bugger="-DUXPDS"
7745 for i in $apr_addto_bugger; do
7746 apr_addto_duplicate="0"
7747 for j in $CPPFLAGS; do
7748 if test "x$i" = "x$j"; then
7749 apr_addto_duplicate="1"
7753 if test $apr_addto_duplicate = "0"; then
7754 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7755 CPPFLAGS="$CPPFLAGS $i"
7763 if test "x$CPPFLAGS" = "x"; then
7764 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
7767 apr_addto_bugger="-DSVR4"
7768 for i in $apr_addto_bugger; do
7769 apr_addto_duplicate="0"
7770 for j in $CPPFLAGS; do
7771 if test "x$i" = "x$j"; then
7772 apr_addto_duplicate="1"
7776 if test $apr_addto_duplicate = "0"; then
7777 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7778 CPPFLAGS="$CPPFLAGS $i"
7786 if test "x$CPPFLAGS" = "x"; then
7787 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
7788 CPPFLAGS="-DSVR4 -DMPRAS"
7790 apr_addto_bugger="-DSVR4 -DMPRAS"
7791 for i in $apr_addto_bugger; do
7792 apr_addto_duplicate="0"
7793 for j in $CPPFLAGS; do
7794 if test "x$i" = "x$j"; then
7795 apr_addto_duplicate="1"
7799 if test $apr_addto_duplicate = "0"; then
7800 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7801 CPPFLAGS="$CPPFLAGS $i"
7807 if test "x$LIBS" = "x"; then
7808 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\""
7809 LIBS="-lc -L/usr/ucblib -lucb"
7811 apr_addto_bugger="-lc -L/usr/ucblib -lucb"
7812 for i in $apr_addto_bugger; do
7813 apr_addto_duplicate="0"
7815 if test "x$i" = "x$j"; then
7816 apr_addto_duplicate="1"
7820 if test $apr_addto_duplicate = "0"; then
7821 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7830 if test "x$CPPFLAGS" = "x"; then
7831 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
7834 apr_addto_bugger="-DSVR4"
7835 for i in $apr_addto_bugger; do
7836 apr_addto_duplicate="0"
7837 for j in $CPPFLAGS; do
7838 if test "x$i" = "x$j"; then
7839 apr_addto_duplicate="1"
7843 if test $apr_addto_duplicate = "0"; then
7844 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7845 CPPFLAGS="$CPPFLAGS $i"
7851 if test "x$LIBS" = "x"; then
7852 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
7855 apr_addto_bugger="-lc"
7856 for i in $apr_addto_bugger; do
7857 apr_addto_duplicate="0"
7859 if test "x$i" = "x$j"; then
7860 apr_addto_duplicate="1"
7864 if test $apr_addto_duplicate = "0"; then
7865 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7874 if test "x$CPPFLAGS" = "x"; then
7875 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DENCORE\""
7876 CPPFLAGS="-DSVR4 -DENCORE"
7878 apr_addto_bugger="-DSVR4 -DENCORE"
7879 for i in $apr_addto_bugger; do
7880 apr_addto_duplicate="0"
7881 for j in $CPPFLAGS; do
7882 if test "x$i" = "x$j"; then
7883 apr_addto_duplicate="1"
7887 if test $apr_addto_duplicate = "0"; then
7888 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7889 CPPFLAGS="$CPPFLAGS $i"
7895 if test "x$LIBS" = "x"; then
7896 test "x$silent" != "xyes" && echo " setting LIBS to \"-lPW\""
7899 apr_addto_bugger="-lPW"
7900 for i in $apr_addto_bugger; do
7901 apr_addto_duplicate="0"
7903 if test "x$i" = "x$j"; then
7904 apr_addto_duplicate="1"
7908 if test $apr_addto_duplicate = "0"; then
7909 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7917 PLATOSVERS=`echo $host | sed 's/^.*,//'`
7920 if test "x$CPPFLAGS" = "x"; then
7921 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUTS21\""
7924 apr_addto_bugger="-DUTS21"
7925 for i in $apr_addto_bugger; do
7926 apr_addto_duplicate="0"
7927 for j in $CPPFLAGS; do
7928 if test "x$i" = "x$j"; then
7929 apr_addto_duplicate="1"
7933 if test $apr_addto_duplicate = "0"; then
7934 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7935 CPPFLAGS="$CPPFLAGS $i"
7941 if test "x$CFLAGS" = "x"; then
7942 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Xa -eft\""
7945 apr_addto_bugger="-Xa -eft"
7946 for i in $apr_addto_bugger; do
7947 apr_addto_duplicate="0"
7948 for j in $CFLAGS; do
7949 if test "x$i" = "x$j"; then
7950 apr_addto_duplicate="1"
7954 if test $apr_addto_duplicate = "0"; then
7955 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
7962 if test "x$LIBS" = "x"; then
7963 test "x$silent" != "xyes" && echo " setting LIBS to \"-lbsd -la\""
7966 apr_addto_bugger="-lbsd -la"
7967 for i in $apr_addto_bugger; do
7968 apr_addto_duplicate="0"
7970 if test "x$i" = "x$j"; then
7971 apr_addto_duplicate="1"
7975 if test $apr_addto_duplicate = "0"; then
7976 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7984 if test "x$CPPFLAGS" = "x"; then
7985 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
7988 apr_addto_bugger="-DSVR4"
7989 for i in $apr_addto_bugger; do
7990 apr_addto_duplicate="0"
7991 for j in $CPPFLAGS; do
7992 if test "x$i" = "x$j"; then
7993 apr_addto_duplicate="1"
7997 if test $apr_addto_duplicate = "0"; then
7998 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7999 CPPFLAGS="$CPPFLAGS $i"
8005 if test "x$CFLAGS" = "x"; then
8006 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Xa\""
8009 apr_addto_bugger="-Xa"
8010 for i in $apr_addto_bugger; do
8011 apr_addto_duplicate="0"
8012 for j in $CFLAGS; do
8013 if test "x$i" = "x$j"; then
8014 apr_addto_duplicate="1"
8018 if test $apr_addto_duplicate = "0"; then
8019 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8030 if test "x$CPPFLAGS" = "x"; then
8031 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DULTRIX\""
8034 apr_addto_bugger="-DULTRIX"
8035 for i in $apr_addto_bugger; do
8036 apr_addto_duplicate="0"
8037 for j in $CPPFLAGS; do
8038 if test "x$i" = "x$j"; then
8039 apr_addto_duplicate="1"
8043 if test $apr_addto_duplicate = "0"; then
8044 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8045 CPPFLAGS="$CPPFLAGS $i"
8051 test "x$silent" != "xyes" && echo " forcing SHELL to \"/bin/sh5\""
8055 *powerpc-tenon-machten*)
8057 if test "x$LDFLAGS" = "x"; then
8058 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Xlstack=0x14000 -Xldelcsect\""
8059 LDFLAGS="-Xlstack=0x14000 -Xldelcsect"
8061 apr_addto_bugger="-Xlstack=0x14000 -Xldelcsect"
8062 for i in $apr_addto_bugger; do
8063 apr_addto_duplicate="0"
8064 for j in $LDFLAGS; do
8065 if test "x$i" = "x$j"; then
8066 apr_addto_duplicate="1"
8070 if test $apr_addto_duplicate = "0"; then
8071 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
8072 LDFLAGS="$LDFLAGS $i"
8080 if test "x$LDFLAGS" = "x"; then
8081 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-stack 0x14000\""
8082 LDFLAGS="-stack 0x14000"
8084 apr_addto_bugger="-stack 0x14000"
8085 for i in $apr_addto_bugger; do
8086 apr_addto_duplicate="0"
8087 for j in $LDFLAGS; do
8088 if test "x$i" = "x$j"; then
8089 apr_addto_duplicate="1"
8093 if test $apr_addto_duplicate = "0"; then
8094 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
8095 LDFLAGS="$LDFLAGS $i"
8103 if test "x$CPPFLAGS" = "x"; then
8104 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DCONVEXOS11\""
8105 CPPFLAGS="-DCONVEXOS11"
8107 apr_addto_bugger="-DCONVEXOS11"
8108 for i in $apr_addto_bugger; do
8109 apr_addto_duplicate="0"
8110 for j in $CPPFLAGS; do
8111 if test "x$i" = "x$j"; then
8112 apr_addto_duplicate="1"
8116 if test $apr_addto_duplicate = "0"; then
8117 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8118 CPPFLAGS="$CPPFLAGS $i"
8124 if test -z "$CFLAGS"; then
8125 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O1\""
8130 if test "x$CFLAGS" = "x"; then
8131 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-ext\""
8134 apr_addto_bugger="-ext"
8135 for i in $apr_addto_bugger; do
8136 apr_addto_duplicate="0"
8137 for j in $CFLAGS; do
8138 if test "x$i" = "x$j"; then
8139 apr_addto_duplicate="1"
8143 if test $apr_addto_duplicate = "0"; then
8144 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8153 if test "x$CPPFLAGS" = "x"; then
8154 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DPARAGON\""
8155 CPPFLAGS="-DPARAGON"
8157 apr_addto_bugger="-DPARAGON"
8158 for i in $apr_addto_bugger; do
8159 apr_addto_duplicate="0"
8160 for j in $CPPFLAGS; do
8161 if test "x$i" = "x$j"; then
8162 apr_addto_duplicate="1"
8166 if test $apr_addto_duplicate = "0"; then
8167 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8168 CPPFLAGS="$CPPFLAGS $i"
8176 if test "x$CPPFLAGS" = "x"; then
8177 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=20\""
8178 CPPFLAGS="-DSEQUENT=20"
8180 apr_addto_bugger="-DSEQUENT=20"
8181 for i in $apr_addto_bugger; do
8182 apr_addto_duplicate="0"
8183 for j in $CPPFLAGS; do
8184 if test "x$i" = "x$j"; then
8185 apr_addto_duplicate="1"
8189 if test $apr_addto_duplicate = "0"; then
8190 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8191 CPPFLAGS="$CPPFLAGS $i"
8197 if test "x$CFLAGS" = "x"; then
8198 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8201 apr_addto_bugger="-Wc,-pw"
8202 for i in $apr_addto_bugger; do
8203 apr_addto_duplicate="0"
8204 for j in $CFLAGS; do
8205 if test "x$i" = "x$j"; then
8206 apr_addto_duplicate="1"
8210 if test $apr_addto_duplicate = "0"; then
8211 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8218 if test "x$LIBS" = "x"; then
8219 test "x$silent" != "xyes" && echo " setting LIBS to \"-linet -lc -lseq\""
8220 LIBS="-linet -lc -lseq"
8222 apr_addto_bugger="-linet -lc -lseq"
8223 for i in $apr_addto_bugger; do
8224 apr_addto_duplicate="0"
8226 if test "x$i" = "x$j"; then
8227 apr_addto_duplicate="1"
8231 if test $apr_addto_duplicate = "0"; then
8232 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8241 if test "x$CPPFLAGS" = "x"; then
8242 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=40\""
8243 CPPFLAGS="-DSEQUENT=40"
8245 apr_addto_bugger="-DSEQUENT=40"
8246 for i in $apr_addto_bugger; do
8247 apr_addto_duplicate="0"
8248 for j in $CPPFLAGS; do
8249 if test "x$i" = "x$j"; then
8250 apr_addto_duplicate="1"
8254 if test $apr_addto_duplicate = "0"; then
8255 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8256 CPPFLAGS="$CPPFLAGS $i"
8262 if test "x$CFLAGS" = "x"; then
8263 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8266 apr_addto_bugger="-Wc,-pw"
8267 for i in $apr_addto_bugger; do
8268 apr_addto_duplicate="0"
8269 for j in $CFLAGS; do
8270 if test "x$i" = "x$j"; then
8271 apr_addto_duplicate="1"
8275 if test $apr_addto_duplicate = "0"; then
8276 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8283 if test "x$LIBS" = "x"; then
8284 test "x$silent" != "xyes" && echo " setting LIBS to \"-linet -lc\""
8287 apr_addto_bugger="-linet -lc"
8288 for i in $apr_addto_bugger; do
8289 apr_addto_duplicate="0"
8291 if test "x$i" = "x$j"; then
8292 apr_addto_duplicate="1"
8296 if test $apr_addto_duplicate = "0"; then
8297 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8304 *-sequent-ptx4.[123].*)
8306 if test "x$CPPFLAGS" = "x"; then
8307 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=41\""
8308 CPPFLAGS="-DSEQUENT=41"
8310 apr_addto_bugger="-DSEQUENT=41"
8311 for i in $apr_addto_bugger; do
8312 apr_addto_duplicate="0"
8313 for j in $CPPFLAGS; do
8314 if test "x$i" = "x$j"; then
8315 apr_addto_duplicate="1"
8319 if test $apr_addto_duplicate = "0"; then
8320 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8321 CPPFLAGS="$CPPFLAGS $i"
8327 if test "x$CFLAGS" = "x"; then
8328 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8331 apr_addto_bugger="-Wc,-pw"
8332 for i in $apr_addto_bugger; do
8333 apr_addto_duplicate="0"
8334 for j in $CFLAGS; do
8335 if test "x$i" = "x$j"; then
8336 apr_addto_duplicate="1"
8340 if test $apr_addto_duplicate = "0"; then
8341 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8348 if test "x$LIBS" = "x"; then
8349 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
8352 apr_addto_bugger="-lc"
8353 for i in $apr_addto_bugger; do
8354 apr_addto_duplicate="0"
8356 if test "x$i" = "x$j"; then
8357 apr_addto_duplicate="1"
8361 if test $apr_addto_duplicate = "0"; then
8362 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8371 if test "x$CPPFLAGS" = "x"; then
8372 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=44\""
8373 CPPFLAGS="-DSEQUENT=44"
8375 apr_addto_bugger="-DSEQUENT=44"
8376 for i in $apr_addto_bugger; do
8377 apr_addto_duplicate="0"
8378 for j in $CPPFLAGS; do
8379 if test "x$i" = "x$j"; then
8380 apr_addto_duplicate="1"
8384 if test $apr_addto_duplicate = "0"; then
8385 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8386 CPPFLAGS="$CPPFLAGS $i"
8392 if test "x$CFLAGS" = "x"; then
8393 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8396 apr_addto_bugger="-Wc,-pw"
8397 for i in $apr_addto_bugger; do
8398 apr_addto_duplicate="0"
8399 for j in $CFLAGS; do
8400 if test "x$i" = "x$j"; then
8401 apr_addto_duplicate="1"
8405 if test $apr_addto_duplicate = "0"; then
8406 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8413 if test "x$LIBS" = "x"; then
8414 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
8417 apr_addto_bugger="-lc"
8418 for i in $apr_addto_bugger; do
8419 apr_addto_duplicate="0"
8421 if test "x$i" = "x$j"; then
8422 apr_addto_duplicate="1"
8426 if test $apr_addto_duplicate = "0"; then
8427 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8436 if test "x$CPPFLAGS" = "x"; then
8437 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=45\""
8438 CPPFLAGS="-DSEQUENT=45"
8440 apr_addto_bugger="-DSEQUENT=45"
8441 for i in $apr_addto_bugger; do
8442 apr_addto_duplicate="0"
8443 for j in $CPPFLAGS; do
8444 if test "x$i" = "x$j"; then
8445 apr_addto_duplicate="1"
8449 if test $apr_addto_duplicate = "0"; then
8450 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8451 CPPFLAGS="$CPPFLAGS $i"
8457 if test "x$CFLAGS" = "x"; then
8458 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8461 apr_addto_bugger="-Wc,-pw"
8462 for i in $apr_addto_bugger; do
8463 apr_addto_duplicate="0"
8464 for j in $CFLAGS; do
8465 if test "x$i" = "x$j"; then
8466 apr_addto_duplicate="1"
8470 if test $apr_addto_duplicate = "0"; then
8471 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8478 if test "x$LIBS" = "x"; then
8479 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
8482 apr_addto_bugger="-lc"
8483 for i in $apr_addto_bugger; do
8484 apr_addto_duplicate="0"
8486 if test "x$i" = "x$j"; then
8487 apr_addto_duplicate="1"
8491 if test $apr_addto_duplicate = "0"; then
8492 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8501 if test "x$CPPFLAGS" = "x"; then
8502 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=50\""
8503 CPPFLAGS="-DSEQUENT=50"
8505 apr_addto_bugger="-DSEQUENT=50"
8506 for i in $apr_addto_bugger; do
8507 apr_addto_duplicate="0"
8508 for j in $CPPFLAGS; do
8509 if test "x$i" = "x$j"; then
8510 apr_addto_duplicate="1"
8514 if test $apr_addto_duplicate = "0"; then
8515 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8516 CPPFLAGS="$CPPFLAGS $i"
8522 if test "x$CFLAGS" = "x"; then
8523 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8526 apr_addto_bugger="-Wc,-pw"
8527 for i in $apr_addto_bugger; do
8528 apr_addto_duplicate="0"
8529 for j in $CFLAGS; do
8530 if test "x$i" = "x$j"; then
8531 apr_addto_duplicate="1"
8535 if test $apr_addto_duplicate = "0"; then
8536 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8543 if test "x$LIBS" = "x"; then
8544 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
8547 apr_addto_bugger="-lc"
8548 for i in $apr_addto_bugger; do
8549 apr_addto_duplicate="0"
8551 if test "x$i" = "x$j"; then
8552 apr_addto_duplicate="1"
8556 if test $apr_addto_duplicate = "0"; then
8557 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8566 if test "x$CPPFLAGS" = "x"; then
8567 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNEWSOS\""
8570 apr_addto_bugger="-DNEWSOS"
8571 for i in $apr_addto_bugger; do
8572 apr_addto_duplicate="0"
8573 for j in $CPPFLAGS; do
8574 if test "x$i" = "x$j"; then
8575 apr_addto_duplicate="1"
8579 if test $apr_addto_duplicate = "0"; then
8580 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8581 CPPFLAGS="$CPPFLAGS $i"
8589 if test "x$CPPFLAGS" = "x"; then
8590 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DRISCIX\""
8593 apr_addto_bugger="-DRISCIX"
8594 for i in $apr_addto_bugger; do
8595 apr_addto_duplicate="0"
8596 for j in $CPPFLAGS; do
8597 if test "x$i" = "x$j"; then
8598 apr_addto_duplicate="1"
8602 if test $apr_addto_duplicate = "0"; then
8603 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8604 CPPFLAGS="$CPPFLAGS $i"
8610 if test -z "$CFLAGS"; then
8611 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
8618 if test "x$CPPFLAGS" = "x"; then
8619 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_POSIX_THREAD_SAFE_FUNCTIONS\""
8620 CPPFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
8622 apr_addto_bugger="-D_POSIX_THREAD_SAFE_FUNCTIONS"
8623 for i in $apr_addto_bugger; do
8624 apr_addto_duplicate="0"
8625 for j in $CPPFLAGS; do
8626 if test "x$i" = "x$j"; then
8627 apr_addto_duplicate="1"
8631 if test $apr_addto_duplicate = "0"; then
8632 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8633 CPPFLAGS="$CPPFLAGS $i"
8641 if test "x$CPPFLAGS" = "x"; then
8642 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DBEOS\""
8645 apr_addto_bugger="-DBEOS"
8646 for i in $apr_addto_bugger; do
8647 apr_addto_duplicate="0"
8648 for j in $CPPFLAGS; do
8649 if test "x$i" = "x$j"; then
8650 apr_addto_duplicate="1"
8654 if test $apr_addto_duplicate = "0"; then
8655 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8656 CPPFLAGS="$CPPFLAGS $i"
8661 PLATOSVERS=`uname -r`
8663 if test -z "$apr_process_lock_is_global"; then
8664 test "x$silent" != "xyes" && echo " setting apr_process_lock_is_global to \"yes\""
8665 apr_process_lock_is_global="yes"
8671 if test "x$LDFLAGS" = "x"; then
8672 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L/boot/beos/system/lib\""
8673 LDFLAGS="-L/boot/beos/system/lib"
8675 apr_addto_bugger="-L/boot/beos/system/lib"
8676 for i in $apr_addto_bugger; do
8677 apr_addto_duplicate="0"
8678 for j in $LDFLAGS; do
8679 if test "x$i" = "x$j"; then
8680 apr_addto_duplicate="1"
8684 if test $apr_addto_duplicate = "0"; then
8685 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
8686 LDFLAGS="$LDFLAGS $i"
8692 if test "x$LIBS" = "x"; then
8693 test "x$silent" != "xyes" && echo " setting LIBS to \"-lbind -lsocket\""
8694 LIBS="-lbind -lsocket"
8696 apr_addto_bugger="-lbind -lsocket"
8697 for i in $apr_addto_bugger; do
8698 apr_addto_duplicate="0"
8700 if test "x$i" = "x$j"; then
8701 apr_addto_duplicate="1"
8705 if test $apr_addto_duplicate = "0"; then
8706 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8713 if test "x$CPPFLAGS" = "x"; then
8714 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DBONE7\""
8717 apr_addto_bugger="-DBONE7"
8718 for i in $apr_addto_bugger; do
8719 apr_addto_duplicate="0"
8720 for j in $CPPFLAGS; do
8721 if test "x$i" = "x$j"; then
8722 apr_addto_duplicate="1"
8726 if test $apr_addto_duplicate = "0"; then
8727 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8728 CPPFLAGS="$CPPFLAGS $i"
8736 if test "x$LDFLAGS" = "x"; then
8737 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L/boot/beos/system/lib\""
8738 LDFLAGS="-L/boot/beos/system/lib"
8740 apr_addto_bugger="-L/boot/beos/system/lib"
8741 for i in $apr_addto_bugger; do
8742 apr_addto_duplicate="0"
8743 for j in $LDFLAGS; do
8744 if test "x$i" = "x$j"; then
8745 apr_addto_duplicate="1"
8749 if test $apr_addto_duplicate = "0"; then
8750 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
8751 LDFLAGS="$LDFLAGS $i"
8757 if test "x$LIBS" = "x"; then
8758 test "x$silent" != "xyes" && echo " setting LIBS to \"-lbind -lsocket\""
8759 LIBS="-lbind -lsocket"
8761 apr_addto_bugger="-lbind -lsocket"
8762 for i in $apr_addto_bugger; do
8763 apr_addto_duplicate="0"
8765 if test "x$i" = "x$j"; then
8766 apr_addto_duplicate="1"
8770 if test $apr_addto_duplicate = "0"; then
8771 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8780 if test "x$CPPFLAGS" = "x"; then
8781 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSIGPROCMASK_SETS_THREAD_MASK\""
8782 CPPFLAGS="-DSIGPROCMASK_SETS_THREAD_MASK"
8784 apr_addto_bugger="-DSIGPROCMASK_SETS_THREAD_MASK"
8785 for i in $apr_addto_bugger; do
8786 apr_addto_duplicate="0"
8787 for j in $CPPFLAGS; do
8788 if test "x$i" = "x$j"; then
8789 apr_addto_duplicate="1"
8793 if test $apr_addto_duplicate = "0"; then
8794 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8795 CPPFLAGS="$CPPFLAGS $i"
8803 if test "x$CPPFLAGS" = "x"; then
8804 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
8805 CPPFLAGS="-DSVR4 -DMPRAS"
8807 apr_addto_bugger="-DSVR4 -DMPRAS"
8808 for i in $apr_addto_bugger; do
8809 apr_addto_duplicate="0"
8810 for j in $CPPFLAGS; do
8811 if test "x$i" = "x$j"; then
8812 apr_addto_duplicate="1"
8816 if test $apr_addto_duplicate = "0"; then
8817 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8818 CPPFLAGS="$CPPFLAGS $i"
8824 if test "x$LIBS" = "x"; then
8825 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\""
8826 LIBS="-lc -L/usr/ucblib -lucb"
8828 apr_addto_bugger="-lc -L/usr/ucblib -lucb"
8829 for i in $apr_addto_bugger; do
8830 apr_addto_duplicate="0"
8832 if test "x$i" = "x$j"; then
8833 apr_addto_duplicate="1"
8837 if test $apr_addto_duplicate = "0"; then
8838 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8847 if test "x$CPPFLAGS" = "x"; then
8848 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
8851 apr_addto_bugger="-DSVR4"
8852 for i in $apr_addto_bugger; do
8853 apr_addto_duplicate="0"
8854 for j in $CPPFLAGS; do
8855 if test "x$i" = "x$j"; then
8856 apr_addto_duplicate="1"
8860 if test $apr_addto_duplicate = "0"; then
8861 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8862 CPPFLAGS="$CPPFLAGS $i"
8868 if test "x$LIBS" = "x"; then
8869 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\""
8870 LIBS="-lc -L/usr/ucblib -lucb"
8872 apr_addto_bugger="-lc -L/usr/ucblib -lucb"
8873 for i in $apr_addto_bugger; do
8874 apr_addto_duplicate="0"
8876 if test "x$i" = "x$j"; then
8877 apr_addto_duplicate="1"
8881 if test $apr_addto_duplicate = "0"; then
8882 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8891 if test "x$CPPFLAGS" = "x"; then
8892 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_CX_SX\""
8895 apr_addto_bugger="-D_CX_SX"
8896 for i in $apr_addto_bugger; do
8897 apr_addto_duplicate="0"
8898 for j in $CPPFLAGS; do
8899 if test "x$i" = "x$j"; then
8900 apr_addto_duplicate="1"
8904 if test $apr_addto_duplicate = "0"; then
8905 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8906 CPPFLAGS="$CPPFLAGS $i"
8912 if test "x$CFLAGS" = "x"; then
8913 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Xa\""
8916 apr_addto_bugger="-Xa"
8917 for i in $apr_addto_bugger; do
8918 apr_addto_duplicate="0"
8919 for j in $CFLAGS; do
8920 if test "x$i" = "x$j"; then
8921 apr_addto_duplicate="1"
8925 if test $apr_addto_duplicate = "0"; then
8926 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8935 if test "x$CPPFLAGS" = "x"; then
8936 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1\""
8937 CPPFLAGS="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
8939 apr_addto_bugger="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
8940 for i in $apr_addto_bugger; do
8941 apr_addto_duplicate="0"
8942 for j in $CPPFLAGS; do
8943 if test "x$i" = "x$j"; then
8944 apr_addto_duplicate="1"
8948 if test $apr_addto_duplicate = "0"; then
8949 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8950 CPPFLAGS="$CPPFLAGS $i"
8958 if test -z "$apr_lock_method"; then
8959 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
8960 apr_lock_method="USE_SYSVSEM_SERIALIZE"
8964 if test -z "$apr_sysvsem_is_global"; then
8965 test "x$silent" != "xyes" && echo " setting apr_sysvsem_is_global to \"yes\""
8966 apr_sysvsem_is_global="yes"
8970 if test -z "$apr_gethostbyname_is_thread_safe"; then
8971 test "x$silent" != "xyes" && echo " setting apr_gethostbyname_is_thread_safe to \"yes\""
8972 apr_gethostbyname_is_thread_safe="yes"
8976 if test -z "$apr_gethostbyaddr_is_thread_safe"; then
8977 test "x$silent" != "xyes" && echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\""
8978 apr_gethostbyaddr_is_thread_safe="yes"
8982 if test -z "$apr_getservbyname_is_thread_safe"; then
8983 test "x$silent" != "xyes" && echo " setting apr_getservbyname_is_thread_safe to \"yes\""
8984 apr_getservbyname_is_thread_safe="yes"
8988 $as_echo "#define HAVE_ZOS_PTHREADS 1" >>confdefs.h
8991 if test "x$CPPFLAGS" = "x"; then
8992 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1\""
8993 CPPFLAGS="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
8995 apr_addto_bugger="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
8996 for i in $apr_addto_bugger; do
8997 apr_addto_duplicate="0"
8998 for j in $CPPFLAGS; do
8999 if test "x$i" = "x$j"; then
9000 apr_addto_duplicate="1"
9004 if test $apr_addto_duplicate = "0"; then
9005 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
9006 CPPFLAGS="$CPPFLAGS $i"
9014 if test -z "$apr_lock_method"; then
9015 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
9016 apr_lock_method="USE_SYSVSEM_SERIALIZE"
9020 if test -z "$apr_process_lock_is_global"; then
9021 test "x$silent" != "xyes" && echo " setting apr_process_lock_is_global to \"yes\""
9022 apr_process_lock_is_global="yes"
9026 if test -z "$apr_gethostbyname_is_thread_safe"; then
9027 test "x$silent" != "xyes" && echo " setting apr_gethostbyname_is_thread_safe to \"yes\""
9028 apr_gethostbyname_is_thread_safe="yes"
9032 if test -z "$apr_gethostbyaddr_is_thread_safe"; then
9033 test "x$silent" != "xyes" && echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\""
9034 apr_gethostbyaddr_is_thread_safe="yes"
9038 if test -z "$apr_getservbyname_is_thread_safe"; then
9039 test "x$silent" != "xyes" && echo " setting apr_getservbyname_is_thread_safe to \"yes\""
9040 apr_getservbyname_is_thread_safe="yes"
9046 if test "x$INTERNAL_CPPFLAGS" = "x"; then
9047 test "x$silent" != "xyes" && echo " setting INTERNAL_CPPFLAGS to \"-DBINPATH=$apr_builddir/test/.libs\""
9048 INTERNAL_CPPFLAGS="-DBINPATH=$apr_builddir/test/.libs"
9050 apr_addto_bugger="-DBINPATH=$apr_builddir/test/.libs"
9051 for i in $apr_addto_bugger; do
9052 apr_addto_duplicate="0"
9053 for j in $INTERNAL_CPPFLAGS; do
9054 if test "x$i" = "x$j"; then
9055 apr_addto_duplicate="1"
9059 if test $apr_addto_duplicate = "0"; then
9060 test "x$silent" != "xyes" && echo " adding \"$i\" to INTERNAL_CPPFLAGS"
9061 INTERNAL_CPPFLAGS="$INTERNAL_CPPFLAGS $i"
9067 if test "x$CPPFLAGS" = "x"; then
9068 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DWIN32 -D__MSVCRT__\""
9069 CPPFLAGS="-DWIN32 -D__MSVCRT__"
9071 apr_addto_bugger="-DWIN32 -D__MSVCRT__"
9072 for i in $apr_addto_bugger; do
9073 apr_addto_duplicate="0"
9074 for j in $CPPFLAGS; do
9075 if test "x$i" = "x$j"; then
9076 apr_addto_duplicate="1"
9080 if test $apr_addto_duplicate = "0"; then
9081 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
9082 CPPFLAGS="$CPPFLAGS $i"
9088 if test "x$LDFLAGS" = "x"; then
9089 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Wl,--enable-auto-import,--subsystem,console\""
9090 LDFLAGS="-Wl,--enable-auto-import,--subsystem,console"
9092 apr_addto_bugger="-Wl,--enable-auto-import,--subsystem,console"
9093 for i in $apr_addto_bugger; do
9094 apr_addto_duplicate="0"
9095 for j in $LDFLAGS; do
9096 if test "x$i" = "x$j"; then
9097 apr_addto_duplicate="1"
9101 if test $apr_addto_duplicate = "0"; then
9102 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
9103 LDFLAGS="$LDFLAGS $i"
9109 if test -z "$have_unicode_fs"; then
9110 test "x$silent" != "xyes" && echo " setting have_unicode_fs to \"1\""
9115 if test -z "$have_proc_invoked"; then
9116 test "x$silent" != "xyes" && echo " setting have_proc_invoked to \"1\""
9117 have_proc_invoked="1"
9121 if test -z "$apr_lock_method"; then
9122 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"win32\""
9123 apr_lock_method="win32"
9127 if test -z "$apr_process_lock_is_global"; then
9128 test "x$silent" != "xyes" && echo " setting apr_process_lock_is_global to \"yes\""
9129 apr_process_lock_is_global="yes"
9133 if test -z "$apr_cv_use_lfs64"; then
9134 test "x$silent" != "xyes" && echo " setting apr_cv_use_lfs64 to \"yes\""
9135 apr_cv_use_lfs64="yes"
9139 if test -z "$apr_cv_osuuid"; then
9140 test "x$silent" != "xyes" && echo " setting apr_cv_osuuid to \"yes\""
9145 if test -z "$apr_cv_tcp_nodelay_with_cork"; then
9146 test "x$silent" != "xyes" && echo " setting apr_cv_tcp_nodelay_with_cork to \"no\""
9147 apr_cv_tcp_nodelay_with_cork="no"
9151 if test -z "$apr_thread_func"; then
9152 test "x$silent" != "xyes" && echo " setting apr_thread_func to \"__stdcall\""
9153 apr_thread_func="__stdcall"
9157 if test -z "$ac_cv_o_nonblock_inherited"; then
9158 test "x$silent" != "xyes" && echo " setting ac_cv_o_nonblock_inherited to \"yes\""
9159 ac_cv_o_nonblock_inherited="yes"
9163 if test -z "$ac_cv_tcp_nodelay_inherited"; then
9164 test "x$silent" != "xyes" && echo " setting ac_cv_tcp_nodelay_inherited to \"yes\""
9165 ac_cv_tcp_nodelay_inherited="yes"
9169 if test -z "$ac_cv_file__dev_zero"; then
9170 test "x$silent" != "xyes" && echo " setting ac_cv_file__dev_zero to \"no\""
9171 ac_cv_file__dev_zero="no"
9175 if test -z "$ac_cv_func_setpgrp_void"; then
9176 test "x$silent" != "xyes" && echo " setting ac_cv_func_setpgrp_void to \"no\""
9177 ac_cv_func_setpgrp_void="no"
9181 if test -z "$ac_cv_func_mmap"; then
9182 test "x$silent" != "xyes" && echo " setting ac_cv_func_mmap to \"yes\""
9183 ac_cv_func_mmap="yes"
9187 if test -z "$ac_cv_define_sockaddr_in6"; then
9188 test "x$silent" != "xyes" && echo " setting ac_cv_define_sockaddr_in6 to \"yes\""
9189 ac_cv_define_sockaddr_in6="yes"
9193 if test -z "$ac_cv_working_getaddrinfo"; then
9194 test "x$silent" != "xyes" && echo " setting ac_cv_working_getaddrinfo to \"yes\""
9195 ac_cv_working_getaddrinfo="yes"
9199 if test -z "$ac_cv_working_getnameinfo"; then
9200 test "x$silent" != "xyes" && echo " setting ac_cv_working_getnameinfo to \"yes\""
9201 ac_cv_working_getnameinfo="yes"
9205 if test -z "$ac_cv_func_gai_strerror"; then
9206 test "x$silent" != "xyes" && echo " setting ac_cv_func_gai_strerror to \"yes\""
9207 ac_cv_func_gai_strerror="yes"
9213 if test -z "$apr_has_xthread_files"; then
9214 test "x$silent" != "xyes" && echo " setting apr_has_xthread_files to \"1\""
9215 apr_has_xthread_files="1"
9219 if test -z "$apr_has_user"; then
9220 test "x$silent" != "xyes" && echo " setting apr_has_user to \"1\""
9225 if test -z "$apr_procattr_user_set_requires_password"; then
9226 test "x$silent" != "xyes" && echo " setting apr_procattr_user_set_requires_password to \"1\""
9227 apr_procattr_user_set_requires_password="1"
9231 if test -z "$ac_cv_func_sendfile"; then
9232 test "x$silent" != "xyes" && echo " setting ac_cv_func_sendfile to \"yes\""
9233 ac_cv_func_sendfile="yes"
9239 if test -z "$apr_has_xthread_files"; then
9240 test "x$silent" != "xyes" && echo " setting apr_has_xthread_files to \"0\""
9241 apr_has_xthread_files="0"
9245 if test -z "$apr_has_user"; then
9246 test "x$silent" != "xyes" && echo " setting apr_has_user to \"0\""
9251 if test -z "$apr_procattr_user_set_requires_password"; then
9252 test "x$silent" != "xyes" && echo " setting apr_procattr_user_set_requires_password to \"0\""
9253 apr_procattr_user_set_requires_password="0"
9257 if test -z "$ac_cv_func_sendfile"; then
9258 test "x$silent" != "xyes" && echo " setting ac_cv_func_sendfile to \"no\""
9259 ac_cv_func_sendfile="no"
9270 DEFAULT_OSDIR="unix"
9271 echo "(Default will be ${DEFAULT_OSDIR})"
9273 apr_modules="file_io network_io threadproc misc locks time mmap shmem user memory atomic poll support random"
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9276 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9278 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9279 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9280 $as_echo_n "(cached) " >&6
9282 cat >conftest.make <<\_ACEOF
9285 @echo '@@@%%%=$(MAKE)=@@@%%%'
9287 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9288 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9290 eval ac_cv_prog_make_${ac_make}_set=yes;;
9292 eval ac_cv_prog_make_${ac_make}_set=no;;
9296 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9298 $as_echo "yes" >&6; }
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9302 $as_echo "no" >&6; }
9303 SET_MAKE="MAKE=${MAKE-make}"
9307 ac_cpp='$CPP $CPPFLAGS'
9308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9312 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9313 # On Suns, sometimes $CPP names a directory.
9314 if test -n "$CPP" && test -d "$CPP"; then
9317 if test -z "$CPP"; then
9318 if ${ac_cv_prog_CPP+:} false; then :
9319 $as_echo_n "(cached) " >&6
9321 # Double quotes because CPP needs to be expanded
9322 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9325 for ac_c_preproc_warn_flag in '' yes
9327 # Use a header file that comes with gcc, so configuring glibc
9328 # with a fresh cross-compiler works.
9329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9330 # <limits.h> exists even on freestanding compilers.
9331 # On the NeXT, cc -E runs the code through the compiler's parser,
9332 # not just through cpp. "Syntax error" is here to catch this case.
9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h. */
9336 # include <limits.h>
9338 # include <assert.h>
9342 if ac_fn_c_try_cpp "$LINENO"; then :
9345 # Broken: fails on valid input.
9348 rm -f conftest.err conftest.i conftest.$ac_ext
9350 # OK, works on sane cases. Now check whether nonexistent headers
9351 # can be detected and how.
9352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h. */
9354 #include <ac_nonexistent.h>
9356 if ac_fn_c_try_cpp "$LINENO"; then :
9357 # Broken: success on invalid input.
9360 # Passes both tests.
9364 rm -f conftest.err conftest.i conftest.$ac_ext
9367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9368 rm -f conftest.i conftest.err conftest.$ac_ext
9369 if $ac_preproc_ok; then :
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9382 $as_echo "$CPP" >&6; }
9384 for ac_c_preproc_warn_flag in '' yes
9386 # Use a header file that comes with gcc, so configuring glibc
9387 # with a fresh cross-compiler works.
9388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9389 # <limits.h> exists even on freestanding compilers.
9390 # On the NeXT, cc -E runs the code through the compiler's parser,
9391 # not just through cpp. "Syntax error" is here to catch this case.
9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h. */
9395 # include <limits.h>
9397 # include <assert.h>
9401 if ac_fn_c_try_cpp "$LINENO"; then :
9404 # Broken: fails on valid input.
9407 rm -f conftest.err conftest.i conftest.$ac_ext
9409 # OK, works on sane cases. Now check whether nonexistent headers
9410 # can be detected and how.
9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h. */
9413 #include <ac_nonexistent.h>
9415 if ac_fn_c_try_cpp "$LINENO"; then :
9416 # Broken: success on invalid input.
9419 # Passes both tests.
9423 rm -f conftest.err conftest.i conftest.$ac_ext
9426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9427 rm -f conftest.i conftest.err conftest.$ac_ext
9428 if $ac_preproc_ok; then :
9431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9433 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9434 See \`config.log' for more details" "$LINENO" 5; }
9438 ac_cpp='$CPP $CPPFLAGS'
9439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9443 for ac_prog in gawk mawk nawk awk
9445 # Extract the first word of "$ac_prog", so it can be a program name with args.
9446 set dummy $ac_prog; ac_word=$2
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9448 $as_echo_n "checking for $ac_word... " >&6; }
9449 if ${ac_cv_prog_AWK+:} false; then :
9450 $as_echo_n "(cached) " >&6
9452 if test -n "$AWK"; then
9453 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9459 test -z "$as_dir" && as_dir=.
9460 for ac_exec_ext in '' $ac_executable_extensions; do
9461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9462 ac_cv_prog_AWK="$ac_prog"
9463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9473 if test -n "$AWK"; then
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9475 $as_echo "$AWK" >&6; }
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9478 $as_echo "no" >&6; }
9482 test -n "$AWK" && break
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9486 $as_echo_n "checking whether ln -s works... " >&6; }
9488 if test "$LN_S" = "ln -s"; then
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9490 $as_echo "yes" >&6; }
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9493 $as_echo "no, using $LN_S" >&6; }
9496 if test -n "$ac_tool_prefix"; then
9497 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9498 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9500 $as_echo_n "checking for $ac_word... " >&6; }
9501 if ${ac_cv_prog_RANLIB+:} false; then :
9502 $as_echo_n "(cached) " >&6
9504 if test -n "$RANLIB"; then
9505 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9511 test -z "$as_dir" && as_dir=.
9512 for ac_exec_ext in '' $ac_executable_extensions; do
9513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9514 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9524 RANLIB=$ac_cv_prog_RANLIB
9525 if test -n "$RANLIB"; then
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9527 $as_echo "$RANLIB" >&6; }
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9530 $as_echo "no" >&6; }
9535 if test -z "$ac_cv_prog_RANLIB"; then
9536 ac_ct_RANLIB=$RANLIB
9537 # Extract the first word of "ranlib", so it can be a program name with args.
9538 set dummy ranlib; ac_word=$2
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9540 $as_echo_n "checking for $ac_word... " >&6; }
9541 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9542 $as_echo_n "(cached) " >&6
9544 if test -n "$ac_ct_RANLIB"; then
9545 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9551 test -z "$as_dir" && as_dir=.
9552 for ac_exec_ext in '' $ac_executable_extensions; do
9553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9554 ac_cv_prog_ac_ct_RANLIB="ranlib"
9555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9564 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9565 if test -n "$ac_ct_RANLIB"; then
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9567 $as_echo "$ac_ct_RANLIB" >&6; }
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9570 $as_echo "no" >&6; }
9573 if test "x$ac_ct_RANLIB" = x; then
9576 case $cross_compiling:$ac_tool_warned in
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9580 ac_tool_warned=yes ;;
9582 RANLIB=$ac_ct_RANLIB
9585 RANLIB="$ac_cv_prog_RANLIB"
9588 # Find a good install program. We prefer a C program (faster),
9589 # so one script is as good as another. But avoid the broken or
9590 # incompatible versions:
9591 # SysV /etc/install, /usr/sbin/install
9592 # SunOS /usr/etc/install
9593 # IRIX /sbin/install
9595 # AmigaOS /C/install, which installs bootblocks on floppy discs
9596 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9597 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9598 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9599 # OS/2's system install, which has a completely different semantic
9600 # ./install, which can be erroneously created by make from ./install.sh.
9601 # Reject install programs that cannot install multiple files.
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9603 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9604 if test -z "$INSTALL"; then
9605 if ${ac_cv_path_install+:} false; then :
9606 $as_echo_n "(cached) " >&6
9608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9612 test -z "$as_dir" && as_dir=.
9613 # Account for people who put trailing slashes in PATH elements.
9614 case $as_dir/ in #((
9615 ./ | .// | /[cC]/* | \
9616 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9617 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9620 # OSF1 and SCO ODT 3.0 have their own names for install.
9621 # Don't use installbsd from OSF since it installs stuff as root
9623 for ac_prog in ginstall scoinst install; do
9624 for ac_exec_ext in '' $ac_executable_extensions; do
9625 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9626 if test $ac_prog = install &&
9627 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9628 # AIX install. It has an incompatible calling convention.
9630 elif test $ac_prog = install &&
9631 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9632 # program-specific install script used by HP pwplus--don't use.
9635 rm -rf conftest.one conftest.two conftest.dir
9636 echo one > conftest.one
9637 echo two > conftest.two
9639 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9640 test -s conftest.one && test -s conftest.two &&
9641 test -s conftest.dir/conftest.one &&
9642 test -s conftest.dir/conftest.two
9644 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9657 rm -rf conftest.one conftest.two conftest.dir
9660 if test "${ac_cv_path_install+set}" = set; then
9661 INSTALL=$ac_cv_path_install
9663 # As a last resort, use the slow shell script. Don't cache a
9664 # value for INSTALL within a source directory, because that will
9665 # break other packages using the cache if that directory is
9666 # removed, or if the value is a relative name.
9667 INSTALL=$ac_install_sh
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9671 $as_echo "$INSTALL" >&6; }
9673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9674 # It thinks the first close brace ends the variable substitution.
9675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9677 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9679 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9681 # Extract the first word of "rm", so it can be a program name with args.
9682 set dummy rm; ac_word=$2
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9684 $as_echo_n "checking for $ac_word... " >&6; }
9685 if ${ac_cv_prog_RM+:} false; then :
9686 $as_echo_n "(cached) " >&6
9688 if test -n "$RM"; then
9689 ac_cv_prog_RM="$RM" # Let the user override the test.
9691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695 test -z "$as_dir" && as_dir=.
9696 for ac_exec_ext in '' $ac_executable_extensions; do
9697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9709 if test -n "$RM"; then
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9711 $as_echo "$RM" >&6; }
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714 $as_echo "no" >&6; }
9718 # Extract the first word of "as", so it can be a program name with args.
9719 set dummy as; ac_word=$2
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721 $as_echo_n "checking for $ac_word... " >&6; }
9722 if ${ac_cv_prog_AS+:} false; then :
9723 $as_echo_n "(cached) " >&6
9725 if test -n "$AS"; then
9726 ac_cv_prog_AS="$AS" # Let the user override the test.
9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732 test -z "$as_dir" && as_dir=.
9733 for ac_exec_ext in '' $ac_executable_extensions; do
9734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9746 if test -n "$AS"; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9748 $as_echo "$AS" >&6; }
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9751 $as_echo "no" >&6; }
9755 # Extract the first word of "cpp", so it can be a program name with args.
9756 set dummy cpp; ac_word=$2
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9758 $as_echo_n "checking for $ac_word... " >&6; }
9759 if ${ac_cv_prog_ASCPP+:} false; then :
9760 $as_echo_n "(cached) " >&6
9762 if test -n "$ASCPP"; then
9763 ac_cv_prog_ASCPP="$ASCPP" # Let the user override the test.
9765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9769 test -z "$as_dir" && as_dir=.
9770 for ac_exec_ext in '' $ac_executable_extensions; do
9771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9772 ac_cv_prog_ASCPP="cpp"
9773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9782 ASCPP=$ac_cv_prog_ASCPP
9783 if test -n "$ASCPP"; then
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCPP" >&5
9785 $as_echo "$ASCPP" >&6; }
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9788 $as_echo "no" >&6; }
9792 if test -n "$ac_tool_prefix"; then
9793 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9794 set dummy ${ac_tool_prefix}ar; ac_word=$2
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9796 $as_echo_n "checking for $ac_word... " >&6; }
9797 if ${ac_cv_prog_AR+:} false; then :
9798 $as_echo_n "(cached) " >&6
9800 if test -n "$AR"; then
9801 ac_cv_prog_AR="$AR" # Let the user override the test.
9803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807 test -z "$as_dir" && as_dir=.
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9810 ac_cv_prog_AR="${ac_tool_prefix}ar"
9811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9821 if test -n "$AR"; then
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9823 $as_echo "$AR" >&6; }
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9826 $as_echo "no" >&6; }
9831 if test -z "$ac_cv_prog_AR"; then
9833 # Extract the first word of "ar", so it can be a program name with args.
9834 set dummy ar; ac_word=$2
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9836 $as_echo_n "checking for $ac_word... " >&6; }
9837 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9838 $as_echo_n "(cached) " >&6
9840 if test -n "$ac_ct_AR"; then
9841 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9847 test -z "$as_dir" && as_dir=.
9848 for ac_exec_ext in '' $ac_executable_extensions; do
9849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9850 ac_cv_prog_ac_ct_AR="ar"
9851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9860 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9861 if test -n "$ac_ct_AR"; then
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9863 $as_echo "$ac_ct_AR" >&6; }
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866 $as_echo "no" >&6; }
9869 if test "x$ac_ct_AR" = x; then
9872 case $cross_compiling:$ac_tool_warned in
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9876 ac_tool_warned=yes ;;
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
9889 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
9890 if ${ac_cv_path_GREP+:} false; then :
9891 $as_echo_n "(cached) " >&6
9893 if test -z "$GREP"; then
9894 ac_path_GREP_found=false
9895 # Loop through the user's path and test for each of PROGNAME-LIST
9896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9897 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9900 test -z "$as_dir" && as_dir=.
9901 for ac_prog in grep ggrep; do
9902 for ac_exec_ext in '' $ac_executable_extensions; do
9903 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
9904 as_fn_executable_p "$ac_path_GREP" || continue
9905 # Check for GNU ac_path_GREP and select it if it is found.
9906 # Check for GNU $ac_path_GREP
9907 case `"$ac_path_GREP" --version 2>&1` in
9909 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
9912 $as_echo_n 0123456789 >"conftest.in"
9915 cat "conftest.in" "conftest.in" >"conftest.tmp"
9916 mv "conftest.tmp" "conftest.in"
9917 cp "conftest.in" "conftest.nl"
9918 $as_echo 'GREP' >> "conftest.nl"
9919 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9920 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9921 as_fn_arith $ac_count + 1 && ac_count=$as_val
9922 if test $ac_count -gt ${ac_path_GREP_max-0}; then
9923 # Best one so far, save it but keep looking for a better one
9924 ac_cv_path_GREP="$ac_path_GREP"
9925 ac_path_GREP_max=$ac_count
9927 # 10*(2^10) chars as input seems more than enough
9928 test $ac_count -gt 10 && break
9930 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9933 $ac_path_GREP_found && break 3
9938 if test -z "$ac_cv_path_GREP"; then
9939 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9942 ac_cv_path_GREP=$GREP
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
9947 $as_echo "$ac_cv_path_GREP" >&6; }
9948 GREP="$ac_cv_path_GREP"
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9952 $as_echo_n "checking for egrep... " >&6; }
9953 if ${ac_cv_path_EGREP+:} false; then :
9954 $as_echo_n "(cached) " >&6
9956 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9957 then ac_cv_path_EGREP="$GREP -E"
9959 if test -z "$EGREP"; then
9960 ac_path_EGREP_found=false
9961 # Loop through the user's path and test for each of PROGNAME-LIST
9962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9966 test -z "$as_dir" && as_dir=.
9967 for ac_prog in egrep; do
9968 for ac_exec_ext in '' $ac_executable_extensions; do
9969 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9970 as_fn_executable_p "$ac_path_EGREP" || continue
9971 # Check for GNU ac_path_EGREP and select it if it is found.
9972 # Check for GNU $ac_path_EGREP
9973 case `"$ac_path_EGREP" --version 2>&1` in
9975 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9978 $as_echo_n 0123456789 >"conftest.in"
9981 cat "conftest.in" "conftest.in" >"conftest.tmp"
9982 mv "conftest.tmp" "conftest.in"
9983 cp "conftest.in" "conftest.nl"
9984 $as_echo 'EGREP' >> "conftest.nl"
9985 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9987 as_fn_arith $ac_count + 1 && ac_count=$as_val
9988 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9989 # Best one so far, save it but keep looking for a better one
9990 ac_cv_path_EGREP="$ac_path_EGREP"
9991 ac_path_EGREP_max=$ac_count
9993 # 10*(2^10) chars as input seems more than enough
9994 test $ac_count -gt 10 && break
9996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9999 $ac_path_EGREP_found && break 3
10004 if test -z "$ac_cv_path_EGREP"; then
10005 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10008 ac_cv_path_EGREP=$EGREP
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
10014 $as_echo "$ac_cv_path_EGREP" >&6; }
10015 EGREP="$ac_cv_path_EGREP"
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10019 $as_echo_n "checking for ANSI C header files... " >&6; }
10020 if ${ac_cv_header_stdc+:} false; then :
10021 $as_echo_n "(cached) " >&6
10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10025 #include <stdlib.h>
10026 #include <stdarg.h>
10027 #include <string.h>
10038 if ac_fn_c_try_compile "$LINENO"; then :
10039 ac_cv_header_stdc=yes
10041 ac_cv_header_stdc=no
10043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10045 if test $ac_cv_header_stdc = yes; then
10046 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h. */
10049 #include <string.h>
10052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10053 $EGREP "memchr" >/dev/null 2>&1; then :
10056 ac_cv_header_stdc=no
10062 if test $ac_cv_header_stdc = yes; then
10063 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065 /* end confdefs.h. */
10066 #include <stdlib.h>
10069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10070 $EGREP "free" >/dev/null 2>&1; then :
10073 ac_cv_header_stdc=no
10079 if test $ac_cv_header_stdc = yes; then
10080 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10081 if test "$cross_compiling" = yes; then :
10084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085 /* end confdefs.h. */
10087 #include <stdlib.h>
10088 #if ((' ' & 0x0FF) == 0x020)
10089 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10090 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10092 # define ISLOWER(c) \
10093 (('a' <= (c) && (c) <= 'i') \
10094 || ('j' <= (c) && (c) <= 'r') \
10095 || ('s' <= (c) && (c) <= 'z'))
10096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10104 for (i = 0; i < 256; i++)
10105 if (XOR (islower (i), ISLOWER (i))
10106 || toupper (i) != TOUPPER (i))
10111 if ac_fn_c_try_run "$LINENO"; then :
10114 ac_cv_header_stdc=no
10116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10117 conftest.$ac_objext conftest.beam conftest.$ac_ext
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10123 $as_echo "$ac_cv_header_stdc" >&6; }
10124 if test $ac_cv_header_stdc = yes; then
10126 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10130 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10131 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10132 inttypes.h stdint.h unistd.h
10134 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10135 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10137 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10138 cat >>confdefs.h <<_ACEOF
10139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10148 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
10149 if test "x$ac_cv_header_minix_config_h" = xyes; then :
10156 if test "$MINIX" = yes; then
10158 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
10161 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
10164 $as_echo "#define _MINIX 1" >>confdefs.h
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
10170 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
10171 if ${ac_cv_safe_to_define___extensions__+:} false; then :
10172 $as_echo_n "(cached) " >&6
10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175 /* end confdefs.h. */
10177 # define __EXTENSIONS__ 1
10178 $ac_includes_default
10187 if ac_fn_c_try_compile "$LINENO"; then :
10188 ac_cv_safe_to_define___extensions__=yes
10190 ac_cv_safe_to_define___extensions__=no
10192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
10195 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
10196 test $ac_cv_safe_to_define___extensions__ = yes &&
10197 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
10199 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
10201 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
10203 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
10205 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
10211 $as_echo_n "checking for library containing strerror... " >&6; }
10212 if ${ac_cv_search_strerror+:} false; then :
10213 $as_echo_n "(cached) " >&6
10215 ac_func_search_save_LIBS=$LIBS
10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10219 /* Override any GCC internal prototype to avoid an error.
10220 Use char because int might match the return type of a GCC
10221 builtin and then its argument prototype would still apply. */
10229 return strerror ();
10234 for ac_lib in '' cposix; do
10235 if test -z "$ac_lib"; then
10236 ac_res="none required"
10239 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10241 if ac_fn_c_try_link "$LINENO"; then :
10242 ac_cv_search_strerror=$ac_res
10244 rm -f core conftest.err conftest.$ac_objext \
10246 if ${ac_cv_search_strerror+:} false; then :
10250 if ${ac_cv_search_strerror+:} false; then :
10253 ac_cv_search_strerror=no
10255 rm conftest.$ac_ext
10256 LIBS=$ac_func_search_save_LIBS
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
10259 $as_echo "$ac_cv_search_strerror" >&6; }
10260 ac_res=$ac_cv_search_strerror
10261 if test "$ac_res" != no; then :
10262 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5
10268 $as_echo_n "checking whether system uses EBCDIC... " >&6; }
10269 if ${ac_cv_ebcdic+:} false; then :
10270 $as_echo_n "(cached) " >&6
10273 if test "$cross_compiling" = yes; then :
10278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279 /* end confdefs.h. */
10282 return (unsigned char)'A' != (unsigned char)0xC1;
10286 if ac_fn_c_try_run "$LINENO"; then :
10295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10296 conftest.$ac_objext conftest.beam conftest.$ac_ext
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5
10301 $as_echo "$ac_cv_ebcdic" >&6; }
10302 if test "$ac_cv_ebcdic" = "yes"; then
10303 apr_charset_ebcdic=1
10305 apr_charset_ebcdic=0
10310 APR_LIBNAME="apr${libsuffix}"
10313 echo "performing libtool configuration..."
10315 # Check whether --enable-experimental-libtool was given.
10316 if test "${enable_experimental_libtool+set}" = set; then :
10317 enableval=$enable_experimental_libtool; experimental_libtool=$enableval
10319 experimental_libtool=no
10323 if test "x$Xsed" = "x"; then
10324 Xsed="$SED -e 1s/^X//"
10329 # Use a custom-made libtool replacement
10330 echo "using aplibtool"
10331 LIBTOOL="$srcdir/build/aplibtool"
10332 gcc $CFLAGS $CPPFLAGS -o $LIBTOOL.exe $LIBTOOL.c
10335 if test "x$LTFLAGS" = "x"; then
10338 if test "$experimental_libtool" = "yes"; then
10339 # Use a custom-made libtool replacement
10340 echo "using jlibtool"
10341 LIBTOOL="$apr_builddir/libtool"
10342 LIBTOOL_SRC="$apr_srcdir/build/jlibtool.c"
10343 $CC $CFLAGS $CPPFLAGS -o $LIBTOOL $LIBTOOL_SRC
10344 eval `$apr_builddir/libtool --config | grep "^shlibpath_var=[A-Z_]*$"`
10345 if test "x$shlibpath_var" = "x"; then
10346 shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
10349 enable_win32_dll=yes
10352 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10353 if test -n "$ac_tool_prefix"; then
10354 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10355 set dummy ${ac_tool_prefix}as; ac_word=$2
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10357 $as_echo_n "checking for $ac_word... " >&6; }
10358 if ${ac_cv_prog_AS+:} false; then :
10359 $as_echo_n "(cached) " >&6
10361 if test -n "$AS"; then
10362 ac_cv_prog_AS="$AS" # Let the user override the test.
10364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10365 for as_dir in $PATH
10368 test -z "$as_dir" && as_dir=.
10369 for ac_exec_ext in '' $ac_executable_extensions; do
10370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10371 ac_cv_prog_AS="${ac_tool_prefix}as"
10372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10382 if test -n "$AS"; then
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10384 $as_echo "$AS" >&6; }
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387 $as_echo "no" >&6; }
10392 if test -z "$ac_cv_prog_AS"; then
10394 # Extract the first word of "as", so it can be a program name with args.
10395 set dummy as; ac_word=$2
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10397 $as_echo_n "checking for $ac_word... " >&6; }
10398 if ${ac_cv_prog_ac_ct_AS+:} false; then :
10399 $as_echo_n "(cached) " >&6
10401 if test -n "$ac_ct_AS"; then
10402 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405 for as_dir in $PATH
10408 test -z "$as_dir" && as_dir=.
10409 for ac_exec_ext in '' $ac_executable_extensions; do
10410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10411 ac_cv_prog_ac_ct_AS="as"
10412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10421 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10422 if test -n "$ac_ct_AS"; then
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10424 $as_echo "$ac_ct_AS" >&6; }
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10427 $as_echo "no" >&6; }
10430 if test "x$ac_ct_AS" = x; then
10433 case $cross_compiling:$ac_tool_warned in
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10437 ac_tool_warned=yes ;;
10442 AS="$ac_cv_prog_AS"
10445 if test -n "$ac_tool_prefix"; then
10446 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10447 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10449 $as_echo_n "checking for $ac_word... " >&6; }
10450 if ${ac_cv_prog_DLLTOOL+:} false; then :
10451 $as_echo_n "(cached) " >&6
10453 if test -n "$DLLTOOL"; then
10454 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10457 for as_dir in $PATH
10460 test -z "$as_dir" && as_dir=.
10461 for ac_exec_ext in '' $ac_executable_extensions; do
10462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10463 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10473 DLLTOOL=$ac_cv_prog_DLLTOOL
10474 if test -n "$DLLTOOL"; then
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10476 $as_echo "$DLLTOOL" >&6; }
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479 $as_echo "no" >&6; }
10484 if test -z "$ac_cv_prog_DLLTOOL"; then
10485 ac_ct_DLLTOOL=$DLLTOOL
10486 # Extract the first word of "dlltool", so it can be a program name with args.
10487 set dummy dlltool; ac_word=$2
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10489 $as_echo_n "checking for $ac_word... " >&6; }
10490 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10491 $as_echo_n "(cached) " >&6
10493 if test -n "$ac_ct_DLLTOOL"; then
10494 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497 for as_dir in $PATH
10500 test -z "$as_dir" && as_dir=.
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10503 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10513 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10514 if test -n "$ac_ct_DLLTOOL"; then
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10516 $as_echo "$ac_ct_DLLTOOL" >&6; }
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519 $as_echo "no" >&6; }
10522 if test "x$ac_ct_DLLTOOL" = x; then
10525 case $cross_compiling:$ac_tool_warned in
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10529 ac_tool_warned=yes ;;
10531 DLLTOOL=$ac_ct_DLLTOOL
10534 DLLTOOL="$ac_cv_prog_DLLTOOL"
10537 if test -n "$ac_tool_prefix"; then
10538 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10539 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10541 $as_echo_n "checking for $ac_word... " >&6; }
10542 if ${ac_cv_prog_OBJDUMP+:} false; then :
10543 $as_echo_n "(cached) " >&6
10545 if test -n "$OBJDUMP"; then
10546 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10549 for as_dir in $PATH
10552 test -z "$as_dir" && as_dir=.
10553 for ac_exec_ext in '' $ac_executable_extensions; do
10554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10555 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10565 OBJDUMP=$ac_cv_prog_OBJDUMP
10566 if test -n "$OBJDUMP"; then
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10568 $as_echo "$OBJDUMP" >&6; }
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10571 $as_echo "no" >&6; }
10576 if test -z "$ac_cv_prog_OBJDUMP"; then
10577 ac_ct_OBJDUMP=$OBJDUMP
10578 # Extract the first word of "objdump", so it can be a program name with args.
10579 set dummy objdump; ac_word=$2
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10581 $as_echo_n "checking for $ac_word... " >&6; }
10582 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10583 $as_echo_n "(cached) " >&6
10585 if test -n "$ac_ct_OBJDUMP"; then
10586 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10589 for as_dir in $PATH
10592 test -z "$as_dir" && as_dir=.
10593 for ac_exec_ext in '' $ac_executable_extensions; do
10594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10595 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10605 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10606 if test -n "$ac_ct_OBJDUMP"; then
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10608 $as_echo "$ac_ct_OBJDUMP" >&6; }
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10611 $as_echo "no" >&6; }
10614 if test "x$ac_ct_OBJDUMP" = x; then
10617 case $cross_compiling:$ac_tool_warned in
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10621 ac_tool_warned=yes ;;
10623 OBJDUMP=$ac_ct_OBJDUMP
10626 OBJDUMP="$ac_cv_prog_OBJDUMP"
10632 test -z "$AS" && AS=as
10638 test -z "$DLLTOOL" && DLLTOOL=dlltool
10644 test -z "$OBJDUMP" && OBJDUMP=objdump
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10655 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10660 macro_version='2.4.2'
10661 macro_revision='1.3337'
10675 ltmain="$ac_aux_dir/ltmain.sh"
10677 # Backslashify metacharacters that are still active within
10678 # double-quoted strings.
10679 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10681 # Same as above, but do not quote variable references.
10682 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10684 # Sed substitution to delay expansion of an escaped shell variable in a
10685 # double_quote_subst'ed string.
10686 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10688 # Sed substitution to delay expansion of an escaped single quote.
10689 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10691 # Sed substitution to avoid accidental globbing in evaled expressions
10692 no_glob_subst='s/\*/\\\*/g'
10694 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10695 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10696 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10699 $as_echo_n "checking how to print strings... " >&6; }
10700 # Test print first, because it will be a builtin if present.
10701 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10702 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10704 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10707 # Use this function as a fallback that always works.
10708 func_fallback_echo ()
10710 eval 'cat <<_LTECHO_EOF
10714 ECHO='func_fallback_echo'
10717 # func_echo_all arg...
10718 # Invoke $ECHO with all args, space-separated.
10725 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10726 $as_echo "printf" >&6; } ;;
10727 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10728 $as_echo "print -r" >&6; } ;;
10729 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10730 $as_echo "cat" >&6; } ;;
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10747 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10748 if ${ac_cv_path_SED+:} false; then :
10749 $as_echo_n "(cached) " >&6
10751 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10752 for ac_i in 1 2 3 4 5 6 7; do
10753 ac_script="$ac_script$as_nl$ac_script"
10755 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10756 { ac_script=; unset ac_script;}
10757 if test -z "$SED"; then
10758 ac_path_SED_found=false
10759 # Loop through the user's path and test for each of PROGNAME-LIST
10760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761 for as_dir in $PATH
10764 test -z "$as_dir" && as_dir=.
10765 for ac_prog in sed gsed; do
10766 for ac_exec_ext in '' $ac_executable_extensions; do
10767 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10768 as_fn_executable_p "$ac_path_SED" || continue
10769 # Check for GNU ac_path_SED and select it if it is found.
10770 # Check for GNU $ac_path_SED
10771 case `"$ac_path_SED" --version 2>&1` in
10773 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10776 $as_echo_n 0123456789 >"conftest.in"
10779 cat "conftest.in" "conftest.in" >"conftest.tmp"
10780 mv "conftest.tmp" "conftest.in"
10781 cp "conftest.in" "conftest.nl"
10782 $as_echo '' >> "conftest.nl"
10783 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10784 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10785 as_fn_arith $ac_count + 1 && ac_count=$as_val
10786 if test $ac_count -gt ${ac_path_SED_max-0}; then
10787 # Best one so far, save it but keep looking for a better one
10788 ac_cv_path_SED="$ac_path_SED"
10789 ac_path_SED_max=$ac_count
10791 # 10*(2^10) chars as input seems more than enough
10792 test $ac_count -gt 10 && break
10794 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10797 $ac_path_SED_found && break 3
10802 if test -z "$ac_cv_path_SED"; then
10803 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10806 ac_cv_path_SED=$SED
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10811 $as_echo "$ac_cv_path_SED" >&6; }
10812 SED="$ac_cv_path_SED"
10815 test -z "$SED" && SED=sed
10816 Xsed="$SED -e 1s/^X//"
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10829 $as_echo_n "checking for fgrep... " >&6; }
10830 if ${ac_cv_path_FGREP+:} false; then :
10831 $as_echo_n "(cached) " >&6
10833 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10834 then ac_cv_path_FGREP="$GREP -F"
10836 if test -z "$FGREP"; then
10837 ac_path_FGREP_found=false
10838 # Loop through the user's path and test for each of PROGNAME-LIST
10839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10843 test -z "$as_dir" && as_dir=.
10844 for ac_prog in fgrep; do
10845 for ac_exec_ext in '' $ac_executable_extensions; do
10846 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10847 as_fn_executable_p "$ac_path_FGREP" || continue
10848 # Check for GNU ac_path_FGREP and select it if it is found.
10849 # Check for GNU $ac_path_FGREP
10850 case `"$ac_path_FGREP" --version 2>&1` in
10852 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10855 $as_echo_n 0123456789 >"conftest.in"
10858 cat "conftest.in" "conftest.in" >"conftest.tmp"
10859 mv "conftest.tmp" "conftest.in"
10860 cp "conftest.in" "conftest.nl"
10861 $as_echo 'FGREP' >> "conftest.nl"
10862 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10863 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10864 as_fn_arith $ac_count + 1 && ac_count=$as_val
10865 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10866 # Best one so far, save it but keep looking for a better one
10867 ac_cv_path_FGREP="$ac_path_FGREP"
10868 ac_path_FGREP_max=$ac_count
10870 # 10*(2^10) chars as input seems more than enough
10871 test $ac_count -gt 10 && break
10873 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10876 $ac_path_FGREP_found && break 3
10881 if test -z "$ac_cv_path_FGREP"; then
10882 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10885 ac_cv_path_FGREP=$FGREP
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10891 $as_echo "$ac_cv_path_FGREP" >&6; }
10892 FGREP="$ac_cv_path_FGREP"
10895 test -z "$GREP" && GREP=grep
10915 # Check whether --with-gnu-ld was given.
10916 if test "${with_gnu_ld+set}" = set; then :
10917 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10923 if test "$GCC" = yes; then
10924 # Check if gcc -print-prog-name=ld gives a path.
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10926 $as_echo_n "checking for ld used by $CC... " >&6; }
10929 # gcc leaves a trailing carriage return which upsets mingw
10930 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10932 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10935 # Accept absolute paths.
10937 re_direlt='/[^/][^/]*/\.\./'
10938 # Canonicalize the pathname of ld
10939 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10940 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10941 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10943 test -z "$LD" && LD="$ac_prog"
10946 # If it fails, then pretend we aren't using GCC.
10950 # If it is relative, then search for the first ld in PATH.
10951 with_gnu_ld=unknown
10954 elif test "$with_gnu_ld" = yes; then
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10956 $as_echo_n "checking for GNU ld... " >&6; }
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10959 $as_echo_n "checking for non-GNU ld... " >&6; }
10961 if ${lt_cv_path_LD+:} false; then :
10962 $as_echo_n "(cached) " >&6
10964 if test -z "$LD"; then
10965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10966 for ac_dir in $PATH; do
10968 test -z "$ac_dir" && ac_dir=.
10969 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10970 lt_cv_path_LD="$ac_dir/$ac_prog"
10971 # Check to see if the program is GNU ld. I'd rather use --version,
10972 # but apparently some variants of GNU ld only accept -v.
10973 # Break only if it was the GNU/non-GNU ld that we prefer.
10974 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10975 *GNU* | *'with BFD'*)
10976 test "$with_gnu_ld" != no && break
10979 test "$with_gnu_ld" != yes && break
10986 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10990 LD="$lt_cv_path_LD"
10991 if test -n "$LD"; then
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10993 $as_echo "$LD" >&6; }
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10996 $as_echo "no" >&6; }
10998 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11000 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11001 if ${lt_cv_prog_gnu_ld+:} false; then :
11002 $as_echo_n "(cached) " >&6
11004 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11005 case `$LD -v 2>&1 </dev/null` in
11006 *GNU* | *'with BFD'*)
11007 lt_cv_prog_gnu_ld=yes
11010 lt_cv_prog_gnu_ld=no
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11015 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11016 with_gnu_ld=$lt_cv_prog_gnu_ld
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11027 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11028 if ${lt_cv_path_NM+:} false; then :
11029 $as_echo_n "(cached) " >&6
11031 if test -n "$NM"; then
11032 # Let the user override the test.
11033 lt_cv_path_NM="$NM"
11035 lt_nm_to_check="${ac_tool_prefix}nm"
11036 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11037 lt_nm_to_check="$lt_nm_to_check nm"
11039 for lt_tmp_nm in $lt_nm_to_check; do
11040 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11041 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11043 test -z "$ac_dir" && ac_dir=.
11044 tmp_nm="$ac_dir/$lt_tmp_nm"
11045 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11046 # Check to see if the nm accepts a BSD-compat flag.
11047 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11048 # nm: unknown option "B" ignored
11049 # Tru64's nm complains that /dev/null is an invalid object file
11050 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11051 */dev/null* | *'Invalid file or object type'*)
11052 lt_cv_path_NM="$tmp_nm -B"
11056 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11058 lt_cv_path_NM="$tmp_nm -p"
11062 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11063 continue # so that we can try to find one that supports BSD flags
11072 : ${lt_cv_path_NM=no}
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11076 $as_echo "$lt_cv_path_NM" >&6; }
11077 if test "$lt_cv_path_NM" != "no"; then
11078 NM="$lt_cv_path_NM"
11080 # Didn't find any BSD compatible name lister, look for dumpbin.
11081 if test -n "$DUMPBIN"; then :
11082 # Let the user override the test.
11084 if test -n "$ac_tool_prefix"; then
11085 for ac_prog in dumpbin "link -dump"
11087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11090 $as_echo_n "checking for $ac_word... " >&6; }
11091 if ${ac_cv_prog_DUMPBIN+:} false; then :
11092 $as_echo_n "(cached) " >&6
11094 if test -n "$DUMPBIN"; then
11095 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11098 for as_dir in $PATH
11101 test -z "$as_dir" && as_dir=.
11102 for ac_exec_ext in '' $ac_executable_extensions; do
11103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11104 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11114 DUMPBIN=$ac_cv_prog_DUMPBIN
11115 if test -n "$DUMPBIN"; then
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11117 $as_echo "$DUMPBIN" >&6; }
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11120 $as_echo "no" >&6; }
11124 test -n "$DUMPBIN" && break
11127 if test -z "$DUMPBIN"; then
11128 ac_ct_DUMPBIN=$DUMPBIN
11129 for ac_prog in dumpbin "link -dump"
11131 # Extract the first word of "$ac_prog", so it can be a program name with args.
11132 set dummy $ac_prog; ac_word=$2
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11134 $as_echo_n "checking for $ac_word... " >&6; }
11135 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11136 $as_echo_n "(cached) " >&6
11138 if test -n "$ac_ct_DUMPBIN"; then
11139 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142 for as_dir in $PATH
11145 test -z "$as_dir" && as_dir=.
11146 for ac_exec_ext in '' $ac_executable_extensions; do
11147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11148 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11158 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11159 if test -n "$ac_ct_DUMPBIN"; then
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11161 $as_echo "$ac_ct_DUMPBIN" >&6; }
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11164 $as_echo "no" >&6; }
11168 test -n "$ac_ct_DUMPBIN" && break
11171 if test "x$ac_ct_DUMPBIN" = x; then
11174 case $cross_compiling:$ac_tool_warned in
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11178 ac_tool_warned=yes ;;
11180 DUMPBIN=$ac_ct_DUMPBIN
11184 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11186 DUMPBIN="$DUMPBIN -symbols"
11194 if test "$DUMPBIN" != ":"; then
11198 test -z "$NM" && NM=nm
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11206 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11207 if ${lt_cv_nm_interface+:} false; then :
11208 $as_echo_n "(cached) " >&6
11210 lt_cv_nm_interface="BSD nm"
11211 echo "int some_variable = 0;" > conftest.$ac_ext
11212 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11213 (eval "$ac_compile" 2>conftest.err)
11214 cat conftest.err >&5
11215 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11216 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11217 cat conftest.err >&5
11218 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11219 cat conftest.out >&5
11220 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11221 lt_cv_nm_interface="MS dumpbin"
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11226 $as_echo "$lt_cv_nm_interface" >&6; }
11228 # find the maximum length of command line arguments
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11230 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11231 if ${lt_cv_sys_max_cmd_len+:} false; then :
11232 $as_echo_n "(cached) " >&6
11239 # On DJGPP, this test can blow up pretty badly due to problems in libc
11240 # (any single argument exceeding 2000 bytes causes a buffer overrun
11241 # during glob expansion). Even if it were fixed, the result of this
11242 # check would be larger than it should be.
11243 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11247 # Under GNU Hurd, this test is not required because there is
11248 # no limit to the length of command line arguments.
11249 # Libtool will interpret -1 as no limit whatsoever
11250 lt_cv_sys_max_cmd_len=-1;
11253 cygwin* | mingw* | cegcc*)
11254 # On Win9x/ME, this test blows up -- it succeeds, but takes
11255 # about 5 minutes as the teststring grows exponentially.
11256 # Worse, since 9x/ME are not pre-emptively multitasking,
11257 # you end up with a "frozen" computer, even though with patience
11258 # the test eventually succeeds (with a max line length of 256k).
11259 # Instead, let's just punt: use the minimum linelength reported by
11260 # all of the supported platforms: 8192 (on NT/2K/XP).
11261 lt_cv_sys_max_cmd_len=8192;
11265 # On MiNT this can take a long time and run out of memory.
11266 lt_cv_sys_max_cmd_len=8192;
11270 # On AmigaOS with pdksh, this test takes hours, literally.
11271 # So we just punt and use a minimum line length of 8192.
11272 lt_cv_sys_max_cmd_len=8192;
11275 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11276 # This has been around since 386BSD, at least. Likely further.
11277 if test -x /sbin/sysctl; then
11278 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11279 elif test -x /usr/sbin/sysctl; then
11280 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11282 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11284 # And add a safety zone
11285 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11290 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11291 lt_cv_sys_max_cmd_len=196608
11295 # The test takes a long time on OS/2.
11296 lt_cv_sys_max_cmd_len=8192
11300 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11301 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11302 # nice to cause kernel panics so lets avoid the loop below.
11303 # First set a reasonable default.
11304 lt_cv_sys_max_cmd_len=16384
11306 if test -x /sbin/sysconfig; then
11307 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11308 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11313 lt_cv_sys_max_cmd_len=102400
11315 sysv5* | sco5v6* | sysv4.2uw2*)
11316 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11317 if test -n "$kargmax"; then
11318 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11320 lt_cv_sys_max_cmd_len=32768
11324 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11325 if test -n "$lt_cv_sys_max_cmd_len"; then
11326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11329 # Make teststring a little bigger before we do anything with it.
11330 # a 1K string should be a reasonable start.
11331 for i in 1 2 3 4 5 6 7 8 ; do
11332 teststring=$teststring$teststring
11334 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11335 # If test is not a shell built-in, we'll probably end up computing a
11336 # maximum length that is only half of the actual maximum length, but
11338 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11339 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11340 test $i != 17 # 1/2 MB should be enough
11343 teststring=$teststring$teststring
11345 # Only check the string length outside the loop.
11346 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11348 # Add a significant safety factor because C++ compilers can tack on
11349 # massive amounts of additional arguments before passing them to the
11350 # linker. It appears as though 1/2 is a usable value.
11351 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11358 if test -n $lt_cv_sys_max_cmd_len ; then
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11360 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11363 $as_echo "none" >&6; }
11365 max_cmd_len=$lt_cv_sys_max_cmd_len
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11377 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11378 # Try some XSI features
11380 ( _lt_dummy="a/b/c"
11381 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11383 && eval 'test $(( 1 + 1 )) -eq 2 \
11384 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11387 $as_echo "$xsi_shell" >&6; }
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11391 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11393 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11395 && lt_shell_append=yes
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11397 $as_echo "$lt_shell_append" >&6; }
11400 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11410 # test EBCDIC or ASCII
11411 case `echo X|tr X '\101'` in
11412 A) # ASCII based system
11413 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11414 lt_SP2NL='tr \040 \012'
11415 lt_NL2SP='tr \015\012 \040\040'
11417 *) # EBCDIC based system
11418 lt_SP2NL='tr \100 \n'
11419 lt_NL2SP='tr \r\n \100\100'
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11432 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11433 if ${lt_cv_to_host_file_cmd+:} false; then :
11434 $as_echo_n "(cached) " >&6
11439 *-*-mingw* ) # actually msys
11440 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11443 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11445 * ) # otherwise, assume *nix
11446 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11452 *-*-mingw* ) # actually msys
11453 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11456 lt_cv_to_host_file_cmd=func_convert_file_noop
11458 * ) # otherwise, assume *nix
11459 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11463 * ) # unhandled hosts (and "normal" native builds)
11464 lt_cv_to_host_file_cmd=func_convert_file_noop
11470 to_host_file_cmd=$lt_cv_to_host_file_cmd
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11472 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11479 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11480 if ${lt_cv_to_tool_file_cmd+:} false; then :
11481 $as_echo_n "(cached) " >&6
11483 #assume ordinary cross tools, or native build.
11484 lt_cv_to_tool_file_cmd=func_convert_file_noop
11488 *-*-mingw* ) # actually msys
11489 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11497 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11499 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11506 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11507 if ${lt_cv_ld_reload_flag+:} false; then :
11508 $as_echo_n "(cached) " >&6
11510 lt_cv_ld_reload_flag='-r'
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11513 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11514 reload_flag=$lt_cv_ld_reload_flag
11515 case $reload_flag in
11517 *) reload_flag=" $reload_flag" ;;
11519 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11521 cygwin* | mingw* | pw32* | cegcc*)
11522 if test "$GCC" != yes; then
11527 if test "$GCC" = yes; then
11528 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11530 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11543 if test -n "$ac_tool_prefix"; then
11544 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11545 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11547 $as_echo_n "checking for $ac_word... " >&6; }
11548 if ${ac_cv_prog_OBJDUMP+:} false; then :
11549 $as_echo_n "(cached) " >&6
11551 if test -n "$OBJDUMP"; then
11552 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555 for as_dir in $PATH
11558 test -z "$as_dir" && as_dir=.
11559 for ac_exec_ext in '' $ac_executable_extensions; do
11560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11561 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11571 OBJDUMP=$ac_cv_prog_OBJDUMP
11572 if test -n "$OBJDUMP"; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11574 $as_echo "$OBJDUMP" >&6; }
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577 $as_echo "no" >&6; }
11582 if test -z "$ac_cv_prog_OBJDUMP"; then
11583 ac_ct_OBJDUMP=$OBJDUMP
11584 # Extract the first word of "objdump", so it can be a program name with args.
11585 set dummy objdump; ac_word=$2
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11587 $as_echo_n "checking for $ac_word... " >&6; }
11588 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11589 $as_echo_n "(cached) " >&6
11591 if test -n "$ac_ct_OBJDUMP"; then
11592 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595 for as_dir in $PATH
11598 test -z "$as_dir" && as_dir=.
11599 for ac_exec_ext in '' $ac_executable_extensions; do
11600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11601 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11611 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11612 if test -n "$ac_ct_OBJDUMP"; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11614 $as_echo "$ac_ct_OBJDUMP" >&6; }
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 $as_echo "no" >&6; }
11620 if test "x$ac_ct_OBJDUMP" = x; then
11623 case $cross_compiling:$ac_tool_warned in
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11627 ac_tool_warned=yes ;;
11629 OBJDUMP=$ac_ct_OBJDUMP
11632 OBJDUMP="$ac_cv_prog_OBJDUMP"
11635 test -z "$OBJDUMP" && OBJDUMP=objdump
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11643 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11644 if ${lt_cv_deplibs_check_method+:} false; then :
11645 $as_echo_n "(cached) " >&6
11647 lt_cv_file_magic_cmd='$MAGIC_CMD'
11648 lt_cv_file_magic_test_file=
11649 lt_cv_deplibs_check_method='unknown'
11650 # Need to set the preceding variable on all platforms that support
11651 # interlibrary dependencies.
11652 # 'none' -- dependencies not supported.
11653 # `unknown' -- same as none, but documents that we really don't know.
11654 # 'pass_all' -- all dependencies passed with no checks.
11655 # 'test_compile' -- check by making test program.
11656 # 'file_magic [[regex]]' -- check by looking for files in library path
11657 # which responds to the $file_magic_cmd with a given extended regex.
11658 # If you have `file' or equivalent on your system and you're not sure
11659 # whether `pass_all' will *always* work, you probably want this one.
11663 lt_cv_deplibs_check_method=pass_all
11667 lt_cv_deplibs_check_method=pass_all
11671 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11672 lt_cv_file_magic_cmd='/usr/bin/file -L'
11673 lt_cv_file_magic_test_file=/shlib/libc.so
11677 # func_win32_libid is a shell function defined in ltmain.sh
11678 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11679 lt_cv_file_magic_cmd='func_win32_libid'
11683 # Base MSYS/MinGW do not provide the 'file' command needed by
11684 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11685 # unless we find 'file', for example because we are cross-compiling.
11686 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11687 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11688 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11689 lt_cv_file_magic_cmd='func_win32_libid'
11691 # Keep this pattern in sync with the one in func_win32_libid.
11692 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11693 lt_cv_file_magic_cmd='$OBJDUMP -f'
11698 # use the weaker test based on 'objdump'. See mingw*.
11699 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11700 lt_cv_file_magic_cmd='$OBJDUMP -f'
11703 darwin* | rhapsody*)
11704 lt_cv_deplibs_check_method=pass_all
11707 freebsd* | dragonfly*)
11708 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11711 # Not sure whether the presence of OpenBSD here was a mistake.
11712 # Let's accept both of them until this is cleared up.
11713 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11714 lt_cv_file_magic_cmd=/usr/bin/file
11715 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11719 lt_cv_deplibs_check_method=pass_all
11724 lt_cv_deplibs_check_method=pass_all
11728 lt_cv_deplibs_check_method=pass_all
11731 hpux10.20* | hpux11*)
11732 lt_cv_file_magic_cmd=/usr/bin/file
11735 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11736 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11739 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
11740 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11743 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11744 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11750 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11754 irix5* | irix6* | nonstopux*)
11756 *-32|*"-32 ") libmagic=32-bit;;
11757 *-n32|*"-n32 ") libmagic=N32;;
11758 *-64|*"-64 ") libmagic=64-bit;;
11759 *) libmagic=never-match;;
11761 lt_cv_deplibs_check_method=pass_all
11764 # This must be glibc/ELF.
11765 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11766 lt_cv_deplibs_check_method=pass_all
11770 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11779 lt_cv_file_magic_cmd=/usr/bin/file
11780 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11784 lt_cv_deplibs_check_method=pass_all
11788 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11789 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11791 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11795 osf3* | osf4* | osf5*)
11796 lt_cv_deplibs_check_method=pass_all
11800 lt_cv_deplibs_check_method=pass_all
11804 lt_cv_deplibs_check_method=pass_all
11807 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11808 lt_cv_deplibs_check_method=pass_all
11812 case $host_vendor in
11814 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
11815 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11818 lt_cv_deplibs_check_method=pass_all
11821 lt_cv_file_magic_cmd='/bin/file'
11822 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11825 lt_cv_file_magic_cmd='/bin/file'
11826 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11827 lt_cv_file_magic_test_file=/lib/libc.so
11830 lt_cv_deplibs_check_method=pass_all
11833 lt_cv_deplibs_check_method=pass_all
11839 lt_cv_deplibs_check_method=pass_all
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11845 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11849 if test "$build" = "$host"; then
11852 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11853 want_nocaseglob=yes
11855 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11861 file_magic_cmd=$lt_cv_file_magic_cmd
11862 deplibs_check_method=$lt_cv_deplibs_check_method
11863 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11886 if test -n "$ac_tool_prefix"; then
11887 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11888 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890 $as_echo_n "checking for $ac_word... " >&6; }
11891 if ${ac_cv_prog_DLLTOOL+:} false; then :
11892 $as_echo_n "(cached) " >&6
11894 if test -n "$DLLTOOL"; then
11895 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898 for as_dir in $PATH
11901 test -z "$as_dir" && as_dir=.
11902 for ac_exec_ext in '' $ac_executable_extensions; do
11903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11904 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11914 DLLTOOL=$ac_cv_prog_DLLTOOL
11915 if test -n "$DLLTOOL"; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11917 $as_echo "$DLLTOOL" >&6; }
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920 $as_echo "no" >&6; }
11925 if test -z "$ac_cv_prog_DLLTOOL"; then
11926 ac_ct_DLLTOOL=$DLLTOOL
11927 # Extract the first word of "dlltool", so it can be a program name with args.
11928 set dummy dlltool; ac_word=$2
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930 $as_echo_n "checking for $ac_word... " >&6; }
11931 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11932 $as_echo_n "(cached) " >&6
11934 if test -n "$ac_ct_DLLTOOL"; then
11935 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938 for as_dir in $PATH
11941 test -z "$as_dir" && as_dir=.
11942 for ac_exec_ext in '' $ac_executable_extensions; do
11943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11944 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11954 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11955 if test -n "$ac_ct_DLLTOOL"; then
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11957 $as_echo "$ac_ct_DLLTOOL" >&6; }
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960 $as_echo "no" >&6; }
11963 if test "x$ac_ct_DLLTOOL" = x; then
11966 case $cross_compiling:$ac_tool_warned in
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11970 ac_tool_warned=yes ;;
11972 DLLTOOL=$ac_ct_DLLTOOL
11975 DLLTOOL="$ac_cv_prog_DLLTOOL"
11978 test -z "$DLLTOOL" && DLLTOOL=dlltool
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11987 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11988 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11989 $as_echo_n "(cached) " >&6
11991 lt_cv_sharedlib_from_linklib_cmd='unknown'
11994 cygwin* | mingw* | pw32* | cegcc*)
11995 # two different shell functions defined in ltmain.sh
11996 # decide which to use based on capabilities of $DLLTOOL
11997 case `$DLLTOOL --help 2>&1` in
11998 *--identify-strict*)
11999 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12002 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12007 # fallback: assume linklib IS sharedlib
12008 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12014 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12015 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12016 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12024 if test -n "$ac_tool_prefix"; then
12027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12028 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12030 $as_echo_n "checking for $ac_word... " >&6; }
12031 if ${ac_cv_prog_AR+:} false; then :
12032 $as_echo_n "(cached) " >&6
12034 if test -n "$AR"; then
12035 ac_cv_prog_AR="$AR" # Let the user override the test.
12037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12038 for as_dir in $PATH
12041 test -z "$as_dir" && as_dir=.
12042 for ac_exec_ext in '' $ac_executable_extensions; do
12043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12044 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12055 if test -n "$AR"; then
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12057 $as_echo "$AR" >&6; }
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12060 $as_echo "no" >&6; }
12064 test -n "$AR" && break
12067 if test -z "$AR"; then
12071 # Extract the first word of "$ac_prog", so it can be a program name with args.
12072 set dummy $ac_prog; ac_word=$2
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074 $as_echo_n "checking for $ac_word... " >&6; }
12075 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12076 $as_echo_n "(cached) " >&6
12078 if test -n "$ac_ct_AR"; then
12079 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $PATH
12085 test -z "$as_dir" && as_dir=.
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12088 ac_cv_prog_ac_ct_AR="$ac_prog"
12089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12098 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12099 if test -n "$ac_ct_AR"; then
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12101 $as_echo "$ac_ct_AR" >&6; }
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104 $as_echo "no" >&6; }
12108 test -n "$ac_ct_AR" && break
12111 if test "x$ac_ct_AR" = x; then
12114 case $cross_compiling:$ac_tool_warned in
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12118 ac_tool_warned=yes ;;
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12138 $as_echo_n "checking for archiver @FILE support... " >&6; }
12139 if ${lt_cv_ar_at_file+:} false; then :
12140 $as_echo_n "(cached) " >&6
12142 lt_cv_ar_at_file=no
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12154 if ac_fn_c_try_compile "$LINENO"; then :
12155 echo conftest.$ac_objext > conftest.lst
12156 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12158 (eval $lt_ar_try) 2>&5
12160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12161 test $ac_status = 0; }
12162 if test "$ac_status" -eq 0; then
12163 # Ensure the archiver fails upon bogus file names.
12164 rm -f conftest.$ac_objext libconftest.a
12165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12166 (eval $lt_ar_try) 2>&5
12168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12169 test $ac_status = 0; }
12170 if test "$ac_status" -ne 0; then
12174 rm -f conftest.* libconftest.a
12177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12181 $as_echo "$lt_cv_ar_at_file" >&6; }
12183 if test "x$lt_cv_ar_at_file" = xno; then
12184 archiver_list_spec=
12186 archiver_list_spec=$lt_cv_ar_at_file
12195 if test -n "$ac_tool_prefix"; then
12196 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12197 set dummy ${ac_tool_prefix}strip; ac_word=$2
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199 $as_echo_n "checking for $ac_word... " >&6; }
12200 if ${ac_cv_prog_STRIP+:} false; then :
12201 $as_echo_n "(cached) " >&6
12203 if test -n "$STRIP"; then
12204 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207 for as_dir in $PATH
12210 test -z "$as_dir" && as_dir=.
12211 for ac_exec_ext in '' $ac_executable_extensions; do
12212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12213 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12223 STRIP=$ac_cv_prog_STRIP
12224 if test -n "$STRIP"; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12226 $as_echo "$STRIP" >&6; }
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229 $as_echo "no" >&6; }
12234 if test -z "$ac_cv_prog_STRIP"; then
12236 # Extract the first word of "strip", so it can be a program name with args.
12237 set dummy strip; ac_word=$2
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12239 $as_echo_n "checking for $ac_word... " >&6; }
12240 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12241 $as_echo_n "(cached) " >&6
12243 if test -n "$ac_ct_STRIP"; then
12244 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12250 test -z "$as_dir" && as_dir=.
12251 for ac_exec_ext in '' $ac_executable_extensions; do
12252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12253 ac_cv_prog_ac_ct_STRIP="strip"
12254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12263 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12264 if test -n "$ac_ct_STRIP"; then
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12266 $as_echo "$ac_ct_STRIP" >&6; }
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12269 $as_echo "no" >&6; }
12272 if test "x$ac_ct_STRIP" = x; then
12275 case $cross_compiling:$ac_tool_warned in
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12279 ac_tool_warned=yes ;;
12284 STRIP="$ac_cv_prog_STRIP"
12287 test -z "$STRIP" && STRIP=:
12294 if test -n "$ac_tool_prefix"; then
12295 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12296 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12298 $as_echo_n "checking for $ac_word... " >&6; }
12299 if ${ac_cv_prog_RANLIB+:} false; then :
12300 $as_echo_n "(cached) " >&6
12302 if test -n "$RANLIB"; then
12303 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306 for as_dir in $PATH
12309 test -z "$as_dir" && as_dir=.
12310 for ac_exec_ext in '' $ac_executable_extensions; do
12311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12312 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12322 RANLIB=$ac_cv_prog_RANLIB
12323 if test -n "$RANLIB"; then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12325 $as_echo "$RANLIB" >&6; }
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; }
12333 if test -z "$ac_cv_prog_RANLIB"; then
12334 ac_ct_RANLIB=$RANLIB
12335 # Extract the first word of "ranlib", so it can be a program name with args.
12336 set dummy ranlib; ac_word=$2
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12338 $as_echo_n "checking for $ac_word... " >&6; }
12339 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12340 $as_echo_n "(cached) " >&6
12342 if test -n "$ac_ct_RANLIB"; then
12343 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346 for as_dir in $PATH
12349 test -z "$as_dir" && as_dir=.
12350 for ac_exec_ext in '' $ac_executable_extensions; do
12351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12352 ac_cv_prog_ac_ct_RANLIB="ranlib"
12353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12362 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12363 if test -n "$ac_ct_RANLIB"; then
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12365 $as_echo "$ac_ct_RANLIB" >&6; }
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368 $as_echo "no" >&6; }
12371 if test "x$ac_ct_RANLIB" = x; then
12374 case $cross_compiling:$ac_tool_warned in
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12378 ac_tool_warned=yes ;;
12380 RANLIB=$ac_ct_RANLIB
12383 RANLIB="$ac_cv_prog_RANLIB"
12386 test -z "$RANLIB" && RANLIB=:
12393 # Determine commands to create old-style static archives.
12394 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12395 old_postinstall_cmds='chmod 644 $oldlib'
12396 old_postuninstall_cmds=
12398 if test -n "$RANLIB"; then
12401 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12404 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12407 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12412 lock_old_archive_extraction=yes ;;
12414 lock_old_archive_extraction=no ;;
12455 # If no C compiler was specified, use CC.
12458 # If no C compiler flags were specified, use CFLAGS.
12459 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12461 # Allow CC to be a program name with arguments.
12465 # Check for command to grab the raw symbol name followed by C symbol from nm.
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12467 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12468 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12469 $as_echo_n "(cached) " >&6
12472 # These are sane defaults that work on at least a few old systems.
12473 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12475 # Character class describing NM global symbol codes.
12476 symcode='[BCDEGRST]'
12478 # Regexp to match symbols that can be accessed directly from C.
12479 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12481 # Define system-specific variables.
12486 cygwin* | mingw* | pw32* | cegcc*)
12487 symcode='[ABCDGISTW]'
12490 if test "$host_cpu" = ia64; then
12491 symcode='[ABCDEGRST]'
12494 irix* | nonstopux*)
12495 symcode='[BCDEGRST]'
12498 symcode='[BCDEGQRST]'
12509 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12517 # If we're using GNU nm, then use its standard symbol codes.
12518 case `$NM -V 2>&1` in
12519 *GNU* | *'with BFD'*)
12520 symcode='[ABCDGIRSTW]' ;;
12523 # Transform an extracted symbol line into a proper C declaration.
12524 # Some systems (esp. on ia64) link data and code symbols differently,
12525 # so use this general approach.
12526 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12528 # Transform an extracted symbol line into symbol name and symbol address
12529 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12530 lt_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'"
12532 # Handle CRLF in mingw tool chain
12536 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12540 # Try without a prefix underscore, then with it.
12541 for ac_symprfx in "" "_"; do
12543 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12544 symxfrm="\\1 $ac_symprfx\\2 \\2"
12546 # Write the raw and C identifiers.
12547 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12548 # Fake it for dumpbin and say T for any non-static function
12549 # and D for any global variable.
12550 # Also find C++ and __fastcall symbols from MSVC++,
12551 # which start with @ or ?.
12552 lt_cv_sys_global_symbol_pipe="$AWK '"\
12553 " {last_section=section; section=\$ 3};"\
12554 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12555 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12556 " \$ 0!~/External *\|/{next};"\
12557 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12558 " {if(hide[section]) next};"\
12559 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12560 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12561 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12562 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12563 " ' prfx=^$ac_symprfx"
12565 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12567 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12569 # Check to see that the pipe works correctly.
12573 cat > conftest.$ac_ext <<_LT_EOF
12578 void nm_test_func(void);
12579 void nm_test_func(void){}
12583 int main(){nm_test_var='a';nm_test_func();return(0);}
12586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12587 (eval $ac_compile) 2>&5
12589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12590 test $ac_status = 0; }; then
12591 # Now try to grab the symbols.
12593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12594 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12597 test $ac_status = 0; } && test -s "$nlist"; then
12598 # Try sorting and uniquifying the output.
12599 if sort "$nlist" | uniq > "$nlist"T; then
12600 mv -f "$nlist"T "$nlist"
12605 # Make sure that we snagged all the symbols we need.
12606 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12607 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12608 cat <<_LT_EOF > conftest.$ac_ext
12609 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12610 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12611 /* DATA imports from DLLs on WIN32 con't be const, because runtime
12612 relocations are performed -- see ld's documentation on pseudo-relocs. */
12613 # define LT_DLSYM_CONST
12614 #elif defined(__osf__)
12615 /* This system does not cope well with relocations in const data. */
12616 # define LT_DLSYM_CONST
12618 # define LT_DLSYM_CONST const
12626 # Now generate the symbol file.
12627 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12629 cat <<_LT_EOF >> conftest.$ac_ext
12631 /* The mapping between symbol names and symbols. */
12632 LT_DLSYM_CONST struct {
12636 lt__PROGRAM__LTX_preloaded_symbols[] =
12638 { "@PROGRAM@", (void *) 0 },
12640 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12641 cat <<\_LT_EOF >> conftest.$ac_ext
12645 /* This works around a problem in FreeBSD linker */
12646 #ifdef FREEBSD_WORKAROUND
12647 static const void *lt_preloaded_setup() {
12648 return lt__PROGRAM__LTX_preloaded_symbols;
12656 # Now try linking the two files.
12657 mv conftest.$ac_objext conftstm.$ac_objext
12658 lt_globsym_save_LIBS=$LIBS
12659 lt_globsym_save_CFLAGS=$CFLAGS
12660 LIBS="conftstm.$ac_objext"
12661 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12663 (eval $ac_link) 2>&5
12665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12666 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12669 LIBS=$lt_globsym_save_LIBS
12670 CFLAGS=$lt_globsym_save_CFLAGS
12672 echo "cannot find nm_test_func in $nlist" >&5
12675 echo "cannot find nm_test_var in $nlist" >&5
12678 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12681 echo "$progname: failed program was:" >&5
12682 cat conftest.$ac_ext >&5
12684 rm -rf conftest* conftst*
12686 # Do not use the global_symbol_pipe unless it works.
12687 if test "$pipe_works" = yes; then
12690 lt_cv_sys_global_symbol_pipe=
12696 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12697 lt_cv_sys_global_symbol_to_cdecl=
12699 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12701 $as_echo "failed" >&6; }
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12704 $as_echo "ok" >&6; }
12707 # Response file support.
12708 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12709 nm_file_list_spec='@'
12710 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12711 nm_file_list_spec='@'
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12741 $as_echo_n "checking for sysroot... " >&6; }
12743 # Check whether --with-sysroot was given.
12744 if test "${with_sysroot+set}" = set; then :
12745 withval=$with_sysroot;
12752 case ${with_sysroot} in #(
12754 if test "$GCC" = yes; then
12755 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12759 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12765 $as_echo "${with_sysroot}" >&6; }
12766 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12771 $as_echo "${lt_sysroot:-no}" >&6; }
12777 # Check whether --enable-libtool-lock was given.
12778 if test "${enable_libtool_lock+set}" = set; then :
12779 enableval=$enable_libtool_lock;
12782 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12784 # Some flags need to be propagated to the compiler or linker for good
12788 # Find out which ABI we are using.
12789 echo 'int i;' > conftest.$ac_ext
12790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12791 (eval $ac_compile) 2>&5
12793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12794 test $ac_status = 0; }; then
12795 case `/usr/bin/file conftest.$ac_objext` in
12797 HPUX_IA64_MODE="32"
12800 HPUX_IA64_MODE="64"
12807 # Find out which ABI we are using.
12808 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12810 (eval $ac_compile) 2>&5
12812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12813 test $ac_status = 0; }; then
12814 if test "$lt_cv_prog_gnu_ld" = yes; then
12815 case `/usr/bin/file conftest.$ac_objext` in
12817 LD="${LD-ld} -melf32bsmip"
12820 LD="${LD-ld} -melf32bmipn32"
12823 LD="${LD-ld} -melf64bmip"
12827 case `/usr/bin/file conftest.$ac_objext` in
12843 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12844 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12845 # Find out which ABI we are using.
12846 echo 'int i;' > conftest.$ac_ext
12847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12848 (eval $ac_compile) 2>&5
12850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12851 test $ac_status = 0; }; then
12852 case `/usr/bin/file conftest.o` in
12855 x86_64-*kfreebsd*-gnu)
12856 LD="${LD-ld} -m elf_i386_fbsd"
12859 LD="${LD-ld} -m elf_i386"
12861 ppc64-*linux*|powerpc64-*linux*)
12862 LD="${LD-ld} -m elf32ppclinux"
12865 LD="${LD-ld} -m elf_s390"
12868 LD="${LD-ld} -m elf32_sparc"
12874 x86_64-*kfreebsd*-gnu)
12875 LD="${LD-ld} -m elf_x86_64_fbsd"
12878 LD="${LD-ld} -m elf_x86_64"
12880 ppc*-*linux*|powerpc*-*linux*)
12881 LD="${LD-ld} -m elf64ppc"
12883 s390*-*linux*|s390*-*tpf*)
12884 LD="${LD-ld} -m elf64_s390"
12887 LD="${LD-ld} -m elf64_sparc"
12897 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12898 SAVE_CFLAGS="$CFLAGS"
12899 CFLAGS="$CFLAGS -belf"
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12901 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12902 if ${lt_cv_cc_needs_belf+:} false; then :
12903 $as_echo_n "(cached) " >&6
12906 ac_cpp='$CPP $CPPFLAGS'
12907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h. */
12922 if ac_fn_c_try_link "$LINENO"; then :
12923 lt_cv_cc_needs_belf=yes
12925 lt_cv_cc_needs_belf=no
12927 rm -f core conftest.err conftest.$ac_objext \
12928 conftest$ac_exeext conftest.$ac_ext
12930 ac_cpp='$CPP $CPPFLAGS'
12931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12937 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12938 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12939 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12940 CFLAGS="$SAVE_CFLAGS"
12944 # Find out which ABI we are using.
12945 echo 'int i;' > conftest.$ac_ext
12946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12947 (eval $ac_compile) 2>&5
12949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12950 test $ac_status = 0; }; then
12951 case `/usr/bin/file conftest.o` in
12953 case $lt_cv_prog_gnu_ld in
12957 LD="${LD-ld} -m elf_x86_64"
12960 LD="${LD-ld} -m elf64_sparc"
12963 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12964 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12969 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12981 need_locks="$enable_libtool_lock"
12983 if test -n "$ac_tool_prefix"; then
12984 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12985 set dummy ${ac_tool_prefix}mt; ac_word=$2
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12987 $as_echo_n "checking for $ac_word... " >&6; }
12988 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12989 $as_echo_n "(cached) " >&6
12991 if test -n "$MANIFEST_TOOL"; then
12992 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12995 for as_dir in $PATH
12998 test -z "$as_dir" && as_dir=.
12999 for ac_exec_ext in '' $ac_executable_extensions; do
13000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13001 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13011 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13012 if test -n "$MANIFEST_TOOL"; then
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13014 $as_echo "$MANIFEST_TOOL" >&6; }
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017 $as_echo "no" >&6; }
13022 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13023 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13024 # Extract the first word of "mt", so it can be a program name with args.
13025 set dummy mt; ac_word=$2
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13027 $as_echo_n "checking for $ac_word... " >&6; }
13028 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13029 $as_echo_n "(cached) " >&6
13031 if test -n "$ac_ct_MANIFEST_TOOL"; then
13032 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035 for as_dir in $PATH
13038 test -z "$as_dir" && as_dir=.
13039 for ac_exec_ext in '' $ac_executable_extensions; do
13040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13041 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13051 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13052 if test -n "$ac_ct_MANIFEST_TOOL"; then
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13054 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13057 $as_echo "no" >&6; }
13060 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13063 case $cross_compiling:$ac_tool_warned in
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13067 ac_tool_warned=yes ;;
13069 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13072 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13075 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13077 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13078 if ${lt_cv_path_mainfest_tool+:} false; then :
13079 $as_echo_n "(cached) " >&6
13081 lt_cv_path_mainfest_tool=no
13082 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13083 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13084 cat conftest.err >&5
13085 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13086 lt_cv_path_mainfest_tool=yes
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13091 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13092 if test "x$lt_cv_path_mainfest_tool" != xyes; then
13102 rhapsody* | darwin*)
13103 if test -n "$ac_tool_prefix"; then
13104 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13105 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13107 $as_echo_n "checking for $ac_word... " >&6; }
13108 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13109 $as_echo_n "(cached) " >&6
13111 if test -n "$DSYMUTIL"; then
13112 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13115 for as_dir in $PATH
13118 test -z "$as_dir" && as_dir=.
13119 for ac_exec_ext in '' $ac_executable_extensions; do
13120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13121 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13131 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13132 if test -n "$DSYMUTIL"; then
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13134 $as_echo "$DSYMUTIL" >&6; }
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137 $as_echo "no" >&6; }
13142 if test -z "$ac_cv_prog_DSYMUTIL"; then
13143 ac_ct_DSYMUTIL=$DSYMUTIL
13144 # Extract the first word of "dsymutil", so it can be a program name with args.
13145 set dummy dsymutil; ac_word=$2
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13147 $as_echo_n "checking for $ac_word... " >&6; }
13148 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13149 $as_echo_n "(cached) " >&6
13151 if test -n "$ac_ct_DSYMUTIL"; then
13152 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13155 for as_dir in $PATH
13158 test -z "$as_dir" && as_dir=.
13159 for ac_exec_ext in '' $ac_executable_extensions; do
13160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13161 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13171 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13172 if test -n "$ac_ct_DSYMUTIL"; then
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13174 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13177 $as_echo "no" >&6; }
13180 if test "x$ac_ct_DSYMUTIL" = x; then
13183 case $cross_compiling:$ac_tool_warned in
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13187 ac_tool_warned=yes ;;
13189 DSYMUTIL=$ac_ct_DSYMUTIL
13192 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13195 if test -n "$ac_tool_prefix"; then
13196 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13197 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13199 $as_echo_n "checking for $ac_word... " >&6; }
13200 if ${ac_cv_prog_NMEDIT+:} false; then :
13201 $as_echo_n "(cached) " >&6
13203 if test -n "$NMEDIT"; then
13204 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13207 for as_dir in $PATH
13210 test -z "$as_dir" && as_dir=.
13211 for ac_exec_ext in '' $ac_executable_extensions; do
13212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13213 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13223 NMEDIT=$ac_cv_prog_NMEDIT
13224 if test -n "$NMEDIT"; then
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13226 $as_echo "$NMEDIT" >&6; }
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13229 $as_echo "no" >&6; }
13234 if test -z "$ac_cv_prog_NMEDIT"; then
13235 ac_ct_NMEDIT=$NMEDIT
13236 # Extract the first word of "nmedit", so it can be a program name with args.
13237 set dummy nmedit; ac_word=$2
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13239 $as_echo_n "checking for $ac_word... " >&6; }
13240 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13241 $as_echo_n "(cached) " >&6
13243 if test -n "$ac_ct_NMEDIT"; then
13244 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247 for as_dir in $PATH
13250 test -z "$as_dir" && as_dir=.
13251 for ac_exec_ext in '' $ac_executable_extensions; do
13252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13253 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13263 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13264 if test -n "$ac_ct_NMEDIT"; then
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13266 $as_echo "$ac_ct_NMEDIT" >&6; }
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13269 $as_echo "no" >&6; }
13272 if test "x$ac_ct_NMEDIT" = x; then
13275 case $cross_compiling:$ac_tool_warned in
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13279 ac_tool_warned=yes ;;
13281 NMEDIT=$ac_ct_NMEDIT
13284 NMEDIT="$ac_cv_prog_NMEDIT"
13287 if test -n "$ac_tool_prefix"; then
13288 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13289 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13291 $as_echo_n "checking for $ac_word... " >&6; }
13292 if ${ac_cv_prog_LIPO+:} false; then :
13293 $as_echo_n "(cached) " >&6
13295 if test -n "$LIPO"; then
13296 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299 for as_dir in $PATH
13302 test -z "$as_dir" && as_dir=.
13303 for ac_exec_ext in '' $ac_executable_extensions; do
13304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13305 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13315 LIPO=$ac_cv_prog_LIPO
13316 if test -n "$LIPO"; then
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13318 $as_echo "$LIPO" >&6; }
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13321 $as_echo "no" >&6; }
13326 if test -z "$ac_cv_prog_LIPO"; then
13328 # Extract the first word of "lipo", so it can be a program name with args.
13329 set dummy lipo; ac_word=$2
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13331 $as_echo_n "checking for $ac_word... " >&6; }
13332 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13333 $as_echo_n "(cached) " >&6
13335 if test -n "$ac_ct_LIPO"; then
13336 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13339 for as_dir in $PATH
13342 test -z "$as_dir" && as_dir=.
13343 for ac_exec_ext in '' $ac_executable_extensions; do
13344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13345 ac_cv_prog_ac_ct_LIPO="lipo"
13346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13355 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13356 if test -n "$ac_ct_LIPO"; then
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13358 $as_echo "$ac_ct_LIPO" >&6; }
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13361 $as_echo "no" >&6; }
13364 if test "x$ac_ct_LIPO" = x; then
13367 case $cross_compiling:$ac_tool_warned in
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13371 ac_tool_warned=yes ;;
13376 LIPO="$ac_cv_prog_LIPO"
13379 if test -n "$ac_tool_prefix"; then
13380 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13381 set dummy ${ac_tool_prefix}otool; ac_word=$2
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13383 $as_echo_n "checking for $ac_word... " >&6; }
13384 if ${ac_cv_prog_OTOOL+:} false; then :
13385 $as_echo_n "(cached) " >&6
13387 if test -n "$OTOOL"; then
13388 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13391 for as_dir in $PATH
13394 test -z "$as_dir" && as_dir=.
13395 for ac_exec_ext in '' $ac_executable_extensions; do
13396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13397 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13407 OTOOL=$ac_cv_prog_OTOOL
13408 if test -n "$OTOOL"; then
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13410 $as_echo "$OTOOL" >&6; }
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13413 $as_echo "no" >&6; }
13418 if test -z "$ac_cv_prog_OTOOL"; then
13420 # Extract the first word of "otool", so it can be a program name with args.
13421 set dummy otool; ac_word=$2
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13423 $as_echo_n "checking for $ac_word... " >&6; }
13424 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13425 $as_echo_n "(cached) " >&6
13427 if test -n "$ac_ct_OTOOL"; then
13428 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13431 for as_dir in $PATH
13434 test -z "$as_dir" && as_dir=.
13435 for ac_exec_ext in '' $ac_executable_extensions; do
13436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13437 ac_cv_prog_ac_ct_OTOOL="otool"
13438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13447 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13448 if test -n "$ac_ct_OTOOL"; then
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13450 $as_echo "$ac_ct_OTOOL" >&6; }
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453 $as_echo "no" >&6; }
13456 if test "x$ac_ct_OTOOL" = x; then
13459 case $cross_compiling:$ac_tool_warned in
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13463 ac_tool_warned=yes ;;
13468 OTOOL="$ac_cv_prog_OTOOL"
13471 if test -n "$ac_tool_prefix"; then
13472 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13473 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13475 $as_echo_n "checking for $ac_word... " >&6; }
13476 if ${ac_cv_prog_OTOOL64+:} false; then :
13477 $as_echo_n "(cached) " >&6
13479 if test -n "$OTOOL64"; then
13480 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483 for as_dir in $PATH
13486 test -z "$as_dir" && as_dir=.
13487 for ac_exec_ext in '' $ac_executable_extensions; do
13488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13489 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13499 OTOOL64=$ac_cv_prog_OTOOL64
13500 if test -n "$OTOOL64"; then
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13502 $as_echo "$OTOOL64" >&6; }
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13505 $as_echo "no" >&6; }
13510 if test -z "$ac_cv_prog_OTOOL64"; then
13511 ac_ct_OTOOL64=$OTOOL64
13512 # Extract the first word of "otool64", so it can be a program name with args.
13513 set dummy otool64; ac_word=$2
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13515 $as_echo_n "checking for $ac_word... " >&6; }
13516 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13517 $as_echo_n "(cached) " >&6
13519 if test -n "$ac_ct_OTOOL64"; then
13520 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13523 for as_dir in $PATH
13526 test -z "$as_dir" && as_dir=.
13527 for ac_exec_ext in '' $ac_executable_extensions; do
13528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13529 ac_cv_prog_ac_ct_OTOOL64="otool64"
13530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13539 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13540 if test -n "$ac_ct_OTOOL64"; then
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13542 $as_echo "$ac_ct_OTOOL64" >&6; }
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545 $as_echo "no" >&6; }
13548 if test "x$ac_ct_OTOOL64" = x; then
13551 case $cross_compiling:$ac_tool_warned in
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13555 ac_tool_warned=yes ;;
13557 OTOOL64=$ac_ct_OTOOL64
13560 OTOOL64="$ac_cv_prog_OTOOL64"
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13590 $as_echo_n "checking for -single_module linker flag... " >&6; }
13591 if ${lt_cv_apple_cc_single_mod+:} false; then :
13592 $as_echo_n "(cached) " >&6
13594 lt_cv_apple_cc_single_mod=no
13595 if test -z "${LT_MULTI_MODULE}"; then
13596 # By default we will add the -single_module flag. You can override
13597 # by either setting the environment variable LT_MULTI_MODULE
13598 # non-empty at configure time, or by adding -multi_module to the
13600 rm -rf libconftest.dylib*
13601 echo "int foo(void){return 1;}" > conftest.c
13602 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13603 -dynamiclib -Wl,-single_module conftest.c" >&5
13604 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13605 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13607 # If there is a non-empty error log, and "single_module"
13608 # appears in it, assume the flag caused a linker warning
13609 if test -s conftest.err && $GREP single_module conftest.err; then
13610 cat conftest.err >&5
13611 # Otherwise, if the output was created with a 0 exit code from
13612 # the compiler, it worked.
13613 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13614 lt_cv_apple_cc_single_mod=yes
13616 cat conftest.err >&5
13618 rm -rf libconftest.dylib*
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13623 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13626 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13627 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13628 $as_echo_n "(cached) " >&6
13630 lt_cv_ld_exported_symbols_list=no
13631 save_LDFLAGS=$LDFLAGS
13632 echo "_main" > conftest.sym
13633 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13645 if ac_fn_c_try_link "$LINENO"; then :
13646 lt_cv_ld_exported_symbols_list=yes
13648 lt_cv_ld_exported_symbols_list=no
13650 rm -f core conftest.err conftest.$ac_objext \
13651 conftest$ac_exeext conftest.$ac_ext
13652 LDFLAGS="$save_LDFLAGS"
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13656 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13659 $as_echo_n "checking for -force_load linker flag... " >&6; }
13660 if ${lt_cv_ld_force_load+:} false; then :
13661 $as_echo_n "(cached) " >&6
13663 lt_cv_ld_force_load=no
13664 cat > conftest.c << _LT_EOF
13665 int forced_loaded() { return 2;}
13667 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13668 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13669 echo "$AR cru libconftest.a conftest.o" >&5
13670 $AR cru libconftest.a conftest.o 2>&5
13671 echo "$RANLIB libconftest.a" >&5
13672 $RANLIB libconftest.a 2>&5
13673 cat > conftest.c << _LT_EOF
13674 int main() { return 0;}
13676 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13677 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13679 if test -s conftest.err && $GREP force_load conftest.err; then
13680 cat conftest.err >&5
13681 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13682 lt_cv_ld_force_load=yes
13684 cat conftest.err >&5
13686 rm -f conftest.err libconftest.a conftest conftest.c
13687 rm -rf conftest.dSYM
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13691 $as_echo "$lt_cv_ld_force_load" >&6; }
13693 rhapsody* | darwin1.[012])
13694 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13696 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13697 darwin*) # darwin 5.x on
13698 # if running on 10.5 or later, the deployment target defaults
13699 # to the OS version, if on x86, and 10.4, the deployment
13700 # target defaults to 10.4. Don't you love it?
13701 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13702 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13703 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13705 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13707 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13711 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13712 _lt_dar_single_mod='$single_module'
13714 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13715 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13717 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13719 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13720 _lt_dsymutil='~$DSYMUTIL $lib || :'
13727 for ac_header in dlfcn.h
13729 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13731 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13732 cat >>confdefs.h <<_ACEOF
13733 #define HAVE_DLFCN_H 1
13752 # Check whether --enable-shared was given.
13753 if test "${enable_shared+set}" = set; then :
13754 enableval=$enable_shared; p=${PACKAGE-default}
13756 yes) enable_shared=yes ;;
13757 no) enable_shared=no ;;
13760 # Look at the argument we got. We use all the common list separators.
13761 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13762 for pkg in $enableval; do
13764 if test "X$pkg" = "X$p"; then
13783 # Check whether --enable-static was given.
13784 if test "${enable_static+set}" = set; then :
13785 enableval=$enable_static; p=${PACKAGE-default}
13787 yes) enable_static=yes ;;
13788 no) enable_static=no ;;
13791 # Look at the argument we got. We use all the common list separators.
13792 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13793 for pkg in $enableval; do
13795 if test "X$pkg" = "X$p"; then
13815 # Check whether --with-pic was given.
13816 if test "${with_pic+set}" = set; then :
13817 withval=$with_pic; lt_p=${PACKAGE-default}
13819 yes|no) pic_mode=$withval ;;
13822 # Look at the argument we got. We use all the common list separators.
13823 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13824 for lt_pkg in $withval; do
13826 if test "X$lt_pkg" = "X$lt_p"; then
13838 test -z "$pic_mode" && pic_mode=default
13846 # Check whether --enable-fast-install was given.
13847 if test "${enable_fast_install+set}" = set; then :
13848 enableval=$enable_fast_install; p=${PACKAGE-default}
13850 yes) enable_fast_install=yes ;;
13851 no) enable_fast_install=no ;;
13853 enable_fast_install=no
13854 # Look at the argument we got. We use all the common list separators.
13855 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13856 for pkg in $enableval; do
13858 if test "X$pkg" = "X$p"; then
13859 enable_fast_install=yes
13866 enable_fast_install=yes
13879 # This can be used to rebuild libtool when needed
13880 LIBTOOL_DEPS="$ltmain"
13882 # Always use our own libtool.
13883 LIBTOOL='$(SHELL) $(apr_builddir)/libtool'
13914 test -z "$LN_S" && LN_S="ln -s"
13929 if test -n "${ZSH_VERSION+set}" ; then
13930 setopt NO_GLOB_SUBST
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13934 $as_echo_n "checking for objdir... " >&6; }
13935 if ${lt_cv_objdir+:} false; then :
13936 $as_echo_n "(cached) " >&6
13938 rm -f .libs 2>/dev/null
13939 mkdir .libs 2>/dev/null
13940 if test -d .libs; then
13943 # MS-DOS does not allow filenames that begin with a dot.
13946 rmdir .libs 2>/dev/null
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13949 $as_echo "$lt_cv_objdir" >&6; }
13950 objdir=$lt_cv_objdir
13956 cat >>confdefs.h <<_ACEOF
13957 #define LT_OBJDIR "$lt_cv_objdir/"
13965 # AIX sometimes has problems with the GCC collect2 program. For some
13966 # reason, if we set the COLLECT_NAMES environment variable, the problems
13967 # vanish in a puff of smoke.
13968 if test "X${COLLECT_NAMES+set}" != Xset; then
13970 export COLLECT_NAMES
13975 # Global variables:
13977 can_build_shared=yes
13979 # All known linkers require a `.a' archive for static linking (except MSVC,
13980 # which needs '.lib').
13983 with_gnu_ld="$lt_cv_prog_gnu_ld"
13986 old_CFLAGS="$CFLAGS"
13988 # Set sane defaults for various variables
13989 test -z "$CC" && CC=cc
13990 test -z "$LTCC" && LTCC=$CC
13991 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13992 test -z "$LD" && LD=ld
13993 test -z "$ac_objext" && ac_objext=o
13995 for cc_temp in $compiler""; do
13997 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13998 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14003 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14006 # Only perform the check for file, if the check method requires it
14007 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14008 case $deplibs_check_method in
14010 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14012 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14013 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14014 $as_echo_n "(cached) " >&6
14018 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14021 lt_save_MAGIC_CMD="$MAGIC_CMD"
14022 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14023 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14024 for ac_dir in $ac_dummy; do
14026 test -z "$ac_dir" && ac_dir=.
14027 if test -f $ac_dir/${ac_tool_prefix}file; then
14028 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14029 if test -n "$file_magic_test_file"; then
14030 case $deplibs_check_method in
14032 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14033 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14034 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14035 $EGREP "$file_magic_regex" > /dev/null; then
14040 *** Warning: the command libtool uses to detect shared libraries,
14041 *** $file_magic_cmd, produces output that libtool cannot recognize.
14042 *** The result is that libtool may fail to recognize shared libraries
14043 *** as such. This will affect the creation of libtool libraries that
14044 *** depend on shared libraries, but programs linked with such libtool
14045 *** libraries will work regardless of this problem. Nevertheless, you
14046 *** may want to report the problem to your system manager and/or to
14047 *** bug-libtool@gnu.org
14057 MAGIC_CMD="$lt_save_MAGIC_CMD"
14062 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14063 if test -n "$MAGIC_CMD"; then
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14065 $as_echo "$MAGIC_CMD" >&6; }
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14068 $as_echo "no" >&6; }
14075 if test -z "$lt_cv_path_MAGIC_CMD"; then
14076 if test -n "$ac_tool_prefix"; then
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14078 $as_echo_n "checking for file... " >&6; }
14079 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14080 $as_echo_n "(cached) " >&6
14084 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14087 lt_save_MAGIC_CMD="$MAGIC_CMD"
14088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14089 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14090 for ac_dir in $ac_dummy; do
14092 test -z "$ac_dir" && ac_dir=.
14093 if test -f $ac_dir/file; then
14094 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14095 if test -n "$file_magic_test_file"; then
14096 case $deplibs_check_method in
14098 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14099 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14100 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14101 $EGREP "$file_magic_regex" > /dev/null; then
14106 *** Warning: the command libtool uses to detect shared libraries,
14107 *** $file_magic_cmd, produces output that libtool cannot recognize.
14108 *** The result is that libtool may fail to recognize shared libraries
14109 *** as such. This will affect the creation of libtool libraries that
14110 *** depend on shared libraries, but programs linked with such libtool
14111 *** libraries will work regardless of this problem. Nevertheless, you
14112 *** may want to report the problem to your system manager and/or to
14113 *** bug-libtool@gnu.org
14123 MAGIC_CMD="$lt_save_MAGIC_CMD"
14128 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14129 if test -n "$MAGIC_CMD"; then
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14131 $as_echo "$MAGIC_CMD" >&6; }
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14134 $as_echo "no" >&6; }
14147 # Use C for the default configuration in the libtool script
14151 ac_cpp='$CPP $CPPFLAGS'
14152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14157 # Source file extension for C test sources.
14160 # Object file extension for compiled C test sources.
14164 # Code to be used in simple compile tests
14165 lt_simple_compile_test_code="int some_variable = 0;"
14167 # Code to be used in simple link tests
14168 lt_simple_link_test_code='int main(){return(0);}'
14176 # If no C compiler was specified, use CC.
14179 # If no C compiler flags were specified, use CFLAGS.
14180 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14182 # Allow CC to be a program name with arguments.
14185 # Save the default compiler, since it gets overwritten when the other
14186 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14187 compiler_DEFAULT=$CC
14189 # save warnings/boilerplate of simple test code
14190 ac_outfile=conftest.$ac_objext
14191 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14192 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14193 _lt_compiler_boilerplate=`cat conftest.err`
14196 ac_outfile=conftest.$ac_objext
14197 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14198 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14199 _lt_linker_boilerplate=`cat conftest.err`
14204 ## There is no encapsulation within the following macros, do not change
14205 ## the running order or otherwise move them around unless you know exactly
14206 ## what you are doing...
14207 if test -n "$compiler"; then
14209 lt_prog_compiler_no_builtin_flag=
14211 if test "$GCC" = yes; then
14212 case $cc_basename in
14214 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14216 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14220 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14221 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14222 $as_echo_n "(cached) " >&6
14224 lt_cv_prog_compiler_rtti_exceptions=no
14225 ac_outfile=conftest.$ac_objext
14226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14227 lt_compiler_flag="-fno-rtti -fno-exceptions"
14228 # Insert the option either (1) after the last *FLAGS variable, or
14229 # (2) before a word containing "conftest.", or (3) at the end.
14230 # Note that $ac_compile itself does not contain backslashes and begins
14231 # with a dollar sign (not a hyphen), so the echo should work correctly.
14232 # The option is referenced via a variable to avoid confusing sed.
14233 lt_compile=`echo "$ac_compile" | $SED \
14234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14236 -e 's:$: $lt_compiler_flag:'`
14237 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14238 (eval "$lt_compile" 2>conftest.err)
14240 cat conftest.err >&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 if (exit $ac_status) && test -s "$ac_outfile"; then
14243 # The compiler can only warn and ignore the option if not recognized
14244 # So say no if there are warnings other than the usual output.
14245 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14246 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14247 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14248 lt_cv_prog_compiler_rtti_exceptions=yes
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14255 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14257 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14258 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14270 lt_prog_compiler_wl=
14271 lt_prog_compiler_pic=
14272 lt_prog_compiler_static=
14275 if test "$GCC" = yes; then
14276 lt_prog_compiler_wl='-Wl,'
14277 lt_prog_compiler_static='-static'
14281 # All AIX code is PIC.
14282 if test "$host_cpu" = ia64; then
14283 # AIX 5 now supports IA64 processor
14284 lt_prog_compiler_static='-Bstatic'
14291 # see comment about AmigaOS4 .so support
14292 lt_prog_compiler_pic='-fPIC'
14295 # FIXME: we need at least 68020 code to build shared libraries, but
14296 # adding the `-m68020' flag to GCC prevents building anything better,
14298 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14303 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14304 # PIC is the default for these OSes.
14307 mingw* | cygwin* | pw32* | os2* | cegcc*)
14308 # This hack is so that the source file can tell whether it is being
14309 # built for inclusion in a dll (and should export symbols for example).
14310 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14311 # (--disable-auto-import) libraries
14312 lt_prog_compiler_pic='-DDLL_EXPORT'
14315 darwin* | rhapsody*)
14316 # PIC is the default on this platform
14317 # Common symbols not allowed in MH_DYLIB files
14318 lt_prog_compiler_pic='-fno-common'
14322 # PIC is the default for Haiku.
14323 # The "-static" flag exists, but is broken.
14324 lt_prog_compiler_static=
14328 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14329 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14330 # sets the default TLS model and affects inlining.
14336 lt_prog_compiler_pic='-fPIC'
14342 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14343 # Instead, we relocate shared libraries at runtime.
14347 # Just because we use GCC doesn't mean we suddenly get shared libraries
14348 # on systems that don't support them.
14349 lt_prog_compiler_can_build_shared=no
14354 # QNX uses GNU C++, but need to define -shared option too, otherwise
14355 # it will coredump.
14356 lt_prog_compiler_pic='-fPIC -shared'
14360 if test -d /usr/nec; then
14361 lt_prog_compiler_pic=-Kconform_pic
14366 lt_prog_compiler_pic='-fPIC'
14370 case $cc_basename in
14371 nvcc*) # Cuda Compiler Driver 2.2
14372 lt_prog_compiler_wl='-Xlinker '
14373 if test -n "$lt_prog_compiler_pic"; then
14374 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14379 # PORTME Check for flag to pass linker flags through the system compiler.
14382 lt_prog_compiler_wl='-Wl,'
14383 if test "$host_cpu" = ia64; then
14384 # AIX 5 now supports IA64 processor
14385 lt_prog_compiler_static='-Bstatic'
14387 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14391 mingw* | cygwin* | pw32* | os2* | cegcc*)
14392 # This hack is so that the source file can tell whether it is being
14393 # built for inclusion in a dll (and should export symbols for example).
14394 lt_prog_compiler_pic='-DDLL_EXPORT'
14397 hpux9* | hpux10* | hpux11*)
14398 lt_prog_compiler_wl='-Wl,'
14399 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14400 # not for PA HP-UX.
14406 lt_prog_compiler_pic='+Z'
14409 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14410 lt_prog_compiler_static='${wl}-a ${wl}archive'
14413 irix5* | irix6* | nonstopux*)
14414 lt_prog_compiler_wl='-Wl,'
14415 # PIC (with -KPIC) is the default.
14416 lt_prog_compiler_static='-non_shared'
14419 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14420 case $cc_basename in
14421 # old Intel for x86_64 which still supported -KPIC.
14423 lt_prog_compiler_wl='-Wl,'
14424 lt_prog_compiler_pic='-KPIC'
14425 lt_prog_compiler_static='-static'
14427 # icc used to be incompatible with GCC.
14428 # ICC 10 doesn't accept -KPIC any more.
14430 lt_prog_compiler_wl='-Wl,'
14431 lt_prog_compiler_pic='-fPIC'
14432 lt_prog_compiler_static='-static'
14434 # Lahey Fortran 8.1.
14436 lt_prog_compiler_wl='-Wl,'
14437 lt_prog_compiler_pic='--shared'
14438 lt_prog_compiler_static='--static'
14441 # NAG Fortran compiler
14442 lt_prog_compiler_wl='-Wl,-Wl,,'
14443 lt_prog_compiler_pic='-PIC'
14444 lt_prog_compiler_static='-Bstatic'
14446 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14447 # Portland Group compilers (*not* the Pentium gcc compiler,
14448 # which looks to be a dead project)
14449 lt_prog_compiler_wl='-Wl,'
14450 lt_prog_compiler_pic='-fpic'
14451 lt_prog_compiler_static='-Bstatic'
14454 lt_prog_compiler_wl='-Wl,'
14455 # All Alpha code is PIC.
14456 lt_prog_compiler_static='-non_shared'
14458 xl* | bgxl* | bgf* | mpixl*)
14459 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14460 lt_prog_compiler_wl='-Wl,'
14461 lt_prog_compiler_pic='-qpic'
14462 lt_prog_compiler_static='-qstaticlink'
14465 case `$CC -V 2>&1 | sed 5q` in
14466 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14467 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14468 lt_prog_compiler_pic='-KPIC'
14469 lt_prog_compiler_static='-Bstatic'
14470 lt_prog_compiler_wl=''
14472 *Sun\ F* | *Sun*Fortran*)
14473 lt_prog_compiler_pic='-KPIC'
14474 lt_prog_compiler_static='-Bstatic'
14475 lt_prog_compiler_wl='-Qoption ld '
14479 lt_prog_compiler_pic='-KPIC'
14480 lt_prog_compiler_static='-Bstatic'
14481 lt_prog_compiler_wl='-Wl,'
14483 *Intel*\ [CF]*Compiler*)
14484 lt_prog_compiler_wl='-Wl,'
14485 lt_prog_compiler_pic='-fPIC'
14486 lt_prog_compiler_static='-static'
14489 lt_prog_compiler_wl='-Wl,'
14490 lt_prog_compiler_pic='-fpic'
14491 lt_prog_compiler_static='-Bstatic'
14499 lt_prog_compiler_pic='-KPIC'
14500 lt_prog_compiler_static='-Bstatic'
14504 # QNX uses GNU C++, but need to define -shared option too, otherwise
14505 # it will coredump.
14506 lt_prog_compiler_pic='-fPIC -shared'
14509 osf3* | osf4* | osf5*)
14510 lt_prog_compiler_wl='-Wl,'
14511 # All OSF/1 code is PIC.
14512 lt_prog_compiler_static='-non_shared'
14516 lt_prog_compiler_static='-non_shared'
14520 lt_prog_compiler_pic='-KPIC'
14521 lt_prog_compiler_static='-Bstatic'
14522 case $cc_basename in
14523 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14524 lt_prog_compiler_wl='-Qoption ld ';;
14526 lt_prog_compiler_wl='-Wl,';;
14531 lt_prog_compiler_wl='-Qoption ld '
14532 lt_prog_compiler_pic='-PIC'
14533 lt_prog_compiler_static='-Bstatic'
14536 sysv4 | sysv4.2uw2* | sysv4.3*)
14537 lt_prog_compiler_wl='-Wl,'
14538 lt_prog_compiler_pic='-KPIC'
14539 lt_prog_compiler_static='-Bstatic'
14543 if test -d /usr/nec ;then
14544 lt_prog_compiler_pic='-Kconform_pic'
14545 lt_prog_compiler_static='-Bstatic'
14549 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14550 lt_prog_compiler_wl='-Wl,'
14551 lt_prog_compiler_pic='-KPIC'
14552 lt_prog_compiler_static='-Bstatic'
14556 lt_prog_compiler_wl='-Wl,'
14557 lt_prog_compiler_can_build_shared=no
14561 lt_prog_compiler_pic='-pic'
14562 lt_prog_compiler_static='-Bstatic'
14566 lt_prog_compiler_can_build_shared=no
14572 # For platforms which do not support PIC, -DPIC is meaningless:
14574 lt_prog_compiler_pic=
14577 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14582 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14583 if ${lt_cv_prog_compiler_pic+:} false; then :
14584 $as_echo_n "(cached) " >&6
14586 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14589 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14590 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14593 # Check to make sure the PIC flag actually works.
14595 if test -n "$lt_prog_compiler_pic"; then
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14597 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14598 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14599 $as_echo_n "(cached) " >&6
14601 lt_cv_prog_compiler_pic_works=no
14602 ac_outfile=conftest.$ac_objext
14603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14604 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14605 # Insert the option either (1) after the last *FLAGS variable, or
14606 # (2) before a word containing "conftest.", or (3) at the end.
14607 # Note that $ac_compile itself does not contain backslashes and begins
14608 # with a dollar sign (not a hyphen), so the echo should work correctly.
14609 # The option is referenced via a variable to avoid confusing sed.
14610 lt_compile=`echo "$ac_compile" | $SED \
14611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14613 -e 's:$: $lt_compiler_flag:'`
14614 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14615 (eval "$lt_compile" 2>conftest.err)
14617 cat conftest.err >&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 if (exit $ac_status) && test -s "$ac_outfile"; then
14620 # The compiler can only warn and ignore the option if not recognized
14621 # So say no if there are warnings other than the usual output.
14622 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14623 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14624 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14625 lt_cv_prog_compiler_pic_works=yes
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14632 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14634 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14635 case $lt_prog_compiler_pic in
14637 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14640 lt_prog_compiler_pic=
14641 lt_prog_compiler_can_build_shared=no
14657 # Check to make sure the static flag actually works.
14659 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14661 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14662 if ${lt_cv_prog_compiler_static_works+:} false; then :
14663 $as_echo_n "(cached) " >&6
14665 lt_cv_prog_compiler_static_works=no
14666 save_LDFLAGS="$LDFLAGS"
14667 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14668 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14669 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14670 # The linker can only warn and ignore the option if not recognized
14671 # So say no if there are warnings
14672 if test -s conftest.err; then
14673 # Append any errors to the config.log.
14674 cat conftest.err 1>&5
14675 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14676 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14677 if diff conftest.exp conftest.er2 >/dev/null; then
14678 lt_cv_prog_compiler_static_works=yes
14681 lt_cv_prog_compiler_static_works=yes
14685 LDFLAGS="$save_LDFLAGS"
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14689 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14691 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14694 lt_prog_compiler_static=
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14704 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14705 if ${lt_cv_prog_compiler_c_o+:} false; then :
14706 $as_echo_n "(cached) " >&6
14708 lt_cv_prog_compiler_c_o=no
14709 $RM -r conftest 2>/dev/null
14713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14715 lt_compiler_flag="-o out/conftest2.$ac_objext"
14716 # Insert the option either (1) after the last *FLAGS variable, or
14717 # (2) before a word containing "conftest.", or (3) at the end.
14718 # Note that $ac_compile itself does not contain backslashes and begins
14719 # with a dollar sign (not a hyphen), so the echo should work correctly.
14720 lt_compile=`echo "$ac_compile" | $SED \
14721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14723 -e 's:$: $lt_compiler_flag:'`
14724 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14725 (eval "$lt_compile" 2>out/conftest.err)
14727 cat out/conftest.err >&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14731 # The compiler can only warn and ignore the option if not recognized
14732 # So say no if there are warnings
14733 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14734 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14735 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14736 lt_cv_prog_compiler_c_o=yes
14741 # SGI C++ compiler will create directory out/ii_files/ for
14742 # template instantiation
14743 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14744 $RM out/* && rmdir out
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14751 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14759 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14760 if ${lt_cv_prog_compiler_c_o+:} false; then :
14761 $as_echo_n "(cached) " >&6
14763 lt_cv_prog_compiler_c_o=no
14764 $RM -r conftest 2>/dev/null
14768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14770 lt_compiler_flag="-o out/conftest2.$ac_objext"
14771 # Insert the option either (1) after the last *FLAGS variable, or
14772 # (2) before a word containing "conftest.", or (3) at the end.
14773 # Note that $ac_compile itself does not contain backslashes and begins
14774 # with a dollar sign (not a hyphen), so the echo should work correctly.
14775 lt_compile=`echo "$ac_compile" | $SED \
14776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14778 -e 's:$: $lt_compiler_flag:'`
14779 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14780 (eval "$lt_compile" 2>out/conftest.err)
14782 cat out/conftest.err >&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14786 # The compiler can only warn and ignore the option if not recognized
14787 # So say no if there are warnings
14788 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14789 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14790 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14791 lt_cv_prog_compiler_c_o=yes
14796 # SGI C++ compiler will create directory out/ii_files/ for
14797 # template instantiation
14798 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14799 $RM out/* && rmdir out
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14806 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14811 hard_links="nottested"
14812 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14813 # do not overwrite the value of need_locks provided by the user
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14815 $as_echo_n "checking if we can lock with hard links... " >&6; }
14818 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14820 ln conftest.a conftest.b 2>&5 || hard_links=no
14821 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14823 $as_echo "$hard_links" >&6; }
14824 if test "$hard_links" = no; then
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14826 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14839 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14842 allow_undefined_flag=
14843 always_export_symbols=no
14845 archive_expsym_cmds=
14846 compiler_needs_object=no
14847 enable_shared_with_static_runtimes=no
14848 export_dynamic_flag_spec=
14849 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14850 hardcode_automatic=no
14852 hardcode_direct_absolute=no
14853 hardcode_libdir_flag_spec=
14854 hardcode_libdir_separator=
14855 hardcode_minus_L=no
14856 hardcode_shlibpath_var=unsupported
14858 link_all_deplibs=unknown
14860 module_expsym_cmds=
14861 old_archive_from_new_cmds=
14862 old_archive_from_expsyms_cmds=
14863 thread_safe_flag_spec=
14864 whole_archive_flag_spec=
14865 # include_expsyms should be a list of space-separated symbols to be *always*
14866 # included in the symbol list
14868 # exclude_expsyms can be an extended regexp of symbols to exclude
14869 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14870 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14871 # as well as any symbol that contains `d'.
14872 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14873 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14874 # platforms (ab)use it in PIC code, but their linkers get confused if
14875 # the symbol is explicitly referenced. Since portable code cannot
14876 # rely on this symbol name, it's probably fine to never include it in
14877 # preloaded symbol tables.
14878 # Exclude shared library initialization/finalization symbols.
14879 extract_expsyms_cmds=
14882 cygwin* | mingw* | pw32* | cegcc*)
14883 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14884 # When not using gcc, we currently assume that we are using
14885 # Microsoft Visual C++.
14886 if test "$GCC" != yes; then
14891 # we just hope/assume this is gcc and not c89 (= MSVC++)
14901 # On some targets, GNU ld is compatible enough with the native linker
14902 # that we're better off using the native interface for both.
14903 lt_use_gnu_ld_interface=no
14904 if test "$with_gnu_ld" = yes; then
14907 # The AIX port of GNU ld has always aspired to compatibility
14908 # with the native linker. However, as the warning in the GNU ld
14909 # block says, versions before 2.19.5* couldn't really create working
14910 # shared libraries, regardless of the interface used.
14911 case `$LD -v 2>&1` in
14912 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14913 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14914 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14916 lt_use_gnu_ld_interface=yes
14921 lt_use_gnu_ld_interface=yes
14926 if test "$lt_use_gnu_ld_interface" = yes; then
14927 # If archive_cmds runs LD, not CC, wlarc should be empty
14930 # Set some defaults for GNU ld with shared library support. These
14931 # are reset later if shared libraries are not supported. Putting them
14932 # here allows them to be overridden if necessary.
14933 runpath_var=LD_RUN_PATH
14934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14935 export_dynamic_flag_spec='${wl}--export-dynamic'
14936 # ancient GNU ld didn't support --whole-archive et. al.
14937 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14938 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14940 whole_archive_flag_spec=
14942 supports_anon_versioning=no
14943 case `$LD -v 2>&1` in
14944 *GNU\ gold*) supports_anon_versioning=yes ;;
14945 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14946 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14947 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14948 *\ 2.11.*) ;; # other 2.11 versions
14949 *) supports_anon_versioning=yes ;;
14952 # See if GNU ld supports shared libraries.
14955 # On AIX/PPC, the GNU linker is very broken
14956 if test "$host_cpu" != ia64; then
14960 *** Warning: the GNU linker, at least up to release 2.19, is reported
14961 *** to be unable to reliably create shared libraries on AIX.
14962 *** Therefore, libtool is disabling shared libraries support. If you
14963 *** really care for shared libraries, you may want to install binutils
14964 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14965 *** You will then need to restart the configuration process.
14974 # see comment about AmigaOS4 .so support
14975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14976 archive_expsym_cmds=''
14979 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14980 hardcode_libdir_flag_spec='-L$libdir'
14981 hardcode_minus_L=yes
14987 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14988 allow_undefined_flag=unsupported
14989 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14990 # support --undefined. This deserves some investigation. FIXME
14991 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14997 cygwin* | mingw* | pw32* | cegcc*)
14998 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14999 # as there is no search path for DLLs.
15000 hardcode_libdir_flag_spec='-L$libdir'
15001 export_dynamic_flag_spec='${wl}--export-all-symbols'
15002 allow_undefined_flag=unsupported
15003 always_export_symbols=no
15004 enable_shared_with_static_runtimes=yes
15005 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15006 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15008 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15010 # If the export-symbols file already is a .def file (1st line
15011 # is EXPORTS), use it as is; otherwise, prepend...
15012 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15013 cp $export_symbols $output_objdir/$soname.def;
15015 echo EXPORTS > $output_objdir/$soname.def;
15016 cat $export_symbols >> $output_objdir/$soname.def;
15018 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15026 link_all_deplibs=yes
15031 hardcode_shlibpath_var=no
15032 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15033 export_dynamic_flag_spec='${wl}-E'
15034 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15035 # Instead, shared libraries are loaded at an image base (0x10000000 by
15036 # default) and relocated if they conflict, which is a slow very memory
15037 # consuming and fragmenting process. To avoid this, we pick a random,
15038 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15039 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15040 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15041 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15044 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15046 if test "$host_os" = linux-dietlibc; then
15047 case $cc_basename in
15048 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15051 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15052 && test "$tmp_diet" = no
15054 tmp_addflag=' $pic_flag'
15055 tmp_sharedflag='-shared'
15056 case $cc_basename,$host_cpu in
15057 pgcc*) # Portland Group C compiler
15058 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15059 tmp_addflag=' $pic_flag'
15061 pgf77* | pgf90* | pgf95* | pgfortran*)
15062 # Portland Group f77 and f90 compilers
15063 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15064 tmp_addflag=' $pic_flag -Mnomain' ;;
15065 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15066 tmp_addflag=' -i_dynamic' ;;
15067 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15068 tmp_addflag=' -i_dynamic -nofor_main' ;;
15069 ifc* | ifort*) # Intel Fortran compiler
15070 tmp_addflag=' -nofor_main' ;;
15071 lf95*) # Lahey Fortran 8.1
15072 whole_archive_flag_spec=
15073 tmp_sharedflag='--shared' ;;
15074 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15075 tmp_sharedflag='-qmkshrobj'
15077 nvcc*) # Cuda Compiler Driver 2.2
15078 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15079 compiler_needs_object=yes
15082 case `$CC -V 2>&1 | sed 5q` in
15083 *Sun\ C*) # Sun C 5.9
15084 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15085 compiler_needs_object=yes
15086 tmp_sharedflag='-G' ;;
15087 *Sun\ F*) # Sun Fortran 8.3
15088 tmp_sharedflag='-G' ;;
15090 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15092 if test "x$supports_anon_versioning" = xyes; then
15093 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15094 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15095 echo "local: *; };" >> $output_objdir/$libname.ver~
15096 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15099 case $cc_basename in
15100 xlf* | bgf* | bgxlf* | mpixlf*)
15101 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15102 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15103 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15104 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15105 if test "x$supports_anon_versioning" = xyes; then
15106 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15107 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15108 echo "local: *; };" >> $output_objdir/$libname.ver~
15109 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15119 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15120 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15123 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15124 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15129 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15133 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15134 *** create shared libraries on Solaris systems. Therefore, libtool
15135 *** is disabling shared libraries support. We urge you to upgrade GNU
15136 *** binutils to release 2.9.1 or newer. Another option is to modify
15137 *** your PATH or compiler configuration so that the native linker is
15138 *** used, and then restart.
15141 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15142 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15143 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15149 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15150 case `$LD -v 2>&1` in
15151 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15155 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15156 *** reliably create shared libraries on SCO systems. Therefore, libtool
15157 *** is disabling shared libraries support. We urge you to upgrade GNU
15158 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15159 *** your PATH or compiler configuration so that the native linker is
15160 *** used, and then restart.
15165 # For security reasons, it is highly recommended that you always
15166 # use absolute paths for naming shared libraries, and exclude the
15167 # DT_RUNPATH tag from executables and libraries. But doing so
15168 # requires that you compile everything twice, which is a pain.
15169 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15172 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15181 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15183 hardcode_direct=yes
15184 hardcode_shlibpath_var=no
15188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15189 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15190 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15197 if test "$ld_shlibs" = no; then
15199 hardcode_libdir_flag_spec=
15200 export_dynamic_flag_spec=
15201 whole_archive_flag_spec=
15204 # PORTME fill in a description of your system's linker (not GNU ld)
15207 allow_undefined_flag=unsupported
15208 always_export_symbols=yes
15209 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15210 # Note: this linker hardcodes the directories in LIBPATH if there
15211 # are no directories specified by -L.
15212 hardcode_minus_L=yes
15213 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15214 # Neither direct hardcoding nor static linking is supported with a
15216 hardcode_direct=unsupported
15221 if test "$host_cpu" = ia64; then
15222 # On IA64, the linker does run time linking by default, so we don't
15223 # have to do anything special.
15224 aix_use_runtimelinking=no
15225 exp_sym_flag='-Bexport'
15228 # If we're using GNU nm, then we don't want the "-C" option.
15229 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15230 # Also, AIX nm treats weak defined symbols like other global
15231 # defined symbols, whereas GNU nm marks them as "W".
15232 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15233 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15235 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15237 aix_use_runtimelinking=no
15239 # Test if we are trying to use run time linking or normal
15240 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15241 # need to do runtime linking.
15242 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15243 for ld_flag in $LDFLAGS; do
15244 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15245 aix_use_runtimelinking=yes
15252 exp_sym_flag='-bexport'
15253 no_entry_flag='-bnoentry'
15256 # When large executables or shared objects are built, AIX ld can
15257 # have problems creating the table of contents. If linking a library
15258 # or program results in "error TOC overflow" add -mminimal-toc to
15259 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15260 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15263 hardcode_direct=yes
15264 hardcode_direct_absolute=yes
15265 hardcode_libdir_separator=':'
15266 link_all_deplibs=yes
15267 file_list_spec='${wl}-f,'
15269 if test "$GCC" = yes; then
15270 case $host_os in aix4.[012]|aix4.[012].*)
15271 # We only want to do this on AIX 4.2 and lower, the check
15272 # below for broken collect2 doesn't work under 4.3+
15273 collect2name=`${CC} -print-prog-name=collect2`
15274 if test -f "$collect2name" &&
15275 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15277 # We have reworked collect2
15280 # We have old collect2
15281 hardcode_direct=unsupported
15282 # It fails to find uninstalled libraries when the uninstalled
15283 # path is not listed in the libpath. Setting hardcode_minus_L
15284 # to unsupported forces relinking
15285 hardcode_minus_L=yes
15286 hardcode_libdir_flag_spec='-L$libdir'
15287 hardcode_libdir_separator=
15291 shared_flag='-shared'
15292 if test "$aix_use_runtimelinking" = yes; then
15293 shared_flag="$shared_flag "'${wl}-G'
15297 if test "$host_cpu" = ia64; then
15298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15299 # chokes on -Wl,-G. The following line is correct:
15302 if test "$aix_use_runtimelinking" = yes; then
15303 shared_flag='${wl}-G'
15305 shared_flag='${wl}-bM:SRE'
15310 export_dynamic_flag_spec='${wl}-bexpall'
15311 # It seems that -bexpall does not export symbols beginning with
15312 # underscore (_), so it is better to generate a list of symbols to export.
15313 always_export_symbols=yes
15314 if test "$aix_use_runtimelinking" = yes; then
15315 # Warning - without using the other runtime loading flags (-brtl),
15316 # -berok will link without error, but may produce a broken library.
15317 allow_undefined_flag='-berok'
15318 # Determine the default libpath from the value encoded in an
15319 # empty executable.
15320 if test "${lt_cv_aix_libpath+set}" = set; then
15321 aix_libpath=$lt_cv_aix_libpath
15323 if ${lt_cv_aix_libpath_+:} false; then :
15324 $as_echo_n "(cached) " >&6
15326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h. */
15337 if ac_fn_c_try_link "$LINENO"; then :
15339 lt_aix_libpath_sed='
15340 /Import File Strings/,/^$/ {
15342 s/^0 *\([^ ]*\) *$/\1/
15346 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15347 # Check for a 64-bit object if we didn't find anything.
15348 if test -z "$lt_cv_aix_libpath_"; then
15349 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15352 rm -f core conftest.err conftest.$ac_objext \
15353 conftest$ac_exeext conftest.$ac_ext
15354 if test -z "$lt_cv_aix_libpath_"; then
15355 lt_cv_aix_libpath_="/usr/lib:/lib"
15360 aix_libpath=$lt_cv_aix_libpath_
15363 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15364 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15366 if test "$host_cpu" = ia64; then
15367 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15368 allow_undefined_flag="-z nodefs"
15369 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15371 # Determine the default libpath from the value encoded in an
15372 # empty executable.
15373 if test "${lt_cv_aix_libpath+set}" = set; then
15374 aix_libpath=$lt_cv_aix_libpath
15376 if ${lt_cv_aix_libpath_+:} false; then :
15377 $as_echo_n "(cached) " >&6
15379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15380 /* end confdefs.h. */
15390 if ac_fn_c_try_link "$LINENO"; then :
15392 lt_aix_libpath_sed='
15393 /Import File Strings/,/^$/ {
15395 s/^0 *\([^ ]*\) *$/\1/
15399 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15400 # Check for a 64-bit object if we didn't find anything.
15401 if test -z "$lt_cv_aix_libpath_"; then
15402 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15405 rm -f core conftest.err conftest.$ac_objext \
15406 conftest$ac_exeext conftest.$ac_ext
15407 if test -z "$lt_cv_aix_libpath_"; then
15408 lt_cv_aix_libpath_="/usr/lib:/lib"
15413 aix_libpath=$lt_cv_aix_libpath_
15416 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15417 # Warning - without using the other run time loading flags,
15418 # -berok will link without error, but may produce a broken library.
15419 no_undefined_flag=' ${wl}-bernotok'
15420 allow_undefined_flag=' ${wl}-berok'
15421 if test "$with_gnu_ld" = yes; then
15422 # We only use this code for GNU lds that support --whole-archive.
15423 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15425 # Exported symbols can be pulled into shared objects from archives
15426 whole_archive_flag_spec='$convenience'
15428 archive_cmds_need_lc=yes
15429 # This is similar to how AIX traditionally builds its shared libraries.
15430 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15438 # see comment about AmigaOS4 .so support
15439 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15440 archive_expsym_cmds=''
15443 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15444 hardcode_libdir_flag_spec='-L$libdir'
15445 hardcode_minus_L=yes
15451 export_dynamic_flag_spec=-rdynamic
15454 cygwin* | mingw* | pw32* | cegcc*)
15455 # When not using gcc, we currently assume that we are using
15456 # Microsoft Visual C++.
15457 # hardcode_libdir_flag_spec is actually meaningless, as there is
15458 # no search path for DLLs.
15459 case $cc_basename in
15462 hardcode_libdir_flag_spec=' '
15463 allow_undefined_flag=unsupported
15464 always_export_symbols=yes
15466 # Tell ltmain to make .lib files, not .a files.
15468 # Tell ltmain to make .dll files, not .so files.
15470 # FIXME: Setting linknames here is a bad hack.
15471 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15472 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15473 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15475 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15477 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15479 # The linker will not automatically build a static lib if we build a DLL.
15480 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15481 enable_shared_with_static_runtimes=yes
15482 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15483 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15485 old_postinstall_cmds='chmod 644 $oldlib'
15486 postlink_cmds='lt_outputfile="@OUTPUT@"~
15487 lt_tool_outputfile="@TOOL_OUTPUT@"~
15488 case $lt_outputfile in
15491 lt_outputfile="$lt_outputfile.exe"
15492 lt_tool_outputfile="$lt_tool_outputfile.exe"
15495 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15496 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15497 $RM "$lt_outputfile.manifest";
15501 # Assume MSVC wrapper
15502 hardcode_libdir_flag_spec=' '
15503 allow_undefined_flag=unsupported
15504 # Tell ltmain to make .lib files, not .a files.
15506 # Tell ltmain to make .dll files, not .so files.
15508 # FIXME: Setting linknames here is a bad hack.
15509 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15510 # The linker will automatically build a .lib file if we build a DLL.
15511 old_archive_from_new_cmds='true'
15512 # FIXME: Should let the user specify the lib program.
15513 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15514 enable_shared_with_static_runtimes=yes
15519 darwin* | rhapsody*)
15522 archive_cmds_need_lc=no
15524 hardcode_automatic=yes
15525 hardcode_shlibpath_var=unsupported
15526 if test "$lt_cv_ld_force_load" = "yes"; then
15527 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15530 whole_archive_flag_spec=''
15532 link_all_deplibs=yes
15533 allow_undefined_flag="$_lt_dar_allow_undefined"
15534 case $cc_basename in
15535 ifort*) _lt_dar_can_shared=yes ;;
15536 *) _lt_dar_can_shared=$GCC ;;
15538 if test "$_lt_dar_can_shared" = "yes"; then
15539 output_verbose_link_cmd=func_echo_all
15540 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15541 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15542 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15543 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15553 hardcode_libdir_flag_spec='-L$libdir'
15554 hardcode_shlibpath_var=no
15557 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15558 # support. Future versions do this automatically, but an explicit c++rt0.o
15559 # does not break anything, and helps significantly (at the cost of a little
15562 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15563 hardcode_libdir_flag_spec='-R$libdir'
15564 hardcode_direct=yes
15565 hardcode_shlibpath_var=no
15568 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15571 hardcode_direct=yes
15572 hardcode_minus_L=yes
15573 hardcode_shlibpath_var=no
15576 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15577 freebsd* | dragonfly*)
15578 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15579 hardcode_libdir_flag_spec='-R$libdir'
15580 hardcode_direct=yes
15581 hardcode_shlibpath_var=no
15585 if test "$GCC" = yes; then
15586 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15588 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15590 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15591 hardcode_libdir_separator=:
15592 hardcode_direct=yes
15594 # hardcode_minus_L: Not really in the search PATH,
15595 # but as the default location of the library.
15596 hardcode_minus_L=yes
15597 export_dynamic_flag_spec='${wl}-E'
15601 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15602 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15604 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15606 if test "$with_gnu_ld" = no; then
15607 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15608 hardcode_libdir_separator=:
15609 hardcode_direct=yes
15610 hardcode_direct_absolute=yes
15611 export_dynamic_flag_spec='${wl}-E'
15612 # hardcode_minus_L: Not really in the search PATH,
15613 # but as the default location of the library.
15614 hardcode_minus_L=yes
15619 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15622 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15625 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15628 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15634 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15637 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15641 # Older versions of the 11.00 compiler do not understand -b yet
15642 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15644 $as_echo_n "checking if $CC understands -b... " >&6; }
15645 if ${lt_cv_prog_compiler__b+:} false; then :
15646 $as_echo_n "(cached) " >&6
15648 lt_cv_prog_compiler__b=no
15649 save_LDFLAGS="$LDFLAGS"
15650 LDFLAGS="$LDFLAGS -b"
15651 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15652 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15653 # The linker can only warn and ignore the option if not recognized
15654 # So say no if there are warnings
15655 if test -s conftest.err; then
15656 # Append any errors to the config.log.
15657 cat conftest.err 1>&5
15658 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15660 if diff conftest.exp conftest.er2 >/dev/null; then
15661 lt_cv_prog_compiler__b=yes
15664 lt_cv_prog_compiler__b=yes
15668 LDFLAGS="$save_LDFLAGS"
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15672 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15674 if test x"$lt_cv_prog_compiler__b" = xyes; then
15675 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15677 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15683 if test "$with_gnu_ld" = no; then
15684 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15685 hardcode_libdir_separator=:
15690 hardcode_shlibpath_var=no
15693 hardcode_direct=yes
15694 hardcode_direct_absolute=yes
15695 export_dynamic_flag_spec='${wl}-E'
15697 # hardcode_minus_L: Not really in the search PATH,
15698 # but as the default location of the library.
15699 hardcode_minus_L=yes
15705 irix5* | irix6* | nonstopux*)
15706 if test "$GCC" = yes; then
15707 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15708 # Try to use the -exported_symbol ld option, if it does not
15709 # work, assume that -exports_file does not work either and
15710 # implicitly export all symbols.
15711 # This should be the same for all languages, so no per-tag cache variable.
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15713 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15714 if ${lt_cv_irix_exported_symbol+:} false; then :
15715 $as_echo_n "(cached) " >&6
15717 save_LDFLAGS="$LDFLAGS"
15718 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15721 int foo (void) { return 0; }
15723 if ac_fn_c_try_link "$LINENO"; then :
15724 lt_cv_irix_exported_symbol=yes
15726 lt_cv_irix_exported_symbol=no
15728 rm -f core conftest.err conftest.$ac_objext \
15729 conftest$ac_exeext conftest.$ac_ext
15730 LDFLAGS="$save_LDFLAGS"
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15733 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
15734 if test "$lt_cv_irix_exported_symbol" = yes; then
15735 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
15738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15739 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
15741 archive_cmds_need_lc='no'
15742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15743 hardcode_libdir_separator=:
15745 link_all_deplibs=yes
15749 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15750 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15752 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15754 hardcode_libdir_flag_spec='-R$libdir'
15755 hardcode_direct=yes
15756 hardcode_shlibpath_var=no
15760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15761 hardcode_direct=yes
15762 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15763 hardcode_libdir_separator=:
15764 hardcode_shlibpath_var=no
15771 if test -f /usr/libexec/ld.so; then
15772 hardcode_direct=yes
15773 hardcode_shlibpath_var=no
15774 hardcode_direct_absolute=yes
15775 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15776 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15777 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15778 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15779 export_dynamic_flag_spec='${wl}-E'
15782 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15784 hardcode_libdir_flag_spec='-R$libdir'
15787 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15788 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15798 hardcode_libdir_flag_spec='-L$libdir'
15799 hardcode_minus_L=yes
15800 allow_undefined_flag=unsupported
15801 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15802 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15806 if test "$GCC" = yes; then
15807 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15808 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15810 allow_undefined_flag=' -expect_unresolved \*'
15811 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15813 archive_cmds_need_lc='no'
15814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15815 hardcode_libdir_separator=:
15818 osf4* | osf5*) # as osf3* with the addition of -msym flag
15819 if test "$GCC" = yes; then
15820 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15821 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15824 allow_undefined_flag=' -expect_unresolved \*'
15825 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15826 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
15827 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
15829 # Both c and cxx compiler support -rpath directly
15830 hardcode_libdir_flag_spec='-rpath $libdir'
15832 archive_cmds_need_lc='no'
15833 hardcode_libdir_separator=:
15837 no_undefined_flag=' -z defs'
15838 if test "$GCC" = yes; then
15840 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15841 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15842 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15844 case `$CC -V 2>&1` in
15847 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15848 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15849 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15853 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15854 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15855 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15859 hardcode_libdir_flag_spec='-R$libdir'
15860 hardcode_shlibpath_var=no
15862 solaris2.[0-5] | solaris2.[0-5].*) ;;
15864 # The compiler driver will combine and reorder linker options,
15865 # but understands `-z linker_flag'. GCC discards it without `$wl',
15866 # but is careful enough not to reorder.
15867 # Supported since Solaris 2.6 (maybe 2.5.1?)
15868 if test "$GCC" = yes; then
15869 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15871 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15875 link_all_deplibs=yes
15879 if test "x$host_vendor" = xsequent; then
15880 # Use $CC to link under sequent, because it throws in some extra .o
15881 # files that make .init and .fini sections work.
15882 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15884 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15886 hardcode_libdir_flag_spec='-L$libdir'
15887 hardcode_direct=yes
15888 hardcode_minus_L=yes
15889 hardcode_shlibpath_var=no
15893 case $host_vendor in
15895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15896 hardcode_direct=yes # is this really true???
15899 ## LD is ld it makes a PLAMLIB
15900 ## CC just makes a GrossModule.
15901 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15902 reload_cmds='$CC -r -o $output$reload_objs'
15906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15907 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15910 runpath_var='LD_RUN_PATH'
15911 hardcode_shlibpath_var=no
15915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15916 hardcode_shlibpath_var=no
15917 export_dynamic_flag_spec='-Bexport'
15921 if test -d /usr/nec; then
15922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15923 hardcode_shlibpath_var=no
15924 runpath_var=LD_RUN_PATH
15925 hardcode_runpath_var=yes
15930 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15931 no_undefined_flag='${wl}-z,text'
15932 archive_cmds_need_lc=no
15933 hardcode_shlibpath_var=no
15934 runpath_var='LD_RUN_PATH'
15936 if test "$GCC" = yes; then
15937 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15938 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15940 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15941 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15945 sysv5* | sco3.2v5* | sco5v6*)
15946 # Note: We can NOT use -z defs as we might desire, because we do not
15947 # link with -lc, and that would cause any symbols used from libc to
15948 # always be unresolved, which means just about no library would
15949 # ever link correctly. If we're not using GNU ld we use -z text
15950 # though, which does catch some bad symbols but isn't as heavy-handed
15952 no_undefined_flag='${wl}-z,text'
15953 allow_undefined_flag='${wl}-z,nodefs'
15954 archive_cmds_need_lc=no
15955 hardcode_shlibpath_var=no
15956 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15957 hardcode_libdir_separator=':'
15958 link_all_deplibs=yes
15959 export_dynamic_flag_spec='${wl}-Bexport'
15960 runpath_var='LD_RUN_PATH'
15962 if test "$GCC" = yes; then
15963 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15964 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15966 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15967 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15973 hardcode_libdir_flag_spec='-L$libdir'
15974 hardcode_shlibpath_var=no
15982 if test x$host_vendor = xsni; then
15984 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15985 export_dynamic_flag_spec='${wl}-Blargedynsym'
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15992 $as_echo "$ld_shlibs" >&6; }
15993 test "$ld_shlibs" = no && can_build_shared=no
15995 with_gnu_ld=$with_gnu_ld
16012 # Do we need to explicitly link libc?
16014 case "x$archive_cmds_need_lc" in
16016 # Assume -lc should be added
16017 archive_cmds_need_lc=yes
16019 if test "$enable_shared" = yes && test "$GCC" = yes; then
16020 case $archive_cmds in
16022 # FIXME: we may have to deal with multi-command sequences.
16025 # Test whether the compiler implicitly links with -lc since on some
16026 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16027 # to ld, don't add -lc before -lgcc.
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16029 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16030 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16031 $as_echo_n "(cached) " >&6
16034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16037 (eval $ac_compile) 2>&5
16039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16040 test $ac_status = 0; } 2>conftest.err; then
16043 libobjs=conftest.$ac_objext
16045 wl=$lt_prog_compiler_wl
16046 pic_flag=$lt_prog_compiler_pic
16052 lt_save_allow_undefined_flag=$allow_undefined_flag
16053 allow_undefined_flag=
16054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16055 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16058 test $ac_status = 0; }
16060 lt_cv_archive_cmds_need_lc=no
16062 lt_cv_archive_cmds_need_lc=yes
16064 allow_undefined_flag=$lt_save_allow_undefined_flag
16066 cat conftest.err 1>&5
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16072 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16073 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16232 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16234 if test "$GCC" = yes; then
16236 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16237 *) lt_awk_arg="/^libraries:/" ;;
16240 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16241 *) lt_sed_strip_eq="s,=/,/,g" ;;
16243 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16244 case $lt_search_path_spec in
16246 # if the path contains ";" then we assume it to be the separator
16247 # otherwise default to the standard path separator (i.e. ":") - it is
16248 # assumed that no part of a normal pathname contains ";" but that should
16249 # okay in the real world where ";" in dirpaths is itself problematic.
16250 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16253 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16256 # Ok, now we have the path, separated by spaces, we can step through it
16257 # and add multilib dir if necessary.
16258 lt_tmp_lt_search_path_spec=
16259 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16260 for lt_sys_path in $lt_search_path_spec; do
16261 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16262 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16264 test -d "$lt_sys_path" && \
16265 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16268 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16269 BEGIN {RS=" "; FS="/|\n";} {
16272 for (lt_i = NF; lt_i > 0; lt_i--) {
16273 if ($lt_i != "" && $lt_i != ".") {
16274 if ($lt_i == "..") {
16277 if (lt_count == 0) {
16278 lt_foo="/" $lt_i lt_foo;
16285 if (lt_foo != "") { lt_freq[lt_foo]++; }
16286 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16288 # AWK program above erroneously prepends '/' to C:/dos/paths
16291 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16292 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16294 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16296 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16298 library_names_spec=
16299 libname_spec='lib$name'
16303 postuninstall_cmds=
16307 shlibpath_overrides_runpath=unknown
16309 dynamic_linker="$host_os ld.so"
16310 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16311 need_lib_prefix=unknown
16312 hardcode_into_libs=no
16314 # when you set need_version to no, make sure it does not cause -set_version
16315 # flags to be left without arguments
16316 need_version=unknown
16320 version_type=linux # correct to gnu/linux during the next big refactor
16321 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16322 shlibpath_var=LIBPATH
16324 # AIX 3 has no versioning support, so we append a major version to the name.
16325 soname_spec='${libname}${release}${shared_ext}$major'
16329 version_type=linux # correct to gnu/linux during the next big refactor
16332 hardcode_into_libs=yes
16333 if test "$host_cpu" = ia64; then
16334 # AIX 5 supports IA64
16335 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16336 shlibpath_var=LD_LIBRARY_PATH
16338 # With GCC up to 2.95.x, collect2 would create an import file
16339 # for dependence libraries. The import file would start with
16340 # the line `#! .'. This would cause the generated library to
16341 # depend on `.', always an invalid library. This was fixed in
16342 # development snapshots of GCC prior to 3.0.
16344 aix4 | aix4.[01] | aix4.[01].*)
16345 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16347 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16350 can_build_shared=no
16354 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16355 # soname into executable. Probably we can add versioning support to
16356 # collect2, so additional links can be useful in future.
16357 if test "$aix_use_runtimelinking" = yes; then
16358 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16359 # instead of lib<name>.a to let people know that these are not
16360 # typical AIX shared libraries.
16361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16363 # We preserve .a as extension for shared libraries through AIX4.2
16364 # and later when we are not doing run time linking.
16365 library_names_spec='${libname}${release}.a $libname.a'
16366 soname_spec='${libname}${release}${shared_ext}$major'
16368 shlibpath_var=LIBPATH
16375 # Since July 2007 AmigaOS4 officially supports .so libraries.
16376 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16380 library_names_spec='$libname.ixlibrary $libname.a'
16381 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16382 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16388 library_names_spec='${libname}${shared_ext}'
16389 dynamic_linker="$host_os ld.so"
16390 shlibpath_var=LIBRARY_PATH
16394 version_type=linux # correct to gnu/linux during the next big refactor
16396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16397 soname_spec='${libname}${release}${shared_ext}$major'
16398 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16399 shlibpath_var=LD_LIBRARY_PATH
16400 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16401 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16402 # the default ld.so.conf also contains /usr/contrib/lib and
16403 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16404 # libtool to hard-code these into programs
16407 cygwin* | mingw* | pw32* | cegcc*)
16408 version_type=windows
16413 case $GCC,$cc_basename in
16416 library_names_spec='$libname.dll.a'
16417 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16418 postinstall_cmds='base_file=`basename \${file}`~
16419 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16420 dldir=$destdir/`dirname \$dlpath`~
16421 test -d \$dldir || mkdir -p \$dldir~
16422 $install_prog $dir/$dlname \$dldir/$dlname~
16423 chmod a+x \$dldir/$dlname~
16424 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16425 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16427 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16428 dlpath=$dir/\$dldll~
16430 shlibpath_overrides_runpath=yes
16434 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16435 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16437 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16440 # MinGW DLLs use traditional 'lib' prefix
16441 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16444 # pw32 DLLs use 'pw' prefix rather than 'lib'
16445 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16448 dynamic_linker='Win32 ld.exe'
16453 libname_spec='$name'
16454 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16455 library_names_spec='${libname}.dll.lib'
16459 sys_lib_search_path_spec=
16462 for lt_path in $LIB
16465 # Let DOS variable expansion print the short 8.3 style file name.
16466 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16467 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16470 # Convert to MSYS style.
16471 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16474 # Convert to unix form, then to dos form, then back to unix form
16475 # but this time dos style (no spaces!) so that the unix form looks
16476 # like /cygdrive/c/PROGRA~1:/cygdr...
16477 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16478 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16479 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16482 sys_lib_search_path_spec="$LIB"
16483 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16484 # It is most probably a Windows format PATH.
16485 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16487 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16489 # FIXME: find the short name or the path components, as spaces are
16490 # common. (e.g. "Program Files" -> "PROGRA~1")
16494 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16495 postinstall_cmds='base_file=`basename \${file}`~
16496 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16497 dldir=$destdir/`dirname \$dlpath`~
16498 test -d \$dldir || mkdir -p \$dldir~
16499 $install_prog $dir/$dlname \$dldir/$dlname'
16500 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16501 dlpath=$dir/\$dldll~
16503 shlibpath_overrides_runpath=yes
16504 dynamic_linker='Win32 link.exe'
16508 # Assume MSVC wrapper
16509 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16510 dynamic_linker='Win32 ld.exe'
16513 # FIXME: first we should search . and the directory the executable is in
16517 darwin* | rhapsody*)
16518 dynamic_linker="$host_os dyld"
16519 version_type=darwin
16522 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16523 soname_spec='${libname}${release}${major}$shared_ext'
16524 shlibpath_overrides_runpath=yes
16525 shlibpath_var=DYLD_LIBRARY_PATH
16526 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16528 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16529 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16533 version_type=linux # correct to gnu/linux during the next big refactor
16536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16537 soname_spec='${libname}${release}${shared_ext}$major'
16538 shlibpath_var=LD_LIBRARY_PATH
16541 freebsd* | dragonfly*)
16542 # DragonFly does not have aout. When/if they implement a new
16543 # versioning mechanism, adjust this.
16544 if test -x /usr/bin/objformat; then
16545 objformat=`/usr/bin/objformat`
16548 freebsd[23].*) objformat=aout ;;
16549 *) objformat=elf ;;
16552 version_type=freebsd-$objformat
16553 case $version_type in
16555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16564 shlibpath_var=LD_LIBRARY_PATH
16567 shlibpath_overrides_runpath=yes
16569 freebsd3.[01]* | freebsdelf3.[01]*)
16570 shlibpath_overrides_runpath=yes
16571 hardcode_into_libs=yes
16573 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16574 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16575 shlibpath_overrides_runpath=no
16576 hardcode_into_libs=yes
16578 *) # from 4.6 on, and DragonFly
16579 shlibpath_overrides_runpath=yes
16580 hardcode_into_libs=yes
16586 version_type=linux # correct to gnu/linux during the next big refactor
16589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16590 soname_spec='${libname}${release}${shared_ext}$major'
16591 shlibpath_var=LD_LIBRARY_PATH
16592 shlibpath_overrides_runpath=no
16593 hardcode_into_libs=yes
16597 version_type=linux # correct to gnu/linux during the next big refactor
16600 dynamic_linker="$host_os runtime_loader"
16601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16602 soname_spec='${libname}${release}${shared_ext}$major'
16603 shlibpath_var=LIBRARY_PATH
16604 shlibpath_overrides_runpath=yes
16605 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16606 hardcode_into_libs=yes
16609 hpux9* | hpux10* | hpux11*)
16610 # Give a soname corresponding to the major version so that dld.sl refuses to
16611 # link against other versions.
16618 hardcode_into_libs=yes
16619 dynamic_linker="$host_os dld.so"
16620 shlibpath_var=LD_LIBRARY_PATH
16621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623 soname_spec='${libname}${release}${shared_ext}$major'
16624 if test "X$HPUX_IA64_MODE" = X32; then
16625 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16627 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16633 hardcode_into_libs=yes
16634 dynamic_linker="$host_os dld.sl"
16635 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16638 soname_spec='${libname}${release}${shared_ext}$major'
16639 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16644 dynamic_linker="$host_os dld.sl"
16645 shlibpath_var=SHLIB_PATH
16646 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648 soname_spec='${libname}${release}${shared_ext}$major'
16651 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16652 postinstall_cmds='chmod 555 $lib'
16653 # or fails outright, so override atomically:
16654 install_override_mode=555
16658 version_type=linux # correct to gnu/linux during the next big refactor
16661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16662 soname_spec='${libname}${release}${shared_ext}$major'
16663 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16664 shlibpath_var=LD_LIBRARY_PATH
16665 shlibpath_overrides_runpath=no
16666 hardcode_into_libs=yes
16669 irix5* | irix6* | nonstopux*)
16671 nonstopux*) version_type=nonstopux ;;
16673 if test "$lt_cv_prog_gnu_ld" = yes; then
16674 version_type=linux # correct to gnu/linux during the next big refactor
16681 soname_spec='${libname}${release}${shared_ext}$major'
16682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16684 irix5* | nonstopux*)
16685 libsuff= shlibsuff=
16688 case $LD in # libtool.m4 will add one of these switches to LD
16689 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16690 libsuff= shlibsuff= libmagic=32-bit;;
16691 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16692 libsuff=32 shlibsuff=N32 libmagic=N32;;
16693 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16694 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16695 *) libsuff= shlibsuff= libmagic=never-match;;
16699 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16700 shlibpath_overrides_runpath=no
16701 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16702 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16703 hardcode_into_libs=yes
16706 # No shared lib support for Linux oldld, aout, or coff.
16707 linux*oldld* | linux*aout* | linux*coff*)
16711 # This must be glibc/ELF.
16712 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16713 version_type=linux # correct to gnu/linux during the next big refactor
16716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16717 soname_spec='${libname}${release}${shared_ext}$major'
16718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16719 shlibpath_var=LD_LIBRARY_PATH
16720 shlibpath_overrides_runpath=no
16722 # Some binutils ld are patched to set DT_RUNPATH
16723 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16724 $as_echo_n "(cached) " >&6
16726 lt_cv_shlibpath_overrides_runpath=no
16727 save_LDFLAGS=$LDFLAGS
16728 save_libdir=$libdir
16729 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16730 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h. */
16742 if ac_fn_c_try_link "$LINENO"; then :
16743 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16744 lt_cv_shlibpath_overrides_runpath=yes
16747 rm -f core conftest.err conftest.$ac_objext \
16748 conftest$ac_exeext conftest.$ac_ext
16749 LDFLAGS=$save_LDFLAGS
16750 libdir=$save_libdir
16754 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16756 # This implies no fast_install, which is unacceptable.
16757 # Some rework will be needed to allow for fast_install
16758 # before this can be enabled.
16759 hardcode_into_libs=yes
16761 # Append ld.so.conf contents to the search path
16762 if test -f /etc/ld.so.conf; then
16763 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16764 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16767 # We used to test for /lib/ld.so.1 and disable shared libraries on
16768 # powerpc, because MkLinux only supported shared libraries with the
16769 # GNU dynamic linker. Since this was broken with cross compilers,
16770 # most powerpc-linux boxes support dynamic linking these days and
16771 # people can always --disable-shared, the test was removed, and we
16772 # assume the GNU/Linux dynamic linker is in use.
16773 dynamic_linker='GNU/Linux ld.so'
16780 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16782 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16783 dynamic_linker='NetBSD (a.out) ld.so'
16785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16786 soname_spec='${libname}${release}${shared_ext}$major'
16787 dynamic_linker='NetBSD ld.elf_so'
16789 shlibpath_var=LD_LIBRARY_PATH
16790 shlibpath_overrides_runpath=yes
16791 hardcode_into_libs=yes
16795 version_type=linux # correct to gnu/linux during the next big refactor
16796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16797 shlibpath_var=LD_LIBRARY_PATH
16798 shlibpath_overrides_runpath=yes
16805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16806 soname_spec='${libname}${release}${shared_ext}$major'
16807 shlibpath_var=LD_LIBRARY_PATH
16808 shlibpath_overrides_runpath=no
16809 hardcode_into_libs=yes
16810 dynamic_linker='ldqnx.so'
16815 sys_lib_dlsearch_path_spec="/usr/lib"
16817 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16819 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16820 *) need_version=no ;;
16822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16824 shlibpath_var=LD_LIBRARY_PATH
16825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16827 openbsd2.[89] | openbsd2.[89].*)
16828 shlibpath_overrides_runpath=no
16831 shlibpath_overrides_runpath=yes
16835 shlibpath_overrides_runpath=yes
16840 libname_spec='$name'
16843 library_names_spec='$libname${shared_ext} $libname.a'
16844 dynamic_linker='OS/2 ld.exe'
16845 shlibpath_var=LIBPATH
16848 osf3* | osf4* | osf5*)
16852 soname_spec='${libname}${release}${shared_ext}$major'
16853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16854 shlibpath_var=LD_LIBRARY_PATH
16855 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16856 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16864 version_type=linux # correct to gnu/linux during the next big refactor
16867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16868 soname_spec='${libname}${release}${shared_ext}$major'
16869 shlibpath_var=LD_LIBRARY_PATH
16870 shlibpath_overrides_runpath=yes
16871 hardcode_into_libs=yes
16872 # ldd complains unless libraries are executable
16873 postinstall_cmds='chmod +x $lib'
16878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16879 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16880 shlibpath_var=LD_LIBRARY_PATH
16881 shlibpath_overrides_runpath=yes
16882 if test "$with_gnu_ld" = yes; then
16889 version_type=linux # correct to gnu/linux during the next big refactor
16890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16891 soname_spec='${libname}${release}${shared_ext}$major'
16892 shlibpath_var=LD_LIBRARY_PATH
16893 case $host_vendor in
16895 shlibpath_overrides_runpath=no
16897 runpath_var=LD_RUN_PATH
16905 shlibpath_overrides_runpath=no
16906 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16912 if test -d /usr/nec ;then
16913 version_type=linux # correct to gnu/linux during the next big refactor
16914 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16915 soname_spec='$libname${shared_ext}.$major'
16916 shlibpath_var=LD_LIBRARY_PATH
16920 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16921 version_type=freebsd-elf
16924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16925 soname_spec='${libname}${release}${shared_ext}$major'
16926 shlibpath_var=LD_LIBRARY_PATH
16927 shlibpath_overrides_runpath=yes
16928 hardcode_into_libs=yes
16929 if test "$with_gnu_ld" = yes; then
16930 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16932 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16935 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16939 sys_lib_dlsearch_path_spec='/usr/lib'
16943 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16944 version_type=linux # correct to gnu/linux during the next big refactor
16947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16948 shlibpath_var=LD_LIBRARY_PATH
16949 shlibpath_overrides_runpath=no
16950 hardcode_into_libs=yes
16954 version_type=linux # correct to gnu/linux during the next big refactor
16955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16956 soname_spec='${libname}${release}${shared_ext}$major'
16957 shlibpath_var=LD_LIBRARY_PATH
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16965 $as_echo "$dynamic_linker" >&6; }
16966 test "$dynamic_linker" = no && can_build_shared=no
16968 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16969 if test "$GCC" = yes; then
16970 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16973 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16974 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16976 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16977 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17072 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17074 if test -n "$hardcode_libdir_flag_spec" ||
17075 test -n "$runpath_var" ||
17076 test "X$hardcode_automatic" = "Xyes" ; then
17078 # We can hardcode non-existent directories.
17079 if test "$hardcode_direct" != no &&
17080 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17081 # have to relink, otherwise we might link with an installed library
17082 # when we should be linking with a yet-to-be-installed one
17083 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17084 test "$hardcode_minus_L" != no; then
17085 # Linking always hardcodes the temporary library directory.
17086 hardcode_action=relink
17088 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17089 hardcode_action=immediate
17092 # We cannot hardcode anything, or else we can only hardcode existing
17094 hardcode_action=unsupported
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17097 $as_echo "$hardcode_action" >&6; }
17099 if test "$hardcode_action" = relink ||
17100 test "$inherit_rpath" = yes; then
17101 # Fast installation is not supported
17102 enable_fast_install=no
17103 elif test "$shlibpath_overrides_runpath" = yes ||
17104 test "$enable_shared" = no; then
17105 # Fast installation is not necessary
17106 enable_fast_install=needless
17114 if test "x$enable_dlopen" != xyes; then
17115 enable_dlopen=unknown
17116 enable_dlopen_self=unknown
17117 enable_dlopen_self_static=unknown
17124 lt_cv_dlopen="load_add_on"
17126 lt_cv_dlopen_self=yes
17129 mingw* | pw32* | cegcc*)
17130 lt_cv_dlopen="LoadLibrary"
17135 lt_cv_dlopen="dlopen"
17140 # if libdl is installed we need to link against it
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17142 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17143 if ${ac_cv_lib_dl_dlopen+:} false; then :
17144 $as_echo_n "(cached) " >&6
17146 ac_check_lib_save_LIBS=$LIBS
17148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17149 /* end confdefs.h. */
17151 /* Override any GCC internal prototype to avoid an error.
17152 Use char because int might match the return type of a GCC
17153 builtin and then its argument prototype would still apply. */
17166 if ac_fn_c_try_link "$LINENO"; then :
17167 ac_cv_lib_dl_dlopen=yes
17169 ac_cv_lib_dl_dlopen=no
17171 rm -f core conftest.err conftest.$ac_objext \
17172 conftest$ac_exeext conftest.$ac_ext
17173 LIBS=$ac_check_lib_save_LIBS
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17176 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17177 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17178 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17181 lt_cv_dlopen="dyld"
17183 lt_cv_dlopen_self=yes
17190 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17191 if test "x$ac_cv_func_shl_load" = xyes; then :
17192 lt_cv_dlopen="shl_load"
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17195 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17196 if ${ac_cv_lib_dld_shl_load+:} false; then :
17197 $as_echo_n "(cached) " >&6
17199 ac_check_lib_save_LIBS=$LIBS
17201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17202 /* end confdefs.h. */
17204 /* Override any GCC internal prototype to avoid an error.
17205 Use char because int might match the return type of a GCC
17206 builtin and then its argument prototype would still apply. */
17214 return shl_load ();
17219 if ac_fn_c_try_link "$LINENO"; then :
17220 ac_cv_lib_dld_shl_load=yes
17222 ac_cv_lib_dld_shl_load=no
17224 rm -f core conftest.err conftest.$ac_objext \
17225 conftest$ac_exeext conftest.$ac_ext
17226 LIBS=$ac_check_lib_save_LIBS
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17229 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17230 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17231 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17233 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17234 if test "x$ac_cv_func_dlopen" = xyes; then :
17235 lt_cv_dlopen="dlopen"
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17238 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17239 if ${ac_cv_lib_dl_dlopen+:} false; then :
17240 $as_echo_n "(cached) " >&6
17242 ac_check_lib_save_LIBS=$LIBS
17244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17245 /* end confdefs.h. */
17247 /* Override any GCC internal prototype to avoid an error.
17248 Use char because int might match the return type of a GCC
17249 builtin and then its argument prototype would still apply. */
17262 if ac_fn_c_try_link "$LINENO"; then :
17263 ac_cv_lib_dl_dlopen=yes
17265 ac_cv_lib_dl_dlopen=no
17267 rm -f core conftest.err conftest.$ac_objext \
17268 conftest$ac_exeext conftest.$ac_ext
17269 LIBS=$ac_check_lib_save_LIBS
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17272 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17273 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17274 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17277 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17278 if ${ac_cv_lib_svld_dlopen+:} false; then :
17279 $as_echo_n "(cached) " >&6
17281 ac_check_lib_save_LIBS=$LIBS
17282 LIBS="-lsvld $LIBS"
17283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17284 /* end confdefs.h. */
17286 /* Override any GCC internal prototype to avoid an error.
17287 Use char because int might match the return type of a GCC
17288 builtin and then its argument prototype would still apply. */
17301 if ac_fn_c_try_link "$LINENO"; then :
17302 ac_cv_lib_svld_dlopen=yes
17304 ac_cv_lib_svld_dlopen=no
17306 rm -f core conftest.err conftest.$ac_objext \
17307 conftest$ac_exeext conftest.$ac_ext
17308 LIBS=$ac_check_lib_save_LIBS
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17311 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17312 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17313 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17316 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17317 if ${ac_cv_lib_dld_dld_link+:} false; then :
17318 $as_echo_n "(cached) " >&6
17320 ac_check_lib_save_LIBS=$LIBS
17322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17323 /* end confdefs.h. */
17325 /* Override any GCC internal prototype to avoid an error.
17326 Use char because int might match the return type of a GCC
17327 builtin and then its argument prototype would still apply. */
17335 return dld_link ();
17340 if ac_fn_c_try_link "$LINENO"; then :
17341 ac_cv_lib_dld_dld_link=yes
17343 ac_cv_lib_dld_dld_link=no
17345 rm -f core conftest.err conftest.$ac_objext \
17346 conftest$ac_exeext conftest.$ac_ext
17347 LIBS=$ac_check_lib_save_LIBS
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17350 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17351 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17352 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17373 if test "x$lt_cv_dlopen" != xno; then
17379 case $lt_cv_dlopen in
17381 save_CPPFLAGS="$CPPFLAGS"
17382 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17384 save_LDFLAGS="$LDFLAGS"
17385 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17388 LIBS="$lt_cv_dlopen_libs $LIBS"
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17391 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17392 if ${lt_cv_dlopen_self+:} false; then :
17393 $as_echo_n "(cached) " >&6
17395 if test "$cross_compiling" = yes; then :
17396 lt_cv_dlopen_self=cross
17398 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17399 lt_status=$lt_dlunknown
17400 cat > conftest.$ac_ext <<_LT_EOF
17401 #line $LINENO "configure"
17402 #include "confdefs.h"
17411 # define LT_DLGLOBAL RTLD_GLOBAL
17414 # define LT_DLGLOBAL DL_GLOBAL
17416 # define LT_DLGLOBAL 0
17420 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17421 find out it does not work in some platform. */
17422 #ifndef LT_DLLAZY_OR_NOW
17424 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17427 # define LT_DLLAZY_OR_NOW DL_LAZY
17430 # define LT_DLLAZY_OR_NOW RTLD_NOW
17433 # define LT_DLLAZY_OR_NOW DL_NOW
17435 # define LT_DLLAZY_OR_NOW 0
17442 /* When -fvisbility=hidden is used, assume the code has been annotated
17443 correspondingly for the symbols needed. */
17444 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17445 int fnord () __attribute__((visibility("default")));
17448 int fnord () { return 42; }
17451 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17452 int status = $lt_dlunknown;
17456 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17459 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17460 else puts (dlerror ());
17462 /* dlclose (self); */
17470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17471 (eval $ac_link) 2>&5
17473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17474 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17475 (./conftest; exit; ) >&5 2>/dev/null
17477 case x$lt_status in
17478 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17479 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17480 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17483 # compilation failed
17484 lt_cv_dlopen_self=no
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17492 $as_echo "$lt_cv_dlopen_self" >&6; }
17494 if test "x$lt_cv_dlopen_self" = xyes; then
17495 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17497 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17498 if ${lt_cv_dlopen_self_static+:} false; then :
17499 $as_echo_n "(cached) " >&6
17501 if test "$cross_compiling" = yes; then :
17502 lt_cv_dlopen_self_static=cross
17504 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17505 lt_status=$lt_dlunknown
17506 cat > conftest.$ac_ext <<_LT_EOF
17507 #line $LINENO "configure"
17508 #include "confdefs.h"
17517 # define LT_DLGLOBAL RTLD_GLOBAL
17520 # define LT_DLGLOBAL DL_GLOBAL
17522 # define LT_DLGLOBAL 0
17526 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17527 find out it does not work in some platform. */
17528 #ifndef LT_DLLAZY_OR_NOW
17530 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17533 # define LT_DLLAZY_OR_NOW DL_LAZY
17536 # define LT_DLLAZY_OR_NOW RTLD_NOW
17539 # define LT_DLLAZY_OR_NOW DL_NOW
17541 # define LT_DLLAZY_OR_NOW 0
17548 /* When -fvisbility=hidden is used, assume the code has been annotated
17549 correspondingly for the symbols needed. */
17550 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17551 int fnord () __attribute__((visibility("default")));
17554 int fnord () { return 42; }
17557 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17558 int status = $lt_dlunknown;
17562 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17565 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17566 else puts (dlerror ());
17568 /* dlclose (self); */
17576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17577 (eval $ac_link) 2>&5
17579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17580 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17581 (./conftest; exit; ) >&5 2>/dev/null
17583 case x$lt_status in
17584 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17585 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17586 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17589 # compilation failed
17590 lt_cv_dlopen_self_static=no
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17598 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17601 CPPFLAGS="$save_CPPFLAGS"
17602 LDFLAGS="$save_LDFLAGS"
17607 case $lt_cv_dlopen_self in
17608 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17609 *) enable_dlopen_self=unknown ;;
17612 case $lt_cv_dlopen_self_static in
17613 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17614 *) enable_dlopen_self_static=unknown ;;
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17637 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17638 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17639 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17640 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17642 $as_echo "yes" >&6; }
17644 # FIXME - insert some real tests, host_os isn't really good enough
17647 if test -n "$STRIP" ; then
17648 striplib="$STRIP -x"
17649 old_striplib="$STRIP -S"
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17651 $as_echo "yes" >&6; }
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17654 $as_echo "no" >&6; }
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17659 $as_echo "no" >&6; }
17675 # Report which library types will actually be built
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17677 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17679 $as_echo "$can_build_shared" >&6; }
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17682 $as_echo_n "checking whether to build shared libraries... " >&6; }
17683 test "$can_build_shared" = "no" && enable_shared=no
17685 # On AIX, shared libraries and static libraries use the same namespace, and
17686 # are all built from PIC.
17689 test "$enable_shared" = yes && enable_static=no
17690 if test -n "$RANLIB"; then
17691 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17692 postinstall_cmds='$RANLIB $lib'
17697 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17698 test "$enable_shared" = yes && enable_static=no
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17703 $as_echo "$enable_shared" >&6; }
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17706 $as_echo_n "checking whether to build static libraries... " >&6; }
17707 # Make sure either enable_shared or enable_static is yes.
17708 test "$enable_shared" = yes || enable_static=yes
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17710 $as_echo "$enable_static" >&6; }
17717 ac_cpp='$CPP $CPPFLAGS'
17718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17738 ac_config_commands="$ac_config_commands libtool"
17743 # Only expand once:
17746 # get libtool's setting of shlibpath_var
17747 eval `grep "^shlibpath_var=[A-Z_]*$" $apr_builddir/libtool`
17748 if test "x$shlibpath_var" = "x"; then
17749 shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
17756 # Check whether --with-installbuilddir was given.
17757 if test "${with_installbuilddir+set}" = set; then :
17758 withval=$with_installbuilddir; installbuilddir=$withval
17760 installbuilddir="${datadir}/build-${APR_MAJOR_VERSION}"
17766 # Check whether --with-libtool was given.
17767 if test "${with_libtool+set}" = set; then :
17768 withval=$with_libtool; use_libtool=$withval
17774 if test "x$use_libtool" = "xyes"; then
17775 lt_compile='$(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) -o $@ -c $< && touch $@'
17776 LT_VERSION="-version-info `$get_version libtool $version_hdr APR`"
17777 link="\$(LIBTOOL) \$(LTFLAGS) --mode=link \$(COMPILE) \$(LT_LDFLAGS) \$(LT_VERSION) \$(ALL_LDFLAGS) -o \$@"
17779 lib_target='-rpath $(libdir) $(OBJECTS)'
17780 export_lib_target='-rpath \$(libdir) \$(OBJECTS)'
17782 lt_compile='$(COMPILE) -o $@ -c $<'
17783 link='$(AR) cr $(TARGET_LIB) $(OBJECTS); $(RANLIB) $(TARGET_LIB)'
17786 export_lib_target=''
17791 apr_platform_runtime_link_flag="-R"
17793 *-mingw* | *-cygwin*)
17794 LT_LDFLAGS="$LT_LDFLAGS -no-undefined"
17812 echo "${nl}Check for compiler flags..."
17817 if test "$ac_test_CFLAGS" != set; then
17819 if test "x$CFLAGS" = "x-g"; then
17820 test "x$silent" != "xyes" && echo " nulling CFLAGS"
17825 for i in $CFLAGS; do
17826 if test "x$i" != "x-g"; then
17827 apr_new_bugger="$apr_new_bugger $i"
17832 if test $apr_removed = "1"; then
17833 test "x$silent" != "xyes" && echo " removed \"-g\" from CFLAGS"
17834 CFLAGS=$apr_new_bugger
17842 # Check whether --enable-debug was given.
17843 if test "${enable_debug+set}" = set; then :
17844 enableval=$enable_debug;
17845 if test "x$CFLAGS" = "x"; then
17846 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-g\""
17849 apr_addto_bugger="-g"
17850 for i in $apr_addto_bugger; do
17851 apr_addto_duplicate="0"
17852 for j in $CFLAGS; do
17853 if test "x$i" = "x$j"; then
17854 apr_addto_duplicate="1"
17858 if test $apr_addto_duplicate = "0"; then
17859 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
17860 CFLAGS="$CFLAGS $i"
17865 if test "$GCC" = "yes"; then
17867 if test "x$CFLAGS" = "x"; then
17868 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wall\""
17871 apr_addto_bugger="-Wall"
17872 for i in $apr_addto_bugger; do
17873 apr_addto_duplicate="0"
17874 for j in $CFLAGS; do
17875 if test "x$i" = "x$j"; then
17876 apr_addto_duplicate="1"
17880 if test $apr_addto_duplicate = "0"; then
17881 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
17882 CFLAGS="$CFLAGS $i"
17887 elif test "$AIX_XLC" = "yes"; then
17889 if test "x$CFLAGS" = "x"; then
17890 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-qfullpath\""
17891 CFLAGS="-qfullpath"
17893 apr_addto_bugger="-qfullpath"
17894 for i in $apr_addto_bugger; do
17895 apr_addto_duplicate="0"
17896 for j in $CFLAGS; do
17897 if test "x$i" = "x$j"; then
17898 apr_addto_duplicate="1"
17902 if test $apr_addto_duplicate = "0"; then
17903 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
17904 CFLAGS="$CFLAGS $i"
17913 # Check whether --enable-maintainer-mode was given.
17914 if test "${enable_maintainer_mode+set}" = set; then :
17915 enableval=$enable_maintainer_mode;
17916 if test "x$CFLAGS" = "x"; then
17917 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-g\""
17920 apr_addto_bugger="-g"
17921 for i in $apr_addto_bugger; do
17922 apr_addto_duplicate="0"
17923 for j in $CFLAGS; do
17924 if test "x$i" = "x$j"; then
17925 apr_addto_duplicate="1"
17929 if test $apr_addto_duplicate = "0"; then
17930 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
17931 CFLAGS="$CFLAGS $i"
17936 if test "$GCC" = "yes"; then
17938 if test "x$CFLAGS" = "x"; then
17939 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations\""
17940 CFLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
17942 apr_addto_bugger="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
17943 for i in $apr_addto_bugger; do
17944 apr_addto_duplicate="0"
17945 for j in $CFLAGS; do
17946 if test "x$i" = "x$j"; then
17947 apr_addto_duplicate="1"
17951 if test $apr_addto_duplicate = "0"; then
17952 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
17953 CFLAGS="$CFLAGS $i"
17958 elif test "$AIX_XLC" = "yes"; then
17960 if test "x$CFLAGS" = "x"; then
17961 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro\""
17962 CFLAGS="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
17964 apr_addto_bugger="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
17965 for i in $apr_addto_bugger; do
17966 apr_addto_duplicate="0"
17967 for j in $CFLAGS; do
17968 if test "x$i" = "x$j"; then
17969 apr_addto_duplicate="1"
17973 if test $apr_addto_duplicate = "0"; then
17974 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
17975 CFLAGS="$CFLAGS $i"
17984 # Check whether --enable-profile was given.
17985 if test "${enable_profile+set}" = set; then :
17986 enableval=$enable_profile; if test "$GCC" = "yes"; then
17988 if test "x$CFLAGS" = "x"; then
17989 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-pg\""
17992 apr_addto_bugger="-pg"
17993 for i in $apr_addto_bugger; do
17994 apr_addto_duplicate="0"
17995 for j in $CFLAGS; do
17996 if test "x$i" = "x$j"; then
17997 apr_addto_duplicate="1"
18001 if test $apr_addto_duplicate = "0"; then
18002 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18003 CFLAGS="$CFLAGS $i"
18009 if test "x$CFLAGS" = "x-g"; then
18010 test "x$silent" != "xyes" && echo " nulling CFLAGS"
18015 for i in $CFLAGS; do
18016 if test "x$i" != "x-g"; then
18017 apr_new_bugger="$apr_new_bugger $i"
18022 if test $apr_removed = "1"; then
18023 test "x$silent" != "xyes" && echo " removed \"-g\" from CFLAGS"
18024 CFLAGS=$apr_new_bugger
18028 if test "$host" = "i586-pc-beos"; then
18030 if test "x$CFLAGS" = "x-O2"; then
18031 test "x$silent" != "xyes" && echo " nulling CFLAGS"
18036 for i in $CFLAGS; do
18037 if test "x$i" != "x-O2"; then
18038 apr_new_bugger="$apr_new_bugger $i"
18043 if test $apr_removed = "1"; then
18044 test "x$silent" != "xyes" && echo " removed \"-O2\" from CFLAGS"
18045 CFLAGS=$apr_new_bugger
18050 if test "x$CFLAGS" = "x"; then
18051 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O1\""
18054 apr_addto_bugger="-O1"
18055 for i in $apr_addto_bugger; do
18056 apr_addto_duplicate="0"
18057 for j in $CFLAGS; do
18058 if test "x$i" = "x$j"; then
18059 apr_addto_duplicate="1"
18063 if test $apr_addto_duplicate = "0"; then
18064 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18065 CFLAGS="$CFLAGS $i"
18071 if test "x$LDFLAGS" = "x"; then
18072 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-p\""
18075 apr_addto_bugger="-p"
18076 for i in $apr_addto_bugger; do
18077 apr_addto_duplicate="0"
18078 for j in $LDFLAGS; do
18079 if test "x$i" = "x$j"; then
18080 apr_addto_duplicate="1"
18084 if test $apr_addto_duplicate = "0"; then
18085 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
18086 LDFLAGS="$LDFLAGS $i"
18096 # Check whether --enable-pool-debug was given.
18097 if test "${enable_pool_debug+set}" = set; then :
18098 enableval=$enable_pool_debug; if test -z "$enableval"; then
18100 if test "x$CPPFLAGS" = "x"; then
18101 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPR_POOL_DEBUG=1\""
18102 CPPFLAGS="-DAPR_POOL_DEBUG=1"
18104 apr_addto_bugger="-DAPR_POOL_DEBUG=1"
18105 for i in $apr_addto_bugger; do
18106 apr_addto_duplicate="0"
18107 for j in $CPPFLAGS; do
18108 if test "x$i" = "x$j"; then
18109 apr_addto_duplicate="1"
18113 if test $apr_addto_duplicate = "0"; then
18114 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18115 CPPFLAGS="$CPPFLAGS $i"
18120 elif test ! "$enableval" = "no"; then
18123 for i in $enableval
18150 if test $flag -gt 0; then
18151 apr_pool_debug=`expr '(' $apr_pool_debug - $apr_pool_debug % \
18152 '(' $flag '*' 2 ')' ')' + $flag + $apr_pool_debug % $flag`
18157 if test "x$CPPFLAGS" = "x"; then
18158 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPR_POOL_DEBUG=$apr_pool_debug\""
18159 CPPFLAGS="-DAPR_POOL_DEBUG=$apr_pool_debug"
18161 apr_addto_bugger="-DAPR_POOL_DEBUG=$apr_pool_debug"
18162 for i in $apr_addto_bugger; do
18163 apr_addto_duplicate="0"
18164 for j in $CPPFLAGS; do
18165 if test "x$i" = "x$j"; then
18166 apr_addto_duplicate="1"
18170 if test $apr_addto_duplicate = "0"; then
18171 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18172 CPPFLAGS="$CPPFLAGS $i"
18182 if test "$host" = "i586-pc-beos"; then
18183 # Check whether --enable-malloc-debug was given.
18184 if test "${enable_malloc_debug+set}" = set; then :
18185 enableval=$enable_malloc_debug;
18186 if test "x$CFLAGS" = "x-O2"; then
18187 test "x$silent" != "xyes" && echo " nulling CFLAGS"
18192 for i in $CFLAGS; do
18193 if test "x$i" != "x-O2"; then
18194 apr_new_bugger="$apr_new_bugger $i"
18199 if test $apr_removed = "1"; then
18200 test "x$silent" != "xyes" && echo " removed \"-O2\" from CFLAGS"
18201 CFLAGS=$apr_new_bugger
18206 if test "x$CPPFLAGS" = "x"; then
18207 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-fcheck-memory-usage -D_KERNEL_MODE\""
18208 CPPFLAGS="-fcheck-memory-usage -D_KERNEL_MODE"
18210 apr_addto_bugger="-fcheck-memory-usage -D_KERNEL_MODE"
18211 for i in $apr_addto_bugger; do
18212 apr_addto_duplicate="0"
18213 for j in $CPPFLAGS; do
18214 if test "x$i" = "x$j"; then
18215 apr_addto_duplicate="1"
18219 if test $apr_addto_duplicate = "0"; then
18220 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18221 CPPFLAGS="$CPPFLAGS $i"
18230 # this is the place to put specific options for platform/compiler
18232 case "$host:$CC" in
18235 if test "x$CFLAGS" = "x"; then
18236 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Ae +Z\""
18239 apr_addto_bugger="-Ae +Z"
18240 for i in $apr_addto_bugger; do
18241 apr_addto_duplicate="0"
18242 for j in $CFLAGS; do
18243 if test "x$i" = "x$j"; then
18244 apr_addto_duplicate="1"
18248 if test $apr_addto_duplicate = "0"; then
18249 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18250 CFLAGS="$CFLAGS $i"
18259 if echo "$CFLAGS " | grep '+DA' >/dev/null; then :
18262 if test "x$CFLAGS" = "x"; then
18263 test "x$silent" != "xyes" && echo " setting CFLAGS to \"+DAportable\""
18264 CFLAGS="+DAportable"
18266 apr_addto_bugger="+DAportable"
18267 for i in $apr_addto_bugger; do
18268 apr_addto_duplicate="0"
18269 for j in $CFLAGS; do
18270 if test "x$i" = "x$j"; then
18271 apr_addto_duplicate="1"
18275 if test $apr_addto_duplicate = "0"; then
18276 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18277 CFLAGS="$CFLAGS $i"
18286 powerpc-*-beos:mwcc* )
18288 test "x$silent" != "xyes" && echo " forcing CPP to \"mwcc -E\""
18292 test "x$silent" != "xyes" && echo " forcing CC to \"mwcc\""
18296 test "x$silent" != "xyes" && echo " forcing AR to \"ar\""
18300 *-mingw* | *-cygwin*)
18301 if test "$enable_shared" = "yes"; then
18303 if test "x$INTERNAL_CPPFLAGS" = "x"; then
18304 test "x$silent" != "xyes" && echo " setting INTERNAL_CPPFLAGS to \"-DAPR_DECLARE_EXPORT\""
18305 INTERNAL_CPPFLAGS="-DAPR_DECLARE_EXPORT"
18307 apr_addto_bugger="-DAPR_DECLARE_EXPORT"
18308 for i in $apr_addto_bugger; do
18309 apr_addto_duplicate="0"
18310 for j in $INTERNAL_CPPFLAGS; do
18311 if test "x$i" = "x$j"; then
18312 apr_addto_duplicate="1"
18316 if test $apr_addto_duplicate = "0"; then
18317 test "x$silent" != "xyes" && echo " adding \"$i\" to INTERNAL_CPPFLAGS"
18318 INTERNAL_CPPFLAGS="$INTERNAL_CPPFLAGS $i"
18325 if test "x$CPPFLAGS" = "x"; then
18326 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPR_DECLARE_STATIC\""
18327 CPPFLAGS="-DAPR_DECLARE_STATIC"
18329 apr_addto_bugger="-DAPR_DECLARE_STATIC"
18330 for i in $apr_addto_bugger; do
18331 apr_addto_duplicate="0"
18332 for j in $CPPFLAGS; do
18333 if test "x$i" = "x$j"; then
18334 apr_addto_duplicate="1"
18338 if test $apr_addto_duplicate = "0"; then
18339 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18340 CPPFLAGS="$CPPFLAGS $i"
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
18350 $as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
18351 if ${ap_cv_atomic_builtins+:} false; then :
18352 $as_echo_n "(cached) " >&6
18354 if test "$cross_compiling" = yes; then :
18355 ap_cv_atomic_builtins=no
18357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18358 /* end confdefs.h. */
18362 unsigned long val = 1010, tmp, *mem = &val;
18364 if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
18369 if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
18372 if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
18377 if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
18380 if (__sync_lock_test_and_set(&val, 4040) != 3030)
18385 if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
18388 __sync_synchronize();
18396 if ac_fn_c_try_run "$LINENO"; then :
18397 ap_cv_atomic_builtins=yes
18399 ap_cv_atomic_builtins=no
18401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18402 conftest.$ac_objext conftest.beam conftest.$ac_ext
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_atomic_builtins" >&5
18407 $as_echo "$ap_cv_atomic_builtins" >&6; }
18409 if test "$ap_cv_atomic_builtins" = "yes"; then
18411 $as_echo "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h
18417 # The IBM ppc405cr processor has a bugged stwcx instruction.
18419 $as_echo "#define PPC405_ERRATA 1" >>confdefs.h
18427 if test "$GCC" = "yes"; then
18431 cat > conftest.c <<EOF
18432 #include <sys/types.h>
18433 int main() { return 0; }
18436 for i in "$CC -MM" "$CC -M" "$CPP -MM" "$CPP -M" "cpp -M"; do
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $i can create proper make dependencies" >&5
18438 $as_echo_n "checking if $i can create proper make dependencies... " >&6; }
18439 if $i conftest.c 2>/dev/null | grep 'conftest.o: conftest.c' >/dev/null; then
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18442 $as_echo "yes" >&6; }
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18446 $as_echo "no" >&6; }
18454 proc_mutex_is_global=0
18456 config_subdirs="none"
18457 INSTALL_SUBDIRS="none"
18458 OBJECTS_PLATFORM='$(OBJECTS_unix)'
18461 i386-ibm-aix* | *-ibm-aix[1-2].* | *-ibm-aix3.* | *-ibm-aix4.1 | *-ibm-aix4.1.* | *-ibm-aix4.2 | *-ibm-aix4.2.*)
18464 if test "x$LDFLAGS" = "x"; then
18465 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-lld\""
18468 apr_addto_bugger="-lld"
18469 for i in $apr_addto_bugger; do
18470 apr_addto_duplicate="0"
18471 for j in $LDFLAGS; do
18472 if test "x$i" = "x$j"; then
18473 apr_addto_duplicate="1"
18477 if test $apr_addto_duplicate = "0"; then
18478 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
18479 LDFLAGS="$LDFLAGS $i"
18485 OBJECTS_PLATFORM='$(OBJECTS_aix)'
18489 if test "x$CPPFLAGS" = "x"; then
18490 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DOS2\""
18493 apr_addto_bugger="-DOS2"
18494 for i in $apr_addto_bugger; do
18495 apr_addto_duplicate="0"
18496 for j in $CPPFLAGS; do
18497 if test "x$i" = "x$j"; then
18498 apr_addto_duplicate="1"
18502 if test $apr_addto_duplicate = "0"; then
18503 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18504 CPPFLAGS="$CPPFLAGS $i"
18510 if test "x$CFLAGS" = "x"; then
18511 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Zmt\""
18514 apr_addto_bugger="-Zmt"
18515 for i in $apr_addto_bugger; do
18516 apr_addto_duplicate="0"
18517 for j in $CFLAGS; do
18518 if test "x$i" = "x$j"; then
18519 apr_addto_duplicate="1"
18523 if test $apr_addto_duplicate = "0"; then
18524 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18525 CFLAGS="$CFLAGS $i"
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random in -lbsd" >&5
18531 $as_echo_n "checking for random in -lbsd... " >&6; }
18532 if ${ac_cv_lib_bsd_random+:} false; then :
18533 $as_echo_n "(cached) " >&6
18535 ac_check_lib_save_LIBS=$LIBS
18537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18538 /* end confdefs.h. */
18540 /* Override any GCC internal prototype to avoid an error.
18541 Use char because int might match the return type of a GCC
18542 builtin and then its argument prototype would still apply. */
18555 if ac_fn_c_try_link "$LINENO"; then :
18556 ac_cv_lib_bsd_random=yes
18558 ac_cv_lib_bsd_random=no
18560 rm -f core conftest.err conftest.$ac_objext \
18561 conftest$ac_exeext conftest.$ac_ext
18562 LIBS=$ac_check_lib_save_LIBS
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_random" >&5
18565 $as_echo "$ac_cv_lib_bsd_random" >&6; }
18566 if test "x$ac_cv_lib_bsd_random" = xyes; then :
18567 cat >>confdefs.h <<_ACEOF
18568 #define HAVE_LIBBSD 1
18576 enable_threads="system_threads"
18579 proc_mutex_is_global=1
18580 OBJECTS_PLATFORM='$(OBJECTS_os2)'
18585 if test "x$CPPFLAGS" = "x"; then
18586 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DBEOS\""
18589 apr_addto_bugger="-DBEOS"
18590 for i in $apr_addto_bugger; do
18591 apr_addto_duplicate="0"
18592 for j in $CPPFLAGS; do
18593 if test "x$i" = "x$j"; then
18594 apr_addto_duplicate="1"
18598 if test $apr_addto_duplicate = "0"; then
18599 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18600 CPPFLAGS="$CPPFLAGS $i"
18605 enable_threads="system_threads"
18606 native_mmap_emul="1"
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BONE_VERSION in sys/socket.h" >&5
18609 $as_echo_n "checking for BONE_VERSION in sys/socket.h... " >&6; }
18610 if ${ac_cv_define_BONE_VERSION+:} false; then :
18611 $as_echo_n "(cached) " >&6
18614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18615 /* end confdefs.h. */
18617 #include <sys/socket.h>
18618 #ifdef BONE_VERSION
18623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18624 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
18625 ac_cv_define_BONE_VERSION=yes
18627 ac_cv_define_BONE_VERSION=no
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_BONE_VERSION" >&5
18634 $as_echo "$ac_cv_define_BONE_VERSION" >&6; }
18635 if test "$ac_cv_define_BONE_VERSION" = "yes"; then
18637 $as_echo "#define HAVE_BONE_VERSION 1" >>confdefs.h
18643 proc_mutex_is_global=1
18644 OBJECTS_PLATFORM='$(OBJECTS_beos)'
18656 OBJECTS_PLATFORM='$(OBJECTS_os390)'
18665 enable_threads="system_threads"
18668 proc_mutex_is_global=1
18669 OBJECTS_PLATFORM='$(OBJECTS_win32)'
18673 enable_threads="no"
18677 enable_threads="no"
18689 # Check whether LFS has explicitly been disabled
18690 # Check whether --enable-lfs was given.
18691 if test "${enable_lfs+set}" = set; then :
18692 enableval=$enable_lfs; apr_lfs_choice=$enableval
18698 if test "$apr_lfs_choice" = "yes"; then
18699 # Check whether the transitional LFS API is sufficient
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable -D_LARGEFILE64_SOURCE" >&5
18701 $as_echo_n "checking whether to enable -D_LARGEFILE64_SOURCE... " >&6; }
18702 if ${apr_cv_use_lfs64+:} false; then :
18703 $as_echo_n "(cached) " >&6
18706 apr_save_CPPFLAGS=$CPPFLAGS
18707 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
18708 if test "$cross_compiling" = yes; then :
18709 apr_cv_use_lfs64=no
18711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18712 /* end confdefs.h. */
18714 #include <sys/types.h>
18715 #include <sys/stat.h>
18717 #include <stdlib.h>
18719 #include <unistd.h>
18725 off64_t off = 4242;
18727 if (sizeof(off64_t) != 8 || sizeof(off_t) != 4)
18729 if ((fd = open("conftest.lfs", O_LARGEFILE|O_CREAT|O_WRONLY, 0644)) < 0)
18731 if (ftruncate64(fd, off) != 0)
18733 else if (fstat64(fd, &st) != 0 || st.st_size != off)
18735 else if (lseek64(fd, off, SEEK_SET) != off)
18737 else if (close(fd) != 0)
18739 else if (lstat64("conftest.lfs", &st) != 0 || st.st_size != off)
18741 else if (stat64("conftest.lfs", &st) != 0 || st.st_size != off)
18743 unlink("conftest.lfs");
18748 if ac_fn_c_try_run "$LINENO"; then :
18749 apr_cv_use_lfs64=yes
18751 apr_cv_use_lfs64=no
18753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18754 conftest.$ac_objext conftest.beam conftest.$ac_ext
18757 CPPFLAGS=$apr_save_CPPFLAGS
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_use_lfs64" >&5
18760 $as_echo "$apr_cv_use_lfs64" >&6; }
18761 if test "$apr_cv_use_lfs64" = "yes"; then
18763 if test "x$CPPFLAGS" = "x"; then
18764 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_LARGEFILE64_SOURCE\""
18765 CPPFLAGS="-D_LARGEFILE64_SOURCE"
18767 apr_addto_bugger="-D_LARGEFILE64_SOURCE"
18768 for i in $apr_addto_bugger; do
18769 apr_addto_duplicate="0"
18770 for j in $CPPFLAGS; do
18771 if test "x$i" = "x$j"; then
18772 apr_addto_duplicate="1"
18776 if test $apr_addto_duplicate = "0"; then
18777 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18778 CPPFLAGS="$CPPFLAGS $i"
18786 # Check whether --enable-nonportable-atomics was given.
18787 if test "${enable_nonportable_atomics+set}" = set; then :
18788 enableval=$enable_nonportable_atomics; if test $enableval = yes; then
18789 force_generic_atomics=no
18791 force_generic_atomics=yes
18796 i[456]86) force_generic_atomics=yes ;;
18797 *) force_generic_atomics=no
18800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18801 /* end confdefs.h. */
18802 #include <atomic.h>
18806 void *ptr = NULL; atomic_cas_ptr(&ptr, NULL, NULL);
18811 if ac_fn_c_try_compile "$LINENO"; then :
18814 force_generic_atomics=yes
18817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18818 if test $force_generic_atomics = yes; then
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: nonportable atomic support disabled, system needs Patch-ID 118884 or 118885" >&5
18820 $as_echo "$as_me: nonportable atomic support disabled, system needs Patch-ID 118884 or 118885" >&6;}
18830 if test $force_generic_atomics = yes; then
18832 $as_echo "#define USE_ATOMICS_GENERIC 1" >>confdefs.h
18840 # For some platforms we need a version string which allows easy numeric
18844 if test -x /sbin/sysctl; then
18845 os_version=`/sbin/sysctl -n kern.osreldate`
18851 os_major=`uname -r | sed -e 's/\([1-9][0-9]*\)\..*/\1/'`
18852 os_minor=`uname -r | sed -e 's/[1-9][0-9]*\.\([0-9]\+\)\..*/\1/'`
18853 if test $os_major -lt 2 -o \( $os_major -eq 2 -a $os_minor -lt 4 \); then
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configured for pre-2.4 Linux $os_major.$os_minor" >&5
18855 $as_echo "$as_me: WARNING: Configured for pre-2.4 Linux $os_major.$os_minor" >&2;}
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured for Linux $os_major.$os_minor" >&5
18860 $as_echo "$as_me: Configured for Linux $os_major.$os_minor" >&6;}
18864 os_version=`uname -r | sed -e 's/\.//g'`
18867 os_version=OS_VERSION_IS_NOT_SET
18871 echo "${nl}Checking for libraries..."
18876 if test "x$LIBS" = "x"; then
18877 test "x$silent" != "xyes" && echo " setting LIBS to \"-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock\""
18878 LIBS="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock"
18880 apr_addto_bugger="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock"
18881 for i in $apr_addto_bugger; do
18882 apr_addto_duplicate="0"
18884 if test "x$i" = "x$j"; then
18885 apr_addto_duplicate="1"
18889 if test $apr_addto_duplicate = "0"; then
18890 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
18896 ac_cv_func_CreateFileMapping=yes
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18900 $as_echo_n "checking for library containing gethostbyname... " >&6; }
18901 if ${ac_cv_search_gethostbyname+:} false; then :
18902 $as_echo_n "(cached) " >&6
18904 ac_func_search_save_LIBS=$LIBS
18905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18906 /* end confdefs.h. */
18908 /* Override any GCC internal prototype to avoid an error.
18909 Use char because int might match the return type of a GCC
18910 builtin and then its argument prototype would still apply. */
18914 char gethostbyname ();
18918 return gethostbyname ();
18923 for ac_lib in '' nsl; do
18924 if test -z "$ac_lib"; then
18925 ac_res="none required"
18928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18930 if ac_fn_c_try_link "$LINENO"; then :
18931 ac_cv_search_gethostbyname=$ac_res
18933 rm -f core conftest.err conftest.$ac_objext \
18935 if ${ac_cv_search_gethostbyname+:} false; then :
18939 if ${ac_cv_search_gethostbyname+:} false; then :
18942 ac_cv_search_gethostbyname=no
18944 rm conftest.$ac_ext
18945 LIBS=$ac_func_search_save_LIBS
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18948 $as_echo "$ac_cv_search_gethostbyname" >&6; }
18949 ac_res=$ac_cv_search_gethostbyname
18950 if test "$ac_res" != no; then :
18951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
18956 $as_echo_n "checking for library containing gethostname... " >&6; }
18957 if ${ac_cv_search_gethostname+:} false; then :
18958 $as_echo_n "(cached) " >&6
18960 ac_func_search_save_LIBS=$LIBS
18961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18962 /* end confdefs.h. */
18964 /* Override any GCC internal prototype to avoid an error.
18965 Use char because int might match the return type of a GCC
18966 builtin and then its argument prototype would still apply. */
18970 char gethostname ();
18974 return gethostname ();
18979 for ac_lib in '' nsl; do
18980 if test -z "$ac_lib"; then
18981 ac_res="none required"
18984 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18986 if ac_fn_c_try_link "$LINENO"; then :
18987 ac_cv_search_gethostname=$ac_res
18989 rm -f core conftest.err conftest.$ac_objext \
18991 if ${ac_cv_search_gethostname+:} false; then :
18995 if ${ac_cv_search_gethostname+:} false; then :
18998 ac_cv_search_gethostname=no
19000 rm conftest.$ac_ext
19001 LIBS=$ac_func_search_save_LIBS
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
19004 $as_echo "$ac_cv_search_gethostname" >&6; }
19005 ac_res=$ac_cv_search_gethostname
19006 if test "$ac_res" != no; then :
19007 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19012 $as_echo_n "checking for library containing socket... " >&6; }
19013 if ${ac_cv_search_socket+:} false; then :
19014 $as_echo_n "(cached) " >&6
19016 ac_func_search_save_LIBS=$LIBS
19017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19018 /* end confdefs.h. */
19020 /* Override any GCC internal prototype to avoid an error.
19021 Use char because int might match the return type of a GCC
19022 builtin and then its argument prototype would still apply. */
19035 for ac_lib in '' socket; do
19036 if test -z "$ac_lib"; then
19037 ac_res="none required"
19040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19042 if ac_fn_c_try_link "$LINENO"; then :
19043 ac_cv_search_socket=$ac_res
19045 rm -f core conftest.err conftest.$ac_objext \
19047 if ${ac_cv_search_socket+:} false; then :
19051 if ${ac_cv_search_socket+:} false; then :
19054 ac_cv_search_socket=no
19056 rm conftest.$ac_ext
19057 LIBS=$ac_func_search_save_LIBS
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19060 $as_echo "$ac_cv_search_socket" >&6; }
19061 ac_res=$ac_cv_search_socket
19062 if test "$ac_res" != no; then :
19063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19068 $as_echo_n "checking for library containing crypt... " >&6; }
19069 if ${ac_cv_search_crypt+:} false; then :
19070 $as_echo_n "(cached) " >&6
19072 ac_func_search_save_LIBS=$LIBS
19073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19074 /* end confdefs.h. */
19076 /* Override any GCC internal prototype to avoid an error.
19077 Use char because int might match the return type of a GCC
19078 builtin and then its argument prototype would still apply. */
19091 for ac_lib in '' crypt ufc; do
19092 if test -z "$ac_lib"; then
19093 ac_res="none required"
19096 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19098 if ac_fn_c_try_link "$LINENO"; then :
19099 ac_cv_search_crypt=$ac_res
19101 rm -f core conftest.err conftest.$ac_objext \
19103 if ${ac_cv_search_crypt+:} false; then :
19107 if ${ac_cv_search_crypt+:} false; then :
19110 ac_cv_search_crypt=no
19112 rm conftest.$ac_ext
19113 LIBS=$ac_func_search_save_LIBS
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19116 $as_echo "$ac_cv_search_crypt" >&6; }
19117 ac_res=$ac_cv_search_crypt
19118 if test "$ac_res" != no; then :
19119 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltruerand" >&5
19124 $as_echo_n "checking for main in -ltruerand... " >&6; }
19125 if ${ac_cv_lib_truerand_main+:} false; then :
19126 $as_echo_n "(cached) " >&6
19128 ac_check_lib_save_LIBS=$LIBS
19129 LIBS="-ltruerand $LIBS"
19130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19131 /* end confdefs.h. */
19142 if ac_fn_c_try_link "$LINENO"; then :
19143 ac_cv_lib_truerand_main=yes
19145 ac_cv_lib_truerand_main=no
19147 rm -f core conftest.err conftest.$ac_objext \
19148 conftest$ac_exeext conftest.$ac_ext
19149 LIBS=$ac_check_lib_save_LIBS
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_truerand_main" >&5
19152 $as_echo "$ac_cv_lib_truerand_main" >&6; }
19153 if test "x$ac_cv_lib_truerand_main" = xyes; then :
19154 cat >>confdefs.h <<_ACEOF
19155 #define HAVE_LIBTRUERAND 1
19158 LIBS="-ltruerand $LIBS"
19162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing modf" >&5
19163 $as_echo_n "checking for library containing modf... " >&6; }
19164 if ${ac_cv_search_modf+:} false; then :
19165 $as_echo_n "(cached) " >&6
19167 ac_func_search_save_LIBS=$LIBS
19168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19169 /* end confdefs.h. */
19171 /* Override any GCC internal prototype to avoid an error.
19172 Use char because int might match the return type of a GCC
19173 builtin and then its argument prototype would still apply. */
19186 for ac_lib in '' m; do
19187 if test -z "$ac_lib"; then
19188 ac_res="none required"
19191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19193 if ac_fn_c_try_link "$LINENO"; then :
19194 ac_cv_search_modf=$ac_res
19196 rm -f core conftest.err conftest.$ac_objext \
19198 if ${ac_cv_search_modf+:} false; then :
19202 if ${ac_cv_search_modf+:} false; then :
19205 ac_cv_search_modf=no
19207 rm conftest.$ac_ext
19208 LIBS=$ac_func_search_save_LIBS
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_modf" >&5
19211 $as_echo "$ac_cv_search_modf" >&6; }
19212 ac_res=$ac_cv_search_modf
19213 if test "$ac_res" != no; then :
19214 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19221 echo "${nl}Checking for Threads..."
19223 if test -z "$enable_threads"; then
19224 # Check whether --enable-threads was given.
19225 if test "${enable_threads+set}" = set; then :
19226 enableval=$enable_threads; enable_threads=$enableval
19229 if test "$GCC" = "yes"; then
19230 SAVE_FL="$CPPFLAGS"
19231 CPPFLAGS="$CPPFLAGS -w"
19232 for ac_header in pthread.h
19234 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19235 if test "x$ac_cv_header_pthread_h" = xyes; then :
19236 cat >>confdefs.h <<_ACEOF
19237 #define HAVE_PTHREAD_H 1
19239 enable_threads="pthread"
19241 enable_threads="no"
19246 CPPFLAGS="$SAVE_FL"
19248 for ac_header in pthread.h
19250 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19251 if test "x$ac_cv_header_pthread_h" = xyes; then :
19252 cat >>confdefs.h <<_ACEOF
19253 #define HAVE_PTHREAD_H 1
19255 enable_threads="pthread"
19257 enable_threads="no"
19268 if test "$enable_threads" = "no"; then
19273 if test "$enable_threads" = "pthread"; then
19274 # We have specified pthreads for our threading library, just make sure
19275 # that we have everything we need
19277 apr_pthsv_CFLAGS="$CFLAGS"
19278 apr_pthsv_LIBS="$LIBS"
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
19283 $as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
19284 if ${apr_cv_pthreads_cflags+:} false; then :
19285 $as_echo_n "(cached) " >&6
19287 apr_ptc_cflags=$CFLAGS
19288 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
19289 CFLAGS=$apr_ptc_cflags
19290 test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
19292 if test "$cross_compiling" = yes; then :
19295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19296 /* end confdefs.h. */
19298 #include <pthread.h>
19299 #include <stddef.h>
19301 void *thread_routine(void *data) {
19307 pthread_mutexattr_t mattr;
19308 pthread_once_t once_init = PTHREAD_ONCE_INIT;
19310 pthread_mutexattr_init(&mattr);
19311 return pthread_create(&thd, NULL, thread_routine, &data);
19314 if ac_fn_c_try_run "$LINENO"; then :
19319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19320 conftest.$ac_objext conftest.beam conftest.$ac_ext
19324 if test $apr_p_t_r = yes; then
19326 apr_cv_pthreads_cflags="$flag"
19333 CFLAGS=$apr_ptc_cflags
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
19337 $as_echo "$apr_cv_pthreads_cflags" >&6; }
19339 if test -n "$apr_cv_pthreads_cflags"; then
19340 pthreads_working=yes
19341 if test "x$apr_cv_pthreads_cflags" != "xnone"; then
19343 if test "x$CFLAGS" = "x"; then
19344 test "x$silent" != "xyes" && echo " setting CFLAGS to \"$apr_cv_pthreads_cflags\""
19345 CFLAGS="$apr_cv_pthreads_cflags"
19347 apr_addto_bugger="$apr_cv_pthreads_cflags"
19348 for i in $apr_addto_bugger; do
19349 apr_addto_duplicate="0"
19350 for j in $CFLAGS; do
19351 if test "x$i" = "x$j"; then
19352 apr_addto_duplicate="1"
19356 if test $apr_addto_duplicate = "0"; then
19357 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
19358 CFLAGS="$CFLAGS $i"
19366 # The CFLAGS may or may not be sufficient to ensure that libapr
19367 # depends on the pthreads library: some versions of libtool
19368 # drop -pthread when passed on the link line; some versions of
19369 # gcc ignore -pthread when linking a shared object. So always
19370 # try and add the relevant library to LIBS too.
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
19373 $as_echo_n "checking for LIBS needed for pthreads... " >&6; }
19374 if ${apr_cv_pthreads_lib+:} false; then :
19375 $as_echo_n "(cached) " >&6
19379 for lib in -lpthread -lpthreads -lc_r; do
19380 LIBS="$apr_ptc_libs $lib"
19382 if test "$cross_compiling" = yes; then :
19385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19386 /* end confdefs.h. */
19388 #include <pthread.h>
19389 #include <stddef.h>
19391 void *thread_routine(void *data) {
19397 pthread_mutexattr_t mattr;
19398 pthread_once_t once_init = PTHREAD_ONCE_INIT;
19400 pthread_mutexattr_init(&mattr);
19401 return pthread_create(&thd, NULL, thread_routine, &data);
19404 if ac_fn_c_try_run "$LINENO"; then :
19409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19410 conftest.$ac_objext conftest.beam conftest.$ac_ext
19414 if test $apr_p_t_r = yes; then
19416 apr_cv_pthreads_lib=$lib
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
19427 $as_echo "$apr_cv_pthreads_lib" >&6; }
19429 if test -n "$apr_cv_pthreads_lib"; then
19430 pthreads_working=yes
19432 if test "x$LIBS" = "x"; then
19433 test "x$silent" != "xyes" && echo " setting LIBS to \"$apr_cv_pthreads_lib\""
19434 LIBS="$apr_cv_pthreads_lib"
19436 apr_addto_bugger="$apr_cv_pthreads_lib"
19437 for i in $apr_addto_bugger; do
19438 apr_addto_duplicate="0"
19440 if test "x$i" = "x$j"; then
19441 apr_addto_duplicate="1"
19445 if test $apr_addto_duplicate = "0"; then
19446 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
19454 if test "$pthreads_working" = "yes"; then
19455 threads_result="POSIX Threads found"
19457 threads_result="POSIX Threads not found"
19461 if test "$GCC" = "yes"; then
19462 SAVE_FL="$CPPFLAGS"
19463 CPPFLAGS="$CPPFLAGS -w"
19464 for ac_header in pthread.h
19466 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19467 if test "x$ac_cv_header_pthread_h" = xyes; then :
19468 cat >>confdefs.h <<_ACEOF
19469 #define HAVE_PTHREAD_H 1
19481 CFLAGS="$apr_pthsv_CFLAGS"
19482 LIBS="$apr_pthsv_LIBS"
19488 CPPFLAGS="$SAVE_FL"
19490 for ac_header in pthread.h
19492 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19493 if test "x$ac_cv_header_pthread_h" = xyes; then :
19494 cat >>confdefs.h <<_ACEOF
19495 #define HAVE_PTHREAD_H 1
19507 CFLAGS="$apr_pthsv_CFLAGS"
19508 LIBS="$apr_pthsv_LIBS"
19516 elif test "$enable_threads" = "system_threads"; then
19521 # We basically specified that we wanted threads, but not how to implement
19522 # them. In this case, just look for pthreads. In the future, we can check
19523 # for other threading libraries as well.
19525 apr_pthsv_CFLAGS="$CFLAGS"
19526 apr_pthsv_LIBS="$LIBS"
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
19531 $as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
19532 if ${apr_cv_pthreads_cflags+:} false; then :
19533 $as_echo_n "(cached) " >&6
19535 apr_ptc_cflags=$CFLAGS
19536 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
19537 CFLAGS=$apr_ptc_cflags
19538 test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
19540 if test "$cross_compiling" = yes; then :
19543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19544 /* end confdefs.h. */
19546 #include <pthread.h>
19547 #include <stddef.h>
19549 void *thread_routine(void *data) {
19555 pthread_mutexattr_t mattr;
19556 pthread_once_t once_init = PTHREAD_ONCE_INIT;
19558 pthread_mutexattr_init(&mattr);
19559 return pthread_create(&thd, NULL, thread_routine, &data);
19562 if ac_fn_c_try_run "$LINENO"; then :
19567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19568 conftest.$ac_objext conftest.beam conftest.$ac_ext
19572 if test $apr_p_t_r = yes; then
19574 apr_cv_pthreads_cflags="$flag"
19581 CFLAGS=$apr_ptc_cflags
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
19585 $as_echo "$apr_cv_pthreads_cflags" >&6; }
19587 if test -n "$apr_cv_pthreads_cflags"; then
19588 pthreads_working=yes
19589 if test "x$apr_cv_pthreads_cflags" != "xnone"; then
19591 if test "x$CFLAGS" = "x"; then
19592 test "x$silent" != "xyes" && echo " setting CFLAGS to \"$apr_cv_pthreads_cflags\""
19593 CFLAGS="$apr_cv_pthreads_cflags"
19595 apr_addto_bugger="$apr_cv_pthreads_cflags"
19596 for i in $apr_addto_bugger; do
19597 apr_addto_duplicate="0"
19598 for j in $CFLAGS; do
19599 if test "x$i" = "x$j"; then
19600 apr_addto_duplicate="1"
19604 if test $apr_addto_duplicate = "0"; then
19605 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
19606 CFLAGS="$CFLAGS $i"
19614 # The CFLAGS may or may not be sufficient to ensure that libapr
19615 # depends on the pthreads library: some versions of libtool
19616 # drop -pthread when passed on the link line; some versions of
19617 # gcc ignore -pthread when linking a shared object. So always
19618 # try and add the relevant library to LIBS too.
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
19621 $as_echo_n "checking for LIBS needed for pthreads... " >&6; }
19622 if ${apr_cv_pthreads_lib+:} false; then :
19623 $as_echo_n "(cached) " >&6
19627 for lib in -lpthread -lpthreads -lc_r; do
19628 LIBS="$apr_ptc_libs $lib"
19630 if test "$cross_compiling" = yes; then :
19633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19634 /* end confdefs.h. */
19636 #include <pthread.h>
19637 #include <stddef.h>
19639 void *thread_routine(void *data) {
19645 pthread_mutexattr_t mattr;
19646 pthread_once_t once_init = PTHREAD_ONCE_INIT;
19648 pthread_mutexattr_init(&mattr);
19649 return pthread_create(&thd, NULL, thread_routine, &data);
19652 if ac_fn_c_try_run "$LINENO"; then :
19657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19658 conftest.$ac_objext conftest.beam conftest.$ac_ext
19662 if test $apr_p_t_r = yes; then
19664 apr_cv_pthreads_lib=$lib
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
19675 $as_echo "$apr_cv_pthreads_lib" >&6; }
19677 if test -n "$apr_cv_pthreads_lib"; then
19678 pthreads_working=yes
19680 if test "x$LIBS" = "x"; then
19681 test "x$silent" != "xyes" && echo " setting LIBS to \"$apr_cv_pthreads_lib\""
19682 LIBS="$apr_cv_pthreads_lib"
19684 apr_addto_bugger="$apr_cv_pthreads_lib"
19685 for i in $apr_addto_bugger; do
19686 apr_addto_duplicate="0"
19688 if test "x$i" = "x$j"; then
19689 apr_addto_duplicate="1"
19693 if test $apr_addto_duplicate = "0"; then
19694 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
19702 if test "$pthreads_working" = "yes"; then
19703 threads_result="POSIX Threads found"
19705 threads_result="POSIX Threads not found"
19709 if test "$GCC" = "yes"; then
19710 SAVE_FL="$CPPFLAGS"
19711 CPPFLAGS="$CPPFLAGS -w"
19712 for ac_header in pthread.h
19714 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19715 if test "x$ac_cv_header_pthread_h" = xyes; then :
19716 cat >>confdefs.h <<_ACEOF
19717 #define HAVE_PTHREAD_H 1
19729 CFLAGS="$apr_pthsv_CFLAGS"
19730 LIBS="$apr_pthsv_LIBS"
19736 CPPFLAGS="$SAVE_FL"
19738 for ac_header in pthread.h
19740 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19741 if test "x$ac_cv_header_pthread_h" = xyes; then :
19742 cat >>confdefs.h <<_ACEOF
19743 #define HAVE_PTHREAD_H 1
19755 CFLAGS="$apr_pthsv_CFLAGS"
19756 LIBS="$apr_pthsv_LIBS"
19765 if test "$pthreadh" = "1"; then
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_getspecific takes two arguments" >&5
19768 $as_echo_n "checking whether pthread_getspecific takes two arguments... " >&6; }
19769 if ${ac_cv_pthread_getspecific_two_args+:} false; then :
19770 $as_echo_n "(cached) " >&6
19773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19774 /* end confdefs.h. */
19776 #include <pthread.h>
19784 pthread_getspecific(key,&tmp);
19790 if ac_fn_c_try_compile "$LINENO"; then :
19792 ac_cv_pthread_getspecific_two_args=yes
19796 ac_cv_pthread_getspecific_two_args=no
19799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_getspecific_two_args" >&5
19803 $as_echo "$ac_cv_pthread_getspecific_two_args" >&6; }
19805 if test "$ac_cv_pthread_getspecific_two_args" = "yes"; then
19807 $as_echo "#define PTHREAD_GETSPECIFIC_TAKES_TWO_ARGS 1" >>confdefs.h
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_attr_getdetachstate takes one argument" >&5
19813 $as_echo_n "checking whether pthread_attr_getdetachstate takes one argument... " >&6; }
19814 if ${ac_cv_pthread_attr_getdetachstate_one_arg+:} false; then :
19815 $as_echo_n "(cached) " >&6
19818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19819 /* end confdefs.h. */
19821 #include <pthread.h>
19827 pthread_attr_t *attr;
19828 pthread_attr_getdetachstate(attr);
19834 if ac_fn_c_try_compile "$LINENO"; then :
19836 ac_cv_pthread_attr_getdetachstate_one_arg=yes
19840 ac_cv_pthread_attr_getdetachstate_one_arg=no
19843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_attr_getdetachstate_one_arg" >&5
19847 $as_echo "$ac_cv_pthread_attr_getdetachstate_one_arg" >&6; }
19849 if test "$ac_cv_pthread_attr_getdetachstate_one_arg" = "yes"; then
19851 $as_echo "#define PTHREAD_ATTR_GETDETACHSTATE_TAKES_ONE_ARG 1" >>confdefs.h
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutex support" >&5
19857 $as_echo_n "checking for recursive mutex support... " >&6; }
19858 if ${apr_cv_mutex_recursive+:} false; then :
19859 $as_echo_n "(cached) " >&6
19861 if test "$cross_compiling" = yes; then :
19862 apr_cv_mutex_recursive=no
19864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19865 /* end confdefs.h. */
19866 #include <sys/types.h>
19867 #include <pthread.h>
19868 #include <stdlib.h>
19871 pthread_mutexattr_t attr;
19874 exit (pthread_mutexattr_init(&attr)
19875 || pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
19876 || pthread_mutex_init(&m, &attr));
19879 if ac_fn_c_try_run "$LINENO"; then :
19880 apr_cv_mutex_recursive=yes
19882 apr_cv_mutex_recursive=no
19884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19885 conftest.$ac_objext conftest.beam conftest.$ac_ext
19889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_recursive" >&5
19890 $as_echo "$apr_cv_mutex_recursive" >&6; }
19892 if test "$apr_cv_mutex_recursive" = "yes"; then
19894 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
19898 for ac_func in pthread_key_delete pthread_rwlock_init \
19899 pthread_attr_setguardsize pthread_yield
19901 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19902 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19903 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19904 cat >>confdefs.h <<_ACEOF
19905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19912 if test "$ac_cv_func_pthread_rwlock_init" = "yes"; then
19913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_t" >&5
19914 $as_echo_n "checking for pthread_rwlock_t... " >&6; }
19915 if ${apr_cv_type_rwlock_t+:} false; then :
19916 $as_echo_n "(cached) " >&6
19918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19919 /* end confdefs.h. */
19920 #include <sys/types.h>
19921 #include <pthread.h>
19925 pthread_rwlock_t *rwlock;
19930 if ac_fn_c_try_compile "$LINENO"; then :
19931 apr_cv_type_rwlock_t=yes
19933 apr_cv_type_rwlock_t=no
19935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_type_rwlock_t" >&5
19938 $as_echo "$apr_cv_type_rwlock_t" >&6; }
19939 if test "$apr_cv_type_rwlock_t" = "yes"; then
19941 $as_echo "#define HAVE_PTHREAD_RWLOCKS 1" >>confdefs.h
19946 if test "$ac_cv_func_pthread_yield" = "no"; then
19947 for ac_header in sched.h
19949 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19950 if test "x$ac_cv_header_sched_h" = xyes; then :
19951 cat >>confdefs.h <<_ACEOF
19952 #define HAVE_SCHED_H 1
19959 for ac_func in sched_yield
19961 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
19962 if test "x$ac_cv_func_sched_yield" = xyes; then :
19963 cat >>confdefs.h <<_ACEOF
19964 #define HAVE_SCHED_YIELD 1
19974 ac_cv_define_READDIR_IS_THREAD_SAFE=no
19975 ac_cv_define_GETHOSTBYNAME_IS_THREAD_SAFE=no
19976 ac_cv_define_GETHOSTBYADDR_IS_THREAD_SAFE=no
19977 ac_cv_define_GETSERVBYNAME_IS_THREAD_SAFE=no
19978 if test "$threads" = "1"; then
19979 echo "APR will use threads"
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readdir in -lc_r" >&5
19981 $as_echo_n "checking for readdir in -lc_r... " >&6; }
19982 if ${ac_cv_lib_c_r_readdir+:} false; then :
19983 $as_echo_n "(cached) " >&6
19985 ac_check_lib_save_LIBS=$LIBS
19987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19988 /* end confdefs.h. */
19990 /* Override any GCC internal prototype to avoid an error.
19991 Use char because int might match the return type of a GCC
19992 builtin and then its argument prototype would still apply. */
20005 if ac_fn_c_try_link "$LINENO"; then :
20006 ac_cv_lib_c_r_readdir=yes
20008 ac_cv_lib_c_r_readdir=no
20010 rm -f core conftest.err conftest.$ac_objext \
20011 conftest$ac_exeext conftest.$ac_ext
20012 LIBS=$ac_check_lib_save_LIBS
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_readdir" >&5
20015 $as_echo "$ac_cv_lib_c_r_readdir" >&6; }
20016 if test "x$ac_cv_lib_c_r_readdir" = xyes; then :
20018 $as_echo "#define READDIR_IS_THREAD_SAFE 1" >>confdefs.h
20022 if test "x$apr_gethostbyname_is_thread_safe" = "x"; then
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lc_r" >&5
20024 $as_echo_n "checking for gethostbyname in -lc_r... " >&6; }
20025 if ${ac_cv_lib_c_r_gethostbyname+:} false; then :
20026 $as_echo_n "(cached) " >&6
20028 ac_check_lib_save_LIBS=$LIBS
20030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20031 /* end confdefs.h. */
20033 /* Override any GCC internal prototype to avoid an error.
20034 Use char because int might match the return type of a GCC
20035 builtin and then its argument prototype would still apply. */
20039 char gethostbyname ();
20043 return gethostbyname ();
20048 if ac_fn_c_try_link "$LINENO"; then :
20049 ac_cv_lib_c_r_gethostbyname=yes
20051 ac_cv_lib_c_r_gethostbyname=no
20053 rm -f core conftest.err conftest.$ac_objext \
20054 conftest$ac_exeext conftest.$ac_ext
20055 LIBS=$ac_check_lib_save_LIBS
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyname" >&5
20058 $as_echo "$ac_cv_lib_c_r_gethostbyname" >&6; }
20059 if test "x$ac_cv_lib_c_r_gethostbyname" = xyes; then :
20060 apr_gethostbyname_is_thread_safe=yes
20064 if test "$apr_gethostbyname_is_thread_safe" = "yes"; then
20066 $as_echo "#define GETHOSTBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
20069 if test "x$apr_gethostbyaddr_is_thread_safe" = "x"; then
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lc_r" >&5
20071 $as_echo_n "checking for gethostbyaddr in -lc_r... " >&6; }
20072 if ${ac_cv_lib_c_r_gethostbyaddr+:} false; then :
20073 $as_echo_n "(cached) " >&6
20075 ac_check_lib_save_LIBS=$LIBS
20077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20078 /* end confdefs.h. */
20080 /* Override any GCC internal prototype to avoid an error.
20081 Use char because int might match the return type of a GCC
20082 builtin and then its argument prototype would still apply. */
20086 char gethostbyaddr ();
20090 return gethostbyaddr ();
20095 if ac_fn_c_try_link "$LINENO"; then :
20096 ac_cv_lib_c_r_gethostbyaddr=yes
20098 ac_cv_lib_c_r_gethostbyaddr=no
20100 rm -f core conftest.err conftest.$ac_objext \
20101 conftest$ac_exeext conftest.$ac_ext
20102 LIBS=$ac_check_lib_save_LIBS
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyaddr" >&5
20105 $as_echo "$ac_cv_lib_c_r_gethostbyaddr" >&6; }
20106 if test "x$ac_cv_lib_c_r_gethostbyaddr" = xyes; then :
20107 apr_gethostbyaddr_is_thread_safe=yes
20111 if test "$apr_gethostbyaddr_is_thread_safe" = "yes"; then
20113 $as_echo "#define GETHOSTBYADDR_IS_THREAD_SAFE 1" >>confdefs.h
20116 if test "x$apr_getservbyname_is_thread_safe" = "x"; then
20117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in -lc_r" >&5
20118 $as_echo_n "checking for getservbyname in -lc_r... " >&6; }
20119 if ${ac_cv_lib_c_r_getservbyname+:} false; then :
20120 $as_echo_n "(cached) " >&6
20122 ac_check_lib_save_LIBS=$LIBS
20124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20125 /* end confdefs.h. */
20127 /* Override any GCC internal prototype to avoid an error.
20128 Use char because int might match the return type of a GCC
20129 builtin and then its argument prototype would still apply. */
20133 char getservbyname ();
20137 return getservbyname ();
20142 if ac_fn_c_try_link "$LINENO"; then :
20143 ac_cv_lib_c_r_getservbyname=yes
20145 ac_cv_lib_c_r_getservbyname=no
20147 rm -f core conftest.err conftest.$ac_objext \
20148 conftest$ac_exeext conftest.$ac_ext
20149 LIBS=$ac_check_lib_save_LIBS
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_getservbyname" >&5
20152 $as_echo "$ac_cv_lib_c_r_getservbyname" >&6; }
20153 if test "x$ac_cv_lib_c_r_getservbyname" = xyes; then :
20154 apr_getservbyname_is_thread_safe=yes
20158 if test "$apr_getservbyname_is_thread_safe" = "yes"; then
20160 $as_echo "#define GETSERVBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
20163 for ac_func in gethostbyname_r gethostbyaddr_r getservbyname_r
20165 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20166 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20167 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20168 cat >>confdefs.h <<_ACEOF
20169 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20176 echo "APR will be non-threaded"
20180 # Check whether --with-efence was given.
20181 if test "${with_efence+set}" = set; then :
20182 withval=$with_efence; apr_efence_dir="$withval"
20183 if test "$apr_efence_dir" != "yes"; then
20185 if test "x$LDFLAGS" = "x"; then
20186 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L$apr_efence_dir/lib\""
20187 LDFLAGS="-L$apr_efence_dir/lib"
20189 apr_addto_bugger="-L$apr_efence_dir/lib"
20190 for i in $apr_addto_bugger; do
20191 apr_addto_duplicate="0"
20192 for j in $LDFLAGS; do
20193 if test "x$i" = "x$j"; then
20194 apr_addto_duplicate="1"
20198 if test $apr_addto_duplicate = "0"; then
20199 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
20200 LDFLAGS="$LDFLAGS $i"
20205 if test "x$apr_platform_runtime_link_flag" != "x"; then
20207 if test "x$LDFLAGS" = "x"; then
20208 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$apr_platform_runtime_link_flag$apr_efence_dir/lib\""
20209 LDFLAGS="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
20211 apr_addto_bugger="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
20212 for i in $apr_addto_bugger; do
20213 apr_addto_duplicate="0"
20214 for j in $LDFLAGS; do
20215 if test "x$i" = "x$j"; then
20216 apr_addto_duplicate="1"
20220 if test $apr_addto_duplicate = "0"; then
20221 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
20222 LDFLAGS="$LDFLAGS $i"
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5
20230 $as_echo_n "checking for malloc in -lefence... " >&6; }
20231 if ${ac_cv_lib_efence_malloc+:} false; then :
20232 $as_echo_n "(cached) " >&6
20234 ac_check_lib_save_LIBS=$LIBS
20235 LIBS="-lefence $LIBS"
20236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20237 /* end confdefs.h. */
20239 /* Override any GCC internal prototype to avoid an error.
20240 Use char because int might match the return type of a GCC
20241 builtin and then its argument prototype would still apply. */
20254 if ac_fn_c_try_link "$LINENO"; then :
20255 ac_cv_lib_efence_malloc=yes
20257 ac_cv_lib_efence_malloc=no
20259 rm -f core conftest.err conftest.$ac_objext \
20260 conftest$ac_exeext conftest.$ac_ext
20261 LIBS=$ac_check_lib_save_LIBS
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5
20264 $as_echo "$ac_cv_lib_efence_malloc" >&6; }
20265 if test "x$ac_cv_lib_efence_malloc" = xyes; then :
20267 if test "x$LIBS" = "x"; then
20268 test "x$silent" != "xyes" && echo " setting LIBS to \"-lefence\""
20271 apr_addto_bugger="-lefence"
20272 for i in $apr_addto_bugger; do
20273 apr_addto_duplicate="0"
20275 if test "x$i" = "x$j"; then
20276 apr_addto_duplicate="1"
20280 if test $apr_addto_duplicate = "0"; then
20281 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
20288 as_fn_error $? "Electric Fence requested but not detected" "$LINENO" 5
20295 for ac_func in sigsuspend
20297 ac_fn_c_check_func "$LINENO" "sigsuspend" "ac_cv_func_sigsuspend"
20298 if test "x$ac_cv_func_sigsuspend" = xyes; then :
20299 cat >>confdefs.h <<_ACEOF
20300 #define HAVE_SIGSUSPEND 1
20302 have_sigsuspend="1"
20304 have_sigsuspend="0"
20308 for ac_func in sigwait
20310 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
20311 if test "x$ac_cv_func_sigwait" = xyes; then :
20312 cat >>confdefs.h <<_ACEOF
20313 #define HAVE_SIGWAIT 1
20331 for ac_func in poll kqueue port_create
20333 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20334 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20335 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20336 cat >>confdefs.h <<_ACEOF
20337 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20344 # Check for the Linux epoll interface; epoll* may be available in libc
20345 # but return ENOSYS on a pre-2.6 kernel, so do a run-time check.
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support" >&5
20347 $as_echo_n "checking for epoll support... " >&6; }
20348 if ${apr_cv_epoll+:} false; then :
20349 $as_echo_n "(cached) " >&6
20351 if test "$cross_compiling" = yes; then :
20354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20355 /* end confdefs.h. */
20357 #include <sys/epoll.h>
20358 #include <unistd.h>
20362 return epoll_create(5) == -1;
20365 if ac_fn_c_try_run "$LINENO"; then :
20370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20371 conftest.$ac_objext conftest.beam conftest.$ac_ext
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll" >&5
20376 $as_echo "$apr_cv_epoll" >&6; }
20378 if test "$apr_cv_epoll" = "yes"; then
20380 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
20384 # test for epoll_create1
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
20386 $as_echo_n "checking for epoll_create1 support... " >&6; }
20387 if ${apr_cv_epoll_create1+:} false; then :
20388 $as_echo_n "(cached) " >&6
20390 if test "$cross_compiling" = yes; then :
20391 apr_cv_epoll_create1=no
20393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20394 /* end confdefs.h. */
20396 #include <sys/epoll.h>
20397 #include <unistd.h>
20401 return epoll_create1(0) == -1;
20404 if ac_fn_c_try_run "$LINENO"; then :
20405 apr_cv_epoll_create1=yes
20407 apr_cv_epoll_create1=no
20409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20410 conftest.$ac_objext conftest.beam conftest.$ac_ext
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
20415 $as_echo "$apr_cv_epoll_create1" >&6; }
20417 if test "$apr_cv_epoll_create1" = "yes"; then
20419 $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
20425 $as_echo_n "checking for dup3 support... " >&6; }
20426 if ${apr_cv_dup3+:} false; then :
20427 $as_echo_n "(cached) " >&6
20429 if test "$cross_compiling" = yes; then :
20432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20433 /* end confdefs.h. */
20435 #include <unistd.h>
20439 return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
20442 if ac_fn_c_try_run "$LINENO"; then :
20447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20448 conftest.$ac_objext conftest.beam conftest.$ac_ext
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
20453 $as_echo "$apr_cv_dup3" >&6; }
20455 if test "$apr_cv_dup3" = "yes"; then
20457 $as_echo "#define HAVE_DUP3 1" >>confdefs.h
20461 # Test for accept4(). Create a non-blocking socket, bind it to
20462 # an unspecified port & address (kernel picks), and attempt to
20463 # call accept4() on it. If the syscall is wired up (i.e. the
20464 # kernel is new enough), it should return EAGAIN.
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
20466 $as_echo_n "checking for accept4 support... " >&6; }
20467 if ${apr_cv_accept4+:} false; then :
20468 $as_echo_n "(cached) " >&6
20470 if test "$cross_compiling" = yes; then :
20473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20474 /* end confdefs.h. */
20476 #include <sys/types.h>
20477 #include <sys/socket.h>
20478 #include <sys/wait.h>
20479 #include <netinet/in.h>
20480 #include <netinet/tcp.h>
20482 #include <string.h>
20483 #include <unistd.h>
20486 int main(int argc, char **argv)
20489 struct sockaddr_in sin;
20491 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) == -1)
20493 flags = fcntl(fd, F_GETFL);
20494 if (flags == -1 || fcntl(fd, F_SETFL, flags|O_NONBLOCK) == -1)
20497 memset(&sin, 0, sizeof sin);
20498 sin.sin_family = AF_INET;
20500 if (bind(fd, (struct sockaddr *) &sin, sizeof sin) == -1)
20503 if (listen(fd, 5) == -1)
20506 if (accept4(fd, NULL, 0, SOCK_NONBLOCK) == 0
20507 || errno == EAGAIN || errno == EWOULDBLOCK)
20513 if ac_fn_c_try_run "$LINENO"; then :
20518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20519 conftest.$ac_objext conftest.beam conftest.$ac_ext
20523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
20524 $as_echo "$apr_cv_accept4" >&6; }
20526 if test "$apr_cv_accept4" = "yes"; then
20528 $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
20533 $as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
20534 if ${apr_cv_sock_cloexec+:} false; then :
20535 $as_echo_n "(cached) " >&6
20537 if test "$cross_compiling" = yes; then :
20538 apr_cv_sock_cloexec=no
20540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20541 /* end confdefs.h. */
20543 #include <sys/types.h>
20544 #include <sys/socket.h>
20548 return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
20551 if ac_fn_c_try_run "$LINENO"; then :
20552 apr_cv_sock_cloexec=yes
20554 apr_cv_sock_cloexec=no
20556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20557 conftest.$ac_objext conftest.beam conftest.$ac_ext
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
20562 $as_echo "$apr_cv_sock_cloexec" >&6; }
20564 if test "$apr_cv_sock_cloexec" = "yes"; then
20566 $as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
20570 for ac_func in fdatasync
20572 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
20573 if test "x$ac_cv_func_fdatasync" = xyes; then :
20574 cat >>confdefs.h <<_ACEOF
20575 #define HAVE_FDATASYNC 1
20582 # test for epoll_create1
20583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
20584 $as_echo_n "checking for epoll_create1 support... " >&6; }
20585 if ${apr_cv_epoll_create1+:} false; then :
20586 $as_echo_n "(cached) " >&6
20588 if test "$cross_compiling" = yes; then :
20589 apr_cv_epoll_create1=no
20591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20592 /* end confdefs.h. */
20594 #include <sys/epoll.h>
20595 #include <unistd.h>
20599 return epoll_create1(0) == -1;
20602 if ac_fn_c_try_run "$LINENO"; then :
20603 apr_cv_epoll_create1=yes
20605 apr_cv_epoll_create1=no
20607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20608 conftest.$ac_objext conftest.beam conftest.$ac_ext
20612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
20613 $as_echo "$apr_cv_epoll_create1" >&6; }
20615 if test "$apr_cv_epoll_create1" = "yes"; then
20617 $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
20621 # Check for z/OS async i/o support.
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asio -> message queue support" >&5
20623 $as_echo_n "checking for asio -> message queue support... " >&6; }
20624 if ${apr_cv_aio_msgq+:} false; then :
20625 $as_echo_n "(cached) " >&6
20627 if test "$cross_compiling" = yes; then :
20630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20631 /* end confdefs.h. */
20640 a.aio_notifytype = AIO_MSGQ; /* use IPC message queue for notification */
20642 return aio_cancel(2, NULL) == -1;
20645 if ac_fn_c_try_run "$LINENO"; then :
20646 apr_cv_aio_msgq=yes
20650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20651 conftest.$ac_objext conftest.beam conftest.$ac_ext
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_aio_msgq" >&5
20656 $as_echo "$apr_cv_aio_msgq" >&6; }
20658 if test "$apr_cv_aio_msgq" = "yes"; then
20660 $as_echo "#define HAVE_AIO_MSGQ 1" >>confdefs.h
20665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
20666 $as_echo_n "checking for dup3 support... " >&6; }
20667 if ${apr_cv_dup3+:} false; then :
20668 $as_echo_n "(cached) " >&6
20670 if test "$cross_compiling" = yes; then :
20673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20674 /* end confdefs.h. */
20676 #include <unistd.h>
20680 return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
20683 if ac_fn_c_try_run "$LINENO"; then :
20688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20689 conftest.$ac_objext conftest.beam conftest.$ac_ext
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
20694 $as_echo "$apr_cv_dup3" >&6; }
20696 if test "$apr_cv_dup3" = "yes"; then
20698 $as_echo "#define HAVE_DUP3 1" >>confdefs.h
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
20704 $as_echo_n "checking for accept4 support... " >&6; }
20705 if ${apr_cv_accept4+:} false; then :
20706 $as_echo_n "(cached) " >&6
20708 if test "$cross_compiling" = yes; then :
20711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20712 /* end confdefs.h. */
20714 #include <unistd.h>
20715 #include <sys/types.h>
20716 #include <sys/socket.h>
20717 #include <sys/un.h>
20718 #include <sys/wait.h>
20719 #include <signal.h>
20722 #define A4_SOCK "./apr_accept4_test_socket"
20728 struct sockaddr_un loc, rem;
20731 if ((pid = fork())) {
20736 if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
20737 goto cleanup_failure2;
20739 loc.sun_family = AF_UNIX;
20740 strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
20742 if (bind(fd, (struct sockaddr *) &loc,
20743 sizeof(struct sockaddr_un)) == -1)
20744 goto cleanup_failure;
20746 if (listen(fd, 5) == -1)
20747 goto cleanup_failure;
20749 rem_sz = sizeof(struct sockaddr_un);
20750 if (accept4(fd, (struct sockaddr *) &rem, &rem_sz, 0) == -1) {
20751 goto cleanup_failure;
20755 waitpid(pid, &status, 0);
20763 kill(pid, SIGKILL);
20764 waitpid(pid, &status, 0);
20769 if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
20770 return 1; /* this will be bad: we'll hang */
20772 loc.sun_family = AF_UNIX;
20773 strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
20775 while(connect(fd, (struct sockaddr *) &loc,
20776 sizeof(struct sockaddr_un)) == -1 &&
20777 (errno==ENOENT || errno==ECONNREFUSED))
20785 if ac_fn_c_try_run "$LINENO"; then :
20790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20791 conftest.$ac_objext conftest.beam conftest.$ac_ext
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
20796 $as_echo "$apr_cv_accept4" >&6; }
20798 if test "$apr_cv_accept4" = "yes"; then
20800 $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
20804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
20805 $as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
20806 if ${apr_cv_sock_cloexec+:} false; then :
20807 $as_echo_n "(cached) " >&6
20809 if test "$cross_compiling" = yes; then :
20810 apr_cv_sock_cloexec=no
20812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20813 /* end confdefs.h. */
20815 #include <sys/types.h>
20816 #include <sys/socket.h>
20820 return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
20823 if ac_fn_c_try_run "$LINENO"; then :
20824 apr_cv_sock_cloexec=yes
20826 apr_cv_sock_cloexec=no
20828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20829 conftest.$ac_objext conftest.beam conftest.$ac_ext
20833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
20834 $as_echo "$apr_cv_sock_cloexec" >&6; }
20836 if test "$apr_cv_sock_cloexec" = "yes"; then
20838 $as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
20842 for ac_func in getpwnam_r getpwuid_r getgrnam_r getgrgid_r
20844 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20845 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20846 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20847 cat >>confdefs.h <<_ACEOF
20848 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20855 echo "${nl}Checking for Shared Memory Support..."
20857 # The real-time POSIX extensions (e.g. shm_*, sem_*) may only
20858 # be available if linking against librt.
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
20860 $as_echo_n "checking for library containing shm_open... " >&6; }
20861 if ${ac_cv_search_shm_open+:} false; then :
20862 $as_echo_n "(cached) " >&6
20864 ac_func_search_save_LIBS=$LIBS
20865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20866 /* end confdefs.h. */
20868 /* Override any GCC internal prototype to avoid an error.
20869 Use char because int might match the return type of a GCC
20870 builtin and then its argument prototype would still apply. */
20878 return shm_open ();
20883 for ac_lib in '' rt; do
20884 if test -z "$ac_lib"; then
20885 ac_res="none required"
20888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20890 if ac_fn_c_try_link "$LINENO"; then :
20891 ac_cv_search_shm_open=$ac_res
20893 rm -f core conftest.err conftest.$ac_objext \
20895 if ${ac_cv_search_shm_open+:} false; then :
20899 if ${ac_cv_search_shm_open+:} false; then :
20902 ac_cv_search_shm_open=no
20904 rm conftest.$ac_ext
20905 LIBS=$ac_func_search_save_LIBS
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
20908 $as_echo "$ac_cv_search_shm_open" >&6; }
20909 ac_res=$ac_cv_search_shm_open
20910 if test "$ac_res" != no; then :
20911 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20918 ac_includes_default="$ac_includes_default
20919 #if HAVE_SYS_MUTEX_H /* needed to define lock_t for sys/shm.h */
20920 # include <sys/mutex.h>
20924 for 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
20926 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20927 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20928 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20929 cat >>confdefs.h <<_ACEOF
20930 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20937 for ac_func in mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \
20940 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20941 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20942 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20943 cat >>confdefs.h <<_ACEOF
20944 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON in sys/mman.h" >&5
20953 $as_echo_n "checking for MAP_ANON in sys/mman.h... " >&6; }
20954 if ${ac_cv_define_MAP_ANON+:} false; then :
20955 $as_echo_n "(cached) " >&6
20958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20959 /* end confdefs.h. */
20961 #include <sys/mman.h>
20967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20968 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
20969 ac_cv_define_MAP_ANON=yes
20971 ac_cv_define_MAP_ANON=no
20977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_MAP_ANON" >&5
20978 $as_echo "$ac_cv_define_MAP_ANON" >&6; }
20979 if test "$ac_cv_define_MAP_ANON" = "yes"; then
20981 $as_echo "#define HAVE_MAP_ANON 1" >>confdefs.h
20985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
20986 $as_echo_n "checking for /dev/zero... " >&6; }
20987 if ${ac_cv_file__dev_zero+:} false; then :
20988 $as_echo_n "(cached) " >&6
20990 test "$cross_compiling" = yes &&
20991 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20992 if test -r "/dev/zero"; then
20993 ac_cv_file__dev_zero=yes
20995 ac_cv_file__dev_zero=no
20998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
20999 $as_echo "$ac_cv_file__dev_zero" >&6; }
21000 if test "x$ac_cv_file__dev_zero" = xyes; then :
21005 # Not all systems can mmap /dev/zero (such as HP-UX). Check for that.
21006 if test "$ac_cv_func_mmap" = "yes" &&
21007 test "$ac_cv_file__dev_zero" = "yes"; then
21008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap that can map /dev/zero" >&5
21009 $as_echo_n "checking for mmap that can map /dev/zero... " >&6; }
21010 if test "$cross_compiling" = yes; then :
21011 ac_cv_file__dev_zero=no
21013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21014 /* end confdefs.h. */
21016 #include <sys/types.h>
21017 #include <sys/stat.h>
21019 #ifdef HAVE_SYS_MMAN_H
21020 #include <sys/mman.h>
21026 fd = open("/dev/zero", O_RDWR);
21030 m = mmap(0, sizeof(void*), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
21031 if (m == (void *)-1) { /* aka MAP_FAILED */
21034 if (munmap(m, sizeof(void*)) < 0) {
21040 if ac_fn_c_try_run "$LINENO"; then :
21043 ac_cv_file__dev_zero=no
21045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21046 conftest.$ac_objext conftest.beam conftest.$ac_ext
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
21051 $as_echo "$ac_cv_file__dev_zero" >&6; }
21054 # Now we determine which one is our anonymous shmem preference.
21058 ac_decision_item='anonymous shared memory allocation method'
21059 ac_decision_msg='FAILED'
21063 for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h func:shmget func:shmat func:shmdt func:shmctl; do
21064 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21065 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21068 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21069 ac_var="ac_cv_header_$ac_item"
21072 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21073 ac_var="ac_cv_file_$ac_item"
21075 func ) ac_var="ac_cv_func_$ac_item" ;;
21076 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21077 define ) ac_var="ac_cv_define_$ac_item" ;;
21078 custom ) ac_var="$ac_item" ;;
21080 eval "ac_val=\$$ac_var"
21081 if test ".$ac_val" != .yes; then
21086 if test ".$ac_rc" = .yes; then
21090 ac_decision='USE_SHMEM_SHMGET_ANON'
21091 ac_decision_msg='SysV IPC shmget()'
21092 ac_decision_USE_SHMEM_SHMGET_ANON=yes
21093 ac_decision_USE_SHMEM_SHMGET_ANON_msg='SysV IPC shmget()'
21101 for ac_spec in header:sys/mman.h func:mmap func:munmap file:/dev/zero; do
21102 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21103 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21106 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21107 ac_var="ac_cv_header_$ac_item"
21110 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21111 ac_var="ac_cv_file_$ac_item"
21113 func ) ac_var="ac_cv_func_$ac_item" ;;
21114 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21115 define ) ac_var="ac_cv_define_$ac_item" ;;
21116 custom ) ac_var="$ac_item" ;;
21118 eval "ac_val=\$$ac_var"
21119 if test ".$ac_val" != .yes; then
21124 if test ".$ac_rc" = .yes; then
21128 ac_decision='USE_SHMEM_MMAP_ZERO'
21129 ac_decision_msg='SVR4-style mmap() on /dev/zero'
21130 ac_decision_USE_SHMEM_MMAP_ZERO=yes
21131 ac_decision_USE_SHMEM_MMAP_ZERO_msg='SVR4-style mmap() on /dev/zero'
21139 for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
21140 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21141 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21144 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21145 ac_var="ac_cv_header_$ac_item"
21148 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21149 ac_var="ac_cv_file_$ac_item"
21151 func ) ac_var="ac_cv_func_$ac_item" ;;
21152 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21153 define ) ac_var="ac_cv_define_$ac_item" ;;
21154 custom ) ac_var="$ac_item" ;;
21156 eval "ac_val=\$$ac_var"
21157 if test ".$ac_val" != .yes; then
21162 if test ".$ac_rc" = .yes; then
21166 ac_decision='USE_SHMEM_MMAP_ANON'
21167 ac_decision_msg='4.4BSD-style mmap() via MAP_ANON'
21168 ac_decision_USE_SHMEM_MMAP_ANON=yes
21169 ac_decision_USE_SHMEM_MMAP_ANON_msg='4.4BSD-style mmap() via MAP_ANON'
21177 for ac_spec in header:os2.h; do
21178 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21179 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21182 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21183 ac_var="ac_cv_header_$ac_item"
21186 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21187 ac_var="ac_cv_file_$ac_item"
21189 func ) ac_var="ac_cv_func_$ac_item" ;;
21190 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21191 define ) ac_var="ac_cv_define_$ac_item" ;;
21192 custom ) ac_var="$ac_item" ;;
21194 eval "ac_val=\$$ac_var"
21195 if test ".$ac_val" != .yes; then
21200 if test ".$ac_rc" = .yes; then
21204 ac_decision='USE_SHMEM_OS2_ANON'
21205 ac_decision_msg='OS/2 DosAllocSharedMem()'
21206 ac_decision_USE_SHMEM_OS2_ANON=yes
21207 ac_decision_USE_SHMEM_OS2_ANON_msg='OS/2 DosAllocSharedMem()'
21215 for ac_spec in header:kernel/OS.h func:create_area; do
21216 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21217 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21220 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21221 ac_var="ac_cv_header_$ac_item"
21224 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21225 ac_var="ac_cv_file_$ac_item"
21227 func ) ac_var="ac_cv_func_$ac_item" ;;
21228 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21229 define ) ac_var="ac_cv_define_$ac_item" ;;
21230 custom ) ac_var="$ac_item" ;;
21232 eval "ac_val=\$$ac_var"
21233 if test ".$ac_val" != .yes; then
21238 if test ".$ac_rc" = .yes; then
21242 ac_decision='USE_SHMEM_BEOS_ANON'
21243 ac_decision_msg='BeOS areas'
21244 ac_decision_USE_SHMEM_BEOS_ANON=yes
21245 ac_decision_USE_SHMEM_BEOS_ANON_msg='BeOS areas'
21253 for ac_spec in header:windows.h func:CreateFileMapping; do
21254 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21255 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21258 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21259 ac_var="ac_cv_header_$ac_item"
21262 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21263 ac_var="ac_cv_file_$ac_item"
21265 func ) ac_var="ac_cv_func_$ac_item" ;;
21266 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21267 define ) ac_var="ac_cv_define_$ac_item" ;;
21268 custom ) ac_var="$ac_item" ;;
21270 eval "ac_val=\$$ac_var"
21271 if test ".$ac_val" != .yes; then
21276 if test ".$ac_rc" = .yes; then
21280 ac_decision='USE_SHMEM_WIN32_ANON'
21281 ac_decision_msg='Windows CreateFileMapping()'
21282 ac_decision_USE_SHMEM_WIN32_ANON=yes
21283 ac_decision_USE_SHMEM_WIN32_ANON_msg='Windows CreateFileMapping()'
21292 # Linux has problems with MM_SHMT_MMANON even though it reports
21294 # FIXME - find exact 2.3 version that MMANON was fixed in. It is
21295 # confirmed fixed in 2.4 series.
21296 if test $os_pre24linux -eq 1; then
21297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling anon mmap() support for Linux pre-2.4" >&5
21298 $as_echo "$as_me: WARNING: Disabling anon mmap() support for Linux pre-2.4" >&2;}
21300 for ac_item in USE_SHMEM_MMAP_ZERO USE_SHMEM_SHMGET_ANON; do
21301 eval "ac_decision_this=\$ac_decision_${ac_item}"
21302 if test ".$ac_decision_this" = .yes; then
21303 ac_decision=$ac_item
21304 eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21312 for ac_item in USE_SHMEM_SHMGET_ANON; do
21313 eval "ac_decision_this=\$ac_decision_${ac_item}"
21314 if test ".$ac_decision_this" = .yes; then
21315 ac_decision=$ac_item
21316 eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21322 if test ".$ac_decision" = .; then
21323 echo "$0:Error: decision on $ac_decision_item failed" 1>&2
21326 if test ".$ac_decision_msg" = .; then
21327 ac_decision_msg="$ac_decision"
21329 cat >>confdefs.h <<_ACEOF
21330 #define ${ac_decision_item} 1
21333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
21334 $as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
21337 cat >>confdefs.h <<_ACEOF
21338 #define $ac_decision 1
21346 case $ac_decision in
21347 USE_SHMEM_SHMGET_ANON )
21350 USE_SHMEM_MMAP_ZERO )
21353 USE_SHMEM_MMAP_ANON )
21365 # Now we determine which one is our name-based shmem preference.
21372 ac_decision_item='namebased memory allocation method'
21373 ac_decision_msg='FAILED'
21377 for ac_spec in header:sys/mman.h func:mmap func:munmap; do
21378 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21379 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21382 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21383 ac_var="ac_cv_header_$ac_item"
21386 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21387 ac_var="ac_cv_file_$ac_item"
21389 func ) ac_var="ac_cv_func_$ac_item" ;;
21390 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21391 define ) ac_var="ac_cv_define_$ac_item" ;;
21392 custom ) ac_var="$ac_item" ;;
21394 eval "ac_val=\$$ac_var"
21395 if test ".$ac_val" != .yes; then
21400 if test ".$ac_rc" = .yes; then
21404 ac_decision='USE_SHMEM_MMAP_TMP'
21405 ac_decision_msg='Classical mmap() on temporary file'
21406 ac_decision_USE_SHMEM_MMAP_TMP=yes
21407 ac_decision_USE_SHMEM_MMAP_TMP_msg='Classical mmap() on temporary file'
21415 for ac_spec in header:sys/mman.h func:mmap func:munmap func:shm_open func:shm_unlink; do
21416 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21417 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21420 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21421 ac_var="ac_cv_header_$ac_item"
21424 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21425 ac_var="ac_cv_file_$ac_item"
21427 func ) ac_var="ac_cv_func_$ac_item" ;;
21428 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21429 define ) ac_var="ac_cv_define_$ac_item" ;;
21430 custom ) ac_var="$ac_item" ;;
21432 eval "ac_val=\$$ac_var"
21433 if test ".$ac_val" != .yes; then
21438 if test ".$ac_rc" = .yes; then
21442 ac_decision='USE_SHMEM_MMAP_SHM'
21443 ac_decision_msg='mmap() via POSIX.1 shm_open() on temporary file'
21444 ac_decision_USE_SHMEM_MMAP_SHM=yes
21445 ac_decision_USE_SHMEM_MMAP_SHM_msg='mmap() via POSIX.1 shm_open() on temporary file'
21453 for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h func:shmget func:shmat func:shmdt func:shmctl; do
21454 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21455 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21458 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21459 ac_var="ac_cv_header_$ac_item"
21462 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21463 ac_var="ac_cv_file_$ac_item"
21465 func ) ac_var="ac_cv_func_$ac_item" ;;
21466 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21467 define ) ac_var="ac_cv_define_$ac_item" ;;
21468 custom ) ac_var="$ac_item" ;;
21470 eval "ac_val=\$$ac_var"
21471 if test ".$ac_val" != .yes; then
21476 if test ".$ac_rc" = .yes; then
21480 ac_decision='USE_SHMEM_SHMGET'
21481 ac_decision_msg='SysV IPC shmget()'
21482 ac_decision_USE_SHMEM_SHMGET=yes
21483 ac_decision_USE_SHMEM_SHMGET_msg='SysV IPC shmget()'
21491 for ac_spec in header:kernel/OS.h func:create_area; do
21492 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21493 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21496 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21497 ac_var="ac_cv_header_$ac_item"
21500 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21501 ac_var="ac_cv_file_$ac_item"
21503 func ) ac_var="ac_cv_func_$ac_item" ;;
21504 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21505 define ) ac_var="ac_cv_define_$ac_item" ;;
21506 custom ) ac_var="$ac_item" ;;
21508 eval "ac_val=\$$ac_var"
21509 if test ".$ac_val" != .yes; then
21514 if test ".$ac_rc" = .yes; then
21518 ac_decision='USE_SHMEM_BEOS'
21519 ac_decision_msg='BeOS areas'
21520 ac_decision_USE_SHMEM_BEOS=yes
21521 ac_decision_USE_SHMEM_BEOS_msg='BeOS areas'
21529 for ac_spec in header:os2.h; do
21530 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21531 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21534 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21535 ac_var="ac_cv_header_$ac_item"
21538 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21539 ac_var="ac_cv_file_$ac_item"
21541 func ) ac_var="ac_cv_func_$ac_item" ;;
21542 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21543 define ) ac_var="ac_cv_define_$ac_item" ;;
21544 custom ) ac_var="$ac_item" ;;
21546 eval "ac_val=\$$ac_var"
21547 if test ".$ac_val" != .yes; then
21552 if test ".$ac_rc" = .yes; then
21556 ac_decision='USE_SHMEM_OS2'
21557 ac_decision_msg='OS/2 DosAllocSharedMem()'
21558 ac_decision_USE_SHMEM_OS2=yes
21559 ac_decision_USE_SHMEM_OS2_msg='OS/2 DosAllocSharedMem()'
21567 for ac_spec in header:windows.h; do
21568 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21569 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21572 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21573 ac_var="ac_cv_header_$ac_item"
21576 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21577 ac_var="ac_cv_file_$ac_item"
21579 func ) ac_var="ac_cv_func_$ac_item" ;;
21580 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21581 define ) ac_var="ac_cv_define_$ac_item" ;;
21582 custom ) ac_var="$ac_item" ;;
21584 eval "ac_val=\$$ac_var"
21585 if test ".$ac_val" != .yes; then
21590 if test ".$ac_rc" = .yes; then
21594 ac_decision='USE_SHMEM_WIN32'
21595 ac_decision_msg='Windows shared memory'
21596 ac_decision_USE_SHMEM_WIN32=yes
21597 ac_decision_USE_SHMEM_WIN32_msg='Windows shared memory'
21604 # Check whether --enable-posix-shm was given.
21605 if test "${enable_posix_shm+set}" = set; then :
21606 enableval=$enable_posix_shm;
21607 if test "$havemmapshm" = "1"; then
21609 for ac_item in USE_SHMEM_MMAP_SHM; do
21610 eval "ac_decision_this=\$ac_decision_${ac_item}"
21611 if test ".$ac_decision_this" = .yes; then
21612 ac_decision=$ac_item
21613 eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21623 # Linux pre-2.4 had problems with MM_SHMT_MMANON even though
21624 # it reports that it has it.
21625 if test $os_pre24linux -eq 1; then
21627 for ac_item in USE_SHMEM_MMAP_TMP USE_SHMEM_MMAP_SHM USE_SHMEM_SHMGET; do
21628 eval "ac_decision_this=\$ac_decision_${ac_item}"
21629 if test ".$ac_decision_this" = .yes; then
21630 ac_decision=$ac_item
21631 eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21638 if test ".$ac_decision" = .; then
21639 echo "$0:Error: decision on $ac_decision_item failed" 1>&2
21642 if test ".$ac_decision_msg" = .; then
21643 ac_decision_msg="$ac_decision"
21645 cat >>confdefs.h <<_ACEOF
21646 #define ${ac_decision_item} 1
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
21650 $as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
21653 cat >>confdefs.h <<_ACEOF
21654 #define $ac_decision 1
21665 case $ac_decision in
21666 USE_SHMEM_MMAP_TMP )
21669 USE_SHMEM_MMAP_SHM )
21686 # Do we have any shared memory support?
21687 if test "$usemmaptmp$usemmapshm$usemmapzero$useshmget$usemmapanon$usebeosarea$useos2shm$usewin32shm" = "00000000"; then
21708 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21709 if test "x$ac_cv_type_size_t" = xyes; then :
21713 cat >>confdefs.h <<_ACEOF
21714 #define size_t unsigned int
21719 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21720 # for constant arguments. Useless!
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21722 $as_echo_n "checking for working alloca.h... " >&6; }
21723 if ${ac_cv_working_alloca_h+:} false; then :
21724 $as_echo_n "(cached) " >&6
21726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21727 /* end confdefs.h. */
21728 #include <alloca.h>
21732 char *p = (char *) alloca (2 * sizeof (int));
21738 if ac_fn_c_try_link "$LINENO"; then :
21739 ac_cv_working_alloca_h=yes
21741 ac_cv_working_alloca_h=no
21743 rm -f core conftest.err conftest.$ac_objext \
21744 conftest$ac_exeext conftest.$ac_ext
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21747 $as_echo "$ac_cv_working_alloca_h" >&6; }
21748 if test $ac_cv_working_alloca_h = yes; then
21750 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21755 $as_echo_n "checking for alloca... " >&6; }
21756 if ${ac_cv_func_alloca_works+:} false; then :
21757 $as_echo_n "(cached) " >&6
21759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21760 /* end confdefs.h. */
21762 # define alloca __builtin_alloca
21765 # include <malloc.h>
21766 # define alloca _alloca
21768 # ifdef HAVE_ALLOCA_H
21769 # include <alloca.h>
21774 # ifndef alloca /* predefined by HP cc +Olibcalls */
21775 void *alloca (size_t);
21785 char *p = (char *) alloca (1);
21791 if ac_fn_c_try_link "$LINENO"; then :
21792 ac_cv_func_alloca_works=yes
21794 ac_cv_func_alloca_works=no
21796 rm -f core conftest.err conftest.$ac_objext \
21797 conftest$ac_exeext conftest.$ac_ext
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21800 $as_echo "$ac_cv_func_alloca_works" >&6; }
21802 if test $ac_cv_func_alloca_works = yes; then
21804 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21807 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21808 # that cause trouble. Some versions do not even contain alloca or
21809 # contain a buggy version. If you still want to use their alloca,
21810 # use ar to extract alloca.o from them instead of compiling alloca.c.
21812 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21814 $as_echo "#define C_ALLOCA 1" >>confdefs.h
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21818 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21819 if ${ac_cv_os_cray+:} false; then :
21820 $as_echo_n "(cached) " >&6
21822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21823 /* end confdefs.h. */
21824 #if defined CRAY && ! defined CRAY2
21831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21832 $EGREP "webecray" >/dev/null 2>&1; then :
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21841 $as_echo "$ac_cv_os_cray" >&6; }
21842 if test $ac_cv_os_cray = yes; then
21843 for ac_func in _getb67 GETB67 getb67; do
21844 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21845 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21846 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21848 cat >>confdefs.h <<_ACEOF
21849 #define CRAY_STACKSEG_END $ac_func
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21859 $as_echo_n "checking stack direction for C alloca... " >&6; }
21860 if ${ac_cv_c_stack_direction+:} false; then :
21861 $as_echo_n "(cached) " >&6
21863 if test "$cross_compiling" = yes; then :
21864 ac_cv_c_stack_direction=0
21866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21867 /* end confdefs.h. */
21868 $ac_includes_default
21870 find_stack_direction (int *addr, int depth)
21872 int dir, dummy = 0;
21875 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
21876 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
21877 return dir + dummy;
21881 main (int argc, char **argv)
21883 return find_stack_direction (0, argc + !argv + 20) < 0;
21886 if ac_fn_c_try_run "$LINENO"; then :
21887 ac_cv_c_stack_direction=1
21889 ac_cv_c_stack_direction=-1
21891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21892 conftest.$ac_objext conftest.beam conftest.$ac_ext
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21897 $as_echo "$ac_cv_c_stack_direction" >&6; }
21898 cat >>confdefs.h <<_ACEOF
21899 #define STACK_DIRECTION $ac_cv_c_stack_direction
21906 for ac_func in calloc setsid isinf isnan \
21907 getenv putenv setenv unsetenv \
21908 writev getifaddrs utime utimes
21910 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21911 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21912 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21913 cat >>confdefs.h <<_ACEOF
21914 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21920 for ac_func in setrlimit
21922 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
21923 if test "x$ac_cv_func_setrlimit" = xyes; then :
21924 cat >>confdefs.h <<_ACEOF
21925 #define HAVE_SETRLIMIT 1
21933 for ac_func in getrlimit
21935 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
21936 if test "x$ac_cv_func_getrlimit" = xyes; then :
21937 cat >>confdefs.h <<_ACEOF
21938 #define HAVE_GETRLIMIT 1
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfilev in -lsendfile" >&5
21948 $as_echo_n "checking for sendfilev in -lsendfile... " >&6; }
21949 if ${ac_cv_lib_sendfile_sendfilev+:} false; then :
21950 $as_echo_n "(cached) " >&6
21952 ac_check_lib_save_LIBS=$LIBS
21953 LIBS="-lsendfile $LIBS"
21954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21955 /* end confdefs.h. */
21957 /* Override any GCC internal prototype to avoid an error.
21958 Use char because int might match the return type of a GCC
21959 builtin and then its argument prototype would still apply. */
21967 return sendfilev ();
21972 if ac_fn_c_try_link "$LINENO"; then :
21973 ac_cv_lib_sendfile_sendfilev=yes
21975 ac_cv_lib_sendfile_sendfilev=no
21977 rm -f core conftest.err conftest.$ac_objext \
21978 conftest$ac_exeext conftest.$ac_ext
21979 LIBS=$ac_check_lib_save_LIBS
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfilev" >&5
21982 $as_echo "$ac_cv_lib_sendfile_sendfilev" >&6; }
21983 if test "x$ac_cv_lib_sendfile_sendfilev" = xyes; then :
21984 cat >>confdefs.h <<_ACEOF
21985 #define HAVE_LIBSENDFILE 1
21988 LIBS="-lsendfile $LIBS"
21992 for ac_func in sendfile send_file sendfilev
21994 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21995 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21996 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21997 cat >>confdefs.h <<_ACEOF
21998 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22007 # Check whether --with-sendfile was given.
22008 if test "${with_sendfile+set}" = set; then :
22009 withval=$with_sendfile; if test "$withval" = "yes"; then
22016 orig_sendfile=$sendfile
22019 # FreeBSD < 4.2 has issues with threads+sendfile
22020 if test $os_version -le "401999"; then
22021 if test "$threads" = "1"; then
22030 # disable sendfile support for 2.2 on S/390
22031 if test $os_pre24linux -eq 1; then
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabled sendfile support for Linux 2.2 on S/390" >&5
22033 $as_echo "$as_me: WARNING: Disabled sendfile support for Linux 2.2 on S/390" >&2;}
22038 # compiler-independent check for 64-bit build
22039 # The cast to long int works around a bug in the HP C Compiler
22040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22042 # This bug is HP SR number 8606223364.
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
22044 $as_echo_n "checking size of void*... " >&6; }
22045 if ${ac_cv_sizeof_voidp+:} false; then :
22046 $as_echo_n "(cached) " >&6
22048 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
22051 if test "$ac_cv_type_voidp" = yes; then
22052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22054 as_fn_error 77 "cannot compute sizeof (void*)
22055 See \`config.log' for more details" "$LINENO" 5; }
22057 ac_cv_sizeof_voidp=0
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
22063 $as_echo "$ac_cv_sizeof_voidp" >&6; }
22067 cat >>confdefs.h <<_ACEOF
22068 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
22072 if test "x$ac_cv_sizeof_voidp" = "x8"; then
22073 # sendfile not working for 64-bit build
22078 if test "$orig_sendfile" != "$sendfile"; then
22079 echo "sendfile support disabled to avoid system problem"
22085 for ac_func in sigaction
22087 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
22088 if test "x$ac_cv_func_sigaction" = xyes; then :
22089 cat >>confdefs.h <<_ACEOF
22090 #define HAVE_SIGACTION 1
22098 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
22099 /* NetBSD declares sys_siglist in unistd.h. */
22100 #ifdef HAVE_UNISTD_H
22101 # include <unistd.h>
22105 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
22111 cat >>confdefs.h <<_ACEOF
22112 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
22117 for ac_func in fork
22119 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
22120 if test "x$ac_cv_func_fork" = xyes; then :
22121 cat >>confdefs.h <<_ACEOF
22122 #define HAVE_FORK 1
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr" >&5
22132 $as_echo_n "checking for inet_addr... " >&6; }
22133 if ${ac_cv_func_inet_addr+:} false; then :
22134 $as_echo_n "(cached) " >&6
22137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22138 /* end confdefs.h. */
22140 #ifdef HAVE_SYS_TYPES_H
22141 #include <sys/types.h>
22143 #ifdef HAVE_ARPA_INET_H
22144 #include <arpa/inet.h>
22151 inet_addr("127.0.0.1");
22157 if ac_fn_c_try_compile "$LINENO"; then :
22159 ac_cv_func_inet_addr=yes
22163 ac_cv_func_inet_addr=no
22166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_addr" >&5
22170 $as_echo "$ac_cv_func_inet_addr" >&6; }
22172 if test "$ac_cv_func_inet_addr" = "yes"; then
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_network" >&5
22180 $as_echo_n "checking for inet_network... " >&6; }
22181 if ${ac_cv_func_inet_network+:} false; then :
22182 $as_echo_n "(cached) " >&6
22185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22186 /* end confdefs.h. */
22188 #ifdef HAVE_SYS_TYPES_H
22189 #include <sys/types.h>
22191 #ifdef HAVE_ARPA_INET_H
22192 #include <arpa/inet.h>
22199 inet_network("127.0.0.1");
22205 if ac_fn_c_try_compile "$LINENO"; then :
22207 ac_cv_func_inet_network=yes
22211 ac_cv_func_inet_network=no
22214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_network" >&5
22218 $as_echo "$ac_cv_func_inet_network" >&6; }
22220 if test "$ac_cv_func_inet_network" = "yes"; then
22221 have_inet_network=1
22223 have_inet_network=0
22227 ac_fn_c_check_func "$LINENO" "_getch" "ac_cv_func__getch"
22228 if test "x$ac_cv_func__getch" = xyes; then :
22232 for ac_func in strerror_r
22234 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
22235 if test "x$ac_cv_func_strerror_r" = xyes; then :
22236 cat >>confdefs.h <<_ACEOF
22237 #define HAVE_STRERROR_R 1
22245 if test "$strerror_r" = "1"; then
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of return code from strerror_r" >&5
22248 $as_echo_n "checking for type of return code from strerror_r... " >&6; }
22249 if test "$cross_compiling" = yes; then :
22251 ac_cv_strerror_r_rc_int=no
22253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22254 /* end confdefs.h. */
22257 #include <string.h>
22262 if (strerror_r(ERANGE, buf, sizeof buf) < 1) {
22270 if ac_fn_c_try_run "$LINENO"; then :
22272 ac_cv_strerror_r_rc_int=yes
22275 ac_cv_strerror_r_rc_int=no
22277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22278 conftest.$ac_objext conftest.beam conftest.$ac_ext
22281 if test "x$ac_cv_strerror_r_rc_int" = xyes; then
22283 $as_echo "#define STRERROR_R_RC_INT 1" >>confdefs.h
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
22290 $as_echo "$msg" >&6; }
22293 for ac_func in mmap
22295 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
22296 if test "x$ac_cv_func_mmap" = xyes; then :
22297 cat >>confdefs.h <<_ACEOF
22298 #define HAVE_MMAP 1
22306 if test "$native_mmap_emul" = "1"; then
22309 for ac_func in memmove
22311 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22312 if test "x$ac_cv_func_memmove" = xyes; then :
22313 cat >>confdefs.h <<_ACEOF
22314 #define HAVE_MEMMOVE 1
22322 for ac_func in getpass getpassphrase gmtime_r localtime_r
22324 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22325 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22326 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22327 cat >>confdefs.h <<_ACEOF
22328 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22338 for ac_func in mkstemp
22340 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
22341 if test "x$ac_cv_func_mkstemp" = xyes; then :
22342 cat >>confdefs.h <<_ACEOF
22343 #define HAVE_MKSTEMP 1
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sigwait takes one argument" >&5
22365 $as_echo_n "checking whether sigwait takes one argument... " >&6; }
22366 if ${ac_cv_sigwait_one_arg+:} false; then :
22367 $as_echo_n "(cached) " >&6
22370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22371 /* end confdefs.h. */
22373 #if defined(__NETBSD__) || defined(DARWIN)
22374 /* When using the unproven-pthreads package, we need to pull in this
22375 * header to get a prototype for sigwait(). Else things will fail later
22376 * on. XXX Should probably be fixed in the unproven-pthreads package.
22377 * Darwin is declaring sigwait() in the wrong place as well.
22379 #include <pthread.h>
22381 #include <signal.h>
22395 if ac_fn_c_try_compile "$LINENO"; then :
22397 ac_cv_sigwait_one_arg=yes
22401 ac_cv_sigwait_one_arg=no
22404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sigwait_one_arg" >&5
22407 $as_echo "$ac_cv_sigwait_one_arg" >&6; }
22408 if test "$ac_cv_sigwait_one_arg" = "yes"; then
22410 $as_echo "#define SIGWAIT_TAKES_ONE_ARG 1" >>confdefs.h
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22416 $as_echo_n "checking for ANSI C header files... " >&6; }
22417 if ${ac_cv_header_stdc+:} false; then :
22418 $as_echo_n "(cached) " >&6
22420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22421 /* end confdefs.h. */
22422 #include <stdlib.h>
22423 #include <stdarg.h>
22424 #include <string.h>
22435 if ac_fn_c_try_compile "$LINENO"; then :
22436 ac_cv_header_stdc=yes
22438 ac_cv_header_stdc=no
22440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22442 if test $ac_cv_header_stdc = yes; then
22443 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22445 /* end confdefs.h. */
22446 #include <string.h>
22449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22450 $EGREP "memchr" >/dev/null 2>&1; then :
22453 ac_cv_header_stdc=no
22459 if test $ac_cv_header_stdc = yes; then
22460 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22462 /* end confdefs.h. */
22463 #include <stdlib.h>
22466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22467 $EGREP "free" >/dev/null 2>&1; then :
22470 ac_cv_header_stdc=no
22476 if test $ac_cv_header_stdc = yes; then
22477 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22478 if test "$cross_compiling" = yes; then :
22481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22482 /* end confdefs.h. */
22484 #include <stdlib.h>
22485 #if ((' ' & 0x0FF) == 0x020)
22486 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22487 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22489 # define ISLOWER(c) \
22490 (('a' <= (c) && (c) <= 'i') \
22491 || ('j' <= (c) && (c) <= 'r') \
22492 || ('s' <= (c) && (c) <= 'z'))
22493 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22496 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22501 for (i = 0; i < 256; i++)
22502 if (XOR (islower (i), ISLOWER (i))
22503 || toupper (i) != TOUPPER (i))
22508 if ac_fn_c_try_run "$LINENO"; then :
22511 ac_cv_header_stdc=no
22513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22514 conftest.$ac_objext conftest.beam conftest.$ac_ext
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22520 $as_echo "$ac_cv_header_stdc" >&6; }
22521 if test $ac_cv_header_stdc = yes; then
22523 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
22529 for ac_header in ByteOrder.h \
22573 netinet/sctp_uio.h \
22595 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22596 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22597 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22598 cat >>confdefs.h <<_ACEOF
22599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22606 for aprt_i in ByteOrder.h \
22650 netinet/sctp_uio.h \
22672 ac_safe=`echo "$aprt_i" | sed 'y%./+-%__p_%'`
22673 aprt_2=`echo "$aprt_i" | sed -e 's%/%_%g' -e 's/\.//g' -e 's/-//g'`
22674 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22682 # IRIX 6.5 has a problem in <netinet/tcp.h> which prevents it from
22683 # being included by itself. Check for <netinet/tcp.h> manually,
22684 # including another header file first.
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netinet/tcp.h" >&5
22686 $as_echo_n "checking for netinet/tcp.h... " >&6; }
22687 if ${apr_cv_hdr_netinet_tcp_h+:} false; then :
22688 $as_echo_n "(cached) " >&6
22690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22691 /* end confdefs.h. */
22692 #ifdef HAVE_NETINET_IN_H
22693 #include <netinet/in.h>
22695 #include <netinet/tcp.h>
22698 if ac_fn_c_try_cpp "$LINENO"; then :
22699 apr_cv_hdr_netinet_tcp_h=yes
22701 apr_cv_hdr_netinet_tcp_h=no
22703 rm -f conftest.err conftest.i conftest.$ac_ext
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_hdr_netinet_tcp_h" >&5
22706 $as_echo "$apr_cv_hdr_netinet_tcp_h" >&6; }
22707 if test "$apr_cv_hdr_netinet_tcp_h" = "yes"; then
22710 $as_echo "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
22755 # Checking for h_errno in <netdb.h>
22756 if test "$netdbh" = "1"; then
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5
22759 $as_echo_n "checking for h_errno in netdb.h... " >&6; }
22760 if ${ac_cv_h_errno_cppflags+:} false; then :
22761 $as_echo_n "(cached) " >&6
22765 if test x != x; then
22766 CPPFLAGS="-D $CPPFLAGS"
22768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22769 /* end confdefs.h. */
22771 #ifdef HAVE_SYS_TYPES_H
22772 #include <sys/types.h>
22774 #ifdef HAVE_NETDB_H
22788 if ac_fn_c_try_compile "$LINENO"; then :
22790 if test x != x; then
22791 ac_cv_h_errno_cppflags=""
22793 ac_cv_h_errno_cppflags=yes
22798 ac_cv_h_errno_cppflags=no
22801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22802 if test "$ac_cv_h_errno_cppflags" = "no"; then
22803 ac_save="$CPPFLAGS"
22804 for flag in _XOPEN_SOURCE_EXTENDED; do
22806 if test x$flag != x; then
22807 CPPFLAGS="-D$flag $CPPFLAGS"
22809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22810 /* end confdefs.h. */
22812 #ifdef HAVE_SYS_TYPES_H
22813 #include <sys/types.h>
22815 #ifdef HAVE_NETDB_H
22829 if ac_fn_c_try_compile "$LINENO"; then :
22831 if test x$flag != x; then
22832 ac_cv_h_errno_cppflags="$flag"
22834 ac_cv_h_errno_cppflags=yes
22839 ac_cv_h_errno_cppflags=no
22842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22843 if test "$ac_cv_h_errno_cppflags" != "no"; then
22847 CPPFLAGS="$ac_save"
22852 if test "$ac_cv_h_errno_cppflags" != "no"; then
22853 if test "$ac_cv_h_errno_cppflags" != "yes"; then
22854 CPPFLAGS="-D$ac_cv_h_errno_cppflags $CPPFLAGS"
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -D$ac_cv_h_errno_cppflags" >&5
22856 $as_echo "yes, with -D$ac_cv_h_errno_cppflags" >&6; }
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
22859 $as_echo "$ac_cv_h_errno_cppflags" >&6; }
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
22863 $as_echo "$ac_cv_h_errno_cppflags" >&6; }
22866 if test "$ac_cv_h_errno_cflags" = "no"; then
22867 as_fn_error $? "can not find h_errno in netdb.h" "$LINENO" 5
22871 # Check whether --enable-allocator-uses-mmap was given.
22872 if test "${enable_allocator_uses_mmap+set}" = set; then :
22873 enableval=$enable_allocator_uses_mmap; if test "$enableval" = "yes"; then
22875 for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
22876 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
22877 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
22880 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22881 ac_var="ac_cv_header_$ac_item"
22884 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22885 ac_var="ac_cv_file_$ac_item"
22887 func ) ac_var="ac_cv_func_$ac_item" ;;
22888 struct ) ac_var="ac_cv_struct_$ac_item" ;;
22889 define ) ac_var="ac_cv_define_$ac_item" ;;
22890 custom ) ac_var="$ac_item" ;;
22892 eval "ac_val=\$$ac_var"
22893 if test ".$ac_val" != .yes; then
22898 if test ".$ac_rc" = .yes; then
22901 $as_echo "#define APR_ALLOCATOR_USES_MMAP 1" >>confdefs.h
22905 as_fn_error $? "mmap()/MAP_ANON not supported" "$LINENO" 5
22914 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22915 if test "x$ac_cv_type_off_t" = xyes; then :
22919 cat >>confdefs.h <<_ACEOF
22920 #define off_t long int
22925 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22926 if test "x$ac_cv_type_pid_t" = xyes; then :
22930 cat >>confdefs.h <<_ACEOF
22936 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22937 if test "x$ac_cv_type_size_t" = xyes; then :
22941 cat >>confdefs.h <<_ACEOF
22942 #define size_t unsigned int
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22948 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22949 if ${ac_cv_type_uid_t+:} false; then :
22950 $as_echo_n "(cached) " >&6
22952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22953 /* end confdefs.h. */
22954 #include <sys/types.h>
22957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22958 $EGREP "uid_t" >/dev/null 2>&1; then :
22959 ac_cv_type_uid_t=yes
22961 ac_cv_type_uid_t=no
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22967 $as_echo "$ac_cv_type_uid_t" >&6; }
22968 if test $ac_cv_type_uid_t = no; then
22970 $as_echo "#define uid_t int" >>confdefs.h
22973 $as_echo "#define gid_t int" >>confdefs.h
22977 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22978 if test "x$ac_cv_type_ssize_t" = xyes; then :
22982 cat >>confdefs.h <<_ACEOF
22983 #define ssize_t int
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22989 $as_echo_n "checking for inline... " >&6; }
22990 if ${ac_cv_c_inline+:} false; then :
22991 $as_echo_n "(cached) " >&6
22994 for ac_kw in inline __inline__ __inline; do
22995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22996 /* end confdefs.h. */
22997 #ifndef __cplusplus
22999 static $ac_kw foo_t static_foo () {return 0; }
23000 $ac_kw foo_t foo () {return 0; }
23004 if ac_fn_c_try_compile "$LINENO"; then :
23005 ac_cv_c_inline=$ac_kw
23007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23008 test "$ac_cv_c_inline" != no && break
23012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
23013 $as_echo "$ac_cv_c_inline" >&6; }
23015 case $ac_cv_c_inline in
23018 case $ac_cv_c_inline in
23020 *) ac_val=$ac_cv_c_inline;;
23022 cat >>confdefs.h <<_ACEOF
23023 #ifndef __cplusplus
23024 #define inline $ac_val
23030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23031 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23032 if ${ac_cv_c_const+:} false; then :
23033 $as_echo_n "(cached) " >&6
23035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23036 /* end confdefs.h. */
23042 #ifndef __cplusplus
23043 /* Ultrix mips cc rejects this sort of thing. */
23044 typedef int charset[2];
23045 const charset cs = { 0, 0 };
23046 /* SunOS 4.1.1 cc rejects this. */
23047 char const *const *pcpcc;
23049 /* NEC SVR4.0.2 mips cc rejects this. */
23050 struct point {int x, y;};
23051 static struct point const zero = {0,0};
23052 /* AIX XL C 1.02.0.0 rejects this.
23053 It does not let you subtract one const X* pointer from another in
23054 an arm of an if-expression whose if-part is not a constant
23056 const char *g = "string";
23057 pcpcc = &g + (g ? g-g : 0);
23058 /* HPUX 7.0 cc rejects these. */
23060 ppc = (char**) pcpcc;
23061 pcpcc = (char const *const *) ppc;
23062 { /* SCO 3.2v4 cc rejects this sort of thing. */
23065 char const *s = 0 ? (char *) 0 : (char const *) 0;
23070 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23071 int x[] = {25, 17};
23072 const int *foo = &x[0];
23075 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23076 typedef const int *iptr;
23080 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23081 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23082 struct s { int j; const int *ap[3]; } bx;
23083 struct s *b = &bx; b->j = 5;
23085 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23086 const int foo = 10;
23087 if (!foo) return 0;
23089 return !cs[0] && !zero.x;
23096 if ac_fn_c_try_compile "$LINENO"; then :
23101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23104 $as_echo "$ac_cv_c_const" >&6; }
23105 if test $ac_cv_c_const = no; then
23107 $as_echo "#define const /**/" >>confdefs.h
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
23112 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
23113 if ${ac_cv_func_setpgrp_void+:} false; then :
23114 $as_echo_n "(cached) " >&6
23116 if test "$cross_compiling" = yes; then :
23117 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
23119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23120 /* end confdefs.h. */
23121 $ac_includes_default
23125 /* If this system has a BSD-style setpgrp which takes arguments,
23126 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
23127 exit successfully. */
23128 return setpgrp (1,1) != -1;
23133 if ac_fn_c_try_run "$LINENO"; then :
23134 ac_cv_func_setpgrp_void=no
23136 ac_cv_func_setpgrp_void=yes
23138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23139 conftest.$ac_objext conftest.beam conftest.$ac_ext
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
23144 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
23145 if test $ac_cv_func_setpgrp_void = yes; then
23147 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
23153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
23154 $as_echo_n "checking for socklen_t... " >&6; }
23155 if ${ac_cv_socklen_t+:} false; then :
23156 $as_echo_n "(cached) " >&6
23159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23160 /* end confdefs.h. */
23162 #ifdef HAVE_SYS_TYPES_H
23163 #include <sys/types.h>
23165 #ifdef HAVE_SYS_SOCKET_H
23166 #include <sys/socket.h>
23173 socklen_t foo = (socklen_t) 0;
23179 if ac_fn_c_try_compile "$LINENO"; then :
23181 ac_cv_socklen_t=yes
23188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_socklen_t" >&5
23192 $as_echo "$ac_cv_socklen_t" >&6; }
23194 if test "$ac_cv_socklen_t" = "yes"; then
23196 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
23201 # The cast to long int works around a bug in the HP C Compiler
23202 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23203 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23204 # This bug is HP SR number 8606223364.
23205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
23206 $as_echo_n "checking size of void*... " >&6; }
23207 if ${ac_cv_sizeof_voidp+:} false; then :
23208 $as_echo_n "(cached) " >&6
23210 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
23213 if test "$ac_cv_type_voidp" = yes; then
23214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23216 as_fn_error 77 "cannot compute sizeof (void*)
23217 See \`config.log' for more details" "$LINENO" 5; }
23219 ac_cv_sizeof_voidp=0
23224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
23225 $as_echo "$ac_cv_sizeof_voidp" >&6; }
23229 cat >>confdefs.h <<_ACEOF
23230 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
23235 if test "x$ac_cv_sizeof_voidp" != "x"; then
23236 voidp_size=$ac_cv_sizeof_voidp
23238 as_fn_error $? "Cannot determine size of void*" "$LINENO" 5
23241 # The cast to long int works around a bug in the HP C Compiler
23242 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23243 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23244 # This bug is HP SR number 8606223364.
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
23246 $as_echo_n "checking size of char... " >&6; }
23247 if ${ac_cv_sizeof_char+:} false; then :
23248 $as_echo_n "(cached) " >&6
23250 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
23253 if test "$ac_cv_type_char" = yes; then
23254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23256 as_fn_error 77 "cannot compute sizeof (char)
23257 See \`config.log' for more details" "$LINENO" 5; }
23259 ac_cv_sizeof_char=0
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
23265 $as_echo "$ac_cv_sizeof_char" >&6; }
23269 cat >>confdefs.h <<_ACEOF
23270 #define SIZEOF_CHAR $ac_cv_sizeof_char
23274 # The cast to long int works around a bug in the HP C Compiler
23275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23277 # This bug is HP SR number 8606223364.
23278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23279 $as_echo_n "checking size of int... " >&6; }
23280 if ${ac_cv_sizeof_int+:} false; then :
23281 $as_echo_n "(cached) " >&6
23283 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23286 if test "$ac_cv_type_int" = yes; then
23287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23289 as_fn_error 77 "cannot compute sizeof (int)
23290 See \`config.log' for more details" "$LINENO" 5; }
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23298 $as_echo "$ac_cv_sizeof_int" >&6; }
23302 cat >>confdefs.h <<_ACEOF
23303 #define SIZEOF_INT $ac_cv_sizeof_int
23307 # The cast to long int works around a bug in the HP C Compiler
23308 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23309 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23310 # This bug is HP SR number 8606223364.
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23312 $as_echo_n "checking size of long... " >&6; }
23313 if ${ac_cv_sizeof_long+:} false; then :
23314 $as_echo_n "(cached) " >&6
23316 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23319 if test "$ac_cv_type_long" = yes; then
23320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23322 as_fn_error 77 "cannot compute sizeof (long)
23323 See \`config.log' for more details" "$LINENO" 5; }
23325 ac_cv_sizeof_long=0
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23331 $as_echo "$ac_cv_sizeof_long" >&6; }
23335 cat >>confdefs.h <<_ACEOF
23336 #define SIZEOF_LONG $ac_cv_sizeof_long
23340 # The cast to long int works around a bug in the HP C Compiler
23341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23343 # This bug is HP SR number 8606223364.
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23345 $as_echo_n "checking size of short... " >&6; }
23346 if ${ac_cv_sizeof_short+:} false; then :
23347 $as_echo_n "(cached) " >&6
23349 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23352 if test "$ac_cv_type_short" = yes; then
23353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23355 as_fn_error 77 "cannot compute sizeof (short)
23356 See \`config.log' for more details" "$LINENO" 5; }
23358 ac_cv_sizeof_short=0
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23364 $as_echo "$ac_cv_sizeof_short" >&6; }
23368 cat >>confdefs.h <<_ACEOF
23369 #define SIZEOF_SHORT $ac_cv_sizeof_short
23373 # The cast to long int works around a bug in the HP C Compiler
23374 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23375 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23376 # This bug is HP SR number 8606223364.
23377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23378 $as_echo_n "checking size of long long... " >&6; }
23379 if ${ac_cv_sizeof_long_long+:} false; then :
23380 $as_echo_n "(cached) " >&6
23382 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
23385 if test "$ac_cv_type_long_long" = yes; then
23386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23388 as_fn_error 77 "cannot compute sizeof (long long)
23389 See \`config.log' for more details" "$LINENO" 5; }
23391 ac_cv_sizeof_long_long=0
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23397 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23401 cat >>confdefs.h <<_ACEOF
23402 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23407 if test "$ac_cv_sizeof_short" = "2"; then
23410 if test "$ac_cv_sizeof_int" = "4"; then
23413 # Now we need to find what apr_int64_t (sizeof == 8) will be.
23414 # The first match is our preference.
23415 if test "$ac_cv_sizeof_int" = "8"; then
23416 int64_literal='#define APR_INT64_C(val) (val)'
23417 uint64_literal='#define APR_UINT64_C(val) (val##U)'
23418 int64_t_fmt='#define APR_INT64_T_FMT "d"'
23419 uint64_t_fmt='#define APR_UINT64_T_FMT "u"'
23420 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "x"'
23423 int64_strfn="strtoi"
23424 elif test "$ac_cv_sizeof_long" = "8"; then
23425 int64_literal='#define APR_INT64_C(val) (val##L)'
23426 uint64_literal='#define APR_UINT64_C(val) (val##UL)'
23427 int64_t_fmt='#define APR_INT64_T_FMT "ld"'
23428 uint64_t_fmt='#define APR_UINT64_T_FMT "lu"'
23429 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "lx"'
23432 int64_strfn="strtol"
23433 elif test "$ac_cv_sizeof_long_long" = "8"; then
23434 int64_literal='#define APR_INT64_C(val) (val##LL)'
23435 uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
23436 # Linux, Solaris, FreeBSD all support ll with printf.
23437 # BSD 4.4 originated 'q'. Solaris is more popular and
23438 # doesn't support 'q'. Solaris wins. Exceptions can
23439 # go to the OS-dependent section.
23440 int64_t_fmt='#define APR_INT64_T_FMT "lld"'
23441 uint64_t_fmt='#define APR_UINT64_T_FMT "llu"'
23442 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "llx"'
23443 int64_value="long long"
23444 long_value="long long"
23445 int64_strfn="strtoll"
23446 elif test "$ac_cv_sizeof_longlong" = "8"; then
23447 int64_literal='#define APR_INT64_C(val) (val##LL)'
23448 uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
23449 int64_t_fmt='#define APR_INT64_T_FMT "qd"'
23450 uint64_t_fmt='#define APR_UINT64_T_FMT "qu"'
23451 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "qx"'
23452 int64_value="__int64"
23453 long_value="__int64"
23454 int64_strfn="strtoll"
23456 # int64_literal may be overriden if your compiler thinks you have
23457 # a 64-bit value but APR does not agree.
23458 as_fn_error $? "could not detect a 64-bit integer type" "$LINENO" 5
23461 # If present, allow the C99 macro INT64_C to override our conversion.
23463 # HP-UX's ANSI C compiler provides this without any includes, so we
23464 # will first look for INT64_C without adding stdint.h
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INT64_C" >&5
23466 $as_echo_n "checking for INT64_C... " >&6; }
23467 if ${apr_cv_define_INT64_C+:} false; then :
23468 $as_echo_n "(cached) " >&6
23471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23472 /* end confdefs.h. */
23477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23478 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
23479 apr_cv_define_INT64_C=yes
23482 # Now check for INT64_C in stdint.h
23483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23484 /* end confdefs.h. */
23485 #include <stdint.h>
23490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23491 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
23492 apr_cv_define_INT64_C=yes
23494 apr_cv_define_INT64_C=no
23502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_INT64_C" >&5
23503 $as_echo "$apr_cv_define_INT64_C" >&6; }
23505 if test "$apr_cv_define_INT64_C" = "yes"; then
23506 int64_literal='#define APR_INT64_C(val) INT64_C(val)'
23507 uint64_literal='#define APR_UINT64_C(val) UINT64_C(val)'
23513 if test "$ac_cv_type_size_t" = "yes"; then
23514 size_t_value="size_t"
23516 size_t_value="apr_int32_t"
23518 if test "$ac_cv_type_ssize_t" = "yes"; then
23519 ssize_t_value="ssize_t"
23521 ssize_t_value="apr_int32_t"
23523 if test "$ac_cv_socklen_t" = "yes"; then
23524 socklen_t_value="socklen_t"
23527 if test "$ac_cv_sizeof_long" = "8"; then
23528 # 64-bit HP-UX requires 32-bit socklens in
23529 # kernel, but user-space declarations say
23530 # 64-bit (socklen_t == size_t == long).
23531 # This will result in many compile warnings,
23532 # but we're functionally busted otherwise.
23533 socklen_t_value="int"
23538 socklen_t_value="int"
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
23542 $as_echo_n "checking size of pid_t... " >&6; }
23543 if ${ac_cv_sizeof_pid_t+:} false; then :
23544 $as_echo_n "(cached) " >&6
23546 if test "$cross_compiling" = yes; then :
23547 ac_cv_sizeof_pid_t=8
23549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23550 /* end confdefs.h. */
23552 #include <sys/types.h>
23554 #define binmode "b"
23560 FILE *f=fopen("conftestval", "w" binmode);
23562 fprintf(f, "%d\n", sizeof(pid_t));
23566 if ac_fn_c_try_run "$LINENO"; then :
23567 ac_cv_sizeof_pid_t=`cat conftestval`
23569 ac_cv_sizeof_pid_t=0
23571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23572 conftest.$ac_objext conftest.beam conftest.$ac_ext
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
23577 $as_echo "$ac_cv_sizeof_pid_t" >&6; }
23579 cat >>confdefs.h <<_ACEOF
23580 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
23585 if test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_short"; then
23586 pid_t_fmt='#define APR_PID_T_FMT "hd"'
23587 elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_int"; then
23588 pid_t_fmt='#define APR_PID_T_FMT "d"'
23589 elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long"; then
23590 pid_t_fmt='#define APR_PID_T_FMT "ld"'
23591 elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long_long"; then
23592 pid_t_fmt='#define APR_PID_T_FMT APR_INT64_T_FMT'
23594 pid_t_fmt='#error Can not determine the proper size for pid_t'
23597 # Basically, we have tried to figure out the correct format strings
23598 # for APR types which vary between platforms, but we don't always get
23602 # uniquely, the 31-bit Linux/s390 uses "unsigned long int"
23603 # for size_t rather than "unsigned int":
23611 if test "$ac_cv_sizeof_long" = "8"; then
23612 pid_t_fmt='#define APR_PID_T_FMT "d"'
23614 pid_t_fmt='#define APR_PID_T_FMT "ld"'
23638 int64_t_fmt='#define APR_INT64_T_FMT "I64d"'
23639 uint64_t_fmt='#define APR_UINT64_T_FMT "I64u"'
23640 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "I64x"'
23641 int64_value="__int64"
23642 long_value="__int64"
23643 int64_strfn="_strtoi64"
23649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and int are the same" >&5
23650 $as_echo_n "checking whether ssize_t and int are the same... " >&6; }
23651 if ${apr_cv_typematch_ssize_t_int+:} false; then :
23652 $as_echo_n "(cached) " >&6
23655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23656 /* end confdefs.h. */
23657 $ac_includes_default
23662 int foo[0 - !__builtin_types_compatible_p(ssize_t, int)];
23668 if ac_fn_c_try_compile "$LINENO"; then :
23669 apr_cv_typematch_ssize_t_int=yes
23672 apr_cv_typematch_ssize_t_int=no
23674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_int" >&5
23677 $as_echo "$apr_cv_typematch_ssize_t_int" >&6; }
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and long are the same" >&5
23682 $as_echo_n "checking whether ssize_t and long are the same... " >&6; }
23683 if ${apr_cv_typematch_ssize_t_long+:} false; then :
23684 $as_echo_n "(cached) " >&6
23687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23688 /* end confdefs.h. */
23689 $ac_includes_default
23694 int foo[0 - !__builtin_types_compatible_p(ssize_t, long)];
23700 if ac_fn_c_try_compile "$LINENO"; then :
23701 apr_cv_typematch_ssize_t_long=yes
23704 apr_cv_typematch_ssize_t_long=no
23706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_long" >&5
23709 $as_echo "$apr_cv_typematch_ssize_t_long" >&6; }
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned int are the same" >&5
23714 $as_echo_n "checking whether size_t and unsigned int are the same... " >&6; }
23715 if ${apr_cv_typematch_size_t_unsigned_int+:} false; then :
23716 $as_echo_n "(cached) " >&6
23719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23720 /* end confdefs.h. */
23721 $ac_includes_default
23726 int foo[0 - !__builtin_types_compatible_p(size_t, unsigned int)];
23732 if ac_fn_c_try_compile "$LINENO"; then :
23733 apr_cv_typematch_size_t_unsigned_int=yes
23736 apr_cv_typematch_size_t_unsigned_int=no
23738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_int" >&5
23741 $as_echo "$apr_cv_typematch_size_t_unsigned_int" >&6; }
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned long are the same" >&5
23746 $as_echo_n "checking whether size_t and unsigned long are the same... " >&6; }
23747 if ${apr_cv_typematch_size_t_unsigned_long+:} false; then :
23748 $as_echo_n "(cached) " >&6
23751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23752 /* end confdefs.h. */
23753 $ac_includes_default
23758 int foo[0 - !__builtin_types_compatible_p(size_t, unsigned long)];
23764 if ac_fn_c_try_compile "$LINENO"; then :
23765 apr_cv_typematch_size_t_unsigned_long=yes
23768 apr_cv_typematch_size_t_unsigned_long=no
23770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_long" >&5
23773 $as_echo "$apr_cv_typematch_size_t_unsigned_long" >&6; }
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23777 $as_echo_n "checking size of ssize_t... " >&6; }
23778 if ${ac_cv_sizeof_ssize_t+:} false; then :
23779 $as_echo_n "(cached) " >&6
23781 if test "$cross_compiling" = yes; then :
23782 ac_cv_sizeof_ssize_t=8
23784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23785 /* end confdefs.h. */
23787 #include <sys/types.h>
23789 #define binmode "b"
23795 FILE *f=fopen("conftestval", "w" binmode);
23797 fprintf(f, "%d\n", sizeof(ssize_t));
23801 if ac_fn_c_try_run "$LINENO"; then :
23802 ac_cv_sizeof_ssize_t=`cat conftestval`
23804 ac_cv_sizeof_ssize_t=0
23806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23807 conftest.$ac_objext conftest.beam conftest.$ac_ext
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23812 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23814 cat >>confdefs.h <<_ACEOF
23815 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_ssize_t" >&5
23821 $as_echo_n "checking which format to use for apr_ssize_t... " >&6; }
23822 if test -n "$ssize_t_fmt"; then
23823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$ssize_t_fmt" >&5
23824 $as_echo "%$ssize_t_fmt" >&6; }
23825 elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_int"; then
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
23828 $as_echo "%d" >&6; }
23829 elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_long"; then
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
23832 $as_echo "%ld" >&6; }
23834 as_fn_error $? "could not determine the proper format for apr_ssize_t" "$LINENO" 5
23837 ssize_t_fmt="#define APR_SSIZE_T_FMT \"$ssize_t_fmt\""
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23840 $as_echo_n "checking size of size_t... " >&6; }
23841 if ${ac_cv_sizeof_size_t+:} false; then :
23842 $as_echo_n "(cached) " >&6
23844 if test "$cross_compiling" = yes; then :
23845 ac_cv_sizeof_size_t=8
23847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23848 /* end confdefs.h. */
23850 #include <stddef.h>
23852 #define binmode "b"
23858 FILE *f=fopen("conftestval", "w" binmode);
23860 fprintf(f, "%d\n", sizeof(size_t));
23864 if ac_fn_c_try_run "$LINENO"; then :
23865 ac_cv_sizeof_size_t=`cat conftestval`
23867 ac_cv_sizeof_size_t=0
23869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23870 conftest.$ac_objext conftest.beam conftest.$ac_ext
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23875 $as_echo "$ac_cv_sizeof_size_t" >&6; }
23877 cat >>confdefs.h <<_ACEOF
23878 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_size_t" >&5
23884 $as_echo_n "checking which format to use for apr_size_t... " >&6; }
23885 if test -n "$size_t_fmt"; then
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$size_t_fmt" >&5
23887 $as_echo "%$size_t_fmt" >&6; }
23888 elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_int"; then
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
23891 $as_echo "%d" >&6; }
23892 elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_long"; then
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
23895 $as_echo "%ld" >&6; }
23897 as_fn_error $? "could not determine the proper format for apr_size_t" "$LINENO" 5
23900 size_t_fmt="#define APR_SIZE_T_FMT \"$size_t_fmt\""
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23903 $as_echo_n "checking size of off_t... " >&6; }
23904 if ${ac_cv_sizeof_off_t+:} false; then :
23905 $as_echo_n "(cached) " >&6
23907 if test "$cross_compiling" = yes; then :
23908 ac_cv_sizeof_off_t=8
23910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23911 /* end confdefs.h. */
23913 #include <sys/types.h>
23915 #define binmode "b"
23921 FILE *f=fopen("conftestval", "w" binmode);
23923 fprintf(f, "%d\n", sizeof(off_t));
23927 if ac_fn_c_try_run "$LINENO"; then :
23928 ac_cv_sizeof_off_t=`cat conftestval`
23930 ac_cv_sizeof_off_t=0
23932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23933 conftest.$ac_objext conftest.beam conftest.$ac_ext
23937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23938 $as_echo "$ac_cv_sizeof_off_t" >&6; }
23940 cat >>confdefs.h <<_ACEOF
23941 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23946 if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
23949 for ac_func in mmap64 sendfile64 sendfilev64 readdir64_r
23951 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23952 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23953 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23954 cat >>confdefs.h <<_ACEOF
23955 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23965 for ac_func in mkstemp64
23967 ac_fn_c_check_func "$LINENO" "mkstemp64" "ac_cv_func_mkstemp64"
23968 if test "x$ac_cv_func_mkstemp64" = xyes; then :
23969 cat >>confdefs.h <<_ACEOF
23970 #define HAVE_MKSTEMP64 1
23978 elif test "${ac_cv_sizeof_off_t}" != "${ac_cv_sizeof_size_t}"; then
23979 # unsure of using -gt above is as portable, can can't forsee where
23980 # off_t can legitimately be smaller than size_t
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type to use for apr_off_t" >&5
23987 $as_echo_n "checking which type to use for apr_off_t... " >&6; }
23988 if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
23990 off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
23991 off_t_value='off64_t'
23992 off_t_strfn='apr_strtoi64'
23993 elif test "${ac_cv_sizeof_off_t}x${ac_cv_sizeof_long}" = "4x4"; then
23994 # Special case: off_t may change size with _FILE_OFFSET_BITS
23995 # on 32-bit systems with LFS support. To avoid compatibility
23996 # issues when other packages do define _FILE_OFFSET_BITS,
23997 # hard-code apr_off_t to long.
23999 off_t_fmt='#define APR_OFF_T_FMT "ld"'
24000 off_t_strfn='strtol'
24001 elif test "$ac_cv_type_off_t" = "yes"; then
24003 # off_t is more commonly a long than an int; prefer that case
24004 # where int and long are the same size.
24005 if test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long"; then
24006 off_t_fmt='#define APR_OFF_T_FMT "ld"'
24007 off_t_strfn='strtol'
24008 elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_int"; then
24009 off_t_fmt='#define APR_OFF_T_FMT "d"'
24010 off_t_strfn='strtoi'
24011 elif test "$ac_cv_sizeof_off_t" = "$ac_cv_sizeof_long_long"; then
24012 off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
24013 off_t_strfn='apr_strtoi64'
24015 as_fn_error $? "could not determine the size of off_t" "$LINENO" 5
24020 off_t_value=apr_int64_t
24021 off_t_fmt='#define APR_OFF_T_FMT "I64d"'
24022 off_t_strfn='_strtoi64'
24027 off_t_value=apr_int32_t
24029 off_t_strfn='strtoi'
24031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $off_t_value" >&5
24032 $as_echo "$off_t_value" >&6; }
24034 # Regardless of whether _LARGEFILE64_SOURCE is used, on some
24035 # platforms _FILE_OFFSET_BITS will affect the size of ino_t and hence
24036 # the build-time ABI may be different from the apparent ABI when using
24037 # APR with another package which *does* define _FILE_OFFSET_BITS.
24038 # (Exactly as per the case above with off_t where LFS is *not* used)
24040 # To be safe, hard-code apr_ino_t as 'unsigned long' or 'unsigned int'
24041 # iff that is exactly the size of ino_t here; otherwise use ino_t as existing
24042 # releases did. To be correct, apr_ino_t should have been made an
24043 # ino64_t as apr_off_t is off64_t, but this can't be done now without
24049 ino_t_value=apr_int64_t
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
24054 $as_echo_n "checking size of ino_t... " >&6; }
24055 if ${ac_cv_sizeof_ino_t+:} false; then :
24056 $as_echo_n "(cached) " >&6
24058 if test "$cross_compiling" = yes; then :
24059 ac_cv_sizeof_ino_t=$ac_cv_sizeof_long
24061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24062 /* end confdefs.h. */
24064 $ac_includes_default
24066 #define binmode "b"
24072 FILE *f=fopen("conftestval", "w" binmode);
24074 fprintf(f, "%d\n", sizeof(ino_t));
24078 if ac_fn_c_try_run "$LINENO"; then :
24079 ac_cv_sizeof_ino_t=`cat conftestval`
24081 ac_cv_sizeof_ino_t=0
24083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24084 conftest.$ac_objext conftest.beam conftest.$ac_ext
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
24089 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
24091 cat >>confdefs.h <<_ACEOF
24092 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
24096 if test $ac_cv_sizeof_ino_t = 4; then
24097 if test $ac_cv_sizeof_long = 4; then
24098 ino_t_value="unsigned long"
24100 ino_t_value="unsigned int"
24105 { $as_echo "$as_me:${as_lineno-$LINENO}: using $ino_t_value for ino_t" >&5
24106 $as_echo "$as_me: using $ino_t_value for ino_t" >&6;}
24108 # Checks for endianness
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
24110 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
24111 if ${ac_cv_c_bigendian+:} false; then :
24112 $as_echo_n "(cached) " >&6
24114 ac_cv_c_bigendian=unknown
24115 # See if we're dealing with a universal compiler.
24116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24117 /* end confdefs.h. */
24118 #ifndef __APPLE_CC__
24119 not a universal capable compiler
24124 if ac_fn_c_try_compile "$LINENO"; then :
24126 # Check for potential -arch flags. It is not universal unless
24127 # there are at least two -arch flags with different values.
24130 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
24131 if test -n "$ac_prev"; then
24133 i?86 | x86_64 | ppc | ppc64)
24134 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
24137 ac_cv_c_bigendian=universal
24143 elif test "x$ac_word" = "x-arch"; then
24148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24149 if test $ac_cv_c_bigendian = unknown; then
24150 # See if sys/param.h defines the BYTE_ORDER macro.
24151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24152 /* end confdefs.h. */
24153 #include <sys/types.h>
24154 #include <sys/param.h>
24159 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24160 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24162 bogus endian macros
24169 if ac_fn_c_try_compile "$LINENO"; then :
24170 # It does; now see whether it defined to BIG_ENDIAN or not.
24171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24172 /* end confdefs.h. */
24173 #include <sys/types.h>
24174 #include <sys/param.h>
24179 #if BYTE_ORDER != BIG_ENDIAN
24187 if ac_fn_c_try_compile "$LINENO"; then :
24188 ac_cv_c_bigendian=yes
24190 ac_cv_c_bigendian=no
24192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24196 if test $ac_cv_c_bigendian = unknown; then
24197 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24199 /* end confdefs.h. */
24200 #include <limits.h>
24205 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24206 bogus endian macros
24213 if ac_fn_c_try_compile "$LINENO"; then :
24214 # It does; now see whether it defined to _BIG_ENDIAN or not.
24215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24216 /* end confdefs.h. */
24217 #include <limits.h>
24222 #ifndef _BIG_ENDIAN
24230 if ac_fn_c_try_compile "$LINENO"; then :
24231 ac_cv_c_bigendian=yes
24233 ac_cv_c_bigendian=no
24235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24239 if test $ac_cv_c_bigendian = unknown; then
24240 # Compile a test program.
24241 if test "$cross_compiling" = yes; then :
24242 # Try to guess by grepping values from an object file.
24243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24244 /* end confdefs.h. */
24245 short int ascii_mm[] =
24246 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24247 short int ascii_ii[] =
24248 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24249 int use_ascii (int i) {
24250 return ascii_mm[i] + ascii_ii[i];
24252 short int ebcdic_ii[] =
24253 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24254 short int ebcdic_mm[] =
24255 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24256 int use_ebcdic (int i) {
24257 return ebcdic_mm[i] + ebcdic_ii[i];
24264 return use_ascii (foo) == use_ebcdic (foo);
24269 if ac_fn_c_try_compile "$LINENO"; then :
24270 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24271 ac_cv_c_bigendian=yes
24273 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24274 if test "$ac_cv_c_bigendian" = unknown; then
24275 ac_cv_c_bigendian=no
24277 # finding both strings is unlikely to happen, but who knows?
24278 ac_cv_c_bigendian=unknown
24282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24285 /* end confdefs.h. */
24286 $ac_includes_default
24291 /* Are we little or big endian? From Harbison&Steele. */
24295 char c[sizeof (long int)];
24298 return u.c[sizeof (long int) - 1] == 1;
24304 if ac_fn_c_try_run "$LINENO"; then :
24305 ac_cv_c_bigendian=no
24307 ac_cv_c_bigendian=yes
24309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24310 conftest.$ac_objext conftest.beam conftest.$ac_ext
24315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24316 $as_echo "$ac_cv_c_bigendian" >&6; }
24317 case $ac_cv_c_bigendian in #(
24319 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
24325 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
24329 as_fn_error $? "unknown endianness
24330 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
24333 if test $ac_cv_c_bigendian = yes; then
24339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iovec" >&5
24340 $as_echo_n "checking size of struct iovec... " >&6; }
24341 if ${ac_cv_sizeof_struct_iovec+:} false; then :
24342 $as_echo_n "(cached) " >&6
24344 if test "$cross_compiling" = yes; then :
24345 ac_cv_sizeof_struct_iovec=0
24347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24348 /* end confdefs.h. */
24350 #include <sys/types.h>
24351 #include <sys/uio.h>
24353 #define binmode "b"
24359 FILE *f=fopen("conftestval", "w" binmode);
24361 fprintf(f, "%d\n", sizeof(struct iovec));
24365 if ac_fn_c_try_run "$LINENO"; then :
24366 ac_cv_sizeof_struct_iovec=`cat conftestval`
24368 ac_cv_sizeof_struct_iovec=0
24370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24371 conftest.$ac_objext conftest.beam conftest.$ac_ext
24375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iovec" >&5
24376 $as_echo "$ac_cv_sizeof_struct_iovec" >&6; }
24378 cat >>confdefs.h <<_ACEOF
24379 #define SIZEOF_STRUCT_IOVEC $ac_cv_sizeof_struct_iovec
24383 if test "$ac_cv_sizeof_struct_iovec" = "0"; then
24413 for ac_func in strnicmp
24415 ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp"
24416 if test "x$ac_cv_func_strnicmp" = xyes; then :
24417 cat >>confdefs.h <<_ACEOF
24418 #define HAVE_STRNICMP 1
24426 for ac_func in strncasecmp
24428 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
24429 if test "x$ac_cv_func_strncasecmp" = xyes; then :
24430 cat >>confdefs.h <<_ACEOF
24431 #define HAVE_STRNCASECMP 1
24433 have_strncasecmp="1"
24435 have_strncasecmp="0"
24439 for ac_func in stricmp
24441 ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
24442 if test "x$ac_cv_func_stricmp" = xyes; then :
24443 cat >>confdefs.h <<_ACEOF
24444 #define HAVE_STRICMP 1
24452 for ac_func in strcasecmp
24454 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
24455 if test "x$ac_cv_func_strcasecmp" = xyes; then :
24456 cat >>confdefs.h <<_ACEOF
24457 #define HAVE_STRCASECMP 1
24459 have_strcasecmp="1"
24461 have_strcasecmp="0"
24465 for ac_func in strdup
24467 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
24468 if test "x$ac_cv_func_strdup" = xyes; then :
24469 cat >>confdefs.h <<_ACEOF
24470 #define HAVE_STRDUP 1
24478 for ac_func in strstr
24480 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
24481 if test "x$ac_cv_func_strstr" = xyes; then :
24482 cat >>confdefs.h <<_ACEOF
24483 #define HAVE_STRSTR 1
24491 for ac_func in memchr
24493 ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
24494 if test "x$ac_cv_func_memchr" = xyes; then :
24495 cat >>confdefs.h <<_ACEOF
24496 #define HAVE_MEMCHR 1
24504 as_ac_var=`$as_echo "ac_cv_func_$int64_strfn" | $as_tr_sh`
24505 ac_fn_c_check_func "$LINENO" "$int64_strfn" "$as_ac_var"
24506 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24507 have_int64_strfn="1"
24509 have_int64_strfn="0"
24513 if test "$have_int64_strfn" = "0" && test "$int64_strfn" = "strtoll"; then
24514 int64_strfn="strtoq"
24515 ac_fn_c_check_func "$LINENO" "strtoq" "ac_cv_func_strtoq"
24516 if test "x$ac_cv_func_strtoq" = xyes; then :
24524 if test "$have_int64_strfn" = "1"; then
24526 cat >>confdefs.h <<_ACEOF
24527 #define APR_INT64_STRFN $int64_strfn
24540 if test "$off_t_strfn" = "apr_strtoi64" && test "$have_int64_strfn" = "1"; then
24541 off_t_strfn=$int64_strfn
24544 cat >>confdefs.h <<_ACEOF
24545 #define APR_OFF_T_STRFN $off_t_strfn
24549 echo "${nl}Checking for DSO..."
24550 # Check whether --enable-dso was given.
24551 if test "${enable_dso+set}" = set; then :
24552 enableval=$enable_dso; if test "x$enableval" = "xyes"; then
24563 if test "$dsotype" = "any"; then
24564 if test "$dsotype" = "any"; then
24567 # Original Darwin, not for 9.0!:
24568 ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
24569 if test "x$ac_cv_func_NSLinkModule" = xyes; then :
24573 hppa*-hpux[1-9]\.*|hppa*-hpux1[01]*)
24574 # shl is specific to parisc hpux SOM binaries, not used for 64 bit
24575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
24576 $as_echo_n "checking for shl_load in -ldld... " >&6; }
24577 if ${ac_cv_lib_dld_shl_load+:} false; then :
24578 $as_echo_n "(cached) " >&6
24580 ac_check_lib_save_LIBS=$LIBS
24582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24583 /* end confdefs.h. */
24585 /* Override any GCC internal prototype to avoid an error.
24586 Use char because int might match the return type of a GCC
24587 builtin and then its argument prototype would still apply. */
24595 return shl_load ();
24600 if ac_fn_c_try_link "$LINENO"; then :
24601 ac_cv_lib_dld_shl_load=yes
24603 ac_cv_lib_dld_shl_load=no
24605 rm -f core conftest.err conftest.$ac_objext \
24606 conftest$ac_exeext conftest.$ac_ext
24607 LIBS=$ac_check_lib_save_LIBS
24609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
24610 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
24611 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
24615 if test "$ac_cv_sizeof_voidp$have_shl" = "41"; then
24617 if test "x$LIBS" = "x"; then
24618 test "x$silent" != "xyes" && echo " setting LIBS to \"-ldld\""
24621 apr_addto_bugger="-ldld"
24622 for i in $apr_addto_bugger; do
24623 apr_addto_duplicate="0"
24625 if test "x$i" = "x$j"; then
24626 apr_addto_duplicate="1"
24630 if test $apr_addto_duplicate = "0"; then
24631 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
24639 # several 'other's below probably belong up here. If they always
24640 # use a platform implementation and shouldn't test the dlopen/dlfcn
24641 # features, then bring them up here.
24642 # But if they -should- optionally use dlfcn, and/or need the config
24643 # detection of dlopen/dlsym, do not move them up.
24648 if test "$dsotype" = "any"; then
24649 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
24650 if test "x$ac_cv_func_dlopen" = xyes; then :
24655 if test "$dsotype" = "any"; then
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
24657 $as_echo_n "checking for dlopen in -ldl... " >&6; }
24658 if ${ac_cv_lib_dl_dlopen+:} false; then :
24659 $as_echo_n "(cached) " >&6
24661 ac_check_lib_save_LIBS=$LIBS
24663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24664 /* end confdefs.h. */
24666 /* Override any GCC internal prototype to avoid an error.
24667 Use char because int might match the return type of a GCC
24668 builtin and then its argument prototype would still apply. */
24681 if ac_fn_c_try_link "$LINENO"; then :
24682 ac_cv_lib_dl_dlopen=yes
24684 ac_cv_lib_dl_dlopen=no
24686 rm -f core conftest.err conftest.$ac_objext \
24687 conftest$ac_exeext conftest.$ac_ext
24688 LIBS=$ac_check_lib_save_LIBS
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
24691 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
24692 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
24694 if test "x$LIBS" = "x"; then
24695 test "x$silent" != "xyes" && echo " setting LIBS to \"-ldl\""
24698 apr_addto_bugger="-ldl"
24699 for i in $apr_addto_bugger; do
24700 apr_addto_duplicate="0"
24702 if test "x$i" = "x$j"; then
24703 apr_addto_duplicate="1"
24707 if test $apr_addto_duplicate = "0"; then
24708 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
24717 if test "$dsotype" = "dlfcn"; then
24718 # ReliantUnix has dlopen() in libc but dlsym() in libdl :(
24719 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
24720 if test "x$ac_cv_func_dlsym" = xyes; then :
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
24724 $as_echo_n "checking for dlsym in -ldl... " >&6; }
24725 if ${ac_cv_lib_dl_dlsym+:} false; then :
24726 $as_echo_n "(cached) " >&6
24728 ac_check_lib_save_LIBS=$LIBS
24730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24731 /* end confdefs.h. */
24733 /* Override any GCC internal prototype to avoid an error.
24734 Use char because int might match the return type of a GCC
24735 builtin and then its argument prototype would still apply. */
24748 if ac_fn_c_try_link "$LINENO"; then :
24749 ac_cv_lib_dl_dlsym=yes
24751 ac_cv_lib_dl_dlsym=no
24753 rm -f core conftest.err conftest.$ac_objext \
24754 conftest$ac_exeext conftest.$ac_ext
24755 LIBS=$ac_check_lib_save_LIBS
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
24758 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
24759 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
24761 if test "x$LIBS" = "x"; then
24762 test "x$silent" != "xyes" && echo " setting LIBS to \"-ldl\""
24765 apr_addto_bugger="-ldl"
24766 for i in $apr_addto_bugger; do
24767 apr_addto_duplicate="0"
24769 if test "x$i" = "x$j"; then
24770 apr_addto_duplicate="1"
24774 if test $apr_addto_duplicate = "0"; then
24775 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
24783 echo "Weird: dlopen() was found but dlsym() was not found!"
24789 if test "$dsotype" = "any"; then
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for load_image in -lroot" >&5
24792 $as_echo_n "checking for load_image in -lroot... " >&6; }
24793 if ${ac_cv_lib_root_load_image+:} false; then :
24794 $as_echo_n "(cached) " >&6
24796 ac_check_lib_save_LIBS=$LIBS
24797 LIBS="-lroot $LIBS"
24798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24799 /* end confdefs.h. */
24801 /* Override any GCC internal prototype to avoid an error.
24802 Use char because int might match the return type of a GCC
24803 builtin and then its argument prototype would still apply. */
24807 char load_image ();
24811 return load_image ();
24816 if ac_fn_c_try_link "$LINENO"; then :
24817 ac_cv_lib_root_load_image=yes
24819 ac_cv_lib_root_load_image=no
24821 rm -f core conftest.err conftest.$ac_objext \
24822 conftest$ac_exeext conftest.$ac_ext
24823 LIBS=$ac_check_lib_save_LIBS
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_load_image" >&5
24826 $as_echo "$ac_cv_lib_root_load_image" >&6; }
24827 if test "x$ac_cv_lib_root_load_image" = xyes; then :
24833 if test "$dsotype" = "any"; then
24835 *os390|*os400|*-aix*)
24836 # Some -aix5 will use dl, no hassles. Keep that pattern here.
24839 if test "$have_shl" = "1"; then
24841 if test "x$LIBS" = "x"; then
24842 test "x$silent" != "xyes" && echo " setting LIBS to \"-ldld\""
24845 apr_addto_bugger="-ldld"
24846 for i in $apr_addto_bugger; do
24847 apr_addto_duplicate="0"
24849 if test "x$i" = "x$j"; then
24850 apr_addto_duplicate="1"
24854 if test $apr_addto_duplicate = "0"; then
24855 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
24866 if test "$dsotype" = "any"; then
24867 as_fn_error $? "Could not detect suitable DSO implementation" "$LINENO" 5
24868 elif test "$dsotype" = "no"; then
24873 $as_echo "#define DSO_USE_DLFCN 1" >>confdefs.h
24876 $as_echo "#define DSO_USE_SHL 1" >>confdefs.h
24879 $as_echo "#define DSO_USE_DYLD 1" >>confdefs.h
24881 other) ;; # Use whatever is in dso/OSDIR
24882 *) as_fn_error $? "Unknown DSO implementation \"$dsotype\"" "$LINENO" 5;;
24885 apr_modules="$apr_modules dso"
24890 echo "${nl}Checking for Processes..."
24892 for ac_func in waitpid
24894 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
24895 if test "x$ac_cv_func_waitpid" = xyes; then :
24896 cat >>confdefs.h <<_ACEOF
24897 #define HAVE_WAITPID 1
24904 # Check whether --enable-other-child was given.
24905 if test "${enable_other_child+set}" = set; then :
24906 enableval=$enable_other_child; if test "$enableval" = "yes"; then
24918 if test -z "$have_proc_invoked"; then
24919 have_proc_invoked="0"
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Variable Length Arrays" >&5
24925 $as_echo_n "checking for Variable Length Arrays... " >&6; }
24926 apr_save_CFLAGS=$CFLAGS
24927 CFLAGS="$CFLAGS $CFLAGS_WARN"
24928 if test "$ac_cv_c_compiler_gnu" = "yes"; then
24929 CFLAGS="$CFLAGS -Werror"
24931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24932 /* end confdefs.h. */
24933 #include "confdefs.h"
24936 int main(int argc, const char *const *argv) {
24944 if ac_fn_c_try_compile "$LINENO"; then :
24949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24950 CFLAGS=$apr_save_CFLAGS
24952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vla_msg" >&5
24953 $as_echo "$vla_msg" >&6; }
24954 if test "$vla_msg" = "yes"; then
24956 $as_echo "#define HAVE_VLA 1" >>confdefs.h
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct rlimit" >&5
24961 $as_echo_n "checking struct rlimit... " >&6; }
24962 if ${ac_cv_struct_rlimit+:} false; then :
24963 $as_echo_n "(cached) " >&6
24966 if test "$cross_compiling" = yes; then :
24968 ac_cv_struct_rlimit=no
24970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24971 /* end confdefs.h. */
24973 #include <sys/types.h>
24974 #include <sys/time.h>
24975 #include <sys/resource.h>
24978 struct rlimit limit;
24979 limit.rlim_cur = 0;
24980 limit.rlim_max = 0;
24984 if ac_fn_c_try_run "$LINENO"; then :
24986 ac_cv_struct_rlimit=yes
24989 ac_cv_struct_rlimit=no
24991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24992 conftest.$ac_objext conftest.beam conftest.$ac_ext
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rlimit" >&5
24997 $as_echo "$ac_cv_struct_rlimit" >&6; }
24999 test "x$ac_cv_struct_rlimit" = xyes && struct_rlimit=1
25002 echo "${nl}Checking for Locking..."
25004 for ac_func in semget semctl flock
25006 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25007 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25008 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25009 cat >>confdefs.h <<_ACEOF
25010 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25016 for ac_header in semaphore.h OS.h
25018 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25019 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25020 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25021 cat >>confdefs.h <<_ACEOF
25022 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
25030 $as_echo_n "checking for library containing sem_open... " >&6; }
25031 if ${ac_cv_search_sem_open+:} false; then :
25032 $as_echo_n "(cached) " >&6
25034 ac_func_search_save_LIBS=$LIBS
25035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25036 /* end confdefs.h. */
25038 /* Override any GCC internal prototype to avoid an error.
25039 Use char because int might match the return type of a GCC
25040 builtin and then its argument prototype would still apply. */
25048 return sem_open ();
25053 for ac_lib in '' rt; do
25054 if test -z "$ac_lib"; then
25055 ac_res="none required"
25058 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25060 if ac_fn_c_try_link "$LINENO"; then :
25061 ac_cv_search_sem_open=$ac_res
25063 rm -f core conftest.err conftest.$ac_objext \
25065 if ${ac_cv_search_sem_open+:} false; then :
25069 if ${ac_cv_search_sem_open+:} false; then :
25072 ac_cv_search_sem_open=no
25074 rm conftest.$ac_ext
25075 LIBS=$ac_func_search_save_LIBS
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
25078 $as_echo "$ac_cv_search_sem_open" >&6; }
25079 ac_res=$ac_cv_search_sem_open
25080 if test "$ac_res" != no; then :
25081 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25085 for ac_func in sem_close sem_unlink sem_post sem_wait create_sem
25087 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25088 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25089 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25090 cat >>confdefs.h <<_ACEOF
25091 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25098 # Some systems return ENOSYS from sem_open.
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sem_open" >&5
25100 $as_echo_n "checking for working sem_open... " >&6; }
25101 if ${ac_cv_func_sem_open+:} false; then :
25102 $as_echo_n "(cached) " >&6
25105 if test "$cross_compiling" = yes; then :
25106 ac_cv_func_sem_open=no
25108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25109 /* end confdefs.h. */
25112 #include <stdlib.h>
25114 #include <semaphore.h>
25116 #define SEM_FAILED (-1)
25121 const char *sem_name = "/apr_autoconf";
25123 psem = sem_open(sem_name, O_CREAT, 0644, 1);
25124 if (psem == (sem_t *)SEM_FAILED) {
25128 psem = sem_open(sem_name, O_CREAT | O_EXCL, 0644, 1);
25129 if (psem != (sem_t *)SEM_FAILED) {
25133 sem_unlink(sem_name);
25137 if ac_fn_c_try_run "$LINENO"; then :
25138 ac_cv_func_sem_open=yes
25140 ac_cv_func_sem_open=no
25142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25143 conftest.$ac_objext conftest.beam conftest.$ac_ext
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sem_open" >&5
25148 $as_echo "$ac_cv_func_sem_open" >&6; }
25150 # It's stupid, but not all platforms have union semun, even those that need it.
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun in sys/sem.h" >&5
25152 $as_echo_n "checking for union semun in sys/sem.h... " >&6; }
25153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25154 /* end confdefs.h. */
25156 #include <sys/types.h>
25157 #include <sys/ipc.h>
25158 #include <sys/sem.h>
25165 semctl(0, 0, 0, arg);
25171 if ac_fn_c_try_compile "$LINENO"; then :
25172 have_union_semun="1" union_semun=yes
25176 have_union_semun="0"
25179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
25181 $as_echo "$msg" >&6; }
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOCK_EX in sys/file.h" >&5
25186 $as_echo_n "checking for LOCK_EX in sys/file.h... " >&6; }
25187 if ${ac_cv_define_LOCK_EX+:} false; then :
25188 $as_echo_n "(cached) " >&6
25191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25192 /* end confdefs.h. */
25194 #include <sys/file.h>
25200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25201 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25202 ac_cv_define_LOCK_EX=yes
25204 ac_cv_define_LOCK_EX=no
25210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_LOCK_EX" >&5
25211 $as_echo "$ac_cv_define_LOCK_EX" >&6; }
25212 if test "$ac_cv_define_LOCK_EX" = "yes"; then
25214 $as_echo "#define HAVE_LOCK_EX 1" >>confdefs.h
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLK in fcntl.h" >&5
25220 $as_echo_n "checking for F_SETLK in fcntl.h... " >&6; }
25221 if ${ac_cv_define_F_SETLK+:} false; then :
25222 $as_echo_n "(cached) " >&6
25225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25226 /* end confdefs.h. */
25234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25235 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25236 ac_cv_define_F_SETLK=yes
25238 ac_cv_define_F_SETLK=no
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_F_SETLK" >&5
25245 $as_echo "$ac_cv_define_F_SETLK" >&6; }
25246 if test "$ac_cv_define_F_SETLK" = "yes"; then
25248 $as_echo "#define HAVE_F_SETLK 1" >>confdefs.h
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SEM_UNDO in sys/sem.h" >&5
25254 $as_echo_n "checking for SEM_UNDO in sys/sem.h... " >&6; }
25255 if ${ac_cv_define_SEM_UNDO+:} false; then :
25256 $as_echo_n "(cached) " >&6
25259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25260 /* end confdefs.h. */
25262 #include <sys/sem.h>
25268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25269 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25270 ac_cv_define_SEM_UNDO=yes
25272 ac_cv_define_SEM_UNDO=no
25278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SEM_UNDO" >&5
25279 $as_echo "$ac_cv_define_SEM_UNDO" >&6; }
25280 if test "$ac_cv_define_SEM_UNDO" = "yes"; then
25282 $as_echo "#define HAVE_SEM_UNDO 1" >>confdefs.h
25287 # We are assuming that if the platform doesn't have POLLIN, it doesn't have
25288 # any POLL definitions.
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POLLIN in poll.h sys/poll.h" >&5
25291 $as_echo_n "checking for POLLIN in poll.h sys/poll.h... " >&6; }
25292 if ${ac_cv_define_POLLIN+:} false; then :
25293 $as_echo_n "(cached) " >&6
25296 ac_cv_define_POLLIN=no
25297 for curhdr in poll.h sys/poll.h
25299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25300 /* end confdefs.h. */
25308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25309 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25310 ac_cv_define_POLLIN=yes
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_POLLIN" >&5
25318 $as_echo "$ac_cv_define_POLLIN" >&6; }
25319 if test "$ac_cv_define_POLLIN" = "yes"; then
25321 $as_echo "#define HAVE_POLLIN 1" >>confdefs.h
25326 if test "$threads" = "1"; then
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PROCESS_SHARED in pthread.h" >&5
25329 $as_echo_n "checking for PTHREAD_PROCESS_SHARED in pthread.h... " >&6; }
25330 if ${ac_cv_define_PTHREAD_PROCESS_SHARED+:} false; then :
25331 $as_echo_n "(cached) " >&6
25334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25335 /* end confdefs.h. */
25337 #include <pthread.h>
25338 #ifdef PTHREAD_PROCESS_SHARED
25343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25344 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
25345 ac_cv_define_PTHREAD_PROCESS_SHARED=yes
25347 ac_cv_define_PTHREAD_PROCESS_SHARED=no
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_PTHREAD_PROCESS_SHARED" >&5
25354 $as_echo "$ac_cv_define_PTHREAD_PROCESS_SHARED" >&6; }
25355 if test "$ac_cv_define_PTHREAD_PROCESS_SHARED" = "yes"; then
25357 $as_echo "#define HAVE_PTHREAD_PROCESS_SHARED 1" >>confdefs.h
25361 for ac_func in pthread_mutexattr_setpshared
25363 ac_fn_c_check_func "$LINENO" "pthread_mutexattr_setpshared" "ac_cv_func_pthread_mutexattr_setpshared"
25364 if test "x$ac_cv_func_pthread_mutexattr_setpshared" = xyes; then :
25365 cat >>confdefs.h <<_ACEOF
25366 #define HAVE_PTHREAD_MUTEXATTR_SETPSHARED 1
25372 # Some systems have setpshared and define PROCESS_SHARED, but don't
25373 # really support PROCESS_SHARED locks. So, we must validate that we
25374 # can go through the steps without receiving some sort of system error.
25375 # Linux and older versions of AIX have this problem.
25377 for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared; do
25378 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25379 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25382 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25383 ac_var="ac_cv_header_$ac_item"
25386 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25387 ac_var="ac_cv_file_$ac_item"
25389 func ) ac_var="ac_cv_func_$ac_item" ;;
25390 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25391 define ) ac_var="ac_cv_define_$ac_item" ;;
25392 custom ) ac_var="$ac_item" ;;
25394 eval "ac_val=\$$ac_var"
25395 if test ".$ac_val" != .yes; then
25400 if test ".$ac_rc" = .yes; then
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working PROCESS_SHARED locks" >&5
25404 $as_echo_n "checking for working PROCESS_SHARED locks... " >&6; }
25405 if ${apr_cv_process_shared_works+:} false; then :
25406 $as_echo_n "(cached) " >&6
25409 if test "$cross_compiling" = yes; then :
25410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25412 as_fn_error $? "cannot run test program while cross compiling
25413 See \`config.log' for more details" "$LINENO" 5; }
25415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25416 /* end confdefs.h. */
25418 #include <sys/types.h>
25419 #include <pthread.h>
25422 pthread_mutex_t mutex;
25423 pthread_mutexattr_t attr;
25424 if (pthread_mutexattr_init(&attr))
25426 if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
25428 if (pthread_mutex_init(&mutex, &attr))
25430 if (pthread_mutexattr_destroy(&attr))
25432 if (pthread_mutex_destroy(&mutex))
25437 if ac_fn_c_try_run "$LINENO"; then :
25438 apr_cv_process_shared_works=yes
25440 apr_cv_process_shared_works=no
25442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25443 conftest.$ac_objext conftest.beam conftest.$ac_ext
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_process_shared_works" >&5
25448 $as_echo "$apr_cv_process_shared_works" >&6; }
25449 # Override detection of pthread_mutexattr_setpshared
25450 ac_cv_func_pthread_mutexattr_setpshared=$apr_cv_process_shared_works
25457 if test "$ac_cv_func_pthread_mutexattr_setpshared" = "yes"; then
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for robust cross-process mutex support" >&5
25460 $as_echo_n "checking for robust cross-process mutex support... " >&6; }
25461 if ${apr_cv_mutex_robust_shared+:} false; then :
25462 $as_echo_n "(cached) " >&6
25464 if test "$cross_compiling" = yes; then :
25465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25467 as_fn_error $? "cannot run test program while cross compiling
25468 See \`config.log' for more details" "$LINENO" 5; }
25470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25471 /* end confdefs.h. */
25473 #include <sys/types.h>
25474 #include <pthread.h>
25475 #include <stdlib.h>
25477 int main(int argc, char **argv)
25479 pthread_mutex_t mutex;
25480 pthread_mutexattr_t attr;
25482 if (pthread_mutexattr_init(&attr))
25484 if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
25486 if (pthread_mutexattr_setrobust_np(&attr, PTHREAD_MUTEX_ROBUST_NP))
25488 if (pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT))
25490 if (pthread_mutex_init(&mutex, &attr))
25492 if (pthread_mutexattr_destroy(&attr))
25494 if (pthread_mutex_destroy(&mutex))
25500 if ac_fn_c_try_run "$LINENO"; then :
25501 apr_cv_mutex_robust_shared=yes
25503 apr_cv_mutex_robust_shared=no
25505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25506 conftest.$ac_objext conftest.beam conftest.$ac_ext
25510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_robust_shared" >&5
25511 $as_echo "$apr_cv_mutex_robust_shared" >&6; }
25513 if test "$apr_cv_mutex_robust_shared" = "yes"; then
25515 $as_echo "#define HAVE_PTHREAD_MUTEX_ROBUST 1" >>confdefs.h
25522 # See which lock mechanisms we can support on this system.
25524 for ac_spec in header:semaphore.h func:sem_open func:sem_close func:sem_unlink func:sem_post func:sem_wait; do
25525 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25526 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25529 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25530 ac_var="ac_cv_header_$ac_item"
25533 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25534 ac_var="ac_cv_file_$ac_item"
25536 func ) ac_var="ac_cv_func_$ac_item" ;;
25537 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25538 define ) ac_var="ac_cv_define_$ac_item" ;;
25539 custom ) ac_var="$ac_item" ;;
25541 eval "ac_val=\$$ac_var"
25542 if test ".$ac_val" != .yes; then
25547 if test ".$ac_rc" = .yes; then
25556 for ac_spec in func:semget func:semctl define:SEM_UNDO; do
25557 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25558 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25561 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25562 ac_var="ac_cv_header_$ac_item"
25565 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25566 ac_var="ac_cv_file_$ac_item"
25568 func ) ac_var="ac_cv_func_$ac_item" ;;
25569 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25570 define ) ac_var="ac_cv_define_$ac_item" ;;
25571 custom ) ac_var="$ac_item" ;;
25573 eval "ac_val=\$$ac_var"
25574 if test ".$ac_val" != .yes; then
25579 if test ".$ac_rc" = .yes; then
25588 for ac_spec in func:flock define:LOCK_EX; do
25589 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25590 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25593 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25594 ac_var="ac_cv_header_$ac_item"
25597 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25598 ac_var="ac_cv_file_$ac_item"
25600 func ) ac_var="ac_cv_func_$ac_item" ;;
25601 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25602 define ) ac_var="ac_cv_define_$ac_item" ;;
25603 custom ) ac_var="$ac_item" ;;
25605 eval "ac_val=\$$ac_var"
25606 if test ".$ac_val" != .yes; then
25611 if test ".$ac_rc" = .yes; then
25620 for ac_spec in header:fcntl.h define:F_SETLK; do
25621 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25622 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25625 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25626 ac_var="ac_cv_header_$ac_item"
25629 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25630 ac_var="ac_cv_file_$ac_item"
25632 func ) ac_var="ac_cv_func_$ac_item" ;;
25633 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25634 define ) ac_var="ac_cv_define_$ac_item" ;;
25635 custom ) ac_var="$ac_item" ;;
25637 eval "ac_val=\$$ac_var"
25638 if test ".$ac_val" != .yes; then
25643 if test ".$ac_rc" = .yes; then
25651 # note: the current APR use of shared mutex requires /dev/zero
25653 for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared file:/dev/zero; do
25654 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25655 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25658 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25659 ac_var="ac_cv_header_$ac_item"
25662 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25663 ac_var="ac_cv_file_$ac_item"
25665 func ) ac_var="ac_cv_func_$ac_item" ;;
25666 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25667 define ) ac_var="ac_cv_define_$ac_item" ;;
25668 custom ) ac_var="$ac_item" ;;
25670 eval "ac_val=\$$ac_var"
25671 if test ".$ac_val" != .yes; then
25676 if test ".$ac_rc" = .yes; then
25678 hasprocpthreadser="1"
25681 hasprocpthreadser="0"
25685 for ac_spec in header:OS.h func:create_sem; do
25686 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25687 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25690 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25691 ac_var="ac_cv_header_$ac_item"
25694 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25695 ac_var="ac_cv_file_$ac_item"
25697 func ) ac_var="ac_cv_func_$ac_item" ;;
25698 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25699 define ) ac_var="ac_cv_define_$ac_item" ;;
25700 custom ) ac_var="$ac_item" ;;
25702 eval "ac_val=\$$ac_var"
25703 if test ".$ac_val" != .yes; then
25708 if test ".$ac_rc" = .yes; then
25717 # See which lock mechanism we'll select by default on this system.
25718 # The last APR_DECIDE to execute sets the default.
25719 # At this stage, we match the ordering in Apache 1.3
25720 # which is (highest to lowest): sysvsem -> fcntl -> flock.
25721 # POSIX semaphores and cross-process pthread mutexes are not
25722 # used by default since they have less desirable behaviour when
25723 # e.g. a process holding the mutex segfaults.
25724 # The BEOSSEM decision doesn't require any substitutions but is
25725 # included here to prevent the fcntl() branch being selected
25726 # from the decision making.
25727 ac_decision_item='apr_lock implementation method'
25728 ac_decision_msg='FAILED'
25732 for ac_spec in func:flock define:LOCK_EX; do
25733 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25734 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25737 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25738 ac_var="ac_cv_header_$ac_item"
25741 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25742 ac_var="ac_cv_file_$ac_item"
25744 func ) ac_var="ac_cv_func_$ac_item" ;;
25745 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25746 define ) ac_var="ac_cv_define_$ac_item" ;;
25747 custom ) ac_var="$ac_item" ;;
25749 eval "ac_val=\$$ac_var"
25750 if test ".$ac_val" != .yes; then
25755 if test ".$ac_rc" = .yes; then
25758 ac_decision='USE_FLOCK_SERIALIZE'
25759 ac_decision_msg='4.2BSD-style flock()'
25760 ac_decision_USE_FLOCK_SERIALIZE=yes
25761 ac_decision_USE_FLOCK_SERIALIZE_msg='4.2BSD-style flock()'
25769 for ac_spec in header:fcntl.h define:F_SETLK; do
25770 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25771 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25774 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25775 ac_var="ac_cv_header_$ac_item"
25778 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25779 ac_var="ac_cv_file_$ac_item"
25781 func ) ac_var="ac_cv_func_$ac_item" ;;
25782 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25783 define ) ac_var="ac_cv_define_$ac_item" ;;
25784 custom ) ac_var="$ac_item" ;;
25786 eval "ac_val=\$$ac_var"
25787 if test ".$ac_val" != .yes; then
25792 if test ".$ac_rc" = .yes; then
25795 ac_decision='USE_FCNTL_SERIALIZE'
25796 ac_decision_msg='SVR4-style fcntl()'
25797 ac_decision_USE_FCNTL_SERIALIZE=yes
25798 ac_decision_USE_FCNTL_SERIALIZE_msg='SVR4-style fcntl()'
25806 for ac_spec in func:semget func:semctl define:SEM_UNDO; do
25807 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25808 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25811 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25812 ac_var="ac_cv_header_$ac_item"
25815 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25816 ac_var="ac_cv_file_$ac_item"
25818 func ) ac_var="ac_cv_func_$ac_item" ;;
25819 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25820 define ) ac_var="ac_cv_define_$ac_item" ;;
25821 custom ) ac_var="$ac_item" ;;
25823 eval "ac_val=\$$ac_var"
25824 if test ".$ac_val" != .yes; then
25829 if test ".$ac_rc" = .yes; then
25832 ac_decision='USE_SYSVSEM_SERIALIZE'
25833 ac_decision_msg='SysV IPC semget()'
25834 ac_decision_USE_SYSVSEM_SERIALIZE=yes
25835 ac_decision_USE_SYSVSEM_SERIALIZE_msg='SysV IPC semget()'
25843 for ac_spec in header:OS.h func:create_sem; do
25844 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
25845 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
25848 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25849 ac_var="ac_cv_header_$ac_item"
25852 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
25853 ac_var="ac_cv_file_$ac_item"
25855 func ) ac_var="ac_cv_func_$ac_item" ;;
25856 struct ) ac_var="ac_cv_struct_$ac_item" ;;
25857 define ) ac_var="ac_cv_define_$ac_item" ;;
25858 custom ) ac_var="$ac_item" ;;
25860 eval "ac_val=\$$ac_var"
25861 if test ".$ac_val" != .yes; then
25866 if test ".$ac_rc" = .yes; then
25869 ac_decision='USE_BEOSSEM'
25870 ac_decision_msg='BeOS Semaphores'
25871 ac_decision_USE_BEOSSEM=yes
25872 ac_decision_USE_BEOSSEM_msg='BeOS Semaphores'
25879 if test "x$apr_lock_method" != "x"; then
25880 ac_decision="$apr_lock_method"
25881 eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\""
25884 if test ".$ac_decision" = .; then
25885 echo "$0:Error: decision on $ac_decision_item failed" 1>&2
25888 if test ".$ac_decision_msg" = .; then
25889 ac_decision_msg="$ac_decision"
25891 cat >>confdefs.h <<_ACEOF
25892 #define ${ac_decision_item} 1
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
25896 $as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
25899 cat >>confdefs.h <<_ACEOF
25900 #define $ac_decision 1
25909 case $ac_decision in
25910 USE_FLOCK_SERIALIZE )
25913 USE_FCNTL_SERIALIZE )
25916 USE_SYSVSEM_SERIALIZE )
25919 USE_POSIXSEM_SERIALIZE )
25922 USE_PROC_PTHREAD_SERIALIZE )
25930 if test $hasfcntlser = "1"; then
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl returns EACCES when F_SETLK is already held" >&5
25932 $as_echo_n "checking if fcntl returns EACCES when F_SETLK is already held... " >&6; }
25933 if test "$cross_compiling" = yes; then :
25934 apr_fcntl_tryacquire_eacces=0
25936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25937 /* end confdefs.h. */
25939 #ifdef HAVE_STDLIB_H
25940 #include <stdlib.h>
25942 #ifdef HAVE_SYS_TYPES_H
25943 #include <sys/types.h>
25945 #ifdef HAVE_SYS_STAT_H
25946 #include <sys/stat.h>
25948 #ifdef HAVE_SYS_WAIT_H
25949 #include <sys/wait.h>
25951 #if defined(HAVE_UNISTD_H)
25952 #include <unistd.h>
25958 struct flock proc_mutex_lock_it = {0};
25959 const char *fname = "conftest.fcntl";
25964 proc_mutex_lock_it.l_whence = SEEK_SET; /* from current point */
25965 proc_mutex_lock_it.l_type = F_WRLCK; /* set exclusive/write lock */
25967 fd = creat(fname, S_IRWXU);
25970 if (rc = lockit()) {
25982 exit(WEXITSTATUS(status) != EACCES);
25988 rc = fcntl(fd, F_SETLK, &proc_mutex_lock_it);
25989 } while ( rc < 0 && errno == EINTR);
25991 return (rc < 0) ? errno : 0;
25994 if ac_fn_c_try_run "$LINENO"; then :
25995 apr_fcntl_tryacquire_eacces=1
25997 apr_fcntl_tryacquire_eacces=0
25999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26000 conftest.$ac_objext conftest.beam conftest.$ac_ext
26005 if test "$apr_fcntl_tryacquire_eacces" = "1"; then
26007 $as_echo "#define FCNTL_TRYACQUIRE_EACCES 1" >>confdefs.h
26009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26010 $as_echo "yes" >&6; }
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26013 $as_echo "no" >&6; }
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if all interprocess locks affect threads" >&5
26030 $as_echo_n "checking if all interprocess locks affect threads... " >&6; }
26031 if test "x$apr_process_lock_is_global" = "xyes"; then
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26034 $as_echo "yes" >&6; }
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26038 $as_echo "no" >&6; }
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if POSIX sems affect threads in the same process" >&5
26044 $as_echo_n "checking if POSIX sems affect threads in the same process... " >&6; }
26045 if test "x$apr_posixsem_is_global" = "xyes"; then
26047 $as_echo "#define POSIXSEM_IS_GLOBAL 1" >>confdefs.h
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26050 $as_echo "yes" >&6; }
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26053 $as_echo "no" >&6; }
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SysV sems affect threads in the same process" >&5
26057 $as_echo_n "checking if SysV sems affect threads in the same process... " >&6; }
26058 if test "x$apr_sysvsem_is_global" = "xyes"; then
26060 $as_echo "#define SYSVSEM_IS_GLOBAL 1" >>confdefs.h
26062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26063 $as_echo "yes" >&6; }
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26066 $as_echo "no" >&6; }
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl locks affect threads in the same process" >&5
26070 $as_echo_n "checking if fcntl locks affect threads in the same process... " >&6; }
26071 if test "x$apr_fcntl_is_global" = "xyes"; then
26073 $as_echo "#define FCNTL_IS_GLOBAL 1" >>confdefs.h
26075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26076 $as_echo "yes" >&6; }
26078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26079 $as_echo "no" >&6; }
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flock locks affect threads in the same process" >&5
26083 $as_echo_n "checking if flock locks affect threads in the same process... " >&6; }
26084 if test "x$apr_flock_is_global" = "xyes"; then
26086 $as_echo "#define FLOCK_IS_GLOBAL 1" >>confdefs.h
26088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26089 $as_echo "yes" >&6; }
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26092 $as_echo "no" >&6; }
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for entropy source" >&5
26096 $as_echo_n "checking for entropy source... " >&6; }
26101 # Check whether --with-egd was given.
26102 if test "${with_egd+set}" = set; then :
26104 $as_echo "#define HAVE_EGD 1" >>confdefs.h
26106 if test "$withval" = "yes"; then
26108 cat >>confdefs.h <<_ACEOF
26109 #define EGD_DEFAULT_SOCKET "/var/run/egd-pool","/dev/egd-pool","/etc/egd-pool","/etc/entropy"
26113 cat >>confdefs.h <<_ACEOF
26114 #define EGD_DEFAULT_SOCKET "$withval"
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: EGD-compatible daemon" >&5
26119 $as_echo "EGD-compatible daemon" >&6; }
26125 if test "$rand" != "1"; then
26127 # Check whether --with-devrandom was given.
26128 if test "${with_devrandom+set}" = set; then :
26129 withval=$with_devrandom; apr_devrandom="$withval"
26131 apr_devrandom="yes"
26135 if test "$apr_devrandom" = "yes"; then
26136 # /dev/random on OpenBSD doesn't provide random data, so
26137 # prefer /dev/arandom, which does; see random(4).
26138 for f in /dev/arandom /dev/urandom /dev/random; do
26139 if test -r $f; then
26145 elif test "$apr_devrandom" != "no"; then
26146 if test -r "$apr_devrandom"; then
26149 as_fn_error $? "$apr_devrandom not found or unreadable." "$LINENO" 5
26153 if test "$rand" = "1"; then
26156 if test $os_version -lt 1700; then
26158 why_no_rand=" ($apr_devrandom unusable on z/OS before V1R7)"
26164 if test "$rand" = "1"; then
26166 cat >>confdefs.h <<_ACEOF
26167 #define DEV_RANDOM "$apr_devrandom"
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_devrandom" >&5
26171 $as_echo "$apr_devrandom" >&6; }
26175 if test "$rand" != "1"; then
26177 # we have built in support for OS/2
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS/2 builtin random" >&5
26180 $as_echo "Using OS/2 builtin random" >&6; }
26184 if test "$rand" != "1"; then
26185 if test "$ac_cv_lib_truerand_main" = "yes"; then
26187 $as_echo "#define HAVE_TRUERAND 1" >>confdefs.h
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: truerand" >&5
26190 $as_echo "truerand" >&6; }
26193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found$why_no_rand" >&5
26194 $as_echo "not found$why_no_rand" >&6; }
26204 echo "${nl}Checking for File Info Support..."
26205 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "
26206 #ifdef HAVE_SYS_TYPES_H
26207 #include <sys/types.h>
26209 #ifdef HAVE_SYS_STAT_H
26210 #include <sys/stat.h>
26212 #ifdef HAVE_UNISTD_H
26213 #include <unistd.h>
26216 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26218 cat >>confdefs.h <<_ACEOF
26219 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26224 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "
26225 #ifdef HAVE_SYS_TYPES_H
26226 #include <sys/types.h>
26228 #ifdef HAVE_SYS_STAT_H
26229 #include <sys/stat.h>
26231 #ifdef HAVE_UNISTD_H
26232 #include <unistd.h>
26235 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
26237 cat >>confdefs.h <<_ACEOF
26238 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
26243 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "
26244 #ifdef HAVE_SYS_TYPES_H
26245 #include <sys/types.h>
26247 #ifdef HAVE_SYS_STAT_H
26248 #include <sys/stat.h>
26250 #ifdef HAVE_UNISTD_H
26251 #include <unistd.h>
26254 if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes; then :
26256 cat >>confdefs.h <<_ACEOF
26257 #define HAVE_STRUCT_STAT_ST_CTIMENSEC 1
26262 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "
26263 #ifdef HAVE_SYS_TYPES_H
26264 #include <sys/types.h>
26266 #ifdef HAVE_SYS_STAT_H
26267 #include <sys/stat.h>
26269 #ifdef HAVE_UNISTD_H
26270 #include <unistd.h>
26273 if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
26275 cat >>confdefs.h <<_ACEOF
26276 #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
26281 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "
26282 #ifdef HAVE_SYS_TYPES_H
26283 #include <sys/types.h>
26285 #ifdef HAVE_SYS_STAT_H
26286 #include <sys/stat.h>
26288 #ifdef HAVE_UNISTD_H
26289 #include <unistd.h>
26292 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
26294 cat >>confdefs.h <<_ACEOF
26295 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
26300 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "
26301 #ifdef HAVE_SYS_TYPES_H
26302 #include <sys/types.h>
26304 #ifdef HAVE_SYS_STAT_H
26305 #include <sys/stat.h>
26307 #ifdef HAVE_UNISTD_H
26308 #include <unistd.h>
26311 if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = xyes; then :
26313 cat >>confdefs.h <<_ACEOF
26314 #define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
26319 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "
26320 #ifdef HAVE_SYS_TYPES_H
26321 #include <sys/types.h>
26323 #ifdef HAVE_SYS_STAT_H
26324 #include <sys/stat.h>
26326 #ifdef HAVE_UNISTD_H
26327 #include <unistd.h>
26330 if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
26332 cat >>confdefs.h <<_ACEOF
26333 #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
26338 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime_n" "ac_cv_member_struct_stat_st_atime_n" "
26339 #ifdef HAVE_SYS_TYPES_H
26340 #include <sys/types.h>
26342 #ifdef HAVE_SYS_STAT_H
26343 #include <sys/stat.h>
26345 #ifdef HAVE_UNISTD_H
26346 #include <unistd.h>
26349 if test "x$ac_cv_member_struct_stat_st_atime_n" = xyes; then :
26351 cat >>confdefs.h <<_ACEOF
26352 #define HAVE_STRUCT_STAT_ST_ATIME_N 1
26357 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime_n" "ac_cv_member_struct_stat_st_ctime_n" "
26358 #ifdef HAVE_SYS_TYPES_H
26359 #include <sys/types.h>
26361 #ifdef HAVE_SYS_STAT_H
26362 #include <sys/stat.h>
26364 #ifdef HAVE_UNISTD_H
26365 #include <unistd.h>
26368 if test "x$ac_cv_member_struct_stat_st_ctime_n" = xyes; then :
26370 cat >>confdefs.h <<_ACEOF
26371 #define HAVE_STRUCT_STAT_ST_CTIME_N 1
26376 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_n" "ac_cv_member_struct_stat_st_mtime_n" "
26377 #ifdef HAVE_SYS_TYPES_H
26378 #include <sys/types.h>
26380 #ifdef HAVE_SYS_STAT_H
26381 #include <sys/stat.h>
26383 #ifdef HAVE_UNISTD_H
26384 #include <unistd.h>
26387 if test "x$ac_cv_member_struct_stat_st_mtime_n" = xyes; then :
26389 cat >>confdefs.h <<_ACEOF
26390 #define HAVE_STRUCT_STAT_ST_MTIME_N 1
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inode member of struct dirent" >&5
26399 $as_echo_n "checking for inode member of struct dirent... " >&6; }
26400 if ${apr_cv_dirent_inode+:} false; then :
26401 $as_echo_n "(cached) " >&6
26404 apr_cv_dirent_inode=no
26405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26406 /* end confdefs.h. */
26408 #include <sys/types.h>
26409 #include <dirent.h>
26418 struct dirent de; de.d_fileno;
26424 if ac_fn_c_try_compile "$LINENO"; then :
26425 apr_cv_dirent_inode=d_fileno
26427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26428 if test "$apr_cv_dirent_inode" = "no"; then
26429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26430 /* end confdefs.h. */
26432 #include <sys/types.h>
26433 #include <dirent.h>
26442 struct dirent de; de.d_ino;
26448 if ac_fn_c_try_compile "$LINENO"; then :
26449 apr_cv_dirent_inode=d_ino
26451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_inode" >&5
26456 $as_echo "$apr_cv_dirent_inode" >&6; }
26457 if test "$apr_cv_dirent_inode" != "no"; then
26459 cat >>confdefs.h <<_ACEOF
26460 #define DIRENT_INODE $apr_cv_dirent_inode
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file type member of struct dirent" >&5
26467 $as_echo_n "checking for file type member of struct dirent... " >&6; }
26468 if ${apr_cv_dirent_type+:} false; then :
26469 $as_echo_n "(cached) " >&6
26472 apr_cv_dirent_type=no
26473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26474 /* end confdefs.h. */
26476 #include <sys/types.h>
26477 #include <dirent.h>
26483 struct dirent de; de.d_type = DT_REG;
26489 if ac_fn_c_try_compile "$LINENO"; then :
26490 apr_cv_dirent_type=d_type
26492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_type" >&5
26496 $as_echo "$apr_cv_dirent_type" >&6; }
26497 if test "$apr_cv_dirent_type" != "no"; then
26499 cat >>confdefs.h <<_ACEOF
26500 #define DIRENT_TYPE $apr_cv_dirent_type
26506 echo "${nl}Checking for OS UUID Support..."
26508 for ac_header in uuid.h uuid/uuid.h sys/uuid.h
26510 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26511 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26512 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26513 cat >>confdefs.h <<_ACEOF
26514 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26522 apr_revert_save_LIBS=$LIBS
26524 # Prefer the flavor(s) that live in libc;
26525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
26526 $as_echo_n "checking for library containing uuid_create... " >&6; }
26527 if ${ac_cv_search_uuid_create+:} false; then :
26528 $as_echo_n "(cached) " >&6
26530 ac_func_search_save_LIBS=$LIBS
26531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26532 /* end confdefs.h. */
26534 /* Override any GCC internal prototype to avoid an error.
26535 Use char because int might match the return type of a GCC
26536 builtin and then its argument prototype would still apply. */
26540 char uuid_create ();
26544 return uuid_create ();
26549 for ac_lib in '' uuid; do
26550 if test -z "$ac_lib"; then
26551 ac_res="none required"
26554 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26556 if ac_fn_c_try_link "$LINENO"; then :
26557 ac_cv_search_uuid_create=$ac_res
26559 rm -f core conftest.err conftest.$ac_objext \
26561 if ${ac_cv_search_uuid_create+:} false; then :
26565 if ${ac_cv_search_uuid_create+:} false; then :
26568 ac_cv_search_uuid_create=no
26570 rm conftest.$ac_ext
26571 LIBS=$ac_func_search_save_LIBS
26573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
26574 $as_echo "$ac_cv_search_uuid_create" >&6; }
26575 ac_res=$ac_cv_search_uuid_create
26576 if test "$ac_res" != no; then :
26577 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
26582 $as_echo_n "checking for library containing uuid_generate... " >&6; }
26583 if ${ac_cv_search_uuid_generate+:} false; then :
26584 $as_echo_n "(cached) " >&6
26586 ac_func_search_save_LIBS=$LIBS
26587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26588 /* end confdefs.h. */
26590 /* Override any GCC internal prototype to avoid an error.
26591 Use char because int might match the return type of a GCC
26592 builtin and then its argument prototype would still apply. */
26596 char uuid_generate ();
26600 return uuid_generate ();
26605 for ac_lib in '' uuid; do
26606 if test -z "$ac_lib"; then
26607 ac_res="none required"
26610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26612 if ac_fn_c_try_link "$LINENO"; then :
26613 ac_cv_search_uuid_generate=$ac_res
26615 rm -f core conftest.err conftest.$ac_objext \
26617 if ${ac_cv_search_uuid_generate+:} false; then :
26621 if ${ac_cv_search_uuid_generate+:} false; then :
26624 ac_cv_search_uuid_generate=no
26626 rm conftest.$ac_ext
26627 LIBS=$ac_func_search_save_LIBS
26629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
26630 $as_echo "$ac_cv_search_uuid_generate" >&6; }
26631 ac_res=$ac_cv_search_uuid_generate
26632 if test "$ac_res" != no; then :
26633 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26637 if test "$ac_cv_search_uuid_create" = "none required" -o \
26638 "$ac_cv_search_uuid_generate" = "none required"; then
26639 LIBS=$apr_revert_save_LIBS
26642 for ac_func in uuid_create uuid_generate
26644 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26645 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26646 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26647 cat >>confdefs.h <<_ACEOF
26648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for os uuid usability" >&5
26656 $as_echo_n "checking for os uuid usability... " >&6; }
26657 if ${apr_cv_osuuid+:} false; then :
26658 $as_echo_n "(cached) " >&6
26661 # Ensure this test closely mirrors misc/unix/rand.c!
26663 #if defined(HAVE_SYS_TYPES_H)
26664 #include <sys/types.h>
26666 #if defined(HAVE_UNISTD_H)
26667 #include <unistd.h>
26669 #if defined(HAVE_UUID_H)
26671 #elif defined(HAVE_UUID_UUID_H)
26672 #include <uuid/uuid.h>
26673 #elif defined(HAVE_SYS_UUID_H)
26674 #include <sys/uuid.h>
26678 if test $ac_cv_func_uuid_create = yes; then
26679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26680 /* end confdefs.h. */
26688 uuid_create(&g, &s);
26689 if (s == uuid_s_ok) s = 0;
26695 if ac_fn_c_try_link "$LINENO"; then :
26698 apr_cv_func_uuid_create=no
26700 rm -f core conftest.err conftest.$ac_objext \
26701 conftest$ac_exeext conftest.$ac_ext
26703 if test $ac_cv_func_uuid_generate = yes; then
26704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26705 /* end confdefs.h. */
26718 if ac_fn_c_try_link "$LINENO"; then :
26721 apr_cv_func_uuid_generate=no
26723 rm -f core conftest.err conftest.$ac_objext \
26724 conftest$ac_exeext conftest.$ac_ext
26728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_osuuid" >&5
26729 $as_echo "$apr_cv_osuuid" >&6; }
26731 if test $apr_cv_osuuid = yes; then
26735 LIBS=$apr_revert_save_LIBS
26740 echo "${nl}Checking for Time Support..."
26742 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
26743 #include <sys/types.h>
26746 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
26748 cat >>confdefs.h <<_ACEOF
26749 #define HAVE_STRUCT_TM_TM_GMTOFF 1
26754 ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "
26755 #include <sys/types.h>
26758 if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
26760 cat >>confdefs.h <<_ACEOF
26761 #define HAVE_STRUCT_TM___TM_GMTOFF 1
26768 echo "${nl}Checking for Networking support..."
26770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type in_addr" >&5
26771 $as_echo_n "checking for type in_addr... " >&6; }
26772 if ${ac_cv_type_in_addr+:} false; then :
26773 $as_echo_n "(cached) " >&6
26776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26777 /* end confdefs.h. */
26779 #ifdef HAVE_SYS_TYPES_H
26780 #include <sys/types.h>
26782 #ifdef HAVE_NETINET_IN_H
26783 #include <netinet/in.h>
26785 #ifdef HAVE_WINSOCK2_H
26786 #include <winsock2.h>
26793 struct in_addr arg;
26794 arg.s_addr = htonl(INADDR_ANY);
26800 if ac_fn_c_try_compile "$LINENO"; then :
26801 ac_cv_type_in_addr="yes"
26804 ac_cv_type_in_addr="no"
26806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr" >&5
26810 $as_echo "$ac_cv_type_in_addr" >&6; }
26812 if test "$ac_cv_type_in_addr" = "yes"; then
26818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fd == socket on this platform" >&5
26819 $as_echo_n "checking if fd == socket on this platform... " >&6; }
26820 if test "x$file_as_socket" != "x0" ; then
26821 file_as_socket="1";
26830 if test "$ac_cv_func_poll $file_as_socket" = "yes 1"; then
26832 $as_echo "#define WAITIO_USES_POLL 1" >>confdefs.h
26836 # Check the types only if we have gethostbyname_r
26837 if test "$ac_cv_func_gethostbyname_r" = "yes"; then
26840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking style of gethostbyname_r routine" >&5
26841 $as_echo_n "checking style of gethostbyname_r routine... " >&6; }
26842 if ${ac_cv_gethostbyname_r_style+:} false; then :
26843 $as_echo_n "(cached) " >&6
26845 apr_save_CFLAGS=$CFLAGS
26846 CFLAGS="$CFLAGS $CFLAGS_WARN"
26847 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26848 CFLAGS="$CFLAGS -Werror"
26850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26851 /* end confdefs.h. */
26852 #include "confdefs.h"
26855 #ifdef HAVE_SYS_TYPES_H
26856 #include <sys/types.h>
26858 #ifdef HAVE_NETINET_IN_H
26859 #include <netinet/in.h>
26861 #ifdef HAVE_ARPA_INET_H
26862 #include <arpa/inet.h>
26864 #ifdef HAVE_NETDB_H
26867 #ifdef HAVE_STDLIB_H
26868 #include <stdlib.h>
26871 int main(int argc, const char *const *argv) {
26873 int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
26874 (char *) 0, 0, (struct hostent **) 0, &tmp);
26875 /* use tmp to suppress the warning */
26881 if ac_fn_c_try_compile "$LINENO"; then :
26882 ac_cv_gethostbyname_r_style=glibc2
26884 ac_cv_gethostbyname_r_style=none
26886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26887 CFLAGS=$apr_save_CFLAGS
26890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_style" >&5
26891 $as_echo "$ac_cv_gethostbyname_r_style" >&6; }
26893 if test "$ac_cv_gethostbyname_r_style" = "glibc2"; then
26895 $as_echo "#define GETHOSTBYNAME_R_GLIBC2 1" >>confdefs.h
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 3rd argument to the gethostbyname_r routines" >&5
26900 $as_echo_n "checking 3rd argument to the gethostbyname_r routines... " >&6; }
26901 if ${ac_cv_gethostbyname_r_arg+:} false; then :
26902 $as_echo_n "(cached) " >&6
26904 apr_save_CFLAGS=$CFLAGS
26905 CFLAGS="$CFLAGS $CFLAGS_WARN"
26906 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26907 CFLAGS="$CFLAGS -Werror"
26909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26910 /* end confdefs.h. */
26911 #include "confdefs.h"
26914 #ifdef HAVE_SYS_TYPES_H
26915 #include <sys/types.h>
26917 #ifdef HAVE_NETINET_IN_H
26918 #include <netinet/in.h>
26920 #ifdef HAVE_ARPA_INET_H
26921 #include <arpa/inet.h>
26923 #ifdef HAVE_NETDB_H
26926 #ifdef HAVE_STDLIB_H
26927 #include <stdlib.h>
26930 int main(int argc, const char *const *argv) {
26932 int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
26933 (struct hostent_data *) 0);
26934 /* use tmp to suppress the warning */
26940 if ac_fn_c_try_compile "$LINENO"; then :
26941 ac_cv_gethostbyname_r_arg=hostent_data
26943 ac_cv_gethostbyname_r_arg=char
26945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26946 CFLAGS=$apr_save_CFLAGS
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_arg" >&5
26950 $as_echo "$ac_cv_gethostbyname_r_arg" >&6; }
26952 if test "$ac_cv_gethostbyname_r_arg" = "hostent_data"; then
26954 $as_echo "#define GETHOSTBYNAME_R_HOSTENT_DATA 1" >>confdefs.h
26960 # Check the types only if we have getservbyname_r
26961 if test "$ac_cv_func_getservbyname_r" = "yes"; then
26964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking style of getservbyname_r routine" >&5
26965 $as_echo_n "checking style of getservbyname_r routine... " >&6; }
26966 if ${ac_cv_getservbyname_r_style+:} false; then :
26967 $as_echo_n "(cached) " >&6
26970 apr_save_CFLAGS=$CFLAGS
26971 CFLAGS="$CFLAGS $CFLAGS_WARN"
26972 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26973 CFLAGS="$CFLAGS -Werror"
26975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26976 /* end confdefs.h. */
26977 #include "confdefs.h"
26980 #ifdef HAVE_SYS_TYPES_H
26981 #include <sys/types.h>
26983 #ifdef HAVE_NETINET_IN_H
26984 #include <netinet/in.h>
26986 #ifdef HAVE_ARPA_INET_H
26987 #include <arpa/inet.h>
26989 #ifdef HAVE_NETDB_H
26992 #ifdef HAVE_STDLIB_H
26993 #include <stdlib.h>
26996 int main(int argc, const char *const *argv) {
26998 int tmp = getservbyname_r((const char *) 0, (const char *) 0,
26999 (struct servent *) 0, (char *) 0, 0,
27000 (struct servent **) 0);
27001 /* use tmp to suppress the warning */
27007 if ac_fn_c_try_compile "$LINENO"; then :
27008 ac_cv_getservbyname_r_style=glibc2
27010 ac_cv_getservbyname_r_style=none
27012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27013 CFLAGS=$apr_save_CFLAGS
27016 if test "$ac_cv_getservbyname_r_style" = "none"; then
27017 apr_save_CFLAGS=$CFLAGS
27018 CFLAGS="$CFLAGS $CFLAGS_WARN"
27019 if test "$ac_cv_c_compiler_gnu" = "yes"; then
27020 CFLAGS="$CFLAGS -Werror"
27022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27023 /* end confdefs.h. */
27024 #include "confdefs.h"
27027 #ifdef HAVE_SYS_TYPES_H
27028 #include <sys/types.h>
27030 #ifdef HAVE_NETINET_IN_H
27031 #include <netinet/in.h>
27033 #ifdef HAVE_ARPA_INET_H
27034 #include <arpa/inet.h>
27036 #ifdef HAVE_NETDB_H
27039 #ifdef HAVE_STDLIB_H
27040 #include <stdlib.h>
27043 int main(int argc, const char *const *argv) {
27045 struct servent *tmp = getservbyname_r((const char *) 0, (const char *) 0,
27046 (struct servent *) 0, (char *) 0, 0);
27047 /* use tmp to suppress the warning */
27053 if ac_fn_c_try_compile "$LINENO"; then :
27054 ac_cv_getservbyname_r_style=solaris
27056 ac_cv_getservbyname_r_style=none
27058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27059 CFLAGS=$apr_save_CFLAGS
27063 if test "$ac_cv_getservbyname_r_style" = "none"; then
27064 apr_save_CFLAGS=$CFLAGS
27065 CFLAGS="$CFLAGS $CFLAGS_WARN"
27066 if test "$ac_cv_c_compiler_gnu" = "yes"; then
27067 CFLAGS="$CFLAGS -Werror"
27069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27070 /* end confdefs.h. */
27071 #include "confdefs.h"
27074 #ifdef HAVE_SYS_TYPES_H
27075 #include <sys/types.h>
27077 #ifdef HAVE_NETINET_IN_H
27078 #include <netinet/in.h>
27080 #ifdef HAVE_ARPA_INET_H
27081 #include <arpa/inet.h>
27083 #ifdef HAVE_NETDB_H
27086 #ifdef HAVE_STDLIB_H
27087 #include <stdlib.h>
27090 int main(int argc, const char *const *argv) {
27092 int tmp = getservbyname_r((const char *) 0, (const char *) 0,
27093 (struct servent *) 0, (struct servent_data *) 0);
27094 /* use tmp to suppress the warning */
27100 if ac_fn_c_try_compile "$LINENO"; then :
27101 ac_cv_getservbyname_r_style=osf1
27103 ac_cv_getservbyname_r_style=none
27105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27106 CFLAGS=$apr_save_CFLAGS
27111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_getservbyname_r_style" >&5
27112 $as_echo "$ac_cv_getservbyname_r_style" >&6; }
27114 if test "$ac_cv_getservbyname_r_style" = "glibc2"; then
27116 $as_echo "#define GETSERVBYNAME_R_GLIBC2 1" >>confdefs.h
27118 elif test "$ac_cv_getservbyname_r_style" = "solaris"; then
27120 $as_echo "#define GETSERVBYNAME_R_SOLARIS 1" >>confdefs.h
27122 elif test "$ac_cv_getservbyname_r_style" = "osf1"; then
27124 $as_echo "#define GETSERVBYNAME_R_OSF1 1" >>confdefs.h
27131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TCP_NODELAY setting is inherited from listening sockets" >&5
27132 $as_echo_n "checking if TCP_NODELAY setting is inherited from listening sockets... " >&6; }
27133 if ${ac_cv_tcp_nodelay_inherited+:} false; then :
27134 $as_echo_n "(cached) " >&6
27137 if test "$cross_compiling" = yes; then :
27139 ac_cv_tcp_nodelay_inherited="yes"
27142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27143 /* end confdefs.h. */
27146 #ifdef HAVE_SYS_TYPES_H
27147 #include <sys/types.h>
27149 #ifdef HAVE_SYS_SOCKET_H
27150 #include <sys/socket.h>
27152 #ifdef HAVE_NETINET_IN_H
27153 #include <netinet/in.h>
27155 #ifdef HAVE_NETINET_TCP_H
27156 #include <netinet/tcp.h>
27158 #ifndef HAVE_SOCKLEN_T
27159 typedef int socklen_t;
27162 int listen_s, connected_s, client_s;
27163 int listen_port, rc;
27164 struct sockaddr_in sa;
27166 socklen_t option_len;
27169 listen_s = socket(AF_INET, SOCK_STREAM, 0);
27170 if (listen_s < 0) {
27175 rc = setsockopt(listen_s, IPPROTO_TCP, TCP_NODELAY, &option, sizeof option);
27177 perror("setsockopt TCP_NODELAY");
27180 memset(&sa, 0, sizeof sa);
27181 sa.sin_family = AF_INET;
27183 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27185 /* leave port 0 to get ephemeral */
27186 rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
27188 perror("bind for ephemeral port");
27191 /* find ephemeral port */
27192 sa_len = sizeof(sa);
27193 rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
27195 perror("getsockname");
27198 listen_port = sa.sin_port;
27199 rc = listen(listen_s, 5);
27204 client_s = socket(AF_INET, SOCK_STREAM, 0);
27205 if (client_s < 0) {
27209 memset(&sa, 0, sizeof sa);
27210 sa.sin_family = AF_INET;
27211 sa.sin_port = listen_port;
27213 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27215 /* leave sin_addr all zeros to use loopback */
27216 rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
27221 sa_len = sizeof sa;
27222 connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
27223 if (connected_s < 0) {
27227 option_len = sizeof option;
27228 rc = getsockopt(connected_s, IPPROTO_TCP, TCP_NODELAY, &option, &option_len);
27230 perror("getsockopt");
27234 fprintf(stderr, "TCP_NODELAY is not set in the child.\n");
27241 if ac_fn_c_try_run "$LINENO"; then :
27243 ac_cv_tcp_nodelay_inherited="yes"
27247 ac_cv_tcp_nodelay_inherited="no"
27250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27251 conftest.$ac_objext conftest.beam conftest.$ac_ext
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tcp_nodelay_inherited" >&5
27256 $as_echo "$ac_cv_tcp_nodelay_inherited" >&6; }
27257 if test "$ac_cv_tcp_nodelay_inherited" = "yes"; then
27258 tcp_nodelay_inherited=1
27260 tcp_nodelay_inherited=0
27264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if O_NONBLOCK setting is inherited from listening sockets" >&5
27265 $as_echo_n "checking if O_NONBLOCK setting is inherited from listening sockets... " >&6; }
27266 if ${ac_cv_o_nonblock_inherited+:} false; then :
27267 $as_echo_n "(cached) " >&6
27270 if test "$cross_compiling" = yes; then :
27272 ac_cv_o_nonblock_inherited="yes"
27275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27276 /* end confdefs.h. */
27278 #ifdef HAVE_STDLIB_H
27279 #include <stdlib.h>
27281 #ifdef HAVE_STRING_H
27282 #include <string.h>
27284 #ifdef HAVE_STDIO_H
27287 #ifdef HAVE_SYS_TYPES_H
27288 #include <sys/types.h>
27290 #ifdef HAVE_SYS_SOCKET_H
27291 #include <sys/socket.h>
27293 #ifdef HAVE_SYS_TIME_H
27294 #include <sys/time.h>
27296 #ifdef HAVE_SYS_SELECT_H
27297 #include <sys/select.h>
27299 #ifdef HAVE_NETINET_IN_H
27300 #include <netinet/in.h>
27302 #ifdef HAVE_NETINET_TCP_H
27303 #include <netinet/tcp.h>
27305 #ifndef HAVE_SOCKLEN_T
27306 typedef int socklen_t;
27308 #ifdef HAVE_FCNTL_H
27312 int listen_s, connected_s, client_s;
27313 int listen_port, rc;
27314 struct sockaddr_in sa;
27319 listen_s = socket(AF_INET, SOCK_STREAM, 0);
27320 if (listen_s < 0) {
27324 memset(&sa, 0, sizeof sa);
27325 sa.sin_family = AF_INET;
27327 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27329 /* leave port 0 to get ephemeral */
27330 rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
27332 perror("bind for ephemeral port");
27335 /* find ephemeral port */
27336 sa_len = sizeof(sa);
27337 rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
27339 perror("getsockname");
27342 listen_port = sa.sin_port;
27343 rc = listen(listen_s, 5);
27348 rc = fcntl(listen_s, F_SETFL, O_NONBLOCK);
27350 perror("fcntl(F_SETFL)");
27353 client_s = socket(AF_INET, SOCK_STREAM, 0);
27354 if (client_s < 0) {
27358 memset(&sa, 0, sizeof sa);
27359 sa.sin_family = AF_INET;
27360 sa.sin_port = listen_port;
27362 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
27364 /* leave sin_addr all zeros to use loopback */
27365 rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
27370 sa_len = sizeof sa;
27371 /* 1 second select timeout */
27374 /* Set up fd set */
27376 FD_SET(listen_s, &fds);
27377 /* Wait for socket to become readable */
27378 rc = select(listen_s + 1, &fds, NULL, NULL, &tv);
27384 fprintf(stderr, "Socket failed to become readable (timeout)\n");
27387 if (!FD_ISSET(listen_s, &fds)) {
27388 fprintf(stderr, "Socket failed to become readable (selected another fd)\n");
27391 connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
27392 if (connected_s < 0) {
27396 rc = fcntl(connected_s, F_GETFL, 0);
27398 perror("fcntl(F_GETFL)");
27401 if (!(rc & O_NONBLOCK)) {
27402 fprintf(stderr, "O_NONBLOCK is not set in the child.\n");
27409 if ac_fn_c_try_run "$LINENO"; then :
27411 ac_cv_o_nonblock_inherited="yes"
27415 ac_cv_o_nonblock_inherited="no"
27418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27419 conftest.$ac_objext conftest.beam conftest.$ac_ext
27423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_nonblock_inherited" >&5
27424 $as_echo "$ac_cv_o_nonblock_inherited" >&6; }
27425 if test "$ac_cv_o_nonblock_inherited" = "yes"; then
27426 o_nonblock_inherited=1
27428 o_nonblock_inherited=0
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCP_NODELAY and TCP_CORK can both be enabled" >&5
27433 $as_echo_n "checking whether TCP_NODELAY and TCP_CORK can both be enabled... " >&6; }
27434 if ${apr_cv_tcp_nodelay_with_cork+:} false; then :
27435 $as_echo_n "(cached) " >&6
27437 if test "$cross_compiling" = yes; then :
27438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27440 as_fn_error $? "cannot run test program while cross compiling
27441 See \`config.log' for more details" "$LINENO" 5; }
27443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27444 /* end confdefs.h. */
27446 #ifdef HAVE_SYS_TYPES_H
27447 #include <sys/types.h>
27449 #ifdef HAVE_SYS_SOCKET_H
27450 #include <sys/socket.h>
27452 #ifdef HAVE_NETINET_IN_H
27453 #include <netinet/in.h>
27455 #ifdef HAVE_NETINET_TCP_H
27456 #include <netinet/tcp.h>
27459 #include <stdlib.h>
27467 fd = socket(AF_INET, SOCK_STREAM, 0);
27473 rc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &flag, sizeof flag);
27475 perror("setsockopt TCP_NODELAY");
27480 rc = setsockopt(fd, IPPROTO_TCP, TCP_CORK, &flag, sizeof flag);
27482 perror("setsockopt TCP_CORK");
27492 if ac_fn_c_try_run "$LINENO"; then :
27493 apr_cv_tcp_nodelay_with_cork=yes
27495 apr_cv_tcp_nodelay_with_cork=no
27497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27498 conftest.$ac_objext conftest.beam conftest.$ac_ext
27502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_tcp_nodelay_with_cork" >&5
27503 $as_echo "$apr_cv_tcp_nodelay_with_cork" >&6; }
27505 if test "$apr_cv_tcp_nodelay_with_cork" = "yes"; then
27507 $as_echo "#define HAVE_TCP_NODELAY_WITH_CORK 1" >>confdefs.h
27512 # Look for a way of corking TCP...
27514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_CORK in netinet/tcp.h" >&5
27515 $as_echo_n "checking for TCP_CORK in netinet/tcp.h... " >&6; }
27516 if ${ac_cv_define_TCP_CORK+:} false; then :
27517 $as_echo_n "(cached) " >&6
27520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27521 /* end confdefs.h. */
27523 #include <netinet/tcp.h>
27529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27530 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
27531 ac_cv_define_TCP_CORK=yes
27533 ac_cv_define_TCP_CORK=no
27539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_CORK" >&5
27540 $as_echo "$ac_cv_define_TCP_CORK" >&6; }
27541 if test "$ac_cv_define_TCP_CORK" = "yes"; then
27543 $as_echo "#define HAVE_TCP_CORK 1" >>confdefs.h
27548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_NOPUSH in netinet/tcp.h" >&5
27549 $as_echo_n "checking for TCP_NOPUSH in netinet/tcp.h... " >&6; }
27550 if ${ac_cv_define_TCP_NOPUSH+:} false; then :
27551 $as_echo_n "(cached) " >&6
27554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27555 /* end confdefs.h. */
27557 #include <netinet/tcp.h>
27563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27564 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
27565 ac_cv_define_TCP_NOPUSH=yes
27567 ac_cv_define_TCP_NOPUSH=no
27573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_NOPUSH" >&5
27574 $as_echo "$ac_cv_define_TCP_NOPUSH" >&6; }
27575 if test "$ac_cv_define_TCP_NOPUSH" = "yes"; then
27577 $as_echo "#define HAVE_TCP_NOPUSH 1" >>confdefs.h
27581 apr_tcp_nopush_flag="0"
27582 have_corkable_tcp="0"
27583 if test "x$ac_cv_define_TCP_CORK" = "xyes"; then
27584 apr_tcp_nopush_flag="TCP_CORK"
27585 have_corkable_tcp="1"
27589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27590 /* end confdefs.h. */
27592 #include <linux/socket.h>
27598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27599 $EGREP "yes" >/dev/null 2>&1; then :
27601 apr_tcp_nopush_flag="3"
27602 have_corkable_tcp="1"
27612 if test "x$ac_cv_define_TCP_NOPUSH" = "xyes"; then
27613 apr_tcp_nopush_flag="TCP_NOPUSH"
27614 have_corkable_tcp="1"
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_ACCEPTFILTER in sys/socket.h" >&5
27619 $as_echo_n "checking for SO_ACCEPTFILTER in sys/socket.h... " >&6; }
27620 if ${ac_cv_define_SO_ACCEPTFILTER+:} false; then :
27621 $as_echo_n "(cached) " >&6
27624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27625 /* end confdefs.h. */
27627 #include <sys/socket.h>
27628 #ifdef SO_ACCEPTFILTER
27633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27634 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
27635 ac_cv_define_SO_ACCEPTFILTER=yes
27637 ac_cv_define_SO_ACCEPTFILTER=no
27643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SO_ACCEPTFILTER" >&5
27644 $as_echo "$ac_cv_define_SO_ACCEPTFILTER" >&6; }
27645 if test "$ac_cv_define_SO_ACCEPTFILTER" = "yes"; then
27647 $as_echo "#define HAVE_SO_ACCEPTFILTER 1" >>confdefs.h
27651 if test "x$ac_cv_define_SO_ACCEPTFILTER" = "xyes"; then
27658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SCTP is supported" >&5
27659 $as_echo_n "checking whether SCTP is supported... " >&6; }
27660 if ${apr_cv_sctp+:} false; then :
27661 $as_echo_n "(cached) " >&6
27664 if test "$cross_compiling" = yes; then :
27667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27668 /* end confdefs.h. */
27670 #ifdef HAVE_SYS_TYPES_H
27671 #include <sys/types.h>
27673 #ifdef HAVE_SYS_SOCKET_H
27674 #include <sys/socket.h>
27676 #ifdef HAVE_NETINET_IN_H
27677 #include <netinet/in.h>
27679 #ifdef HAVE_NETINET_SCTP_H
27680 #include <netinet/sctp.h>
27682 #ifdef HAVE_NETINET_SCTP_UIO_H
27683 #include <netinet/sctp_uio.h>
27685 #include <stdlib.h>
27688 if ((s = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP)) < 0)
27690 if (setsockopt(s, IPPROTO_SCTP, SCTP_NODELAY, &opt, sizeof(int)) < 0)
27695 if ac_fn_c_try_run "$LINENO"; then :
27700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27701 conftest.$ac_objext conftest.beam conftest.$ac_ext
27705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sctp" >&5
27706 $as_echo "$apr_cv_sctp" >&6; }
27708 if test "$apr_cv_sctp" = "yes"; then
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreq" >&5
27716 $as_echo_n "checking for struct ip_mreq... " >&6; }
27717 if ${apr_cv_struct_ipmreq+:} false; then :
27718 $as_echo_n "(cached) " >&6
27721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27722 /* end confdefs.h. */
27724 #include <sys/types.h>
27725 #include <netinet/in.h>
27731 struct ip_mreq mip;
27732 mip.imr_interface.s_addr = INADDR_ANY;
27738 if ac_fn_c_try_compile "$LINENO"; then :
27739 apr_cv_struct_ipmreq=yes
27741 apr_cv_struct_ipmreq=no
27743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_struct_ipmreq" >&5
27746 $as_echo "$apr_cv_struct_ipmreq" >&6; }
27748 if test $apr_cv_struct_ipmreq = yes; then
27750 $as_echo "#define HAVE_STRUCT_IPMREQ 1" >>confdefs.h
27760 for ac_func in set_h_errno
27762 ac_fn_c_check_func "$LINENO" "set_h_errno" "ac_cv_func_set_h_errno"
27763 if test "x$ac_cv_func_set_h_errno" = xyes; then :
27764 cat >>confdefs.h <<_ACEOF
27765 #define HAVE_SET_H_ERRNO 1
27772 echo "${nl}Checking for IPv6 Networking support..."
27774 # Check whether --enable-ipv6 was given.
27775 if test "${enable_ipv6+set}" = set; then :
27776 enableval=$enable_ipv6; if test "$enableval" = "no"; then
27777 user_disabled_ipv6=1
27780 user_disabled_ipv6=0
27789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
27790 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
27791 if ${ac_cv_search_getaddrinfo+:} false; then :
27792 $as_echo_n "(cached) " >&6
27794 ac_func_search_save_LIBS=$LIBS
27795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27796 /* end confdefs.h. */
27798 /* Override any GCC internal prototype to avoid an error.
27799 Use char because int might match the return type of a GCC
27800 builtin and then its argument prototype would still apply. */
27804 char getaddrinfo ();
27808 return getaddrinfo ();
27813 for ac_lib in '' socket inet6; do
27814 if test -z "$ac_lib"; then
27815 ac_res="none required"
27818 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27820 if ac_fn_c_try_link "$LINENO"; then :
27821 ac_cv_search_getaddrinfo=$ac_res
27823 rm -f core conftest.err conftest.$ac_objext \
27825 if ${ac_cv_search_getaddrinfo+:} false; then :
27829 if ${ac_cv_search_getaddrinfo+:} false; then :
27832 ac_cv_search_getaddrinfo=no
27834 rm conftest.$ac_ext
27835 LIBS=$ac_func_search_save_LIBS
27837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
27838 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
27839 ac_res=$ac_cv_search_getaddrinfo
27840 if test "$ac_res" != no; then :
27841 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gai_strerror" >&5
27846 $as_echo_n "checking for library containing gai_strerror... " >&6; }
27847 if ${ac_cv_search_gai_strerror+:} false; then :
27848 $as_echo_n "(cached) " >&6
27850 ac_func_search_save_LIBS=$LIBS
27851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27852 /* end confdefs.h. */
27854 /* Override any GCC internal prototype to avoid an error.
27855 Use char because int might match the return type of a GCC
27856 builtin and then its argument prototype would still apply. */
27860 char gai_strerror ();
27864 return gai_strerror ();
27869 for ac_lib in '' socket inet6; do
27870 if test -z "$ac_lib"; then
27871 ac_res="none required"
27874 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27876 if ac_fn_c_try_link "$LINENO"; then :
27877 ac_cv_search_gai_strerror=$ac_res
27879 rm -f core conftest.err conftest.$ac_objext \
27881 if ${ac_cv_search_gai_strerror+:} false; then :
27885 if ${ac_cv_search_gai_strerror+:} false; then :
27888 ac_cv_search_gai_strerror=no
27890 rm conftest.$ac_ext
27891 LIBS=$ac_func_search_save_LIBS
27893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gai_strerror" >&5
27894 $as_echo "$ac_cv_search_gai_strerror" >&6; }
27895 ac_res=$ac_cv_search_gai_strerror
27896 if test "$ac_res" != no; then :
27897 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
27902 $as_echo_n "checking for library containing getnameinfo... " >&6; }
27903 if ${ac_cv_search_getnameinfo+:} false; then :
27904 $as_echo_n "(cached) " >&6
27906 ac_func_search_save_LIBS=$LIBS
27907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27908 /* end confdefs.h. */
27910 /* Override any GCC internal prototype to avoid an error.
27911 Use char because int might match the return type of a GCC
27912 builtin and then its argument prototype would still apply. */
27916 char getnameinfo ();
27920 return getnameinfo ();
27925 for ac_lib in '' socket inet6; do
27926 if test -z "$ac_lib"; then
27927 ac_res="none required"
27930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27932 if ac_fn_c_try_link "$LINENO"; then :
27933 ac_cv_search_getnameinfo=$ac_res
27935 rm -f core conftest.err conftest.$ac_objext \
27937 if ${ac_cv_search_getnameinfo+:} false; then :
27941 if ${ac_cv_search_getnameinfo+:} false; then :
27944 ac_cv_search_getnameinfo=no
27946 rm conftest.$ac_ext
27947 LIBS=$ac_func_search_save_LIBS
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
27950 $as_echo "$ac_cv_search_getnameinfo" >&6; }
27951 ac_res=$ac_cv_search_getnameinfo
27952 if test "$ac_res" != no; then :
27953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27957 for ac_func in gai_strerror
27959 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
27960 if test "x$ac_cv_func_gai_strerror" = xyes; then :
27961 cat >>confdefs.h <<_ACEOF
27962 #define HAVE_GAI_STRERROR 1
27969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
27970 $as_echo_n "checking for working getaddrinfo... " >&6; }
27971 if ${ac_cv_working_getaddrinfo+:} false; then :
27972 $as_echo_n "(cached) " >&6
27975 if test "$cross_compiling" = yes; then :
27977 ac_cv_working_getaddrinfo="yes"
27980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27981 /* end confdefs.h. */
27983 #ifdef HAVE_NETDB_H
27986 #ifdef HAVE_STRING_H
27987 #include <string.h>
27989 #ifdef HAVE_SYS_TYPES_H
27990 #include <sys/types.h>
27992 #ifdef HAVE_SYS_SOCKET_H
27993 #include <sys/socket.h>
27997 struct addrinfo hints, *ai;
28000 memset(&hints, 0, sizeof(hints));
28001 hints.ai_family = AF_UNSPEC;
28002 hints.ai_socktype = SOCK_STREAM;
28003 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28007 if (ai->ai_addr->sa_family != AF_INET) {
28014 if ac_fn_c_try_run "$LINENO"; then :
28016 ac_cv_working_getaddrinfo="yes"
28020 ac_cv_working_getaddrinfo="no"
28023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28024 conftest.$ac_objext conftest.beam conftest.$ac_ext
28028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28029 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28030 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28031 if test "$ac_cv_func_gai_strerror" != "yes"; then
28032 ac_cv_working_getaddrinfo="no"
28035 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for negative error codes for getaddrinfo" >&5
28042 $as_echo_n "checking for negative error codes for getaddrinfo... " >&6; }
28043 if ${ac_cv_negative_eai+:} false; then :
28044 $as_echo_n "(cached) " >&6
28047 if test "$cross_compiling" = yes; then :
28049 ac_cv_negative_eai="no"
28052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28053 /* end confdefs.h. */
28055 #ifdef HAVE_NETDB_H
28060 if (EAI_ADDRFAMILY < 0) {
28067 if ac_fn_c_try_run "$LINENO"; then :
28069 ac_cv_negative_eai="yes"
28073 ac_cv_negative_eai="no"
28076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28077 conftest.$ac_objext conftest.beam conftest.$ac_ext
28081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_negative_eai" >&5
28082 $as_echo "$ac_cv_negative_eai" >&6; }
28083 if test "$ac_cv_negative_eai" = "yes"; then
28085 $as_echo "#define NEGATIVE_EAI 1" >>confdefs.h
28090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getnameinfo" >&5
28091 $as_echo_n "checking for working getnameinfo... " >&6; }
28092 if ${ac_cv_working_getnameinfo+:} false; then :
28093 $as_echo_n "(cached) " >&6
28096 if test "$cross_compiling" = yes; then :
28098 ac_cv_working_getnameinfo="yes"
28101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28102 /* end confdefs.h. */
28104 #ifdef HAVE_NETDB_H
28107 #ifdef HAVE_STRING_H
28108 #include <string.h>
28110 #ifdef HAVE_SYS_TYPES_H
28111 #include <sys/types.h>
28113 #ifdef HAVE_SYS_SOCKET_H
28114 #include <sys/socket.h>
28116 #ifdef HAVE_NETINET_IN_H
28117 #include <netinet/in.h>
28121 struct sockaddr_in sa;
28125 sa.sin_family = AF_INET;
28127 sa.sin_addr.s_addr = inet_addr("127.0.0.1");
28129 sa.sin_len = sizeof(sa);
28132 error = getnameinfo((const struct sockaddr *)&sa, sizeof(sa),
28133 hbuf, 256, NULL, 0,
28143 if ac_fn_c_try_run "$LINENO"; then :
28145 ac_cv_working_getnameinfo="yes"
28149 ac_cv_working_getnameinfo="no"
28152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28153 conftest.$ac_objext conftest.beam conftest.$ac_ext
28157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getnameinfo" >&5
28158 $as_echo "$ac_cv_working_getnameinfo" >&6; }
28159 if test "$ac_cv_working_getnameinfo" = "yes"; then
28161 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6" >&5
28167 $as_echo_n "checking for sockaddr_in6... " >&6; }
28168 if ${ac_cv_define_sockaddr_in6+:} false; then :
28169 $as_echo_n "(cached) " >&6
28172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28173 /* end confdefs.h. */
28175 #ifdef HAVE_SYS_TYPES_H
28176 #include <sys/types.h>
28178 #ifdef HAVE_NETINET_IN_H
28179 #include <netinet/in.h>
28186 struct sockaddr_in6 sa;
28192 if ac_fn_c_try_compile "$LINENO"; then :
28194 ac_cv_define_sockaddr_in6=yes
28198 ac_cv_define_sockaddr_in6=no
28201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_sockaddr_in6" >&5
28205 $as_echo "$ac_cv_define_sockaddr_in6" >&6; }
28207 if test "$ac_cv_define_sockaddr_in6" = "yes"; then
28208 have_sockaddr_in6=1
28210 have_sockaddr_in6=0
28214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
28215 $as_echo_n "checking for sockaddr_storage... " >&6; }
28216 if ${apr_cv_define_sockaddr_storage+:} false; then :
28217 $as_echo_n "(cached) " >&6
28220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28221 /* end confdefs.h. */
28223 #ifdef HAVE_SYS_TYPES_H
28224 #include <sys/types.h>
28226 #ifdef HAVE_NETINET_IN_H
28227 #include <netinet/in.h>
28233 struct sockaddr_storage sa;
28238 if ac_fn_c_try_compile "$LINENO"; then :
28239 apr_cv_define_sockaddr_storage=yes
28241 apr_cv_define_sockaddr_storage=no
28243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_sockaddr_storage" >&5
28246 $as_echo "$apr_cv_define_sockaddr_storage" >&6; }
28248 if test "$apr_cv_define_sockaddr_storage" = "yes"; then
28257 if test "$user_disabled_ipv6" = 1; then
28258 ipv6_result="no -- disabled by user"
28260 if test "x$broken_ipv6" = "x0"; then
28261 if test "x$have_sockaddr_in6" = "x1"; then
28262 if test "x$ac_cv_working_getaddrinfo" = "xyes"; then
28263 if test "x$ac_cv_working_getnameinfo" = "xyes"; then
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5
28266 $as_echo_n "checking for working AI_ADDRCONFIG... " >&6; }
28267 if ${apr_cv_gai_addrconfig+:} false; then :
28268 $as_echo_n "(cached) " >&6
28271 if test "$cross_compiling" = yes; then :
28272 apr_cv_gai_addrconfig=no
28274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28275 /* end confdefs.h. */
28277 #ifdef HAVE_NETDB_H
28280 #ifdef HAVE_STRING_H
28281 #include <string.h>
28283 #ifdef HAVE_SYS_TYPES_H
28284 #include <sys/types.h>
28286 #ifdef HAVE_SYS_SOCKET_H
28287 #include <sys/socket.h>
28290 int main(int argc, char **argv) {
28291 struct addrinfo hints, *ai;
28293 memset(&hints, 0, sizeof(hints));
28294 hints.ai_family = AF_UNSPEC;
28295 hints.ai_socktype = SOCK_STREAM;
28296 hints.ai_flags = AI_ADDRCONFIG;
28297 return getaddrinfo("localhost", NULL, &hints, &ai) != 0;
28300 if ac_fn_c_try_run "$LINENO"; then :
28301 apr_cv_gai_addrconfig=yes
28303 apr_cv_gai_addrconfig=no
28305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28306 conftest.$ac_objext conftest.beam conftest.$ac_ext
28310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_gai_addrconfig" >&5
28311 $as_echo "$apr_cv_gai_addrconfig" >&6; }
28313 if test $apr_cv_gai_addrconfig = yes; then
28315 $as_echo "#define HAVE_GAI_ADDRCONFIG 1" >>confdefs.h
28322 ipv6_result="no -- no getnameinfo"
28325 ipv6_result="no -- no working getaddrinfo"
28328 ipv6_result="no -- no sockaddr_in6"
28331 ipv6_result="no -- the platform has known problems supporting IPv6"
28335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if APR supports IPv6" >&5
28336 $as_echo_n "checking if APR supports IPv6... " >&6; }
28337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_result" >&5
28338 $as_echo "$ipv6_result" >&6; }
28342 # hstrerror is only needed if IPv6 is not enabled,
28343 # so getaddrinfo/gai_strerror are not used.
28344 if test $have_ipv6 = 0; then
28345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
28346 $as_echo_n "checking for library containing hstrerror... " >&6; }
28347 if ${ac_cv_search_hstrerror+:} false; then :
28348 $as_echo_n "(cached) " >&6
28350 ac_func_search_save_LIBS=$LIBS
28351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28352 /* end confdefs.h. */
28354 /* Override any GCC internal prototype to avoid an error.
28355 Use char because int might match the return type of a GCC
28356 builtin and then its argument prototype would still apply. */
28364 return hstrerror ();
28369 for ac_lib in '' resolv; do
28370 if test -z "$ac_lib"; then
28371 ac_res="none required"
28374 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28376 if ac_fn_c_try_link "$LINENO"; then :
28377 ac_cv_search_hstrerror=$ac_res
28379 rm -f core conftest.err conftest.$ac_objext \
28381 if ${ac_cv_search_hstrerror+:} false; then :
28385 if ${ac_cv_search_hstrerror+:} false; then :
28388 ac_cv_search_hstrerror=no
28390 rm conftest.$ac_ext
28391 LIBS=$ac_func_search_save_LIBS
28393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
28394 $as_echo "$ac_cv_search_hstrerror" >&6; }
28395 ac_res=$ac_cv_search_hstrerror
28396 if test "$ac_res" != no; then :
28397 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28399 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
28406 for ac_header in langinfo.h
28408 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
28409 if test "x$ac_cv_header_langinfo_h" = xyes; then :
28410 cat >>confdefs.h <<_ACEOF
28411 #define HAVE_LANGINFO_H 1
28418 for ac_func in nl_langinfo
28420 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
28421 if test "x$ac_cv_func_nl_langinfo" = xyes; then :
28422 cat >>confdefs.h <<_ACEOF
28423 #define HAVE_NL_LANGINFO 1
28432 if test -z "$have_unicode_fs"; then
28433 test "x$silent" != "xyes" && echo " setting have_unicode_fs to \"0\""
28434 have_unicode_fs="0"
28440 if test -z "$apr_has_xthread_files"; then
28441 test "x$silent" != "xyes" && echo " setting apr_has_xthread_files to \"0\""
28442 apr_has_xthread_files="0"
28448 if test -z "$apr_procattr_user_set_requires_password"; then
28449 test "x$silent" != "xyes" && echo " setting apr_procattr_user_set_requires_password to \"0\""
28450 apr_procattr_user_set_requires_password="0"
28456 if test -z "$apr_thread_func"; then
28457 test "x$silent" != "xyes" && echo " setting apr_thread_func to \"\""
28464 if test -z "$apr_has_user"; then
28465 test "x$silent" != "xyes" && echo " setting apr_has_user to \"1\""
28472 echo "${nl}Restore user-defined environment settings..."
28475 set X $apr_ste_save_CPPFLAGS
28476 if test ${#} -eq 1; then
28477 EXTRA_CPPFLAGS="$CPPFLAGS"
28480 if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then
28483 EXTRA_CPPFLAGS=`echo "$CPPFLAGS" | sed -e "s%${apr_ste_save_CPPFLAGS}%%"`
28484 CPPFLAGS="$apr_ste_save_CPPFLAGS"
28487 if test "x$silent" != "xyes"; then
28488 echo " restoring CPPFLAGS to \"$CPPFLAGS\""
28489 echo " setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\""
28494 set X $apr_ste_save_CFLAGS
28495 if test ${#} -eq 1; then
28496 EXTRA_CFLAGS="$CFLAGS"
28499 if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then
28502 EXTRA_CFLAGS=`echo "$CFLAGS" | sed -e "s%${apr_ste_save_CFLAGS}%%"`
28503 CFLAGS="$apr_ste_save_CFLAGS"
28506 if test "x$silent" != "xyes"; then
28507 echo " restoring CFLAGS to \"$CFLAGS\""
28508 echo " setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\""
28513 set X $apr_ste_save_LDFLAGS
28514 if test ${#} -eq 1; then
28515 EXTRA_LDFLAGS="$LDFLAGS"
28518 if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then
28521 EXTRA_LDFLAGS=`echo "$LDFLAGS" | sed -e "s%${apr_ste_save_LDFLAGS}%%"`
28522 LDFLAGS="$apr_ste_save_LDFLAGS"
28525 if test "x$silent" != "xyes"; then
28526 echo " restoring LDFLAGS to \"$LDFLAGS\""
28527 echo " setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\""
28532 set X $apr_ste_save_LIBS
28533 if test ${#} -eq 1; then
28537 if test "x$apr_ste_save_LIBS" = "x$LIBS"; then
28540 EXTRA_LIBS=`echo "$LIBS" | sed -e "s%${apr_ste_save_LIBS}%%"`
28541 LIBS="$apr_ste_save_LIBS"
28544 if test "x$silent" != "xyes"; then
28545 echo " restoring LIBS to \"$LIBS\""
28546 echo " setting EXTRA_LIBS to \"$EXTRA_LIBS\""
28551 set X $apr_ste_save_INCLUDES
28552 if test ${#} -eq 1; then
28553 EXTRA_INCLUDES="$INCLUDES"
28556 if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then
28559 EXTRA_INCLUDES=`echo "$INCLUDES" | sed -e "s%${apr_ste_save_INCLUDES}%%"`
28560 INCLUDES="$apr_ste_save_INCLUDES"
28563 if test "x$silent" != "xyes"; then
28564 echo " restoring INCLUDES to \"$INCLUDES\""
28565 echo " setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\""
28586 # Use -no-install or -no-fast-install to link the test
28587 # programs on all platforms but Darwin, where it would cause
28588 # the programs to be linked against installed versions of
28589 # libapr instead of those just built.
28595 LT_NO_INSTALL="-no-fast-install"
28598 LT_NO_INSTALL="-no-install"
28604 # BSD/OS (BSDi) needs to use a different include syntax in the Makefiles
28608 # Check whether they've installed GNU make
28609 if make --version > /dev/null 2>&1; then
28610 INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
28611 INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
28614 INCLUDE_RULES=".include \"$apr_buildout/apr_rules.mk\""
28615 INCLUDE_OUTPUTS=".include \"$apr_srcdir/build-outputs.mk\""
28619 INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
28620 INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
28626 ac_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"
28629 if test -d $srcdir/test; then
28630 ac_config_files="$ac_config_files test/Makefile test/internal/Makefile"
28634 dir=include/arch/unix
28635 test -d $dir || $MKDIR $dir
28637 ac_config_commands="$ac_config_commands default"
28640 cat >confcache <<\_ACEOF
28641 # This file is a shell script that caches the results of configure
28642 # tests run on this system so they can be shared between configure
28643 # scripts and configure runs, see configure's option --config-cache.
28644 # It is not useful on other systems. If it contains results you don't
28645 # want to keep, you may remove or edit it.
28647 # config.status only pays attention to the cache file if you give it
28648 # the --recheck option to rerun configure.
28650 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28651 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28652 # following values.
28656 # The following way of writing the cache mishandles newlines in values,
28657 # but we know of no workaround that is simple, portable, and efficient.
28658 # So, we kill variables containing newlines.
28659 # Ultrix sh set writes to stderr and can't be redirected directly,
28660 # and sets the high bit in the cache file unless we assign to the vars.
28662 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28663 eval ac_val=\$$ac_var
28667 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28668 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28671 _ | IFS | as_nl) ;; #(
28672 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28673 *) { eval $ac_var=; unset $ac_var;} ;;
28679 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28680 *${as_nl}ac_space=\ *)
28681 # `set' does not quote correctly, so add quotes: double-quote
28682 # substitution turns \\\\ into \\, and sed turns \\ into \.
28685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28688 # `set' quotes correctly as required by POSIX, so do not add quotes.
28689 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28698 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28700 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28702 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28703 if test -w "$cache_file"; then
28704 if test "x$cache_file" != "x/dev/null"; then
28705 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28706 $as_echo "$as_me: updating cache $cache_file" >&6;}
28707 if test ! -f "$cache_file" || test -h "$cache_file"; then
28708 cat confcache >"$cache_file"
28710 case $cache_file in #(
28712 mv -f confcache "$cache_file"$$ &&
28713 mv -f "$cache_file"$$ "$cache_file" ;; #(
28715 mv -f confcache "$cache_file" ;;
28720 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28721 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28726 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28727 # Let make expand exec_prefix.
28728 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28730 DEFS=-DHAVE_CONFIG_H
28735 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28736 # 1. Remove the extension, and $U if already installed.
28737 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28738 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28739 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28740 # will be set to the directory where LIBOBJS objects are built.
28741 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28742 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28744 LIBOBJS=$ac_libobjs
28746 LTLIBOBJS=$ac_ltlibobjs
28751 : "${CONFIG_STATUS=./config.status}"
28753 ac_clean_files_save=$ac_clean_files
28754 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28755 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28756 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28758 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28760 # Generated by $as_me.
28761 # Run this file to recreate the current configuration.
28762 # Compiler output produced by configure, useful for debugging
28763 # configure, is in config.log if it exists.
28766 ac_cs_recheck=false
28769 SHELL=\${CONFIG_SHELL-$SHELL}
28772 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28773 ## -------------------- ##
28774 ## M4sh Initialization. ##
28775 ## -------------------- ##
28777 # Be more Bourne compatible
28778 DUALCASE=1; export DUALCASE # for MKS sh
28779 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28782 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28783 # is contrary to our usage. Disable this feature.
28784 alias -g '${1+"$@"}'='"$@"'
28785 setopt NO_GLOB_SUBST
28787 case `(set -o) 2>/dev/null` in #(
28799 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28800 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28801 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28802 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28803 # Prefer a ksh shell builtin over an external printf program on Solaris,
28804 # but without wasting forks for bash or zsh.
28805 if test -z "$BASH_VERSION$ZSH_VERSION" \
28806 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28807 as_echo='print -r --'
28808 as_echo_n='print -rn --'
28809 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28810 as_echo='printf %s\n'
28811 as_echo_n='printf %s'
28813 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28814 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28815 as_echo_n='/usr/ucb/echo -n'
28817 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28818 as_echo_n_body='eval
28822 expr "X$arg" : "X\\(.*\\)$as_nl";
28823 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28825 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28827 export as_echo_n_body
28828 as_echo_n='sh -c $as_echo_n_body as_echo'
28830 export as_echo_body
28831 as_echo='sh -c $as_echo_body as_echo'
28834 # The user is always right.
28835 if test "${PATH_SEPARATOR+set}" != set; then
28837 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28838 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28845 # We need space, tab and new line, in precisely that order. Quoting is
28846 # there to prevent editors from complaining about space-tab.
28847 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28848 # splitting by setting IFS to empty value.)
28851 # Find who we are. Look in the path if we contain no directory separator.
28854 *[\\/]* ) as_myself=$0 ;;
28855 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28856 for as_dir in $PATH
28859 test -z "$as_dir" && as_dir=.
28860 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28866 # We did not find ourselves, most probably we were run as `sh COMMAND'
28867 # in which case we are not to be found in the path.
28868 if test "x$as_myself" = x; then
28871 if test ! -f "$as_myself"; then
28872 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28876 # Unset variables that we do not need and which cause bugs (e.g. in
28877 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28878 # suppresses any "Segmentation fault" message there. '((' could
28879 # trigger a bug in pdksh 5.2.14.
28880 for as_var in BASH_ENV ENV MAIL MAILPATH
28881 do eval test x\${$as_var+set} = xset \
28882 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28895 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28898 # as_fn_error STATUS ERROR [LINENO LOG_FD]
28899 # ----------------------------------------
28900 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28901 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28902 # script with STATUS, using 1 if that was 0.
28905 as_status=$1; test $as_status -eq 0 && as_status=1
28907 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28908 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28910 $as_echo "$as_me: error: $2" >&2
28911 as_fn_exit $as_status
28915 # as_fn_set_status STATUS
28916 # -----------------------
28917 # Set $? to STATUS, without forking.
28918 as_fn_set_status ()
28921 } # as_fn_set_status
28923 # as_fn_exit STATUS
28924 # -----------------
28925 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28929 as_fn_set_status $1
28935 # Portably unset VAR.
28938 { eval $1=; unset $1;}
28940 as_unset=as_fn_unset
28941 # as_fn_append VAR VALUE
28942 # ----------------------
28943 # Append the text in VALUE to the end of the definition contained in VAR. Take
28944 # advantage of any shell optimizations that allow amortized linear growth over
28945 # repeated appends, instead of the typical quadratic growth present in naive
28947 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28948 eval 'as_fn_append ()
28959 # as_fn_arith ARG...
28960 # ------------------
28961 # Perform arithmetic evaluation on the ARGs, and store the result in the
28962 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28963 # must be portable across $(()) and expr.
28964 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28965 eval 'as_fn_arith ()
28972 as_val=`expr "$@" || test $? -eq 1`
28977 if expr a : '\(a\)' >/dev/null 2>&1 &&
28978 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28984 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28985 as_basename=basename
28990 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28996 as_me=`$as_basename -- "$0" ||
28997 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28998 X"$0" : 'X\(//\)$' \| \
28999 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29001 sed '/^.*\/\([^/][^/]*\)\/*$/{
29015 # Avoid depending upon Character Ranges.
29016 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29017 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29018 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29019 as_cr_digits='0123456789'
29020 as_cr_alnum=$as_cr_Letters$as_cr_digits
29022 ECHO_C= ECHO_N= ECHO_T=
29023 case `echo -n x` in #(((((
29025 case `echo 'xy\c'` in
29026 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29028 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29035 rm -f conf$$ conf$$.exe conf$$.file
29036 if test -d conf$$.dir; then
29037 rm -f conf$$.dir/conf$$.file
29040 mkdir conf$$.dir 2>/dev/null
29042 if (echo >conf$$.file) 2>/dev/null; then
29043 if ln -s conf$$.file conf$$ 2>/dev/null; then
29045 # ... but there are two gotchas:
29046 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29047 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29048 # In both cases, we have to default to `cp -pR'.
29049 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29051 elif ln conf$$.file conf$$ 2>/dev/null; then
29059 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29060 rmdir conf$$.dir 2>/dev/null
29065 # Create "$as_dir" as a directory, including parents if necessary.
29070 -*) as_dir=./$as_dir;;
29072 test -d "$as_dir" || eval $as_mkdir_p || {
29076 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29077 *) as_qdir=$as_dir;;
29079 as_dirs="'$as_qdir' $as_dirs"
29080 as_dir=`$as_dirname -- "$as_dir" ||
29081 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29082 X"$as_dir" : 'X\(//\)[^/]' \| \
29083 X"$as_dir" : 'X\(//\)$' \| \
29084 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29085 $as_echo X"$as_dir" |
29086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29090 /^X\(\/\/\)[^/].*/{
29103 test -d "$as_dir" && break
29105 test -z "$as_dirs" || eval "mkdir $as_dirs"
29106 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
29110 if mkdir -p . 2>/dev/null; then
29111 as_mkdir_p='mkdir -p "$as_dir"'
29113 test -d ./-p && rmdir ./-p
29118 # as_fn_executable_p FILE
29119 # -----------------------
29120 # Test if FILE is an executable regular file.
29121 as_fn_executable_p ()
29123 test -f "$1" && test -x "$1"
29124 } # as_fn_executable_p
29125 as_test_x='test -x'
29126 as_executable_p=as_fn_executable_p
29128 # Sed expression to map a string onto a valid CPP name.
29129 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29131 # Sed expression to map a string onto a valid variable name.
29132 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29136 ## ----------------------------------- ##
29137 ## Main body of $CONFIG_STATUS script. ##
29138 ## ----------------------------------- ##
29140 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29143 # Save the log message, to keep $0 and so on meaningful, and to
29144 # report actual input values of CONFIG_FILES etc. instead of their
29145 # values after options handling.
29147 This file was extended by $as_me, which was
29148 generated by GNU Autoconf 2.69. Invocation command line was
29150 CONFIG_FILES = $CONFIG_FILES
29151 CONFIG_HEADERS = $CONFIG_HEADERS
29152 CONFIG_LINKS = $CONFIG_LINKS
29153 CONFIG_COMMANDS = $CONFIG_COMMANDS
29156 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29161 case $ac_config_files in *"
29162 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29165 case $ac_config_headers in *"
29166 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29171 # Files that config.status was made for.
29172 config_files="$ac_config_files"
29173 config_headers="$ac_config_headers"
29174 config_commands="$ac_config_commands"
29178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29180 \`$as_me' instantiates files and other configuration actions
29181 from templates according to the current configuration. Unless the files
29182 and actions are specified as TAGs, all are instantiated by default.
29184 Usage: $0 [OPTION]... [TAG]...
29186 -h, --help print this help, then exit
29187 -V, --version print version number and configuration settings, then exit
29188 --config print configuration, then exit
29189 -q, --quiet, --silent
29190 do not print progress messages
29191 -d, --debug don't remove temporary files
29192 --recheck update $as_me by reconfiguring in the same conditions
29193 --file=FILE[:TEMPLATE]
29194 instantiate the configuration file FILE
29195 --header=FILE[:TEMPLATE]
29196 instantiate the configuration header FILE
29198 Configuration files:
29201 Configuration headers:
29204 Configuration commands:
29207 Report bugs to the package provider."
29210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29211 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29214 configured by $0, generated by GNU Autoconf 2.69,
29215 with options \\"\$ac_cs_config\\"
29217 Copyright (C) 2012 Free Software Foundation, Inc.
29218 This config.status script is free software; the Free Software Foundation
29219 gives unlimited permission to copy, distribute and modify it."
29225 test -n "\$AWK" || AWK=awk
29228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29229 # The default lists apply if the user does not specify any file.
29235 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29236 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29240 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29252 # Handling of the options.
29253 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29255 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29256 $as_echo "$ac_cs_version"; exit ;;
29257 --config | --confi | --conf | --con | --co | --c )
29258 $as_echo "$ac_cs_config"; exit ;;
29259 --debug | --debu | --deb | --de | --d | -d )
29261 --file | --fil | --fi | --f )
29264 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29265 '') as_fn_error $? "missing file argument" ;;
29267 as_fn_append CONFIG_FILES " '$ac_optarg'"
29268 ac_need_defaults=false;;
29269 --header | --heade | --head | --hea )
29272 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29274 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29275 ac_need_defaults=false;;
29277 # Conflict between --help and --header
29278 as_fn_error $? "ambiguous option: \`$1'
29279 Try \`$0 --help' for more information.";;
29280 --help | --hel | -h )
29281 $as_echo "$ac_cs_usage"; exit ;;
29282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29283 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29286 # This is an error.
29287 -*) as_fn_error $? "unrecognized option: \`$1'
29288 Try \`$0 --help' for more information." ;;
29290 *) as_fn_append ac_config_targets " $1"
29291 ac_need_defaults=false ;;
29297 ac_configure_extra_args=
29299 if $ac_cs_silent; then
29301 ac_configure_extra_args="$ac_configure_extra_args --silent"
29305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29306 if \$ac_cs_recheck; then
29307 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29309 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29310 CONFIG_SHELL='$SHELL'
29311 export CONFIG_SHELL
29316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29320 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29321 ## Running $as_me. ##
29327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29333 # The HP-UX ksh and POSIX shell print the target directory to stdout
29334 # if CDPATH is set.
29335 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29337 sed_quote_subst='$sed_quote_subst'
29338 double_quote_subst='$double_quote_subst'
29339 delay_variable_subst='$delay_variable_subst'
29340 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
29341 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
29342 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
29343 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
29344 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
29345 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
29346 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
29347 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
29348 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
29349 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
29350 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
29351 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
29352 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
29353 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
29354 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
29355 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
29356 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
29357 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
29358 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
29359 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
29360 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
29361 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
29362 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
29363 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
29364 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
29365 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
29366 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
29367 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
29368 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
29369 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
29370 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
29371 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
29372 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
29373 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
29374 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
29375 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
29376 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
29377 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
29378 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
29379 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
29380 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
29381 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
29382 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
29383 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
29384 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
29385 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
29386 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29387 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29388 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
29389 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
29390 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
29391 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
29392 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
29393 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
29394 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
29395 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
29396 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
29397 lt_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"`'
29398 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
29399 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
29400 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
29401 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
29402 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
29403 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
29404 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
29405 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
29406 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
29407 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
29408 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
29409 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
29410 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
29411 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
29412 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
29413 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
29414 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
29415 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
29416 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29417 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
29418 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
29419 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
29420 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
29421 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
29422 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
29423 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29424 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
29425 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29426 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
29427 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29428 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
29429 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
29430 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
29431 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
29432 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
29433 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
29434 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
29435 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
29436 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
29437 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
29438 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
29439 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
29440 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
29441 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
29442 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
29443 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
29444 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
29445 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
29446 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
29447 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
29448 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
29449 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
29450 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
29451 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
29452 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
29453 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
29454 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
29455 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
29456 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
29457 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
29458 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29459 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29460 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
29461 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
29462 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
29463 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
29464 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
29465 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
29466 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
29467 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
29468 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
29469 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
29470 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
29473 LTCFLAGS='$LTCFLAGS'
29474 compiler='$compiler_DEFAULT'
29476 # A function that is used when there is no print builtin or printf.
29477 func_fallback_echo ()
29479 eval 'cat <<_LTECHO_EOF
29484 # Quote evaled strings.
29501 deplibs_check_method \
29505 sharedlib_from_linklib_cmd \
29508 archiver_list_spec \
29514 lt_cv_sys_global_symbol_pipe \
29515 lt_cv_sys_global_symbol_to_cdecl \
29516 lt_cv_sys_global_symbol_to_c_name_address \
29517 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29518 nm_file_list_spec \
29519 lt_prog_compiler_no_builtin_flag \
29520 lt_prog_compiler_pic \
29521 lt_prog_compiler_wl \
29522 lt_prog_compiler_static \
29523 lt_cv_prog_compiler_c_o \
29532 export_dynamic_flag_spec \
29533 whole_archive_flag_spec \
29534 compiler_needs_object \
29536 allow_undefined_flag \
29537 no_undefined_flag \
29538 hardcode_libdir_flag_spec \
29539 hardcode_libdir_separator \
29543 variables_saved_for_relink \
29545 library_names_spec \
29547 install_override_mode \
29551 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29552 *[\\\\\\\`\\"\\\$]*)
29553 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29556 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29561 # Double-quote double-evaled strings.
29562 for var in reload_cmds \
29563 old_postinstall_cmds \
29564 old_postuninstall_cmds \
29566 extract_expsyms_cmds \
29567 old_archive_from_new_cmds \
29568 old_archive_from_expsyms_cmds \
29570 archive_expsym_cmds \
29572 module_expsym_cmds \
29573 export_symbols_cmds \
29577 postuninstall_cmds \
29579 sys_lib_search_path_spec \
29580 sys_lib_dlsearch_path_spec; do
29581 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29582 *[\\\\\\\`\\"\\\$]*)
29583 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29586 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29591 ac_aux_dir='$ac_aux_dir'
29592 xsi_shell='$xsi_shell'
29593 lt_shell_append='$lt_shell_append'
29595 # See if we are running on zsh, and set the options which allow our
29596 # commands through without removal of \ escapes INIT.
29597 if test -n "\${ZSH_VERSION+set}" ; then
29598 setopt NO_GLOB_SUBST
29604 TIMESTAMP='$TIMESTAMP'
29612 # Commands run at the beginning of config.status:
29613 APR_SAVE_HEADERS="include/apr.h include/arch/unix/apr_private.h"
29614 APR_MAJOR_VERSION=$APR_MAJOR_VERSION
29617 for apri in \${APR_SAVE_HEADERS}; do
29618 test -r \${apri} && mv \${apri} \${apri}.save
29624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29626 # Handling of arguments.
29627 for ac_config_target in $ac_config_targets
29629 case $ac_config_target in
29630 "include/arch/unix/apr_private.h") CONFIG_HEADERS="$CONFIG_HEADERS include/arch/unix/apr_private.h" ;;
29631 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29632 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29633 "include/apr.h") CONFIG_FILES="$CONFIG_FILES include/apr.h" ;;
29634 "build/apr_rules.mk") CONFIG_FILES="$CONFIG_FILES build/apr_rules.mk" ;;
29635 "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;;
29636 "apr-$APR_MAJOR_VERSION-config") CONFIG_FILES="$CONFIG_FILES apr-$APR_MAJOR_VERSION-config:apr-config.in" ;;
29637 "apr.pc") CONFIG_FILES="$CONFIG_FILES apr.pc" ;;
29638 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
29639 "test/internal/Makefile") CONFIG_FILES="$CONFIG_FILES test/internal/Makefile" ;;
29640 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29642 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29647 # If the user did not use the arguments to specify the items to instantiate,
29648 # then the envvar interface is used. Set only those that are not.
29649 # We use the long form for the default assignment because of an extremely
29650 # bizarre bug on SunOS 4.1.3.
29651 if $ac_need_defaults; then
29652 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29653 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29654 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29657 # Have a temporary directory for convenience. Make it in the build tree
29658 # simply because there is no reason against having it here, and in addition,
29659 # creating and moving files from /tmp can sometimes cause problems.
29660 # Hook for its removal unless debugging.
29661 # Note that there is a small window in which the directory will not be cleaned:
29662 # after its creation but before its name has been assigned to `$tmp'.
29666 trap 'exit_status=$?
29667 : "${ac_tmp:=$tmp}"
29668 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29670 trap 'as_fn_exit 1' 1 2 13 15
29672 # Create a (secure) tmp directory for tmp files.
29675 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29679 tmp=./conf$$-$RANDOM
29680 (umask 077 && mkdir "$tmp")
29681 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29684 # Set up the scripts for CONFIG_FILES section.
29685 # No need to generate them if there are no CONFIG_FILES.
29686 # This happens for instance with `./config.status config.h'.
29687 if test -n "$CONFIG_FILES"; then
29690 ac_cr=`echo X | tr X '\015'`
29691 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29692 # But we know of no other shell where ac_cr would be empty at this
29693 # point, so we can use a bashism as a fallback.
29694 if test "x$ac_cr" = x; then
29695 eval ac_cr=\$\'\\r\'
29697 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29698 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29701 ac_cs_awk_cr=$ac_cr
29704 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29709 echo "cat >conf$$subs.awk <<_ACEOF" &&
29710 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29712 } >conf$$subs.sh ||
29713 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29714 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29716 for ac_last_try in false false false false false :; do
29717 . ./conf$$subs.sh ||
29718 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29720 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29721 if test $ac_delim_n = $ac_delim_num; then
29723 elif $ac_last_try; then
29724 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29726 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29729 rm -f conf$$subs.sh
29731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29732 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29736 s/^/S["/; s/!.*/"]=/
29746 s/\(.\{148\}\)..*/\1/
29748 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29753 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29760 s/\(.\{148\}\)..*/\1/
29762 s/["\\]/\\&/g; s/^/"/; s/$/"/
29766 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29771 ' <conf$$subs.awk | sed '
29776 ' >>$CONFIG_STATUS || ac_write_fail=1
29777 rm -f conf$$subs.awk
29778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29780 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29781 for (key in S) S_is_set[key] = 1
29787 nfields = split(line, field, "@")
29789 len = length(field[1])
29790 for (i = 2; i < nfields; i++) {
29792 keylen = length(key)
29793 if (S_is_set[key]) {
29795 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29796 len += length(value) + length(field[++i])
29807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29808 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29809 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29812 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29813 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29816 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29817 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29818 # trailing colons and then remove the whole line if VPATH becomes empty
29819 # (actually we leave an empty line to preserve line numbers).
29820 if test "x$srcdir" = x.; then
29821 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
29839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29840 fi # test -n "$CONFIG_FILES"
29842 # Set up the scripts for CONFIG_HEADERS section.
29843 # No need to generate them if there are no CONFIG_HEADERS.
29844 # This happens for instance with `./config.status Makefile'.
29845 if test -n "$CONFIG_HEADERS"; then
29846 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29850 # Transform confdefs.h into an awk script `defines.awk', embedded as
29851 # here-document in config.status, that substitutes the proper values into
29852 # config.h.in to produce config.h.
29854 # Create a delimiter string that does not exist in confdefs.h, to ease
29855 # handling of long lines.
29857 for ac_last_try in false false :; do
29858 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29859 if test -z "$ac_tt"; then
29861 elif $ac_last_try; then
29862 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29864 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29868 # For the awk script, D is an array of macro values keyed by name,
29869 # likewise P contains macro parameters if any. Preserve backslash
29870 # newline sequences.
29872 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29874 s/.\{148\}/&'"$ac_delim"'/g
29877 s/^[ ]*#[ ]*define[ ][ ]*/ /
29884 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29886 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29890 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29891 D["\1"]=" \3\\\\\\n"\\/p
29893 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29898 s/.\{148\}/&'"$ac_delim"'/g
29903 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29906 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29908 ' <confdefs.h | sed '
29909 s/'"$ac_delim"'/"\\\
29910 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29913 for (key in D) D_is_set[key] = 1
29916 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29918 split(line, arg, " ")
29919 if (arg[1] == "#") {
29923 defundef = substr(arg[1], 2)
29926 split(mac1, mac2, "(") #)
29928 prefix = substr(line, 1, index(line, defundef) - 1)
29929 if (D_is_set[macro]) {
29930 # Preserve the white space surrounding the "#".
29931 print prefix "define", macro P[macro] D[macro]
29934 # Replace #undef with comments. This is necessary, for example,
29935 # in the case of _POSIX_SOURCE, which is predefined and required
29936 # on some systems where configure will not decide to define it.
29937 if (defundef == "undef") {
29938 print "/*", prefix defundef, macro, "*/"
29946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29947 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29948 fi # test -n "$CONFIG_HEADERS"
29951 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29956 :[FHLC]) ac_mode=$ac_tag; continue;;
29958 case $ac_mode$ac_tag in
29960 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29961 :[FH]-) ac_tag=-:-;;
29962 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29979 -) ac_f="$ac_tmp/stdin";;
29980 *) # Look for the file first in the build tree, then in the source tree
29981 # (if the path is not absolute). The absolute path cannot be DOS-style,
29982 # because $ac_f cannot contain `:'.
29986 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29988 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29990 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29991 as_fn_append ac_file_inputs " '$ac_f'"
29994 # Let's still pretend it is `configure' which instantiates (i.e., don't
29995 # use $as_me), people would be surprised to read:
29996 # /* config.h. Generated by config.status. */
29997 configure_input='Generated from '`
29998 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30000 if test x"$ac_file" != x-; then
30001 configure_input="$ac_file. $configure_input"
30002 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30003 $as_echo "$as_me: creating $ac_file" >&6;}
30005 # Neutralize special characters interpreted by sed in replacement strings.
30006 case $configure_input in #(
30007 *\&* | *\|* | *\\* )
30008 ac_sed_conf_input=`$as_echo "$configure_input" |
30009 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30010 *) ac_sed_conf_input=$configure_input;;
30014 *:-:* | *:-) cat >"$ac_tmp/stdin" \
30015 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
30020 ac_dir=`$as_dirname -- "$ac_file" ||
30021 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30022 X"$ac_file" : 'X\(//\)[^/]' \| \
30023 X"$ac_file" : 'X\(//\)$' \| \
30024 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30025 $as_echo X"$ac_file" |
30026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30030 /^X\(\/\/\)[^/].*/{
30043 as_dir="$ac_dir"; as_fn_mkdir_p
30047 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30049 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30050 # A ".." for each directory in $ac_dir_suffix.
30051 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30052 case $ac_top_builddir_sub in
30053 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30054 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30057 ac_abs_top_builddir=$ac_pwd
30058 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30059 # for backward compatibility:
30060 ac_top_builddir=$ac_top_build_prefix
30063 .) # We are building in place.
30065 ac_top_srcdir=$ac_top_builddir_sub
30066 ac_abs_top_srcdir=$ac_pwd ;;
30067 [\\/]* | ?:[\\/]* ) # Absolute name.
30068 ac_srcdir=$srcdir$ac_dir_suffix;
30069 ac_top_srcdir=$srcdir
30070 ac_abs_top_srcdir=$srcdir ;;
30071 *) # Relative name.
30072 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30073 ac_top_srcdir=$ac_top_build_prefix$srcdir
30074 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30076 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30086 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30087 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30092 # If the template does not know about datarootdir, expand it.
30093 # FIXME: This hack should be removed a few years after 2.60.
30094 ac_datarootdir_hack=; ac_datarootdir_seen=
30105 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30106 *datarootdir*) ac_datarootdir_seen=yes;;
30107 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30109 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30112 ac_datarootdir_hack='
30113 s&@datadir@&$datadir&g
30114 s&@docdir@&$docdir&g
30115 s&@infodir@&$infodir&g
30116 s&@localedir@&$localedir&g
30117 s&@mandir@&$mandir&g
30118 s&\\\${datarootdir}&$datarootdir&g' ;;
30122 # Neutralize VPATH when `$srcdir' = `.'.
30123 # Shell code in configure.ac might set extrasub.
30124 # FIXME: do we really want to maintain this feature?
30125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30126 ac_sed_extra="$ac_vpsub
30129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30131 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30132 s|@configure_input@|$ac_sed_conf_input|;t t
30133 s&@top_builddir@&$ac_top_builddir_sub&;t t
30134 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30135 s&@srcdir@&$ac_srcdir&;t t
30136 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30137 s&@top_srcdir@&$ac_top_srcdir&;t t
30138 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30139 s&@builddir@&$ac_builddir&;t t
30140 s&@abs_builddir@&$ac_abs_builddir&;t t
30141 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30142 s&@INSTALL@&$ac_INSTALL&;t t
30143 $ac_datarootdir_hack
30145 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
30146 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30148 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30149 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
30150 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
30151 "$ac_tmp/out"`; test -z "$ac_out"; } &&
30152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30153 which seems to be undefined. Please make sure it is defined" >&5
30154 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30155 which seems to be undefined. Please make sure it is defined" >&2;}
30157 rm -f "$ac_tmp/stdin"
30159 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
30160 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
30162 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30168 if test x"$ac_file" != x-; then
30170 $as_echo "/* $configure_input */" \
30171 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
30172 } >"$ac_tmp/config.h" \
30173 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30174 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30175 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30176 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30179 mv "$ac_tmp/config.h" "$ac_file" \
30180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30183 $as_echo "/* $configure_input */" \
30184 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30185 || as_fn_error $? "could not create -" "$LINENO" 5
30189 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30190 $as_echo "$as_me: executing $ac_file commands" >&6;}
30195 case $ac_file$ac_mode in
30198 # See if we are running on zsh, and set the options which allow our
30199 # commands through without removal of \ escapes.
30200 if test -n "${ZSH_VERSION+set}" ; then
30201 setopt NO_GLOB_SUBST
30204 cfgfile="${ofile}T"
30205 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30208 cat <<_LT_EOF >> "$cfgfile"
30211 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30212 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30213 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30214 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30216 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30217 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
30219 # Written by Gordon Matzigkeit, 1996
30221 # This file is part of GNU Libtool.
30223 # GNU Libtool is free software; you can redistribute it and/or
30224 # modify it under the terms of the GNU General Public License as
30225 # published by the Free Software Foundation; either version 2 of
30226 # the License, or (at your option) any later version.
30228 # As a special exception to the GNU General Public License,
30229 # if you distribute this file as part of a program or library that
30230 # is built using GNU Libtool, you may include this file under the
30231 # same distribution terms that you use for the rest of that program.
30233 # GNU Libtool is distributed in the hope that it will be useful,
30234 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30235 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30236 # GNU General Public License for more details.
30238 # You should have received a copy of the GNU General Public License
30239 # along with GNU Libtool; see the file COPYING. If not, a copy
30240 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30241 # obtained by writing to the Free Software Foundation, Inc.,
30242 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30245 # The names of the tagged configurations supported by this script.
30248 # ### BEGIN LIBTOOL CONFIG
30250 # Assembler program.
30253 # DLL creation program.
30254 DLLTOOL=$lt_DLLTOOL
30256 # Object dumper program.
30257 OBJDUMP=$lt_OBJDUMP
30259 # Which release of libtool.m4 was used?
30260 macro_version=$macro_version
30261 macro_revision=$macro_revision
30263 # Whether or not to build shared libraries.
30264 build_libtool_libs=$enable_shared
30266 # Whether or not to build static libraries.
30267 build_old_libs=$enable_static
30269 # What type of objects to build.
30272 # Whether or not to optimize for fast installation.
30273 fast_install=$enable_fast_install
30275 # Shell to use when invoking shell scripts.
30278 # An echo program that protects backslashes.
30281 # The PATH separator for the build system.
30282 PATH_SEPARATOR=$lt_PATH_SEPARATOR
30285 host_alias=$host_alias
30289 # The build system.
30290 build_alias=$build_alias
30294 # A sed program that does not truncate output.
30297 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30298 Xsed="\$SED -e 1s/^X//"
30300 # A grep program that handles long lines.
30306 # A literal string matcher.
30309 # A BSD- or MS-compatible name lister.
30312 # Whether we need soft or hard links.
30315 # What is the maximum length of a command?
30316 max_cmd_len=$max_cmd_len
30318 # Object file suffix (normally "o").
30321 # Executable file suffix (normally "").
30324 # whether the shell understands "unset".
30327 # turn spaces into newlines.
30330 # turn newlines into spaces.
30333 # convert \$build file names to \$host format.
30334 to_host_file_cmd=$lt_cv_to_host_file_cmd
30336 # convert \$build files to toolchain format.
30337 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30339 # Method to check whether dependent libraries are shared objects.
30340 deplibs_check_method=$lt_deplibs_check_method
30342 # Command to use when deplibs_check_method = "file_magic".
30343 file_magic_cmd=$lt_file_magic_cmd
30345 # How to find potential files when deplibs_check_method = "file_magic".
30346 file_magic_glob=$lt_file_magic_glob
30348 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
30349 want_nocaseglob=$lt_want_nocaseglob
30351 # Command to associate shared and link libraries.
30352 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
30357 # Flags to create an archive.
30358 AR_FLAGS=$lt_AR_FLAGS
30360 # How to feed a file listing to the archiver.
30361 archiver_list_spec=$lt_archiver_list_spec
30363 # A symbol stripping program.
30366 # Commands used to install an old-style archive.
30368 old_postinstall_cmds=$lt_old_postinstall_cmds
30369 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30371 # Whether to use a lock for old archive extraction.
30372 lock_old_archive_extraction=$lock_old_archive_extraction
30377 # LTCC compiler flags.
30378 LTCFLAGS=$lt_CFLAGS
30380 # Take the output of nm and produce a listing of raw symbols and C names.
30381 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30383 # Transform the output of nm in a proper C declaration.
30384 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30386 # Transform the output of nm in a C name address pair.
30387 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30389 # Transform the output of nm in a C name address pair when lib prefix is needed.
30390 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30392 # Specify filename containing input files for \$NM.
30393 nm_file_list_spec=$lt_nm_file_list_spec
30395 # The root where to search for dependent libraries,and in which our libraries should be installed.
30396 lt_sysroot=$lt_sysroot
30398 # The name of the directory that contains temporary libtool files.
30401 # Used to examine libraries when file_magic_cmd begins with "file".
30402 MAGIC_CMD=$MAGIC_CMD
30404 # Must we lock files when doing compilation?
30405 need_locks=$lt_need_locks
30408 MANIFEST_TOOL=$lt_MANIFEST_TOOL
30410 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30411 DSYMUTIL=$lt_DSYMUTIL
30413 # Tool to change global to local symbols on Mac OS X.
30416 # Tool to manipulate fat objects and archives on Mac OS X.
30419 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30422 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30423 OTOOL64=$lt_OTOOL64
30425 # Old archive suffix (normally "a").
30428 # Shared library suffix (normally ".so").
30429 shrext_cmds=$lt_shrext_cmds
30431 # The commands to extract the exported symbol list from a shared archive.
30432 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30434 # Variables whose values should be saved in libtool wrapper scripts and
30435 # restored at link time.
30436 variables_saved_for_relink=$lt_variables_saved_for_relink
30438 # Do we need the "lib" prefix for modules?
30439 need_lib_prefix=$need_lib_prefix
30441 # Do we need a version for libraries?
30442 need_version=$need_version
30444 # Library versioning type.
30445 version_type=$version_type
30447 # Shared library runtime path variable.
30448 runpath_var=$runpath_var
30450 # Shared library path variable.
30451 shlibpath_var=$shlibpath_var
30453 # Is shlibpath searched before the hard-coded library search path?
30454 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30456 # Format of library name prefix.
30457 libname_spec=$lt_libname_spec
30459 # List of archive names. First name is the real one, the rest are links.
30460 # The last name is the one that the linker finds with -lNAME
30461 library_names_spec=$lt_library_names_spec
30463 # The coded name of the library, if different from the real name.
30464 soname_spec=$lt_soname_spec
30466 # Permission mode override for installation of shared libraries.
30467 install_override_mode=$lt_install_override_mode
30469 # Command to use after installation of a shared archive.
30470 postinstall_cmds=$lt_postinstall_cmds
30472 # Command to use after uninstallation of a shared archive.
30473 postuninstall_cmds=$lt_postuninstall_cmds
30475 # Commands used to finish a libtool library installation in a directory.
30476 finish_cmds=$lt_finish_cmds
30478 # As "finish_cmds", except a single script fragment to be evaled but
30480 finish_eval=$lt_finish_eval
30482 # Whether we should hardcode library paths into libraries.
30483 hardcode_into_libs=$hardcode_into_libs
30485 # Compile-time system search path for libraries.
30486 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30488 # Run-time system search path for libraries.
30489 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30491 # Whether dlopen is supported.
30492 dlopen_support=$enable_dlopen
30494 # Whether dlopen of programs is supported.
30495 dlopen_self=$enable_dlopen_self
30497 # Whether dlopen of statically linked programs is supported.
30498 dlopen_self_static=$enable_dlopen_self_static
30500 # Commands to strip libraries.
30501 old_striplib=$lt_old_striplib
30502 striplib=$lt_striplib
30505 # The linker used to build libraries.
30508 # How to create reloadable object files.
30509 reload_flag=$lt_reload_flag
30510 reload_cmds=$lt_reload_cmds
30512 # Commands used to build an old-style archive.
30513 old_archive_cmds=$lt_old_archive_cmds
30515 # A language specific compiler.
30518 # Is the compiler the GNU compiler?
30521 # Compiler flag to turn off builtin functions.
30522 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30524 # Additional compiler flags for building library objects.
30525 pic_flag=$lt_lt_prog_compiler_pic
30527 # How to pass a linker flag through the compiler.
30528 wl=$lt_lt_prog_compiler_wl
30530 # Compiler flag to prevent dynamic linking.
30531 link_static_flag=$lt_lt_prog_compiler_static
30533 # Does compiler simultaneously support -c and -o options?
30534 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30536 # Whether or not to add -lc for building shared libraries.
30537 build_libtool_need_lc=$archive_cmds_need_lc
30539 # Whether or not to disallow shared libs when runtime libs are static.
30540 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30542 # Compiler flag to allow reflexive dlopens.
30543 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30545 # Compiler flag to generate shared objects directly from archives.
30546 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30548 # Whether the compiler copes with passing no objects directly.
30549 compiler_needs_object=$lt_compiler_needs_object
30551 # Create an old-style archive from a shared archive.
30552 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30554 # Create a temporary old-style archive to link instead of a shared archive.
30555 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30557 # Commands used to build a shared archive.
30558 archive_cmds=$lt_archive_cmds
30559 archive_expsym_cmds=$lt_archive_expsym_cmds
30561 # Commands used to build a loadable module if different from building
30562 # a shared archive.
30563 module_cmds=$lt_module_cmds
30564 module_expsym_cmds=$lt_module_expsym_cmds
30566 # Whether we are building with GNU ld or not.
30567 with_gnu_ld=$lt_with_gnu_ld
30569 # Flag that allows shared libraries with undefined symbols to be built.
30570 allow_undefined_flag=$lt_allow_undefined_flag
30572 # Flag that enforces no undefined symbols.
30573 no_undefined_flag=$lt_no_undefined_flag
30575 # Flag to hardcode \$libdir into a binary during linking.
30576 # This must work even if \$libdir does not exist
30577 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30579 # Whether we need a single "-rpath" flag with a separated argument.
30580 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30582 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30583 # DIR into the resulting binary.
30584 hardcode_direct=$hardcode_direct
30586 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30587 # DIR into the resulting binary and the resulting library dependency is
30588 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30589 # library is relocated.
30590 hardcode_direct_absolute=$hardcode_direct_absolute
30592 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30593 # into the resulting binary.
30594 hardcode_minus_L=$hardcode_minus_L
30596 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30597 # into the resulting binary.
30598 hardcode_shlibpath_var=$hardcode_shlibpath_var
30600 # Set to "yes" if building a shared library automatically hardcodes DIR
30601 # into the library and all subsequent libraries and executables linked
30603 hardcode_automatic=$hardcode_automatic
30605 # Set to yes if linker adds runtime paths of dependent libraries
30606 # to runtime path list.
30607 inherit_rpath=$inherit_rpath
30609 # Whether libtool must link a program against all its dependency libraries.
30610 link_all_deplibs=$link_all_deplibs
30612 # Set to "yes" if exported symbols are required.
30613 always_export_symbols=$always_export_symbols
30615 # The commands to list exported symbols.
30616 export_symbols_cmds=$lt_export_symbols_cmds
30618 # Symbols that should not be listed in the preloaded symbols.
30619 exclude_expsyms=$lt_exclude_expsyms
30621 # Symbols that must always be exported.
30622 include_expsyms=$lt_include_expsyms
30624 # Commands necessary for linking programs (against libraries) with templates.
30625 prelink_cmds=$lt_prelink_cmds
30627 # Commands necessary for finishing linking programs.
30628 postlink_cmds=$lt_postlink_cmds
30630 # Specify filename containing input files.
30631 file_list_spec=$lt_file_list_spec
30633 # How to hardcode a shared library path into an executable.
30634 hardcode_action=$hardcode_action
30636 # ### END LIBTOOL CONFIG
30642 cat <<\_LT_EOF >> "$cfgfile"
30643 # AIX sometimes has problems with the GCC collect2 program. For some
30644 # reason, if we set the COLLECT_NAMES environment variable, the problems
30645 # vanish in a puff of smoke.
30646 if test "X${COLLECT_NAMES+set}" != Xset; then
30648 export COLLECT_NAMES
30655 ltmain="$ac_aux_dir/ltmain.sh"
30658 # We use sed instead of cat because bash on DJGPP gets confused if
30659 # if finds mixed CR/LF and LF-only lines. Since sed operates in
30660 # text mode, it properly converts lines to CR/LF. This bash problem
30661 # is reportedly fixed, but why not run on old versions too?
30662 sed '$q' "$ltmain" >> "$cfgfile" \
30663 || (rm -f "$cfgfile"; exit 1)
30665 if test x"$xsi_shell" = xyes; then
30666 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
30670 \ */*) func_dirname_result="${1%/*}${2}" ;;\
30671 \ * ) func_dirname_result="${3}" ;;\
30673 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
30674 && mv -f "$cfgfile.tmp" "$cfgfile" \
30675 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30676 test 0 -eq $? || _lt_function_replace_fail=:
30679 sed -e '/^func_basename ()$/,/^} # func_basename /c\
30682 \ func_basename_result="${1##*/}"\
30683 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
30684 && mv -f "$cfgfile.tmp" "$cfgfile" \
30685 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30686 test 0 -eq $? || _lt_function_replace_fail=:
30689 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
30690 func_dirname_and_basename ()\
30693 \ */*) func_dirname_result="${1%/*}${2}" ;;\
30694 \ * ) func_dirname_result="${3}" ;;\
30696 \ func_basename_result="${1##*/}"\
30697 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
30698 && mv -f "$cfgfile.tmp" "$cfgfile" \
30699 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30700 test 0 -eq $? || _lt_function_replace_fail=:
30703 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
30706 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
30707 \ # positional parameters, so assign one to ordinary parameter first.\
30708 \ func_stripname_result=${3}\
30709 \ func_stripname_result=${func_stripname_result#"${1}"}\
30710 \ func_stripname_result=${func_stripname_result%"${2}"}\
30711 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
30712 && mv -f "$cfgfile.tmp" "$cfgfile" \
30713 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30714 test 0 -eq $? || _lt_function_replace_fail=:
30717 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
30718 func_split_long_opt ()\
30720 \ func_split_long_opt_name=${1%%=*}\
30721 \ func_split_long_opt_arg=${1#*=}\
30722 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
30723 && mv -f "$cfgfile.tmp" "$cfgfile" \
30724 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30725 test 0 -eq $? || _lt_function_replace_fail=:
30728 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
30729 func_split_short_opt ()\
30731 \ func_split_short_opt_arg=${1#??}\
30732 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
30733 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
30734 && mv -f "$cfgfile.tmp" "$cfgfile" \
30735 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30736 test 0 -eq $? || _lt_function_replace_fail=:
30739 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
30743 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
30744 \ *) func_lo2o_result=${1} ;;\
30746 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
30747 && mv -f "$cfgfile.tmp" "$cfgfile" \
30748 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30749 test 0 -eq $? || _lt_function_replace_fail=:
30752 sed -e '/^func_xform ()$/,/^} # func_xform /c\
30755 func_xform_result=${1%.*}.lo\
30756 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
30757 && mv -f "$cfgfile.tmp" "$cfgfile" \
30758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30759 test 0 -eq $? || _lt_function_replace_fail=:
30762 sed -e '/^func_arith ()$/,/^} # func_arith /c\
30765 func_arith_result=$(( $* ))\
30766 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
30767 && mv -f "$cfgfile.tmp" "$cfgfile" \
30768 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30769 test 0 -eq $? || _lt_function_replace_fail=:
30772 sed -e '/^func_len ()$/,/^} # func_len /c\
30775 func_len_result=${#1}\
30776 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
30777 && mv -f "$cfgfile.tmp" "$cfgfile" \
30778 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30779 test 0 -eq $? || _lt_function_replace_fail=:
30783 if test x"$lt_shell_append" = xyes; then
30784 sed -e '/^func_append ()$/,/^} # func_append /c\
30787 eval "${1}+=\\${2}"\
30788 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
30789 && mv -f "$cfgfile.tmp" "$cfgfile" \
30790 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30791 test 0 -eq $? || _lt_function_replace_fail=:
30794 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
30795 func_append_quoted ()\
30797 \ func_quote_for_eval "${2}"\
30798 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
30799 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
30800 && mv -f "$cfgfile.tmp" "$cfgfile" \
30801 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30802 test 0 -eq $? || _lt_function_replace_fail=:
30805 # Save a `func_append' function call where possible by direct use of '+='
30806 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
30807 && mv -f "$cfgfile.tmp" "$cfgfile" \
30808 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30809 test 0 -eq $? || _lt_function_replace_fail=:
30811 # Save a `func_append' function call even when '+=' is not available
30812 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
30813 && mv -f "$cfgfile.tmp" "$cfgfile" \
30814 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30815 test 0 -eq $? || _lt_function_replace_fail=:
30818 if test x"$_lt_function_replace_fail" = x":"; then
30819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
30820 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
30824 mv -f "$cfgfile" "$ofile" ||
30825 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30830 # Commands run at the end of config.status:
30831 for i in $APR_SAVE_HEADERS; do
30832 if cmp -s $i $i.save 2>/dev/null; then
30834 { $as_echo "$as_me:${as_lineno-$LINENO}: $i is unchanged" >&5
30835 $as_echo "$as_me: $i is unchanged" >&6;}
30839 chmod +x apr-$APR_MAJOR_VERSION-config
30848 ac_clean_files=$ac_clean_files_save
30850 test $ac_write_fail = 0 ||
30851 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30854 # configure is writing to config.log, and then calls config.status.
30855 # config.status does its own redirection, appending to config.log.
30856 # Unfortunately, on DOS this fails, as config.log is still kept open
30857 # by configure, so config.status won't be able to write to it; its
30858 # output is simply discarded. So we exec the FD to /dev/null,
30859 # effectively closing config.log, so it can be properly (re)opened and
30860 # appended to by config.status. When coming back to configure, we
30861 # need to make the FD available again.
30862 if test "$no_create" != yes; then
30864 ac_config_status_args=
30865 test "$silent" = yes &&
30866 ac_config_status_args="$ac_config_status_args --quiet"
30868 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30870 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30871 # would make configure fail if this is the last instruction.
30872 $ac_cs_success || as_fn_exit 1
30874 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30876 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}