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
682 have_pthread_condattr_setpshared
683 have_pthread_mutex_timedlock
765 tcp_nodelay_inherited
895 program_transform_name
908 enable_option_checking
910 enable_experimental_libtool
922 enable_maintainer_mode
927 enable_nonportable_atomics
933 enable_allocator_uses_mmap
934 enable_allocator_guard_pages
935 enable_pool_concurrency_check
943 ac_precious_vars='build_alias
955 # Initialize some variables set by options.
957 ac_init_version=false
958 ac_unrecognized_opts=
960 # The variables have the same names as the options, with
961 # dashes changed to underlines.
969 program_transform_name=s,x,x,
977 # Installation directory options.
978 # These are left unexpanded so users can "make install exec_prefix=/foo"
979 # and all the variables that are supposed to be based on exec_prefix
980 # by default will actually change.
981 # Use braces instead of parens because sh, perl, etc. also accept them.
982 # (The list follows the same order as the GNU Coding Standards.)
983 bindir='${exec_prefix}/bin'
984 sbindir='${exec_prefix}/sbin'
985 libexecdir='${exec_prefix}/libexec'
986 datarootdir='${prefix}/share'
987 datadir='${datarootdir}'
988 sysconfdir='${prefix}/etc'
989 sharedstatedir='${prefix}/com'
990 localstatedir='${prefix}/var'
991 includedir='${prefix}/include'
992 oldincludedir='/usr/include'
993 docdir='${datarootdir}/doc/${PACKAGE}'
994 infodir='${datarootdir}/info'
999 libdir='${exec_prefix}/lib'
1000 localedir='${datarootdir}/locale'
1001 mandir='${datarootdir}/man'
1007 # If the previous option needs an argument, assign it.
1008 if test -n "$ac_prev"; then
1009 eval $ac_prev=\$ac_option
1015 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 # Accept the important Cygnus configure options, so we can diagnose typos.
1022 case $ac_dashdash$ac_option in
1026 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1028 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1029 bindir=$ac_optarg ;;
1031 -build | --build | --buil | --bui | --bu)
1032 ac_prev=build_alias ;;
1033 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1034 build_alias=$ac_optarg ;;
1036 -cache-file | --cache-file | --cache-fil | --cache-fi \
1037 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1038 ac_prev=cache_file ;;
1039 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1040 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1041 cache_file=$ac_optarg ;;
1043 --config-cache | -C)
1044 cache_file=config.cache ;;
1046 -datadir | --datadir | --datadi | --datad)
1048 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1049 datadir=$ac_optarg ;;
1051 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1052 | --dataroo | --dataro | --datar)
1053 ac_prev=datarootdir ;;
1054 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1055 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1056 datarootdir=$ac_optarg ;;
1058 -disable-* | --disable-*)
1059 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062 as_fn_error $? "invalid feature name: $ac_useropt"
1063 ac_useropt_orig=$ac_useropt
1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1067 "enable_$ac_useropt"
1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1070 ac_unrecognized_sep=', ';;
1072 eval enable_$ac_useropt=no ;;
1074 -docdir | --docdir | --docdi | --doc | --do)
1076 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1077 docdir=$ac_optarg ;;
1079 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1082 dvidir=$ac_optarg ;;
1084 -enable-* | --enable-*)
1085 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 as_fn_error $? "invalid feature name: $ac_useropt"
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1093 "enable_$ac_useropt"
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1098 eval enable_$ac_useropt=\$ac_optarg ;;
1100 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1101 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1102 | --exec | --exe | --ex)
1103 ac_prev=exec_prefix ;;
1104 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1105 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1106 | --exec=* | --exe=* | --ex=*)
1107 exec_prefix=$ac_optarg ;;
1109 -gas | --gas | --ga | --g)
1110 # Obsolete; use --with-gas.
1113 -help | --help | --hel | --he | -h)
1114 ac_init_help=long ;;
1115 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1116 ac_init_help=recursive ;;
1117 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1118 ac_init_help=short ;;
1120 -host | --host | --hos | --ho)
1121 ac_prev=host_alias ;;
1122 -host=* | --host=* | --hos=* | --ho=*)
1123 host_alias=$ac_optarg ;;
1125 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1127 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1129 htmldir=$ac_optarg ;;
1131 -includedir | --includedir | --includedi | --included | --include \
1132 | --includ | --inclu | --incl | --inc)
1133 ac_prev=includedir ;;
1134 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1135 | --includ=* | --inclu=* | --incl=* | --inc=*)
1136 includedir=$ac_optarg ;;
1138 -infodir | --infodir | --infodi | --infod | --info | --inf)
1140 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1141 infodir=$ac_optarg ;;
1143 -libdir | --libdir | --libdi | --libd)
1145 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1146 libdir=$ac_optarg ;;
1148 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1149 | --libexe | --libex | --libe)
1150 ac_prev=libexecdir ;;
1151 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1152 | --libexe=* | --libex=* | --libe=*)
1153 libexecdir=$ac_optarg ;;
1155 -localedir | --localedir | --localedi | --localed | --locale)
1156 ac_prev=localedir ;;
1157 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1158 localedir=$ac_optarg ;;
1160 -localstatedir | --localstatedir | --localstatedi | --localstated \
1161 | --localstate | --localstat | --localsta | --localst | --locals)
1162 ac_prev=localstatedir ;;
1163 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1164 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1165 localstatedir=$ac_optarg ;;
1167 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1169 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1170 mandir=$ac_optarg ;;
1172 -nfp | --nfp | --nf)
1173 # Obsolete; use --without-fp.
1176 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1177 | --no-cr | --no-c | -n)
1180 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1185 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1186 | --oldin | --oldi | --old | --ol | --o)
1187 ac_prev=oldincludedir ;;
1188 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1189 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1190 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1191 oldincludedir=$ac_optarg ;;
1193 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1195 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1196 prefix=$ac_optarg ;;
1198 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1199 | --program-pre | --program-pr | --program-p)
1200 ac_prev=program_prefix ;;
1201 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1202 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1203 program_prefix=$ac_optarg ;;
1205 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1206 | --program-suf | --program-su | --program-s)
1207 ac_prev=program_suffix ;;
1208 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1209 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1210 program_suffix=$ac_optarg ;;
1212 -program-transform-name | --program-transform-name \
1213 | --program-transform-nam | --program-transform-na \
1214 | --program-transform-n | --program-transform- \
1215 | --program-transform | --program-transfor \
1216 | --program-transfo | --program-transf \
1217 | --program-trans | --program-tran \
1218 | --progr-tra | --program-tr | --program-t)
1219 ac_prev=program_transform_name ;;
1220 -program-transform-name=* | --program-transform-name=* \
1221 | --program-transform-nam=* | --program-transform-na=* \
1222 | --program-transform-n=* | --program-transform-=* \
1223 | --program-transform=* | --program-transfor=* \
1224 | --program-transfo=* | --program-transf=* \
1225 | --program-trans=* | --program-tran=* \
1226 | --progr-tra=* | --program-tr=* | --program-t=*)
1227 program_transform_name=$ac_optarg ;;
1229 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1231 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1232 pdfdir=$ac_optarg ;;
1234 -psdir | --psdir | --psdi | --psd | --ps)
1236 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240 | -silent | --silent | --silen | --sile | --sil)
1243 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247 sbindir=$ac_optarg ;;
1249 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1250 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1251 | --sharedst | --shareds | --shared | --share | --shar \
1253 ac_prev=sharedstatedir ;;
1254 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1255 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1256 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258 sharedstatedir=$ac_optarg ;;
1260 -site | --site | --sit)
1262 -site=* | --site=* | --sit=*)
1265 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1268 srcdir=$ac_optarg ;;
1270 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1271 | --syscon | --sysco | --sysc | --sys | --sy)
1272 ac_prev=sysconfdir ;;
1273 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1274 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1275 sysconfdir=$ac_optarg ;;
1277 -target | --target | --targe | --targ | --tar | --ta | --t)
1278 ac_prev=target_alias ;;
1279 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1280 target_alias=$ac_optarg ;;
1282 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285 -version | --version | --versio | --versi | --vers | -V)
1286 ac_init_version=: ;;
1289 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 as_fn_error $? "invalid package name: $ac_useropt"
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1302 eval with_$ac_useropt=\$ac_optarg ;;
1304 -without-* | --without-*)
1305 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1308 as_fn_error $? "invalid package name: $ac_useropt"
1309 ac_useropt_orig=$ac_useropt
1310 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1311 case $ac_user_opts in
1315 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1316 ac_unrecognized_sep=', ';;
1318 eval with_$ac_useropt=no ;;
1321 # Obsolete; use --with-x.
1324 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1325 | --x-incl | --x-inc | --x-in | --x-i)
1326 ac_prev=x_includes ;;
1327 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1328 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1329 x_includes=$ac_optarg ;;
1331 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1332 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1333 ac_prev=x_libraries ;;
1334 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1335 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1336 x_libraries=$ac_optarg ;;
1338 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1339 Try \`$0 --help' for more information"
1343 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1344 # Reject names that are not valid shell variable names.
1345 case $ac_envvar in #(
1346 '' | [0-9]* | *[!_$as_cr_alnum]* )
1347 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1349 eval $ac_envvar=\$ac_optarg
1350 export $ac_envvar ;;
1353 # FIXME: should be removed in autoconf 3.0.
1354 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1355 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1356 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1357 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1363 if test -n "$ac_prev"; then
1364 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1365 as_fn_error $? "missing argument to $ac_option"
1368 if test -n "$ac_unrecognized_opts"; then
1369 case $enable_option_checking in
1371 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1372 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1376 # Check all directory arguments for consistency.
1377 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1378 datadir sysconfdir sharedstatedir localstatedir includedir \
1379 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1380 libdir localedir mandir
1382 eval ac_val=\$$ac_var
1383 # Remove trailing slashes.
1386 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1387 eval $ac_var=\$ac_val;;
1389 # Be sure to have absolute directory names.
1391 [\\/$]* | ?:[\\/]* ) continue;;
1392 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1394 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1397 # There might be people who depend on the old broken behavior: `$host'
1398 # used to hold the argument of --host etc.
1399 # FIXME: To remove some day.
1402 target=$target_alias
1404 # FIXME: To remove some day.
1405 if test "x$host_alias" != x; then
1406 if test "x$build_alias" = x; then
1407 cross_compiling=maybe
1408 elif test "x$build_alias" != "x$host_alias"; then
1414 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1416 test "$silent" = yes && exec 6>/dev/null
1419 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1420 ac_ls_di=`ls -di .` &&
1421 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1422 as_fn_error $? "working directory cannot be determined"
1423 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1424 as_fn_error $? "pwd does not report name of working directory"
1427 # Find the source files, if location was not specified.
1428 if test -z "$srcdir"; then
1429 ac_srcdir_defaulted=yes
1430 # Try the directory containing this script, then the parent directory.
1431 ac_confdir=`$as_dirname -- "$as_myself" ||
1432 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1433 X"$as_myself" : 'X\(//\)[^/]' \| \
1434 X"$as_myself" : 'X\(//\)$' \| \
1435 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1436 $as_echo X"$as_myself" |
1437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1459 ac_srcdir_defaulted=no
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1462 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1463 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1465 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1467 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1469 # When building in place, set srcdir=.
1470 if test "$ac_abs_confdir" = "$ac_pwd"; then
1473 # Remove unnecessary trailing slashes from srcdir.
1474 # Double slashes in file names in object file debugging info
1475 # mess up M-x gdb in Emacs.
1477 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1479 for ac_var in $ac_precious_vars; do
1480 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1481 eval ac_env_${ac_var}_value=\$${ac_var}
1482 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1483 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1487 # Report the --help message.
1489 if test "$ac_init_help" = "long"; then
1490 # Omit some internal or obsolete options to make the list less imposing.
1491 # This message is too long to be a string in the A/UX 3.1 sh.
1493 \`configure' configures this package to adapt to many kinds of systems.
1495 Usage: $0 [OPTION]... [VAR=VALUE]...
1497 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1498 VAR=VALUE. See below for descriptions of some of the useful variables.
1500 Defaults for the options are specified in brackets.
1503 -h, --help display this help and exit
1504 --help=short display options specific to this package
1505 --help=recursive display the short help of all the included packages
1506 -V, --version display version information and exit
1507 -q, --quiet, --silent do not print \`checking ...' messages
1508 --cache-file=FILE cache test results in FILE [disabled]
1509 -C, --config-cache alias for \`--cache-file=config.cache'
1510 -n, --no-create do not create output files
1511 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1513 Installation directories:
1514 --prefix=PREFIX install architecture-independent files in PREFIX
1515 [$ac_default_prefix]
1516 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1519 By default, \`make install' will install all the files in
1520 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1521 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1522 for instance \`--prefix=\$HOME'.
1524 For better control, use the options below.
1526 Fine tuning of the installation directories:
1527 --bindir=DIR user executables [EPREFIX/bin]
1528 --sbindir=DIR system admin executables [EPREFIX/sbin]
1529 --libexecdir=DIR program executables [EPREFIX/libexec]
1530 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1531 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1532 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1533 --libdir=DIR object code libraries [EPREFIX/lib]
1534 --includedir=DIR C header files [PREFIX/include]
1535 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1536 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1537 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1538 --infodir=DIR info documentation [DATAROOTDIR/info]
1539 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1540 --mandir=DIR man documentation [DATAROOTDIR/man]
1541 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1542 --htmldir=DIR html documentation [DOCDIR]
1543 --dvidir=DIR dvi documentation [DOCDIR]
1544 --pdfdir=DIR pdf documentation [DOCDIR]
1545 --psdir=DIR ps documentation [DOCDIR]
1551 --build=BUILD configure for building on BUILD [guessed]
1552 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1553 --target=TARGET configure for building compilers for TARGET [HOST]
1557 if test -n "$ac_init_help"; then
1562 --disable-option-checking ignore unrecognized --enable/--with options
1563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1565 --enable-layout=LAYOUT
1566 --enable-experimental-libtool Use experimental custom libtool
1567 --enable-shared[=PKGS] build shared libraries [default=yes]
1568 --enable-static[=PKGS] build static libraries [default=yes]
1569 --enable-fast-install[=PKGS]
1570 optimize for fast installation [default=yes]
1571 --disable-libtool-lock avoid locking (might break parallel builds)
1572 --enable-debug Turn on debugging and compile time warnings
1573 --enable-maintainer-mode Turn on debugging and compile time warnings
1574 --enable-profile Turn on profiling for the build (GCC)
1575 --enable-pool-debug[=yes|no|verbose|verbose-alloc|lifetime|owner|all] Turn on pools debugging
1576 --enable-malloc-debug Switch on malloc_debug for BeOS
1577 --disable-lfs Disable large file support on 32-bit platforms
1578 --enable-nonportable-atomics Use optimized atomic code which may produce nonportable binaries
1579 --enable-threads Enable threading support in APR.
1580 --enable-posix-shm Use POSIX shared memory (shm_open) if available
1581 --enable-allocator-uses-mmap Use mmap in apr_allocator instead of malloc
1582 --enable-allocator-guard-pages Use guard pages in apr_allocator
1583 (implies --enable-allocator-uses-mmap)
1584 --enable-pool-concurrency-check Check for concurrent usage of memory pools
1585 --disable-dso Disable DSO support
1586 --enable-other-child Enable reliable child processes
1587 --disable-ipv6 Disable IPv6 support in APR.
1588 --disable-timedlocks Disable timed locks
1591 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1592 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1593 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1595 --with-aix-soname=aix|svr4|both
1596 shared library versioning (aka "SONAME") variant to
1597 provide on AIX, [default=aix].
1598 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1599 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1600 compiler's sysroot if not specified).
1601 --with-installbuilddir=DIR location to store APR build files
1602 --without-libtool avoid using libtool to link the library
1603 --with-efence[=DIR] path to Electric Fence installation
1604 --with-valgrind[=DIR] Enable code to teach valgrind about apr pools
1605 (optionally: set path to valgrind headers)
1606 --with-sendfile Override decision to use sendfile
1607 --with-egd[=DIR] use EGD-compatible socket
1608 --with-devrandom[=DEV] use /dev/random or compatible [searches by default]
1610 Some influential environment variables:
1611 CC C compiler command
1612 CFLAGS C compiler flags
1613 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1614 nonstandard directory <lib dir>
1615 LIBS libraries to pass to the linker, e.g. -l<library>
1616 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1617 you have headers in a nonstandard directory <include dir>
1620 User-defined run-time library search path.
1622 Use these variables to override the choices made by `configure' or to help
1623 it to find libraries and programs with nonstandard names/locations.
1625 Report bugs to the package provider.
1630 if test "$ac_init_help" = "recursive"; then
1631 # If there are subdirs, report their specific --help.
1632 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1633 test -d "$ac_dir" ||
1634 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1639 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1642 # A ".." for each directory in $ac_dir_suffix.
1643 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1644 case $ac_top_builddir_sub in
1645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1649 ac_abs_top_builddir=$ac_pwd
1650 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1651 # for backward compatibility:
1652 ac_top_builddir=$ac_top_build_prefix
1655 .) # We are building in place.
1657 ac_top_srcdir=$ac_top_builddir_sub
1658 ac_abs_top_srcdir=$ac_pwd ;;
1659 [\\/]* | ?:[\\/]* ) # Absolute name.
1660 ac_srcdir=$srcdir$ac_dir_suffix;
1661 ac_top_srcdir=$srcdir
1662 ac_abs_top_srcdir=$srcdir ;;
1664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1665 ac_top_srcdir=$ac_top_build_prefix$srcdir
1666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1668 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1670 cd "$ac_dir" || { ac_status=$?; continue; }
1671 # Check for guested configure.
1672 if test -f "$ac_srcdir/configure.gnu"; then
1674 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1675 elif test -f "$ac_srcdir/configure"; then
1677 $SHELL "$ac_srcdir/configure" --help=recursive
1679 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1681 cd "$ac_pwd" || { ac_status=$?; break; }
1685 test -n "$ac_init_help" && exit $ac_status
1686 if $ac_init_version; then
1689 generated by GNU Autoconf 2.69
1691 Copyright (C) 2012 Free Software Foundation, Inc.
1692 This configure script is free software; the Free Software Foundation
1693 gives unlimited permission to copy, distribute and modify it.
1698 ## ------------------------ ##
1699 ## Autoconf initialization. ##
1700 ## ------------------------ ##
1702 # ac_fn_c_try_compile LINENO
1703 # --------------------------
1704 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_c_try_compile ()
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext
1709 if { { ac_try="$ac_compile"
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_compile") 2>conftest.err
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest.$ac_objext; then :
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1738 } # ac_fn_c_try_compile
1740 # ac_fn_c_try_cpp LINENO
1741 # ----------------------
1742 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if { { ac_try="$ac_cpp conftest.$ac_ext"
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1755 if test -s conftest.err; then
1756 grep -v '^ *+' conftest.err >conftest.er1
1757 cat conftest.er1 >&5
1758 mv -f conftest.er1 conftest.err
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } > conftest.i && {
1762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1763 test ! -s conftest.err
1767 $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1777 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1778 # -------------------------------------------------------
1779 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1780 # the include files in INCLUDES and setting the cache variable VAR
1782 ac_fn_c_check_header_mongrel ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if eval \${$3+:} false; then :
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 $as_echo "$ac_res" >&6; }
1795 # Is the header compilable?
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1797 $as_echo_n "checking $2 usability... " >&6; }
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1803 if ac_fn_c_try_compile "$LINENO"; then :
1804 ac_header_compiler=yes
1806 ac_header_compiler=no
1808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1810 $as_echo "$ac_header_compiler" >&6; }
1812 # Is the header present?
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1814 $as_echo_n "checking $2 presence... " >&6; }
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1819 if ac_fn_c_try_cpp "$LINENO"; then :
1820 ac_header_preproc=yes
1822 ac_header_preproc=no
1824 rm -f conftest.err conftest.i conftest.$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1826 $as_echo "$ac_header_preproc" >&6; }
1828 # So? What about this header?
1829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1832 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1838 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1840 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1842 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1844 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1854 eval "$3=\$ac_header_compiler"
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 } # ac_fn_c_check_header_mongrel
1864 # ac_fn_c_try_run LINENO
1865 # ----------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1867 # that executables *can* be run.
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 if { { ac_try="$ac_link"
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_link") 2>&5
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1882 { { case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_try") 2>&5
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; }; }; then :
1894 $as_echo "$as_me: program exited with status $ac_status" >&5
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1898 ac_retval=$ac_status
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1906 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1907 # -------------------------------------------------------
1908 # Tests whether HEADER exists and can be compiled using the include files in
1909 # INCLUDES, setting the cache variable VAR accordingly.
1910 ac_fn_c_check_header_compile ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if eval \${$3+:} false; then :
1916 $as_echo_n "(cached) " >&6
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1923 if ac_fn_c_try_compile "$LINENO"; then :
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 } # ac_fn_c_check_header_compile
1937 # ac_fn_c_try_link LINENO
1938 # -----------------------
1939 # Try to link conftest.$ac_ext, and return whether this succeeded.
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 rm -f conftest.$ac_objext conftest$ac_exeext
1944 if { { ac_try="$ac_link"
1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947 *) ac_try_echo=$ac_try;;
1949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951 (eval "$ac_link") 2>conftest.err
1953 if test -s conftest.err; then
1954 grep -v '^ *+' conftest.err >conftest.er1
1955 cat conftest.er1 >&5
1956 mv -f conftest.er1 conftest.err
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } && {
1960 test -z "$ac_c_werror_flag" ||
1961 test ! -s conftest.err
1962 } && test -s conftest$ac_exeext && {
1963 test "$cross_compiling" = yes ||
1964 test -x conftest$ac_exeext
1968 $as_echo "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1973 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1974 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1975 # interfere with the next link command; also delete a directory that is
1976 # left behind by Apple's compiler. We do this before executing the actions.
1977 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 as_fn_set_status $ac_retval
1981 } # ac_fn_c_try_link
1983 # ac_fn_c_check_func LINENO FUNC VAR
1984 # ----------------------------------
1985 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1986 ac_fn_c_check_func ()
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if eval \${$3+:} false; then :
1992 $as_echo_n "(cached) " >&6
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
1996 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1998 #define $2 innocuous_$2
2000 /* System header to define __stub macros and hopefully few prototypes,
2001 which can conflict with char $2 (); below.
2002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2003 <limits.h> exists even on freestanding compilers. */
2006 # include <limits.h>
2008 # include <assert.h>
2013 /* Override any GCC internal prototype to avoid an error.
2014 Use char because int might match the return type of a GCC
2015 builtin and then its argument prototype would still apply. */
2020 /* The GNU C library defines this for functions which it implements
2021 to always fail with ENOSYS. Some functions are actually named
2022 something starting with __ and the normal name is an alias. */
2023 #if defined __stub_$2 || defined __stub___$2
2035 if ac_fn_c_try_link "$LINENO"; then :
2040 rm -f core conftest.err conftest.$ac_objext \
2041 conftest$ac_exeext conftest.$ac_ext
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048 } # ac_fn_c_check_func
2050 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2051 # -------------------------------------------
2052 # Tests whether TYPE exists after having included INCLUDES, setting cache
2053 # variable VAR accordingly.
2054 ac_fn_c_check_type ()
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if eval \${$3+:} false; then :
2060 $as_echo_n "(cached) " >&6
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2075 if ac_fn_c_try_compile "$LINENO"; then :
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2088 if ac_fn_c_try_compile "$LINENO"; then :
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099 $as_echo "$ac_res" >&6; }
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102 } # ac_fn_c_check_type
2104 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2105 # --------------------------------------------
2106 # Tries to find the compile-time value of EXPR in a program that includes
2107 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2109 ac_fn_c_compute_int ()
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112 if test "$cross_compiling" = yes; then
2113 # Depending upon the size, compute the lo and hi bounds.
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2120 static int test_array [1 - 2 * !(($2) >= 0)];
2122 return test_array [0];
2128 if ac_fn_c_try_compile "$LINENO"; then :
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2137 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2139 return test_array [0];
2145 if ac_fn_c_try_compile "$LINENO"; then :
2146 ac_hi=$ac_mid; break
2148 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2149 if test $ac_lo -le $ac_mid; then
2153 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2164 static int test_array [1 - 2 * !(($2) < 0)];
2166 return test_array [0];
2172 if ac_fn_c_try_compile "$LINENO"; then :
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2181 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2183 return test_array [0];
2189 if ac_fn_c_try_compile "$LINENO"; then :
2190 ac_lo=$ac_mid; break
2192 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2193 if test $ac_mid -le $ac_hi; then
2197 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207 # Binary search between lo and hi bounds.
2208 while test "x$ac_lo" != "x$ac_hi"; do
2209 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2216 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2218 return test_array [0];
2224 if ac_fn_c_try_compile "$LINENO"; then :
2227 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2239 static long int longval () { return $2; }
2240 static unsigned long int ulongval () { return $2; }
2247 FILE *f = fopen ("conftest.val", "w");
2252 long int i = longval ();
2255 fprintf (f, "%ld", i);
2259 unsigned long int i = ulongval ();
2262 fprintf (f, "%lu", i);
2264 /* Do not output a trailing newline, as this causes \r\n confusion
2265 on some platforms. */
2266 return ferror (f) || fclose (f) != 0;
2272 if ac_fn_c_try_run "$LINENO"; then :
2273 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2278 conftest.$ac_objext conftest.beam conftest.$ac_ext
2282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2283 as_fn_set_status $ac_retval
2285 } # ac_fn_c_compute_int
2287 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2288 # ---------------------------------------------
2289 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2291 ac_fn_c_check_decl ()
2293 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2294 as_decl_name=`echo $2|sed 's/ *(.*//'`
2295 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2297 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2298 if eval \${$3+:} false; then :
2299 $as_echo_n "(cached) " >&6
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2307 #ifndef $as_decl_name
2309 (void) $as_decl_use;
2311 (void) $as_decl_name;
2319 if ac_fn_c_try_compile "$LINENO"; then :
2324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2328 $as_echo "$ac_res" >&6; }
2329 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2331 } # ac_fn_c_check_decl
2333 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2334 # ----------------------------------------------------
2335 # Tries to find if the field MEMBER exists in type AGGR, after including
2336 # INCLUDES, setting cache variable VAR accordingly.
2337 ac_fn_c_check_member ()
2339 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2341 $as_echo_n "checking for $2.$3... " >&6; }
2342 if eval \${$4+:} false; then :
2343 $as_echo_n "(cached) " >&6
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2358 if ac_fn_c_try_compile "$LINENO"; then :
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h. */
2368 if (sizeof ac_aggr.$3)
2374 if ac_fn_c_try_compile "$LINENO"; then :
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2385 $as_echo "$ac_res" >&6; }
2386 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2388 } # ac_fn_c_check_member
2389 cat >config.log <<_ACEOF
2390 This file contains any messages produced by compilers while
2391 running configure, to aid debugging if configure makes a mistake.
2393 It was created by $as_me, which was
2394 generated by GNU Autoconf 2.69. Invocation command line was
2406 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2407 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2408 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2409 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2410 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2412 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2413 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2415 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2416 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2417 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2418 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2419 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2420 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2421 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 test -z "$as_dir" && as_dir=.
2430 $as_echo "PATH: $as_dir"
2446 # Keep a trace of the command line.
2447 # Strip out --no-create and --no-recursion so they do not pile up.
2448 # Strip out --silent because we don't want to record it for future runs.
2449 # Also quote any args containing shell meta-characters.
2450 # Make two passes to allow for proper duplicate-argument suppression.
2454 ac_must_keep_next=false
2460 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2461 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2462 | -silent | --silent | --silen | --sile | --sil)
2465 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2468 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2470 as_fn_append ac_configure_args1 " '$ac_arg'"
2471 if test $ac_must_keep_next = true; then
2472 ac_must_keep_next=false # Got value, back to normal.
2475 *=* | --config-cache | -C | -disable-* | --disable-* \
2476 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2477 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2478 | -with-* | --with-* | -without-* | --without-* | --x)
2479 case "$ac_configure_args0 " in
2480 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2483 -* ) ac_must_keep_next=true ;;
2486 as_fn_append ac_configure_args " '$ac_arg'"
2491 { ac_configure_args0=; unset ac_configure_args0;}
2492 { ac_configure_args1=; unset ac_configure_args1;}
2494 # When interrupted or exit'd, cleanup temporary files, and complete
2495 # config.log. We remove comments because anyway the quotes in there
2496 # would cause problems or look ugly.
2497 # WARNING: Use '\'' to represent an apostrophe within the trap.
2498 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2499 trap 'exit_status=$?
2500 # Save into config.log some information that might help in debugging.
2504 $as_echo "## ---------------- ##
2505 ## Cache variables. ##
2506 ## ---------------- ##"
2508 # The following way of writing the cache mishandles newlines in values,
2510 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2511 eval ac_val=\$$ac_var
2515 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2516 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2519 _ | IFS | as_nl) ;; #(
2520 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2521 *) { eval $ac_var=; unset $ac_var;} ;;
2526 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2527 *${as_nl}ac_space=\ *)
2529 "s/'\''/'\''\\\\'\'''\''/g;
2530 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2533 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2540 $as_echo "## ----------------- ##
2541 ## Output variables. ##
2542 ## ----------------- ##"
2544 for ac_var in $ac_subst_vars
2546 eval ac_val=\$$ac_var
2548 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2550 $as_echo "$ac_var='\''$ac_val'\''"
2554 if test -n "$ac_subst_files"; then
2555 $as_echo "## ------------------- ##
2556 ## File substitutions. ##
2557 ## ------------------- ##"
2559 for ac_var in $ac_subst_files
2561 eval ac_val=\$$ac_var
2563 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2565 $as_echo "$ac_var='\''$ac_val'\''"
2570 if test -s confdefs.h; then
2571 $as_echo "## ----------- ##
2578 test "$ac_signal" != 0 &&
2579 $as_echo "$as_me: caught signal $ac_signal"
2580 $as_echo "$as_me: exit $exit_status"
2582 rm -f core *.core core.conftest.* &&
2583 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2586 for ac_signal in 1 2 13 15; do
2587 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2591 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2592 rm -f -r conftest* confdefs.h
2594 $as_echo "/* confdefs.h */" > confdefs.h
2596 # Predefined preprocessor variables.
2598 cat >>confdefs.h <<_ACEOF
2599 #define PACKAGE_NAME "$PACKAGE_NAME"
2602 cat >>confdefs.h <<_ACEOF
2603 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2606 cat >>confdefs.h <<_ACEOF
2607 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2610 cat >>confdefs.h <<_ACEOF
2611 #define PACKAGE_STRING "$PACKAGE_STRING"
2614 cat >>confdefs.h <<_ACEOF
2615 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2618 cat >>confdefs.h <<_ACEOF
2619 #define PACKAGE_URL "$PACKAGE_URL"
2623 # Let the site file select an alternate cache file if it wants to.
2624 # Prefer an explicitly selected file to automatically selected ones.
2627 if test -n "$CONFIG_SITE"; then
2628 # We do not want a PATH search for config.site.
2629 case $CONFIG_SITE in #((
2630 -*) ac_site_file1=./$CONFIG_SITE;;
2631 */*) ac_site_file1=$CONFIG_SITE;;
2632 *) ac_site_file1=./$CONFIG_SITE;;
2634 elif test "x$prefix" != xNONE; then
2635 ac_site_file1=$prefix/share/config.site
2636 ac_site_file2=$prefix/etc/config.site
2638 ac_site_file1=$ac_default_prefix/share/config.site
2639 ac_site_file2=$ac_default_prefix/etc/config.site
2641 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2643 test "x$ac_site_file" = xNONE && continue
2644 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2646 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2647 sed 's/^/| /' "$ac_site_file" >&5
2649 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2651 as_fn_error $? "failed to load site script $ac_site_file
2652 See \`config.log' for more details" "$LINENO" 5; }
2656 if test -r "$cache_file"; then
2657 # Some versions of bash will fail to source /dev/null (special files
2658 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2659 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2661 $as_echo "$as_me: loading cache $cache_file" >&6;}
2663 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2664 *) . "./$cache_file";;
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2669 $as_echo "$as_me: creating cache $cache_file" >&6;}
2673 # Check that the precious variables saved in the cache have kept the same
2675 ac_cache_corrupted=false
2676 for ac_var in $ac_precious_vars; do
2677 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2678 eval ac_new_set=\$ac_env_${ac_var}_set
2679 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2680 eval ac_new_val=\$ac_env_${ac_var}_value
2681 case $ac_old_set,$ac_new_set in
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2684 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2685 ac_cache_corrupted=: ;;
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2688 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2689 ac_cache_corrupted=: ;;
2692 if test "x$ac_old_val" != "x$ac_new_val"; then
2693 # differences in whitespace do not lead to failure.
2694 ac_old_val_w=`echo x $ac_old_val`
2695 ac_new_val_w=`echo x $ac_new_val`
2696 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2698 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2699 ac_cache_corrupted=:
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2702 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2703 eval $ac_var=\$ac_old_val
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2706 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2708 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2711 # Pass precious variables to config.status.
2712 if test "$ac_new_set" = set; then
2714 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2715 *) ac_arg=$ac_var=$ac_new_val ;;
2717 case " $ac_configure_args " in
2718 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2719 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2723 if $ac_cache_corrupted; then
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2727 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2728 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2730 ## -------------------- ##
2731 ## Main body of script. ##
2732 ## -------------------- ##
2735 ac_cpp='$CPP $CPPFLAGS'
2736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741 ac_config_headers="$ac_config_headers include/arch/unix/apr_private.h"
2744 for ac_dir in build "$srcdir"/build; do
2745 if test -f "$ac_dir/install-sh"; then
2747 ac_install_sh="$ac_aux_dir/install-sh -c"
2749 elif test -f "$ac_dir/install.sh"; then
2751 ac_install_sh="$ac_aux_dir/install.sh -c"
2753 elif test -f "$ac_dir/shtool"; then
2755 ac_install_sh="$ac_aux_dir/shtool install -c"
2759 if test -z "$ac_aux_dir"; then
2760 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2763 # These three variables are undocumented and unsupported,
2764 # and are intended to be withdrawn in a future Autoconf release.
2765 # They can cause serious problems if a builder's source tree is in a directory
2766 # whose full name contains unusual characters.
2767 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2768 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2769 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2931 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2933 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
2934 # Written by Gordon Matzigkeit, 1996
2936 # This file is free software; the Free Software Foundation gives
2937 # unlimited permission to copy and/or distribute it, with or without
2938 # modifications, as long as this notice is preserved.
2945 # LT_PREREQ(VERSION)
2946 # ------------------
2947 # Complain and exit if this libtool version is less that VERSION.
2951 # _LT_CHECK_BUILDDIR
2952 # ------------------
2953 # Complain if the absolute build directory name contains unusual characters
2957 # LT_INIT([OPTIONS])
2958 # ------------------
2962 # This is what autoupdate's m4 run will expand. It fires
2963 # the warning (with _au_warn_XXX), outputs it into the
2964 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2965 # the replacement expansion.
2968 # This is an auxiliary macro that is also run when
2969 # autoupdate runs m4. It simply calls m4_warning, but
2970 # we need a wrapper so that each warning is emitted only
2971 # once. We break the quoting in m4_warning's argument in
2972 # order to expand this macro's arguments, not AU_DEFUN's.
2975 # Finally, this is the expansion that is picked up by
2976 # autoconf. It tells the user to run autoupdate, and
2977 # then outputs the replacement expansion. We do not care
2978 # about autoupdate's warning because that contains
2979 # information on what to do *after* running autoupdate.
2981 # This is what autoupdate's m4 run will expand. It fires
2982 # the warning (with _au_warn_XXX), outputs it into the
2983 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2984 # the replacement expansion.
2987 # This is an auxiliary macro that is also run when
2988 # autoupdate runs m4. It simply calls m4_warning, but
2989 # we need a wrapper so that each warning is emitted only
2990 # once. We break the quoting in m4_warning's argument in
2991 # order to expand this macro's arguments, not AU_DEFUN's.
2994 # Finally, this is the expansion that is picked up by
2995 # autoconf. It tells the user to run autoupdate, and
2996 # then outputs the replacement expansion. We do not care
2997 # about autoupdate's warning because that contains
2998 # information on what to do *after* running autoupdate.
3002 # _LT_PREPARE_CC_BASENAME
3003 # -----------------------
3004 # _LT_PREPARE_CC_BASENAME
3007 # _LT_CC_BASENAME(CC)
3008 # -------------------
3009 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
3010 # but that macro is also expanded into generated libtool script, which
3011 # arranges for $SED and $ECHO to be set by different means.
3015 # _LT_FILEUTILS_DEFAULTS
3016 # ----------------------
3017 # It is okay to use these file commands and assume they have been set
3018 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
3019 # _LT_FILEUTILS_DEFAULTS
3027 # _LT_PREPARE_SED_QUOTE_VARS
3028 # --------------------------
3029 # Define a few sed substitution that help us do robust quoting.
3034 # Note that this code is called both from 'configure', and 'config.status'
3035 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
3036 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
3037 # so we pass a copy along to make sure it has a sensible value anyway.
3041 ## ------------------------------------- ##
3042 ## Accumulate code for creating libtool. ##
3043 ## ------------------------------------- ##
3045 # So that we can recreate a full libtool script including additional
3046 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
3047 # in macros and then make a single call at the end using the 'libtool'
3051 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
3052 # ----------------------------------------
3053 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
3060 # _LT_CONFIG_LIBTOOL([COMMANDS])
3061 # ------------------------------
3062 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
3069 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
3070 # -----------------------------------------------------
3074 # _LT_FORMAT_COMMENT([COMMENT])
3075 # -----------------------------
3076 # Add leading comment marks to the start of each line, and a trailing
3077 # full-stop to the whole comment if one is not present already.
3082 ## ------------------------ ##
3083 ## FIXME: Eliminate VARNAME ##
3084 ## ------------------------ ##
3087 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
3088 # -------------------------------------------------------------------
3089 # CONFIGNAME is the name given to the value in the libtool script.
3090 # VARNAME is the (base) name used in the configure script.
3091 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
3092 # VARNAME. Any other value will be used directly.
3096 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
3097 # --------------------------------------------------------
3101 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
3102 # ------------------------------------------------
3106 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
3107 # ---------------------------------------------------------
3111 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
3112 # --------------------------------------------------
3116 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
3117 # ---------------------------------------------------
3121 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
3122 # ---------------------------------------------------
3127 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
3128 # ------------------------------------------------
3133 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
3134 # ------------------------------------
3135 # Quote a variable value, and forward it to 'config.status' so that its
3136 # declaration there will have the same value as in 'configure'. VARNAME
3137 # must have a single quote delimited value for this to work.
3141 # _LT_CONFIG_STATUS_DECLARATIONS
3142 # ------------------------------
3143 # We delimit libtool config variables with single quotes, so when
3144 # we write them to config.status, we have to be sure to quote all
3145 # embedded single quotes properly. In configure, this macro expands
3146 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
3148 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
3154 # Output comment and list of tags supported by the script
3158 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
3159 # -----------------------------------
3160 # Extract the dictionary values for VARNAME (optionally with TAG) and
3161 # expand to a commented shell variable setting:
3163 # # Some comment about what VAR is for.
3164 # visible_name=$lt_internal_name
3168 # _LT_LIBTOOL_CONFIG_VARS
3169 # -----------------------
3170 # Produce commented declarations of non-tagged libtool config variables
3171 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
3172 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
3173 # section) are produced by _LT_LIBTOOL_TAG_VARS.
3177 # _LT_LIBTOOL_TAG_VARS(TAG)
3178 # -------------------------
3182 # _LT_TAGVAR(VARNAME, [TAGNAME])
3183 # ------------------------------
3187 # _LT_CONFIG_COMMANDS
3188 # -------------------
3189 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
3190 # variables for single and double quote escaping we saved from calls
3191 # to _LT_DECL, we can put quote escaped variables declarations
3192 # into 'config.status', and then the shell code to quote escape them in
3193 # for loops in 'config.status'. Finally, any additional code accumulated
3194 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
3195 #_LT_CONFIG_COMMANDS
3201 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
3202 # ------------------------------------
3203 # Generate a child script FILE with all initialization necessary to
3204 # reuse the environment learned by the parent script, and make the
3205 # file executable. If COMMENT is supplied, it is inserted after the
3206 # '#!' sequence but before initialization text begins. After this
3207 # macro, additional text can be appended to FILE to form the body of
3208 # the child script. The macro ends with non-zero status if the
3209 # file could not be fully written (such as if the disk is full).
3210 # _LT_GENERATED_FILE_INIT
3214 # This macro allows early generation of the libtool script (before
3215 # AC_OUTPUT is called), incase it is used in configure for compilation
3222 # If TAG is the built-in tag, create an initial libtool script with a
3223 # default configuration from the untagged config vars. Otherwise add code
3224 # to config.status for appending the configuration named by TAG from the
3225 # matching tagged config vars.
3229 # LT_SUPPORTED_TAG(TAG)
3230 # ---------------------
3231 # Trace this macro to discover what tags are supported by the libtool
3232 # --tag option, using:
3233 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
3237 # C support is built-in for now
3244 # Enable libtool support for the given language if not already enabled.
3248 # _LT_LANG(LANGNAME)
3249 # ------------------
3256 # _LT_LANG_DEFAULT_CONFIG
3257 # -----------------------
3258 # _LT_LANG_DEFAULT_CONFIG
3261 # This is what autoupdate's m4 run will expand. It fires
3262 # the warning (with _au_warn_XXX), outputs it into the
3263 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3264 # the replacement expansion.
3267 # This is an auxiliary macro that is also run when
3268 # autoupdate runs m4. It simply calls m4_warning, but
3269 # we need a wrapper so that each warning is emitted only
3270 # once. We break the quoting in m4_warning's argument in
3271 # order to expand this macro's arguments, not AU_DEFUN's.
3274 # Finally, this is the expansion that is picked up by
3275 # autoconf. It tells the user to run autoupdate, and
3276 # then outputs the replacement expansion. We do not care
3277 # about autoupdate's warning because that contains
3278 # information on what to do *after* running autoupdate.
3280 # This is what autoupdate's m4 run will expand. It fires
3281 # the warning (with _au_warn_XXX), outputs it into the
3282 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3283 # the replacement expansion.
3286 # This is an auxiliary macro that is also run when
3287 # autoupdate runs m4. It simply calls m4_warning, but
3288 # we need a wrapper so that each warning is emitted only
3289 # once. We break the quoting in m4_warning's argument in
3290 # order to expand this macro's arguments, not AU_DEFUN's.
3293 # Finally, this is the expansion that is picked up by
3294 # autoconf. It tells the user to run autoupdate, and
3295 # then outputs the replacement expansion. We do not care
3296 # about autoupdate's warning because that contains
3297 # information on what to do *after* running autoupdate.
3299 # This is what autoupdate's m4 run will expand. It fires
3300 # the warning (with _au_warn_XXX), outputs it into the
3301 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3302 # the replacement expansion.
3305 # This is an auxiliary macro that is also run when
3306 # autoupdate runs m4. It simply calls m4_warning, but
3307 # we need a wrapper so that each warning is emitted only
3308 # once. We break the quoting in m4_warning's argument in
3309 # order to expand this macro's arguments, not AU_DEFUN's.
3312 # Finally, this is the expansion that is picked up by
3313 # autoconf. It tells the user to run autoupdate, and
3314 # then outputs the replacement expansion. We do not care
3315 # about autoupdate's warning because that contains
3316 # information on what to do *after* running autoupdate.
3318 # This is what autoupdate's m4 run will expand. It fires
3319 # the warning (with _au_warn_XXX), outputs it into the
3320 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3321 # the replacement expansion.
3324 # This is an auxiliary macro that is also run when
3325 # autoupdate runs m4. It simply calls m4_warning, but
3326 # we need a wrapper so that each warning is emitted only
3327 # once. We break the quoting in m4_warning's argument in
3328 # order to expand this macro's arguments, not AU_DEFUN's.
3331 # Finally, this is the expansion that is picked up by
3332 # autoconf. It tells the user to run autoupdate, and
3333 # then outputs the replacement expansion. We do not care
3334 # about autoupdate's warning because that contains
3335 # information on what to do *after* running autoupdate.
3337 # This is what autoupdate's m4 run will expand. It fires
3338 # the warning (with _au_warn_XXX), outputs it into the
3339 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3340 # the replacement expansion.
3343 # This is an auxiliary macro that is also run when
3344 # autoupdate runs m4. It simply calls m4_warning, but
3345 # we need a wrapper so that each warning is emitted only
3346 # once. We break the quoting in m4_warning's argument in
3347 # order to expand this macro's arguments, not AU_DEFUN's.
3350 # Finally, this is the expansion that is picked up by
3351 # autoconf. It tells the user to run autoupdate, and
3352 # then outputs the replacement expansion. We do not care
3353 # about autoupdate's warning because that contains
3354 # information on what to do *after* running autoupdate.
3363 # _LT_COMPILER_BOILERPLATE
3364 # ------------------------
3365 # Check for compiler boilerplate output or warnings with
3366 # the simple compiler test code.
3367 # _LT_COMPILER_BOILERPLATE
3370 # _LT_LINKER_BOILERPLATE
3371 # ----------------------
3372 # Check for linker boilerplate output or warnings with
3373 # the simple link test code.
3374 # _LT_LINKER_BOILERPLATE
3376 # _LT_REQUIRED_DARWIN_CHECKS
3377 # -------------------------
3381 # _LT_DARWIN_LINKER_FEATURES([TAG])
3382 # ---------------------------------
3383 # Checks for linker and compiler features on darwin
3386 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
3387 # ----------------------------------
3388 # Links a minimal program and checks the executable
3389 # for the system default hardcoded library path. In most cases,
3390 # this is /usr/lib:/lib, but when the MPI compilers are used
3391 # the location of the communication and MPI libs are included too.
3392 # If we don't find anything, use the default library path according
3393 # to the aix ld manual.
3394 # Store the results from the different compilers for each TAGNAME.
3395 # Allow to override them for all tags through lt_cv_aix_libpath.
3396 # _LT_SYS_MODULE_PATH_AIX
3399 # _LT_SHELL_INIT(ARG)
3400 # -------------------
3405 # _LT_PROG_ECHO_BACKSLASH
3406 # -----------------------
3407 # Find how we can fake an echo command that does not interpret backslash.
3408 # In particular, with Autoconf 2.60 or later we add some code to the start
3409 # of the generated configure script that will find a shell with a builtin
3410 # printf (that we can use as an echo command).
3411 # _LT_PROG_ECHO_BACKSLASH
3428 # _LT_CMD_OLD_ARCHIVE
3429 # -------------------
3430 # _LT_CMD_OLD_ARCHIVE
3433 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3434 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3435 # ----------------------------------------------------------------
3436 # Check whether the given compiler option works
3437 # _LT_COMPILER_OPTION
3440 # This is what autoupdate's m4 run will expand. It fires
3441 # the warning (with _au_warn_XXX), outputs it into the
3442 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3443 # the replacement expansion.
3446 # This is an auxiliary macro that is also run when
3447 # autoupdate runs m4. It simply calls m4_warning, but
3448 # we need a wrapper so that each warning is emitted only
3449 # once. We break the quoting in m4_warning's argument in
3450 # order to expand this macro's arguments, not AU_DEFUN's.
3453 # Finally, this is the expansion that is picked up by
3454 # autoconf. It tells the user to run autoupdate, and
3455 # then outputs the replacement expansion. We do not care
3456 # about autoupdate's warning because that contains
3457 # information on what to do *after* running autoupdate.
3461 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3462 # [ACTION-SUCCESS], [ACTION-FAILURE])
3463 # ----------------------------------------------------
3464 # Check whether the given linker option works
3468 # This is what autoupdate's m4 run will expand. It fires
3469 # the warning (with _au_warn_XXX), outputs it into the
3470 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3471 # the replacement expansion.
3474 # This is an auxiliary macro that is also run when
3475 # autoupdate runs m4. It simply calls m4_warning, but
3476 # we need a wrapper so that each warning is emitted only
3477 # once. We break the quoting in m4_warning's argument in
3478 # order to expand this macro's arguments, not AU_DEFUN's.
3481 # Finally, this is the expansion that is picked up by
3482 # autoconf. It tells the user to run autoupdate, and
3483 # then outputs the replacement expansion. We do not care
3484 # about autoupdate's warning because that contains
3485 # information on what to do *after* running autoupdate.
3494 # This is what autoupdate's m4 run will expand. It fires
3495 # the warning (with _au_warn_XXX), outputs it into the
3496 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3497 # the replacement expansion.
3500 # This is an auxiliary macro that is also run when
3501 # autoupdate runs m4. It simply calls m4_warning, but
3502 # we need a wrapper so that each warning is emitted only
3503 # once. We break the quoting in m4_warning's argument in
3504 # order to expand this macro's arguments, not AU_DEFUN's.
3507 # Finally, this is the expansion that is picked up by
3508 # autoconf. It tells the user to run autoupdate, and
3509 # then outputs the replacement expansion. We do not care
3510 # about autoupdate's warning because that contains
3511 # information on what to do *after* running autoupdate.
3520 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3521 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3522 # ----------------------------------------------------------------
3523 # _LT_TRY_DLOPEN_SELF
3526 # LT_SYS_DLOPEN_SELF
3527 # ------------------
3528 # LT_SYS_DLOPEN_SELF
3531 # This is what autoupdate's m4 run will expand. It fires
3532 # the warning (with _au_warn_XXX), outputs it into the
3533 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3534 # the replacement expansion.
3537 # This is an auxiliary macro that is also run when
3538 # autoupdate runs m4. It simply calls m4_warning, but
3539 # we need a wrapper so that each warning is emitted only
3540 # once. We break the quoting in m4_warning's argument in
3541 # order to expand this macro's arguments, not AU_DEFUN's.
3544 # Finally, this is the expansion that is picked up by
3545 # autoconf. It tells the user to run autoupdate, and
3546 # then outputs the replacement expansion. We do not care
3547 # about autoupdate's warning because that contains
3548 # information on what to do *after* running autoupdate.
3552 # _LT_COMPILER_C_O([TAGNAME])
3553 # ---------------------------
3554 # Check to see if options -c and -o are simultaneously supported by compiler.
3555 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
3559 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
3560 # ----------------------------------
3561 # Check to see if we can do hard links to lock some files if needed
3562 # _LT_COMPILER_FILE_LOCKS
3570 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3571 # --------------------------------------
3572 # Check hardcoding attributes.
3573 # _LT_LINKER_HARDCODE_LIBPATH
3581 # _LT_PREPARE_MUNGE_PATH_LIST
3582 # ---------------------------
3583 # Make sure func_munge_path_list() is defined correctly.
3584 # _LT_PREPARE_PATH_LIST
3587 # _LT_SYS_DYNAMIC_LINKER([TAG])
3588 # -----------------------------
3589 # PORTME Fill in your ld.so characteristics
3590 # _LT_SYS_DYNAMIC_LINKER
3593 # _LT_PATH_TOOL_PREFIX(TOOL)
3594 # --------------------------
3595 # find a file program that can recognize shared library
3596 # _LT_PATH_TOOL_PREFIX
3599 # This is what autoupdate's m4 run will expand. It fires
3600 # the warning (with _au_warn_XXX), outputs it into the
3601 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3602 # the replacement expansion.
3605 # This is an auxiliary macro that is also run when
3606 # autoupdate runs m4. It simply calls m4_warning, but
3607 # we need a wrapper so that each warning is emitted only
3608 # once. We break the quoting in m4_warning's argument in
3609 # order to expand this macro's arguments, not AU_DEFUN's.
3612 # Finally, this is the expansion that is picked up by
3613 # autoconf. It tells the user to run autoupdate, and
3614 # then outputs the replacement expansion. We do not care
3615 # about autoupdate's warning because that contains
3616 # information on what to do *after* running autoupdate.
3622 # find a file program that can recognize a shared library
3628 # find the pathname to the GNU or non-GNU linker
3632 # This is what autoupdate's m4 run will expand. It fires
3633 # the warning (with _au_warn_XXX), outputs it into the
3634 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3635 # the replacement expansion.
3638 # This is an auxiliary macro that is also run when
3639 # autoupdate runs m4. It simply calls m4_warning, but
3640 # we need a wrapper so that each warning is emitted only
3641 # once. We break the quoting in m4_warning's argument in
3642 # order to expand this macro's arguments, not AU_DEFUN's.
3645 # Finally, this is the expansion that is picked up by
3646 # autoconf. It tells the user to run autoupdate, and
3647 # then outputs the replacement expansion. We do not care
3648 # about autoupdate's warning because that contains
3649 # information on what to do *after* running autoupdate.
3651 # This is what autoupdate's m4 run will expand. It fires
3652 # the warning (with _au_warn_XXX), outputs it into the
3653 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3654 # the replacement expansion.
3657 # This is an auxiliary macro that is also run when
3658 # autoupdate runs m4. It simply calls m4_warning, but
3659 # we need a wrapper so that each warning is emitted only
3660 # once. We break the quoting in m4_warning's argument in
3661 # order to expand this macro's arguments, not AU_DEFUN's.
3664 # Finally, this is the expansion that is picked up by
3665 # autoconf. It tells the user to run autoupdate, and
3666 # then outputs the replacement expansion. We do not care
3667 # about autoupdate's warning because that contains
3668 # information on what to do *after* running autoupdate.
3679 # find reload flag for linker
3680 # -- PORTME Some linkers may need a different reload flag.
3692 # find command to truncate a binary pipe
3696 # _LT_CHECK_MAGIC_METHOD
3697 # ----------------------
3698 # how to check for library dependencies
3699 # -- PORTME fill in with the dynamic library characteristics
3700 # _LT_CHECK_MAGIC_METHOD
3705 # find the pathname to a BSD- or MS-compatible name lister
3709 # This is what autoupdate's m4 run will expand. It fires
3710 # the warning (with _au_warn_XXX), outputs it into the
3711 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3712 # the replacement expansion.
3715 # This is an auxiliary macro that is also run when
3716 # autoupdate runs m4. It simply calls m4_warning, but
3717 # we need a wrapper so that each warning is emitted only
3718 # once. We break the quoting in m4_warning's argument in
3719 # order to expand this macro's arguments, not AU_DEFUN's.
3722 # Finally, this is the expansion that is picked up by
3723 # autoconf. It tells the user to run autoupdate, and
3724 # then outputs the replacement expansion. We do not care
3725 # about autoupdate's warning because that contains
3726 # information on what to do *after* running autoupdate.
3728 # This is what autoupdate's m4 run will expand. It fires
3729 # the warning (with _au_warn_XXX), outputs it into the
3730 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3731 # the replacement expansion.
3734 # This is an auxiliary macro that is also run when
3735 # autoupdate runs m4. It simply calls m4_warning, but
3736 # we need a wrapper so that each warning is emitted only
3737 # once. We break the quoting in m4_warning's argument in
3738 # order to expand this macro's arguments, not AU_DEFUN's.
3741 # Finally, this is the expansion that is picked up by
3742 # autoconf. It tells the user to run autoupdate, and
3743 # then outputs the replacement expansion. We do not care
3744 # about autoupdate's warning because that contains
3745 # information on what to do *after* running autoupdate.
3748 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3749 # --------------------------------
3750 # how to determine the name of the shared library
3751 # associated with a specific link library.
3752 # -- PORTME fill in with the dynamic library characteristics
3753 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3756 # _LT_PATH_MANIFEST_TOOL
3757 # ----------------------
3758 # locate the manifest tool
3759 # _LT_PATH_MANIFEST_TOOL
3762 # _LT_DLL_DEF_P([FILE])
3763 # ---------------------
3764 # True iff FILE is a Windows DLL '.def' file.
3765 # Keep in sync with func_dll_def_p in the libtool script
3771 # check for math library
3775 # This is what autoupdate's m4 run will expand. It fires
3776 # the warning (with _au_warn_XXX), outputs it into the
3777 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3778 # the replacement expansion.
3781 # This is an auxiliary macro that is also run when
3782 # autoupdate runs m4. It simply calls m4_warning, but
3783 # we need a wrapper so that each warning is emitted only
3784 # once. We break the quoting in m4_warning's argument in
3785 # order to expand this macro's arguments, not AU_DEFUN's.
3788 # Finally, this is the expansion that is picked up by
3789 # autoconf. It tells the user to run autoupdate, and
3790 # then outputs the replacement expansion. We do not care
3791 # about autoupdate's warning because that contains
3792 # information on what to do *after* running autoupdate.
3796 # _LT_COMPILER_NO_RTTI([TAGNAME])
3797 # -------------------------------
3798 # _LT_COMPILER_NO_RTTI
3801 # _LT_CMD_GLOBAL_SYMBOLS
3802 # ----------------------
3803 # _LT_CMD_GLOBAL_SYMBOLS
3806 # _LT_COMPILER_PIC([TAGNAME])
3807 # ---------------------------
3811 # _LT_LINKER_SHLIBS([TAGNAME])
3812 # ----------------------------
3813 # See if the linker supports building shared libraries.
3817 # _LT_LANG_C_CONFIG([TAG])
3818 # ------------------------
3819 # Ensure that the configuration variables for a C compiler are suitably
3820 # defined. These variables are subsequently used by _LT_CONFIG to write
3821 # the compiler configuration to 'libtool'.
3825 # _LT_LANG_CXX_CONFIG([TAG])
3826 # --------------------------
3827 # Ensure that the configuration variables for a C++ compiler are suitably
3828 # defined. These variables are subsequently used by _LT_CONFIG to write
3829 # the compiler configuration to 'libtool'.
3830 # _LT_LANG_CXX_CONFIG
3833 # _LT_FUNC_STRIPNAME_CNF
3834 # ----------------------
3835 # func_stripname_cnf prefix suffix name
3836 # strip PREFIX and SUFFIX off of NAME.
3837 # PREFIX and SUFFIX must not contain globbing or regex special
3838 # characters, hashes, percent signs, but SUFFIX may contain a leading
3839 # dot (in which case that matches only a dot).
3841 # This function is identical to the (non-XSI) version of func_stripname,
3842 # except this one can be used by m4 code that may be executed by configure,
3843 # rather than the libtool script.
3844 # _LT_FUNC_STRIPNAME_CNF
3847 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3848 # ---------------------------------
3849 # Figure out "hidden" library dependencies from verbose
3850 # compiler output when linking a shared library.
3851 # Parse the compiler output and extract the necessary
3852 # objects, libraries and library flags.
3853 # _LT_SYS_HIDDEN_LIBDEPS
3856 # _LT_LANG_F77_CONFIG([TAG])
3857 # --------------------------
3858 # Ensure that the configuration variables for a Fortran 77 compiler are
3859 # suitably defined. These variables are subsequently used by _LT_CONFIG
3860 # to write the compiler configuration to 'libtool'.
3861 # _LT_LANG_F77_CONFIG
3864 # _LT_LANG_FC_CONFIG([TAG])
3865 # -------------------------
3866 # Ensure that the configuration variables for a Fortran compiler are
3867 # suitably defined. These variables are subsequently used by _LT_CONFIG
3868 # to write the compiler configuration to 'libtool'.
3869 # _LT_LANG_FC_CONFIG
3872 # _LT_LANG_GCJ_CONFIG([TAG])
3873 # --------------------------
3874 # Ensure that the configuration variables for the GNU Java Compiler compiler
3875 # are suitably defined. These variables are subsequently used by _LT_CONFIG
3876 # to write the compiler configuration to 'libtool'.
3877 # _LT_LANG_GCJ_CONFIG
3880 # _LT_LANG_GO_CONFIG([TAG])
3881 # --------------------------
3882 # Ensure that the configuration variables for the GNU Go compiler
3883 # are suitably defined. These variables are subsequently used by _LT_CONFIG
3884 # to write the compiler configuration to 'libtool'.
3885 # _LT_LANG_GO_CONFIG
3888 # _LT_LANG_RC_CONFIG([TAG])
3889 # -------------------------
3890 # Ensure that the configuration variables for the Windows resource compiler
3891 # are suitably defined. These variables are subsequently used by _LT_CONFIG
3892 # to write the compiler configuration to 'libtool'.
3893 # _LT_LANG_RC_CONFIG
3901 # This is what autoupdate's m4 run will expand. It fires
3902 # the warning (with _au_warn_XXX), outputs it into the
3903 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3904 # the replacement expansion.
3907 # This is an auxiliary macro that is also run when
3908 # autoupdate runs m4. It simply calls m4_warning, but
3909 # we need a wrapper so that each warning is emitted only
3910 # once. We break the quoting in m4_warning's argument in
3911 # order to expand this macro's arguments, not AU_DEFUN's.
3914 # Finally, this is the expansion that is picked up by
3915 # autoconf. It tells the user to run autoupdate, and
3916 # then outputs the replacement expansion. We do not care
3917 # about autoupdate's warning because that contains
3918 # information on what to do *after* running autoupdate.
3932 # This is what autoupdate's m4 run will expand. It fires
3933 # the warning (with _au_warn_XXX), outputs it into the
3934 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3935 # the replacement expansion.
3938 # This is an auxiliary macro that is also run when
3939 # autoupdate runs m4. It simply calls m4_warning, but
3940 # we need a wrapper so that each warning is emitted only
3941 # once. We break the quoting in m4_warning's argument in
3942 # order to expand this macro's arguments, not AU_DEFUN's.
3945 # Finally, this is the expansion that is picked up by
3946 # autoconf. It tells the user to run autoupdate, and
3947 # then outputs the replacement expansion. We do not care
3948 # about autoupdate's warning because that contains
3949 # information on what to do *after* running autoupdate.
3955 # If we don't have a new enough Autoconf to choose the best grep
3956 # available, choose the one first in the user's PATH.
3962 # If we don't have a new enough Autoconf to choose the best objdump
3963 # available, choose the one first in the user's PATH.
3968 # Ensure DLLTOOL variable is set.
3973 # Check for a fully-functional sed program, that truncates
3974 # as few characters as possible. Prefer GNU sed if found.
3980 # This is what autoupdate's m4 run will expand. It fires
3981 # the warning (with _au_warn_XXX), outputs it into the
3982 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3983 # the replacement expansion.
3986 # This is an auxiliary macro that is also run when
3987 # autoupdate runs m4. It simply calls m4_warning, but
3988 # we need a wrapper so that each warning is emitted only
3989 # once. We break the quoting in m4_warning's argument in
3990 # order to expand this macro's arguments, not AU_DEFUN's.
3993 # Finally, this is the expansion that is picked up by
3994 # autoconf. It tells the user to run autoupdate, and
3995 # then outputs the replacement expansion. We do not care
3996 # about autoupdate's warning because that contains
3997 # information on what to do *after* running autoupdate.
4001 # _LT_CHECK_SHELL_FEATURES
4002 # ------------------------
4003 # Find out whether the shell is Bourne or XSI compatible,
4004 # or has some other useful features.
4005 # _LT_CHECK_SHELL_FEATURES
4008 # _LT_PATH_CONVERSION_FUNCTIONS
4009 # -----------------------------
4010 # Determine what file name conversion functions should be used by
4011 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
4012 # for certain cross-compile configurations and native mingw.
4013 # _LT_PATH_CONVERSION_FUNCTIONS
4015 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
4017 # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
4019 # Written by Gary V. Vaughan, 2004
4021 # This file is free software; the Free Software Foundation gives
4022 # unlimited permission to copy and/or distribute it, with or without
4023 # modifications, as long as this notice is preserved.
4025 # serial 6 ltsugar.m4
4027 # This is to help aclocal find these macros, as it can't see m4_define.
4031 # lt_join(SEP, ARG1, [ARG2...])
4032 # -----------------------------
4033 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
4034 # associated separator.
4035 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
4036 # versions in m4sugar had bugs.
4044 # Manipulate m4 lists.
4045 # These macros are necessary as long as will still need to support
4046 # Autoconf-2.59, which quotes differently.
4052 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
4053 # ------------------------------------------
4054 # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
4055 # Note that neither SEPARATOR nor STRING are expanded; they are appended
4056 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
4057 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
4058 # than defined and empty).
4060 # This macro is needed until we can rely on Autoconf 2.62, since earlier
4061 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
4066 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
4067 # ----------------------------------------------------------
4068 # Produce a SEP delimited list of all paired combinations of elements of
4069 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
4070 # has the form PREFIXmINFIXSUFFIXn.
4071 # Needed until we can rely on m4_combine added in Autoconf 2.62.
4075 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
4076 # -----------------------------------------------------------------------
4077 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
4078 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
4082 # lt_dict_add(DICT, KEY, VALUE)
4083 # -----------------------------
4087 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
4088 # --------------------------------------------
4092 # lt_dict_fetch(DICT, KEY, [SUBKEY])
4093 # ----------------------------------
4097 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
4098 # -----------------------------------------------------------------
4102 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
4103 # --------------------------------------------------------------
4107 # Helper functions for option handling. -*- Autoconf -*-
4109 # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
4111 # Written by Gary V. Vaughan, 2004
4113 # This file is free software; the Free Software Foundation gives
4114 # unlimited permission to copy and/or distribute it, with or without
4115 # modifications, as long as this notice is preserved.
4117 # serial 8 ltoptions.m4
4119 # This is to help aclocal find these macros, as it can't see m4_define.
4123 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
4124 # ------------------------------------------
4128 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
4129 # ---------------------------------------
4130 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
4131 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
4136 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
4137 # ------------------------------------------------------------
4138 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
4142 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
4143 # -------------------------------------------------------
4144 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
4149 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
4150 # ----------------------------------------
4151 # OPTION-LIST is a space-separated list of Libtool options associated
4152 # with MACRO-NAME. If any OPTION has a matching handler declared with
4153 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
4154 # the unknown option and exit.
4158 ## --------------------------------- ##
4159 ## Macros to handle LT_INIT options. ##
4160 ## --------------------------------- ##
4162 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
4163 # -----------------------------------------
4167 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
4168 # -----------------------------------------------
4176 # This is what autoupdate's m4 run will expand. It fires
4177 # the warning (with _au_warn_XXX), outputs it into the
4178 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4179 # the replacement expansion.
4182 # This is an auxiliary macro that is also run when
4183 # autoupdate runs m4. It simply calls m4_warning, but
4184 # we need a wrapper so that each warning is emitted only
4185 # once. We break the quoting in m4_warning's argument in
4186 # order to expand this macro's arguments, not AU_DEFUN's.
4189 # Finally, this is the expansion that is picked up by
4190 # autoconf. It tells the user to run autoupdate, and
4191 # then outputs the replacement expansion. We do not care
4192 # about autoupdate's warning because that contains
4193 # information on what to do *after* running autoupdate.
4200 # Declare package support for building win32 dll's.
4203 # This is what autoupdate's m4 run will expand. It fires
4204 # the warning (with _au_warn_XXX), outputs it into the
4205 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4206 # the replacement expansion.
4209 # This is an auxiliary macro that is also run when
4210 # autoupdate runs m4. It simply calls m4_warning, but
4211 # we need a wrapper so that each warning is emitted only
4212 # once. We break the quoting in m4_warning's argument in
4213 # order to expand this macro's arguments, not AU_DEFUN's.
4216 # Finally, this is the expansion that is picked up by
4217 # autoconf. It tells the user to run autoupdate, and
4218 # then outputs the replacement expansion. We do not care
4219 # about autoupdate's warning because that contains
4220 # information on what to do *after* running autoupdate.
4225 # _LT_ENABLE_SHARED([DEFAULT])
4226 # ----------------------------
4227 # implement the --enable-shared flag, and supports the 'shared' and
4228 # 'disable-shared' LT_INIT options.
4229 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
4240 # This is what autoupdate's m4 run will expand. It fires
4241 # the warning (with _au_warn_XXX), outputs it into the
4242 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4243 # the replacement expansion.
4246 # This is an auxiliary macro that is also run when
4247 # autoupdate runs m4. It simply calls m4_warning, but
4248 # we need a wrapper so that each warning is emitted only
4249 # once. We break the quoting in m4_warning's argument in
4250 # order to expand this macro's arguments, not AU_DEFUN's.
4253 # Finally, this is the expansion that is picked up by
4254 # autoconf. It tells the user to run autoupdate, and
4255 # then outputs the replacement expansion. We do not care
4256 # about autoupdate's warning because that contains
4257 # information on what to do *after* running autoupdate.
4259 # This is what autoupdate's m4 run will expand. It fires
4260 # the warning (with _au_warn_XXX), outputs it into the
4261 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4262 # the replacement expansion.
4265 # This is an auxiliary macro that is also run when
4266 # autoupdate runs m4. It simply calls m4_warning, but
4267 # we need a wrapper so that each warning is emitted only
4268 # once. We break the quoting in m4_warning's argument in
4269 # order to expand this macro's arguments, not AU_DEFUN's.
4272 # Finally, this is the expansion that is picked up by
4273 # autoconf. It tells the user to run autoupdate, and
4274 # then outputs the replacement expansion. We do not care
4275 # about autoupdate's warning because that contains
4276 # information on what to do *after* running autoupdate.
4282 # _LT_ENABLE_STATIC([DEFAULT])
4283 # ----------------------------
4284 # implement the --enable-static flag, and support the 'static' and
4285 # 'disable-static' LT_INIT options.
4286 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
4297 # This is what autoupdate's m4 run will expand. It fires
4298 # the warning (with _au_warn_XXX), outputs it into the
4299 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4300 # the replacement expansion.
4303 # This is an auxiliary macro that is also run when
4304 # autoupdate runs m4. It simply calls m4_warning, but
4305 # we need a wrapper so that each warning is emitted only
4306 # once. We break the quoting in m4_warning's argument in
4307 # order to expand this macro's arguments, not AU_DEFUN's.
4310 # Finally, this is the expansion that is picked up by
4311 # autoconf. It tells the user to run autoupdate, and
4312 # then outputs the replacement expansion. We do not care
4313 # about autoupdate's warning because that contains
4314 # information on what to do *after* running autoupdate.
4316 # This is what autoupdate's m4 run will expand. It fires
4317 # the warning (with _au_warn_XXX), outputs it into the
4318 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4319 # the replacement expansion.
4322 # This is an auxiliary macro that is also run when
4323 # autoupdate runs m4. It simply calls m4_warning, but
4324 # we need a wrapper so that each warning is emitted only
4325 # once. We break the quoting in m4_warning's argument in
4326 # order to expand this macro's arguments, not AU_DEFUN's.
4329 # Finally, this is the expansion that is picked up by
4330 # autoconf. It tells the user to run autoupdate, and
4331 # then outputs the replacement expansion. We do not care
4332 # about autoupdate's warning because that contains
4333 # information on what to do *after* running autoupdate.
4339 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
4340 # ----------------------------------
4341 # implement the --enable-fast-install flag, and support the 'fast-install'
4342 # and 'disable-fast-install' LT_INIT options.
4343 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
4344 # _LT_ENABLE_FAST_INSTALL
4350 # This is what autoupdate's m4 run will expand. It fires
4351 # the warning (with _au_warn_XXX), outputs it into the
4352 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4353 # the replacement expansion.
4356 # This is an auxiliary macro that is also run when
4357 # autoupdate runs m4. It simply calls m4_warning, but
4358 # we need a wrapper so that each warning is emitted only
4359 # once. We break the quoting in m4_warning's argument in
4360 # order to expand this macro's arguments, not AU_DEFUN's.
4363 # Finally, this is the expansion that is picked up by
4364 # autoconf. It tells the user to run autoupdate, and
4365 # then outputs the replacement expansion. We do not care
4366 # about autoupdate's warning because that contains
4367 # information on what to do *after* running autoupdate.
4370 # This is what autoupdate's m4 run will expand. It fires
4371 # the warning (with _au_warn_XXX), outputs it into the
4372 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4373 # the replacement expansion.
4376 # This is an auxiliary macro that is also run when
4377 # autoupdate runs m4. It simply calls m4_warning, but
4378 # we need a wrapper so that each warning is emitted only
4379 # once. We break the quoting in m4_warning's argument in
4380 # order to expand this macro's arguments, not AU_DEFUN's.
4383 # Finally, this is the expansion that is picked up by
4384 # autoconf. It tells the user to run autoupdate, and
4385 # then outputs the replacement expansion. We do not care
4386 # about autoupdate's warning because that contains
4387 # information on what to do *after* running autoupdate.
4392 # _LT_WITH_AIX_SONAME([DEFAULT])
4393 # ----------------------------------
4394 # implement the --with-aix-soname flag, and support the `aix-soname=aix'
4395 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
4396 # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
4397 # _LT_WITH_AIX_SONAME
4404 # _LT_WITH_PIC([MODE])
4405 # --------------------
4406 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
4408 # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
4415 # This is what autoupdate's m4 run will expand. It fires
4416 # the warning (with _au_warn_XXX), outputs it into the
4417 # updated configure.ac (with AC_DIAGNOSE), and then outputs
4418 # the replacement expansion.
4421 # This is an auxiliary macro that is also run when
4422 # autoupdate runs m4. It simply calls m4_warning, but
4423 # we need a wrapper so that each warning is emitted only
4424 # once. We break the quoting in m4_warning's argument in
4425 # order to expand this macro's arguments, not AU_DEFUN's.
4428 # Finally, this is the expansion that is picked up by
4429 # autoconf. It tells the user to run autoupdate, and
4430 # then outputs the replacement expansion. We do not care
4431 # about autoupdate's warning because that contains
4432 # information on what to do *after* running autoupdate.
4436 ## ----------------- ##
4437 ## LTDL_INIT Options ##
4438 ## ----------------- ##
4449 # ltversion.m4 -- version numbers -*- Autoconf -*-
4451 # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
4452 # Written by Scott James Remnant, 2004
4454 # This file is free software; the Free Software Foundation gives
4455 # unlimited permission to copy and/or distribute it, with or without
4456 # modifications, as long as this notice is preserved.
4460 # serial 4179 ltversion.m4
4461 # This file is part of GNU Libtool
4468 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
4470 # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
4472 # Written by Scott James Remnant, 2004.
4474 # This file is free software; the Free Software Foundation gives
4475 # unlimited permission to copy and/or distribute it, with or without
4476 # modifications, as long as this notice is preserved.
4478 # serial 5 lt~obsolete.m4
4480 # These exist entirely to fool aclocal when bootstrapping libtool.
4482 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
4483 # which have later been changed to m4_define as they aren't part of the
4484 # exported API, or moved to Autoconf or Automake where they belong.
4486 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
4487 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
4488 # using a macro with the same name in our local m4/libtool.m4 it'll
4489 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
4490 # and doesn't know about Autoconf macros at all.)
4492 # So we provide this file, which has a silly filename so it's always
4493 # included after everything else. This provides aclocal with the
4494 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
4495 # because those macros already exist, or will be overwritten later.
4496 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
4498 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
4499 # Yes, that means every name once taken will need to remain here until
4500 # we give up compatibility with versions before 1.7, at which point
4501 # we need to keep only those names which we still refer to.
4503 # This is to help aclocal find these macros, as it can't see m4_define.
4574 apr_ste_save_CPPFLAGS="$CPPFLAGS"
4577 apr_ste_save_CFLAGS="$CFLAGS"
4580 apr_ste_save_LDFLAGS="$LDFLAGS"
4583 apr_ste_save_LIBS="$LIBS"
4586 apr_ste_save_INCLUDES="$INCLUDES"
4591 cat >config.nice<<EOF
4594 # Created by configure
4597 if test -n "$CC"; then
4598 echo "CC=\"$CC\"; export CC" >> config.nice
4600 if test -n "$CFLAGS"; then
4601 echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
4603 if test -n "$CPPFLAGS"; then
4604 echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
4606 if test -n "$LDFLAGS"; then
4607 echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
4609 if test -n "$LTFLAGS"; then
4610 echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
4612 if test -n "$LIBS"; then
4613 echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
4615 if test -n "$INCLUDES"; then
4616 echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
4618 if test -n "$NOTEST_CFLAGS"; then
4619 echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
4621 if test -n "$NOTEST_CPPFLAGS"; then
4622 echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
4624 if test -n "$NOTEST_LDFLAGS"; then
4625 echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
4627 if test -n "$NOTEST_LIBS"; then
4628 echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
4631 # Retrieve command-line arguments.
4632 eval "set x $0 $ac_configure_args"
4640 while test "x${ap_cur}" != "x${ap_last}";
4643 ap_cur=`eval "echo ${ap_cur}"`
4647 echo "\"$arg\" \\" >> config.nice
4649 echo '"$@"' >> config.nice
4650 chmod +x config.nice
4653 # Make sure we can run config.sub.
4654 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4655 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4658 $as_echo_n "checking build system type... " >&6; }
4659 if ${ac_cv_build+:} false; then :
4660 $as_echo_n "(cached) " >&6
4662 ac_build_alias=$build_alias
4663 test "x$ac_build_alias" = x &&
4664 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4665 test "x$ac_build_alias" = x &&
4666 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4667 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4668 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4672 $as_echo "$ac_cv_build" >&6; }
4673 case $ac_cv_build in
4675 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4678 ac_save_IFS=$IFS; IFS='-'
4684 # Remember, the first character of IFS is used to create $*,
4685 # except with old shells:
4688 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4692 $as_echo_n "checking host system type... " >&6; }
4693 if ${ac_cv_host+:} false; then :
4694 $as_echo_n "(cached) " >&6
4696 if test "x$host_alias" = x; then
4697 ac_cv_host=$ac_cv_build
4699 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4700 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4705 $as_echo "$ac_cv_host" >&6; }
4708 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4711 ac_save_IFS=$IFS; IFS='-'
4717 # Remember, the first character of IFS is used to create $*,
4718 # except with old shells:
4721 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4725 $as_echo_n "checking target system type... " >&6; }
4726 if ${ac_cv_target+:} false; then :
4727 $as_echo_n "(cached) " >&6
4729 if test "x$target_alias" = x; then
4730 ac_cv_target=$ac_cv_host
4732 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4733 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4738 $as_echo "$ac_cv_target" >&6; }
4739 case $ac_cv_target in
4741 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4743 target=$ac_cv_target
4744 ac_save_IFS=$IFS; IFS='-'
4750 # Remember, the first character of IFS is used to create $*,
4751 # except with old shells:
4754 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4757 # The aliases save the names the user supplied, while $host etc.
4758 # will get canonicalized.
4759 test -n "$target_alias" &&
4760 test "$program_prefix$program_suffix$program_transform_name" = \
4762 program_prefix=${target_alias}-
4764 echo "Configuring APR library"
4765 echo "Platform: $host"
4769 # Absolute source/build directory
4770 apr_srcdir=`(cd $srcdir && pwd)`
4775 if test "$apr_builddir" != "$apr_srcdir"; then
4777 APR_CONFIG_LOCATION=build
4779 APR_CONFIG_LOCATION=source
4784 # Libtool might need this symbol -- it must point to the location of
4785 # the generated libtool script (not necessarily the "top" build dir).
4787 top_builddir="$apr_builddir"
4790 # Directory containing apr build macros, helpers, and make rules
4791 # NOTE: make rules (apr_rules.mk) will be in the builddir for vpath
4793 apr_buildout=$apr_builddir/build
4794 apr_builders=$apr_srcdir/build
4797 MKDIR=$apr_builders/mkdir.sh
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5
4801 $as_echo_n "checking for working mkdir -p... " >&6; }
4802 if ${ac_cv_mkdir_p+:} false; then :
4803 $as_echo_n "(cached) " >&6
4806 test -d conftestdir && rm -rf conftestdir
4807 mkdir -p conftestdir/somedir >/dev/null 2>&1
4808 if test -d conftestdir/somedir; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5
4817 $as_echo "$ac_cv_mkdir_p" >&6; }
4818 if test "$ac_cv_mkdir_p" = "yes"; then
4821 mkdir_p="$apr_builders/mkdir.sh"
4825 # get our version information
4826 get_version="$apr_builders/get-version.sh"
4827 version_hdr="$apr_srcdir/include/apr_version.h"
4828 APR_MAJOR_VERSION="`$get_version major $version_hdr APR`"
4829 APR_DOTTED_VERSION="`$get_version all $version_hdr APR`"
4834 echo "APR Version: ${APR_DOTTED_VERSION}"
4837 # Check whether --enable-layout was given.
4838 if test "${enable_layout+set}" = set; then :
4839 enableval=$enable_layout;
4845 if test -z "$LAYOUT"; then
4849 if test ! -f $srcdir/config.layout; then
4850 echo "** Error: Layout file $srcdir/config.layout not found"
4851 echo "** Error: Cannot use undefined layout '$LAYOUT'"
4854 # Catch layout names including a slash which will otherwise
4855 # confuse the heck out of the sed script.
4858 echo "** Error: $LAYOUT is not a valid layout name"
4861 pldconf=./config.pld
4863 sed -e "1s/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*//;1t" \
4864 -e "1,/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*/d" \
4865 -e '/[ ]*<\/Layout>[ ]*/,$d' \
4867 -e "s/:[ ]*/=\'/g" \
4869 $srcdir/config.layout > $pldconf
4871 if test ! -s $pldconf; then
4872 echo "** Error: unable to find layout $layout_name"
4877 for var in prefix exec_prefix bindir sbindir libexecdir mandir \
4878 sysconfdir datadir includedir localstatedir runtimedir \
4879 logfiledir libdir installbuilddir libsuffix ; do
4880 eval "val=\"\$$var\""
4883 val=`echo $val | sed -e 's;\+$;;'`
4884 eval "$var=\"\$val\""
4891 val=`echo $val | sed -e 's:\(.\)/*$:\1:'`
4892 val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'`
4893 if test "$autosuffix" = "yes"; then
4894 if echo $val | grep apache >/dev/null; then
4899 if test "$addtarget" = "yes"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5
4909 $as_echo_n "checking for chosen layout... " >&6; }
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5
4911 $as_echo "$layout_name" >&6; }
4915 # Retrieve the command-line arguments. The eval is needed because
4916 # the arguments are quoted to preserve accuracy.
4917 eval "set x $ac_configure_args"
4921 # If the previous option needs an argument, assign it.
4922 if test -n "$ac_prev"; then
4923 eval "$ac_prev=\$ac_option"
4928 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
4932 -bindir | --bindir | --bindi | --bind | --bin | --bi)
4934 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
4935 bindir="$ac_optarg" ;;
4937 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
4939 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
4941 datadir="$ac_optarg" ;;
4943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
4944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
4945 | --exec | --exe | --ex)
4946 ac_prev=exec_prefix ;;
4947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
4948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
4949 | --exec=* | --exe=* | --ex=*)
4950 exec_prefix="$ac_optarg" ;;
4952 -includedir | --includedir | --includedi | --included | --include \
4953 | --includ | --inclu | --incl | --inc)
4954 ac_prev=includedir ;;
4955 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
4956 | --includ=* | --inclu=* | --incl=* | --inc=*)
4957 includedir="$ac_optarg" ;;
4959 -infodir | --infodir | --infodi | --infod | --info | --inf)
4961 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
4962 infodir="$ac_optarg" ;;
4964 -libdir | --libdir | --libdi | --libd)
4966 -libdir=* | --libdir=* | --libdi=* | --libd=*)
4967 libdir="$ac_optarg" ;;
4969 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
4970 | --libexe | --libex | --libe)
4971 ac_prev=libexecdir ;;
4972 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
4973 | --libexe=* | --libex=* | --libe=*)
4974 libexecdir="$ac_optarg" ;;
4976 -localstatedir | --localstatedir | --localstatedi | --localstated \
4977 | --localstate | --localstat | --localsta | --localst \
4978 | --locals | --local | --loca | --loc | --lo)
4979 ac_prev=localstatedir ;;
4980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
4981 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
4982 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
4983 localstatedir="$ac_optarg" ;;
4985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
4987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
4988 mandir="$ac_optarg" ;;
4990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4993 prefix="$ac_optarg" ;;
4995 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
4997 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
4999 sbindir="$ac_optarg" ;;
5001 -sharedstatedir | --sharedstatedir | --sharedstatedi \
5002 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
5003 | --sharedst | --shareds | --shared | --share | --shar \
5005 ac_prev=sharedstatedir ;;
5006 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
5007 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
5008 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
5010 sharedstatedir="$ac_optarg" ;;
5012 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
5013 | --syscon | --sysco | --sysc | --sys | --sy)
5014 ac_prev=sysconfdir ;;
5015 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
5016 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5017 sysconfdir="$ac_optarg" ;;
5022 # Be sure to have absolute paths.
5023 for ac_var in exec_prefix prefix
5025 eval ac_val=$`echo $ac_var`
5027 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
5028 *) as_fn_error $? "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;;
5038 if test -z "$CC"; then
5039 test "x$silent" != "xyes" && echo " setting CC to \"gcc\""
5044 bs2000*-siemens-sysv*)
5046 if test -z "$CC"; then
5047 test "x$silent" != "xyes" && echo " setting CC to \"c89 -XLLML -XLLMK -XL -Kno_integer_overflow\""
5048 CC="c89 -XLLML -XLLMK -XL -Kno_integer_overflow"
5054 if test -z "$CC"; then
5055 test "x$silent" != "xyes" && echo " setting CC to \"cc\""
5062 if test -z "$CC"; then
5063 test "x$silent" != "xyes" && echo " setting CC to \"cc\""
5070 if test -z "$CC"; then
5071 test "x$silent" != "xyes" && echo " setting CC to \"icc\""
5078 if test -z "$CC"; then
5079 test "x$silent" != "xyes" && echo " setting CC to \"gcc\""
5086 if test -z "$CC"; then
5087 test "x$silent" != "xyes" && echo " setting CC to \"cc\""
5094 if test -z "$CC"; then
5095 test "x$silent" != "xyes" && echo " setting CC to \"cc\""
5102 if test -z "$CC"; then
5103 test "x$silent" != "xyes" && echo " setting CC to \"cc -F\""
5110 if test -z "$CC"; then
5111 test "x$silent" != "xyes" && echo " setting CC to \"c89\""
5118 if test -z "$CC"; then
5119 test "x$silent" != "xyes" && echo " setting CC to \"c89\""
5128 ac_cpp='$CPP $CPPFLAGS'
5129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5132 if test -n "$ac_tool_prefix"; then
5133 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5134 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if ${ac_cv_prog_CC+:} false; then :
5138 $as_echo_n "(cached) " >&6
5140 if test -n "$CC"; then
5141 ac_cv_prog_CC="$CC" # Let the user override the test.
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 if test -n "$CC"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5163 $as_echo "$CC" >&6; }
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5171 if test -z "$ac_cv_prog_CC"; then
5173 # Extract the first word of "gcc", so it can be a program name with args.
5174 set dummy gcc; ac_word=$2
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176 $as_echo_n "checking for $ac_word... " >&6; }
5177 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5178 $as_echo_n "(cached) " >&6
5180 if test -n "$ac_ct_CC"; then
5181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190 ac_cv_prog_ac_ct_CC="gcc"
5191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5201 if test -n "$ac_ct_CC"; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5203 $as_echo "$ac_ct_CC" >&6; }
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 $as_echo "no" >&6; }
5209 if test "x$ac_ct_CC" = x; then
5212 case $cross_compiling:$ac_tool_warned in
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5216 ac_tool_warned=yes ;;
5224 if test -z "$CC"; then
5225 if test -n "$ac_tool_prefix"; then
5226 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5227 set dummy ${ac_tool_prefix}cc; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_prog_CC+:} false; then :
5231 $as_echo_n "(cached) " >&6
5233 if test -n "$CC"; then
5234 ac_cv_prog_CC="$CC" # Let the user override the test.
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5243 ac_cv_prog_CC="${ac_tool_prefix}cc"
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 if test -n "$CC"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5256 $as_echo "$CC" >&6; }
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5265 if test -z "$CC"; then
5266 # Extract the first word of "cc", so it can be a program name with args.
5267 set dummy cc; 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.
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5285 ac_prog_rejected=yes
5289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 if test $ac_prog_rejected = yes; then
5297 # We found a bogon in the path, so make sure we never use it.
5298 set dummy $ac_cv_prog_CC
5300 if test $# != 0; then
5301 # We chose a different compiler from the bogus one.
5302 # However, it has the same basename, so the bogon will be chosen
5303 # first if we set CC to just the basename; use the full file name.
5305 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5311 if test -n "$CC"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5313 $as_echo "$CC" >&6; }
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5321 if test -z "$CC"; then
5322 if test -n "$ac_tool_prefix"; then
5323 for ac_prog in cl.exe
5325 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if ${ac_cv_prog_CC+:} false; then :
5330 $as_echo_n "(cached) " >&6
5332 if test -n "$CC"; then
5333 ac_cv_prog_CC="$CC" # Let the user override the test.
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 test -z "$as_dir" && as_dir=.
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 if test -n "$CC"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5355 $as_echo "$CC" >&6; }
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5362 test -n "$CC" && break
5365 if test -z "$CC"; then
5367 for ac_prog in cl.exe
5369 # Extract the first word of "$ac_prog", so it can be a program name with args.
5370 set dummy $ac_prog; ac_word=$2
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5372 $as_echo_n "checking for $ac_word... " >&6; }
5373 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5374 $as_echo_n "(cached) " >&6
5376 if test -n "$ac_ct_CC"; then
5377 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 test -z "$as_dir" && as_dir=.
5384 for ac_exec_ext in '' $ac_executable_extensions; do
5385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5386 ac_cv_prog_ac_ct_CC="$ac_prog"
5387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5397 if test -n "$ac_ct_CC"; then
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5399 $as_echo "$ac_ct_CC" >&6; }
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402 $as_echo "no" >&6; }
5406 test -n "$ac_ct_CC" && break
5409 if test "x$ac_ct_CC" = x; then
5412 case $cross_compiling:$ac_tool_warned in
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5416 ac_tool_warned=yes ;;
5425 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5427 as_fn_error $? "no acceptable C compiler found in \$PATH
5428 See \`config.log' for more details" "$LINENO" 5; }
5430 # Provide some information about the compiler.
5431 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5434 for ac_option in --version -v -V -qversion; do
5435 { { ac_try="$ac_compiler $ac_option >&5"
5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5441 $as_echo "$ac_try_echo"; } >&5
5442 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5444 if test -s conftest.err; then
5446 ... rest of stderr output deleted ...
5447 10q' conftest.err >conftest.er1
5448 cat conftest.er1 >&5
5450 rm -f conftest.er1 conftest.err
5451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5452 test $ac_status = 0; }
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5466 ac_clean_files_save=$ac_clean_files
5467 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5468 # Try to create an executable without -o first, disregard a.out.
5469 # It will help us diagnose broken compilers, and finding out an intuition
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5472 $as_echo_n "checking whether the C compiler works... " >&6; }
5473 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5475 # The possible output files:
5476 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5479 for ac_file in $ac_files
5482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5483 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5488 if { { ac_try="$ac_link_default"
5490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5491 *) ac_try_echo=$ac_try;;
5493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5494 $as_echo "$ac_try_echo"; } >&5
5495 (eval "$ac_link_default") 2>&5
5497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5498 test $ac_status = 0; }; then :
5499 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5500 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5501 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5502 # so that the user can short-circuit this test for compilers unknown to
5504 for ac_file in $ac_files ''
5506 test -f "$ac_file" || continue
5508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5511 # We found the default executable, but exeext='' is most
5515 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5517 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5519 # We set ac_cv_exeext here because the later test for it is not
5520 # safe: cross compilers may not add the suffix if given an `-o'
5521 # argument, so we may need to know it at that point already.
5522 # Even if this section looks crufty: it has the advantage of
5529 test "$ac_cv_exeext" = no && ac_cv_exeext=
5534 if test -z "$ac_file"; then :
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5537 $as_echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5542 as_fn_error 77 "C compiler cannot create executables
5543 See \`config.log' for more details" "$LINENO" 5; }
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5546 $as_echo "yes" >&6; }
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5549 $as_echo_n "checking for C compiler default output file name... " >&6; }
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5551 $as_echo "$ac_file" >&6; }
5552 ac_exeext=$ac_cv_exeext
5554 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5555 ac_clean_files=$ac_clean_files_save
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5557 $as_echo_n "checking for suffix of executables... " >&6; }
5558 if { { ac_try="$ac_link"
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5564 $as_echo "$ac_try_echo"; } >&5
5565 (eval "$ac_link") 2>&5
5567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5568 test $ac_status = 0; }; then :
5569 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5570 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5571 # work properly (i.e., refer to `conftest.exe'), while it won't with
5573 for ac_file in conftest.exe conftest conftest.*; do
5574 test -f "$ac_file" || continue
5576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5577 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5585 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5586 See \`config.log' for more details" "$LINENO" 5; }
5588 rm -f conftest conftest$ac_cv_exeext
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5590 $as_echo "$ac_cv_exeext" >&6; }
5592 rm -f conftest.$ac_ext
5593 EXEEXT=$ac_cv_exeext
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5601 FILE *f = fopen ("conftest.out", "w");
5602 return ferror (f) || fclose (f) != 0;
5608 ac_clean_files="$ac_clean_files conftest.out"
5609 # Check that the compiler produces executables we can run. If not, either
5610 # the compiler is broken, or we cross compile.
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5612 $as_echo_n "checking whether we are cross compiling... " >&6; }
5613 if test "$cross_compiling" != yes; then
5614 { { ac_try="$ac_link"
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5620 $as_echo "$ac_try_echo"; } >&5
5621 (eval "$ac_link") 2>&5
5623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5624 test $ac_status = 0; }
5625 if { ac_try='./conftest$ac_cv_exeext'
5626 { { case "(($ac_try" in
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5631 $as_echo "$ac_try_echo"; } >&5
5632 (eval "$ac_try") 2>&5
5634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5635 test $ac_status = 0; }; }; then
5638 if test "$cross_compiling" = maybe; then
5641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5643 as_fn_error $? "cannot run C compiled programs.
5644 If you meant to cross compile, use \`--host'.
5645 See \`config.log' for more details" "$LINENO" 5; }
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5650 $as_echo "$cross_compiling" >&6; }
5652 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5653 ac_clean_files=$ac_clean_files_save
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5655 $as_echo_n "checking for suffix of object files... " >&6; }
5656 if ${ac_cv_objext+:} false; then :
5657 $as_echo_n "(cached) " >&6
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5670 rm -f conftest.o conftest.obj
5671 if { { ac_try="$ac_compile"
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5677 $as_echo "$ac_try_echo"; } >&5
5678 (eval "$ac_compile") 2>&5
5680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5681 test $ac_status = 0; }; then :
5682 for ac_file in conftest.o conftest.obj conftest.*; do
5683 test -f "$ac_file" || continue;
5685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5686 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5691 $as_echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5696 as_fn_error $? "cannot compute suffix of object files: cannot compile
5697 See \`config.log' for more details" "$LINENO" 5; }
5699 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5702 $as_echo "$ac_cv_objext" >&6; }
5703 OBJEXT=$ac_cv_objext
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5706 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5707 if ${ac_cv_c_compiler_gnu+:} false; then :
5708 $as_echo_n "(cached) " >&6
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711 /* end confdefs.h. */
5724 if ac_fn_c_try_compile "$LINENO"; then :
5729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5734 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5735 if test $ac_compiler_gnu = yes; then
5740 ac_test_CFLAGS=${CFLAGS+set}
5741 ac_save_CFLAGS=$CFLAGS
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5743 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5744 if ${ac_cv_prog_cc_g+:} false; then :
5745 $as_echo_n "(cached) " >&6
5747 ac_save_c_werror_flag=$ac_c_werror_flag
5748 ac_c_werror_flag=yes
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5762 if ac_fn_c_try_compile "$LINENO"; then :
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5777 if ac_fn_c_try_compile "$LINENO"; then :
5780 ac_c_werror_flag=$ac_save_c_werror_flag
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5793 if ac_fn_c_try_compile "$LINENO"; then :
5796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801 ac_c_werror_flag=$ac_save_c_werror_flag
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5804 $as_echo "$ac_cv_prog_cc_g" >&6; }
5805 if test "$ac_test_CFLAGS" = set; then
5806 CFLAGS=$ac_save_CFLAGS
5807 elif test $ac_cv_prog_cc_g = yes; then
5808 if test "$GCC" = yes; then
5814 if test "$GCC" = yes; then
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5821 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5822 if ${ac_cv_prog_cc_c89+:} false; then :
5823 $as_echo_n "(cached) " >&6
5825 ac_cv_prog_cc_c89=no
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5832 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5833 struct buf { int x; };
5834 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5835 static char *e (p, i)
5841 static char *f (char * (*g) (char **, int), char **p, ...)
5846 s = g (p, va_arg (v,int));
5851 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5852 function prototypes and stuff, but not '\xHH' hex character constants.
5853 These don't provoke an error unfortunately, instead are silently treated
5854 as 'x'. The following induces an error, until -std is added to get
5855 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5856 array size at least. It's necessary to write '\x00'==0 to get something
5857 that's true only with -std. */
5858 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5860 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5861 inside strings and character constants. */
5863 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5865 int test (int i, double x);
5866 struct s1 {int (*f) (int a);};
5867 struct s2 {int (*f) (double a);};
5868 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5874 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5879 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5880 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5882 CC="$ac_save_CC $ac_arg"
5883 if ac_fn_c_try_compile "$LINENO"; then :
5884 ac_cv_prog_cc_c89=$ac_arg
5886 rm -f core conftest.err conftest.$ac_objext
5887 test "x$ac_cv_prog_cc_c89" != "xno" && break
5889 rm -f conftest.$ac_ext
5894 case "x$ac_cv_prog_cc_c89" in
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5897 $as_echo "none needed" >&6; } ;;
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5900 $as_echo "unsupported" >&6; } ;;
5902 CC="$CC $ac_cv_prog_cc_c89"
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5904 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5906 if test "x$ac_cv_prog_cc_c89" != xno; then :
5911 ac_cpp='$CPP $CPPFLAGS'
5912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5918 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5919 if ${ac_cv_path_SED+:} false; then :
5920 $as_echo_n "(cached) " >&6
5922 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5923 for ac_i in 1 2 3 4 5 6 7; do
5924 ac_script="$ac_script$as_nl$ac_script"
5926 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5927 { ac_script=; unset ac_script;}
5928 if test -z "$SED"; then
5929 ac_path_SED_found=false
5930 # Loop through the user's path and test for each of PROGNAME-LIST
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 test -z "$as_dir" && as_dir=.
5936 for ac_prog in sed gsed; do
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5939 as_fn_executable_p "$ac_path_SED" || continue
5940 # Check for GNU ac_path_SED and select it if it is found.
5941 # Check for GNU $ac_path_SED
5942 case `"$ac_path_SED" --version 2>&1` in
5944 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5947 $as_echo_n 0123456789 >"conftest.in"
5950 cat "conftest.in" "conftest.in" >"conftest.tmp"
5951 mv "conftest.tmp" "conftest.in"
5952 cp "conftest.in" "conftest.nl"
5953 $as_echo '' >> "conftest.nl"
5954 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5955 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5956 as_fn_arith $ac_count + 1 && ac_count=$as_val
5957 if test $ac_count -gt ${ac_path_SED_max-0}; then
5958 # Best one so far, save it but keep looking for a better one
5959 ac_cv_path_SED="$ac_path_SED"
5960 ac_path_SED_max=$ac_count
5962 # 10*(2^10) chars as input seems more than enough
5963 test $ac_count -gt 10 && break
5965 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5968 $ac_path_SED_found && break 3
5973 if test -z "$ac_cv_path_SED"; then
5974 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5982 $as_echo "$ac_cv_path_SED" >&6; }
5983 SED="$ac_cv_path_SED"
5988 if test "x$apr_preload_done" != "xyes" ; then
5990 apr_preload_done="yes"
5992 echo "Applying APR hints file rules for $host"
5997 if test "x$CPPFLAGS" = "x"; then
5998 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DMINT -D_GNU_SOURCE\""
5999 CPPFLAGS="-DMINT -D_GNU_SOURCE"
6001 apr_addto_bugger="-DMINT -D_GNU_SOURCE"
6002 for i in $apr_addto_bugger; do
6003 apr_addto_duplicate="0"
6004 for j in $CPPFLAGS; do
6005 if test "x$i" = "x$j"; then
6006 apr_addto_duplicate="1"
6010 if test $apr_addto_duplicate = "0"; then
6011 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6012 CPPFLAGS="$CPPFLAGS $i"
6020 if test "x$CPPFLAGS" = "x"; then
6021 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE\""
6022 CPPFLAGS="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
6024 apr_addto_bugger="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE"
6025 for i in $apr_addto_bugger; do
6026 apr_addto_duplicate="0"
6027 for j in $CPPFLAGS; do
6028 if test "x$i" = "x$j"; then
6029 apr_addto_duplicate="1"
6033 if test $apr_addto_duplicate = "0"; then
6034 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6035 CPPFLAGS="$CPPFLAGS $i"
6041 if test "x$LIBS" = "x"; then
6042 test "x$silent" != "xyes" && echo " setting LIBS to \"-lsvipc -lcurses\""
6043 LIBS="-lsvipc -lcurses"
6045 apr_addto_bugger="-lsvipc -lcurses"
6046 for i in $apr_addto_bugger; do
6047 apr_addto_duplicate="0"
6049 if test "x$i" = "x$j"; then
6050 apr_addto_duplicate="1"
6054 if test $apr_addto_duplicate = "0"; then
6055 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
6062 if test "x$LDFLAGS" = "x"; then
6063 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\"\""
6064 LDFLAGS="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
6066 apr_addto_bugger="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\""
6067 for i in $apr_addto_bugger; do
6068 apr_addto_duplicate="0"
6069 for j in $LDFLAGS; do
6070 if test "x$i" = "x$j"; then
6071 apr_addto_duplicate="1"
6075 if test $apr_addto_duplicate = "0"; then
6076 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
6077 LDFLAGS="$LDFLAGS $i"
6085 if test "x$CPPFLAGS" = "x"; then
6086 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAUX3 -D_POSIX_SOURCE\""
6087 CPPFLAGS="-DAUX3 -D_POSIX_SOURCE"
6089 apr_addto_bugger="-DAUX3 -D_POSIX_SOURCE"
6090 for i in $apr_addto_bugger; do
6091 apr_addto_duplicate="0"
6092 for j in $CPPFLAGS; do
6093 if test "x$i" = "x$j"; then
6094 apr_addto_duplicate="1"
6098 if test $apr_addto_duplicate = "0"; then
6099 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6100 CPPFLAGS="$CPPFLAGS $i"
6106 if test "x$LIBS" = "x"; then
6107 test "x$silent" != "xyes" && echo " setting LIBS to \"-lposix -lbsd\""
6108 LIBS="-lposix -lbsd"
6110 apr_addto_bugger="-lposix -lbsd"
6111 for i in $apr_addto_bugger; do
6112 apr_addto_duplicate="0"
6114 if test "x$i" = "x$j"; then
6115 apr_addto_duplicate="1"
6119 if test $apr_addto_duplicate = "0"; then
6120 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
6127 if test "x$LDFLAGS" = "x"; then
6128 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-s\""
6131 apr_addto_bugger="-s"
6132 for i in $apr_addto_bugger; do
6133 apr_addto_duplicate="0"
6134 for j in $LDFLAGS; do
6135 if test "x$i" = "x$j"; then
6136 apr_addto_duplicate="1"
6140 if test $apr_addto_duplicate = "0"; then
6141 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
6142 LDFLAGS="$LDFLAGS $i"
6148 test "x$silent" != "xyes" && echo " forcing SHELL to \"/bin/ksh\""
6154 if test "x$CPPFLAGS" = "x"; then
6155 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-U__STR__ -D_THREAD_SAFE\""
6156 CPPFLAGS="-U__STR__ -D_THREAD_SAFE"
6158 apr_addto_bugger="-U__STR__ -D_THREAD_SAFE"
6159 for i in $apr_addto_bugger; do
6160 apr_addto_duplicate="0"
6161 for j in $CPPFLAGS; do
6162 if test "x$i" = "x$j"; then
6163 apr_addto_duplicate="1"
6167 if test $apr_addto_duplicate = "0"; then
6168 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6169 CPPFLAGS="$CPPFLAGS $i"
6177 if test "x$CPPFLAGS" = "x"; then
6178 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_USE_IRS\""
6179 CPPFLAGS="-D_USE_IRS"
6181 apr_addto_bugger="-D_USE_IRS"
6182 for i in $apr_addto_bugger; do
6183 apr_addto_duplicate="0"
6184 for j in $CPPFLAGS; do
6185 if test "x$i" = "x$j"; then
6186 apr_addto_duplicate="1"
6190 if test $apr_addto_duplicate = "0"; then
6191 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6192 CPPFLAGS="$CPPFLAGS $i"
6200 if test "x$CPPFLAGS" = "x"; then
6201 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_USE_IRS\""
6202 CPPFLAGS="-D_USE_IRS"
6204 apr_addto_bugger="-D_USE_IRS"
6205 for i in $apr_addto_bugger; do
6206 apr_addto_duplicate="0"
6207 for j in $CPPFLAGS; do
6208 if test "x$i" = "x$j"; then
6209 apr_addto_duplicate="1"
6213 if test $apr_addto_duplicate = "0"; then
6214 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6215 CPPFLAGS="$CPPFLAGS $i"
6223 if test "x$CPPFLAGS" = "x"; then
6224 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_USE_IRS\""
6225 CPPFLAGS="-D_USE_IRS"
6227 apr_addto_bugger="-D_USE_IRS"
6228 for i in $apr_addto_bugger; do
6229 apr_addto_duplicate="0"
6230 for j in $CPPFLAGS; do
6231 if test "x$i" = "x$j"; then
6232 apr_addto_duplicate="1"
6236 if test $apr_addto_duplicate = "0"; then
6237 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6238 CPPFLAGS="$CPPFLAGS $i"
6245 if $CC 2>&1 | grep 'xlc' > /dev/null; then
6247 if test -z "$AIX_XLC"; then
6248 test "x$silent" != "xyes" && echo " setting AIX_XLC to \"yes\""
6253 if test "x$CFLAGS" = "x"; then
6254 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-qHALT=E\""
6257 apr_addto_bugger="-qHALT=E"
6258 for i in $apr_addto_bugger; do
6259 apr_addto_duplicate="0"
6260 for j in $CFLAGS; do
6261 if test "x$i" = "x$j"; then
6262 apr_addto_duplicate="1"
6266 if test $apr_addto_duplicate = "0"; then
6267 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
6275 if test -z "$apr_sysvsem_is_global"; then
6276 test "x$silent" != "xyes" && echo " setting apr_sysvsem_is_global to \"yes\""
6277 apr_sysvsem_is_global="yes"
6281 if test -z "$apr_lock_method"; then
6282 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
6283 apr_lock_method="USE_SYSVSEM_SERIALIZE"
6287 *-ibm-aix3* | *-ibm-aix4.1.*)
6291 if test "x$LDFLAGS" = "x"; then
6292 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Wl,-brtl\""
6295 apr_addto_bugger="-Wl,-brtl"
6296 for i in $apr_addto_bugger; do
6297 apr_addto_duplicate="0"
6298 for j in $LDFLAGS; do
6299 if test "x$i" = "x$j"; then
6300 apr_addto_duplicate="1"
6304 if test $apr_addto_duplicate = "0"; then
6305 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
6306 LDFLAGS="$LDFLAGS $i"
6316 if test "x$CPPFLAGS" = "x"; then
6317 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPOLLO\""
6320 apr_addto_bugger="-DAPOLLO"
6321 for i in $apr_addto_bugger; do
6322 apr_addto_duplicate="0"
6323 for j in $CPPFLAGS; do
6324 if test "x$i" = "x$j"; then
6325 apr_addto_duplicate="1"
6329 if test $apr_addto_duplicate = "0"; then
6330 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6331 CPPFLAGS="$CPPFLAGS $i"
6339 if test "x$CPPFLAGS" = "x"; then
6340 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DDGUX\""
6343 apr_addto_bugger="-DDGUX"
6344 for i in $apr_addto_bugger; do
6345 apr_addto_duplicate="0"
6346 for j in $CPPFLAGS; do
6347 if test "x$i" = "x$j"; then
6348 apr_addto_duplicate="1"
6352 if test $apr_addto_duplicate = "0"; then
6353 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6354 CPPFLAGS="$CPPFLAGS $i"
6362 test "x$silent" != "xyes" && echo " forcing SHELL to \"sh\""
6366 if test -z "$apr_gethostbyname_is_thread_safe"; then
6367 test "x$silent" != "xyes" && echo " setting apr_gethostbyname_is_thread_safe to \"yes\""
6368 apr_gethostbyname_is_thread_safe="yes"
6372 if test -z "$apr_gethostbyaddr_is_thread_safe"; then
6373 test "x$silent" != "xyes" && echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\""
6374 apr_gethostbyaddr_is_thread_safe="yes"
6378 if test -z "$apr_getservbyname_is_thread_safe"; then
6379 test "x$silent" != "xyes" && echo " setting apr_getservbyname_is_thread_safe to \"yes\""
6380 apr_getservbyname_is_thread_safe="yes"
6386 if test "x$CPPFLAGS" = "x"; then
6387 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DHIUX\""
6390 apr_addto_bugger="-DHIUX"
6391 for i in $apr_addto_bugger; do
6392 apr_addto_duplicate="0"
6393 for j in $CPPFLAGS; do
6394 if test "x$i" = "x$j"; then
6395 apr_addto_duplicate="1"
6399 if test $apr_addto_duplicate = "0"; then
6400 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6401 CPPFLAGS="$CPPFLAGS $i"
6409 if test "x$CPPFLAGS" = "x"; then
6410 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE\""
6411 CPPFLAGS="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
6413 apr_addto_bugger="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE"
6414 for i in $apr_addto_bugger; do
6415 apr_addto_duplicate="0"
6416 for j in $CPPFLAGS; do
6417 if test "x$i" = "x$j"; then
6418 apr_addto_duplicate="1"
6422 if test $apr_addto_duplicate = "0"; then
6423 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6424 CPPFLAGS="$CPPFLAGS $i"
6434 if test "x$CPPFLAGS" = "x"; then
6435 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSELECT_NEEDS_CAST\""
6436 CPPFLAGS="-DSELECT_NEEDS_CAST"
6438 apr_addto_bugger="-DSELECT_NEEDS_CAST"
6439 for i in $apr_addto_bugger; do
6440 apr_addto_duplicate="0"
6441 for j in $CPPFLAGS; do
6442 if test "x$i" = "x$j"; then
6443 apr_addto_duplicate="1"
6447 if test $apr_addto_duplicate = "0"; then
6448 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6449 CPPFLAGS="$CPPFLAGS $i"
6457 if test "x$CPPFLAGS" = "x"; then
6458 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_REENTRANT\""
6459 CPPFLAGS="-D_REENTRANT"
6461 apr_addto_bugger="-D_REENTRANT"
6462 for i in $apr_addto_bugger; do
6463 apr_addto_duplicate="0"
6464 for j in $CPPFLAGS; do
6465 if test "x$i" = "x$j"; then
6466 apr_addto_duplicate="1"
6470 if test $apr_addto_duplicate = "0"; then
6471 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6472 CPPFLAGS="$CPPFLAGS $i"
6480 if test "x$CPPFLAGS" = "x"; then
6481 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DHPUX -D_REENTRANT\""
6482 CPPFLAGS="-DHPUX -D_REENTRANT"
6484 apr_addto_bugger="-DHPUX -D_REENTRANT"
6485 for i in $apr_addto_bugger; do
6486 apr_addto_duplicate="0"
6487 for j in $CPPFLAGS; do
6488 if test "x$i" = "x$j"; then
6489 apr_addto_duplicate="1"
6493 if test $apr_addto_duplicate = "0"; then
6494 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6495 CPPFLAGS="$CPPFLAGS $i"
6503 if test "x$CPPFLAGS" = "x"; then
6504 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DLINUX -D_REENTRANT -D_GNU_SOURCE\""
6505 CPPFLAGS="-DLINUX -D_REENTRANT -D_GNU_SOURCE"
6507 apr_addto_bugger="-DLINUX -D_REENTRANT -D_GNU_SOURCE"
6508 for i in $apr_addto_bugger; do
6509 apr_addto_duplicate="0"
6510 for j in $CPPFLAGS; do
6511 if test "x$i" = "x$j"; then
6512 apr_addto_duplicate="1"
6516 if test $apr_addto_duplicate = "0"; then
6517 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6518 CPPFLAGS="$CPPFLAGS $i"
6526 if test "x$CPPFLAGS" = "x"; then
6527 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D__NO_INCLUDE_WARN__ -DLYNXOS\""
6528 CPPFLAGS="-D__NO_INCLUDE_WARN__ -DLYNXOS"
6530 apr_addto_bugger="-D__NO_INCLUDE_WARN__ -DLYNXOS"
6531 for i in $apr_addto_bugger; do
6532 apr_addto_duplicate="0"
6533 for j in $CPPFLAGS; do
6534 if test "x$i" = "x$j"; then
6535 apr_addto_duplicate="1"
6539 if test $apr_addto_duplicate = "0"; then
6540 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6541 CPPFLAGS="$CPPFLAGS $i"
6547 if test "x$LIBS" = "x"; then
6548 test "x$silent" != "xyes" && echo " setting LIBS to \"-lbsd\""
6551 apr_addto_bugger="-lbsd"
6552 for i in $apr_addto_bugger; do
6553 apr_addto_duplicate="0"
6555 if test "x$i" = "x$j"; then
6556 apr_addto_duplicate="1"
6560 if test $apr_addto_duplicate = "0"; then
6561 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
6570 if test "x$CFLAGS" = "x"; then
6571 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-m486\""
6574 apr_addto_bugger="-m486"
6575 for i in $apr_addto_bugger; do
6576 apr_addto_duplicate="0"
6577 for j in $CFLAGS; do
6578 if test "x$i" = "x$j"; then
6579 apr_addto_duplicate="1"
6583 if test $apr_addto_duplicate = "0"; then
6584 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
6595 if test "x$CFLAGS" = "x"; then
6596 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-D_REENTRANT\""
6597 CFLAGS="-D_REENTRANT"
6599 apr_addto_bugger="-D_REENTRANT"
6600 for i in $apr_addto_bugger; do
6601 apr_addto_duplicate="0"
6602 for j in $CFLAGS; do
6603 if test "x$i" = "x$j"; then
6604 apr_addto_duplicate="1"
6608 if test $apr_addto_duplicate = "0"; then
6609 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
6620 if test "x$CPPFLAGS" = "x"; then
6621 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_POSIX_THREADS\""
6622 CPPFLAGS="-D_POSIX_THREADS"
6624 apr_addto_bugger="-D_POSIX_THREADS"
6625 for i in $apr_addto_bugger; do
6626 apr_addto_duplicate="0"
6627 for j in $CPPFLAGS; do
6628 if test "x$i" = "x$j"; then
6629 apr_addto_duplicate="1"
6633 if test $apr_addto_duplicate = "0"; then
6634 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6635 CPPFLAGS="$CPPFLAGS $i"
6640 # binding to an ephemeral port fails on OpenBSD so override
6641 # the test for O_NONBLOCK inheritance across accept().
6643 if test -z "$ac_cv_o_nonblock_inherited"; then
6644 test "x$silent" != "xyes" && echo " setting ac_cv_o_nonblock_inherited to \"yes\""
6645 ac_cv_o_nonblock_inherited="yes"
6651 if test "x$CPPFLAGS" = "x"; then
6652 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNETBSD\""
6655 apr_addto_bugger="-DNETBSD"
6656 for i in $apr_addto_bugger; do
6657 apr_addto_duplicate="0"
6658 for j in $CPPFLAGS; do
6659 if test "x$i" = "x$j"; then
6660 apr_addto_duplicate="1"
6664 if test $apr_addto_duplicate = "0"; then
6665 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6666 CPPFLAGS="$CPPFLAGS $i"
6671 # fcntl() lies about O_NONBLOCK on an accept()ed socket (PR kern/26950)
6673 if test -z "$ac_cv_o_nonblock_inherited"; then
6674 test "x$silent" != "xyes" && echo " setting ac_cv_o_nonblock_inherited to \"yes\""
6675 ac_cv_o_nonblock_inherited="yes"
6681 if test -z "$apr_lock_method"; then
6682 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_FLOCK_SERIALIZE\""
6683 apr_lock_method="USE_FLOCK_SERIALIZE"
6686 if test -x /sbin/sysctl; then
6687 os_version=`/sbin/sysctl -n kern.osreldate`
6691 # 502102 is when libc_r switched to libpthread (aka libkse).
6692 if test $os_version -ge "502102"; then
6693 apr_cv_pthreads_cflags="none"
6694 apr_cv_pthreads_lib="-lpthread"
6697 if test "x$CPPFLAGS" = "x"; then
6698 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_THREAD_SAFE -D_REENTRANT\""
6699 CPPFLAGS="-D_THREAD_SAFE -D_REENTRANT"
6701 apr_addto_bugger="-D_THREAD_SAFE -D_REENTRANT"
6702 for i in $apr_addto_bugger; do
6703 apr_addto_duplicate="0"
6704 for j in $CPPFLAGS; do
6705 if test "x$i" = "x$j"; then
6706 apr_addto_duplicate="1"
6710 if test $apr_addto_duplicate = "0"; then
6711 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6712 CPPFLAGS="$CPPFLAGS $i"
6718 if test -z "$enable_threads"; then
6719 test "x$silent" != "xyes" && echo " setting enable_threads to \"no\""
6724 # prevent use of KQueue before FreeBSD 4.8
6725 if test $os_version -lt "480000"; then
6727 if test -z "$ac_cv_func_kqueue"; then
6728 test "x$silent" != "xyes" && echo " setting ac_cv_func_kqueue to \"no\""
6729 ac_cv_func_kqueue="no"
6736 if test "x$CPPFLAGS" = "x"; then
6737 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE\""
6738 CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE"
6740 apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE"
6741 for i in $apr_addto_bugger; do
6742 apr_addto_duplicate="0"
6743 for j in $CPPFLAGS; do
6744 if test "x$i" = "x$j"; then
6745 apr_addto_duplicate="1"
6749 if test $apr_addto_duplicate = "0"; then
6750 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6751 CPPFLAGS="$CPPFLAGS $i"
6759 if test "x$CPPFLAGS" = "x"; then
6760 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE -DHURD\""
6761 CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE -DHURD"
6763 apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE -DHURD"
6764 for i in $apr_addto_bugger; do
6765 apr_addto_duplicate="0"
6766 for j in $CPPFLAGS; do
6767 if test "x$i" = "x$j"; then
6768 apr_addto_duplicate="1"
6772 if test $apr_addto_duplicate = "0"; then
6773 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6774 CPPFLAGS="$CPPFLAGS $i"
6782 if test -z "$CFLAGS"; then
6783 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
6788 if test "x$CPPFLAGS" = "x"; then
6789 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNEXT\""
6792 apr_addto_bugger="-DNEXT"
6793 for i in $apr_addto_bugger; do
6794 apr_addto_duplicate="0"
6795 for j in $CPPFLAGS; do
6796 if test "x$i" = "x$j"; then
6797 apr_addto_duplicate="1"
6801 if test $apr_addto_duplicate = "0"; then
6802 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6803 CPPFLAGS="$CPPFLAGS $i"
6811 if test -z "$CFLAGS"; then
6812 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
6817 if test "x$CPPFLAGS" = "x"; then
6818 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNEXT\""
6821 apr_addto_bugger="-DNEXT"
6822 for i in $apr_addto_bugger; do
6823 apr_addto_duplicate="0"
6824 for j in $CPPFLAGS; do
6825 if test "x$i" = "x$j"; then
6826 apr_addto_duplicate="1"
6830 if test $apr_addto_duplicate = "0"; then
6831 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6832 CPPFLAGS="$CPPFLAGS $i"
6840 if test "x$CPPFLAGS" = "x"; then
6841 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DRHAPSODY\""
6842 CPPFLAGS="-DRHAPSODY"
6844 apr_addto_bugger="-DRHAPSODY"
6845 for i in $apr_addto_bugger; do
6846 apr_addto_duplicate="0"
6847 for j in $CPPFLAGS; do
6848 if test "x$i" = "x$j"; then
6849 apr_addto_duplicate="1"
6853 if test $apr_addto_duplicate = "0"; then
6854 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6855 CPPFLAGS="$CPPFLAGS $i"
6863 if test "x$CPPFLAGS" = "x"; then
6864 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK\""
6865 CPPFLAGS="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK"
6867 apr_addto_bugger="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK"
6868 for i in $apr_addto_bugger; do
6869 apr_addto_duplicate="0"
6870 for j in $CPPFLAGS; do
6871 if test "x$i" = "x$j"; then
6872 apr_addto_duplicate="1"
6876 if test $apr_addto_duplicate = "0"; then
6877 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6878 CPPFLAGS="$CPPFLAGS $i"
6884 if test -z "$apr_posixsem_is_global"; then
6885 test "x$silent" != "xyes" && echo " setting apr_posixsem_is_global to \"yes\""
6886 apr_posixsem_is_global="yes"
6890 *-apple-darwin[1-9].*)
6891 # APR's use of kqueue has triggered kernel panics for some
6892 # 10.5.x (Darwin 9.x) users when running the entire test suite.
6893 # In 10.4.x, use of kqueue would cause the socket tests to hang.
6894 # 10.6+ (Darwin 10.x is supposed to fix the KQueue issues
6896 if test -z "$ac_cv_func_kqueue"; then
6897 test "x$silent" != "xyes" && echo " setting ac_cv_func_kqueue to \"no\""
6898 ac_cv_func_kqueue="no"
6902 if test -z "$ac_cv_func_poll"; then
6903 test "x$silent" != "xyes" && echo " setting ac_cv_func_poll to \"no\""
6904 ac_cv_func_poll="no"
6910 if test "x$CPPFLAGS" = "x"; then
6911 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DDARWIN_10\""
6912 CPPFLAGS="-DDARWIN_10"
6914 apr_addto_bugger="-DDARWIN_10"
6915 for i in $apr_addto_bugger; do
6916 apr_addto_duplicate="0"
6917 for j in $CPPFLAGS; do
6918 if test "x$i" = "x$j"; then
6919 apr_addto_duplicate="1"
6923 if test $apr_addto_duplicate = "0"; then
6924 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6925 CPPFLAGS="$CPPFLAGS $i"
6935 if test "x$CPPFLAGS" = "x"; then
6936 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DOSF1\""
6939 apr_addto_bugger="-DOSF1"
6940 for i in $apr_addto_bugger; do
6941 apr_addto_duplicate="0"
6942 for j in $CPPFLAGS; do
6943 if test "x$i" = "x$j"; then
6944 apr_addto_duplicate="1"
6948 if test $apr_addto_duplicate = "0"; then
6949 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6950 CPPFLAGS="$CPPFLAGS $i"
6955 # process-shared mutexes don't seem to work in Tru64 5.0
6957 if test -z "$apr_cv_process_shared_works"; then
6958 test "x$silent" != "xyes" && echo " setting apr_cv_process_shared_works to \"no\""
6959 apr_cv_process_shared_works="no"
6967 if test "x$CPPFLAGS" = "x"; then
6968 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DQNX\""
6971 apr_addto_bugger="-DQNX"
6972 for i in $apr_addto_bugger; do
6973 apr_addto_duplicate="0"
6974 for j in $CPPFLAGS; do
6975 if test "x$i" = "x$j"; then
6976 apr_addto_duplicate="1"
6980 if test $apr_addto_duplicate = "0"; then
6981 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
6982 CPPFLAGS="$CPPFLAGS $i"
6988 if test "x$LIBS" = "x"; then
6989 test "x$silent" != "xyes" && echo " setting LIBS to \"-N128k -lunix\""
6990 LIBS="-N128k -lunix"
6992 apr_addto_bugger="-N128k -lunix"
6993 for i in $apr_addto_bugger; do
6994 apr_addto_duplicate="0"
6996 if test "x$i" = "x$j"; then
6997 apr_addto_duplicate="1"
7001 if test $apr_addto_duplicate = "0"; then
7002 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7011 if test "x$CPPFLAGS" = "x"; then
7012 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DQNX\""
7015 apr_addto_bugger="-DQNX"
7016 for i in $apr_addto_bugger; do
7017 apr_addto_duplicate="0"
7018 for j in $CPPFLAGS; do
7019 if test "x$i" = "x$j"; then
7020 apr_addto_duplicate="1"
7024 if test $apr_addto_duplicate = "0"; then
7025 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7026 CPPFLAGS="$CPPFLAGS $i"
7032 if test "x$CFLAGS" = "x"; then
7033 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-mf -3\""
7036 apr_addto_bugger="-mf -3"
7037 for i in $apr_addto_bugger; do
7038 apr_addto_duplicate="0"
7039 for j in $CFLAGS; do
7040 if test "x$i" = "x$j"; then
7041 apr_addto_duplicate="1"
7045 if test $apr_addto_duplicate = "0"; then
7046 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
7053 if test "x$LIBS" = "x"; then
7054 test "x$silent" != "xyes" && echo " setting LIBS to \"-N128k -lunix\""
7055 LIBS="-N128k -lunix"
7057 apr_addto_bugger="-N128k -lunix"
7058 for i in $apr_addto_bugger; do
7059 apr_addto_duplicate="0"
7061 if test "x$i" = "x$j"; then
7062 apr_addto_duplicate="1"
7066 if test $apr_addto_duplicate = "0"; then
7067 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7076 if test "x$CPPFLAGS" = "x"; then
7077 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-posix -DISC\""
7078 CPPFLAGS="-posix -DISC"
7080 apr_addto_bugger="-posix -DISC"
7081 for i in $apr_addto_bugger; do
7082 apr_addto_duplicate="0"
7083 for j in $CPPFLAGS; do
7084 if test "x$i" = "x$j"; then
7085 apr_addto_duplicate="1"
7089 if test $apr_addto_duplicate = "0"; then
7090 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7091 CPPFLAGS="$CPPFLAGS $i"
7097 if test "x$LDFLAGS" = "x"; then
7098 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-posix\""
7101 apr_addto_bugger="-posix"
7102 for i in $apr_addto_bugger; do
7103 apr_addto_duplicate="0"
7104 for j in $LDFLAGS; do
7105 if test "x$i" = "x$j"; then
7106 apr_addto_duplicate="1"
7110 if test $apr_addto_duplicate = "0"; then
7111 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
7112 LDFLAGS="$LDFLAGS $i"
7118 if test "x$LIBS" = "x"; then
7119 test "x$silent" != "xyes" && echo " setting LIBS to \"-linet\""
7122 apr_addto_bugger="-linet"
7123 for i in $apr_addto_bugger; do
7124 apr_addto_duplicate="0"
7126 if test "x$i" = "x$j"; then
7127 apr_addto_duplicate="1"
7131 if test $apr_addto_duplicate = "0"; then
7132 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7141 if test "x$CPPFLAGS" = "x"; then
7142 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
7143 CPPFLAGS="-DSCO -D_REENTRANT"
7145 apr_addto_bugger="-DSCO -D_REENTRANT"
7146 for i in $apr_addto_bugger; do
7147 apr_addto_duplicate="0"
7148 for j in $CPPFLAGS; do
7149 if test "x$i" = "x$j"; then
7150 apr_addto_duplicate="1"
7154 if test $apr_addto_duplicate = "0"; then
7155 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7156 CPPFLAGS="$CPPFLAGS $i"
7161 if test "$GCC" = "no"; then
7163 if test "x$CFLAGS" = "x"; then
7164 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Oacgiltz\""
7167 apr_addto_bugger="-Oacgiltz"
7168 for i in $apr_addto_bugger; do
7169 apr_addto_duplicate="0"
7170 for j in $CFLAGS; do
7171 if test "x$i" = "x$j"; then
7172 apr_addto_duplicate="1"
7176 if test $apr_addto_duplicate = "0"; then
7177 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
7185 if test "x$LIBS" = "x"; then
7186 test "x$silent" != "xyes" && echo " setting LIBS to \"-lPW -lmalloc\""
7187 LIBS="-lPW -lmalloc"
7189 apr_addto_bugger="-lPW -lmalloc"
7190 for i in $apr_addto_bugger; do
7191 apr_addto_duplicate="0"
7193 if test "x$i" = "x$j"; then
7194 apr_addto_duplicate="1"
7198 if test $apr_addto_duplicate = "0"; then
7199 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7208 if test "x$CPPFLAGS" = "x"; then
7209 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSCO5 -D_REENTRANT\""
7210 CPPFLAGS="-DSCO5 -D_REENTRANT"
7212 apr_addto_bugger="-DSCO5 -D_REENTRANT"
7213 for i in $apr_addto_bugger; do
7214 apr_addto_duplicate="0"
7215 for j in $CPPFLAGS; do
7216 if test "x$i" = "x$j"; then
7217 apr_addto_duplicate="1"
7221 if test $apr_addto_duplicate = "0"; then
7222 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7223 CPPFLAGS="$CPPFLAGS $i"
7229 *-sco_sv*|*-SCO_SV*)
7231 if test "x$CPPFLAGS" = "x"; then
7232 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSCO -D_REENTRANT\""
7233 CPPFLAGS="-DSCO -D_REENTRANT"
7235 apr_addto_bugger="-DSCO -D_REENTRANT"
7236 for i in $apr_addto_bugger; do
7237 apr_addto_duplicate="0"
7238 for j in $CPPFLAGS; do
7239 if test "x$i" = "x$j"; then
7240 apr_addto_duplicate="1"
7244 if test $apr_addto_duplicate = "0"; then
7245 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7246 CPPFLAGS="$CPPFLAGS $i"
7252 if test "x$LIBS" = "x"; then
7253 test "x$silent" != "xyes" && echo " setting LIBS to \"-lPW -lmalloc\""
7254 LIBS="-lPW -lmalloc"
7256 apr_addto_bugger="-lPW -lmalloc"
7257 for i in $apr_addto_bugger; do
7258 apr_addto_duplicate="0"
7260 if test "x$i" = "x$j"; then
7261 apr_addto_duplicate="1"
7265 if test $apr_addto_duplicate = "0"; then
7266 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7274 PLATOSVERS=`echo $host | sed 's/^.*solaris2.//'`
7276 if test "x$CPPFLAGS" = "x"; then
7277 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT\""
7278 CPPFLAGS="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
7280 apr_addto_bugger="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
7281 for i in $apr_addto_bugger; do
7282 apr_addto_duplicate="0"
7283 for j in $CPPFLAGS; do
7284 if test "x$i" = "x$j"; then
7285 apr_addto_duplicate="1"
7289 if test $apr_addto_duplicate = "0"; then
7290 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7291 CPPFLAGS="$CPPFLAGS $i"
7296 if test $PLATOSVERS -eq 10; then
7297 # pthread_mutex_timedlock is broken on Solaris 10.
7298 # It can block without timeout in case of EDEADLK.
7300 if test -z "$ac_cv_func_pthread_mutex_timedlock"; then
7301 test "x$silent" != "xyes" && echo " setting ac_cv_func_pthread_mutex_timedlock to \"no\""
7302 ac_cv_func_pthread_mutex_timedlock="no"
7306 if test $PLATOSVERS -ge 10; then
7308 if test -z "$apr_lock_method"; then
7309 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_PROC_PTHREAD_SERIALIZE\""
7310 apr_lock_method="USE_PROC_PTHREAD_SERIALIZE"
7315 if test -z "$apr_lock_method"; then
7316 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_FCNTL_SERIALIZE\""
7317 apr_lock_method="USE_FCNTL_SERIALIZE"
7321 # readdir64_r error handling seems broken on Solaris (at least
7322 # up till 2.8) -- it will return -1 at end-of-directory.
7324 if test -z "$ac_cv_func_readdir64_r"; then
7325 test "x$silent" != "xyes" && echo " setting ac_cv_func_readdir64_r to \"no\""
7326 ac_cv_func_readdir64_r="no"
7332 if test "x$CPPFLAGS" = "x"; then
7333 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSUNOS4\""
7336 apr_addto_bugger="-DSUNOS4"
7337 for i in $apr_addto_bugger; do
7338 apr_addto_duplicate="0"
7339 for j in $CPPFLAGS; do
7340 if test "x$i" = "x$j"; then
7341 apr_addto_duplicate="1"
7345 if test $apr_addto_duplicate = "0"; then
7346 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7347 CPPFLAGS="$CPPFLAGS $i"
7355 if test "x$CPPFLAGS" = "x"; then
7356 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=100\""
7359 apr_addto_bugger="-DUW=100"
7360 for i in $apr_addto_bugger; do
7361 apr_addto_duplicate="0"
7362 for j in $CPPFLAGS; do
7363 if test "x$i" = "x$j"; then
7364 apr_addto_duplicate="1"
7368 if test $apr_addto_duplicate = "0"; then
7369 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7370 CPPFLAGS="$CPPFLAGS $i"
7378 if test "x$CPPFLAGS" = "x"; then
7379 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=200\""
7382 apr_addto_bugger="-DUW=200"
7383 for i in $apr_addto_bugger; do
7384 apr_addto_duplicate="0"
7385 for j in $CPPFLAGS; do
7386 if test "x$i" = "x$j"; then
7387 apr_addto_duplicate="1"
7391 if test $apr_addto_duplicate = "0"; then
7392 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7393 CPPFLAGS="$CPPFLAGS $i"
7399 if test "x$LIBS" = "x"; then
7400 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
7403 apr_addto_bugger="-lgen"
7404 for i in $apr_addto_bugger; do
7405 apr_addto_duplicate="0"
7407 if test "x$i" = "x$j"; then
7408 apr_addto_duplicate="1"
7412 if test $apr_addto_duplicate = "0"; then
7413 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7422 if test "x$CPPFLAGS" = "x"; then
7423 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=211\""
7426 apr_addto_bugger="-DUW=211"
7427 for i in $apr_addto_bugger; do
7428 apr_addto_duplicate="0"
7429 for j in $CPPFLAGS; do
7430 if test "x$i" = "x$j"; then
7431 apr_addto_duplicate="1"
7435 if test $apr_addto_duplicate = "0"; then
7436 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7437 CPPFLAGS="$CPPFLAGS $i"
7443 if test "x$LIBS" = "x"; then
7444 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
7447 apr_addto_bugger="-lgen"
7448 for i in $apr_addto_bugger; do
7449 apr_addto_duplicate="0"
7451 if test "x$i" = "x$j"; then
7452 apr_addto_duplicate="1"
7456 if test $apr_addto_duplicate = "0"; then
7457 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7466 if test "x$CPPFLAGS" = "x"; then
7467 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=212\""
7470 apr_addto_bugger="-DUW=212"
7471 for i in $apr_addto_bugger; do
7472 apr_addto_duplicate="0"
7473 for j in $CPPFLAGS; do
7474 if test "x$i" = "x$j"; then
7475 apr_addto_duplicate="1"
7479 if test $apr_addto_duplicate = "0"; then
7480 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7481 CPPFLAGS="$CPPFLAGS $i"
7487 if test "x$LIBS" = "x"; then
7488 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
7491 apr_addto_bugger="-lgen"
7492 for i in $apr_addto_bugger; do
7493 apr_addto_duplicate="0"
7495 if test "x$i" = "x$j"; then
7496 apr_addto_duplicate="1"
7500 if test $apr_addto_duplicate = "0"; then
7501 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7510 if test "x$CPPFLAGS" = "x"; then
7511 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=700\""
7514 apr_addto_bugger="-DUW=700"
7515 for i in $apr_addto_bugger; do
7516 apr_addto_duplicate="0"
7517 for j in $CPPFLAGS; do
7518 if test "x$i" = "x$j"; then
7519 apr_addto_duplicate="1"
7523 if test $apr_addto_duplicate = "0"; then
7524 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7525 CPPFLAGS="$CPPFLAGS $i"
7531 if test "x$LIBS" = "x"; then
7532 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
7535 apr_addto_bugger="-lgen"
7536 for i in $apr_addto_bugger; do
7537 apr_addto_duplicate="0"
7539 if test "x$i" = "x$j"; then
7540 apr_addto_duplicate="1"
7544 if test $apr_addto_duplicate = "0"; then
7545 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7554 if test "x$CPPFLAGS" = "x"; then
7555 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
7558 apr_addto_bugger="-DSVR4"
7559 for i in $apr_addto_bugger; do
7560 apr_addto_duplicate="0"
7561 for j in $CPPFLAGS; do
7562 if test "x$i" = "x$j"; then
7563 apr_addto_duplicate="1"
7567 if test $apr_addto_duplicate = "0"; then
7568 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7569 CPPFLAGS="$CPPFLAGS $i"
7575 if test "x$LIBS" = "x"; then
7576 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -lgen\""
7579 apr_addto_bugger="-lc -lgen"
7580 for i in $apr_addto_bugger; do
7581 apr_addto_duplicate="0"
7583 if test "x$i" = "x$j"; then
7584 apr_addto_duplicate="1"
7588 if test $apr_addto_duplicate = "0"; then
7589 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7598 if test "x$CPPFLAGS" = "x"; then
7599 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
7602 apr_addto_bugger="-DSVR4"
7603 for i in $apr_addto_bugger; do
7604 apr_addto_duplicate="0"
7605 for j in $CPPFLAGS; do
7606 if test "x$i" = "x$j"; then
7607 apr_addto_duplicate="1"
7611 if test $apr_addto_duplicate = "0"; then
7612 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7613 CPPFLAGS="$CPPFLAGS $i"
7619 if test "x$LIBS" = "x"; then
7620 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\""
7623 apr_addto_bugger="-lgen"
7624 for i in $apr_addto_bugger; do
7625 apr_addto_duplicate="0"
7627 if test "x$i" = "x$j"; then
7628 apr_addto_duplicate="1"
7632 if test $apr_addto_duplicate = "0"; then
7633 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7642 if test "x$CPPFLAGS" = "x"; then
7643 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DTPF -D_POSIX_SOURCE\""
7644 CPPFLAGS="-DTPF -D_POSIX_SOURCE"
7646 apr_addto_bugger="-DTPF -D_POSIX_SOURCE"
7647 for i in $apr_addto_bugger; do
7648 apr_addto_duplicate="0"
7649 for j in $CPPFLAGS; do
7650 if test "x$i" = "x$j"; then
7651 apr_addto_duplicate="1"
7655 if test $apr_addto_duplicate = "0"; then
7656 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7657 CPPFLAGS="$CPPFLAGS $i"
7663 bs2000*-siemens-sysv*)
7665 if test -z "$CFLAGS"; then
7666 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
7671 if test "x$CPPFLAGS" = "x"; then
7672 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -D_KMEMUSER\""
7673 CPPFLAGS="-DSVR4 -D_XPG_IV -D_KMEMUSER"
7675 apr_addto_bugger="-DSVR4 -D_XPG_IV -D_KMEMUSER"
7676 for i in $apr_addto_bugger; do
7677 apr_addto_duplicate="0"
7678 for j in $CPPFLAGS; do
7679 if test "x$i" = "x$j"; then
7680 apr_addto_duplicate="1"
7684 if test $apr_addto_duplicate = "0"; then
7685 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7686 CPPFLAGS="$CPPFLAGS $i"
7692 if test "x$LIBS" = "x"; then
7693 test "x$silent" != "xyes" && echo " setting LIBS to \"-lsocket\""
7696 apr_addto_bugger="-lsocket"
7697 for i in $apr_addto_bugger; do
7698 apr_addto_duplicate="0"
7700 if test "x$i" = "x$j"; then
7701 apr_addto_duplicate="1"
7705 if test $apr_addto_duplicate = "0"; then
7706 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7713 if test -z "$enable_threads"; then
7714 test "x$silent" != "xyes" && echo " setting enable_threads to \"no\""
7721 if test "x$CPPFLAGS" = "x"; then
7722 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT\""
7723 CPPFLAGS="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
7725 apr_addto_bugger="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT"
7726 for i in $apr_addto_bugger; do
7727 apr_addto_duplicate="0"
7728 for j in $CPPFLAGS; do
7729 if test "x$i" = "x$j"; then
7730 apr_addto_duplicate="1"
7734 if test $apr_addto_duplicate = "0"; then
7735 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7736 CPPFLAGS="$CPPFLAGS $i"
7742 if test "x$LIBS" = "x"; then
7743 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
7746 apr_addto_bugger="-lc"
7747 for i in $apr_addto_bugger; do
7748 apr_addto_duplicate="0"
7750 if test "x$i" = "x$j"; then
7751 apr_addto_duplicate="1"
7755 if test $apr_addto_duplicate = "0"; then
7756 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7763 pyramid-pyramid-svr4)
7765 if test "x$CPPFLAGS" = "x"; then
7766 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DNO_LONG_DOUBLE\""
7767 CPPFLAGS="-DSVR4 -DNO_LONG_DOUBLE"
7769 apr_addto_bugger="-DSVR4 -DNO_LONG_DOUBLE"
7770 for i in $apr_addto_bugger; do
7771 apr_addto_duplicate="0"
7772 for j in $CPPFLAGS; do
7773 if test "x$i" = "x$j"; then
7774 apr_addto_duplicate="1"
7778 if test $apr_addto_duplicate = "0"; then
7779 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7780 CPPFLAGS="$CPPFLAGS $i"
7786 if test "x$LIBS" = "x"; then
7787 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
7790 apr_addto_bugger="-lc"
7791 for i in $apr_addto_bugger; do
7792 apr_addto_duplicate="0"
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 LIBS"
7807 DS/90\ 7000-*-sysv4*)
7809 if test "x$CPPFLAGS" = "x"; then
7810 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUXPDS\""
7813 apr_addto_bugger="-DUXPDS"
7814 for i in $apr_addto_bugger; do
7815 apr_addto_duplicate="0"
7816 for j in $CPPFLAGS; do
7817 if test "x$i" = "x$j"; then
7818 apr_addto_duplicate="1"
7822 if test $apr_addto_duplicate = "0"; then
7823 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7824 CPPFLAGS="$CPPFLAGS $i"
7832 if test "x$CPPFLAGS" = "x"; then
7833 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
7836 apr_addto_bugger="-DSVR4"
7837 for i in $apr_addto_bugger; do
7838 apr_addto_duplicate="0"
7839 for j in $CPPFLAGS; do
7840 if test "x$i" = "x$j"; then
7841 apr_addto_duplicate="1"
7845 if test $apr_addto_duplicate = "0"; then
7846 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7847 CPPFLAGS="$CPPFLAGS $i"
7855 if test "x$CPPFLAGS" = "x"; then
7856 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
7857 CPPFLAGS="-DSVR4 -DMPRAS"
7859 apr_addto_bugger="-DSVR4 -DMPRAS"
7860 for i in $apr_addto_bugger; do
7861 apr_addto_duplicate="0"
7862 for j in $CPPFLAGS; do
7863 if test "x$i" = "x$j"; then
7864 apr_addto_duplicate="1"
7868 if test $apr_addto_duplicate = "0"; then
7869 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7870 CPPFLAGS="$CPPFLAGS $i"
7876 if test "x$LIBS" = "x"; then
7877 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\""
7878 LIBS="-lc -L/usr/ucblib -lucb"
7880 apr_addto_bugger="-lc -L/usr/ucblib -lucb"
7881 for i in $apr_addto_bugger; do
7882 apr_addto_duplicate="0"
7884 if test "x$i" = "x$j"; then
7885 apr_addto_duplicate="1"
7889 if test $apr_addto_duplicate = "0"; then
7890 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7899 if test "x$CPPFLAGS" = "x"; then
7900 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
7903 apr_addto_bugger="-DSVR4"
7904 for i in $apr_addto_bugger; do
7905 apr_addto_duplicate="0"
7906 for j in $CPPFLAGS; do
7907 if test "x$i" = "x$j"; then
7908 apr_addto_duplicate="1"
7912 if test $apr_addto_duplicate = "0"; then
7913 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7914 CPPFLAGS="$CPPFLAGS $i"
7920 if test "x$LIBS" = "x"; then
7921 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
7924 apr_addto_bugger="-lc"
7925 for i in $apr_addto_bugger; do
7926 apr_addto_duplicate="0"
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 LIBS"
7943 if test "x$CPPFLAGS" = "x"; then
7944 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DENCORE\""
7945 CPPFLAGS="-DSVR4 -DENCORE"
7947 apr_addto_bugger="-DSVR4 -DENCORE"
7948 for i in $apr_addto_bugger; do
7949 apr_addto_duplicate="0"
7950 for j in $CPPFLAGS; do
7951 if test "x$i" = "x$j"; then
7952 apr_addto_duplicate="1"
7956 if test $apr_addto_duplicate = "0"; then
7957 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
7958 CPPFLAGS="$CPPFLAGS $i"
7964 if test "x$LIBS" = "x"; then
7965 test "x$silent" != "xyes" && echo " setting LIBS to \"-lPW\""
7968 apr_addto_bugger="-lPW"
7969 for i in $apr_addto_bugger; do
7970 apr_addto_duplicate="0"
7972 if test "x$i" = "x$j"; then
7973 apr_addto_duplicate="1"
7977 if test $apr_addto_duplicate = "0"; then
7978 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
7986 PLATOSVERS=`echo $host | sed 's/^.*,//'`
7989 if test "x$CPPFLAGS" = "x"; then
7990 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUTS21\""
7993 apr_addto_bugger="-DUTS21"
7994 for i in $apr_addto_bugger; do
7995 apr_addto_duplicate="0"
7996 for j in $CPPFLAGS; do
7997 if test "x$i" = "x$j"; then
7998 apr_addto_duplicate="1"
8002 if test $apr_addto_duplicate = "0"; then
8003 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8004 CPPFLAGS="$CPPFLAGS $i"
8010 if test "x$CFLAGS" = "x"; then
8011 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Xa -eft\""
8014 apr_addto_bugger="-Xa -eft"
8015 for i in $apr_addto_bugger; do
8016 apr_addto_duplicate="0"
8017 for j in $CFLAGS; do
8018 if test "x$i" = "x$j"; then
8019 apr_addto_duplicate="1"
8023 if test $apr_addto_duplicate = "0"; then
8024 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8031 if test "x$LIBS" = "x"; then
8032 test "x$silent" != "xyes" && echo " setting LIBS to \"-lbsd -la\""
8035 apr_addto_bugger="-lbsd -la"
8036 for i in $apr_addto_bugger; do
8037 apr_addto_duplicate="0"
8039 if test "x$i" = "x$j"; then
8040 apr_addto_duplicate="1"
8044 if test $apr_addto_duplicate = "0"; then
8045 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8053 if test "x$CPPFLAGS" = "x"; then
8054 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
8057 apr_addto_bugger="-DSVR4"
8058 for i in $apr_addto_bugger; do
8059 apr_addto_duplicate="0"
8060 for j in $CPPFLAGS; do
8061 if test "x$i" = "x$j"; then
8062 apr_addto_duplicate="1"
8066 if test $apr_addto_duplicate = "0"; then
8067 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8068 CPPFLAGS="$CPPFLAGS $i"
8074 if test "x$CFLAGS" = "x"; then
8075 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Xa\""
8078 apr_addto_bugger="-Xa"
8079 for i in $apr_addto_bugger; do
8080 apr_addto_duplicate="0"
8081 for j in $CFLAGS; do
8082 if test "x$i" = "x$j"; then
8083 apr_addto_duplicate="1"
8087 if test $apr_addto_duplicate = "0"; then
8088 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8099 if test "x$CPPFLAGS" = "x"; then
8100 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DULTRIX\""
8103 apr_addto_bugger="-DULTRIX"
8104 for i in $apr_addto_bugger; do
8105 apr_addto_duplicate="0"
8106 for j in $CPPFLAGS; do
8107 if test "x$i" = "x$j"; then
8108 apr_addto_duplicate="1"
8112 if test $apr_addto_duplicate = "0"; then
8113 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8114 CPPFLAGS="$CPPFLAGS $i"
8120 test "x$silent" != "xyes" && echo " forcing SHELL to \"/bin/sh5\""
8124 *powerpc-tenon-machten*)
8126 if test "x$LDFLAGS" = "x"; then
8127 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Xlstack=0x14000 -Xldelcsect\""
8128 LDFLAGS="-Xlstack=0x14000 -Xldelcsect"
8130 apr_addto_bugger="-Xlstack=0x14000 -Xldelcsect"
8131 for i in $apr_addto_bugger; do
8132 apr_addto_duplicate="0"
8133 for j in $LDFLAGS; do
8134 if test "x$i" = "x$j"; then
8135 apr_addto_duplicate="1"
8139 if test $apr_addto_duplicate = "0"; then
8140 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
8141 LDFLAGS="$LDFLAGS $i"
8149 if test "x$LDFLAGS" = "x"; then
8150 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-stack 0x14000\""
8151 LDFLAGS="-stack 0x14000"
8153 apr_addto_bugger="-stack 0x14000"
8154 for i in $apr_addto_bugger; do
8155 apr_addto_duplicate="0"
8156 for j in $LDFLAGS; do
8157 if test "x$i" = "x$j"; then
8158 apr_addto_duplicate="1"
8162 if test $apr_addto_duplicate = "0"; then
8163 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
8164 LDFLAGS="$LDFLAGS $i"
8172 if test "x$CPPFLAGS" = "x"; then
8173 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DCONVEXOS11\""
8174 CPPFLAGS="-DCONVEXOS11"
8176 apr_addto_bugger="-DCONVEXOS11"
8177 for i in $apr_addto_bugger; do
8178 apr_addto_duplicate="0"
8179 for j in $CPPFLAGS; do
8180 if test "x$i" = "x$j"; then
8181 apr_addto_duplicate="1"
8185 if test $apr_addto_duplicate = "0"; then
8186 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8187 CPPFLAGS="$CPPFLAGS $i"
8193 if test -z "$CFLAGS"; then
8194 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O1\""
8199 if test "x$CFLAGS" = "x"; then
8200 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-ext\""
8203 apr_addto_bugger="-ext"
8204 for i in $apr_addto_bugger; do
8205 apr_addto_duplicate="0"
8206 for j in $CFLAGS; do
8207 if test "x$i" = "x$j"; then
8208 apr_addto_duplicate="1"
8212 if test $apr_addto_duplicate = "0"; then
8213 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8222 if test "x$CPPFLAGS" = "x"; then
8223 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DPARAGON\""
8224 CPPFLAGS="-DPARAGON"
8226 apr_addto_bugger="-DPARAGON"
8227 for i in $apr_addto_bugger; do
8228 apr_addto_duplicate="0"
8229 for j in $CPPFLAGS; do
8230 if test "x$i" = "x$j"; then
8231 apr_addto_duplicate="1"
8235 if test $apr_addto_duplicate = "0"; then
8236 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8237 CPPFLAGS="$CPPFLAGS $i"
8245 if test "x$CPPFLAGS" = "x"; then
8246 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=20\""
8247 CPPFLAGS="-DSEQUENT=20"
8249 apr_addto_bugger="-DSEQUENT=20"
8250 for i in $apr_addto_bugger; do
8251 apr_addto_duplicate="0"
8252 for j in $CPPFLAGS; do
8253 if test "x$i" = "x$j"; then
8254 apr_addto_duplicate="1"
8258 if test $apr_addto_duplicate = "0"; then
8259 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8260 CPPFLAGS="$CPPFLAGS $i"
8266 if test "x$CFLAGS" = "x"; then
8267 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8270 apr_addto_bugger="-Wc,-pw"
8271 for i in $apr_addto_bugger; do
8272 apr_addto_duplicate="0"
8273 for j in $CFLAGS; do
8274 if test "x$i" = "x$j"; then
8275 apr_addto_duplicate="1"
8279 if test $apr_addto_duplicate = "0"; then
8280 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8287 if test "x$LIBS" = "x"; then
8288 test "x$silent" != "xyes" && echo " setting LIBS to \"-linet -lc -lseq\""
8289 LIBS="-linet -lc -lseq"
8291 apr_addto_bugger="-linet -lc -lseq"
8292 for i in $apr_addto_bugger; do
8293 apr_addto_duplicate="0"
8295 if test "x$i" = "x$j"; then
8296 apr_addto_duplicate="1"
8300 if test $apr_addto_duplicate = "0"; then
8301 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8310 if test "x$CPPFLAGS" = "x"; then
8311 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=40\""
8312 CPPFLAGS="-DSEQUENT=40"
8314 apr_addto_bugger="-DSEQUENT=40"
8315 for i in $apr_addto_bugger; do
8316 apr_addto_duplicate="0"
8317 for j in $CPPFLAGS; do
8318 if test "x$i" = "x$j"; then
8319 apr_addto_duplicate="1"
8323 if test $apr_addto_duplicate = "0"; then
8324 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8325 CPPFLAGS="$CPPFLAGS $i"
8331 if test "x$CFLAGS" = "x"; then
8332 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8335 apr_addto_bugger="-Wc,-pw"
8336 for i in $apr_addto_bugger; do
8337 apr_addto_duplicate="0"
8338 for j in $CFLAGS; do
8339 if test "x$i" = "x$j"; then
8340 apr_addto_duplicate="1"
8344 if test $apr_addto_duplicate = "0"; then
8345 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8352 if test "x$LIBS" = "x"; then
8353 test "x$silent" != "xyes" && echo " setting LIBS to \"-linet -lc\""
8356 apr_addto_bugger="-linet -lc"
8357 for i in $apr_addto_bugger; do
8358 apr_addto_duplicate="0"
8360 if test "x$i" = "x$j"; then
8361 apr_addto_duplicate="1"
8365 if test $apr_addto_duplicate = "0"; then
8366 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8373 *-sequent-ptx4.[123].*)
8375 if test "x$CPPFLAGS" = "x"; then
8376 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=41\""
8377 CPPFLAGS="-DSEQUENT=41"
8379 apr_addto_bugger="-DSEQUENT=41"
8380 for i in $apr_addto_bugger; do
8381 apr_addto_duplicate="0"
8382 for j in $CPPFLAGS; do
8383 if test "x$i" = "x$j"; then
8384 apr_addto_duplicate="1"
8388 if test $apr_addto_duplicate = "0"; then
8389 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8390 CPPFLAGS="$CPPFLAGS $i"
8396 if test "x$CFLAGS" = "x"; then
8397 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8400 apr_addto_bugger="-Wc,-pw"
8401 for i in $apr_addto_bugger; do
8402 apr_addto_duplicate="0"
8403 for j in $CFLAGS; do
8404 if test "x$i" = "x$j"; then
8405 apr_addto_duplicate="1"
8409 if test $apr_addto_duplicate = "0"; then
8410 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8417 if test "x$LIBS" = "x"; then
8418 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
8421 apr_addto_bugger="-lc"
8422 for i in $apr_addto_bugger; do
8423 apr_addto_duplicate="0"
8425 if test "x$i" = "x$j"; then
8426 apr_addto_duplicate="1"
8430 if test $apr_addto_duplicate = "0"; then
8431 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8440 if test "x$CPPFLAGS" = "x"; then
8441 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=44\""
8442 CPPFLAGS="-DSEQUENT=44"
8444 apr_addto_bugger="-DSEQUENT=44"
8445 for i in $apr_addto_bugger; do
8446 apr_addto_duplicate="0"
8447 for j in $CPPFLAGS; do
8448 if test "x$i" = "x$j"; then
8449 apr_addto_duplicate="1"
8453 if test $apr_addto_duplicate = "0"; then
8454 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8455 CPPFLAGS="$CPPFLAGS $i"
8461 if test "x$CFLAGS" = "x"; then
8462 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8465 apr_addto_bugger="-Wc,-pw"
8466 for i in $apr_addto_bugger; do
8467 apr_addto_duplicate="0"
8468 for j in $CFLAGS; do
8469 if test "x$i" = "x$j"; then
8470 apr_addto_duplicate="1"
8474 if test $apr_addto_duplicate = "0"; then
8475 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8482 if test "x$LIBS" = "x"; then
8483 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
8486 apr_addto_bugger="-lc"
8487 for i in $apr_addto_bugger; do
8488 apr_addto_duplicate="0"
8490 if test "x$i" = "x$j"; then
8491 apr_addto_duplicate="1"
8495 if test $apr_addto_duplicate = "0"; then
8496 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8505 if test "x$CPPFLAGS" = "x"; then
8506 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=45\""
8507 CPPFLAGS="-DSEQUENT=45"
8509 apr_addto_bugger="-DSEQUENT=45"
8510 for i in $apr_addto_bugger; do
8511 apr_addto_duplicate="0"
8512 for j in $CPPFLAGS; do
8513 if test "x$i" = "x$j"; then
8514 apr_addto_duplicate="1"
8518 if test $apr_addto_duplicate = "0"; then
8519 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8520 CPPFLAGS="$CPPFLAGS $i"
8526 if test "x$CFLAGS" = "x"; then
8527 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8530 apr_addto_bugger="-Wc,-pw"
8531 for i in $apr_addto_bugger; do
8532 apr_addto_duplicate="0"
8533 for j in $CFLAGS; do
8534 if test "x$i" = "x$j"; then
8535 apr_addto_duplicate="1"
8539 if test $apr_addto_duplicate = "0"; then
8540 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8547 if test "x$LIBS" = "x"; then
8548 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
8551 apr_addto_bugger="-lc"
8552 for i in $apr_addto_bugger; do
8553 apr_addto_duplicate="0"
8555 if test "x$i" = "x$j"; then
8556 apr_addto_duplicate="1"
8560 if test $apr_addto_duplicate = "0"; then
8561 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8570 if test "x$CPPFLAGS" = "x"; then
8571 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=50\""
8572 CPPFLAGS="-DSEQUENT=50"
8574 apr_addto_bugger="-DSEQUENT=50"
8575 for i in $apr_addto_bugger; do
8576 apr_addto_duplicate="0"
8577 for j in $CPPFLAGS; do
8578 if test "x$i" = "x$j"; then
8579 apr_addto_duplicate="1"
8583 if test $apr_addto_duplicate = "0"; then
8584 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8585 CPPFLAGS="$CPPFLAGS $i"
8591 if test "x$CFLAGS" = "x"; then
8592 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\""
8595 apr_addto_bugger="-Wc,-pw"
8596 for i in $apr_addto_bugger; do
8597 apr_addto_duplicate="0"
8598 for j in $CFLAGS; do
8599 if test "x$i" = "x$j"; then
8600 apr_addto_duplicate="1"
8604 if test $apr_addto_duplicate = "0"; then
8605 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
8612 if test "x$LIBS" = "x"; then
8613 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\""
8616 apr_addto_bugger="-lc"
8617 for i in $apr_addto_bugger; do
8618 apr_addto_duplicate="0"
8620 if test "x$i" = "x$j"; then
8621 apr_addto_duplicate="1"
8625 if test $apr_addto_duplicate = "0"; then
8626 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8635 if test "x$CPPFLAGS" = "x"; then
8636 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNEWSOS\""
8639 apr_addto_bugger="-DNEWSOS"
8640 for i in $apr_addto_bugger; do
8641 apr_addto_duplicate="0"
8642 for j in $CPPFLAGS; do
8643 if test "x$i" = "x$j"; then
8644 apr_addto_duplicate="1"
8648 if test $apr_addto_duplicate = "0"; then
8649 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8650 CPPFLAGS="$CPPFLAGS $i"
8658 if test "x$CPPFLAGS" = "x"; then
8659 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DRISCIX\""
8662 apr_addto_bugger="-DRISCIX"
8663 for i in $apr_addto_bugger; do
8664 apr_addto_duplicate="0"
8665 for j in $CPPFLAGS; do
8666 if test "x$i" = "x$j"; then
8667 apr_addto_duplicate="1"
8671 if test $apr_addto_duplicate = "0"; then
8672 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8673 CPPFLAGS="$CPPFLAGS $i"
8679 if test -z "$CFLAGS"; then
8680 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\""
8687 if test "x$CPPFLAGS" = "x"; then
8688 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_POSIX_THREAD_SAFE_FUNCTIONS\""
8689 CPPFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
8691 apr_addto_bugger="-D_POSIX_THREAD_SAFE_FUNCTIONS"
8692 for i in $apr_addto_bugger; do
8693 apr_addto_duplicate="0"
8694 for j in $CPPFLAGS; do
8695 if test "x$i" = "x$j"; then
8696 apr_addto_duplicate="1"
8700 if test $apr_addto_duplicate = "0"; then
8701 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8702 CPPFLAGS="$CPPFLAGS $i"
8710 if test "x$CPPFLAGS" = "x"; then
8711 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DBEOS\""
8714 apr_addto_bugger="-DBEOS"
8715 for i in $apr_addto_bugger; do
8716 apr_addto_duplicate="0"
8717 for j in $CPPFLAGS; do
8718 if test "x$i" = "x$j"; then
8719 apr_addto_duplicate="1"
8723 if test $apr_addto_duplicate = "0"; then
8724 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8725 CPPFLAGS="$CPPFLAGS $i"
8730 PLATOSVERS=`uname -r`
8732 if test -z "$apr_process_lock_is_global"; then
8733 test "x$silent" != "xyes" && echo " setting apr_process_lock_is_global to \"yes\""
8734 apr_process_lock_is_global="yes"
8740 if test "x$LDFLAGS" = "x"; then
8741 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L/boot/beos/system/lib\""
8742 LDFLAGS="-L/boot/beos/system/lib"
8744 apr_addto_bugger="-L/boot/beos/system/lib"
8745 for i in $apr_addto_bugger; do
8746 apr_addto_duplicate="0"
8747 for j in $LDFLAGS; do
8748 if test "x$i" = "x$j"; then
8749 apr_addto_duplicate="1"
8753 if test $apr_addto_duplicate = "0"; then
8754 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
8755 LDFLAGS="$LDFLAGS $i"
8761 if test "x$LIBS" = "x"; then
8762 test "x$silent" != "xyes" && echo " setting LIBS to \"-lbind -lsocket\""
8763 LIBS="-lbind -lsocket"
8765 apr_addto_bugger="-lbind -lsocket"
8766 for i in $apr_addto_bugger; do
8767 apr_addto_duplicate="0"
8769 if test "x$i" = "x$j"; then
8770 apr_addto_duplicate="1"
8774 if test $apr_addto_duplicate = "0"; then
8775 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8782 if test "x$CPPFLAGS" = "x"; then
8783 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DBONE7\""
8786 apr_addto_bugger="-DBONE7"
8787 for i in $apr_addto_bugger; do
8788 apr_addto_duplicate="0"
8789 for j in $CPPFLAGS; do
8790 if test "x$i" = "x$j"; then
8791 apr_addto_duplicate="1"
8795 if test $apr_addto_duplicate = "0"; then
8796 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8797 CPPFLAGS="$CPPFLAGS $i"
8805 if test "x$LDFLAGS" = "x"; then
8806 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L/boot/beos/system/lib\""
8807 LDFLAGS="-L/boot/beos/system/lib"
8809 apr_addto_bugger="-L/boot/beos/system/lib"
8810 for i in $apr_addto_bugger; do
8811 apr_addto_duplicate="0"
8812 for j in $LDFLAGS; do
8813 if test "x$i" = "x$j"; then
8814 apr_addto_duplicate="1"
8818 if test $apr_addto_duplicate = "0"; then
8819 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
8820 LDFLAGS="$LDFLAGS $i"
8826 if test "x$LIBS" = "x"; then
8827 test "x$silent" != "xyes" && echo " setting LIBS to \"-lbind -lsocket\""
8828 LIBS="-lbind -lsocket"
8830 apr_addto_bugger="-lbind -lsocket"
8831 for i in $apr_addto_bugger; do
8832 apr_addto_duplicate="0"
8834 if test "x$i" = "x$j"; then
8835 apr_addto_duplicate="1"
8839 if test $apr_addto_duplicate = "0"; then
8840 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8849 if test "x$CPPFLAGS" = "x"; then
8850 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSIGPROCMASK_SETS_THREAD_MASK\""
8851 CPPFLAGS="-DSIGPROCMASK_SETS_THREAD_MASK"
8853 apr_addto_bugger="-DSIGPROCMASK_SETS_THREAD_MASK"
8854 for i in $apr_addto_bugger; do
8855 apr_addto_duplicate="0"
8856 for j in $CPPFLAGS; do
8857 if test "x$i" = "x$j"; then
8858 apr_addto_duplicate="1"
8862 if test $apr_addto_duplicate = "0"; then
8863 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8864 CPPFLAGS="$CPPFLAGS $i"
8872 if test "x$CPPFLAGS" = "x"; then
8873 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DMPRAS\""
8874 CPPFLAGS="-DSVR4 -DMPRAS"
8876 apr_addto_bugger="-DSVR4 -DMPRAS"
8877 for i in $apr_addto_bugger; do
8878 apr_addto_duplicate="0"
8879 for j in $CPPFLAGS; do
8880 if test "x$i" = "x$j"; then
8881 apr_addto_duplicate="1"
8885 if test $apr_addto_duplicate = "0"; then
8886 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8887 CPPFLAGS="$CPPFLAGS $i"
8893 if test "x$LIBS" = "x"; then
8894 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\""
8895 LIBS="-lc -L/usr/ucblib -lucb"
8897 apr_addto_bugger="-lc -L/usr/ucblib -lucb"
8898 for i in $apr_addto_bugger; do
8899 apr_addto_duplicate="0"
8901 if test "x$i" = "x$j"; then
8902 apr_addto_duplicate="1"
8906 if test $apr_addto_duplicate = "0"; then
8907 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8916 if test "x$CPPFLAGS" = "x"; then
8917 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\""
8920 apr_addto_bugger="-DSVR4"
8921 for i in $apr_addto_bugger; do
8922 apr_addto_duplicate="0"
8923 for j in $CPPFLAGS; do
8924 if test "x$i" = "x$j"; then
8925 apr_addto_duplicate="1"
8929 if test $apr_addto_duplicate = "0"; then
8930 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8931 CPPFLAGS="$CPPFLAGS $i"
8937 if test "x$LIBS" = "x"; then
8938 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\""
8939 LIBS="-lc -L/usr/ucblib -lucb"
8941 apr_addto_bugger="-lc -L/usr/ucblib -lucb"
8942 for i in $apr_addto_bugger; do
8943 apr_addto_duplicate="0"
8945 if test "x$i" = "x$j"; then
8946 apr_addto_duplicate="1"
8950 if test $apr_addto_duplicate = "0"; then
8951 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
8960 if test "x$CPPFLAGS" = "x"; then
8961 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_CX_SX\""
8964 apr_addto_bugger="-D_CX_SX"
8965 for i in $apr_addto_bugger; do
8966 apr_addto_duplicate="0"
8967 for j in $CPPFLAGS; do
8968 if test "x$i" = "x$j"; then
8969 apr_addto_duplicate="1"
8973 if test $apr_addto_duplicate = "0"; then
8974 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
8975 CPPFLAGS="$CPPFLAGS $i"
8981 if test "x$CFLAGS" = "x"; then
8982 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Xa\""
8985 apr_addto_bugger="-Xa"
8986 for i in $apr_addto_bugger; do
8987 apr_addto_duplicate="0"
8988 for j in $CFLAGS; do
8989 if test "x$i" = "x$j"; then
8990 apr_addto_duplicate="1"
8994 if test $apr_addto_duplicate = "0"; then
8995 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
9004 if test "x$CPPFLAGS" = "x"; then
9005 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1\""
9006 CPPFLAGS="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
9008 apr_addto_bugger="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
9009 for i in $apr_addto_bugger; do
9010 apr_addto_duplicate="0"
9011 for j in $CPPFLAGS; do
9012 if test "x$i" = "x$j"; then
9013 apr_addto_duplicate="1"
9017 if test $apr_addto_duplicate = "0"; then
9018 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
9019 CPPFLAGS="$CPPFLAGS $i"
9027 if test -z "$apr_lock_method"; then
9028 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
9029 apr_lock_method="USE_SYSVSEM_SERIALIZE"
9033 if test -z "$apr_sysvsem_is_global"; then
9034 test "x$silent" != "xyes" && echo " setting apr_sysvsem_is_global to \"yes\""
9035 apr_sysvsem_is_global="yes"
9039 if test -z "$apr_gethostbyname_is_thread_safe"; then
9040 test "x$silent" != "xyes" && echo " setting apr_gethostbyname_is_thread_safe to \"yes\""
9041 apr_gethostbyname_is_thread_safe="yes"
9045 if test -z "$apr_gethostbyaddr_is_thread_safe"; then
9046 test "x$silent" != "xyes" && echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\""
9047 apr_gethostbyaddr_is_thread_safe="yes"
9051 if test -z "$apr_getservbyname_is_thread_safe"; then
9052 test "x$silent" != "xyes" && echo " setting apr_getservbyname_is_thread_safe to \"yes\""
9053 apr_getservbyname_is_thread_safe="yes"
9057 $as_echo "#define HAVE_ZOS_PTHREADS 1" >>confdefs.h
9060 if test "x$CPPFLAGS" = "x"; then
9061 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1\""
9062 CPPFLAGS="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
9064 apr_addto_bugger="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1"
9065 for i in $apr_addto_bugger; do
9066 apr_addto_duplicate="0"
9067 for j in $CPPFLAGS; do
9068 if test "x$i" = "x$j"; then
9069 apr_addto_duplicate="1"
9073 if test $apr_addto_duplicate = "0"; then
9074 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
9075 CPPFLAGS="$CPPFLAGS $i"
9083 if test -z "$apr_lock_method"; then
9084 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\""
9085 apr_lock_method="USE_SYSVSEM_SERIALIZE"
9089 if test -z "$apr_process_lock_is_global"; then
9090 test "x$silent" != "xyes" && echo " setting apr_process_lock_is_global to \"yes\""
9091 apr_process_lock_is_global="yes"
9095 if test -z "$apr_gethostbyname_is_thread_safe"; then
9096 test "x$silent" != "xyes" && echo " setting apr_gethostbyname_is_thread_safe to \"yes\""
9097 apr_gethostbyname_is_thread_safe="yes"
9101 if test -z "$apr_gethostbyaddr_is_thread_safe"; then
9102 test "x$silent" != "xyes" && echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\""
9103 apr_gethostbyaddr_is_thread_safe="yes"
9107 if test -z "$apr_getservbyname_is_thread_safe"; then
9108 test "x$silent" != "xyes" && echo " setting apr_getservbyname_is_thread_safe to \"yes\""
9109 apr_getservbyname_is_thread_safe="yes"
9115 if test "x$INTERNAL_CPPFLAGS" = "x"; then
9116 test "x$silent" != "xyes" && echo " setting INTERNAL_CPPFLAGS to \"-DBINPATH=$apr_builddir/test/.libs\""
9117 INTERNAL_CPPFLAGS="-DBINPATH=$apr_builddir/test/.libs"
9119 apr_addto_bugger="-DBINPATH=$apr_builddir/test/.libs"
9120 for i in $apr_addto_bugger; do
9121 apr_addto_duplicate="0"
9122 for j in $INTERNAL_CPPFLAGS; do
9123 if test "x$i" = "x$j"; then
9124 apr_addto_duplicate="1"
9128 if test $apr_addto_duplicate = "0"; then
9129 test "x$silent" != "xyes" && echo " adding \"$i\" to INTERNAL_CPPFLAGS"
9130 INTERNAL_CPPFLAGS="$INTERNAL_CPPFLAGS $i"
9136 if test "x$CPPFLAGS" = "x"; then
9137 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DWIN32 -D__MSVCRT__\""
9138 CPPFLAGS="-DWIN32 -D__MSVCRT__"
9140 apr_addto_bugger="-DWIN32 -D__MSVCRT__"
9141 for i in $apr_addto_bugger; do
9142 apr_addto_duplicate="0"
9143 for j in $CPPFLAGS; do
9144 if test "x$i" = "x$j"; then
9145 apr_addto_duplicate="1"
9149 if test $apr_addto_duplicate = "0"; then
9150 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
9151 CPPFLAGS="$CPPFLAGS $i"
9157 if test "x$LDFLAGS" = "x"; then
9158 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Wl,--enable-auto-import,--subsystem,console\""
9159 LDFLAGS="-Wl,--enable-auto-import,--subsystem,console"
9161 apr_addto_bugger="-Wl,--enable-auto-import,--subsystem,console"
9162 for i in $apr_addto_bugger; do
9163 apr_addto_duplicate="0"
9164 for j in $LDFLAGS; do
9165 if test "x$i" = "x$j"; then
9166 apr_addto_duplicate="1"
9170 if test $apr_addto_duplicate = "0"; then
9171 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
9172 LDFLAGS="$LDFLAGS $i"
9178 if test -z "$have_unicode_fs"; then
9179 test "x$silent" != "xyes" && echo " setting have_unicode_fs to \"1\""
9184 if test -z "$have_proc_invoked"; then
9185 test "x$silent" != "xyes" && echo " setting have_proc_invoked to \"1\""
9186 have_proc_invoked="1"
9190 if test -z "$apr_lock_method"; then
9191 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"win32\""
9192 apr_lock_method="win32"
9196 if test -z "$apr_process_lock_is_global"; then
9197 test "x$silent" != "xyes" && echo " setting apr_process_lock_is_global to \"yes\""
9198 apr_process_lock_is_global="yes"
9202 if test -z "$apr_cv_use_lfs64"; then
9203 test "x$silent" != "xyes" && echo " setting apr_cv_use_lfs64 to \"yes\""
9204 apr_cv_use_lfs64="yes"
9208 if test -z "$apr_cv_osuuid"; then
9209 test "x$silent" != "xyes" && echo " setting apr_cv_osuuid to \"yes\""
9214 if test -z "$apr_cv_tcp_nodelay_with_cork"; then
9215 test "x$silent" != "xyes" && echo " setting apr_cv_tcp_nodelay_with_cork to \"no\""
9216 apr_cv_tcp_nodelay_with_cork="no"
9220 if test -z "$apr_thread_func"; then
9221 test "x$silent" != "xyes" && echo " setting apr_thread_func to \"__stdcall\""
9222 apr_thread_func="__stdcall"
9226 if test -z "$ac_cv_o_nonblock_inherited"; then
9227 test "x$silent" != "xyes" && echo " setting ac_cv_o_nonblock_inherited to \"yes\""
9228 ac_cv_o_nonblock_inherited="yes"
9232 if test -z "$ac_cv_tcp_nodelay_inherited"; then
9233 test "x$silent" != "xyes" && echo " setting ac_cv_tcp_nodelay_inherited to \"yes\""
9234 ac_cv_tcp_nodelay_inherited="yes"
9238 if test -z "$ac_cv_file__dev_zero"; then
9239 test "x$silent" != "xyes" && echo " setting ac_cv_file__dev_zero to \"no\""
9240 ac_cv_file__dev_zero="no"
9244 if test -z "$ac_cv_func_setpgrp_void"; then
9245 test "x$silent" != "xyes" && echo " setting ac_cv_func_setpgrp_void to \"no\""
9246 ac_cv_func_setpgrp_void="no"
9250 if test -z "$ac_cv_func_mmap"; then
9251 test "x$silent" != "xyes" && echo " setting ac_cv_func_mmap to \"yes\""
9252 ac_cv_func_mmap="yes"
9256 if test -z "$ac_cv_define_sockaddr_in6"; then
9257 test "x$silent" != "xyes" && echo " setting ac_cv_define_sockaddr_in6 to \"yes\""
9258 ac_cv_define_sockaddr_in6="yes"
9262 if test -z "$ac_cv_working_getaddrinfo"; then
9263 test "x$silent" != "xyes" && echo " setting ac_cv_working_getaddrinfo to \"yes\""
9264 ac_cv_working_getaddrinfo="yes"
9268 if test -z "$ac_cv_working_getnameinfo"; then
9269 test "x$silent" != "xyes" && echo " setting ac_cv_working_getnameinfo to \"yes\""
9270 ac_cv_working_getnameinfo="yes"
9274 if test -z "$ac_cv_func_gai_strerror"; then
9275 test "x$silent" != "xyes" && echo " setting ac_cv_func_gai_strerror to \"yes\""
9276 ac_cv_func_gai_strerror="yes"
9282 if test -z "$apr_has_xthread_files"; then
9283 test "x$silent" != "xyes" && echo " setting apr_has_xthread_files to \"1\""
9284 apr_has_xthread_files="1"
9288 if test -z "$apr_has_user"; then
9289 test "x$silent" != "xyes" && echo " setting apr_has_user to \"1\""
9294 if test -z "$apr_procattr_user_set_requires_password"; then
9295 test "x$silent" != "xyes" && echo " setting apr_procattr_user_set_requires_password to \"1\""
9296 apr_procattr_user_set_requires_password="1"
9300 if test -z "$ac_cv_func_sendfile"; then
9301 test "x$silent" != "xyes" && echo " setting ac_cv_func_sendfile to \"yes\""
9302 ac_cv_func_sendfile="yes"
9308 if test -z "$apr_has_xthread_files"; then
9309 test "x$silent" != "xyes" && echo " setting apr_has_xthread_files to \"0\""
9310 apr_has_xthread_files="0"
9314 if test -z "$apr_has_user"; then
9315 test "x$silent" != "xyes" && echo " setting apr_has_user to \"0\""
9320 if test -z "$apr_procattr_user_set_requires_password"; then
9321 test "x$silent" != "xyes" && echo " setting apr_procattr_user_set_requires_password to \"0\""
9322 apr_procattr_user_set_requires_password="0"
9326 if test -z "$ac_cv_func_sendfile"; then
9327 test "x$silent" != "xyes" && echo " setting ac_cv_func_sendfile to \"no\""
9328 ac_cv_func_sendfile="no"
9339 DEFAULT_OSDIR="unix"
9340 echo "(Default will be ${DEFAULT_OSDIR})"
9342 apr_modules="file_io network_io threadproc misc locks time mmap shmem user memory atomic poll support random"
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9345 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9347 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9348 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9349 $as_echo_n "(cached) " >&6
9351 cat >conftest.make <<\_ACEOF
9354 @echo '@@@%%%=$(MAKE)=@@@%%%'
9356 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9357 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9359 eval ac_cv_prog_make_${ac_make}_set=yes;;
9361 eval ac_cv_prog_make_${ac_make}_set=no;;
9365 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9367 $as_echo "yes" >&6; }
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9371 $as_echo "no" >&6; }
9372 SET_MAKE="MAKE=${MAKE-make}"
9376 ac_cpp='$CPP $CPPFLAGS'
9377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9381 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9382 # On Suns, sometimes $CPP names a directory.
9383 if test -n "$CPP" && test -d "$CPP"; then
9386 if test -z "$CPP"; then
9387 if ${ac_cv_prog_CPP+:} false; then :
9388 $as_echo_n "(cached) " >&6
9390 # Double quotes because CPP needs to be expanded
9391 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9394 for ac_c_preproc_warn_flag in '' yes
9396 # Use a header file that comes with gcc, so configuring glibc
9397 # with a fresh cross-compiler works.
9398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9399 # <limits.h> exists even on freestanding compilers.
9400 # On the NeXT, cc -E runs the code through the compiler's parser,
9401 # not just through cpp. "Syntax error" is here to catch this case.
9402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403 /* end confdefs.h. */
9405 # include <limits.h>
9407 # include <assert.h>
9411 if ac_fn_c_try_cpp "$LINENO"; then :
9414 # Broken: fails on valid input.
9417 rm -f conftest.err conftest.i conftest.$ac_ext
9419 # OK, works on sane cases. Now check whether nonexistent headers
9420 # can be detected and how.
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h. */
9423 #include <ac_nonexistent.h>
9425 if ac_fn_c_try_cpp "$LINENO"; then :
9426 # Broken: success on invalid input.
9429 # Passes both tests.
9433 rm -f conftest.err conftest.i conftest.$ac_ext
9436 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9437 rm -f conftest.i conftest.err conftest.$ac_ext
9438 if $ac_preproc_ok; then :
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9451 $as_echo "$CPP" >&6; }
9453 for ac_c_preproc_warn_flag in '' yes
9455 # Use a header file that comes with gcc, so configuring glibc
9456 # with a fresh cross-compiler works.
9457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9458 # <limits.h> exists even on freestanding compilers.
9459 # On the NeXT, cc -E runs the code through the compiler's parser,
9460 # not just through cpp. "Syntax error" is here to catch this case.
9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9464 # include <limits.h>
9466 # include <assert.h>
9470 if ac_fn_c_try_cpp "$LINENO"; then :
9473 # Broken: fails on valid input.
9476 rm -f conftest.err conftest.i conftest.$ac_ext
9478 # OK, works on sane cases. Now check whether nonexistent headers
9479 # can be detected and how.
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9482 #include <ac_nonexistent.h>
9484 if ac_fn_c_try_cpp "$LINENO"; then :
9485 # Broken: success on invalid input.
9488 # Passes both tests.
9492 rm -f conftest.err conftest.i conftest.$ac_ext
9495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9496 rm -f conftest.i conftest.err conftest.$ac_ext
9497 if $ac_preproc_ok; then :
9500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9502 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9503 See \`config.log' for more details" "$LINENO" 5; }
9507 ac_cpp='$CPP $CPPFLAGS'
9508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9512 for ac_prog in gawk mawk nawk awk
9514 # Extract the first word of "$ac_prog", so it can be a program name with args.
9515 set dummy $ac_prog; ac_word=$2
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9517 $as_echo_n "checking for $ac_word... " >&6; }
9518 if ${ac_cv_prog_AWK+:} false; then :
9519 $as_echo_n "(cached) " >&6
9521 if test -n "$AWK"; then
9522 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528 test -z "$as_dir" && as_dir=.
9529 for ac_exec_ext in '' $ac_executable_extensions; do
9530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9531 ac_cv_prog_AWK="$ac_prog"
9532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9542 if test -n "$AWK"; then
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9544 $as_echo "$AWK" >&6; }
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9547 $as_echo "no" >&6; }
9551 test -n "$AWK" && break
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9555 $as_echo_n "checking whether ln -s works... " >&6; }
9557 if test "$LN_S" = "ln -s"; then
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9559 $as_echo "yes" >&6; }
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9562 $as_echo "no, using $LN_S" >&6; }
9565 if test -n "$ac_tool_prefix"; then
9566 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9567 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9569 $as_echo_n "checking for $ac_word... " >&6; }
9570 if ${ac_cv_prog_RANLIB+:} false; then :
9571 $as_echo_n "(cached) " >&6
9573 if test -n "$RANLIB"; then
9574 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580 test -z "$as_dir" && as_dir=.
9581 for ac_exec_ext in '' $ac_executable_extensions; do
9582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9583 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9593 RANLIB=$ac_cv_prog_RANLIB
9594 if test -n "$RANLIB"; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9596 $as_echo "$RANLIB" >&6; }
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599 $as_echo "no" >&6; }
9604 if test -z "$ac_cv_prog_RANLIB"; then
9605 ac_ct_RANLIB=$RANLIB
9606 # Extract the first word of "ranlib", so it can be a program name with args.
9607 set dummy ranlib; ac_word=$2
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9609 $as_echo_n "checking for $ac_word... " >&6; }
9610 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9611 $as_echo_n "(cached) " >&6
9613 if test -n "$ac_ct_RANLIB"; then
9614 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9620 test -z "$as_dir" && as_dir=.
9621 for ac_exec_ext in '' $ac_executable_extensions; do
9622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9623 ac_cv_prog_ac_ct_RANLIB="ranlib"
9624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9633 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9634 if test -n "$ac_ct_RANLIB"; then
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9636 $as_echo "$ac_ct_RANLIB" >&6; }
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9639 $as_echo "no" >&6; }
9642 if test "x$ac_ct_RANLIB" = x; then
9645 case $cross_compiling:$ac_tool_warned in
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9649 ac_tool_warned=yes ;;
9651 RANLIB=$ac_ct_RANLIB
9654 RANLIB="$ac_cv_prog_RANLIB"
9657 # Find a good install program. We prefer a C program (faster),
9658 # so one script is as good as another. But avoid the broken or
9659 # incompatible versions:
9660 # SysV /etc/install, /usr/sbin/install
9661 # SunOS /usr/etc/install
9662 # IRIX /sbin/install
9664 # AmigaOS /C/install, which installs bootblocks on floppy discs
9665 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9666 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9667 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9668 # OS/2's system install, which has a completely different semantic
9669 # ./install, which can be erroneously created by make from ./install.sh.
9670 # Reject install programs that cannot install multiple files.
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9672 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9673 if test -z "$INSTALL"; then
9674 if ${ac_cv_path_install+:} false; then :
9675 $as_echo_n "(cached) " >&6
9677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681 test -z "$as_dir" && as_dir=.
9682 # Account for people who put trailing slashes in PATH elements.
9683 case $as_dir/ in #((
9684 ./ | .// | /[cC]/* | \
9685 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9686 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9689 # OSF1 and SCO ODT 3.0 have their own names for install.
9690 # Don't use installbsd from OSF since it installs stuff as root
9692 for ac_prog in ginstall scoinst install; do
9693 for ac_exec_ext in '' $ac_executable_extensions; do
9694 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9695 if test $ac_prog = install &&
9696 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9697 # AIX install. It has an incompatible calling convention.
9699 elif test $ac_prog = install &&
9700 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9701 # program-specific install script used by HP pwplus--don't use.
9704 rm -rf conftest.one conftest.two conftest.dir
9705 echo one > conftest.one
9706 echo two > conftest.two
9708 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9709 test -s conftest.one && test -s conftest.two &&
9710 test -s conftest.dir/conftest.one &&
9711 test -s conftest.dir/conftest.two
9713 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9726 rm -rf conftest.one conftest.two conftest.dir
9729 if test "${ac_cv_path_install+set}" = set; then
9730 INSTALL=$ac_cv_path_install
9732 # As a last resort, use the slow shell script. Don't cache a
9733 # value for INSTALL within a source directory, because that will
9734 # break other packages using the cache if that directory is
9735 # removed, or if the value is a relative name.
9736 INSTALL=$ac_install_sh
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9740 $as_echo "$INSTALL" >&6; }
9742 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9743 # It thinks the first close brace ends the variable substitution.
9744 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9746 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9748 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9750 # Extract the first word of "rm", so it can be a program name with args.
9751 set dummy rm; ac_word=$2
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9753 $as_echo_n "checking for $ac_word... " >&6; }
9754 if ${ac_cv_prog_RM+:} false; then :
9755 $as_echo_n "(cached) " >&6
9757 if test -n "$RM"; then
9758 ac_cv_prog_RM="$RM" # Let the user override the test.
9760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9764 test -z "$as_dir" && as_dir=.
9765 for ac_exec_ext in '' $ac_executable_extensions; do
9766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9778 if test -n "$RM"; then
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9780 $as_echo "$RM" >&6; }
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9783 $as_echo "no" >&6; }
9787 # Extract the first word of "as", so it can be a program name with args.
9788 set dummy as; ac_word=$2
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9790 $as_echo_n "checking for $ac_word... " >&6; }
9791 if ${ac_cv_prog_AS+:} false; then :
9792 $as_echo_n "(cached) " >&6
9794 if test -n "$AS"; then
9795 ac_cv_prog_AS="$AS" # Let the user override the test.
9797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9801 test -z "$as_dir" && as_dir=.
9802 for ac_exec_ext in '' $ac_executable_extensions; do
9803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9815 if test -n "$AS"; then
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9817 $as_echo "$AS" >&6; }
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9820 $as_echo "no" >&6; }
9824 # Extract the first word of "cpp", so it can be a program name with args.
9825 set dummy cpp; ac_word=$2
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9827 $as_echo_n "checking for $ac_word... " >&6; }
9828 if ${ac_cv_prog_ASCPP+:} false; then :
9829 $as_echo_n "(cached) " >&6
9831 if test -n "$ASCPP"; then
9832 ac_cv_prog_ASCPP="$ASCPP" # Let the user override the test.
9834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838 test -z "$as_dir" && as_dir=.
9839 for ac_exec_ext in '' $ac_executable_extensions; do
9840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9841 ac_cv_prog_ASCPP="cpp"
9842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9851 ASCPP=$ac_cv_prog_ASCPP
9852 if test -n "$ASCPP"; then
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCPP" >&5
9854 $as_echo "$ASCPP" >&6; }
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857 $as_echo "no" >&6; }
9861 if test -n "$ac_tool_prefix"; then
9862 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9863 set dummy ${ac_tool_prefix}ar; ac_word=$2
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9865 $as_echo_n "checking for $ac_word... " >&6; }
9866 if ${ac_cv_prog_AR+:} false; then :
9867 $as_echo_n "(cached) " >&6
9869 if test -n "$AR"; then
9870 ac_cv_prog_AR="$AR" # Let the user override the test.
9872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876 test -z "$as_dir" && as_dir=.
9877 for ac_exec_ext in '' $ac_executable_extensions; do
9878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9879 ac_cv_prog_AR="${ac_tool_prefix}ar"
9880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9890 if test -n "$AR"; then
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9892 $as_echo "$AR" >&6; }
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9895 $as_echo "no" >&6; }
9900 if test -z "$ac_cv_prog_AR"; then
9902 # Extract the first word of "ar", so it can be a program name with args.
9903 set dummy ar; ac_word=$2
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9905 $as_echo_n "checking for $ac_word... " >&6; }
9906 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9907 $as_echo_n "(cached) " >&6
9909 if test -n "$ac_ct_AR"; then
9910 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9916 test -z "$as_dir" && as_dir=.
9917 for ac_exec_ext in '' $ac_executable_extensions; do
9918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9919 ac_cv_prog_ac_ct_AR="ar"
9920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9929 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9930 if test -n "$ac_ct_AR"; then
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9932 $as_echo "$ac_ct_AR" >&6; }
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935 $as_echo "no" >&6; }
9938 if test "x$ac_ct_AR" = x; then
9941 case $cross_compiling:$ac_tool_warned in
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9945 ac_tool_warned=yes ;;
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
9958 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
9959 if ${ac_cv_path_GREP+:} false; then :
9960 $as_echo_n "(cached) " >&6
9962 if test -z "$GREP"; then
9963 ac_path_GREP_found=false
9964 # Loop through the user's path and test for each of PROGNAME-LIST
9965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9969 test -z "$as_dir" && as_dir=.
9970 for ac_prog in grep ggrep; do
9971 for ac_exec_ext in '' $ac_executable_extensions; do
9972 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
9973 as_fn_executable_p "$ac_path_GREP" || continue
9974 # Check for GNU ac_path_GREP and select it if it is found.
9975 # Check for GNU $ac_path_GREP
9976 case `"$ac_path_GREP" --version 2>&1` in
9978 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
9981 $as_echo_n 0123456789 >"conftest.in"
9984 cat "conftest.in" "conftest.in" >"conftest.tmp"
9985 mv "conftest.tmp" "conftest.in"
9986 cp "conftest.in" "conftest.nl"
9987 $as_echo 'GREP' >> "conftest.nl"
9988 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9990 as_fn_arith $ac_count + 1 && ac_count=$as_val
9991 if test $ac_count -gt ${ac_path_GREP_max-0}; then
9992 # Best one so far, save it but keep looking for a better one
9993 ac_cv_path_GREP="$ac_path_GREP"
9994 ac_path_GREP_max=$ac_count
9996 # 10*(2^10) chars as input seems more than enough
9997 test $ac_count -gt 10 && break
9999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10002 $ac_path_GREP_found && break 3
10007 if test -z "$ac_cv_path_GREP"; then
10008 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10011 ac_cv_path_GREP=$GREP
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
10016 $as_echo "$ac_cv_path_GREP" >&6; }
10017 GREP="$ac_cv_path_GREP"
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
10021 $as_echo_n "checking for egrep... " >&6; }
10022 if ${ac_cv_path_EGREP+:} false; then :
10023 $as_echo_n "(cached) " >&6
10025 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10026 then ac_cv_path_EGREP="$GREP -E"
10028 if test -z "$EGREP"; then
10029 ac_path_EGREP_found=false
10030 # Loop through the user's path and test for each of PROGNAME-LIST
10031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10032 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10035 test -z "$as_dir" && as_dir=.
10036 for ac_prog in egrep; do
10037 for ac_exec_ext in '' $ac_executable_extensions; do
10038 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10039 as_fn_executable_p "$ac_path_EGREP" || continue
10040 # Check for GNU ac_path_EGREP and select it if it is found.
10041 # Check for GNU $ac_path_EGREP
10042 case `"$ac_path_EGREP" --version 2>&1` in
10044 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10047 $as_echo_n 0123456789 >"conftest.in"
10050 cat "conftest.in" "conftest.in" >"conftest.tmp"
10051 mv "conftest.tmp" "conftest.in"
10052 cp "conftest.in" "conftest.nl"
10053 $as_echo 'EGREP' >> "conftest.nl"
10054 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10056 as_fn_arith $ac_count + 1 && ac_count=$as_val
10057 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10058 # Best one so far, save it but keep looking for a better one
10059 ac_cv_path_EGREP="$ac_path_EGREP"
10060 ac_path_EGREP_max=$ac_count
10062 # 10*(2^10) chars as input seems more than enough
10063 test $ac_count -gt 10 && break
10065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10068 $ac_path_EGREP_found && break 3
10073 if test -z "$ac_cv_path_EGREP"; then
10074 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10077 ac_cv_path_EGREP=$EGREP
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
10083 $as_echo "$ac_cv_path_EGREP" >&6; }
10084 EGREP="$ac_cv_path_EGREP"
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10088 $as_echo_n "checking for ANSI C header files... " >&6; }
10089 if ${ac_cv_header_stdc+:} false; then :
10090 $as_echo_n "(cached) " >&6
10092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093 /* end confdefs.h. */
10094 #include <stdlib.h>
10095 #include <stdarg.h>
10096 #include <string.h>
10107 if ac_fn_c_try_compile "$LINENO"; then :
10108 ac_cv_header_stdc=yes
10110 ac_cv_header_stdc=no
10112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10114 if test $ac_cv_header_stdc = yes; then
10115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10118 #include <string.h>
10121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10122 $EGREP "memchr" >/dev/null 2>&1; then :
10125 ac_cv_header_stdc=no
10131 if test $ac_cv_header_stdc = yes; then
10132 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134 /* end confdefs.h. */
10135 #include <stdlib.h>
10138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10139 $EGREP "free" >/dev/null 2>&1; then :
10142 ac_cv_header_stdc=no
10148 if test $ac_cv_header_stdc = yes; then
10149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10150 if test "$cross_compiling" = yes; then :
10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154 /* end confdefs.h. */
10156 #include <stdlib.h>
10157 #if ((' ' & 0x0FF) == 0x020)
10158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10161 # define ISLOWER(c) \
10162 (('a' <= (c) && (c) <= 'i') \
10163 || ('j' <= (c) && (c) <= 'r') \
10164 || ('s' <= (c) && (c) <= 'z'))
10165 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10168 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10173 for (i = 0; i < 256; i++)
10174 if (XOR (islower (i), ISLOWER (i))
10175 || toupper (i) != TOUPPER (i))
10180 if ac_fn_c_try_run "$LINENO"; then :
10183 ac_cv_header_stdc=no
10185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10186 conftest.$ac_objext conftest.beam conftest.$ac_ext
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10192 $as_echo "$ac_cv_header_stdc" >&6; }
10193 if test $ac_cv_header_stdc = yes; then
10195 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10199 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10200 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10201 inttypes.h stdint.h unistd.h
10203 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10204 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10206 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10207 cat >>confdefs.h <<_ACEOF
10208 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10217 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
10218 if test "x$ac_cv_header_minix_config_h" = xyes; then :
10225 if test "$MINIX" = yes; then
10227 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
10230 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
10233 $as_echo "#define _MINIX 1" >>confdefs.h
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
10239 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
10240 if ${ac_cv_safe_to_define___extensions__+:} false; then :
10241 $as_echo_n "(cached) " >&6
10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h. */
10246 # define __EXTENSIONS__ 1
10247 $ac_includes_default
10256 if ac_fn_c_try_compile "$LINENO"; then :
10257 ac_cv_safe_to_define___extensions__=yes
10259 ac_cv_safe_to_define___extensions__=no
10261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
10264 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
10265 test $ac_cv_safe_to_define___extensions__ = yes &&
10266 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
10268 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
10270 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
10272 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
10274 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
10280 $as_echo_n "checking for library containing strerror... " >&6; }
10281 if ${ac_cv_search_strerror+:} false; then :
10282 $as_echo_n "(cached) " >&6
10284 ac_func_search_save_LIBS=$LIBS
10285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10286 /* end confdefs.h. */
10288 /* Override any GCC internal prototype to avoid an error.
10289 Use char because int might match the return type of a GCC
10290 builtin and then its argument prototype would still apply. */
10298 return strerror ();
10303 for ac_lib in '' cposix; do
10304 if test -z "$ac_lib"; then
10305 ac_res="none required"
10308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10310 if ac_fn_c_try_link "$LINENO"; then :
10311 ac_cv_search_strerror=$ac_res
10313 rm -f core conftest.err conftest.$ac_objext \
10315 if ${ac_cv_search_strerror+:} false; then :
10319 if ${ac_cv_search_strerror+:} false; then :
10322 ac_cv_search_strerror=no
10324 rm conftest.$ac_ext
10325 LIBS=$ac_func_search_save_LIBS
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
10328 $as_echo "$ac_cv_search_strerror" >&6; }
10329 ac_res=$ac_cv_search_strerror
10330 if test "$ac_res" != no; then :
10331 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5
10337 $as_echo_n "checking whether system uses EBCDIC... " >&6; }
10338 if ${ac_cv_ebcdic+:} false; then :
10339 $as_echo_n "(cached) " >&6
10342 if test "$cross_compiling" = yes; then :
10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h. */
10351 return (unsigned char)'A' != (unsigned char)0xC1;
10355 if ac_fn_c_try_run "$LINENO"; then :
10364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10365 conftest.$ac_objext conftest.beam conftest.$ac_ext
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5
10370 $as_echo "$ac_cv_ebcdic" >&6; }
10371 if test "$ac_cv_ebcdic" = "yes"; then
10372 apr_charset_ebcdic=1
10374 apr_charset_ebcdic=0
10379 APR_LIBNAME="apr${libsuffix}"
10382 echo "performing libtool configuration..."
10384 # Check whether --enable-experimental-libtool was given.
10385 if test "${enable_experimental_libtool+set}" = set; then :
10386 enableval=$enable_experimental_libtool; experimental_libtool=$enableval
10388 experimental_libtool=no
10392 if test "x$Xsed" = "x"; then
10393 Xsed="$SED -e 1s/^X//"
10398 # Use a custom-made libtool replacement
10399 echo "using aplibtool"
10400 LIBTOOL="$srcdir/build/aplibtool"
10401 gcc $CFLAGS $CPPFLAGS -o $LIBTOOL.exe $LIBTOOL.c
10404 if test "x$LTFLAGS" = "x"; then
10407 if test "$experimental_libtool" = "yes"; then
10408 # Use a custom-made libtool replacement
10409 echo "using jlibtool"
10410 LIBTOOL="$apr_builddir/libtool"
10411 LIBTOOL_SRC="$apr_srcdir/build/jlibtool.c"
10412 $CC $CFLAGS $CPPFLAGS -o $LIBTOOL $LIBTOOL_SRC
10413 eval `$apr_builddir/libtool --config | grep "^shlibpath_var=[A-Z_]*$"`
10414 if test "x$shlibpath_var" = "x"; then
10415 shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
10418 enable_win32_dll=yes
10421 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10422 if test -n "$ac_tool_prefix"; then
10423 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10424 set dummy ${ac_tool_prefix}as; ac_word=$2
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10426 $as_echo_n "checking for $ac_word... " >&6; }
10427 if ${ac_cv_prog_AS+:} false; then :
10428 $as_echo_n "(cached) " >&6
10430 if test -n "$AS"; then
10431 ac_cv_prog_AS="$AS" # Let the user override the test.
10433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10434 for as_dir in $PATH
10437 test -z "$as_dir" && as_dir=.
10438 for ac_exec_ext in '' $ac_executable_extensions; do
10439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10440 ac_cv_prog_AS="${ac_tool_prefix}as"
10441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10451 if test -n "$AS"; then
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10453 $as_echo "$AS" >&6; }
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10456 $as_echo "no" >&6; }
10461 if test -z "$ac_cv_prog_AS"; then
10463 # Extract the first word of "as", so it can be a program name with args.
10464 set dummy as; ac_word=$2
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10466 $as_echo_n "checking for $ac_word... " >&6; }
10467 if ${ac_cv_prog_ac_ct_AS+:} false; then :
10468 $as_echo_n "(cached) " >&6
10470 if test -n "$ac_ct_AS"; then
10471 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474 for as_dir in $PATH
10477 test -z "$as_dir" && as_dir=.
10478 for ac_exec_ext in '' $ac_executable_extensions; do
10479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10480 ac_cv_prog_ac_ct_AS="as"
10481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10490 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10491 if test -n "$ac_ct_AS"; then
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10493 $as_echo "$ac_ct_AS" >&6; }
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496 $as_echo "no" >&6; }
10499 if test "x$ac_ct_AS" = x; then
10502 case $cross_compiling:$ac_tool_warned in
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10506 ac_tool_warned=yes ;;
10511 AS="$ac_cv_prog_AS"
10514 if test -n "$ac_tool_prefix"; then
10515 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10516 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10518 $as_echo_n "checking for $ac_word... " >&6; }
10519 if ${ac_cv_prog_DLLTOOL+:} false; then :
10520 $as_echo_n "(cached) " >&6
10522 if test -n "$DLLTOOL"; then
10523 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10526 for as_dir in $PATH
10529 test -z "$as_dir" && as_dir=.
10530 for ac_exec_ext in '' $ac_executable_extensions; do
10531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10532 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10542 DLLTOOL=$ac_cv_prog_DLLTOOL
10543 if test -n "$DLLTOOL"; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10545 $as_echo "$DLLTOOL" >&6; }
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548 $as_echo "no" >&6; }
10553 if test -z "$ac_cv_prog_DLLTOOL"; then
10554 ac_ct_DLLTOOL=$DLLTOOL
10555 # Extract the first word of "dlltool", so it can be a program name with args.
10556 set dummy dlltool; ac_word=$2
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10558 $as_echo_n "checking for $ac_word... " >&6; }
10559 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10560 $as_echo_n "(cached) " >&6
10562 if test -n "$ac_ct_DLLTOOL"; then
10563 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10566 for as_dir in $PATH
10569 test -z "$as_dir" && as_dir=.
10570 for ac_exec_ext in '' $ac_executable_extensions; do
10571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10572 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10582 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10583 if test -n "$ac_ct_DLLTOOL"; then
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10585 $as_echo "$ac_ct_DLLTOOL" >&6; }
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10588 $as_echo "no" >&6; }
10591 if test "x$ac_ct_DLLTOOL" = x; then
10594 case $cross_compiling:$ac_tool_warned in
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10598 ac_tool_warned=yes ;;
10600 DLLTOOL=$ac_ct_DLLTOOL
10603 DLLTOOL="$ac_cv_prog_DLLTOOL"
10606 if test -n "$ac_tool_prefix"; then
10607 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10608 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10610 $as_echo_n "checking for $ac_word... " >&6; }
10611 if ${ac_cv_prog_OBJDUMP+:} false; then :
10612 $as_echo_n "(cached) " >&6
10614 if test -n "$OBJDUMP"; then
10615 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10618 for as_dir in $PATH
10621 test -z "$as_dir" && as_dir=.
10622 for ac_exec_ext in '' $ac_executable_extensions; do
10623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10624 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10634 OBJDUMP=$ac_cv_prog_OBJDUMP
10635 if test -n "$OBJDUMP"; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10637 $as_echo "$OBJDUMP" >&6; }
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640 $as_echo "no" >&6; }
10645 if test -z "$ac_cv_prog_OBJDUMP"; then
10646 ac_ct_OBJDUMP=$OBJDUMP
10647 # Extract the first word of "objdump", so it can be a program name with args.
10648 set dummy objdump; ac_word=$2
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10650 $as_echo_n "checking for $ac_word... " >&6; }
10651 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10652 $as_echo_n "(cached) " >&6
10654 if test -n "$ac_ct_OBJDUMP"; then
10655 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10658 for as_dir in $PATH
10661 test -z "$as_dir" && as_dir=.
10662 for ac_exec_ext in '' $ac_executable_extensions; do
10663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10664 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10674 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10675 if test -n "$ac_ct_OBJDUMP"; then
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10677 $as_echo "$ac_ct_OBJDUMP" >&6; }
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10680 $as_echo "no" >&6; }
10683 if test "x$ac_ct_OBJDUMP" = x; then
10686 case $cross_compiling:$ac_tool_warned in
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10690 ac_tool_warned=yes ;;
10692 OBJDUMP=$ac_ct_OBJDUMP
10695 OBJDUMP="$ac_cv_prog_OBJDUMP"
10701 test -z "$AS" && AS=as
10707 test -z "$DLLTOOL" && DLLTOOL=dlltool
10713 test -z "$OBJDUMP" && OBJDUMP=objdump
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10724 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10729 macro_version='2.4.6'
10730 macro_revision='2.4.6'
10744 ltmain=$ac_aux_dir/ltmain.sh
10746 # Backslashify metacharacters that are still active within
10747 # double-quoted strings.
10748 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10750 # Same as above, but do not quote variable references.
10751 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10753 # Sed substitution to delay expansion of an escaped shell variable in a
10754 # double_quote_subst'ed string.
10755 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10757 # Sed substitution to delay expansion of an escaped single quote.
10758 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10760 # Sed substitution to avoid accidental globbing in evaled expressions
10761 no_glob_subst='s/\*/\\\*/g'
10763 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10764 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10765 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10768 $as_echo_n "checking how to print strings... " >&6; }
10769 # Test print first, because it will be a builtin if present.
10770 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10771 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10773 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10776 # Use this function as a fallback that always works.
10777 func_fallback_echo ()
10779 eval 'cat <<_LTECHO_EOF
10783 ECHO='func_fallback_echo'
10786 # func_echo_all arg...
10787 # Invoke $ECHO with all args, space-separated.
10794 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10795 $as_echo "printf" >&6; } ;;
10796 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10797 $as_echo "print -r" >&6; } ;;
10798 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10799 $as_echo "cat" >&6; } ;;
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10816 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10817 if ${ac_cv_path_SED+:} false; then :
10818 $as_echo_n "(cached) " >&6
10820 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10821 for ac_i in 1 2 3 4 5 6 7; do
10822 ac_script="$ac_script$as_nl$ac_script"
10824 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10825 { ac_script=; unset ac_script;}
10826 if test -z "$SED"; then
10827 ac_path_SED_found=false
10828 # Loop through the user's path and test for each of PROGNAME-LIST
10829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10830 for as_dir in $PATH
10833 test -z "$as_dir" && as_dir=.
10834 for ac_prog in sed gsed; do
10835 for ac_exec_ext in '' $ac_executable_extensions; do
10836 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10837 as_fn_executable_p "$ac_path_SED" || continue
10838 # Check for GNU ac_path_SED and select it if it is found.
10839 # Check for GNU $ac_path_SED
10840 case `"$ac_path_SED" --version 2>&1` in
10842 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10845 $as_echo_n 0123456789 >"conftest.in"
10848 cat "conftest.in" "conftest.in" >"conftest.tmp"
10849 mv "conftest.tmp" "conftest.in"
10850 cp "conftest.in" "conftest.nl"
10851 $as_echo '' >> "conftest.nl"
10852 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10853 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10854 as_fn_arith $ac_count + 1 && ac_count=$as_val
10855 if test $ac_count -gt ${ac_path_SED_max-0}; then
10856 # Best one so far, save it but keep looking for a better one
10857 ac_cv_path_SED="$ac_path_SED"
10858 ac_path_SED_max=$ac_count
10860 # 10*(2^10) chars as input seems more than enough
10861 test $ac_count -gt 10 && break
10863 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10866 $ac_path_SED_found && break 3
10871 if test -z "$ac_cv_path_SED"; then
10872 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10875 ac_cv_path_SED=$SED
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10880 $as_echo "$ac_cv_path_SED" >&6; }
10881 SED="$ac_cv_path_SED"
10884 test -z "$SED" && SED=sed
10885 Xsed="$SED -e 1s/^X//"
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10898 $as_echo_n "checking for fgrep... " >&6; }
10899 if ${ac_cv_path_FGREP+:} false; then :
10900 $as_echo_n "(cached) " >&6
10902 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10903 then ac_cv_path_FGREP="$GREP -F"
10905 if test -z "$FGREP"; then
10906 ac_path_FGREP_found=false
10907 # Loop through the user's path and test for each of PROGNAME-LIST
10908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10909 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10912 test -z "$as_dir" && as_dir=.
10913 for ac_prog in fgrep; do
10914 for ac_exec_ext in '' $ac_executable_extensions; do
10915 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10916 as_fn_executable_p "$ac_path_FGREP" || continue
10917 # Check for GNU ac_path_FGREP and select it if it is found.
10918 # Check for GNU $ac_path_FGREP
10919 case `"$ac_path_FGREP" --version 2>&1` in
10921 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10924 $as_echo_n 0123456789 >"conftest.in"
10927 cat "conftest.in" "conftest.in" >"conftest.tmp"
10928 mv "conftest.tmp" "conftest.in"
10929 cp "conftest.in" "conftest.nl"
10930 $as_echo 'FGREP' >> "conftest.nl"
10931 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10932 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10933 as_fn_arith $ac_count + 1 && ac_count=$as_val
10934 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10935 # Best one so far, save it but keep looking for a better one
10936 ac_cv_path_FGREP="$ac_path_FGREP"
10937 ac_path_FGREP_max=$ac_count
10939 # 10*(2^10) chars as input seems more than enough
10940 test $ac_count -gt 10 && break
10942 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10945 $ac_path_FGREP_found && break 3
10950 if test -z "$ac_cv_path_FGREP"; then
10951 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10954 ac_cv_path_FGREP=$FGREP
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10960 $as_echo "$ac_cv_path_FGREP" >&6; }
10961 FGREP="$ac_cv_path_FGREP"
10964 test -z "$GREP" && GREP=grep
10984 # Check whether --with-gnu-ld was given.
10985 if test "${with_gnu_ld+set}" = set; then :
10986 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
10992 if test yes = "$GCC"; then
10993 # Check if gcc -print-prog-name=ld gives a path.
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10995 $as_echo_n "checking for ld used by $CC... " >&6; }
10998 # gcc leaves a trailing carriage return, which upsets mingw
10999 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11001 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11004 # Accept absolute paths.
11006 re_direlt='/[^/][^/]*/\.\./'
11007 # Canonicalize the pathname of ld
11008 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11009 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11010 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11012 test -z "$LD" && LD=$ac_prog
11015 # If it fails, then pretend we aren't using GCC.
11019 # If it is relative, then search for the first ld in PATH.
11020 with_gnu_ld=unknown
11023 elif test yes = "$with_gnu_ld"; then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11025 $as_echo_n "checking for GNU ld... " >&6; }
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11028 $as_echo_n "checking for non-GNU ld... " >&6; }
11030 if ${lt_cv_path_LD+:} false; then :
11031 $as_echo_n "(cached) " >&6
11033 if test -z "$LD"; then
11034 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11035 for ac_dir in $PATH; do
11037 test -z "$ac_dir" && ac_dir=.
11038 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11039 lt_cv_path_LD=$ac_dir/$ac_prog
11040 # Check to see if the program is GNU ld. I'd rather use --version,
11041 # but apparently some variants of GNU ld only accept -v.
11042 # Break only if it was the GNU/non-GNU ld that we prefer.
11043 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11044 *GNU* | *'with BFD'*)
11045 test no != "$with_gnu_ld" && break
11048 test yes != "$with_gnu_ld" && break
11055 lt_cv_path_LD=$LD # Let the user override the test with a path.
11060 if test -n "$LD"; then
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11062 $as_echo "$LD" >&6; }
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065 $as_echo "no" >&6; }
11067 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11069 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11070 if ${lt_cv_prog_gnu_ld+:} false; then :
11071 $as_echo_n "(cached) " >&6
11073 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11074 case `$LD -v 2>&1 </dev/null` in
11075 *GNU* | *'with BFD'*)
11076 lt_cv_prog_gnu_ld=yes
11079 lt_cv_prog_gnu_ld=no
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11084 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11085 with_gnu_ld=$lt_cv_prog_gnu_ld
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11096 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11097 if ${lt_cv_path_NM+:} false; then :
11098 $as_echo_n "(cached) " >&6
11100 if test -n "$NM"; then
11101 # Let the user override the test.
11104 lt_nm_to_check=${ac_tool_prefix}nm
11105 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11106 lt_nm_to_check="$lt_nm_to_check nm"
11108 for lt_tmp_nm in $lt_nm_to_check; do
11109 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11110 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11112 test -z "$ac_dir" && ac_dir=.
11113 tmp_nm=$ac_dir/$lt_tmp_nm
11114 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11115 # Check to see if the nm accepts a BSD-compat flag.
11116 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11117 # nm: unknown option "B" ignored
11118 # Tru64's nm complains that /dev/null is an invalid object file
11119 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11121 mingw*) lt_bad_file=conftest.nm/nofile ;;
11122 *) lt_bad_file=/dev/null ;;
11124 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11125 *$lt_bad_file* | *'Invalid file or object type'*)
11126 lt_cv_path_NM="$tmp_nm -B"
11130 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11132 lt_cv_path_NM="$tmp_nm -p"
11136 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11137 continue # so that we can try to find one that supports BSD flags
11146 : ${lt_cv_path_NM=no}
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11150 $as_echo "$lt_cv_path_NM" >&6; }
11151 if test no != "$lt_cv_path_NM"; then
11154 # Didn't find any BSD compatible name lister, look for dumpbin.
11155 if test -n "$DUMPBIN"; then :
11156 # Let the user override the test.
11158 if test -n "$ac_tool_prefix"; then
11159 for ac_prog in dumpbin "link -dump"
11161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11162 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11164 $as_echo_n "checking for $ac_word... " >&6; }
11165 if ${ac_cv_prog_DUMPBIN+:} false; then :
11166 $as_echo_n "(cached) " >&6
11168 if test -n "$DUMPBIN"; then
11169 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11172 for as_dir in $PATH
11175 test -z "$as_dir" && as_dir=.
11176 for ac_exec_ext in '' $ac_executable_extensions; do
11177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11178 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11188 DUMPBIN=$ac_cv_prog_DUMPBIN
11189 if test -n "$DUMPBIN"; then
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11191 $as_echo "$DUMPBIN" >&6; }
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194 $as_echo "no" >&6; }
11198 test -n "$DUMPBIN" && break
11201 if test -z "$DUMPBIN"; then
11202 ac_ct_DUMPBIN=$DUMPBIN
11203 for ac_prog in dumpbin "link -dump"
11205 # Extract the first word of "$ac_prog", so it can be a program name with args.
11206 set dummy $ac_prog; ac_word=$2
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11208 $as_echo_n "checking for $ac_word... " >&6; }
11209 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11210 $as_echo_n "(cached) " >&6
11212 if test -n "$ac_ct_DUMPBIN"; then
11213 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11216 for as_dir in $PATH
11219 test -z "$as_dir" && as_dir=.
11220 for ac_exec_ext in '' $ac_executable_extensions; do
11221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11222 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11232 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11233 if test -n "$ac_ct_DUMPBIN"; then
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11235 $as_echo "$ac_ct_DUMPBIN" >&6; }
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238 $as_echo "no" >&6; }
11242 test -n "$ac_ct_DUMPBIN" && break
11245 if test "x$ac_ct_DUMPBIN" = x; then
11248 case $cross_compiling:$ac_tool_warned in
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11252 ac_tool_warned=yes ;;
11254 DUMPBIN=$ac_ct_DUMPBIN
11258 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11260 DUMPBIN="$DUMPBIN -symbols -headers"
11268 if test : != "$DUMPBIN"; then
11272 test -z "$NM" && NM=nm
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11280 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11281 if ${lt_cv_nm_interface+:} false; then :
11282 $as_echo_n "(cached) " >&6
11284 lt_cv_nm_interface="BSD nm"
11285 echo "int some_variable = 0;" > conftest.$ac_ext
11286 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11287 (eval "$ac_compile" 2>conftest.err)
11288 cat conftest.err >&5
11289 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11290 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11291 cat conftest.err >&5
11292 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11293 cat conftest.out >&5
11294 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11295 lt_cv_nm_interface="MS dumpbin"
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11300 $as_echo "$lt_cv_nm_interface" >&6; }
11302 # find the maximum length of command line arguments
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11304 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11305 if ${lt_cv_sys_max_cmd_len+:} false; then :
11306 $as_echo_n "(cached) " >&6
11313 # On DJGPP, this test can blow up pretty badly due to problems in libc
11314 # (any single argument exceeding 2000 bytes causes a buffer overrun
11315 # during glob expansion). Even if it were fixed, the result of this
11316 # check would be larger than it should be.
11317 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11321 # Under GNU Hurd, this test is not required because there is
11322 # no limit to the length of command line arguments.
11323 # Libtool will interpret -1 as no limit whatsoever
11324 lt_cv_sys_max_cmd_len=-1;
11327 cygwin* | mingw* | cegcc*)
11328 # On Win9x/ME, this test blows up -- it succeeds, but takes
11329 # about 5 minutes as the teststring grows exponentially.
11330 # Worse, since 9x/ME are not pre-emptively multitasking,
11331 # you end up with a "frozen" computer, even though with patience
11332 # the test eventually succeeds (with a max line length of 256k).
11333 # Instead, let's just punt: use the minimum linelength reported by
11334 # all of the supported platforms: 8192 (on NT/2K/XP).
11335 lt_cv_sys_max_cmd_len=8192;
11339 # On MiNT this can take a long time and run out of memory.
11340 lt_cv_sys_max_cmd_len=8192;
11344 # On AmigaOS with pdksh, this test takes hours, literally.
11345 # So we just punt and use a minimum line length of 8192.
11346 lt_cv_sys_max_cmd_len=8192;
11349 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11350 # This has been around since 386BSD, at least. Likely further.
11351 if test -x /sbin/sysctl; then
11352 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11353 elif test -x /usr/sbin/sysctl; then
11354 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11356 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11358 # And add a safety zone
11359 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11364 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11365 lt_cv_sys_max_cmd_len=196608
11369 # The test takes a long time on OS/2.
11370 lt_cv_sys_max_cmd_len=8192
11374 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11375 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11376 # nice to cause kernel panics so lets avoid the loop below.
11377 # First set a reasonable default.
11378 lt_cv_sys_max_cmd_len=16384
11380 if test -x /sbin/sysconfig; then
11381 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11382 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11387 lt_cv_sys_max_cmd_len=102400
11389 sysv5* | sco5v6* | sysv4.2uw2*)
11390 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11391 if test -n "$kargmax"; then
11392 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11394 lt_cv_sys_max_cmd_len=32768
11398 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11399 if test -n "$lt_cv_sys_max_cmd_len" && \
11400 test undefined != "$lt_cv_sys_max_cmd_len"; then
11401 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11404 # Make teststring a little bigger before we do anything with it.
11405 # a 1K string should be a reasonable start.
11406 for i in 1 2 3 4 5 6 7 8; do
11407 teststring=$teststring$teststring
11409 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11410 # If test is not a shell built-in, we'll probably end up computing a
11411 # maximum length that is only half of the actual maximum length, but
11413 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11414 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11415 test 17 != "$i" # 1/2 MB should be enough
11418 teststring=$teststring$teststring
11420 # Only check the string length outside the loop.
11421 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11423 # Add a significant safety factor because C++ compilers can tack on
11424 # massive amounts of additional arguments before passing them to the
11425 # linker. It appears as though 1/2 is a usable value.
11426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11433 if test -n "$lt_cv_sys_max_cmd_len"; then
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11435 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11438 $as_echo "none" >&6; }
11440 max_cmd_len=$lt_cv_sys_max_cmd_len
11451 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11461 # test EBCDIC or ASCII
11462 case `echo X|tr X '\101'` in
11463 A) # ASCII based system
11464 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11465 lt_SP2NL='tr \040 \012'
11466 lt_NL2SP='tr \015\012 \040\040'
11468 *) # EBCDIC based system
11469 lt_SP2NL='tr \100 \n'
11470 lt_NL2SP='tr \r\n \100\100'
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11483 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11484 if ${lt_cv_to_host_file_cmd+:} false; then :
11485 $as_echo_n "(cached) " >&6
11490 *-*-mingw* ) # actually msys
11491 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11494 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11496 * ) # otherwise, assume *nix
11497 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11503 *-*-mingw* ) # actually msys
11504 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11507 lt_cv_to_host_file_cmd=func_convert_file_noop
11509 * ) # otherwise, assume *nix
11510 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11514 * ) # unhandled hosts (and "normal" native builds)
11515 lt_cv_to_host_file_cmd=func_convert_file_noop
11521 to_host_file_cmd=$lt_cv_to_host_file_cmd
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11523 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11530 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11531 if ${lt_cv_to_tool_file_cmd+:} false; then :
11532 $as_echo_n "(cached) " >&6
11534 #assume ordinary cross tools, or native build.
11535 lt_cv_to_tool_file_cmd=func_convert_file_noop
11539 *-*-mingw* ) # actually msys
11540 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11548 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11550 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11557 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11558 if ${lt_cv_ld_reload_flag+:} false; then :
11559 $as_echo_n "(cached) " >&6
11561 lt_cv_ld_reload_flag='-r'
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11564 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11565 reload_flag=$lt_cv_ld_reload_flag
11566 case $reload_flag in
11568 *) reload_flag=" $reload_flag" ;;
11570 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11572 cygwin* | mingw* | pw32* | cegcc*)
11573 if test yes != "$GCC"; then
11578 if test yes = "$GCC"; then
11579 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11581 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11594 if test -n "$ac_tool_prefix"; then
11595 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11596 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11598 $as_echo_n "checking for $ac_word... " >&6; }
11599 if ${ac_cv_prog_OBJDUMP+:} false; then :
11600 $as_echo_n "(cached) " >&6
11602 if test -n "$OBJDUMP"; then
11603 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606 for as_dir in $PATH
11609 test -z "$as_dir" && as_dir=.
11610 for ac_exec_ext in '' $ac_executable_extensions; do
11611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11612 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11622 OBJDUMP=$ac_cv_prog_OBJDUMP
11623 if test -n "$OBJDUMP"; then
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11625 $as_echo "$OBJDUMP" >&6; }
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628 $as_echo "no" >&6; }
11633 if test -z "$ac_cv_prog_OBJDUMP"; then
11634 ac_ct_OBJDUMP=$OBJDUMP
11635 # Extract the first word of "objdump", so it can be a program name with args.
11636 set dummy objdump; ac_word=$2
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11638 $as_echo_n "checking for $ac_word... " >&6; }
11639 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11640 $as_echo_n "(cached) " >&6
11642 if test -n "$ac_ct_OBJDUMP"; then
11643 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646 for as_dir in $PATH
11649 test -z "$as_dir" && as_dir=.
11650 for ac_exec_ext in '' $ac_executable_extensions; do
11651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11652 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11662 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11663 if test -n "$ac_ct_OBJDUMP"; then
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11665 $as_echo "$ac_ct_OBJDUMP" >&6; }
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668 $as_echo "no" >&6; }
11671 if test "x$ac_ct_OBJDUMP" = x; then
11674 case $cross_compiling:$ac_tool_warned in
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11678 ac_tool_warned=yes ;;
11680 OBJDUMP=$ac_ct_OBJDUMP
11683 OBJDUMP="$ac_cv_prog_OBJDUMP"
11686 test -z "$OBJDUMP" && OBJDUMP=objdump
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11694 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11695 if ${lt_cv_deplibs_check_method+:} false; then :
11696 $as_echo_n "(cached) " >&6
11698 lt_cv_file_magic_cmd='$MAGIC_CMD'
11699 lt_cv_file_magic_test_file=
11700 lt_cv_deplibs_check_method='unknown'
11701 # Need to set the preceding variable on all platforms that support
11702 # interlibrary dependencies.
11703 # 'none' -- dependencies not supported.
11704 # 'unknown' -- same as none, but documents that we really don't know.
11705 # 'pass_all' -- all dependencies passed with no checks.
11706 # 'test_compile' -- check by making test program.
11707 # 'file_magic [[regex]]' -- check by looking for files in library path
11708 # that responds to the $file_magic_cmd with a given extended regex.
11709 # If you have 'file' or equivalent on your system and you're not sure
11710 # whether 'pass_all' will *always* work, you probably want this one.
11714 lt_cv_deplibs_check_method=pass_all
11718 lt_cv_deplibs_check_method=pass_all
11722 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11723 lt_cv_file_magic_cmd='/usr/bin/file -L'
11724 lt_cv_file_magic_test_file=/shlib/libc.so
11728 # func_win32_libid is a shell function defined in ltmain.sh
11729 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11730 lt_cv_file_magic_cmd='func_win32_libid'
11734 # Base MSYS/MinGW do not provide the 'file' command needed by
11735 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11736 # unless we find 'file', for example because we are cross-compiling.
11737 if ( file / ) >/dev/null 2>&1; then
11738 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11739 lt_cv_file_magic_cmd='func_win32_libid'
11741 # Keep this pattern in sync with the one in func_win32_libid.
11742 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11743 lt_cv_file_magic_cmd='$OBJDUMP -f'
11748 # use the weaker test based on 'objdump'. See mingw*.
11749 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11750 lt_cv_file_magic_cmd='$OBJDUMP -f'
11753 darwin* | rhapsody*)
11754 lt_cv_deplibs_check_method=pass_all
11757 freebsd* | dragonfly*)
11758 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11761 # Not sure whether the presence of OpenBSD here was a mistake.
11762 # Let's accept both of them until this is cleared up.
11763 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11764 lt_cv_file_magic_cmd=/usr/bin/file
11765 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11769 lt_cv_deplibs_check_method=pass_all
11774 lt_cv_deplibs_check_method=pass_all
11777 hpux10.20* | hpux11*)
11778 lt_cv_file_magic_cmd=/usr/bin/file
11781 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11782 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11785 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]'
11786 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11789 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11790 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11796 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11797 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11800 irix5* | irix6* | nonstopux*)
11802 *-32|*"-32 ") libmagic=32-bit;;
11803 *-n32|*"-n32 ") libmagic=N32;;
11804 *-64|*"-64 ") libmagic=64-bit;;
11805 *) libmagic=never-match;;
11807 lt_cv_deplibs_check_method=pass_all
11810 # This must be glibc/ELF.
11811 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11812 lt_cv_deplibs_check_method=pass_all
11816 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11817 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11819 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11824 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11825 lt_cv_file_magic_cmd=/usr/bin/file
11826 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11830 lt_cv_deplibs_check_method=pass_all
11833 openbsd* | bitrig*)
11834 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11835 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11837 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11841 osf3* | osf4* | osf5*)
11842 lt_cv_deplibs_check_method=pass_all
11846 lt_cv_deplibs_check_method=pass_all
11850 lt_cv_deplibs_check_method=pass_all
11853 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11854 lt_cv_deplibs_check_method=pass_all
11858 case $host_vendor in
11860 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]'
11861 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11864 lt_cv_deplibs_check_method=pass_all
11867 lt_cv_file_magic_cmd='/bin/file'
11868 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11871 lt_cv_file_magic_cmd='/bin/file'
11872 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11873 lt_cv_file_magic_test_file=/lib/libc.so
11876 lt_cv_deplibs_check_method=pass_all
11879 lt_cv_deplibs_check_method=pass_all
11885 lt_cv_deplibs_check_method=pass_all
11888 lt_cv_deplibs_check_method=pass_all
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11894 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11898 if test "$build" = "$host"; then
11901 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11902 want_nocaseglob=yes
11904 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11910 file_magic_cmd=$lt_cv_file_magic_cmd
11911 deplibs_check_method=$lt_cv_deplibs_check_method
11912 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11935 if test -n "$ac_tool_prefix"; then
11936 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11937 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11939 $as_echo_n "checking for $ac_word... " >&6; }
11940 if ${ac_cv_prog_DLLTOOL+:} false; then :
11941 $as_echo_n "(cached) " >&6
11943 if test -n "$DLLTOOL"; then
11944 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11947 for as_dir in $PATH
11950 test -z "$as_dir" && as_dir=.
11951 for ac_exec_ext in '' $ac_executable_extensions; do
11952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11953 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11963 DLLTOOL=$ac_cv_prog_DLLTOOL
11964 if test -n "$DLLTOOL"; then
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11966 $as_echo "$DLLTOOL" >&6; }
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969 $as_echo "no" >&6; }
11974 if test -z "$ac_cv_prog_DLLTOOL"; then
11975 ac_ct_DLLTOOL=$DLLTOOL
11976 # Extract the first word of "dlltool", so it can be a program name with args.
11977 set dummy dlltool; ac_word=$2
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11979 $as_echo_n "checking for $ac_word... " >&6; }
11980 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11981 $as_echo_n "(cached) " >&6
11983 if test -n "$ac_ct_DLLTOOL"; then
11984 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11987 for as_dir in $PATH
11990 test -z "$as_dir" && as_dir=.
11991 for ac_exec_ext in '' $ac_executable_extensions; do
11992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11993 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12003 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12004 if test -n "$ac_ct_DLLTOOL"; then
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12006 $as_echo "$ac_ct_DLLTOOL" >&6; }
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009 $as_echo "no" >&6; }
12012 if test "x$ac_ct_DLLTOOL" = x; then
12015 case $cross_compiling:$ac_tool_warned in
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12019 ac_tool_warned=yes ;;
12021 DLLTOOL=$ac_ct_DLLTOOL
12024 DLLTOOL="$ac_cv_prog_DLLTOOL"
12027 test -z "$DLLTOOL" && DLLTOOL=dlltool
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12036 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12037 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12038 $as_echo_n "(cached) " >&6
12040 lt_cv_sharedlib_from_linklib_cmd='unknown'
12043 cygwin* | mingw* | pw32* | cegcc*)
12044 # two different shell functions defined in ltmain.sh;
12045 # decide which one to use based on capabilities of $DLLTOOL
12046 case `$DLLTOOL --help 2>&1` in
12047 *--identify-strict*)
12048 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12051 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12056 # fallback: assume linklib IS sharedlib
12057 lt_cv_sharedlib_from_linklib_cmd=$ECHO
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12063 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12064 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12065 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12073 if test -n "$ac_tool_prefix"; then
12076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12079 $as_echo_n "checking for $ac_word... " >&6; }
12080 if ${ac_cv_prog_AR+:} false; then :
12081 $as_echo_n "(cached) " >&6
12083 if test -n "$AR"; then
12084 ac_cv_prog_AR="$AR" # Let the user override the test.
12086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12087 for as_dir in $PATH
12090 test -z "$as_dir" && as_dir=.
12091 for ac_exec_ext in '' $ac_executable_extensions; do
12092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12093 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12104 if test -n "$AR"; then
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12106 $as_echo "$AR" >&6; }
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109 $as_echo "no" >&6; }
12113 test -n "$AR" && break
12116 if test -z "$AR"; then
12120 # Extract the first word of "$ac_prog", so it can be a program name with args.
12121 set dummy $ac_prog; ac_word=$2
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12123 $as_echo_n "checking for $ac_word... " >&6; }
12124 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12125 $as_echo_n "(cached) " >&6
12127 if test -n "$ac_ct_AR"; then
12128 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131 for as_dir in $PATH
12134 test -z "$as_dir" && as_dir=.
12135 for ac_exec_ext in '' $ac_executable_extensions; do
12136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12137 ac_cv_prog_ac_ct_AR="$ac_prog"
12138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12147 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12148 if test -n "$ac_ct_AR"; then
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12150 $as_echo "$ac_ct_AR" >&6; }
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153 $as_echo "no" >&6; }
12157 test -n "$ac_ct_AR" && break
12160 if test "x$ac_ct_AR" = x; then
12163 case $cross_compiling:$ac_tool_warned in
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12167 ac_tool_warned=yes ;;
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12187 $as_echo_n "checking for archiver @FILE support... " >&6; }
12188 if ${lt_cv_ar_at_file+:} false; then :
12189 $as_echo_n "(cached) " >&6
12191 lt_cv_ar_at_file=no
12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h. */
12203 if ac_fn_c_try_compile "$LINENO"; then :
12204 echo conftest.$ac_objext > conftest.lst
12205 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12207 (eval $lt_ar_try) 2>&5
12209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12210 test $ac_status = 0; }
12211 if test 0 -eq "$ac_status"; then
12212 # Ensure the archiver fails upon bogus file names.
12213 rm -f conftest.$ac_objext libconftest.a
12214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12215 (eval $lt_ar_try) 2>&5
12217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12218 test $ac_status = 0; }
12219 if test 0 -ne "$ac_status"; then
12223 rm -f conftest.* libconftest.a
12226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12230 $as_echo "$lt_cv_ar_at_file" >&6; }
12232 if test no = "$lt_cv_ar_at_file"; then
12233 archiver_list_spec=
12235 archiver_list_spec=$lt_cv_ar_at_file
12244 if test -n "$ac_tool_prefix"; then
12245 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12246 set dummy ${ac_tool_prefix}strip; ac_word=$2
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12248 $as_echo_n "checking for $ac_word... " >&6; }
12249 if ${ac_cv_prog_STRIP+:} false; then :
12250 $as_echo_n "(cached) " >&6
12252 if test -n "$STRIP"; then
12253 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256 for as_dir in $PATH
12259 test -z "$as_dir" && as_dir=.
12260 for ac_exec_ext in '' $ac_executable_extensions; do
12261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12262 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12272 STRIP=$ac_cv_prog_STRIP
12273 if test -n "$STRIP"; then
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12275 $as_echo "$STRIP" >&6; }
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12283 if test -z "$ac_cv_prog_STRIP"; then
12285 # Extract the first word of "strip", so it can be a program name with args.
12286 set dummy strip; ac_word=$2
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12288 $as_echo_n "checking for $ac_word... " >&6; }
12289 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12290 $as_echo_n "(cached) " >&6
12292 if test -n "$ac_ct_STRIP"; then
12293 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296 for as_dir in $PATH
12299 test -z "$as_dir" && as_dir=.
12300 for ac_exec_ext in '' $ac_executable_extensions; do
12301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12302 ac_cv_prog_ac_ct_STRIP="strip"
12303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12313 if test -n "$ac_ct_STRIP"; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12315 $as_echo "$ac_ct_STRIP" >&6; }
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318 $as_echo "no" >&6; }
12321 if test "x$ac_ct_STRIP" = x; then
12324 case $cross_compiling:$ac_tool_warned in
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12328 ac_tool_warned=yes ;;
12333 STRIP="$ac_cv_prog_STRIP"
12336 test -z "$STRIP" && STRIP=:
12343 if test -n "$ac_tool_prefix"; then
12344 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12345 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12347 $as_echo_n "checking for $ac_word... " >&6; }
12348 if ${ac_cv_prog_RANLIB+:} false; then :
12349 $as_echo_n "(cached) " >&6
12351 if test -n "$RANLIB"; then
12352 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355 for as_dir in $PATH
12358 test -z "$as_dir" && as_dir=.
12359 for ac_exec_ext in '' $ac_executable_extensions; do
12360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12361 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12371 RANLIB=$ac_cv_prog_RANLIB
12372 if test -n "$RANLIB"; then
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12374 $as_echo "$RANLIB" >&6; }
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377 $as_echo "no" >&6; }
12382 if test -z "$ac_cv_prog_RANLIB"; then
12383 ac_ct_RANLIB=$RANLIB
12384 # Extract the first word of "ranlib", so it can be a program name with args.
12385 set dummy ranlib; ac_word=$2
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12387 $as_echo_n "checking for $ac_word... " >&6; }
12388 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12389 $as_echo_n "(cached) " >&6
12391 if test -n "$ac_ct_RANLIB"; then
12392 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12395 for as_dir in $PATH
12398 test -z "$as_dir" && as_dir=.
12399 for ac_exec_ext in '' $ac_executable_extensions; do
12400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12401 ac_cv_prog_ac_ct_RANLIB="ranlib"
12402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12411 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12412 if test -n "$ac_ct_RANLIB"; then
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12414 $as_echo "$ac_ct_RANLIB" >&6; }
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12417 $as_echo "no" >&6; }
12420 if test "x$ac_ct_RANLIB" = x; then
12423 case $cross_compiling:$ac_tool_warned in
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12427 ac_tool_warned=yes ;;
12429 RANLIB=$ac_ct_RANLIB
12432 RANLIB="$ac_cv_prog_RANLIB"
12435 test -z "$RANLIB" && RANLIB=:
12442 # Determine commands to create old-style static archives.
12443 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12444 old_postinstall_cmds='chmod 644 $oldlib'
12445 old_postuninstall_cmds=
12447 if test -n "$RANLIB"; then
12449 bitrig* | openbsd*)
12450 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12453 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12456 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12461 lock_old_archive_extraction=yes ;;
12463 lock_old_archive_extraction=no ;;
12504 # If no C compiler was specified, use CC.
12507 # If no C compiler flags were specified, use CFLAGS.
12508 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12510 # Allow CC to be a program name with arguments.
12514 # Check for command to grab the raw symbol name followed by C symbol from nm.
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12516 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12517 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12518 $as_echo_n "(cached) " >&6
12521 # These are sane defaults that work on at least a few old systems.
12522 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12524 # Character class describing NM global symbol codes.
12525 symcode='[BCDEGRST]'
12527 # Regexp to match symbols that can be accessed directly from C.
12528 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12530 # Define system-specific variables.
12535 cygwin* | mingw* | pw32* | cegcc*)
12536 symcode='[ABCDGISTW]'
12539 if test ia64 = "$host_cpu"; then
12540 symcode='[ABCDEGRST]'
12543 irix* | nonstopux*)
12544 symcode='[BCDEGRST]'
12547 symcode='[BCDEGQRST]'
12558 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12566 # If we're using GNU nm, then use its standard symbol codes.
12567 case `$NM -V 2>&1` in
12568 *GNU* | *'with BFD'*)
12569 symcode='[ABCDGIRSTW]' ;;
12572 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12573 # Gets list of data symbols to import.
12574 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12575 # Adjust the below global symbol transforms to fixup imported variables.
12576 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12577 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
12578 lt_c_name_lib_hook="\
12579 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
12580 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
12582 # Disable hooks by default.
12583 lt_cv_sys_global_symbol_to_import=
12586 lt_c_name_lib_hook=
12589 # Transform an extracted symbol line into a proper C declaration.
12590 # Some systems (esp. on ia64) link data and code symbols differently,
12591 # so use this general approach.
12592 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12594 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12595 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12597 # Transform an extracted symbol line into symbol name and symbol address
12598 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12600 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12601 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
12603 # Transform an extracted symbol line into symbol name with lib prefix and
12605 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12606 $lt_c_name_lib_hook\
12607 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12608 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
12609 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
12611 # Handle CRLF in mingw tool chain
12615 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12619 # Try without a prefix underscore, then with it.
12620 for ac_symprfx in "" "_"; do
12622 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12623 symxfrm="\\1 $ac_symprfx\\2 \\2"
12625 # Write the raw and C identifiers.
12626 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12627 # Fake it for dumpbin and say T for any non-static function,
12628 # D for any global variable and I for any imported variable.
12629 # Also find C++ and __fastcall symbols from MSVC++,
12630 # which start with @ or ?.
12631 lt_cv_sys_global_symbol_pipe="$AWK '"\
12632 " {last_section=section; section=\$ 3};"\
12633 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12634 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12635 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12636 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12637 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12638 " \$ 0!~/External *\|/{next};"\
12639 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12640 " {if(hide[section]) next};"\
12641 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12642 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12643 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12644 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12645 " ' prfx=^$ac_symprfx"
12647 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12649 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12651 # Check to see that the pipe works correctly.
12655 cat > conftest.$ac_ext <<_LT_EOF
12660 void nm_test_func(void);
12661 void nm_test_func(void){}
12665 int main(){nm_test_var='a';nm_test_func();return(0);}
12668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12669 (eval $ac_compile) 2>&5
12671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12672 test $ac_status = 0; }; then
12673 # Now try to grab the symbols.
12675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12676 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12679 test $ac_status = 0; } && test -s "$nlist"; then
12680 # Try sorting and uniquifying the output.
12681 if sort "$nlist" | uniq > "$nlist"T; then
12682 mv -f "$nlist"T "$nlist"
12687 # Make sure that we snagged all the symbols we need.
12688 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12689 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12690 cat <<_LT_EOF > conftest.$ac_ext
12691 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12692 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12693 /* DATA imports from DLLs on WIN32 can't be const, because runtime
12694 relocations are performed -- see ld's documentation on pseudo-relocs. */
12695 # define LT_DLSYM_CONST
12696 #elif defined __osf__
12697 /* This system does not cope well with relocations in const data. */
12698 # define LT_DLSYM_CONST
12700 # define LT_DLSYM_CONST const
12708 # Now generate the symbol file.
12709 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12711 cat <<_LT_EOF >> conftest.$ac_ext
12713 /* The mapping between symbol names and symbols. */
12714 LT_DLSYM_CONST struct {
12718 lt__PROGRAM__LTX_preloaded_symbols[] =
12720 { "@PROGRAM@", (void *) 0 },
12722 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12723 cat <<\_LT_EOF >> conftest.$ac_ext
12727 /* This works around a problem in FreeBSD linker */
12728 #ifdef FREEBSD_WORKAROUND
12729 static const void *lt_preloaded_setup() {
12730 return lt__PROGRAM__LTX_preloaded_symbols;
12738 # Now try linking the two files.
12739 mv conftest.$ac_objext conftstm.$ac_objext
12740 lt_globsym_save_LIBS=$LIBS
12741 lt_globsym_save_CFLAGS=$CFLAGS
12742 LIBS=conftstm.$ac_objext
12743 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12745 (eval $ac_link) 2>&5
12747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12748 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12751 LIBS=$lt_globsym_save_LIBS
12752 CFLAGS=$lt_globsym_save_CFLAGS
12754 echo "cannot find nm_test_func in $nlist" >&5
12757 echo "cannot find nm_test_var in $nlist" >&5
12760 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12763 echo "$progname: failed program was:" >&5
12764 cat conftest.$ac_ext >&5
12766 rm -rf conftest* conftst*
12768 # Do not use the global_symbol_pipe unless it works.
12769 if test yes = "$pipe_works"; then
12772 lt_cv_sys_global_symbol_pipe=
12778 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12779 lt_cv_sys_global_symbol_to_cdecl=
12781 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12783 $as_echo "failed" >&6; }
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12786 $as_echo "ok" >&6; }
12789 # Response file support.
12790 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12791 nm_file_list_spec='@'
12792 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12793 nm_file_list_spec='@'
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12833 $as_echo_n "checking for sysroot... " >&6; }
12835 # Check whether --with-sysroot was given.
12836 if test "${with_sysroot+set}" = set; then :
12837 withval=$with_sysroot;
12844 case $with_sysroot in #(
12846 if test yes = "$GCC"; then
12847 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12851 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
12857 $as_echo "$with_sysroot" >&6; }
12858 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12863 $as_echo "${lt_sysroot:-no}" >&6; }
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
12870 $as_echo_n "checking for a working dd... " >&6; }
12871 if ${ac_cv_path_lt_DD+:} false; then :
12872 $as_echo_n "(cached) " >&6
12874 printf 0123456789abcdef0123456789abcdef >conftest.i
12875 cat conftest.i conftest.i >conftest2.i
12877 if test -z "$lt_DD"; then
12878 ac_path_lt_DD_found=false
12879 # Loop through the user's path and test for each of PROGNAME-LIST
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
12884 test -z "$as_dir" && as_dir=.
12885 for ac_prog in dd; do
12886 for ac_exec_ext in '' $ac_executable_extensions; do
12887 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
12888 as_fn_executable_p "$ac_path_lt_DD" || continue
12889 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12890 cmp -s conftest.i conftest.out \
12891 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
12893 $ac_path_lt_DD_found && break 3
12898 if test -z "$ac_cv_path_lt_DD"; then
12902 ac_cv_path_lt_DD=$lt_DD
12905 rm -f conftest.i conftest2.i conftest.out
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
12908 $as_echo "$ac_cv_path_lt_DD" >&6; }
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
12912 $as_echo_n "checking how to truncate binary pipes... " >&6; }
12913 if ${lt_cv_truncate_bin+:} false; then :
12914 $as_echo_n "(cached) " >&6
12916 printf 0123456789abcdef0123456789abcdef >conftest.i
12917 cat conftest.i conftest.i >conftest2.i
12918 lt_cv_truncate_bin=
12919 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12920 cmp -s conftest.i conftest.out \
12921 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
12923 rm -f conftest.i conftest2.i conftest.out
12924 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
12927 $as_echo "$lt_cv_truncate_bin" >&6; }
12935 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
12936 func_cc_basename ()
12938 for cc_temp in $*""; do
12940 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12941 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12946 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12949 # Check whether --enable-libtool-lock was given.
12950 if test "${enable_libtool_lock+set}" = set; then :
12951 enableval=$enable_libtool_lock;
12954 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
12956 # Some flags need to be propagated to the compiler or linker for good
12960 # Find out what ABI is being produced by ac_compile, and set mode
12961 # options accordingly.
12962 echo 'int i;' > conftest.$ac_ext
12963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12964 (eval $ac_compile) 2>&5
12966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12967 test $ac_status = 0; }; then
12968 case `/usr/bin/file conftest.$ac_objext` in
12980 # Find out what ABI is being produced by ac_compile, and set linker
12981 # options accordingly.
12982 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12984 (eval $ac_compile) 2>&5
12986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12987 test $ac_status = 0; }; then
12988 if test yes = "$lt_cv_prog_gnu_ld"; then
12989 case `/usr/bin/file conftest.$ac_objext` in
12991 LD="${LD-ld} -melf32bsmip"
12994 LD="${LD-ld} -melf32bmipn32"
12997 LD="${LD-ld} -melf64bmip"
13001 case `/usr/bin/file conftest.$ac_objext` in
13018 # Find out what ABI is being produced by ac_compile, and set linker
13019 # options accordingly.
13020 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13022 (eval $ac_compile) 2>&5
13024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13025 test $ac_status = 0; }; then
13027 case `/usr/bin/file conftest.$ac_objext` in
13035 case `/usr/bin/file conftest.$ac_objext` in
13037 emul="${emul}btsmip"
13040 emul="${emul}ltsmip"
13043 case `/usr/bin/file conftest.$ac_objext` in
13048 LD="${LD-ld} -m $emul"
13053 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13054 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13055 # Find out what ABI is being produced by ac_compile, and set linker
13056 # options accordingly. Note that the listed cases only cover the
13057 # situations where additional linker options are needed (such as when
13058 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13059 # vice versa); the common cases where no linker options are needed do
13060 # not appear in the list.
13061 echo 'int i;' > conftest.$ac_ext
13062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13063 (eval $ac_compile) 2>&5
13065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13066 test $ac_status = 0; }; then
13067 case `/usr/bin/file conftest.o` in
13070 x86_64-*kfreebsd*-gnu)
13071 LD="${LD-ld} -m elf_i386_fbsd"
13074 case `/usr/bin/file conftest.o` in
13076 LD="${LD-ld} -m elf32_x86_64"
13079 LD="${LD-ld} -m elf_i386"
13083 powerpc64le-*linux*)
13084 LD="${LD-ld} -m elf32lppclinux"
13087 LD="${LD-ld} -m elf32ppclinux"
13090 LD="${LD-ld} -m elf_s390"
13093 LD="${LD-ld} -m elf32_sparc"
13099 x86_64-*kfreebsd*-gnu)
13100 LD="${LD-ld} -m elf_x86_64_fbsd"
13103 LD="${LD-ld} -m elf_x86_64"
13106 LD="${LD-ld} -m elf64lppc"
13109 LD="${LD-ld} -m elf64ppc"
13111 s390*-*linux*|s390*-*tpf*)
13112 LD="${LD-ld} -m elf64_s390"
13115 LD="${LD-ld} -m elf64_sparc"
13125 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13126 SAVE_CFLAGS=$CFLAGS
13127 CFLAGS="$CFLAGS -belf"
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13129 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13130 if ${lt_cv_cc_needs_belf+:} false; then :
13131 $as_echo_n "(cached) " >&6
13134 ac_cpp='$CPP $CPPFLAGS'
13135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13150 if ac_fn_c_try_link "$LINENO"; then :
13151 lt_cv_cc_needs_belf=yes
13153 lt_cv_cc_needs_belf=no
13155 rm -f core conftest.err conftest.$ac_objext \
13156 conftest$ac_exeext conftest.$ac_ext
13158 ac_cpp='$CPP $CPPFLAGS'
13159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13165 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13166 if test yes != "$lt_cv_cc_needs_belf"; then
13167 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13168 CFLAGS=$SAVE_CFLAGS
13172 # Find out what ABI is being produced by ac_compile, and set linker
13173 # options accordingly.
13174 echo 'int i;' > conftest.$ac_ext
13175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13176 (eval $ac_compile) 2>&5
13178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13179 test $ac_status = 0; }; then
13180 case `/usr/bin/file conftest.o` in
13182 case $lt_cv_prog_gnu_ld in
13185 i?86-*-solaris*|x86_64-*-solaris*)
13186 LD="${LD-ld} -m elf_x86_64"
13189 LD="${LD-ld} -m elf64_sparc"
13192 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13193 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13198 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13210 need_locks=$enable_libtool_lock
13212 if test -n "$ac_tool_prefix"; then
13213 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13214 set dummy ${ac_tool_prefix}mt; ac_word=$2
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13216 $as_echo_n "checking for $ac_word... " >&6; }
13217 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13218 $as_echo_n "(cached) " >&6
13220 if test -n "$MANIFEST_TOOL"; then
13221 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224 for as_dir in $PATH
13227 test -z "$as_dir" && as_dir=.
13228 for ac_exec_ext in '' $ac_executable_extensions; do
13229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13230 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13240 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13241 if test -n "$MANIFEST_TOOL"; then
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13243 $as_echo "$MANIFEST_TOOL" >&6; }
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13246 $as_echo "no" >&6; }
13251 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13252 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13253 # Extract the first word of "mt", so it can be a program name with args.
13254 set dummy mt; ac_word=$2
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13256 $as_echo_n "checking for $ac_word... " >&6; }
13257 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13258 $as_echo_n "(cached) " >&6
13260 if test -n "$ac_ct_MANIFEST_TOOL"; then
13261 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13264 for as_dir in $PATH
13267 test -z "$as_dir" && as_dir=.
13268 for ac_exec_ext in '' $ac_executable_extensions; do
13269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13270 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13280 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13281 if test -n "$ac_ct_MANIFEST_TOOL"; then
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13283 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286 $as_echo "no" >&6; }
13289 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13292 case $cross_compiling:$ac_tool_warned in
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13296 ac_tool_warned=yes ;;
13298 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13301 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13304 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13306 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13307 if ${lt_cv_path_mainfest_tool+:} false; then :
13308 $as_echo_n "(cached) " >&6
13310 lt_cv_path_mainfest_tool=no
13311 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13312 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13313 cat conftest.err >&5
13314 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13315 lt_cv_path_mainfest_tool=yes
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13320 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
13321 if test yes != "$lt_cv_path_mainfest_tool"; then
13331 rhapsody* | darwin*)
13332 if test -n "$ac_tool_prefix"; then
13333 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13334 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13336 $as_echo_n "checking for $ac_word... " >&6; }
13337 if ${ac_cv_prog_DSYMUTIL+:} false; then :
13338 $as_echo_n "(cached) " >&6
13340 if test -n "$DSYMUTIL"; then
13341 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13344 for as_dir in $PATH
13347 test -z "$as_dir" && as_dir=.
13348 for ac_exec_ext in '' $ac_executable_extensions; do
13349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13350 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13360 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13361 if test -n "$DSYMUTIL"; then
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13363 $as_echo "$DSYMUTIL" >&6; }
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13366 $as_echo "no" >&6; }
13371 if test -z "$ac_cv_prog_DSYMUTIL"; then
13372 ac_ct_DSYMUTIL=$DSYMUTIL
13373 # Extract the first word of "dsymutil", so it can be a program name with args.
13374 set dummy dsymutil; ac_word=$2
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13376 $as_echo_n "checking for $ac_word... " >&6; }
13377 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13378 $as_echo_n "(cached) " >&6
13380 if test -n "$ac_ct_DSYMUTIL"; then
13381 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13384 for as_dir in $PATH
13387 test -z "$as_dir" && as_dir=.
13388 for ac_exec_ext in '' $ac_executable_extensions; do
13389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13390 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13400 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13401 if test -n "$ac_ct_DSYMUTIL"; then
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13403 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406 $as_echo "no" >&6; }
13409 if test "x$ac_ct_DSYMUTIL" = x; then
13412 case $cross_compiling:$ac_tool_warned in
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13416 ac_tool_warned=yes ;;
13418 DSYMUTIL=$ac_ct_DSYMUTIL
13421 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13424 if test -n "$ac_tool_prefix"; then
13425 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13426 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13428 $as_echo_n "checking for $ac_word... " >&6; }
13429 if ${ac_cv_prog_NMEDIT+:} false; then :
13430 $as_echo_n "(cached) " >&6
13432 if test -n "$NMEDIT"; then
13433 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13436 for as_dir in $PATH
13439 test -z "$as_dir" && as_dir=.
13440 for ac_exec_ext in '' $ac_executable_extensions; do
13441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13442 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13452 NMEDIT=$ac_cv_prog_NMEDIT
13453 if test -n "$NMEDIT"; then
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13455 $as_echo "$NMEDIT" >&6; }
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13458 $as_echo "no" >&6; }
13463 if test -z "$ac_cv_prog_NMEDIT"; then
13464 ac_ct_NMEDIT=$NMEDIT
13465 # Extract the first word of "nmedit", so it can be a program name with args.
13466 set dummy nmedit; ac_word=$2
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13468 $as_echo_n "checking for $ac_word... " >&6; }
13469 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13470 $as_echo_n "(cached) " >&6
13472 if test -n "$ac_ct_NMEDIT"; then
13473 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13476 for as_dir in $PATH
13479 test -z "$as_dir" && as_dir=.
13480 for ac_exec_ext in '' $ac_executable_extensions; do
13481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13482 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13492 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13493 if test -n "$ac_ct_NMEDIT"; then
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13495 $as_echo "$ac_ct_NMEDIT" >&6; }
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13498 $as_echo "no" >&6; }
13501 if test "x$ac_ct_NMEDIT" = x; then
13504 case $cross_compiling:$ac_tool_warned in
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13508 ac_tool_warned=yes ;;
13510 NMEDIT=$ac_ct_NMEDIT
13513 NMEDIT="$ac_cv_prog_NMEDIT"
13516 if test -n "$ac_tool_prefix"; then
13517 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13518 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13520 $as_echo_n "checking for $ac_word... " >&6; }
13521 if ${ac_cv_prog_LIPO+:} false; then :
13522 $as_echo_n "(cached) " >&6
13524 if test -n "$LIPO"; then
13525 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528 for as_dir in $PATH
13531 test -z "$as_dir" && as_dir=.
13532 for ac_exec_ext in '' $ac_executable_extensions; do
13533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13534 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13544 LIPO=$ac_cv_prog_LIPO
13545 if test -n "$LIPO"; then
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13547 $as_echo "$LIPO" >&6; }
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13550 $as_echo "no" >&6; }
13555 if test -z "$ac_cv_prog_LIPO"; then
13557 # Extract the first word of "lipo", so it can be a program name with args.
13558 set dummy lipo; ac_word=$2
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13560 $as_echo_n "checking for $ac_word... " >&6; }
13561 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13562 $as_echo_n "(cached) " >&6
13564 if test -n "$ac_ct_LIPO"; then
13565 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13568 for as_dir in $PATH
13571 test -z "$as_dir" && as_dir=.
13572 for ac_exec_ext in '' $ac_executable_extensions; do
13573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13574 ac_cv_prog_ac_ct_LIPO="lipo"
13575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13584 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13585 if test -n "$ac_ct_LIPO"; then
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13587 $as_echo "$ac_ct_LIPO" >&6; }
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13590 $as_echo "no" >&6; }
13593 if test "x$ac_ct_LIPO" = x; then
13596 case $cross_compiling:$ac_tool_warned in
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13600 ac_tool_warned=yes ;;
13605 LIPO="$ac_cv_prog_LIPO"
13608 if test -n "$ac_tool_prefix"; then
13609 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13610 set dummy ${ac_tool_prefix}otool; ac_word=$2
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13612 $as_echo_n "checking for $ac_word... " >&6; }
13613 if ${ac_cv_prog_OTOOL+:} false; then :
13614 $as_echo_n "(cached) " >&6
13616 if test -n "$OTOOL"; then
13617 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13620 for as_dir in $PATH
13623 test -z "$as_dir" && as_dir=.
13624 for ac_exec_ext in '' $ac_executable_extensions; do
13625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13626 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13636 OTOOL=$ac_cv_prog_OTOOL
13637 if test -n "$OTOOL"; then
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13639 $as_echo "$OTOOL" >&6; }
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13642 $as_echo "no" >&6; }
13647 if test -z "$ac_cv_prog_OTOOL"; then
13649 # Extract the first word of "otool", so it can be a program name with args.
13650 set dummy otool; ac_word=$2
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13652 $as_echo_n "checking for $ac_word... " >&6; }
13653 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13654 $as_echo_n "(cached) " >&6
13656 if test -n "$ac_ct_OTOOL"; then
13657 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13660 for as_dir in $PATH
13663 test -z "$as_dir" && as_dir=.
13664 for ac_exec_ext in '' $ac_executable_extensions; do
13665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13666 ac_cv_prog_ac_ct_OTOOL="otool"
13667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13676 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13677 if test -n "$ac_ct_OTOOL"; then
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13679 $as_echo "$ac_ct_OTOOL" >&6; }
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13682 $as_echo "no" >&6; }
13685 if test "x$ac_ct_OTOOL" = x; then
13688 case $cross_compiling:$ac_tool_warned in
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13692 ac_tool_warned=yes ;;
13697 OTOOL="$ac_cv_prog_OTOOL"
13700 if test -n "$ac_tool_prefix"; then
13701 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13702 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13704 $as_echo_n "checking for $ac_word... " >&6; }
13705 if ${ac_cv_prog_OTOOL64+:} false; then :
13706 $as_echo_n "(cached) " >&6
13708 if test -n "$OTOOL64"; then
13709 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13712 for as_dir in $PATH
13715 test -z "$as_dir" && as_dir=.
13716 for ac_exec_ext in '' $ac_executable_extensions; do
13717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13718 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13728 OTOOL64=$ac_cv_prog_OTOOL64
13729 if test -n "$OTOOL64"; then
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13731 $as_echo "$OTOOL64" >&6; }
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13734 $as_echo "no" >&6; }
13739 if test -z "$ac_cv_prog_OTOOL64"; then
13740 ac_ct_OTOOL64=$OTOOL64
13741 # Extract the first word of "otool64", so it can be a program name with args.
13742 set dummy otool64; ac_word=$2
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13744 $as_echo_n "checking for $ac_word... " >&6; }
13745 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13746 $as_echo_n "(cached) " >&6
13748 if test -n "$ac_ct_OTOOL64"; then
13749 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752 for as_dir in $PATH
13755 test -z "$as_dir" && as_dir=.
13756 for ac_exec_ext in '' $ac_executable_extensions; do
13757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13758 ac_cv_prog_ac_ct_OTOOL64="otool64"
13759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13768 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13769 if test -n "$ac_ct_OTOOL64"; then
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13771 $as_echo "$ac_ct_OTOOL64" >&6; }
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774 $as_echo "no" >&6; }
13777 if test "x$ac_ct_OTOOL64" = x; then
13780 case $cross_compiling:$ac_tool_warned in
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13784 ac_tool_warned=yes ;;
13786 OTOOL64=$ac_ct_OTOOL64
13789 OTOOL64="$ac_cv_prog_OTOOL64"
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13819 $as_echo_n "checking for -single_module linker flag... " >&6; }
13820 if ${lt_cv_apple_cc_single_mod+:} false; then :
13821 $as_echo_n "(cached) " >&6
13823 lt_cv_apple_cc_single_mod=no
13824 if test -z "$LT_MULTI_MODULE"; then
13825 # By default we will add the -single_module flag. You can override
13826 # by either setting the environment variable LT_MULTI_MODULE
13827 # non-empty at configure time, or by adding -multi_module to the
13829 rm -rf libconftest.dylib*
13830 echo "int foo(void){return 1;}" > conftest.c
13831 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13832 -dynamiclib -Wl,-single_module conftest.c" >&5
13833 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13834 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13836 # If there is a non-empty error log, and "single_module"
13837 # appears in it, assume the flag caused a linker warning
13838 if test -s conftest.err && $GREP single_module conftest.err; then
13839 cat conftest.err >&5
13840 # Otherwise, if the output was created with a 0 exit code from
13841 # the compiler, it worked.
13842 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
13843 lt_cv_apple_cc_single_mod=yes
13845 cat conftest.err >&5
13847 rm -rf libconftest.dylib*
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13852 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13855 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13856 if ${lt_cv_ld_exported_symbols_list+:} false; then :
13857 $as_echo_n "(cached) " >&6
13859 lt_cv_ld_exported_symbols_list=no
13860 save_LDFLAGS=$LDFLAGS
13861 echo "_main" > conftest.sym
13862 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864 /* end confdefs.h. */
13874 if ac_fn_c_try_link "$LINENO"; then :
13875 lt_cv_ld_exported_symbols_list=yes
13877 lt_cv_ld_exported_symbols_list=no
13879 rm -f core conftest.err conftest.$ac_objext \
13880 conftest$ac_exeext conftest.$ac_ext
13881 LDFLAGS=$save_LDFLAGS
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13885 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13888 $as_echo_n "checking for -force_load linker flag... " >&6; }
13889 if ${lt_cv_ld_force_load+:} false; then :
13890 $as_echo_n "(cached) " >&6
13892 lt_cv_ld_force_load=no
13893 cat > conftest.c << _LT_EOF
13894 int forced_loaded() { return 2;}
13896 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13897 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13898 echo "$AR cru libconftest.a conftest.o" >&5
13899 $AR cru libconftest.a conftest.o 2>&5
13900 echo "$RANLIB libconftest.a" >&5
13901 $RANLIB libconftest.a 2>&5
13902 cat > conftest.c << _LT_EOF
13903 int main() { return 0;}
13905 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13906 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13908 if test -s conftest.err && $GREP force_load conftest.err; then
13909 cat conftest.err >&5
13910 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
13911 lt_cv_ld_force_load=yes
13913 cat conftest.err >&5
13915 rm -f conftest.err libconftest.a conftest conftest.c
13916 rm -rf conftest.dSYM
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13920 $as_echo "$lt_cv_ld_force_load" >&6; }
13922 rhapsody* | darwin1.[012])
13923 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
13925 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
13926 darwin*) # darwin 5.x on
13927 # if running on 10.5 or later, the deployment target defaults
13928 # to the OS version, if on x86, and 10.4, the deployment
13929 # target defaults to 10.4. Don't you love it?
13930 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13931 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13932 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
13934 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
13936 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
13940 if test yes = "$lt_cv_apple_cc_single_mod"; then
13941 _lt_dar_single_mod='$single_module'
13943 if test yes = "$lt_cv_ld_exported_symbols_list"; then
13944 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
13946 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
13948 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
13949 _lt_dsymutil='~$DSYMUTIL $lib || :'
13956 # func_munge_path_list VARIABLE PATH
13957 # -----------------------------------
13958 # VARIABLE is name of variable containing _space_ separated list of
13959 # directories to be munged by the contents of PATH, which is string
13962 # string "DIR[ DIR]" will be prepended to VARIABLE
13964 # string "DIR[ DIR]" will be appended to VARIABLE
13965 # "DIRP[:DIRP]::[DIRA:]DIRA"
13966 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
13967 # "DIRA[ DIRA]" will be appended to VARIABLE
13969 # VARIABLE will be replaced by "DIR[ DIR]"
13970 func_munge_path_list ()
13976 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
13979 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
13982 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
13983 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
13986 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
13991 for ac_header in dlfcn.h
13993 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13995 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13996 cat >>confdefs.h <<_ACEOF
13997 #define HAVE_DLFCN_H 1
14016 # Check whether --enable-shared was given.
14017 if test "${enable_shared+set}" = set; then :
14018 enableval=$enable_shared; p=${PACKAGE-default}
14020 yes) enable_shared=yes ;;
14021 no) enable_shared=no ;;
14024 # Look at the argument we got. We use all the common list separators.
14025 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14026 for pkg in $enableval; do
14028 if test "X$pkg" = "X$p"; then
14047 # Check whether --enable-static was given.
14048 if test "${enable_static+set}" = set; then :
14049 enableval=$enable_static; p=${PACKAGE-default}
14051 yes) enable_static=yes ;;
14052 no) enable_static=no ;;
14055 # Look at the argument we got. We use all the common list separators.
14056 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14057 for pkg in $enableval; do
14059 if test "X$pkg" = "X$p"; then
14079 # Check whether --with-pic was given.
14080 if test "${with_pic+set}" = set; then :
14081 withval=$with_pic; lt_p=${PACKAGE-default}
14083 yes|no) pic_mode=$withval ;;
14086 # Look at the argument we got. We use all the common list separators.
14087 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14088 for lt_pkg in $withval; do
14090 if test "X$lt_pkg" = "X$lt_p"; then
14108 # Check whether --enable-fast-install was given.
14109 if test "${enable_fast_install+set}" = set; then :
14110 enableval=$enable_fast_install; p=${PACKAGE-default}
14112 yes) enable_fast_install=yes ;;
14113 no) enable_fast_install=no ;;
14115 enable_fast_install=no
14116 # Look at the argument we got. We use all the common list separators.
14117 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14118 for pkg in $enableval; do
14120 if test "X$pkg" = "X$p"; then
14121 enable_fast_install=yes
14128 enable_fast_install=yes
14138 shared_archive_member_spec=
14139 case $host,$enable_shared in
14140 power*-*-aix[5-9]*,yes)
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14142 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14144 # Check whether --with-aix-soname was given.
14145 if test "${with_aix_soname+set}" = set; then :
14146 withval=$with_aix_soname; case $withval in
14150 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14153 lt_cv_with_aix_soname=$with_aix_soname
14155 if ${lt_cv_with_aix_soname+:} false; then :
14156 $as_echo_n "(cached) " >&6
14158 lt_cv_with_aix_soname=aix
14161 with_aix_soname=$lt_cv_with_aix_soname
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14165 $as_echo "$with_aix_soname" >&6; }
14166 if test aix != "$with_aix_soname"; then
14167 # For the AIX way of multilib, we name the shared archive member
14168 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14169 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14170 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14171 # the AIX toolchain works better with OBJECT_MODE set (default 32).
14172 if test 64 = "${OBJECT_MODE-32}"; then
14173 shared_archive_member_spec=shr_64
14175 shared_archive_member_spec=shr
14180 with_aix_soname=aix
14193 # This can be used to rebuild libtool when needed
14194 LIBTOOL_DEPS=$ltmain
14196 # Always use our own libtool.
14197 LIBTOOL='$(SHELL) $(apr_builddir)/libtool'
14228 test -z "$LN_S" && LN_S="ln -s"
14243 if test -n "${ZSH_VERSION+set}"; then
14244 setopt NO_GLOB_SUBST
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14248 $as_echo_n "checking for objdir... " >&6; }
14249 if ${lt_cv_objdir+:} false; then :
14250 $as_echo_n "(cached) " >&6
14252 rm -f .libs 2>/dev/null
14253 mkdir .libs 2>/dev/null
14254 if test -d .libs; then
14257 # MS-DOS does not allow filenames that begin with a dot.
14260 rmdir .libs 2>/dev/null
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14263 $as_echo "$lt_cv_objdir" >&6; }
14264 objdir=$lt_cv_objdir
14270 cat >>confdefs.h <<_ACEOF
14271 #define LT_OBJDIR "$lt_cv_objdir/"
14279 # AIX sometimes has problems with the GCC collect2 program. For some
14280 # reason, if we set the COLLECT_NAMES environment variable, the problems
14281 # vanish in a puff of smoke.
14282 if test set != "${COLLECT_NAMES+set}"; then
14284 export COLLECT_NAMES
14289 # Global variables:
14291 can_build_shared=yes
14293 # All known linkers require a '.a' archive for static linking (except MSVC,
14294 # which needs '.lib').
14297 with_gnu_ld=$lt_cv_prog_gnu_ld
14302 # Set sane defaults for various variables
14303 test -z "$CC" && CC=cc
14304 test -z "$LTCC" && LTCC=$CC
14305 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14306 test -z "$LD" && LD=ld
14307 test -z "$ac_objext" && ac_objext=o
14309 func_cc_basename $compiler
14310 cc_basename=$func_cc_basename_result
14313 # Only perform the check for file, if the check method requires it
14314 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14315 case $deplibs_check_method in
14317 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14319 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14320 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14321 $as_echo_n "(cached) " >&6
14325 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14328 lt_save_MAGIC_CMD=$MAGIC_CMD
14329 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14330 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14331 for ac_dir in $ac_dummy; do
14333 test -z "$ac_dir" && ac_dir=.
14334 if test -f "$ac_dir/${ac_tool_prefix}file"; then
14335 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14336 if test -n "$file_magic_test_file"; then
14337 case $deplibs_check_method in
14339 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14340 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14341 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14342 $EGREP "$file_magic_regex" > /dev/null; then
14347 *** Warning: the command libtool uses to detect shared libraries,
14348 *** $file_magic_cmd, produces output that libtool cannot recognize.
14349 *** The result is that libtool may fail to recognize shared libraries
14350 *** as such. This will affect the creation of libtool libraries that
14351 *** depend on shared libraries, but programs linked with such libtool
14352 *** libraries will work regardless of this problem. Nevertheless, you
14353 *** may want to report the problem to your system manager and/or to
14354 *** bug-libtool@gnu.org
14364 MAGIC_CMD=$lt_save_MAGIC_CMD
14369 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14370 if test -n "$MAGIC_CMD"; then
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14372 $as_echo "$MAGIC_CMD" >&6; }
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14375 $as_echo "no" >&6; }
14382 if test -z "$lt_cv_path_MAGIC_CMD"; then
14383 if test -n "$ac_tool_prefix"; then
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14385 $as_echo_n "checking for file... " >&6; }
14386 if ${lt_cv_path_MAGIC_CMD+:} false; then :
14387 $as_echo_n "(cached) " >&6
14391 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14394 lt_save_MAGIC_CMD=$MAGIC_CMD
14395 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14396 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14397 for ac_dir in $ac_dummy; do
14399 test -z "$ac_dir" && ac_dir=.
14400 if test -f "$ac_dir/file"; then
14401 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14402 if test -n "$file_magic_test_file"; then
14403 case $deplibs_check_method in
14405 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14406 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14407 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14408 $EGREP "$file_magic_regex" > /dev/null; then
14413 *** Warning: the command libtool uses to detect shared libraries,
14414 *** $file_magic_cmd, produces output that libtool cannot recognize.
14415 *** The result is that libtool may fail to recognize shared libraries
14416 *** as such. This will affect the creation of libtool libraries that
14417 *** depend on shared libraries, but programs linked with such libtool
14418 *** libraries will work regardless of this problem. Nevertheless, you
14419 *** may want to report the problem to your system manager and/or to
14420 *** bug-libtool@gnu.org
14430 MAGIC_CMD=$lt_save_MAGIC_CMD
14435 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14436 if test -n "$MAGIC_CMD"; then
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14438 $as_echo "$MAGIC_CMD" >&6; }
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14441 $as_echo "no" >&6; }
14454 # Use C for the default configuration in the libtool script
14458 ac_cpp='$CPP $CPPFLAGS'
14459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14464 # Source file extension for C test sources.
14467 # Object file extension for compiled C test sources.
14471 # Code to be used in simple compile tests
14472 lt_simple_compile_test_code="int some_variable = 0;"
14474 # Code to be used in simple link tests
14475 lt_simple_link_test_code='int main(){return(0);}'
14483 # If no C compiler was specified, use CC.
14486 # If no C compiler flags were specified, use CFLAGS.
14487 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14489 # Allow CC to be a program name with arguments.
14492 # Save the default compiler, since it gets overwritten when the other
14493 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14494 compiler_DEFAULT=$CC
14496 # save warnings/boilerplate of simple test code
14497 ac_outfile=conftest.$ac_objext
14498 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14499 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14500 _lt_compiler_boilerplate=`cat conftest.err`
14503 ac_outfile=conftest.$ac_objext
14504 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14505 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14506 _lt_linker_boilerplate=`cat conftest.err`
14511 ## There is no encapsulation within the following macros, do not change
14512 ## the running order or otherwise move them around unless you know exactly
14513 ## what you are doing...
14514 if test -n "$compiler"; then
14516 lt_prog_compiler_no_builtin_flag=
14518 if test yes = "$GCC"; then
14519 case $cc_basename in
14521 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14523 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14527 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14528 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14529 $as_echo_n "(cached) " >&6
14531 lt_cv_prog_compiler_rtti_exceptions=no
14532 ac_outfile=conftest.$ac_objext
14533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14534 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
14535 # Insert the option either (1) after the last *FLAGS variable, or
14536 # (2) before a word containing "conftest.", or (3) at the end.
14537 # Note that $ac_compile itself does not contain backslashes and begins
14538 # with a dollar sign (not a hyphen), so the echo should work correctly.
14539 # The option is referenced via a variable to avoid confusing sed.
14540 lt_compile=`echo "$ac_compile" | $SED \
14541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14543 -e 's:$: $lt_compiler_flag:'`
14544 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14545 (eval "$lt_compile" 2>conftest.err)
14547 cat conftest.err >&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 if (exit $ac_status) && test -s "$ac_outfile"; then
14550 # The compiler can only warn and ignore the option if not recognized
14551 # So say no if there are warnings other than the usual output.
14552 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14554 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14555 lt_cv_prog_compiler_rtti_exceptions=yes
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14562 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14564 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14565 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14577 lt_prog_compiler_wl=
14578 lt_prog_compiler_pic=
14579 lt_prog_compiler_static=
14582 if test yes = "$GCC"; then
14583 lt_prog_compiler_wl='-Wl,'
14584 lt_prog_compiler_static='-static'
14588 # All AIX code is PIC.
14589 if test ia64 = "$host_cpu"; then
14590 # AIX 5 now supports IA64 processor
14591 lt_prog_compiler_static='-Bstatic'
14593 lt_prog_compiler_pic='-fPIC'
14599 # see comment about AmigaOS4 .so support
14600 lt_prog_compiler_pic='-fPIC'
14603 # FIXME: we need at least 68020 code to build shared libraries, but
14604 # adding the '-m68020' flag to GCC prevents building anything better,
14606 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14611 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14612 # PIC is the default for these OSes.
14615 mingw* | cygwin* | pw32* | os2* | cegcc*)
14616 # This hack is so that the source file can tell whether it is being
14617 # built for inclusion in a dll (and should export symbols for example).
14618 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14619 # (--disable-auto-import) libraries
14620 lt_prog_compiler_pic='-DDLL_EXPORT'
14623 lt_prog_compiler_static='$wl-static'
14628 darwin* | rhapsody*)
14629 # PIC is the default on this platform
14630 # Common symbols not allowed in MH_DYLIB files
14631 lt_prog_compiler_pic='-fno-common'
14635 # PIC is the default for Haiku.
14636 # The "-static" flag exists, but is broken.
14637 lt_prog_compiler_static=
14641 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14642 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14643 # sets the default TLS model and affects inlining.
14649 lt_prog_compiler_pic='-fPIC'
14655 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14656 # Instead, we relocate shared libraries at runtime.
14660 # Just because we use GCC doesn't mean we suddenly get shared libraries
14661 # on systems that don't support them.
14662 lt_prog_compiler_can_build_shared=no
14667 # QNX uses GNU C++, but need to define -shared option too, otherwise
14668 # it will coredump.
14669 lt_prog_compiler_pic='-fPIC -shared'
14673 if test -d /usr/nec; then
14674 lt_prog_compiler_pic=-Kconform_pic
14679 lt_prog_compiler_pic='-fPIC'
14683 case $cc_basename in
14684 nvcc*) # Cuda Compiler Driver 2.2
14685 lt_prog_compiler_wl='-Xlinker '
14686 if test -n "$lt_prog_compiler_pic"; then
14687 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14692 # PORTME Check for flag to pass linker flags through the system compiler.
14695 lt_prog_compiler_wl='-Wl,'
14696 if test ia64 = "$host_cpu"; then
14697 # AIX 5 now supports IA64 processor
14698 lt_prog_compiler_static='-Bstatic'
14700 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14704 darwin* | rhapsody*)
14705 # PIC is the default on this platform
14706 # Common symbols not allowed in MH_DYLIB files
14707 lt_prog_compiler_pic='-fno-common'
14708 case $cc_basename in
14710 # NAG Fortran compiler
14711 lt_prog_compiler_wl='-Wl,-Wl,,'
14712 lt_prog_compiler_pic='-PIC'
14713 lt_prog_compiler_static='-Bstatic'
14718 mingw* | cygwin* | pw32* | os2* | cegcc*)
14719 # This hack is so that the source file can tell whether it is being
14720 # built for inclusion in a dll (and should export symbols for example).
14721 lt_prog_compiler_pic='-DDLL_EXPORT'
14724 lt_prog_compiler_static='$wl-static'
14729 hpux9* | hpux10* | hpux11*)
14730 lt_prog_compiler_wl='-Wl,'
14731 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14732 # not for PA HP-UX.
14738 lt_prog_compiler_pic='+Z'
14741 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14742 lt_prog_compiler_static='$wl-a ${wl}archive'
14745 irix5* | irix6* | nonstopux*)
14746 lt_prog_compiler_wl='-Wl,'
14747 # PIC (with -KPIC) is the default.
14748 lt_prog_compiler_static='-non_shared'
14751 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14752 case $cc_basename in
14753 # old Intel for x86_64, which still supported -KPIC.
14755 lt_prog_compiler_wl='-Wl,'
14756 lt_prog_compiler_pic='-KPIC'
14757 lt_prog_compiler_static='-static'
14759 # icc used to be incompatible with GCC.
14760 # ICC 10 doesn't accept -KPIC any more.
14762 lt_prog_compiler_wl='-Wl,'
14763 lt_prog_compiler_pic='-fPIC'
14764 lt_prog_compiler_static='-static'
14766 # Lahey Fortran 8.1.
14768 lt_prog_compiler_wl='-Wl,'
14769 lt_prog_compiler_pic='--shared'
14770 lt_prog_compiler_static='--static'
14773 # NAG Fortran compiler
14774 lt_prog_compiler_wl='-Wl,-Wl,,'
14775 lt_prog_compiler_pic='-PIC'
14776 lt_prog_compiler_static='-Bstatic'
14779 # Fabrice Bellard et al's Tiny C Compiler
14780 lt_prog_compiler_wl='-Wl,'
14781 lt_prog_compiler_pic='-fPIC'
14782 lt_prog_compiler_static='-static'
14784 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14785 # Portland Group compilers (*not* the Pentium gcc compiler,
14786 # which looks to be a dead project)
14787 lt_prog_compiler_wl='-Wl,'
14788 lt_prog_compiler_pic='-fpic'
14789 lt_prog_compiler_static='-Bstatic'
14792 lt_prog_compiler_wl='-Wl,'
14793 # All Alpha code is PIC.
14794 lt_prog_compiler_static='-non_shared'
14796 xl* | bgxl* | bgf* | mpixl*)
14797 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14798 lt_prog_compiler_wl='-Wl,'
14799 lt_prog_compiler_pic='-qpic'
14800 lt_prog_compiler_static='-qstaticlink'
14803 case `$CC -V 2>&1 | sed 5q` in
14804 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14805 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14806 lt_prog_compiler_pic='-KPIC'
14807 lt_prog_compiler_static='-Bstatic'
14808 lt_prog_compiler_wl=''
14810 *Sun\ F* | *Sun*Fortran*)
14811 lt_prog_compiler_pic='-KPIC'
14812 lt_prog_compiler_static='-Bstatic'
14813 lt_prog_compiler_wl='-Qoption ld '
14817 lt_prog_compiler_pic='-KPIC'
14818 lt_prog_compiler_static='-Bstatic'
14819 lt_prog_compiler_wl='-Wl,'
14821 *Intel*\ [CF]*Compiler*)
14822 lt_prog_compiler_wl='-Wl,'
14823 lt_prog_compiler_pic='-fPIC'
14824 lt_prog_compiler_static='-static'
14827 lt_prog_compiler_wl='-Wl,'
14828 lt_prog_compiler_pic='-fpic'
14829 lt_prog_compiler_static='-Bstatic'
14837 lt_prog_compiler_pic='-KPIC'
14838 lt_prog_compiler_static='-Bstatic'
14842 # QNX uses GNU C++, but need to define -shared option too, otherwise
14843 # it will coredump.
14844 lt_prog_compiler_pic='-fPIC -shared'
14847 osf3* | osf4* | osf5*)
14848 lt_prog_compiler_wl='-Wl,'
14849 # All OSF/1 code is PIC.
14850 lt_prog_compiler_static='-non_shared'
14854 lt_prog_compiler_static='-non_shared'
14858 lt_prog_compiler_pic='-KPIC'
14859 lt_prog_compiler_static='-Bstatic'
14860 case $cc_basename in
14861 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14862 lt_prog_compiler_wl='-Qoption ld ';;
14864 lt_prog_compiler_wl='-Wl,';;
14869 lt_prog_compiler_wl='-Qoption ld '
14870 lt_prog_compiler_pic='-PIC'
14871 lt_prog_compiler_static='-Bstatic'
14874 sysv4 | sysv4.2uw2* | sysv4.3*)
14875 lt_prog_compiler_wl='-Wl,'
14876 lt_prog_compiler_pic='-KPIC'
14877 lt_prog_compiler_static='-Bstatic'
14881 if test -d /usr/nec; then
14882 lt_prog_compiler_pic='-Kconform_pic'
14883 lt_prog_compiler_static='-Bstatic'
14887 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14888 lt_prog_compiler_wl='-Wl,'
14889 lt_prog_compiler_pic='-KPIC'
14890 lt_prog_compiler_static='-Bstatic'
14894 lt_prog_compiler_wl='-Wl,'
14895 lt_prog_compiler_can_build_shared=no
14899 lt_prog_compiler_pic='-pic'
14900 lt_prog_compiler_static='-Bstatic'
14904 lt_prog_compiler_can_build_shared=no
14910 # For platforms that do not support PIC, -DPIC is meaningless:
14912 lt_prog_compiler_pic=
14915 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14920 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14921 if ${lt_cv_prog_compiler_pic+:} false; then :
14922 $as_echo_n "(cached) " >&6
14924 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14927 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
14928 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14931 # Check to make sure the PIC flag actually works.
14933 if test -n "$lt_prog_compiler_pic"; then
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14935 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14936 if ${lt_cv_prog_compiler_pic_works+:} false; then :
14937 $as_echo_n "(cached) " >&6
14939 lt_cv_prog_compiler_pic_works=no
14940 ac_outfile=conftest.$ac_objext
14941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14942 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14943 # Insert the option either (1) after the last *FLAGS variable, or
14944 # (2) before a word containing "conftest.", or (3) at the end.
14945 # Note that $ac_compile itself does not contain backslashes and begins
14946 # with a dollar sign (not a hyphen), so the echo should work correctly.
14947 # The option is referenced via a variable to avoid confusing sed.
14948 lt_compile=`echo "$ac_compile" | $SED \
14949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14951 -e 's:$: $lt_compiler_flag:'`
14952 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14953 (eval "$lt_compile" 2>conftest.err)
14955 cat conftest.err >&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 if (exit $ac_status) && test -s "$ac_outfile"; then
14958 # The compiler can only warn and ignore the option if not recognized
14959 # So say no if there are warnings other than the usual output.
14960 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14961 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14962 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14963 lt_cv_prog_compiler_pic_works=yes
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14970 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14972 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14973 case $lt_prog_compiler_pic in
14975 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14978 lt_prog_compiler_pic=
14979 lt_prog_compiler_can_build_shared=no
14995 # Check to make sure the static flag actually works.
14997 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14999 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15000 if ${lt_cv_prog_compiler_static_works+:} false; then :
15001 $as_echo_n "(cached) " >&6
15003 lt_cv_prog_compiler_static_works=no
15004 save_LDFLAGS=$LDFLAGS
15005 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15006 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15007 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15008 # The linker can only warn and ignore the option if not recognized
15009 # So say no if there are warnings
15010 if test -s conftest.err; then
15011 # Append any errors to the config.log.
15012 cat conftest.err 1>&5
15013 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15015 if diff conftest.exp conftest.er2 >/dev/null; then
15016 lt_cv_prog_compiler_static_works=yes
15019 lt_cv_prog_compiler_static_works=yes
15023 LDFLAGS=$save_LDFLAGS
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15027 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15029 if test yes = "$lt_cv_prog_compiler_static_works"; then
15032 lt_prog_compiler_static=
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15042 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15043 if ${lt_cv_prog_compiler_c_o+:} false; then :
15044 $as_echo_n "(cached) " >&6
15046 lt_cv_prog_compiler_c_o=no
15047 $RM -r conftest 2>/dev/null
15051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15053 lt_compiler_flag="-o out/conftest2.$ac_objext"
15054 # Insert the option either (1) after the last *FLAGS variable, or
15055 # (2) before a word containing "conftest.", or (3) at the end.
15056 # Note that $ac_compile itself does not contain backslashes and begins
15057 # with a dollar sign (not a hyphen), so the echo should work correctly.
15058 lt_compile=`echo "$ac_compile" | $SED \
15059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15061 -e 's:$: $lt_compiler_flag:'`
15062 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15063 (eval "$lt_compile" 2>out/conftest.err)
15065 cat out/conftest.err >&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15069 # The compiler can only warn and ignore the option if not recognized
15070 # So say no if there are warnings
15071 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15072 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15073 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15074 lt_cv_prog_compiler_c_o=yes
15079 # SGI C++ compiler will create directory out/ii_files/ for
15080 # template instantiation
15081 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15082 $RM out/* && rmdir out
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15089 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15097 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15098 if ${lt_cv_prog_compiler_c_o+:} false; then :
15099 $as_echo_n "(cached) " >&6
15101 lt_cv_prog_compiler_c_o=no
15102 $RM -r conftest 2>/dev/null
15106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15108 lt_compiler_flag="-o out/conftest2.$ac_objext"
15109 # Insert the option either (1) after the last *FLAGS variable, or
15110 # (2) before a word containing "conftest.", or (3) at the end.
15111 # Note that $ac_compile itself does not contain backslashes and begins
15112 # with a dollar sign (not a hyphen), so the echo should work correctly.
15113 lt_compile=`echo "$ac_compile" | $SED \
15114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15116 -e 's:$: $lt_compiler_flag:'`
15117 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15118 (eval "$lt_compile" 2>out/conftest.err)
15120 cat out/conftest.err >&5
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15124 # The compiler can only warn and ignore the option if not recognized
15125 # So say no if there are warnings
15126 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15127 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15128 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15129 lt_cv_prog_compiler_c_o=yes
15134 # SGI C++ compiler will create directory out/ii_files/ for
15135 # template instantiation
15136 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15137 $RM out/* && rmdir out
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15144 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15149 hard_links=nottested
15150 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15151 # do not overwrite the value of need_locks provided by the user
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15153 $as_echo_n "checking if we can lock with hard links... " >&6; }
15156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15158 ln conftest.a conftest.b 2>&5 || hard_links=no
15159 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15161 $as_echo "$hard_links" >&6; }
15162 if test no = "$hard_links"; then
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15164 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15177 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15180 allow_undefined_flag=
15181 always_export_symbols=no
15183 archive_expsym_cmds=
15184 compiler_needs_object=no
15185 enable_shared_with_static_runtimes=no
15186 export_dynamic_flag_spec=
15187 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15188 hardcode_automatic=no
15190 hardcode_direct_absolute=no
15191 hardcode_libdir_flag_spec=
15192 hardcode_libdir_separator=
15193 hardcode_minus_L=no
15194 hardcode_shlibpath_var=unsupported
15196 link_all_deplibs=unknown
15198 module_expsym_cmds=
15199 old_archive_from_new_cmds=
15200 old_archive_from_expsyms_cmds=
15201 thread_safe_flag_spec=
15202 whole_archive_flag_spec=
15203 # include_expsyms should be a list of space-separated symbols to be *always*
15204 # included in the symbol list
15206 # exclude_expsyms can be an extended regexp of symbols to exclude
15207 # it will be wrapped by ' (' and ')$', so one must not match beginning or
15208 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15209 # as well as any symbol that contains 'd'.
15210 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15211 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15212 # platforms (ab)use it in PIC code, but their linkers get confused if
15213 # the symbol is explicitly referenced. Since portable code cannot
15214 # rely on this symbol name, it's probably fine to never include it in
15215 # preloaded symbol tables.
15216 # Exclude shared library initialization/finalization symbols.
15217 extract_expsyms_cmds=
15220 cygwin* | mingw* | pw32* | cegcc*)
15221 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15222 # When not using gcc, we currently assume that we are using
15223 # Microsoft Visual C++.
15224 if test yes != "$GCC"; then
15229 # we just hope/assume this is gcc and not c89 (= MSVC++)
15232 openbsd* | bitrig*)
15239 # On some targets, GNU ld is compatible enough with the native linker
15240 # that we're better off using the native interface for both.
15241 lt_use_gnu_ld_interface=no
15242 if test yes = "$with_gnu_ld"; then
15245 # The AIX port of GNU ld has always aspired to compatibility
15246 # with the native linker. However, as the warning in the GNU ld
15247 # block says, versions before 2.19.5* couldn't really create working
15248 # shared libraries, regardless of the interface used.
15249 case `$LD -v 2>&1` in
15250 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15251 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15252 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15254 lt_use_gnu_ld_interface=yes
15259 lt_use_gnu_ld_interface=yes
15264 if test yes = "$lt_use_gnu_ld_interface"; then
15265 # If archive_cmds runs LD, not CC, wlarc should be empty
15268 # Set some defaults for GNU ld with shared library support. These
15269 # are reset later if shared libraries are not supported. Putting them
15270 # here allows them to be overridden if necessary.
15271 runpath_var=LD_RUN_PATH
15272 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15273 export_dynamic_flag_spec='$wl--export-dynamic'
15274 # ancient GNU ld didn't support --whole-archive et. al.
15275 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15276 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15278 whole_archive_flag_spec=
15280 supports_anon_versioning=no
15281 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15282 *GNU\ gold*) supports_anon_versioning=yes ;;
15283 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15284 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15285 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15286 *\ 2.11.*) ;; # other 2.11 versions
15287 *) supports_anon_versioning=yes ;;
15290 # See if GNU ld supports shared libraries.
15293 # On AIX/PPC, the GNU linker is very broken
15294 if test ia64 != "$host_cpu"; then
15298 *** Warning: the GNU linker, at least up to release 2.19, is reported
15299 *** to be unable to reliably create shared libraries on AIX.
15300 *** Therefore, libtool is disabling shared libraries support. If you
15301 *** really care for shared libraries, you may want to install binutils
15302 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15303 *** You will then need to restart the configuration process.
15312 # see comment about AmigaOS4 .so support
15313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15314 archive_expsym_cmds=''
15317 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)'
15318 hardcode_libdir_flag_spec='-L$libdir'
15319 hardcode_minus_L=yes
15325 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15326 allow_undefined_flag=unsupported
15327 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15328 # support --undefined. This deserves some investigation. FIXME
15329 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15335 cygwin* | mingw* | pw32* | cegcc*)
15336 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15337 # as there is no search path for DLLs.
15338 hardcode_libdir_flag_spec='-L$libdir'
15339 export_dynamic_flag_spec='$wl--export-all-symbols'
15340 allow_undefined_flag=unsupported
15341 always_export_symbols=no
15342 enable_shared_with_static_runtimes=yes
15343 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'
15344 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15346 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15348 # If the export-symbols file already is a .def file, use it as
15349 # is; otherwise, prepend EXPORTS...
15350 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15351 cp $export_symbols $output_objdir/$soname.def;
15353 echo EXPORTS > $output_objdir/$soname.def;
15354 cat $export_symbols >> $output_objdir/$soname.def;
15356 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15364 link_all_deplibs=yes
15368 hardcode_libdir_flag_spec='-L$libdir'
15369 hardcode_minus_L=yes
15370 allow_undefined_flag=unsupported
15372 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15373 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15374 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15375 $ECHO EXPORTS >> $output_objdir/$libname.def~
15376 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15377 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15378 emximp -o $lib $output_objdir/$libname.def'
15379 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15380 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15381 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15382 $ECHO EXPORTS >> $output_objdir/$libname.def~
15383 prefix_cmds="$SED"~
15384 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15385 prefix_cmds="$prefix_cmds -e 1d";
15387 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15388 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15389 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15390 emximp -o $lib $output_objdir/$libname.def'
15391 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15392 enable_shared_with_static_runtimes=yes
15397 hardcode_shlibpath_var=no
15398 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15399 export_dynamic_flag_spec='$wl-E'
15400 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15401 # Instead, shared libraries are loaded at an image base (0x10000000 by
15402 # default) and relocated if they conflict, which is a slow very memory
15403 # consuming and fragmenting process. To avoid this, we pick a random,
15404 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15405 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15406 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15407 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'
15410 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15412 if test linux-dietlibc = "$host_os"; then
15413 case $cc_basename in
15414 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15417 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15418 && test no = "$tmp_diet"
15420 tmp_addflag=' $pic_flag'
15421 tmp_sharedflag='-shared'
15422 case $cc_basename,$host_cpu in
15423 pgcc*) # Portland Group C compiler
15424 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'
15425 tmp_addflag=' $pic_flag'
15427 pgf77* | pgf90* | pgf95* | pgfortran*)
15428 # Portland Group f77 and f90 compilers
15429 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'
15430 tmp_addflag=' $pic_flag -Mnomain' ;;
15431 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15432 tmp_addflag=' -i_dynamic' ;;
15433 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15434 tmp_addflag=' -i_dynamic -nofor_main' ;;
15435 ifc* | ifort*) # Intel Fortran compiler
15436 tmp_addflag=' -nofor_main' ;;
15437 lf95*) # Lahey Fortran 8.1
15438 whole_archive_flag_spec=
15439 tmp_sharedflag='--shared' ;;
15440 nagfor*) # NAGFOR 5.3
15441 tmp_sharedflag='-Wl,-shared' ;;
15442 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15443 tmp_sharedflag='-qmkshrobj'
15445 nvcc*) # Cuda Compiler Driver 2.2
15446 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'
15447 compiler_needs_object=yes
15450 case `$CC -V 2>&1 | sed 5q` in
15451 *Sun\ C*) # Sun C 5.9
15452 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'
15453 compiler_needs_object=yes
15454 tmp_sharedflag='-G' ;;
15455 *Sun\ F*) # Sun Fortran 8.3
15456 tmp_sharedflag='-G' ;;
15458 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15460 if test yes = "$supports_anon_versioning"; then
15461 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15462 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15463 echo "local: *; };" >> $output_objdir/$libname.ver~
15464 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15467 case $cc_basename in
15469 export_dynamic_flag_spec='-rdynamic'
15471 xlf* | bgf* | bgxlf* | mpixlf*)
15472 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15473 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15474 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15475 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15476 if test yes = "$supports_anon_versioning"; then
15477 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15478 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15479 echo "local: *; };" >> $output_objdir/$libname.ver~
15480 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15490 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15491 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15494 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15495 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15500 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15504 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15505 *** create shared libraries on Solaris systems. Therefore, libtool
15506 *** is disabling shared libraries support. We urge you to upgrade GNU
15507 *** binutils to release 2.9.1 or newer. Another option is to modify
15508 *** your PATH or compiler configuration so that the native linker is
15509 *** used, and then restart.
15512 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15513 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15514 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15520 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15521 case `$LD -v 2>&1` in
15522 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15526 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15527 *** reliably create shared libraries on SCO systems. Therefore, libtool
15528 *** is disabling shared libraries support. We urge you to upgrade GNU
15529 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15530 *** your PATH or compiler configuration so that the native linker is
15531 *** used, and then restart.
15536 # For security reasons, it is highly recommended that you always
15537 # use absolute paths for naming shared libraries, and exclude the
15538 # DT_RUNPATH tag from executables and libraries. But doing so
15539 # requires that you compile everything twice, which is a pain.
15540 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15541 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15543 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15552 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15554 hardcode_direct=yes
15555 hardcode_shlibpath_var=no
15559 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15560 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15561 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15568 if test no = "$ld_shlibs"; then
15570 hardcode_libdir_flag_spec=
15571 export_dynamic_flag_spec=
15572 whole_archive_flag_spec=
15575 # PORTME fill in a description of your system's linker (not GNU ld)
15578 allow_undefined_flag=unsupported
15579 always_export_symbols=yes
15580 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'
15581 # Note: this linker hardcodes the directories in LIBPATH if there
15582 # are no directories specified by -L.
15583 hardcode_minus_L=yes
15584 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15585 # Neither direct hardcoding nor static linking is supported with a
15587 hardcode_direct=unsupported
15592 if test ia64 = "$host_cpu"; then
15593 # On IA64, the linker does run time linking by default, so we don't
15594 # have to do anything special.
15595 aix_use_runtimelinking=no
15596 exp_sym_flag='-Bexport'
15599 # If we're using GNU nm, then we don't want the "-C" option.
15600 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15601 # Without the "-l" option, or with the "-B" option, AIX nm treats
15602 # weak defined symbols like other global defined symbols, whereas
15603 # GNU nm marks them as "W".
15604 # While the 'weak' keyword is ignored in the Export File, we need
15605 # it in the Import File for the 'aix-soname' feature, so we have
15606 # to replace the "-B" option with "-P" for AIX nm.
15607 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15608 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15610 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15612 aix_use_runtimelinking=no
15614 # Test if we are trying to use run time linking or normal
15615 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15616 # have runtime linking enabled, and use it for executables.
15617 # For shared libraries, we enable/disable runtime linking
15618 # depending on the kind of the shared library created -
15619 # when "with_aix_soname,aix_use_runtimelinking" is:
15620 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15621 # "aix,yes" lib.so shared, rtl:yes, for executables
15622 # lib.a static archive
15623 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15624 # lib.a(lib.so.V) shared, rtl:no, for executables
15625 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15626 # lib.a(lib.so.V) shared, rtl:no
15627 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15628 # lib.a static archive
15629 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15630 for ld_flag in $LDFLAGS; do
15631 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15632 aix_use_runtimelinking=yes
15636 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15637 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15638 # so we don't have lib.a shared libs to link our executables.
15639 # We have to force runtime linking in this case.
15640 aix_use_runtimelinking=yes
15641 LDFLAGS="$LDFLAGS -Wl,-brtl"
15646 exp_sym_flag='-bexport'
15647 no_entry_flag='-bnoentry'
15650 # When large executables or shared objects are built, AIX ld can
15651 # have problems creating the table of contents. If linking a library
15652 # or program results in "error TOC overflow" add -mminimal-toc to
15653 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15654 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15657 hardcode_direct=yes
15658 hardcode_direct_absolute=yes
15659 hardcode_libdir_separator=':'
15660 link_all_deplibs=yes
15661 file_list_spec='$wl-f,'
15662 case $with_aix_soname,$aix_use_runtimelinking in
15663 aix,*) ;; # traditional, no import file
15664 svr4,* | *,yes) # use import file
15665 # The Import File defines what to hardcode.
15667 hardcode_direct_absolute=no
15671 if test yes = "$GCC"; then
15672 case $host_os in aix4.[012]|aix4.[012].*)
15673 # We only want to do this on AIX 4.2 and lower, the check
15674 # below for broken collect2 doesn't work under 4.3+
15675 collect2name=`$CC -print-prog-name=collect2`
15676 if test -f "$collect2name" &&
15677 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15679 # We have reworked collect2
15682 # We have old collect2
15683 hardcode_direct=unsupported
15684 # It fails to find uninstalled libraries when the uninstalled
15685 # path is not listed in the libpath. Setting hardcode_minus_L
15686 # to unsupported forces relinking
15687 hardcode_minus_L=yes
15688 hardcode_libdir_flag_spec='-L$libdir'
15689 hardcode_libdir_separator=
15693 shared_flag='-shared'
15694 if test yes = "$aix_use_runtimelinking"; then
15695 shared_flag="$shared_flag "'$wl-G'
15697 # Need to ensure runtime linking is disabled for the traditional
15698 # shared library, or the linker may eventually find shared libraries
15699 # /with/ Import File - we do not want to mix them.
15700 shared_flag_aix='-shared'
15701 shared_flag_svr4='-shared $wl-G'
15704 if test ia64 = "$host_cpu"; then
15705 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15706 # chokes on -Wl,-G. The following line is correct:
15709 if test yes = "$aix_use_runtimelinking"; then
15710 shared_flag='$wl-G'
15712 shared_flag='$wl-bM:SRE'
15714 shared_flag_aix='$wl-bM:SRE'
15715 shared_flag_svr4='$wl-G'
15719 export_dynamic_flag_spec='$wl-bexpall'
15720 # It seems that -bexpall does not export symbols beginning with
15721 # underscore (_), so it is better to generate a list of symbols to export.
15722 always_export_symbols=yes
15723 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15724 # Warning - without using the other runtime loading flags (-brtl),
15725 # -berok will link without error, but may produce a broken library.
15726 allow_undefined_flag='-berok'
15727 # Determine the default libpath from the value encoded in an
15728 # empty executable.
15729 if test set = "${lt_cv_aix_libpath+set}"; then
15730 aix_libpath=$lt_cv_aix_libpath
15732 if ${lt_cv_aix_libpath_+:} false; then :
15733 $as_echo_n "(cached) " >&6
15735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15736 /* end confdefs.h. */
15746 if ac_fn_c_try_link "$LINENO"; then :
15748 lt_aix_libpath_sed='
15749 /Import File Strings/,/^$/ {
15751 s/^0 *\([^ ]*\) *$/\1/
15755 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15756 # Check for a 64-bit object if we didn't find anything.
15757 if test -z "$lt_cv_aix_libpath_"; then
15758 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15761 rm -f core conftest.err conftest.$ac_objext \
15762 conftest$ac_exeext conftest.$ac_ext
15763 if test -z "$lt_cv_aix_libpath_"; then
15764 lt_cv_aix_libpath_=/usr/lib:/lib
15769 aix_libpath=$lt_cv_aix_libpath_
15772 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15773 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15775 if test ia64 = "$host_cpu"; then
15776 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15777 allow_undefined_flag="-z nodefs"
15778 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"
15780 # Determine the default libpath from the value encoded in an
15781 # empty executable.
15782 if test set = "${lt_cv_aix_libpath+set}"; then
15783 aix_libpath=$lt_cv_aix_libpath
15785 if ${lt_cv_aix_libpath_+:} false; then :
15786 $as_echo_n "(cached) " >&6
15788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h. */
15799 if ac_fn_c_try_link "$LINENO"; then :
15801 lt_aix_libpath_sed='
15802 /Import File Strings/,/^$/ {
15804 s/^0 *\([^ ]*\) *$/\1/
15808 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15809 # Check for a 64-bit object if we didn't find anything.
15810 if test -z "$lt_cv_aix_libpath_"; then
15811 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15814 rm -f core conftest.err conftest.$ac_objext \
15815 conftest$ac_exeext conftest.$ac_ext
15816 if test -z "$lt_cv_aix_libpath_"; then
15817 lt_cv_aix_libpath_=/usr/lib:/lib
15822 aix_libpath=$lt_cv_aix_libpath_
15825 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15826 # Warning - without using the other run time loading flags,
15827 # -berok will link without error, but may produce a broken library.
15828 no_undefined_flag=' $wl-bernotok'
15829 allow_undefined_flag=' $wl-berok'
15830 if test yes = "$with_gnu_ld"; then
15831 # We only use this code for GNU lds that support --whole-archive.
15832 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15834 # Exported symbols can be pulled into shared objects from archives
15835 whole_archive_flag_spec='$convenience'
15837 archive_cmds_need_lc=yes
15838 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15839 # -brtl affects multiple linker settings, -berok does not and is overridden later
15840 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15841 if test svr4 != "$with_aix_soname"; then
15842 # This is similar to how AIX traditionally builds its shared libraries.
15843 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15845 if test aix != "$with_aix_soname"; then
15846 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15848 # used by -dlpreopen to get the symbols
15849 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15851 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
15859 # see comment about AmigaOS4 .so support
15860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15861 archive_expsym_cmds=''
15864 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)'
15865 hardcode_libdir_flag_spec='-L$libdir'
15866 hardcode_minus_L=yes
15872 export_dynamic_flag_spec=-rdynamic
15875 cygwin* | mingw* | pw32* | cegcc*)
15876 # When not using gcc, we currently assume that we are using
15877 # Microsoft Visual C++.
15878 # hardcode_libdir_flag_spec is actually meaningless, as there is
15879 # no search path for DLLs.
15880 case $cc_basename in
15883 hardcode_libdir_flag_spec=' '
15884 allow_undefined_flag=unsupported
15885 always_export_symbols=yes
15887 # Tell ltmain to make .lib files, not .a files.
15889 # Tell ltmain to make .dll files, not .so files.
15891 # FIXME: Setting linknames here is a bad hack.
15892 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15893 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15894 cp "$export_symbols" "$output_objdir/$soname.def";
15895 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15897 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15899 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15901 # The linker will not automatically build a static lib if we build a DLL.
15902 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15903 enable_shared_with_static_runtimes=yes
15904 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15905 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15907 old_postinstall_cmds='chmod 644 $oldlib'
15908 postlink_cmds='lt_outputfile="@OUTPUT@"~
15909 lt_tool_outputfile="@TOOL_OUTPUT@"~
15910 case $lt_outputfile in
15913 lt_outputfile=$lt_outputfile.exe
15914 lt_tool_outputfile=$lt_tool_outputfile.exe
15917 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15918 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15919 $RM "$lt_outputfile.manifest";
15923 # Assume MSVC wrapper
15924 hardcode_libdir_flag_spec=' '
15925 allow_undefined_flag=unsupported
15926 # Tell ltmain to make .lib files, not .a files.
15928 # Tell ltmain to make .dll files, not .so files.
15930 # FIXME: Setting linknames here is a bad hack.
15931 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15932 # The linker will automatically build a .lib file if we build a DLL.
15933 old_archive_from_new_cmds='true'
15934 # FIXME: Should let the user specify the lib program.
15935 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15936 enable_shared_with_static_runtimes=yes
15941 darwin* | rhapsody*)
15944 archive_cmds_need_lc=no
15946 hardcode_automatic=yes
15947 hardcode_shlibpath_var=unsupported
15948 if test yes = "$lt_cv_ld_force_load"; then
15949 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\"`'
15952 whole_archive_flag_spec=''
15954 link_all_deplibs=yes
15955 allow_undefined_flag=$_lt_dar_allow_undefined
15956 case $cc_basename in
15957 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15958 *) _lt_dar_can_shared=$GCC ;;
15960 if test yes = "$_lt_dar_can_shared"; then
15961 output_verbose_link_cmd=func_echo_all
15962 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15963 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15964 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"
15965 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"
15974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15975 hardcode_libdir_flag_spec='-L$libdir'
15976 hardcode_shlibpath_var=no
15979 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15980 # support. Future versions do this automatically, but an explicit c++rt0.o
15981 # does not break anything, and helps significantly (at the cost of a little
15984 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15985 hardcode_libdir_flag_spec='-R$libdir'
15986 hardcode_direct=yes
15987 hardcode_shlibpath_var=no
15990 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15992 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15993 hardcode_direct=yes
15994 hardcode_minus_L=yes
15995 hardcode_shlibpath_var=no
15998 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15999 freebsd* | dragonfly*)
16000 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16001 hardcode_libdir_flag_spec='-R$libdir'
16002 hardcode_direct=yes
16003 hardcode_shlibpath_var=no
16007 if test yes = "$GCC"; then
16008 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16010 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16012 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16013 hardcode_libdir_separator=:
16014 hardcode_direct=yes
16016 # hardcode_minus_L: Not really in the search PATH,
16017 # but as the default location of the library.
16018 hardcode_minus_L=yes
16019 export_dynamic_flag_spec='$wl-E'
16023 if test yes,no = "$GCC,$with_gnu_ld"; then
16024 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16026 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16028 if test no = "$with_gnu_ld"; then
16029 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16030 hardcode_libdir_separator=:
16031 hardcode_direct=yes
16032 hardcode_direct_absolute=yes
16033 export_dynamic_flag_spec='$wl-E'
16034 # hardcode_minus_L: Not really in the search PATH,
16035 # but as the default location of the library.
16036 hardcode_minus_L=yes
16041 if test yes,no = "$GCC,$with_gnu_ld"; then
16044 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16047 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16050 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16056 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16059 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16063 # Older versions of the 11.00 compiler do not understand -b yet
16064 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16066 $as_echo_n "checking if $CC understands -b... " >&6; }
16067 if ${lt_cv_prog_compiler__b+:} false; then :
16068 $as_echo_n "(cached) " >&6
16070 lt_cv_prog_compiler__b=no
16071 save_LDFLAGS=$LDFLAGS
16072 LDFLAGS="$LDFLAGS -b"
16073 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16074 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16075 # The linker can only warn and ignore the option if not recognized
16076 # So say no if there are warnings
16077 if test -s conftest.err; then
16078 # Append any errors to the config.log.
16079 cat conftest.err 1>&5
16080 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16082 if diff conftest.exp conftest.er2 >/dev/null; then
16083 lt_cv_prog_compiler__b=yes
16086 lt_cv_prog_compiler__b=yes
16090 LDFLAGS=$save_LDFLAGS
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16094 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16096 if test yes = "$lt_cv_prog_compiler__b"; then
16097 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16099 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16105 if test no = "$with_gnu_ld"; then
16106 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16107 hardcode_libdir_separator=:
16112 hardcode_shlibpath_var=no
16115 hardcode_direct=yes
16116 hardcode_direct_absolute=yes
16117 export_dynamic_flag_spec='$wl-E'
16119 # hardcode_minus_L: Not really in the search PATH,
16120 # but as the default location of the library.
16121 hardcode_minus_L=yes
16127 irix5* | irix6* | nonstopux*)
16128 if test yes = "$GCC"; then
16129 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'
16130 # Try to use the -exported_symbol ld option, if it does not
16131 # work, assume that -exports_file does not work either and
16132 # implicitly export all symbols.
16133 # This should be the same for all languages, so no per-tag cache variable.
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16135 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16136 if ${lt_cv_irix_exported_symbol+:} false; then :
16137 $as_echo_n "(cached) " >&6
16139 save_LDFLAGS=$LDFLAGS
16140 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16142 /* end confdefs.h. */
16143 int foo (void) { return 0; }
16145 if ac_fn_c_try_link "$LINENO"; then :
16146 lt_cv_irix_exported_symbol=yes
16148 lt_cv_irix_exported_symbol=no
16150 rm -f core conftest.err conftest.$ac_objext \
16151 conftest$ac_exeext conftest.$ac_ext
16152 LDFLAGS=$save_LDFLAGS
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16155 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
16156 if test yes = "$lt_cv_irix_exported_symbol"; then
16157 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'
16160 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'
16161 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'
16163 archive_cmds_need_lc='no'
16164 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16165 hardcode_libdir_separator=:
16167 link_all_deplibs=yes
16171 case $cc_basename in
16173 # Fabrice Bellard et al's Tiny C Compiler
16175 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16181 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16182 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16184 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16186 hardcode_libdir_flag_spec='-R$libdir'
16187 hardcode_direct=yes
16188 hardcode_shlibpath_var=no
16192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16193 hardcode_direct=yes
16194 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16195 hardcode_libdir_separator=:
16196 hardcode_shlibpath_var=no
16202 openbsd* | bitrig*)
16203 if test -f /usr/libexec/ld.so; then
16204 hardcode_direct=yes
16205 hardcode_shlibpath_var=no
16206 hardcode_direct_absolute=yes
16207 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16208 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16209 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16210 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16211 export_dynamic_flag_spec='$wl-E'
16213 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16214 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16222 hardcode_libdir_flag_spec='-L$libdir'
16223 hardcode_minus_L=yes
16224 allow_undefined_flag=unsupported
16226 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16227 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16228 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16229 $ECHO EXPORTS >> $output_objdir/$libname.def~
16230 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16231 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16232 emximp -o $lib $output_objdir/$libname.def'
16233 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16234 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16235 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16236 $ECHO EXPORTS >> $output_objdir/$libname.def~
16237 prefix_cmds="$SED"~
16238 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16239 prefix_cmds="$prefix_cmds -e 1d";
16241 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16242 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16243 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16244 emximp -o $lib $output_objdir/$libname.def'
16245 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16246 enable_shared_with_static_runtimes=yes
16250 if test yes = "$GCC"; then
16251 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16252 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'
16254 allow_undefined_flag=' -expect_unresolved \*'
16255 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'
16257 archive_cmds_need_lc='no'
16258 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16259 hardcode_libdir_separator=:
16262 osf4* | osf5*) # as osf3* with the addition of -msym flag
16263 if test yes = "$GCC"; then
16264 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16265 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'
16266 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16268 allow_undefined_flag=' -expect_unresolved \*'
16269 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'
16270 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~
16271 $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'
16273 # Both c and cxx compiler support -rpath directly
16274 hardcode_libdir_flag_spec='-rpath $libdir'
16276 archive_cmds_need_lc='no'
16277 hardcode_libdir_separator=:
16281 no_undefined_flag=' -z defs'
16282 if test yes = "$GCC"; then
16284 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16285 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16286 $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'
16288 case `$CC -V 2>&1` in
16291 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16292 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16293 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16297 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16298 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16299 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16303 hardcode_libdir_flag_spec='-R$libdir'
16304 hardcode_shlibpath_var=no
16306 solaris2.[0-5] | solaris2.[0-5].*) ;;
16308 # The compiler driver will combine and reorder linker options,
16309 # but understands '-z linker_flag'. GCC discards it without '$wl',
16310 # but is careful enough not to reorder.
16311 # Supported since Solaris 2.6 (maybe 2.5.1?)
16312 if test yes = "$GCC"; then
16313 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16315 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16319 link_all_deplibs=yes
16323 if test sequent = "$host_vendor"; then
16324 # Use $CC to link under sequent, because it throws in some extra .o
16325 # files that make .init and .fini sections work.
16326 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16328 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16330 hardcode_libdir_flag_spec='-L$libdir'
16331 hardcode_direct=yes
16332 hardcode_minus_L=yes
16333 hardcode_shlibpath_var=no
16337 case $host_vendor in
16339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16340 hardcode_direct=yes # is this really true???
16343 ## LD is ld it makes a PLAMLIB
16344 ## CC just makes a GrossModule.
16345 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16346 reload_cmds='$CC -r -o $output$reload_objs'
16350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16351 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16354 runpath_var='LD_RUN_PATH'
16355 hardcode_shlibpath_var=no
16359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16360 hardcode_shlibpath_var=no
16361 export_dynamic_flag_spec='-Bexport'
16365 if test -d /usr/nec; then
16366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16367 hardcode_shlibpath_var=no
16368 runpath_var=LD_RUN_PATH
16369 hardcode_runpath_var=yes
16374 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16375 no_undefined_flag='$wl-z,text'
16376 archive_cmds_need_lc=no
16377 hardcode_shlibpath_var=no
16378 runpath_var='LD_RUN_PATH'
16380 if test yes = "$GCC"; then
16381 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16382 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16384 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16385 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16389 sysv5* | sco3.2v5* | sco5v6*)
16390 # Note: We CANNOT use -z defs as we might desire, because we do not
16391 # link with -lc, and that would cause any symbols used from libc to
16392 # always be unresolved, which means just about no library would
16393 # ever link correctly. If we're not using GNU ld we use -z text
16394 # though, which does catch some bad symbols but isn't as heavy-handed
16396 no_undefined_flag='$wl-z,text'
16397 allow_undefined_flag='$wl-z,nodefs'
16398 archive_cmds_need_lc=no
16399 hardcode_shlibpath_var=no
16400 hardcode_libdir_flag_spec='$wl-R,$libdir'
16401 hardcode_libdir_separator=':'
16402 link_all_deplibs=yes
16403 export_dynamic_flag_spec='$wl-Bexport'
16404 runpath_var='LD_RUN_PATH'
16406 if test yes = "$GCC"; then
16407 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16408 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16410 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16411 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16417 hardcode_libdir_flag_spec='-L$libdir'
16418 hardcode_shlibpath_var=no
16426 if test sni = "$host_vendor"; then
16428 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16429 export_dynamic_flag_spec='$wl-Blargedynsym'
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16436 $as_echo "$ld_shlibs" >&6; }
16437 test no = "$ld_shlibs" && can_build_shared=no
16439 with_gnu_ld=$with_gnu_ld
16456 # Do we need to explicitly link libc?
16458 case "x$archive_cmds_need_lc" in
16460 # Assume -lc should be added
16461 archive_cmds_need_lc=yes
16463 if test yes,yes = "$GCC,$enable_shared"; then
16464 case $archive_cmds in
16466 # FIXME: we may have to deal with multi-command sequences.
16469 # Test whether the compiler implicitly links with -lc since on some
16470 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16471 # to ld, don't add -lc before -lgcc.
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16473 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16474 if ${lt_cv_archive_cmds_need_lc+:} false; then :
16475 $as_echo_n "(cached) " >&6
16478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16481 (eval $ac_compile) 2>&5
16483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16484 test $ac_status = 0; } 2>conftest.err; then
16487 libobjs=conftest.$ac_objext
16489 wl=$lt_prog_compiler_wl
16490 pic_flag=$lt_prog_compiler_pic
16496 lt_save_allow_undefined_flag=$allow_undefined_flag
16497 allow_undefined_flag=
16498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16499 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16502 test $ac_status = 0; }
16504 lt_cv_archive_cmds_need_lc=no
16506 lt_cv_archive_cmds_need_lc=yes
16508 allow_undefined_flag=$lt_save_allow_undefined_flag
16510 cat conftest.err 1>&5
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16516 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16517 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16676 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16678 if test yes = "$GCC"; then
16680 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16681 *) lt_awk_arg='/^libraries:/' ;;
16684 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16685 *) lt_sed_strip_eq='s|=/|/|g' ;;
16687 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16688 case $lt_search_path_spec in
16690 # if the path contains ";" then we assume it to be the separator
16691 # otherwise default to the standard path separator (i.e. ":") - it is
16692 # assumed that no part of a normal pathname contains ";" but that should
16693 # okay in the real world where ";" in dirpaths is itself problematic.
16694 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16697 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16700 # Ok, now we have the path, separated by spaces, we can step through it
16701 # and add multilib dir if necessary...
16702 lt_tmp_lt_search_path_spec=
16703 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16704 # ...but if some path component already ends with the multilib dir we assume
16705 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16706 case "$lt_multi_os_dir; $lt_search_path_spec " in
16707 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16711 for lt_sys_path in $lt_search_path_spec; do
16712 if test -d "$lt_sys_path$lt_multi_os_dir"; then
16713 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16714 elif test -n "$lt_multi_os_dir"; then
16715 test -d "$lt_sys_path" && \
16716 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16719 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16720 BEGIN {RS = " "; FS = "/|\n";} {
16723 for (lt_i = NF; lt_i > 0; lt_i--) {
16724 if ($lt_i != "" && $lt_i != ".") {
16725 if ($lt_i == "..") {
16728 if (lt_count == 0) {
16729 lt_foo = "/" $lt_i lt_foo;
16736 if (lt_foo != "") { lt_freq[lt_foo]++; }
16737 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16739 # AWK program above erroneously prepends '/' to C:/dos/paths
16742 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16743 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16745 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16747 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16749 library_names_spec=
16750 libname_spec='lib$name'
16754 postuninstall_cmds=
16758 shlibpath_overrides_runpath=unknown
16760 dynamic_linker="$host_os ld.so"
16761 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16762 need_lib_prefix=unknown
16763 hardcode_into_libs=no
16765 # when you set need_version to no, make sure it does not cause -set_version
16766 # flags to be left without arguments
16767 need_version=unknown
16773 version_type=linux # correct to gnu/linux during the next big refactor
16774 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16775 shlibpath_var=LIBPATH
16777 # AIX 3 has no versioning support, so we append a major version to the name.
16778 soname_spec='$libname$release$shared_ext$major'
16782 version_type=linux # correct to gnu/linux during the next big refactor
16785 hardcode_into_libs=yes
16786 if test ia64 = "$host_cpu"; then
16787 # AIX 5 supports IA64
16788 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16789 shlibpath_var=LD_LIBRARY_PATH
16791 # With GCC up to 2.95.x, collect2 would create an import file
16792 # for dependence libraries. The import file would start with
16793 # the line '#! .'. This would cause the generated library to
16794 # depend on '.', always an invalid library. This was fixed in
16795 # development snapshots of GCC prior to 3.0.
16797 aix4 | aix4.[01] | aix4.[01].*)
16798 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16800 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16803 can_build_shared=no
16807 # Using Import Files as archive members, it is possible to support
16808 # filename-based versioning of shared library archives on AIX. While
16809 # this would work for both with and without runtime linking, it will
16810 # prevent static linking of such archives. So we do filename-based
16811 # shared library versioning with .so extension only, which is used
16812 # when both runtime linking and shared linking is enabled.
16813 # Unfortunately, runtime linking may impact performance, so we do
16814 # not want this to be the default eventually. Also, we use the
16815 # versioned .so libs for executables only if there is the -brtl
16816 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16817 # To allow for filename-based versioning support, we need to create
16818 # libNAME.so.V as an archive file, containing:
16819 # *) an Import File, referring to the versioned filename of the
16820 # archive as well as the shared archive member, telling the
16821 # bitwidth (32 or 64) of that shared object, and providing the
16822 # list of exported symbols of that shared object, eventually
16823 # decorated with the 'weak' keyword
16824 # *) the shared object with the F_LOADONLY flag set, to really avoid
16825 # it being seen by the linker.
16826 # At run time we better use the real file rather than another symlink,
16827 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16829 case $with_aix_soname,$aix_use_runtimelinking in
16830 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16831 # soname into executable. Probably we can add versioning support to
16832 # collect2, so additional links can be useful in future.
16833 aix,yes) # traditional libtool
16834 dynamic_linker='AIX unversionable lib.so'
16835 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16836 # instead of lib<name>.a to let people know that these are not
16837 # typical AIX shared libraries.
16838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16840 aix,no) # traditional AIX only
16841 dynamic_linker='AIX lib.a(lib.so.V)'
16842 # We preserve .a as extension for shared libraries through AIX4.2
16843 # and later when we are not doing run time linking.
16844 library_names_spec='$libname$release.a $libname.a'
16845 soname_spec='$libname$release$shared_ext$major'
16847 svr4,*) # full svr4 only
16848 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16849 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16850 # We do not specify a path in Import Files, so LIBPATH fires.
16851 shlibpath_overrides_runpath=yes
16853 *,yes) # both, prefer svr4
16854 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16855 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16856 # unpreferred sharedlib libNAME.a needs extra handling
16857 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16858 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16859 # We do not specify a path in Import Files, so LIBPATH fires.
16860 shlibpath_overrides_runpath=yes
16862 *,no) # both, prefer aix
16863 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16864 library_names_spec='$libname$release.a $libname.a'
16865 soname_spec='$libname$release$shared_ext$major'
16866 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16867 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16868 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16871 shlibpath_var=LIBPATH
16878 # Since July 2007 AmigaOS4 officially supports .so libraries.
16879 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16883 library_names_spec='$libname.ixlibrary $libname.a'
16884 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16885 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
16891 library_names_spec='$libname$shared_ext'
16892 dynamic_linker="$host_os ld.so"
16893 shlibpath_var=LIBRARY_PATH
16897 version_type=linux # correct to gnu/linux during the next big refactor
16899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16900 soname_spec='$libname$release$shared_ext$major'
16901 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16902 shlibpath_var=LD_LIBRARY_PATH
16903 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16904 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16905 # the default ld.so.conf also contains /usr/contrib/lib and
16906 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16907 # libtool to hard-code these into programs
16910 cygwin* | mingw* | pw32* | cegcc*)
16911 version_type=windows
16916 case $GCC,$cc_basename in
16919 library_names_spec='$libname.dll.a'
16920 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16921 postinstall_cmds='base_file=`basename \$file`~
16922 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16923 dldir=$destdir/`dirname \$dlpath`~
16924 test -d \$dldir || mkdir -p \$dldir~
16925 $install_prog $dir/$dlname \$dldir/$dlname~
16926 chmod a+x \$dldir/$dlname~
16927 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16928 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16930 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16931 dlpath=$dir/\$dldll~
16933 shlibpath_overrides_runpath=yes
16937 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16938 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16940 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16943 # MinGW DLLs use traditional 'lib' prefix
16944 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16947 # pw32 DLLs use 'pw' prefix rather than 'lib'
16948 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16951 dynamic_linker='Win32 ld.exe'
16956 libname_spec='$name'
16957 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16958 library_names_spec='$libname.dll.lib'
16962 sys_lib_search_path_spec=
16965 for lt_path in $LIB
16968 # Let DOS variable expansion print the short 8.3 style file name.
16969 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16970 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16973 # Convert to MSYS style.
16974 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16977 # Convert to unix form, then to dos form, then back to unix form
16978 # but this time dos style (no spaces!) so that the unix form looks
16979 # like /cygdrive/c/PROGRA~1:/cygdr...
16980 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16981 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16982 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16985 sys_lib_search_path_spec=$LIB
16986 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16987 # It is most probably a Windows format PATH.
16988 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16990 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16992 # FIXME: find the short name or the path components, as spaces are
16993 # common. (e.g. "Program Files" -> "PROGRA~1")
16997 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16998 postinstall_cmds='base_file=`basename \$file`~
16999 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17000 dldir=$destdir/`dirname \$dlpath`~
17001 test -d \$dldir || mkdir -p \$dldir~
17002 $install_prog $dir/$dlname \$dldir/$dlname'
17003 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17004 dlpath=$dir/\$dldll~
17006 shlibpath_overrides_runpath=yes
17007 dynamic_linker='Win32 link.exe'
17011 # Assume MSVC wrapper
17012 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17013 dynamic_linker='Win32 ld.exe'
17016 # FIXME: first we should search . and the directory the executable is in
17020 darwin* | rhapsody*)
17021 dynamic_linker="$host_os dyld"
17022 version_type=darwin
17025 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17026 soname_spec='$libname$release$major$shared_ext'
17027 shlibpath_overrides_runpath=yes
17028 shlibpath_var=DYLD_LIBRARY_PATH
17029 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17031 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17032 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17036 version_type=linux # correct to gnu/linux during the next big refactor
17039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17040 soname_spec='$libname$release$shared_ext$major'
17041 shlibpath_var=LD_LIBRARY_PATH
17044 freebsd* | dragonfly*)
17045 # DragonFly does not have aout. When/if they implement a new
17046 # versioning mechanism, adjust this.
17047 if test -x /usr/bin/objformat; then
17048 objformat=`/usr/bin/objformat`
17051 freebsd[23].*) objformat=aout ;;
17052 *) objformat=elf ;;
17055 version_type=freebsd-$objformat
17056 case $version_type in
17058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17059 soname_spec='$libname$release$shared_ext$major'
17064 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17068 shlibpath_var=LD_LIBRARY_PATH
17071 shlibpath_overrides_runpath=yes
17073 freebsd3.[01]* | freebsdelf3.[01]*)
17074 shlibpath_overrides_runpath=yes
17075 hardcode_into_libs=yes
17077 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17078 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17079 shlibpath_overrides_runpath=no
17080 hardcode_into_libs=yes
17082 *) # from 4.6 on, and DragonFly
17083 shlibpath_overrides_runpath=yes
17084 hardcode_into_libs=yes
17090 version_type=linux # correct to gnu/linux during the next big refactor
17093 dynamic_linker="$host_os runtime_loader"
17094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17095 soname_spec='$libname$release$shared_ext$major'
17096 shlibpath_var=LIBRARY_PATH
17097 shlibpath_overrides_runpath=no
17098 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17099 hardcode_into_libs=yes
17102 hpux9* | hpux10* | hpux11*)
17103 # Give a soname corresponding to the major version so that dld.sl refuses to
17104 # link against other versions.
17111 hardcode_into_libs=yes
17112 dynamic_linker="$host_os dld.so"
17113 shlibpath_var=LD_LIBRARY_PATH
17114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17115 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17116 soname_spec='$libname$release$shared_ext$major'
17117 if test 32 = "$HPUX_IA64_MODE"; then
17118 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17119 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17121 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17122 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17127 hardcode_into_libs=yes
17128 dynamic_linker="$host_os dld.sl"
17129 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17130 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17132 soname_spec='$libname$release$shared_ext$major'
17133 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17138 dynamic_linker="$host_os dld.sl"
17139 shlibpath_var=SHLIB_PATH
17140 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17142 soname_spec='$libname$release$shared_ext$major'
17145 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17146 postinstall_cmds='chmod 555 $lib'
17147 # or fails outright, so override atomically:
17148 install_override_mode=555
17152 version_type=linux # correct to gnu/linux during the next big refactor
17155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17156 soname_spec='$libname$release$shared_ext$major'
17157 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17158 shlibpath_var=LD_LIBRARY_PATH
17159 shlibpath_overrides_runpath=no
17160 hardcode_into_libs=yes
17163 irix5* | irix6* | nonstopux*)
17165 nonstopux*) version_type=nonstopux ;;
17167 if test yes = "$lt_cv_prog_gnu_ld"; then
17168 version_type=linux # correct to gnu/linux during the next big refactor
17175 soname_spec='$libname$release$shared_ext$major'
17176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17178 irix5* | nonstopux*)
17179 libsuff= shlibsuff=
17182 case $LD in # libtool.m4 will add one of these switches to LD
17183 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17184 libsuff= shlibsuff= libmagic=32-bit;;
17185 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17186 libsuff=32 shlibsuff=N32 libmagic=N32;;
17187 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17188 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17189 *) libsuff= shlibsuff= libmagic=never-match;;
17193 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17194 shlibpath_overrides_runpath=no
17195 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17196 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17197 hardcode_into_libs=yes
17200 # No shared lib support for Linux oldld, aout, or coff.
17201 linux*oldld* | linux*aout* | linux*coff*)
17206 version_type=none # Android doesn't support versioned libraries.
17209 library_names_spec='$libname$release$shared_ext'
17210 soname_spec='$libname$release$shared_ext'
17212 shlibpath_var=LD_LIBRARY_PATH
17213 shlibpath_overrides_runpath=yes
17215 # This implies no fast_install, which is unacceptable.
17216 # Some rework will be needed to allow for fast_install
17217 # before this can be enabled.
17218 hardcode_into_libs=yes
17220 dynamic_linker='Android linker'
17221 # Don't embed -rpath directories since the linker doesn't support them.
17222 hardcode_libdir_flag_spec='-L$libdir'
17225 # This must be glibc/ELF.
17226 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17227 version_type=linux # correct to gnu/linux during the next big refactor
17230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17231 soname_spec='$libname$release$shared_ext$major'
17232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17233 shlibpath_var=LD_LIBRARY_PATH
17234 shlibpath_overrides_runpath=no
17236 # Some binutils ld are patched to set DT_RUNPATH
17237 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17238 $as_echo_n "(cached) " >&6
17240 lt_cv_shlibpath_overrides_runpath=no
17241 save_LDFLAGS=$LDFLAGS
17242 save_libdir=$libdir
17243 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17244 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246 /* end confdefs.h. */
17256 if ac_fn_c_try_link "$LINENO"; then :
17257 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17258 lt_cv_shlibpath_overrides_runpath=yes
17261 rm -f core conftest.err conftest.$ac_objext \
17262 conftest$ac_exeext conftest.$ac_ext
17263 LDFLAGS=$save_LDFLAGS
17264 libdir=$save_libdir
17268 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17270 # This implies no fast_install, which is unacceptable.
17271 # Some rework will be needed to allow for fast_install
17272 # before this can be enabled.
17273 hardcode_into_libs=yes
17275 # Add ABI-specific directories to the system library path.
17276 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17278 # Ideally, we could use ldconfig to report *all* directores which are
17279 # searched for libraries, however this is still not possible. Aside from not
17280 # being certain /sbin/ldconfig is available, command
17281 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17282 # even though it is searched at run-time. Try to do the best guess by
17283 # appending ld.so.conf contents (and includes) to the search path.
17284 if test -f /etc/ld.so.conf; then
17285 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' ' '`
17286 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17289 # We used to test for /lib/ld.so.1 and disable shared libraries on
17290 # powerpc, because MkLinux only supported shared libraries with the
17291 # GNU dynamic linker. Since this was broken with cross compilers,
17292 # most powerpc-linux boxes support dynamic linking these days and
17293 # people can always --disable-shared, the test was removed, and we
17294 # assume the GNU/Linux dynamic linker is in use.
17295 dynamic_linker='GNU/Linux ld.so'
17302 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17303 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17305 dynamic_linker='NetBSD (a.out) ld.so'
17307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17308 soname_spec='$libname$release$shared_ext$major'
17309 dynamic_linker='NetBSD ld.elf_so'
17311 shlibpath_var=LD_LIBRARY_PATH
17312 shlibpath_overrides_runpath=yes
17313 hardcode_into_libs=yes
17317 version_type=linux # correct to gnu/linux during the next big refactor
17318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17319 shlibpath_var=LD_LIBRARY_PATH
17320 shlibpath_overrides_runpath=yes
17327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17328 soname_spec='$libname$release$shared_ext$major'
17329 shlibpath_var=LD_LIBRARY_PATH
17330 shlibpath_overrides_runpath=no
17331 hardcode_into_libs=yes
17332 dynamic_linker='ldqnx.so'
17335 openbsd* | bitrig*)
17337 sys_lib_dlsearch_path_spec=/usr/lib
17339 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17344 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17346 shlibpath_var=LD_LIBRARY_PATH
17347 shlibpath_overrides_runpath=yes
17351 libname_spec='$name'
17352 version_type=windows
17356 # OS/2 can only load a DLL with a base name of 8 characters or less.
17357 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17358 v=$($ECHO $release$versuffix | tr -d .-);
17359 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17360 $ECHO $n$v`$shared_ext'
17361 library_names_spec='${libname}_dll.$libext'
17362 dynamic_linker='OS/2 ld.exe'
17363 shlibpath_var=BEGINLIBPATH
17364 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17366 postinstall_cmds='base_file=`basename \$file`~
17367 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17368 dldir=$destdir/`dirname \$dlpath`~
17369 test -d \$dldir || mkdir -p \$dldir~
17370 $install_prog $dir/$dlname \$dldir/$dlname~
17371 chmod a+x \$dldir/$dlname~
17372 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17373 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17375 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17376 dlpath=$dir/\$dldll~
17380 osf3* | osf4* | osf5*)
17384 soname_spec='$libname$release$shared_ext$major'
17385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17386 shlibpath_var=LD_LIBRARY_PATH
17387 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17396 version_type=linux # correct to gnu/linux during the next big refactor
17399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17400 soname_spec='$libname$release$shared_ext$major'
17401 shlibpath_var=LD_LIBRARY_PATH
17402 shlibpath_overrides_runpath=yes
17403 hardcode_into_libs=yes
17404 # ldd complains unless libraries are executable
17405 postinstall_cmds='chmod +x $lib'
17410 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17411 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17412 shlibpath_var=LD_LIBRARY_PATH
17413 shlibpath_overrides_runpath=yes
17414 if test yes = "$with_gnu_ld"; then
17421 version_type=linux # correct to gnu/linux during the next big refactor
17422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17423 soname_spec='$libname$release$shared_ext$major'
17424 shlibpath_var=LD_LIBRARY_PATH
17425 case $host_vendor in
17427 shlibpath_overrides_runpath=no
17429 runpath_var=LD_RUN_PATH
17437 shlibpath_overrides_runpath=no
17438 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17444 if test -d /usr/nec; then
17445 version_type=linux # correct to gnu/linux during the next big refactor
17446 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17447 soname_spec='$libname$shared_ext.$major'
17448 shlibpath_var=LD_LIBRARY_PATH
17452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17457 soname_spec='$libname$release$shared_ext$major'
17458 shlibpath_var=LD_LIBRARY_PATH
17459 shlibpath_overrides_runpath=yes
17460 hardcode_into_libs=yes
17461 if test yes = "$with_gnu_ld"; then
17462 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17464 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17467 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17471 sys_lib_dlsearch_path_spec='/usr/lib'
17475 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17476 version_type=linux # correct to gnu/linux during the next big refactor
17479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17480 shlibpath_var=LD_LIBRARY_PATH
17481 shlibpath_overrides_runpath=no
17482 hardcode_into_libs=yes
17486 version_type=linux # correct to gnu/linux during the next big refactor
17487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17488 soname_spec='$libname$release$shared_ext$major'
17489 shlibpath_var=LD_LIBRARY_PATH
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17497 $as_echo "$dynamic_linker" >&6; }
17498 test no = "$dynamic_linker" && can_build_shared=no
17500 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17501 if test yes = "$GCC"; then
17502 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17505 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17506 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17509 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17510 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17513 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17514 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17516 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17517 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17519 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17520 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17619 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17621 if test -n "$hardcode_libdir_flag_spec" ||
17622 test -n "$runpath_var" ||
17623 test yes = "$hardcode_automatic"; then
17625 # We can hardcode non-existent directories.
17626 if test no != "$hardcode_direct" &&
17627 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17628 # have to relink, otherwise we might link with an installed library
17629 # when we should be linking with a yet-to-be-installed one
17630 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17631 test no != "$hardcode_minus_L"; then
17632 # Linking always hardcodes the temporary library directory.
17633 hardcode_action=relink
17635 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17636 hardcode_action=immediate
17639 # We cannot hardcode anything, or else we can only hardcode existing
17641 hardcode_action=unsupported
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17644 $as_echo "$hardcode_action" >&6; }
17646 if test relink = "$hardcode_action" ||
17647 test yes = "$inherit_rpath"; then
17648 # Fast installation is not supported
17649 enable_fast_install=no
17650 elif test yes = "$shlibpath_overrides_runpath" ||
17651 test no = "$enable_shared"; then
17652 # Fast installation is not necessary
17653 enable_fast_install=needless
17661 if test yes != "$enable_dlopen"; then
17662 enable_dlopen=unknown
17663 enable_dlopen_self=unknown
17664 enable_dlopen_self_static=unknown
17671 lt_cv_dlopen=load_add_on
17673 lt_cv_dlopen_self=yes
17676 mingw* | pw32* | cegcc*)
17677 lt_cv_dlopen=LoadLibrary
17682 lt_cv_dlopen=dlopen
17687 # if libdl is installed we need to link against it
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17689 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17690 if ${ac_cv_lib_dl_dlopen+:} false; then :
17691 $as_echo_n "(cached) " >&6
17693 ac_check_lib_save_LIBS=$LIBS
17695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17696 /* end confdefs.h. */
17698 /* Override any GCC internal prototype to avoid an error.
17699 Use char because int might match the return type of a GCC
17700 builtin and then its argument prototype would still apply. */
17713 if ac_fn_c_try_link "$LINENO"; then :
17714 ac_cv_lib_dl_dlopen=yes
17716 ac_cv_lib_dl_dlopen=no
17718 rm -f core conftest.err conftest.$ac_objext \
17719 conftest$ac_exeext conftest.$ac_ext
17720 LIBS=$ac_check_lib_save_LIBS
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17723 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17724 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17725 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17730 lt_cv_dlopen_self=yes
17737 # Don't try to run any link tests for TPF. We know it's impossible
17738 # because TPF is a cross-compiler, and we know how we open DSOs.
17739 lt_cv_dlopen=dlopen
17741 lt_cv_dlopen_self=no
17745 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17746 if test "x$ac_cv_func_shl_load" = xyes; then :
17747 lt_cv_dlopen=shl_load
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17750 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17751 if ${ac_cv_lib_dld_shl_load+:} false; then :
17752 $as_echo_n "(cached) " >&6
17754 ac_check_lib_save_LIBS=$LIBS
17756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17757 /* end confdefs.h. */
17759 /* Override any GCC internal prototype to avoid an error.
17760 Use char because int might match the return type of a GCC
17761 builtin and then its argument prototype would still apply. */
17769 return shl_load ();
17774 if ac_fn_c_try_link "$LINENO"; then :
17775 ac_cv_lib_dld_shl_load=yes
17777 ac_cv_lib_dld_shl_load=no
17779 rm -f core conftest.err conftest.$ac_objext \
17780 conftest$ac_exeext conftest.$ac_ext
17781 LIBS=$ac_check_lib_save_LIBS
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17784 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17785 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17786 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17788 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17789 if test "x$ac_cv_func_dlopen" = xyes; then :
17790 lt_cv_dlopen=dlopen
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17793 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17794 if ${ac_cv_lib_dl_dlopen+:} false; then :
17795 $as_echo_n "(cached) " >&6
17797 ac_check_lib_save_LIBS=$LIBS
17799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17800 /* end confdefs.h. */
17802 /* Override any GCC internal prototype to avoid an error.
17803 Use char because int might match the return type of a GCC
17804 builtin and then its argument prototype would still apply. */
17817 if ac_fn_c_try_link "$LINENO"; then :
17818 ac_cv_lib_dl_dlopen=yes
17820 ac_cv_lib_dl_dlopen=no
17822 rm -f core conftest.err conftest.$ac_objext \
17823 conftest$ac_exeext conftest.$ac_ext
17824 LIBS=$ac_check_lib_save_LIBS
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17827 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17828 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17829 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17832 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17833 if ${ac_cv_lib_svld_dlopen+:} false; then :
17834 $as_echo_n "(cached) " >&6
17836 ac_check_lib_save_LIBS=$LIBS
17837 LIBS="-lsvld $LIBS"
17838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17839 /* end confdefs.h. */
17841 /* Override any GCC internal prototype to avoid an error.
17842 Use char because int might match the return type of a GCC
17843 builtin and then its argument prototype would still apply. */
17856 if ac_fn_c_try_link "$LINENO"; then :
17857 ac_cv_lib_svld_dlopen=yes
17859 ac_cv_lib_svld_dlopen=no
17861 rm -f core conftest.err conftest.$ac_objext \
17862 conftest$ac_exeext conftest.$ac_ext
17863 LIBS=$ac_check_lib_save_LIBS
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17866 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17867 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17868 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17871 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17872 if ${ac_cv_lib_dld_dld_link+:} false; then :
17873 $as_echo_n "(cached) " >&6
17875 ac_check_lib_save_LIBS=$LIBS
17877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17878 /* end confdefs.h. */
17880 /* Override any GCC internal prototype to avoid an error.
17881 Use char because int might match the return type of a GCC
17882 builtin and then its argument prototype would still apply. */
17890 return dld_link ();
17895 if ac_fn_c_try_link "$LINENO"; then :
17896 ac_cv_lib_dld_dld_link=yes
17898 ac_cv_lib_dld_dld_link=no
17900 rm -f core conftest.err conftest.$ac_objext \
17901 conftest$ac_exeext conftest.$ac_ext
17902 LIBS=$ac_check_lib_save_LIBS
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17905 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17906 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17907 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
17928 if test no = "$lt_cv_dlopen"; then
17934 case $lt_cv_dlopen in
17936 save_CPPFLAGS=$CPPFLAGS
17937 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17939 save_LDFLAGS=$LDFLAGS
17940 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17943 LIBS="$lt_cv_dlopen_libs $LIBS"
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17946 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17947 if ${lt_cv_dlopen_self+:} false; then :
17948 $as_echo_n "(cached) " >&6
17950 if test yes = "$cross_compiling"; then :
17951 lt_cv_dlopen_self=cross
17953 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17954 lt_status=$lt_dlunknown
17955 cat > conftest.$ac_ext <<_LT_EOF
17956 #line $LINENO "configure"
17957 #include "confdefs.h"
17966 # define LT_DLGLOBAL RTLD_GLOBAL
17969 # define LT_DLGLOBAL DL_GLOBAL
17971 # define LT_DLGLOBAL 0
17975 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17976 find out it does not work in some platform. */
17977 #ifndef LT_DLLAZY_OR_NOW
17979 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17982 # define LT_DLLAZY_OR_NOW DL_LAZY
17985 # define LT_DLLAZY_OR_NOW RTLD_NOW
17988 # define LT_DLLAZY_OR_NOW DL_NOW
17990 # define LT_DLLAZY_OR_NOW 0
17997 /* When -fvisibility=hidden is used, assume the code has been annotated
17998 correspondingly for the symbols needed. */
17999 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18000 int fnord () __attribute__((visibility("default")));
18003 int fnord () { return 42; }
18006 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18007 int status = $lt_dlunknown;
18011 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18014 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18015 else puts (dlerror ());
18017 /* dlclose (self); */
18025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18026 (eval $ac_link) 2>&5
18028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18029 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18030 (./conftest; exit; ) >&5 2>/dev/null
18032 case x$lt_status in
18033 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18034 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18035 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18038 # compilation failed
18039 lt_cv_dlopen_self=no
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18047 $as_echo "$lt_cv_dlopen_self" >&6; }
18049 if test yes = "$lt_cv_dlopen_self"; then
18050 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18052 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18053 if ${lt_cv_dlopen_self_static+:} false; then :
18054 $as_echo_n "(cached) " >&6
18056 if test yes = "$cross_compiling"; then :
18057 lt_cv_dlopen_self_static=cross
18059 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18060 lt_status=$lt_dlunknown
18061 cat > conftest.$ac_ext <<_LT_EOF
18062 #line $LINENO "configure"
18063 #include "confdefs.h"
18072 # define LT_DLGLOBAL RTLD_GLOBAL
18075 # define LT_DLGLOBAL DL_GLOBAL
18077 # define LT_DLGLOBAL 0
18081 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18082 find out it does not work in some platform. */
18083 #ifndef LT_DLLAZY_OR_NOW
18085 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18088 # define LT_DLLAZY_OR_NOW DL_LAZY
18091 # define LT_DLLAZY_OR_NOW RTLD_NOW
18094 # define LT_DLLAZY_OR_NOW DL_NOW
18096 # define LT_DLLAZY_OR_NOW 0
18103 /* When -fvisibility=hidden is used, assume the code has been annotated
18104 correspondingly for the symbols needed. */
18105 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18106 int fnord () __attribute__((visibility("default")));
18109 int fnord () { return 42; }
18112 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18113 int status = $lt_dlunknown;
18117 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18120 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18121 else puts (dlerror ());
18123 /* dlclose (self); */
18131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18132 (eval $ac_link) 2>&5
18134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18135 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18136 (./conftest; exit; ) >&5 2>/dev/null
18138 case x$lt_status in
18139 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18140 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18141 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18144 # compilation failed
18145 lt_cv_dlopen_self_static=no
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18153 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18156 CPPFLAGS=$save_CPPFLAGS
18157 LDFLAGS=$save_LDFLAGS
18162 case $lt_cv_dlopen_self in
18163 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18164 *) enable_dlopen_self=unknown ;;
18167 case $lt_cv_dlopen_self_static in
18168 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18169 *) enable_dlopen_self_static=unknown ;;
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18192 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18193 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18194 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18195 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18197 $as_echo "yes" >&6; }
18199 # FIXME - insert some real tests, host_os isn't really good enough
18202 if test -n "$STRIP"; then
18203 striplib="$STRIP -x"
18204 old_striplib="$STRIP -S"
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18206 $as_echo "yes" >&6; }
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18209 $as_echo "no" >&6; }
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18214 $as_echo "no" >&6; }
18230 # Report what library types will actually be built
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18232 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18234 $as_echo "$can_build_shared" >&6; }
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18237 $as_echo_n "checking whether to build shared libraries... " >&6; }
18238 test no = "$can_build_shared" && enable_shared=no
18240 # On AIX, shared libraries and static libraries use the same namespace, and
18241 # are all built from PIC.
18244 test yes = "$enable_shared" && enable_static=no
18245 if test -n "$RANLIB"; then
18246 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18247 postinstall_cmds='$RANLIB $lib'
18252 if test ia64 != "$host_cpu"; then
18253 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18254 yes,aix,yes) ;; # shared object as lib.so file only
18255 yes,svr4,*) ;; # shared object as lib.so archive member only
18256 yes,*) enable_static=no ;; # shared object in lib.a archive as well
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18262 $as_echo "$enable_shared" >&6; }
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18265 $as_echo_n "checking whether to build static libraries... " >&6; }
18266 # Make sure either enable_shared or enable_static is yes.
18267 test yes = "$enable_shared" || enable_static=yes
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18269 $as_echo "$enable_static" >&6; }
18276 ac_cpp='$CPP $CPPFLAGS'
18277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18297 ac_config_commands="$ac_config_commands libtool"
18302 # Only expand once:
18305 # get libtool's setting of shlibpath_var
18306 if test "x$shlibpath_var" = "x"; then
18307 eval `grep "^shlibpath_var=[A-Z_]*$" $apr_builddir/libtool`
18309 if test "x$shlibpath_var" = "x"; then
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: SHLIBPATH variable could not be determined" >&5
18311 $as_echo "$as_me: SHLIBPATH variable could not be determined" >&6;}
18312 shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR
18319 # Check whether --with-installbuilddir was given.
18320 if test "${with_installbuilddir+set}" = set; then :
18321 withval=$with_installbuilddir; installbuilddir=$withval
18327 # Check whether --with-libtool was given.
18328 if test "${with_libtool+set}" = set; then :
18329 withval=$with_libtool; use_libtool=$withval
18335 if test "x$use_libtool" = "xyes"; then
18336 lt_compile='$(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) -o $@ -c $< && touch $@'
18337 LT_VERSION="-version-info `$get_version libtool $version_hdr APR`"
18338 link="\$(LIBTOOL) \$(LTFLAGS) --mode=link \$(COMPILE) \$(LT_LDFLAGS) \$(LT_VERSION) \$(ALL_LDFLAGS) -o \$@"
18340 lib_target='-rpath $(libdir) $(OBJECTS)'
18341 export_lib_target='-rpath \$(libdir) \$(OBJECTS)'
18343 lt_compile='$(COMPILE) -o $@ -c $<'
18344 link='$(AR) cr $(TARGET_LIB) $(OBJECTS); $(RANLIB) $(TARGET_LIB)'
18347 export_lib_target=''
18352 apr_platform_runtime_link_flag="-R"
18354 *-mingw* | *-cygwin*)
18355 LT_LDFLAGS="$LT_LDFLAGS -no-undefined"
18373 echo "${nl}Check for compiler flags..."
18378 if test "$ac_test_CFLAGS" != set; then
18380 if test "x$CFLAGS" = "x-g"; then
18381 test "x$silent" != "xyes" && echo " nulling CFLAGS"
18386 for i in $CFLAGS; do
18387 if test "x$i" != "x-g"; then
18388 apr_new_bugger="$apr_new_bugger $i"
18393 if test $apr_removed = "1"; then
18394 test "x$silent" != "xyes" && echo " removed \"-g\" from CFLAGS"
18395 CFLAGS=$apr_new_bugger
18403 # Check whether --enable-debug was given.
18404 if test "${enable_debug+set}" = set; then :
18405 enableval=$enable_debug;
18406 if test "x$CFLAGS" = "x"; then
18407 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-g\""
18410 apr_addto_bugger="-g"
18411 for i in $apr_addto_bugger; do
18412 apr_addto_duplicate="0"
18413 for j in $CFLAGS; do
18414 if test "x$i" = "x$j"; then
18415 apr_addto_duplicate="1"
18419 if test $apr_addto_duplicate = "0"; then
18420 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18421 CFLAGS="$CFLAGS $i"
18426 if test "$GCC" = "yes"; then
18428 if test "x$CFLAGS" = "x"; then
18429 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wall\""
18432 apr_addto_bugger="-Wall"
18433 for i in $apr_addto_bugger; do
18434 apr_addto_duplicate="0"
18435 for j in $CFLAGS; do
18436 if test "x$i" = "x$j"; then
18437 apr_addto_duplicate="1"
18441 if test $apr_addto_duplicate = "0"; then
18442 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18443 CFLAGS="$CFLAGS $i"
18448 elif test "$AIX_XLC" = "yes"; then
18450 if test "x$CFLAGS" = "x"; then
18451 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-qfullpath\""
18452 CFLAGS="-qfullpath"
18454 apr_addto_bugger="-qfullpath"
18455 for i in $apr_addto_bugger; do
18456 apr_addto_duplicate="0"
18457 for j in $CFLAGS; do
18458 if test "x$i" = "x$j"; then
18459 apr_addto_duplicate="1"
18463 if test $apr_addto_duplicate = "0"; then
18464 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18465 CFLAGS="$CFLAGS $i"
18474 # Check whether --enable-maintainer-mode was given.
18475 if test "${enable_maintainer_mode+set}" = set; then :
18476 enableval=$enable_maintainer_mode;
18477 if test "x$CFLAGS" = "x"; then
18478 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-g\""
18481 apr_addto_bugger="-g"
18482 for i in $apr_addto_bugger; do
18483 apr_addto_duplicate="0"
18484 for j in $CFLAGS; do
18485 if test "x$i" = "x$j"; then
18486 apr_addto_duplicate="1"
18490 if test $apr_addto_duplicate = "0"; then
18491 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18492 CFLAGS="$CFLAGS $i"
18497 if test "$GCC" = "yes"; then
18499 if test "x$CFLAGS" = "x"; then
18500 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations\""
18501 CFLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
18503 apr_addto_bugger="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
18504 for i in $apr_addto_bugger; do
18505 apr_addto_duplicate="0"
18506 for j in $CFLAGS; do
18507 if test "x$i" = "x$j"; then
18508 apr_addto_duplicate="1"
18512 if test $apr_addto_duplicate = "0"; then
18513 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18514 CFLAGS="$CFLAGS $i"
18519 case `($CC --version) 2>/dev/null` in
18520 *clang-900* | *"clang version 5.0.0"*)
18522 if test "x$CFLAGS" = "x"; then
18523 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wno-error=strict-prototypes\""
18524 CFLAGS="-Wno-error=strict-prototypes"
18526 apr_addto_bugger="-Wno-error=strict-prototypes"
18527 for i in $apr_addto_bugger; do
18528 apr_addto_duplicate="0"
18529 for j in $CFLAGS; do
18530 if test "x$i" = "x$j"; then
18531 apr_addto_duplicate="1"
18535 if test $apr_addto_duplicate = "0"; then
18536 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18537 CFLAGS="$CFLAGS $i"
18544 elif test "$AIX_XLC" = "yes"; then
18546 if test "x$CFLAGS" = "x"; then
18547 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro\""
18548 CFLAGS="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
18550 apr_addto_bugger="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro"
18551 for i in $apr_addto_bugger; do
18552 apr_addto_duplicate="0"
18553 for j in $CFLAGS; do
18554 if test "x$i" = "x$j"; then
18555 apr_addto_duplicate="1"
18559 if test $apr_addto_duplicate = "0"; then
18560 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18561 CFLAGS="$CFLAGS $i"
18570 # Check whether --enable-profile was given.
18571 if test "${enable_profile+set}" = set; then :
18572 enableval=$enable_profile; if test "$GCC" = "yes"; then
18574 if test "x$CFLAGS" = "x"; then
18575 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-pg\""
18578 apr_addto_bugger="-pg"
18579 for i in $apr_addto_bugger; do
18580 apr_addto_duplicate="0"
18581 for j in $CFLAGS; do
18582 if test "x$i" = "x$j"; then
18583 apr_addto_duplicate="1"
18587 if test $apr_addto_duplicate = "0"; then
18588 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18589 CFLAGS="$CFLAGS $i"
18595 if test "x$CFLAGS" = "x-g"; then
18596 test "x$silent" != "xyes" && echo " nulling CFLAGS"
18601 for i in $CFLAGS; do
18602 if test "x$i" != "x-g"; then
18603 apr_new_bugger="$apr_new_bugger $i"
18608 if test $apr_removed = "1"; then
18609 test "x$silent" != "xyes" && echo " removed \"-g\" from CFLAGS"
18610 CFLAGS=$apr_new_bugger
18614 if test "$host" = "i586-pc-beos"; then
18616 if test "x$CFLAGS" = "x-O2"; then
18617 test "x$silent" != "xyes" && echo " nulling CFLAGS"
18622 for i in $CFLAGS; do
18623 if test "x$i" != "x-O2"; then
18624 apr_new_bugger="$apr_new_bugger $i"
18629 if test $apr_removed = "1"; then
18630 test "x$silent" != "xyes" && echo " removed \"-O2\" from CFLAGS"
18631 CFLAGS=$apr_new_bugger
18636 if test "x$CFLAGS" = "x"; then
18637 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O1\""
18640 apr_addto_bugger="-O1"
18641 for i in $apr_addto_bugger; do
18642 apr_addto_duplicate="0"
18643 for j in $CFLAGS; do
18644 if test "x$i" = "x$j"; then
18645 apr_addto_duplicate="1"
18649 if test $apr_addto_duplicate = "0"; then
18650 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18651 CFLAGS="$CFLAGS $i"
18657 if test "x$LDFLAGS" = "x"; then
18658 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-p\""
18661 apr_addto_bugger="-p"
18662 for i in $apr_addto_bugger; do
18663 apr_addto_duplicate="0"
18664 for j in $LDFLAGS; do
18665 if test "x$i" = "x$j"; then
18666 apr_addto_duplicate="1"
18670 if test $apr_addto_duplicate = "0"; then
18671 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
18672 LDFLAGS="$LDFLAGS $i"
18682 # Check whether --enable-pool-debug was given.
18683 if test "${enable_pool_debug+set}" = set; then :
18684 enableval=$enable_pool_debug; if test -z "$enableval"; then
18686 if test "x$CPPFLAGS" = "x"; then
18687 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPR_POOL_DEBUG=1\""
18688 CPPFLAGS="-DAPR_POOL_DEBUG=1"
18690 apr_addto_bugger="-DAPR_POOL_DEBUG=1"
18691 for i in $apr_addto_bugger; do
18692 apr_addto_duplicate="0"
18693 for j in $CPPFLAGS; do
18694 if test "x$i" = "x$j"; then
18695 apr_addto_duplicate="1"
18699 if test $apr_addto_duplicate = "0"; then
18700 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18701 CPPFLAGS="$CPPFLAGS $i"
18706 elif test ! "$enableval" = "no"; then
18709 for i in $enableval
18736 if test $flag -gt 0; then
18737 apr_pool_debug=`expr '(' $apr_pool_debug - $apr_pool_debug % \
18738 '(' $flag '*' 2 ')' ')' + $flag + $apr_pool_debug % $flag`
18743 if test "x$CPPFLAGS" = "x"; then
18744 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPR_POOL_DEBUG=$apr_pool_debug\""
18745 CPPFLAGS="-DAPR_POOL_DEBUG=$apr_pool_debug"
18747 apr_addto_bugger="-DAPR_POOL_DEBUG=$apr_pool_debug"
18748 for i in $apr_addto_bugger; do
18749 apr_addto_duplicate="0"
18750 for j in $CPPFLAGS; do
18751 if test "x$i" = "x$j"; then
18752 apr_addto_duplicate="1"
18756 if test $apr_addto_duplicate = "0"; then
18757 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18758 CPPFLAGS="$CPPFLAGS $i"
18768 if test "$host" = "i586-pc-beos"; then
18769 # Check whether --enable-malloc-debug was given.
18770 if test "${enable_malloc_debug+set}" = set; then :
18771 enableval=$enable_malloc_debug;
18772 if test "x$CFLAGS" = "x-O2"; then
18773 test "x$silent" != "xyes" && echo " nulling CFLAGS"
18778 for i in $CFLAGS; do
18779 if test "x$i" != "x-O2"; then
18780 apr_new_bugger="$apr_new_bugger $i"
18785 if test $apr_removed = "1"; then
18786 test "x$silent" != "xyes" && echo " removed \"-O2\" from CFLAGS"
18787 CFLAGS=$apr_new_bugger
18792 if test "x$CPPFLAGS" = "x"; then
18793 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-fcheck-memory-usage -D_KERNEL_MODE\""
18794 CPPFLAGS="-fcheck-memory-usage -D_KERNEL_MODE"
18796 apr_addto_bugger="-fcheck-memory-usage -D_KERNEL_MODE"
18797 for i in $apr_addto_bugger; do
18798 apr_addto_duplicate="0"
18799 for j in $CPPFLAGS; do
18800 if test "x$i" = "x$j"; then
18801 apr_addto_duplicate="1"
18805 if test $apr_addto_duplicate = "0"; then
18806 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18807 CPPFLAGS="$CPPFLAGS $i"
18816 # this is the place to put specific options for platform/compiler
18818 case "$host:$CC" in
18821 if test "x$CFLAGS" = "x"; then
18822 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Ae +Z\""
18825 apr_addto_bugger="-Ae +Z"
18826 for i in $apr_addto_bugger; do
18827 apr_addto_duplicate="0"
18828 for j in $CFLAGS; do
18829 if test "x$i" = "x$j"; then
18830 apr_addto_duplicate="1"
18834 if test $apr_addto_duplicate = "0"; then
18835 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18836 CFLAGS="$CFLAGS $i"
18845 if echo "$CFLAGS " | grep '+DA' >/dev/null; then :
18848 if test "x$CFLAGS" = "x"; then
18849 test "x$silent" != "xyes" && echo " setting CFLAGS to \"+DAportable\""
18850 CFLAGS="+DAportable"
18852 apr_addto_bugger="+DAportable"
18853 for i in $apr_addto_bugger; do
18854 apr_addto_duplicate="0"
18855 for j in $CFLAGS; do
18856 if test "x$i" = "x$j"; then
18857 apr_addto_duplicate="1"
18861 if test $apr_addto_duplicate = "0"; then
18862 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
18863 CFLAGS="$CFLAGS $i"
18872 powerpc-*-beos:mwcc* )
18874 test "x$silent" != "xyes" && echo " forcing CPP to \"mwcc -E\""
18878 test "x$silent" != "xyes" && echo " forcing CC to \"mwcc\""
18882 test "x$silent" != "xyes" && echo " forcing AR to \"ar\""
18886 *-mingw* | *-cygwin*)
18887 if test "$enable_shared" = "yes"; then
18889 if test "x$INTERNAL_CPPFLAGS" = "x"; then
18890 test "x$silent" != "xyes" && echo " setting INTERNAL_CPPFLAGS to \"-DAPR_DECLARE_EXPORT\""
18891 INTERNAL_CPPFLAGS="-DAPR_DECLARE_EXPORT"
18893 apr_addto_bugger="-DAPR_DECLARE_EXPORT"
18894 for i in $apr_addto_bugger; do
18895 apr_addto_duplicate="0"
18896 for j in $INTERNAL_CPPFLAGS; do
18897 if test "x$i" = "x$j"; then
18898 apr_addto_duplicate="1"
18902 if test $apr_addto_duplicate = "0"; then
18903 test "x$silent" != "xyes" && echo " adding \"$i\" to INTERNAL_CPPFLAGS"
18904 INTERNAL_CPPFLAGS="$INTERNAL_CPPFLAGS $i"
18911 if test "x$CPPFLAGS" = "x"; then
18912 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPR_DECLARE_STATIC\""
18913 CPPFLAGS="-DAPR_DECLARE_STATIC"
18915 apr_addto_bugger="-DAPR_DECLARE_STATIC"
18916 for i in $apr_addto_bugger; do
18917 apr_addto_duplicate="0"
18918 for j in $CPPFLAGS; do
18919 if test "x$i" = "x$j"; then
18920 apr_addto_duplicate="1"
18924 if test $apr_addto_duplicate = "0"; then
18925 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
18926 CPPFLAGS="$CPPFLAGS $i"
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5
18936 $as_echo_n "checking whether the compiler provides atomic builtins... " >&6; }
18937 if ${ap_cv_atomic_builtins+:} false; then :
18938 $as_echo_n "(cached) " >&6
18940 if test "$cross_compiling" = yes; then :
18941 ap_cv_atomic_builtins=no
18943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18944 /* end confdefs.h. */
18948 unsigned long val = 1010, tmp, *mem = &val;
18950 if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
18955 if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
18958 if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
18963 if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
18966 if (__sync_lock_test_and_set(&val, 4040) != 3030)
18971 if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
18974 __sync_synchronize();
18982 if ac_fn_c_try_run "$LINENO"; then :
18983 ap_cv_atomic_builtins=yes
18985 ap_cv_atomic_builtins=no
18987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18988 conftest.$ac_objext conftest.beam conftest.$ac_ext
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_atomic_builtins" >&5
18993 $as_echo "$ap_cv_atomic_builtins" >&6; }
18995 if test "$ap_cv_atomic_builtins" = "yes"; then
18997 $as_echo "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h
19003 # The IBM ppc405cr processor has a bugged stwcx instruction.
19005 $as_echo "#define PPC405_ERRATA 1" >>confdefs.h
19013 if test "$GCC" = "yes"; then
19017 cat > conftest.c <<EOF
19018 #include <sys/types.h>
19019 int main() { return 0; }
19022 for i in "$CC -MM" "$CC -M" "$CPP -MM" "$CPP -M" "cpp -M"; do
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $i can create proper make dependencies" >&5
19024 $as_echo_n "checking if $i can create proper make dependencies... " >&6; }
19025 if $i conftest.c 2>/dev/null | grep 'conftest.o: conftest.c' >/dev/null; then
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19028 $as_echo "yes" >&6; }
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19032 $as_echo "no" >&6; }
19040 proc_mutex_is_global=0
19042 config_subdirs="none"
19043 INSTALL_SUBDIRS="none"
19044 OBJECTS_PLATFORM='$(OBJECTS_unix)'
19047 i386-ibm-aix* | *-ibm-aix[1-2].* | *-ibm-aix3.* | *-ibm-aix4.1 | *-ibm-aix4.1.* | *-ibm-aix4.2 | *-ibm-aix4.2.*)
19050 if test "x$LDFLAGS" = "x"; then
19051 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-lld\""
19054 apr_addto_bugger="-lld"
19055 for i in $apr_addto_bugger; do
19056 apr_addto_duplicate="0"
19057 for j in $LDFLAGS; do
19058 if test "x$i" = "x$j"; then
19059 apr_addto_duplicate="1"
19063 if test $apr_addto_duplicate = "0"; then
19064 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
19065 LDFLAGS="$LDFLAGS $i"
19071 OBJECTS_PLATFORM='$(OBJECTS_aix)'
19075 if test "x$CPPFLAGS" = "x"; then
19076 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DOS2\""
19079 apr_addto_bugger="-DOS2"
19080 for i in $apr_addto_bugger; do
19081 apr_addto_duplicate="0"
19082 for j in $CPPFLAGS; do
19083 if test "x$i" = "x$j"; then
19084 apr_addto_duplicate="1"
19088 if test $apr_addto_duplicate = "0"; then
19089 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
19090 CPPFLAGS="$CPPFLAGS $i"
19096 if test "x$CFLAGS" = "x"; then
19097 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Zmt\""
19100 apr_addto_bugger="-Zmt"
19101 for i in $apr_addto_bugger; do
19102 apr_addto_duplicate="0"
19103 for j in $CFLAGS; do
19104 if test "x$i" = "x$j"; then
19105 apr_addto_duplicate="1"
19109 if test $apr_addto_duplicate = "0"; then
19110 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
19111 CFLAGS="$CFLAGS $i"
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random in -lbsd" >&5
19117 $as_echo_n "checking for random in -lbsd... " >&6; }
19118 if ${ac_cv_lib_bsd_random+:} false; then :
19119 $as_echo_n "(cached) " >&6
19121 ac_check_lib_save_LIBS=$LIBS
19123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19124 /* end confdefs.h. */
19126 /* Override any GCC internal prototype to avoid an error.
19127 Use char because int might match the return type of a GCC
19128 builtin and then its argument prototype would still apply. */
19141 if ac_fn_c_try_link "$LINENO"; then :
19142 ac_cv_lib_bsd_random=yes
19144 ac_cv_lib_bsd_random=no
19146 rm -f core conftest.err conftest.$ac_objext \
19147 conftest$ac_exeext conftest.$ac_ext
19148 LIBS=$ac_check_lib_save_LIBS
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_random" >&5
19151 $as_echo "$ac_cv_lib_bsd_random" >&6; }
19152 if test "x$ac_cv_lib_bsd_random" = xyes; then :
19153 cat >>confdefs.h <<_ACEOF
19154 #define HAVE_LIBBSD 1
19162 enable_threads="system_threads"
19165 proc_mutex_is_global=1
19166 OBJECTS_PLATFORM='$(OBJECTS_os2)'
19171 if test "x$CPPFLAGS" = "x"; then
19172 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DBEOS\""
19175 apr_addto_bugger="-DBEOS"
19176 for i in $apr_addto_bugger; do
19177 apr_addto_duplicate="0"
19178 for j in $CPPFLAGS; do
19179 if test "x$i" = "x$j"; then
19180 apr_addto_duplicate="1"
19184 if test $apr_addto_duplicate = "0"; then
19185 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
19186 CPPFLAGS="$CPPFLAGS $i"
19191 enable_threads="system_threads"
19192 native_mmap_emul="1"
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BONE_VERSION in sys/socket.h" >&5
19195 $as_echo_n "checking for BONE_VERSION in sys/socket.h... " >&6; }
19196 if ${ac_cv_define_BONE_VERSION+:} false; then :
19197 $as_echo_n "(cached) " >&6
19200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19201 /* end confdefs.h. */
19203 #include <sys/socket.h>
19204 #ifdef BONE_VERSION
19209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19210 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
19211 ac_cv_define_BONE_VERSION=yes
19213 ac_cv_define_BONE_VERSION=no
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_BONE_VERSION" >&5
19220 $as_echo "$ac_cv_define_BONE_VERSION" >&6; }
19221 if test "$ac_cv_define_BONE_VERSION" = "yes"; then
19223 $as_echo "#define HAVE_BONE_VERSION 1" >>confdefs.h
19229 proc_mutex_is_global=1
19230 OBJECTS_PLATFORM='$(OBJECTS_beos)'
19241 ac_cv_func_fdatasync="no" # Mac OS X wrongly reports it has fdatasync()
19247 OBJECTS_PLATFORM='$(OBJECTS_os390)'
19256 enable_threads="system_threads"
19259 proc_mutex_is_global=1
19260 OBJECTS_PLATFORM='$(OBJECTS_win32)'
19264 enable_threads="no"
19268 enable_threads="no"
19273 ac_cv_func_fdatasync="no" # Mac OS X wrongly reports it has fdatasync()
19285 # Check whether LFS has explicitly been disabled
19286 # Check whether --enable-lfs was given.
19287 if test "${enable_lfs+set}" = set; then :
19288 enableval=$enable_lfs; apr_lfs_choice=$enableval
19294 if test "$apr_lfs_choice" = "yes"; then
19295 # Check whether the transitional LFS API is sufficient
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable -D_LARGEFILE64_SOURCE" >&5
19297 $as_echo_n "checking whether to enable -D_LARGEFILE64_SOURCE... " >&6; }
19298 if ${apr_cv_use_lfs64+:} false; then :
19299 $as_echo_n "(cached) " >&6
19302 apr_save_CPPFLAGS=$CPPFLAGS
19303 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
19304 if test "$cross_compiling" = yes; then :
19305 apr_cv_use_lfs64=no
19307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19308 /* end confdefs.h. */
19310 #include <sys/types.h>
19311 #include <sys/stat.h>
19313 #include <stdlib.h>
19315 #include <unistd.h>
19321 off64_t off = 4242;
19323 if (sizeof(off64_t) != 8 || sizeof(off_t) != 4)
19325 if ((fd = open("conftest.lfs", O_LARGEFILE|O_CREAT|O_WRONLY, 0644)) < 0)
19327 if (ftruncate64(fd, off) != 0)
19329 else if (fstat64(fd, &st) != 0 || st.st_size != off)
19331 else if (lseek64(fd, off, SEEK_SET) != off)
19333 else if (close(fd) != 0)
19335 else if (lstat64("conftest.lfs", &st) != 0 || st.st_size != off)
19337 else if (stat64("conftest.lfs", &st) != 0 || st.st_size != off)
19339 unlink("conftest.lfs");
19344 if ac_fn_c_try_run "$LINENO"; then :
19345 apr_cv_use_lfs64=yes
19347 apr_cv_use_lfs64=no
19349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19350 conftest.$ac_objext conftest.beam conftest.$ac_ext
19353 CPPFLAGS=$apr_save_CPPFLAGS
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_use_lfs64" >&5
19356 $as_echo "$apr_cv_use_lfs64" >&6; }
19357 if test "$apr_cv_use_lfs64" = "yes"; then
19359 if test "x$CPPFLAGS" = "x"; then
19360 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_LARGEFILE64_SOURCE\""
19361 CPPFLAGS="-D_LARGEFILE64_SOURCE"
19363 apr_addto_bugger="-D_LARGEFILE64_SOURCE"
19364 for i in $apr_addto_bugger; do
19365 apr_addto_duplicate="0"
19366 for j in $CPPFLAGS; do
19367 if test "x$i" = "x$j"; then
19368 apr_addto_duplicate="1"
19372 if test $apr_addto_duplicate = "0"; then
19373 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
19374 CPPFLAGS="$CPPFLAGS $i"
19382 # Check whether --enable-nonportable-atomics was given.
19383 if test "${enable_nonportable_atomics+set}" = set; then :
19384 enableval=$enable_nonportable_atomics; if test $enableval = yes; then
19385 force_generic_atomics=no
19387 force_generic_atomics=yes
19392 i[456]86) force_generic_atomics=yes ;;
19393 *) force_generic_atomics=no
19396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19397 /* end confdefs.h. */
19398 #include <atomic.h>
19402 void *ptr = NULL; atomic_cas_ptr(&ptr, NULL, NULL);
19407 if ac_fn_c_try_compile "$LINENO"; then :
19410 force_generic_atomics=yes
19413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19414 if test $force_generic_atomics = yes; then
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: nonportable atomic support disabled, system needs Patch-ID 118884 or 118885" >&5
19416 $as_echo "$as_me: nonportable atomic support disabled, system needs Patch-ID 118884 or 118885" >&6;}
19426 if test $force_generic_atomics = yes; then
19428 $as_echo "#define USE_ATOMICS_GENERIC 1" >>confdefs.h
19436 # For some platforms we need a version string which allows easy numeric
19440 if test -x /sbin/sysctl; then
19441 os_version=`/sbin/sysctl -n kern.osreldate`
19447 os_major=`uname -r | sed -e 's/\([1-9][0-9]*\)\..*/\1/'`
19448 os_minor=`uname -r | sed -e 's/[1-9][0-9]*\.\([0-9]\+\)\..*/\1/'`
19449 if test $os_major -lt 2 -o \( $os_major -eq 2 -a $os_minor -lt 4 \); then
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configured for pre-2.4 Linux $os_major.$os_minor" >&5
19451 $as_echo "$as_me: WARNING: Configured for pre-2.4 Linux $os_major.$os_minor" >&2;}
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured for Linux $os_major.$os_minor" >&5
19456 $as_echo "$as_me: Configured for Linux $os_major.$os_minor" >&6;}
19460 os_version=`uname -r | sed -e 's/\.//g'`
19463 os_version=OS_VERSION_IS_NOT_SET
19467 echo "${nl}Checking for libraries..."
19472 if test "x$LIBS" = "x"; then
19473 test "x$silent" != "xyes" && echo " setting LIBS to \"-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock\""
19474 LIBS="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock"
19476 apr_addto_bugger="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock"
19477 for i in $apr_addto_bugger; do
19478 apr_addto_duplicate="0"
19480 if test "x$i" = "x$j"; then
19481 apr_addto_duplicate="1"
19485 if test $apr_addto_duplicate = "0"; then
19486 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
19492 ac_cv_func_CreateFileMapping=yes
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19496 $as_echo_n "checking for library containing gethostbyname... " >&6; }
19497 if ${ac_cv_search_gethostbyname+:} false; then :
19498 $as_echo_n "(cached) " >&6
19500 ac_func_search_save_LIBS=$LIBS
19501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19502 /* end confdefs.h. */
19504 /* Override any GCC internal prototype to avoid an error.
19505 Use char because int might match the return type of a GCC
19506 builtin and then its argument prototype would still apply. */
19510 char gethostbyname ();
19514 return gethostbyname ();
19519 for ac_lib in '' nsl; do
19520 if test -z "$ac_lib"; then
19521 ac_res="none required"
19524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19526 if ac_fn_c_try_link "$LINENO"; then :
19527 ac_cv_search_gethostbyname=$ac_res
19529 rm -f core conftest.err conftest.$ac_objext \
19531 if ${ac_cv_search_gethostbyname+:} false; then :
19535 if ${ac_cv_search_gethostbyname+:} false; then :
19538 ac_cv_search_gethostbyname=no
19540 rm conftest.$ac_ext
19541 LIBS=$ac_func_search_save_LIBS
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19544 $as_echo "$ac_cv_search_gethostbyname" >&6; }
19545 ac_res=$ac_cv_search_gethostbyname
19546 if test "$ac_res" != no; then :
19547 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5
19552 $as_echo_n "checking for library containing gethostname... " >&6; }
19553 if ${ac_cv_search_gethostname+:} false; then :
19554 $as_echo_n "(cached) " >&6
19556 ac_func_search_save_LIBS=$LIBS
19557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19558 /* end confdefs.h. */
19560 /* Override any GCC internal prototype to avoid an error.
19561 Use char because int might match the return type of a GCC
19562 builtin and then its argument prototype would still apply. */
19566 char gethostname ();
19570 return gethostname ();
19575 for ac_lib in '' nsl; do
19576 if test -z "$ac_lib"; then
19577 ac_res="none required"
19580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19582 if ac_fn_c_try_link "$LINENO"; then :
19583 ac_cv_search_gethostname=$ac_res
19585 rm -f core conftest.err conftest.$ac_objext \
19587 if ${ac_cv_search_gethostname+:} false; then :
19591 if ${ac_cv_search_gethostname+:} false; then :
19594 ac_cv_search_gethostname=no
19596 rm conftest.$ac_ext
19597 LIBS=$ac_func_search_save_LIBS
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5
19600 $as_echo "$ac_cv_search_gethostname" >&6; }
19601 ac_res=$ac_cv_search_gethostname
19602 if test "$ac_res" != no; then :
19603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19608 $as_echo_n "checking for library containing socket... " >&6; }
19609 if ${ac_cv_search_socket+:} false; then :
19610 $as_echo_n "(cached) " >&6
19612 ac_func_search_save_LIBS=$LIBS
19613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19614 /* end confdefs.h. */
19616 /* Override any GCC internal prototype to avoid an error.
19617 Use char because int might match the return type of a GCC
19618 builtin and then its argument prototype would still apply. */
19631 for ac_lib in '' socket; do
19632 if test -z "$ac_lib"; then
19633 ac_res="none required"
19636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19638 if ac_fn_c_try_link "$LINENO"; then :
19639 ac_cv_search_socket=$ac_res
19641 rm -f core conftest.err conftest.$ac_objext \
19643 if ${ac_cv_search_socket+:} false; then :
19647 if ${ac_cv_search_socket+:} false; then :
19650 ac_cv_search_socket=no
19652 rm conftest.$ac_ext
19653 LIBS=$ac_func_search_save_LIBS
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19656 $as_echo "$ac_cv_search_socket" >&6; }
19657 ac_res=$ac_cv_search_socket
19658 if test "$ac_res" != no; then :
19659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19664 $as_echo_n "checking for library containing crypt... " >&6; }
19665 if ${ac_cv_search_crypt+:} false; then :
19666 $as_echo_n "(cached) " >&6
19668 ac_func_search_save_LIBS=$LIBS
19669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19670 /* end confdefs.h. */
19672 /* Override any GCC internal prototype to avoid an error.
19673 Use char because int might match the return type of a GCC
19674 builtin and then its argument prototype would still apply. */
19687 for ac_lib in '' crypt ufc; do
19688 if test -z "$ac_lib"; then
19689 ac_res="none required"
19692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19694 if ac_fn_c_try_link "$LINENO"; then :
19695 ac_cv_search_crypt=$ac_res
19697 rm -f core conftest.err conftest.$ac_objext \
19699 if ${ac_cv_search_crypt+:} false; then :
19703 if ${ac_cv_search_crypt+:} false; then :
19706 ac_cv_search_crypt=no
19708 rm conftest.$ac_ext
19709 LIBS=$ac_func_search_save_LIBS
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19712 $as_echo "$ac_cv_search_crypt" >&6; }
19713 ac_res=$ac_cv_search_crypt
19714 if test "$ac_res" != no; then :
19715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltruerand" >&5
19720 $as_echo_n "checking for main in -ltruerand... " >&6; }
19721 if ${ac_cv_lib_truerand_main+:} false; then :
19722 $as_echo_n "(cached) " >&6
19724 ac_check_lib_save_LIBS=$LIBS
19725 LIBS="-ltruerand $LIBS"
19726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19727 /* end confdefs.h. */
19738 if ac_fn_c_try_link "$LINENO"; then :
19739 ac_cv_lib_truerand_main=yes
19741 ac_cv_lib_truerand_main=no
19743 rm -f core conftest.err conftest.$ac_objext \
19744 conftest$ac_exeext conftest.$ac_ext
19745 LIBS=$ac_check_lib_save_LIBS
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_truerand_main" >&5
19748 $as_echo "$ac_cv_lib_truerand_main" >&6; }
19749 if test "x$ac_cv_lib_truerand_main" = xyes; then :
19750 cat >>confdefs.h <<_ACEOF
19751 #define HAVE_LIBTRUERAND 1
19754 LIBS="-ltruerand $LIBS"
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing modf" >&5
19759 $as_echo_n "checking for library containing modf... " >&6; }
19760 if ${ac_cv_search_modf+:} false; then :
19761 $as_echo_n "(cached) " >&6
19763 ac_func_search_save_LIBS=$LIBS
19764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19765 /* end confdefs.h. */
19767 /* Override any GCC internal prototype to avoid an error.
19768 Use char because int might match the return type of a GCC
19769 builtin and then its argument prototype would still apply. */
19782 for ac_lib in '' m; do
19783 if test -z "$ac_lib"; then
19784 ac_res="none required"
19787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19789 if ac_fn_c_try_link "$LINENO"; then :
19790 ac_cv_search_modf=$ac_res
19792 rm -f core conftest.err conftest.$ac_objext \
19794 if ${ac_cv_search_modf+:} false; then :
19798 if ${ac_cv_search_modf+:} false; then :
19801 ac_cv_search_modf=no
19803 rm conftest.$ac_ext
19804 LIBS=$ac_func_search_save_LIBS
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_modf" >&5
19807 $as_echo "$ac_cv_search_modf" >&6; }
19808 ac_res=$ac_cv_search_modf
19809 if test "$ac_res" != no; then :
19810 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19817 echo "${nl}Checking for Threads..."
19819 if test -z "$enable_threads"; then
19820 # Check whether --enable-threads was given.
19821 if test "${enable_threads+set}" = set; then :
19822 enableval=$enable_threads; enable_threads=$enableval
19825 if test "$GCC" = "yes"; then
19826 SAVE_FL="$CPPFLAGS"
19827 CPPFLAGS="$CPPFLAGS -w"
19828 for ac_header in pthread.h
19830 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19831 if test "x$ac_cv_header_pthread_h" = xyes; then :
19832 cat >>confdefs.h <<_ACEOF
19833 #define HAVE_PTHREAD_H 1
19835 enable_threads="pthread"
19837 enable_threads="no"
19842 CPPFLAGS="$SAVE_FL"
19844 for ac_header in pthread.h
19846 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19847 if test "x$ac_cv_header_pthread_h" = xyes; then :
19848 cat >>confdefs.h <<_ACEOF
19849 #define HAVE_PTHREAD_H 1
19851 enable_threads="pthread"
19853 enable_threads="no"
19864 if test "$enable_threads" = "no"; then
19869 if test "$enable_threads" = "pthread"; then
19870 # We have specified pthreads for our threading library, just make sure
19871 # that we have everything we need
19873 apr_pthsv_CFLAGS="$CFLAGS"
19874 apr_pthsv_LIBS="$LIBS"
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
19879 $as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
19880 if ${apr_cv_pthreads_cflags+:} false; then :
19881 $as_echo_n "(cached) " >&6
19883 apr_ptc_cflags=$CFLAGS
19884 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
19885 CFLAGS=$apr_ptc_cflags
19886 test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
19888 if test "$cross_compiling" = yes; then :
19891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h. */
19894 #include <pthread.h>
19895 #include <stddef.h>
19897 void *thread_routine(void *data) {
19903 pthread_mutexattr_t mattr;
19904 pthread_once_t once_init = PTHREAD_ONCE_INIT;
19906 pthread_mutexattr_init(&mattr);
19907 return pthread_create(&thd, NULL, thread_routine, &data);
19910 if ac_fn_c_try_run "$LINENO"; then :
19915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19916 conftest.$ac_objext conftest.beam conftest.$ac_ext
19920 if test $apr_p_t_r = yes; then
19922 apr_cv_pthreads_cflags="$flag"
19929 CFLAGS=$apr_ptc_cflags
19932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
19933 $as_echo "$apr_cv_pthreads_cflags" >&6; }
19935 if test -n "$apr_cv_pthreads_cflags"; then
19936 pthreads_working=yes
19937 if test "x$apr_cv_pthreads_cflags" != "xnone"; then
19939 if test "x$CFLAGS" = "x"; then
19940 test "x$silent" != "xyes" && echo " setting CFLAGS to \"$apr_cv_pthreads_cflags\""
19941 CFLAGS="$apr_cv_pthreads_cflags"
19943 apr_addto_bugger="$apr_cv_pthreads_cflags"
19944 for i in $apr_addto_bugger; do
19945 apr_addto_duplicate="0"
19946 for j in $CFLAGS; do
19947 if test "x$i" = "x$j"; then
19948 apr_addto_duplicate="1"
19952 if test $apr_addto_duplicate = "0"; then
19953 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
19954 CFLAGS="$CFLAGS $i"
19962 # The CFLAGS may or may not be sufficient to ensure that libapr
19963 # depends on the pthreads library: some versions of libtool
19964 # drop -pthread when passed on the link line; some versions of
19965 # gcc ignore -pthread when linking a shared object. So always
19966 # try and add the relevant library to LIBS too.
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
19969 $as_echo_n "checking for LIBS needed for pthreads... " >&6; }
19970 if ${apr_cv_pthreads_lib+:} false; then :
19971 $as_echo_n "(cached) " >&6
19975 for lib in -lpthread -lpthreads -lc_r; do
19976 LIBS="$apr_ptc_libs $lib"
19978 if test "$cross_compiling" = yes; then :
19981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19982 /* end confdefs.h. */
19984 #include <pthread.h>
19985 #include <stddef.h>
19987 void *thread_routine(void *data) {
19993 pthread_mutexattr_t mattr;
19994 pthread_once_t once_init = PTHREAD_ONCE_INIT;
19996 pthread_mutexattr_init(&mattr);
19997 return pthread_create(&thd, NULL, thread_routine, &data);
20000 if ac_fn_c_try_run "$LINENO"; then :
20005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20006 conftest.$ac_objext conftest.beam conftest.$ac_ext
20010 if test $apr_p_t_r = yes; then
20012 apr_cv_pthreads_lib=$lib
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
20023 $as_echo "$apr_cv_pthreads_lib" >&6; }
20025 if test -n "$apr_cv_pthreads_lib"; then
20026 pthreads_working=yes
20028 if test "x$LIBS" = "x"; then
20029 test "x$silent" != "xyes" && echo " setting LIBS to \"$apr_cv_pthreads_lib\""
20030 LIBS="$apr_cv_pthreads_lib"
20032 apr_addto_bugger="$apr_cv_pthreads_lib"
20033 for i in $apr_addto_bugger; do
20034 apr_addto_duplicate="0"
20036 if test "x$i" = "x$j"; then
20037 apr_addto_duplicate="1"
20041 if test $apr_addto_duplicate = "0"; then
20042 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
20050 if test "$pthreads_working" = "yes"; then
20051 threads_result="POSIX Threads found"
20053 threads_result="POSIX Threads not found"
20057 if test "$GCC" = "yes"; then
20058 SAVE_FL="$CPPFLAGS"
20059 CPPFLAGS="$CPPFLAGS -w"
20060 for ac_header in pthread.h
20062 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
20063 if test "x$ac_cv_header_pthread_h" = xyes; then :
20064 cat >>confdefs.h <<_ACEOF
20065 #define HAVE_PTHREAD_H 1
20077 CFLAGS="$apr_pthsv_CFLAGS"
20078 LIBS="$apr_pthsv_LIBS"
20084 CPPFLAGS="$SAVE_FL"
20086 for ac_header in pthread.h
20088 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
20089 if test "x$ac_cv_header_pthread_h" = xyes; then :
20090 cat >>confdefs.h <<_ACEOF
20091 #define HAVE_PTHREAD_H 1
20103 CFLAGS="$apr_pthsv_CFLAGS"
20104 LIBS="$apr_pthsv_LIBS"
20112 elif test "$enable_threads" = "system_threads"; then
20117 # We basically specified that we wanted threads, but not how to implement
20118 # them. In this case, just look for pthreads. In the future, we can check
20119 # for other threading libraries as well.
20121 apr_pthsv_CFLAGS="$CFLAGS"
20122 apr_pthsv_LIBS="$LIBS"
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5
20127 $as_echo_n "checking for CFLAGS needed for pthreads... " >&6; }
20128 if ${apr_cv_pthreads_cflags+:} false; then :
20129 $as_echo_n "(cached) " >&6
20131 apr_ptc_cflags=$CFLAGS
20132 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do
20133 CFLAGS=$apr_ptc_cflags
20134 test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag"
20136 if test "$cross_compiling" = yes; then :
20139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20140 /* end confdefs.h. */
20142 #include <pthread.h>
20143 #include <stddef.h>
20145 void *thread_routine(void *data) {
20151 pthread_mutexattr_t mattr;
20152 pthread_once_t once_init = PTHREAD_ONCE_INIT;
20154 pthread_mutexattr_init(&mattr);
20155 return pthread_create(&thd, NULL, thread_routine, &data);
20158 if ac_fn_c_try_run "$LINENO"; then :
20163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20164 conftest.$ac_objext conftest.beam conftest.$ac_ext
20168 if test $apr_p_t_r = yes; then
20170 apr_cv_pthreads_cflags="$flag"
20177 CFLAGS=$apr_ptc_cflags
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5
20181 $as_echo "$apr_cv_pthreads_cflags" >&6; }
20183 if test -n "$apr_cv_pthreads_cflags"; then
20184 pthreads_working=yes
20185 if test "x$apr_cv_pthreads_cflags" != "xnone"; then
20187 if test "x$CFLAGS" = "x"; then
20188 test "x$silent" != "xyes" && echo " setting CFLAGS to \"$apr_cv_pthreads_cflags\""
20189 CFLAGS="$apr_cv_pthreads_cflags"
20191 apr_addto_bugger="$apr_cv_pthreads_cflags"
20192 for i in $apr_addto_bugger; do
20193 apr_addto_duplicate="0"
20194 for j in $CFLAGS; do
20195 if test "x$i" = "x$j"; then
20196 apr_addto_duplicate="1"
20200 if test $apr_addto_duplicate = "0"; then
20201 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS"
20202 CFLAGS="$CFLAGS $i"
20210 # The CFLAGS may or may not be sufficient to ensure that libapr
20211 # depends on the pthreads library: some versions of libtool
20212 # drop -pthread when passed on the link line; some versions of
20213 # gcc ignore -pthread when linking a shared object. So always
20214 # try and add the relevant library to LIBS too.
20216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5
20217 $as_echo_n "checking for LIBS needed for pthreads... " >&6; }
20218 if ${apr_cv_pthreads_lib+:} false; then :
20219 $as_echo_n "(cached) " >&6
20223 for lib in -lpthread -lpthreads -lc_r; do
20224 LIBS="$apr_ptc_libs $lib"
20226 if test "$cross_compiling" = yes; then :
20229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20230 /* end confdefs.h. */
20232 #include <pthread.h>
20233 #include <stddef.h>
20235 void *thread_routine(void *data) {
20241 pthread_mutexattr_t mattr;
20242 pthread_once_t once_init = PTHREAD_ONCE_INIT;
20244 pthread_mutexattr_init(&mattr);
20245 return pthread_create(&thd, NULL, thread_routine, &data);
20248 if ac_fn_c_try_run "$LINENO"; then :
20253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20254 conftest.$ac_objext conftest.beam conftest.$ac_ext
20258 if test $apr_p_t_r = yes; then
20260 apr_cv_pthreads_lib=$lib
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5
20271 $as_echo "$apr_cv_pthreads_lib" >&6; }
20273 if test -n "$apr_cv_pthreads_lib"; then
20274 pthreads_working=yes
20276 if test "x$LIBS" = "x"; then
20277 test "x$silent" != "xyes" && echo " setting LIBS to \"$apr_cv_pthreads_lib\""
20278 LIBS="$apr_cv_pthreads_lib"
20280 apr_addto_bugger="$apr_cv_pthreads_lib"
20281 for i in $apr_addto_bugger; do
20282 apr_addto_duplicate="0"
20284 if test "x$i" = "x$j"; then
20285 apr_addto_duplicate="1"
20289 if test $apr_addto_duplicate = "0"; then
20290 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
20298 if test "$pthreads_working" = "yes"; then
20299 threads_result="POSIX Threads found"
20301 threads_result="POSIX Threads not found"
20305 if test "$GCC" = "yes"; then
20306 SAVE_FL="$CPPFLAGS"
20307 CPPFLAGS="$CPPFLAGS -w"
20308 for ac_header in pthread.h
20310 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
20311 if test "x$ac_cv_header_pthread_h" = xyes; then :
20312 cat >>confdefs.h <<_ACEOF
20313 #define HAVE_PTHREAD_H 1
20325 CFLAGS="$apr_pthsv_CFLAGS"
20326 LIBS="$apr_pthsv_LIBS"
20332 CPPFLAGS="$SAVE_FL"
20334 for ac_header in pthread.h
20336 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
20337 if test "x$ac_cv_header_pthread_h" = xyes; then :
20338 cat >>confdefs.h <<_ACEOF
20339 #define HAVE_PTHREAD_H 1
20351 CFLAGS="$apr_pthsv_CFLAGS"
20352 LIBS="$apr_pthsv_LIBS"
20361 if test "$pthreadh" = "1"; then
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_getspecific takes two arguments" >&5
20364 $as_echo_n "checking whether pthread_getspecific takes two arguments... " >&6; }
20365 if ${ac_cv_pthread_getspecific_two_args+:} false; then :
20366 $as_echo_n "(cached) " >&6
20369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20370 /* end confdefs.h. */
20372 #include <pthread.h>
20380 pthread_getspecific(key,&tmp);
20386 if ac_fn_c_try_compile "$LINENO"; then :
20388 ac_cv_pthread_getspecific_two_args=yes
20392 ac_cv_pthread_getspecific_two_args=no
20395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_getspecific_two_args" >&5
20399 $as_echo "$ac_cv_pthread_getspecific_two_args" >&6; }
20401 if test "$ac_cv_pthread_getspecific_two_args" = "yes"; then
20403 $as_echo "#define PTHREAD_GETSPECIFIC_TAKES_TWO_ARGS 1" >>confdefs.h
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_attr_getdetachstate takes one argument" >&5
20409 $as_echo_n "checking whether pthread_attr_getdetachstate takes one argument... " >&6; }
20410 if ${ac_cv_pthread_attr_getdetachstate_one_arg+:} false; then :
20411 $as_echo_n "(cached) " >&6
20414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20415 /* end confdefs.h. */
20417 #include <pthread.h>
20423 pthread_attr_t *attr;
20424 pthread_attr_getdetachstate(attr);
20430 if ac_fn_c_try_compile "$LINENO"; then :
20432 ac_cv_pthread_attr_getdetachstate_one_arg=yes
20436 ac_cv_pthread_attr_getdetachstate_one_arg=no
20439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_attr_getdetachstate_one_arg" >&5
20443 $as_echo "$ac_cv_pthread_attr_getdetachstate_one_arg" >&6; }
20445 if test "$ac_cv_pthread_attr_getdetachstate_one_arg" = "yes"; then
20447 $as_echo "#define PTHREAD_ATTR_GETDETACHSTATE_TAKES_ONE_ARG 1" >>confdefs.h
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutex support" >&5
20453 $as_echo_n "checking for recursive mutex support... " >&6; }
20454 if ${apr_cv_mutex_recursive+:} false; then :
20455 $as_echo_n "(cached) " >&6
20457 if test "$cross_compiling" = yes; then :
20458 apr_cv_mutex_recursive=no
20460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20461 /* end confdefs.h. */
20462 #include <sys/types.h>
20463 #include <pthread.h>
20464 #include <stdlib.h>
20467 pthread_mutexattr_t attr;
20470 exit (pthread_mutexattr_init(&attr)
20471 || pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)
20472 || pthread_mutex_init(&m, &attr));
20475 if ac_fn_c_try_run "$LINENO"; then :
20476 apr_cv_mutex_recursive=yes
20478 apr_cv_mutex_recursive=no
20480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20481 conftest.$ac_objext conftest.beam conftest.$ac_ext
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_recursive" >&5
20486 $as_echo "$apr_cv_mutex_recursive" >&6; }
20488 if test "$apr_cv_mutex_recursive" = "yes"; then
20490 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
20494 for ac_func in pthread_key_delete pthread_rwlock_init \
20495 pthread_attr_setguardsize pthread_yield
20497 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20498 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20499 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20500 cat >>confdefs.h <<_ACEOF
20501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20508 if test "$ac_cv_func_pthread_rwlock_init" = "yes"; then
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_t" >&5
20510 $as_echo_n "checking for pthread_rwlock_t... " >&6; }
20511 if ${apr_cv_type_rwlock_t+:} false; then :
20512 $as_echo_n "(cached) " >&6
20514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20515 /* end confdefs.h. */
20516 #include <sys/types.h>
20517 #include <pthread.h>
20521 pthread_rwlock_t *rwlock;
20526 if ac_fn_c_try_compile "$LINENO"; then :
20527 apr_cv_type_rwlock_t=yes
20529 apr_cv_type_rwlock_t=no
20531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_type_rwlock_t" >&5
20534 $as_echo "$apr_cv_type_rwlock_t" >&6; }
20535 if test "$apr_cv_type_rwlock_t" = "yes"; then
20537 $as_echo "#define HAVE_PTHREAD_RWLOCKS 1" >>confdefs.h
20542 if test "$ac_cv_func_pthread_yield" = "no"; then
20543 for ac_header in sched.h
20545 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
20546 if test "x$ac_cv_header_sched_h" = xyes; then :
20547 cat >>confdefs.h <<_ACEOF
20548 #define HAVE_SCHED_H 1
20555 for ac_func in sched_yield
20557 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
20558 if test "x$ac_cv_func_sched_yield" = xyes; then :
20559 cat >>confdefs.h <<_ACEOF
20560 #define HAVE_SCHED_YIELD 1
20570 ac_cv_define_READDIR_IS_THREAD_SAFE=yes
20571 ac_cv_define_GETHOSTBYNAME_IS_THREAD_SAFE=no
20572 ac_cv_define_GETHOSTBYADDR_IS_THREAD_SAFE=no
20573 ac_cv_define_GETSERVBYNAME_IS_THREAD_SAFE=no
20574 if test "$threads" = "1"; then
20575 echo "APR will use threads"
20577 $as_echo "#define READDIR_IS_THREAD_SAFE 1" >>confdefs.h
20579 if test "x$apr_gethostbyname_is_thread_safe" = "x"; then
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lc_r" >&5
20581 $as_echo_n "checking for gethostbyname in -lc_r... " >&6; }
20582 if ${ac_cv_lib_c_r_gethostbyname+:} false; then :
20583 $as_echo_n "(cached) " >&6
20585 ac_check_lib_save_LIBS=$LIBS
20587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20588 /* end confdefs.h. */
20590 /* Override any GCC internal prototype to avoid an error.
20591 Use char because int might match the return type of a GCC
20592 builtin and then its argument prototype would still apply. */
20596 char gethostbyname ();
20600 return gethostbyname ();
20605 if ac_fn_c_try_link "$LINENO"; then :
20606 ac_cv_lib_c_r_gethostbyname=yes
20608 ac_cv_lib_c_r_gethostbyname=no
20610 rm -f core conftest.err conftest.$ac_objext \
20611 conftest$ac_exeext conftest.$ac_ext
20612 LIBS=$ac_check_lib_save_LIBS
20614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyname" >&5
20615 $as_echo "$ac_cv_lib_c_r_gethostbyname" >&6; }
20616 if test "x$ac_cv_lib_c_r_gethostbyname" = xyes; then :
20617 apr_gethostbyname_is_thread_safe=yes
20621 if test "$apr_gethostbyname_is_thread_safe" = "yes"; then
20623 $as_echo "#define GETHOSTBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
20626 if test "x$apr_gethostbyaddr_is_thread_safe" = "x"; then
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lc_r" >&5
20628 $as_echo_n "checking for gethostbyaddr in -lc_r... " >&6; }
20629 if ${ac_cv_lib_c_r_gethostbyaddr+:} false; then :
20630 $as_echo_n "(cached) " >&6
20632 ac_check_lib_save_LIBS=$LIBS
20634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20635 /* end confdefs.h. */
20637 /* Override any GCC internal prototype to avoid an error.
20638 Use char because int might match the return type of a GCC
20639 builtin and then its argument prototype would still apply. */
20643 char gethostbyaddr ();
20647 return gethostbyaddr ();
20652 if ac_fn_c_try_link "$LINENO"; then :
20653 ac_cv_lib_c_r_gethostbyaddr=yes
20655 ac_cv_lib_c_r_gethostbyaddr=no
20657 rm -f core conftest.err conftest.$ac_objext \
20658 conftest$ac_exeext conftest.$ac_ext
20659 LIBS=$ac_check_lib_save_LIBS
20661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyaddr" >&5
20662 $as_echo "$ac_cv_lib_c_r_gethostbyaddr" >&6; }
20663 if test "x$ac_cv_lib_c_r_gethostbyaddr" = xyes; then :
20664 apr_gethostbyaddr_is_thread_safe=yes
20668 if test "$apr_gethostbyaddr_is_thread_safe" = "yes"; then
20670 $as_echo "#define GETHOSTBYADDR_IS_THREAD_SAFE 1" >>confdefs.h
20673 if test "x$apr_getservbyname_is_thread_safe" = "x"; then
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in -lc_r" >&5
20675 $as_echo_n "checking for getservbyname in -lc_r... " >&6; }
20676 if ${ac_cv_lib_c_r_getservbyname+:} false; then :
20677 $as_echo_n "(cached) " >&6
20679 ac_check_lib_save_LIBS=$LIBS
20681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20682 /* end confdefs.h. */
20684 /* Override any GCC internal prototype to avoid an error.
20685 Use char because int might match the return type of a GCC
20686 builtin and then its argument prototype would still apply. */
20690 char getservbyname ();
20694 return getservbyname ();
20699 if ac_fn_c_try_link "$LINENO"; then :
20700 ac_cv_lib_c_r_getservbyname=yes
20702 ac_cv_lib_c_r_getservbyname=no
20704 rm -f core conftest.err conftest.$ac_objext \
20705 conftest$ac_exeext conftest.$ac_ext
20706 LIBS=$ac_check_lib_save_LIBS
20708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_getservbyname" >&5
20709 $as_echo "$ac_cv_lib_c_r_getservbyname" >&6; }
20710 if test "x$ac_cv_lib_c_r_getservbyname" = xyes; then :
20711 apr_getservbyname_is_thread_safe=yes
20715 if test "$apr_getservbyname_is_thread_safe" = "yes"; then
20717 $as_echo "#define GETSERVBYNAME_IS_THREAD_SAFE 1" >>confdefs.h
20720 for ac_func in gethostbyname_r gethostbyaddr_r getservbyname_r
20722 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20723 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20724 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20725 cat >>confdefs.h <<_ACEOF
20726 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20733 echo "APR will be non-threaded"
20737 # Check whether --with-efence was given.
20738 if test "${with_efence+set}" = set; then :
20739 withval=$with_efence; apr_efence_dir="$withval"
20740 if test "$apr_efence_dir" != "yes"; then
20742 if test "x$LDFLAGS" = "x"; then
20743 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L$apr_efence_dir/lib\""
20744 LDFLAGS="-L$apr_efence_dir/lib"
20746 apr_addto_bugger="-L$apr_efence_dir/lib"
20747 for i in $apr_addto_bugger; do
20748 apr_addto_duplicate="0"
20749 for j in $LDFLAGS; do
20750 if test "x$i" = "x$j"; then
20751 apr_addto_duplicate="1"
20755 if test $apr_addto_duplicate = "0"; then
20756 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
20757 LDFLAGS="$LDFLAGS $i"
20762 if test "x$apr_platform_runtime_link_flag" != "x"; then
20764 if test "x$LDFLAGS" = "x"; then
20765 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$apr_platform_runtime_link_flag$apr_efence_dir/lib\""
20766 LDFLAGS="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
20768 apr_addto_bugger="$apr_platform_runtime_link_flag$apr_efence_dir/lib"
20769 for i in $apr_addto_bugger; do
20770 apr_addto_duplicate="0"
20771 for j in $LDFLAGS; do
20772 if test "x$i" = "x$j"; then
20773 apr_addto_duplicate="1"
20777 if test $apr_addto_duplicate = "0"; then
20778 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS"
20779 LDFLAGS="$LDFLAGS $i"
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5
20787 $as_echo_n "checking for malloc in -lefence... " >&6; }
20788 if ${ac_cv_lib_efence_malloc+:} false; then :
20789 $as_echo_n "(cached) " >&6
20791 ac_check_lib_save_LIBS=$LIBS
20792 LIBS="-lefence $LIBS"
20793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20794 /* end confdefs.h. */
20796 /* Override any GCC internal prototype to avoid an error.
20797 Use char because int might match the return type of a GCC
20798 builtin and then its argument prototype would still apply. */
20811 if ac_fn_c_try_link "$LINENO"; then :
20812 ac_cv_lib_efence_malloc=yes
20814 ac_cv_lib_efence_malloc=no
20816 rm -f core conftest.err conftest.$ac_objext \
20817 conftest$ac_exeext conftest.$ac_ext
20818 LIBS=$ac_check_lib_save_LIBS
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5
20821 $as_echo "$ac_cv_lib_efence_malloc" >&6; }
20822 if test "x$ac_cv_lib_efence_malloc" = xyes; then :
20824 if test "x$LIBS" = "x"; then
20825 test "x$silent" != "xyes" && echo " setting LIBS to \"-lefence\""
20828 apr_addto_bugger="-lefence"
20829 for i in $apr_addto_bugger; do
20830 apr_addto_duplicate="0"
20832 if test "x$i" = "x$j"; then
20833 apr_addto_duplicate="1"
20837 if test $apr_addto_duplicate = "0"; then
20838 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
20845 as_fn_error $? "Electric Fence requested but not detected" "$LINENO" 5
20853 # Check whether --with-valgrind was given.
20854 if test "${with_valgrind+set}" = set; then :
20855 withval=$with_valgrind; if test "$withval" != no; then
20856 if test "$withval" = yes; then
20857 withval=/usr/include/valgrind
20860 if test "x$CPPFLAGS" = "x"; then
20861 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-I$withval\""
20862 CPPFLAGS="-I$withval"
20864 apr_addto_bugger="-I$withval"
20865 for i in $apr_addto_bugger; do
20866 apr_addto_duplicate="0"
20867 for j in $CPPFLAGS; do
20868 if test "x$i" = "x$j"; then
20869 apr_addto_duplicate="1"
20873 if test $apr_addto_duplicate = "0"; then
20874 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
20875 CPPFLAGS="$CPPFLAGS $i"
20880 for ac_header in valgrind.h memcheck.h
20882 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20883 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20884 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20885 cat >>confdefs.h <<_ACEOF
20886 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20894 for ac_spec in header:valgrind.h header:memcheck.h; do
20895 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
20896 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
20899 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
20900 ac_var="ac_cv_header_$ac_item"
20903 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
20904 ac_var="ac_cv_file_$ac_item"
20906 func ) ac_var="ac_cv_func_$ac_item" ;;
20907 struct ) ac_var="ac_cv_struct_$ac_item" ;;
20908 define ) ac_var="ac_cv_define_$ac_item" ;;
20909 custom ) ac_var="$ac_item" ;;
20911 eval "ac_val=\$$ac_var"
20912 if test ".$ac_val" != .yes; then
20917 if test ".$ac_rc" = .yes; then
20920 $as_echo "#define HAVE_VALGRIND 1" >>confdefs.h
20924 as_fn_error $? "valgrind headers not found" "$LINENO" 5
20933 for ac_func in sigsuspend
20935 ac_fn_c_check_func "$LINENO" "sigsuspend" "ac_cv_func_sigsuspend"
20936 if test "x$ac_cv_func_sigsuspend" = xyes; then :
20937 cat >>confdefs.h <<_ACEOF
20938 #define HAVE_SIGSUSPEND 1
20940 have_sigsuspend="1"
20942 have_sigsuspend="0"
20946 for ac_func in sigwait
20948 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
20949 if test "x$ac_cv_func_sigwait" = xyes; then :
20950 cat >>confdefs.h <<_ACEOF
20951 #define HAVE_SIGWAIT 1
20969 for ac_func in poll kqueue port_create
20971 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20972 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20973 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20974 cat >>confdefs.h <<_ACEOF
20975 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20982 # Check for the Linux epoll interface; epoll* may be available in libc
20983 # but return ENOSYS on a pre-2.6 kernel, so do a run-time check.
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support" >&5
20985 $as_echo_n "checking for epoll support... " >&6; }
20986 if ${apr_cv_epoll+:} false; then :
20987 $as_echo_n "(cached) " >&6
20989 if test "$cross_compiling" = yes; then :
20992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20993 /* end confdefs.h. */
20995 #include <sys/epoll.h>
20996 #include <unistd.h>
21000 return epoll_create(5) == -1;
21003 if ac_fn_c_try_run "$LINENO"; then :
21008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21009 conftest.$ac_objext conftest.beam conftest.$ac_ext
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll" >&5
21014 $as_echo "$apr_cv_epoll" >&6; }
21016 if test "$apr_cv_epoll" = "yes"; then
21018 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
21022 # test for epoll_create1
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
21024 $as_echo_n "checking for epoll_create1 support... " >&6; }
21025 if ${apr_cv_epoll_create1+:} false; then :
21026 $as_echo_n "(cached) " >&6
21028 if test "$cross_compiling" = yes; then :
21029 apr_cv_epoll_create1=no
21031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21032 /* end confdefs.h. */
21034 #include <sys/epoll.h>
21035 #include <unistd.h>
21039 return epoll_create1(0) == -1;
21042 if ac_fn_c_try_run "$LINENO"; then :
21043 apr_cv_epoll_create1=yes
21045 apr_cv_epoll_create1=no
21047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21048 conftest.$ac_objext conftest.beam conftest.$ac_ext
21052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
21053 $as_echo "$apr_cv_epoll_create1" >&6; }
21055 if test "$apr_cv_epoll_create1" = "yes"; then
21057 $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
21062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
21063 $as_echo_n "checking for dup3 support... " >&6; }
21064 if ${apr_cv_dup3+:} false; then :
21065 $as_echo_n "(cached) " >&6
21067 if test "$cross_compiling" = yes; then :
21070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21071 /* end confdefs.h. */
21073 #include <unistd.h>
21077 return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
21080 if ac_fn_c_try_run "$LINENO"; then :
21085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21086 conftest.$ac_objext conftest.beam conftest.$ac_ext
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
21091 $as_echo "$apr_cv_dup3" >&6; }
21093 if test "$apr_cv_dup3" = "yes"; then
21095 $as_echo "#define HAVE_DUP3 1" >>confdefs.h
21099 # Test for accept4(). Create a non-blocking socket, bind it to
21100 # an unspecified port & address (kernel picks), and attempt to
21101 # call accept4() on it. If the syscall is wired up (i.e. the
21102 # kernel is new enough), it should return EAGAIN.
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
21104 $as_echo_n "checking for accept4 support... " >&6; }
21105 if ${apr_cv_accept4+:} false; then :
21106 $as_echo_n "(cached) " >&6
21108 if test "$cross_compiling" = yes; then :
21111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21112 /* end confdefs.h. */
21114 #include <sys/types.h>
21115 #include <sys/socket.h>
21116 #include <sys/wait.h>
21117 #include <netinet/in.h>
21118 #include <netinet/tcp.h>
21120 #include <string.h>
21121 #include <unistd.h>
21124 int main(int argc, char **argv)
21127 struct sockaddr_in sin;
21129 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) == -1)
21131 flags = fcntl(fd, F_GETFL);
21132 if (flags == -1 || fcntl(fd, F_SETFL, flags|O_NONBLOCK) == -1)
21135 memset(&sin, 0, sizeof sin);
21136 sin.sin_family = AF_INET;
21138 if (bind(fd, (struct sockaddr *) &sin, sizeof sin) == -1)
21141 if (listen(fd, 5) == -1)
21144 if (accept4(fd, NULL, 0, SOCK_NONBLOCK) == 0
21145 || errno == EAGAIN || errno == EWOULDBLOCK)
21151 if ac_fn_c_try_run "$LINENO"; then :
21156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21157 conftest.$ac_objext conftest.beam conftest.$ac_ext
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
21162 $as_echo "$apr_cv_accept4" >&6; }
21164 if test "$apr_cv_accept4" = "yes"; then
21166 $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
21171 $as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
21172 if ${apr_cv_sock_cloexec+:} false; then :
21173 $as_echo_n "(cached) " >&6
21175 if test "$cross_compiling" = yes; then :
21176 apr_cv_sock_cloexec=no
21178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21179 /* end confdefs.h. */
21181 #include <sys/types.h>
21182 #include <sys/socket.h>
21186 return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
21189 if ac_fn_c_try_run "$LINENO"; then :
21190 apr_cv_sock_cloexec=yes
21192 apr_cv_sock_cloexec=no
21194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21195 conftest.$ac_objext conftest.beam conftest.$ac_ext
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
21200 $as_echo "$apr_cv_sock_cloexec" >&6; }
21202 if test "$apr_cv_sock_cloexec" = "yes"; then
21204 $as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
21208 for ac_func in fdatasync
21210 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
21211 if test "x$ac_cv_func_fdatasync" = xyes; then :
21212 cat >>confdefs.h <<_ACEOF
21213 #define HAVE_FDATASYNC 1
21220 # test for epoll_create1
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5
21222 $as_echo_n "checking for epoll_create1 support... " >&6; }
21223 if ${apr_cv_epoll_create1+:} false; then :
21224 $as_echo_n "(cached) " >&6
21226 if test "$cross_compiling" = yes; then :
21227 apr_cv_epoll_create1=no
21229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21230 /* end confdefs.h. */
21232 #include <sys/epoll.h>
21233 #include <unistd.h>
21237 return epoll_create1(0) == -1;
21240 if ac_fn_c_try_run "$LINENO"; then :
21241 apr_cv_epoll_create1=yes
21243 apr_cv_epoll_create1=no
21245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21246 conftest.$ac_objext conftest.beam conftest.$ac_ext
21250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5
21251 $as_echo "$apr_cv_epoll_create1" >&6; }
21253 if test "$apr_cv_epoll_create1" = "yes"; then
21255 $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
21259 # Check for z/OS async i/o support.
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asio -> message queue support" >&5
21261 $as_echo_n "checking for asio -> message queue support... " >&6; }
21262 if ${apr_cv_aio_msgq+:} false; then :
21263 $as_echo_n "(cached) " >&6
21265 if test "$cross_compiling" = yes; then :
21268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21269 /* end confdefs.h. */
21278 a.aio_notifytype = AIO_MSGQ; /* use IPC message queue for notification */
21280 return aio_cancel(2, NULL) == -1;
21283 if ac_fn_c_try_run "$LINENO"; then :
21284 apr_cv_aio_msgq=yes
21288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21289 conftest.$ac_objext conftest.beam conftest.$ac_ext
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_aio_msgq" >&5
21294 $as_echo "$apr_cv_aio_msgq" >&6; }
21296 if test "$apr_cv_aio_msgq" = "yes"; then
21298 $as_echo "#define HAVE_AIO_MSGQ 1" >>confdefs.h
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5
21304 $as_echo_n "checking for dup3 support... " >&6; }
21305 if ${apr_cv_dup3+:} false; then :
21306 $as_echo_n "(cached) " >&6
21308 if test "$cross_compiling" = yes; then :
21311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21312 /* end confdefs.h. */
21314 #include <unistd.h>
21318 return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1;
21321 if ac_fn_c_try_run "$LINENO"; then :
21326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21327 conftest.$ac_objext conftest.beam conftest.$ac_ext
21331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5
21332 $as_echo "$apr_cv_dup3" >&6; }
21334 if test "$apr_cv_dup3" = "yes"; then
21336 $as_echo "#define HAVE_DUP3 1" >>confdefs.h
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5
21342 $as_echo_n "checking for accept4 support... " >&6; }
21343 if ${apr_cv_accept4+:} false; then :
21344 $as_echo_n "(cached) " >&6
21346 if test "$cross_compiling" = yes; then :
21349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21350 /* end confdefs.h. */
21352 #include <unistd.h>
21353 #include <sys/types.h>
21354 #include <sys/socket.h>
21355 #include <sys/un.h>
21356 #include <sys/wait.h>
21357 #include <signal.h>
21360 #define A4_SOCK "./apr_accept4_test_socket"
21366 struct sockaddr_un loc, rem;
21369 if ((pid = fork())) {
21374 if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
21375 goto cleanup_failure2;
21377 loc.sun_family = AF_UNIX;
21378 strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
21380 if (bind(fd, (struct sockaddr *) &loc,
21381 sizeof(struct sockaddr_un)) == -1)
21382 goto cleanup_failure;
21384 if (listen(fd, 5) == -1)
21385 goto cleanup_failure;
21387 rem_sz = sizeof(struct sockaddr_un);
21388 if (accept4(fd, (struct sockaddr *) &rem, &rem_sz, 0) == -1) {
21389 goto cleanup_failure;
21393 waitpid(pid, &status, 0);
21401 kill(pid, SIGKILL);
21402 waitpid(pid, &status, 0);
21407 if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
21408 return 1; /* this will be bad: we'll hang */
21410 loc.sun_family = AF_UNIX;
21411 strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1);
21413 while(connect(fd, (struct sockaddr *) &loc,
21414 sizeof(struct sockaddr_un)) == -1 &&
21415 (errno==ENOENT || errno==ECONNREFUSED))
21423 if ac_fn_c_try_run "$LINENO"; then :
21428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21429 conftest.$ac_objext conftest.beam conftest.$ac_ext
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5
21434 $as_echo "$apr_cv_accept4" >&6; }
21436 if test "$apr_cv_accept4" = "yes"; then
21438 $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
21442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5
21443 $as_echo_n "checking for SOCK_CLOEXEC support... " >&6; }
21444 if ${apr_cv_sock_cloexec+:} false; then :
21445 $as_echo_n "(cached) " >&6
21447 if test "$cross_compiling" = yes; then :
21448 apr_cv_sock_cloexec=no
21450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21451 /* end confdefs.h. */
21453 #include <sys/types.h>
21454 #include <sys/socket.h>
21458 return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1;
21461 if ac_fn_c_try_run "$LINENO"; then :
21462 apr_cv_sock_cloexec=yes
21464 apr_cv_sock_cloexec=no
21466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21467 conftest.$ac_objext conftest.beam conftest.$ac_ext
21471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5
21472 $as_echo "$apr_cv_sock_cloexec" >&6; }
21474 if test "$apr_cv_sock_cloexec" = "yes"; then
21476 $as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
21480 for ac_func in getpwnam_r getpwuid_r getgrnam_r getgrgid_r
21482 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21483 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21484 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21485 cat >>confdefs.h <<_ACEOF
21486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21493 echo "${nl}Checking for Shared Memory Support..."
21495 # The real-time POSIX extensions (e.g. shm_*, sem_*) may only
21496 # be available if linking against librt.
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21498 $as_echo_n "checking for library containing shm_open... " >&6; }
21499 if ${ac_cv_search_shm_open+:} false; then :
21500 $as_echo_n "(cached) " >&6
21502 ac_func_search_save_LIBS=$LIBS
21503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21504 /* end confdefs.h. */
21506 /* Override any GCC internal prototype to avoid an error.
21507 Use char because int might match the return type of a GCC
21508 builtin and then its argument prototype would still apply. */
21516 return shm_open ();
21521 for ac_lib in '' rt; do
21522 if test -z "$ac_lib"; then
21523 ac_res="none required"
21526 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21528 if ac_fn_c_try_link "$LINENO"; then :
21529 ac_cv_search_shm_open=$ac_res
21531 rm -f core conftest.err conftest.$ac_objext \
21533 if ${ac_cv_search_shm_open+:} false; then :
21537 if ${ac_cv_search_shm_open+:} false; then :
21540 ac_cv_search_shm_open=no
21542 rm conftest.$ac_ext
21543 LIBS=$ac_func_search_save_LIBS
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21546 $as_echo "$ac_cv_search_shm_open" >&6; }
21547 ac_res=$ac_cv_search_shm_open
21548 if test "$ac_res" != no; then :
21549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21556 ac_includes_default="$ac_includes_default
21557 #if HAVE_SYS_MUTEX_H /* needed to define lock_t for sys/shm.h */
21558 # include <sys/mutex.h>
21562 for ac_header in sys/types.h sys/mman.h sys/ipc.h sys/mutex.h \
21563 sys/shm.h sys/file.h sys/socket.h kernel/OS.h os2.h windows.h
21565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21566 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21567 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21568 cat >>confdefs.h <<_ACEOF
21569 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21576 for ac_header in net/if.h
21578 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
21579 #ifdef HAVE_SYS_SOCKET_H
21580 #include <sys/socket.h>
21582 #include <net/if.h>
21585 if test "x$ac_cv_header_net_if_h" = xyes; then :
21586 cat >>confdefs.h <<_ACEOF
21587 #define HAVE_NET_IF_H 1
21594 for ac_func in mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \
21595 create_area mprotect
21597 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21598 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21599 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21600 cat >>confdefs.h <<_ACEOF
21601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON in sys/mman.h" >&5
21610 $as_echo_n "checking for MAP_ANON in sys/mman.h... " >&6; }
21611 if ${ac_cv_define_MAP_ANON+:} false; then :
21612 $as_echo_n "(cached) " >&6
21615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21616 /* end confdefs.h. */
21618 #include <sys/mman.h>
21624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21625 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
21626 ac_cv_define_MAP_ANON=yes
21628 ac_cv_define_MAP_ANON=no
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_MAP_ANON" >&5
21635 $as_echo "$ac_cv_define_MAP_ANON" >&6; }
21636 if test "$ac_cv_define_MAP_ANON" = "yes"; then
21638 $as_echo "#define HAVE_MAP_ANON 1" >>confdefs.h
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
21643 $as_echo_n "checking for /dev/zero... " >&6; }
21644 if ${ac_cv_file__dev_zero+:} false; then :
21645 $as_echo_n "(cached) " >&6
21647 test "$cross_compiling" = yes &&
21648 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
21649 if test -r "/dev/zero"; then
21650 ac_cv_file__dev_zero=yes
21652 ac_cv_file__dev_zero=no
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
21656 $as_echo "$ac_cv_file__dev_zero" >&6; }
21657 if test "x$ac_cv_file__dev_zero" = xyes; then :
21662 # Not all systems can mmap /dev/zero (such as HP-UX). Check for that.
21663 if test "$ac_cv_func_mmap" = "yes" &&
21664 test "$ac_cv_file__dev_zero" = "yes"; then
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap that can map /dev/zero" >&5
21666 $as_echo_n "checking for mmap that can map /dev/zero... " >&6; }
21667 if test "$cross_compiling" = yes; then :
21668 ac_cv_file__dev_zero=no
21670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21671 /* end confdefs.h. */
21673 #include <sys/types.h>
21674 #include <sys/stat.h>
21676 #ifdef HAVE_SYS_MMAN_H
21677 #include <sys/mman.h>
21683 fd = open("/dev/zero", O_RDWR);
21687 m = mmap(0, sizeof(void*), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
21688 if (m == (void *)-1) { /* aka MAP_FAILED */
21691 if (munmap(m, sizeof(void*)) < 0) {
21697 if ac_fn_c_try_run "$LINENO"; then :
21700 ac_cv_file__dev_zero=no
21702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21703 conftest.$ac_objext conftest.beam conftest.$ac_ext
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5
21708 $as_echo "$ac_cv_file__dev_zero" >&6; }
21711 # Now we determine which one is our anonymous shmem preference.
21715 ac_decision_item='anonymous shared memory allocation method'
21716 ac_decision_msg='FAILED'
21720 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
21721 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21722 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21725 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21726 ac_var="ac_cv_header_$ac_item"
21729 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21730 ac_var="ac_cv_file_$ac_item"
21732 func ) ac_var="ac_cv_func_$ac_item" ;;
21733 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21734 define ) ac_var="ac_cv_define_$ac_item" ;;
21735 custom ) ac_var="$ac_item" ;;
21737 eval "ac_val=\$$ac_var"
21738 if test ".$ac_val" != .yes; then
21743 if test ".$ac_rc" = .yes; then
21747 ac_decision='USE_SHMEM_SHMGET_ANON'
21748 ac_decision_msg='SysV IPC shmget()'
21749 ac_decision_USE_SHMEM_SHMGET_ANON=yes
21750 ac_decision_USE_SHMEM_SHMGET_ANON_msg='SysV IPC shmget()'
21758 for ac_spec in header:sys/mman.h func:mmap func:munmap file:/dev/zero; do
21759 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21760 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21763 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21764 ac_var="ac_cv_header_$ac_item"
21767 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21768 ac_var="ac_cv_file_$ac_item"
21770 func ) ac_var="ac_cv_func_$ac_item" ;;
21771 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21772 define ) ac_var="ac_cv_define_$ac_item" ;;
21773 custom ) ac_var="$ac_item" ;;
21775 eval "ac_val=\$$ac_var"
21776 if test ".$ac_val" != .yes; then
21781 if test ".$ac_rc" = .yes; then
21785 ac_decision='USE_SHMEM_MMAP_ZERO'
21786 ac_decision_msg='SVR4-style mmap() on /dev/zero'
21787 ac_decision_USE_SHMEM_MMAP_ZERO=yes
21788 ac_decision_USE_SHMEM_MMAP_ZERO_msg='SVR4-style mmap() on /dev/zero'
21796 for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
21797 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21798 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21801 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21802 ac_var="ac_cv_header_$ac_item"
21805 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21806 ac_var="ac_cv_file_$ac_item"
21808 func ) ac_var="ac_cv_func_$ac_item" ;;
21809 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21810 define ) ac_var="ac_cv_define_$ac_item" ;;
21811 custom ) ac_var="$ac_item" ;;
21813 eval "ac_val=\$$ac_var"
21814 if test ".$ac_val" != .yes; then
21819 if test ".$ac_rc" = .yes; then
21823 ac_decision='USE_SHMEM_MMAP_ANON'
21824 ac_decision_msg='4.4BSD-style mmap() via MAP_ANON'
21825 ac_decision_USE_SHMEM_MMAP_ANON=yes
21826 ac_decision_USE_SHMEM_MMAP_ANON_msg='4.4BSD-style mmap() via MAP_ANON'
21834 for ac_spec in header:os2.h; do
21835 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21836 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21839 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21840 ac_var="ac_cv_header_$ac_item"
21843 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21844 ac_var="ac_cv_file_$ac_item"
21846 func ) ac_var="ac_cv_func_$ac_item" ;;
21847 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21848 define ) ac_var="ac_cv_define_$ac_item" ;;
21849 custom ) ac_var="$ac_item" ;;
21851 eval "ac_val=\$$ac_var"
21852 if test ".$ac_val" != .yes; then
21857 if test ".$ac_rc" = .yes; then
21861 ac_decision='USE_SHMEM_OS2_ANON'
21862 ac_decision_msg='OS/2 DosAllocSharedMem()'
21863 ac_decision_USE_SHMEM_OS2_ANON=yes
21864 ac_decision_USE_SHMEM_OS2_ANON_msg='OS/2 DosAllocSharedMem()'
21872 for ac_spec in header:kernel/OS.h func:create_area; do
21873 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21874 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21877 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21878 ac_var="ac_cv_header_$ac_item"
21881 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21882 ac_var="ac_cv_file_$ac_item"
21884 func ) ac_var="ac_cv_func_$ac_item" ;;
21885 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21886 define ) ac_var="ac_cv_define_$ac_item" ;;
21887 custom ) ac_var="$ac_item" ;;
21889 eval "ac_val=\$$ac_var"
21890 if test ".$ac_val" != .yes; then
21895 if test ".$ac_rc" = .yes; then
21899 ac_decision='USE_SHMEM_BEOS_ANON'
21900 ac_decision_msg='BeOS areas'
21901 ac_decision_USE_SHMEM_BEOS_ANON=yes
21902 ac_decision_USE_SHMEM_BEOS_ANON_msg='BeOS areas'
21910 for ac_spec in header:windows.h func:CreateFileMapping; do
21911 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
21912 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
21915 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21916 ac_var="ac_cv_header_$ac_item"
21919 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
21920 ac_var="ac_cv_file_$ac_item"
21922 func ) ac_var="ac_cv_func_$ac_item" ;;
21923 struct ) ac_var="ac_cv_struct_$ac_item" ;;
21924 define ) ac_var="ac_cv_define_$ac_item" ;;
21925 custom ) ac_var="$ac_item" ;;
21927 eval "ac_val=\$$ac_var"
21928 if test ".$ac_val" != .yes; then
21933 if test ".$ac_rc" = .yes; then
21937 ac_decision='USE_SHMEM_WIN32_ANON'
21938 ac_decision_msg='Windows CreateFileMapping()'
21939 ac_decision_USE_SHMEM_WIN32_ANON=yes
21940 ac_decision_USE_SHMEM_WIN32_ANON_msg='Windows CreateFileMapping()'
21949 # Linux has problems with MM_SHMT_MMANON even though it reports
21951 # FIXME - find exact 2.3 version that MMANON was fixed in. It is
21952 # confirmed fixed in 2.4 series.
21953 if test $os_pre24linux -eq 1; then
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling anon mmap() support for Linux pre-2.4" >&5
21955 $as_echo "$as_me: WARNING: Disabling anon mmap() support for Linux pre-2.4" >&2;}
21957 for ac_item in USE_SHMEM_MMAP_ZERO USE_SHMEM_SHMGET_ANON; do
21958 eval "ac_decision_this=\$ac_decision_${ac_item}"
21959 if test ".$ac_decision_this" = .yes; then
21960 ac_decision=$ac_item
21961 eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21969 for ac_item in USE_SHMEM_SHMGET_ANON; do
21970 eval "ac_decision_this=\$ac_decision_${ac_item}"
21971 if test ".$ac_decision_this" = .yes; then
21972 ac_decision=$ac_item
21973 eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
21979 if test ".$ac_decision" = .; then
21980 echo "$0:Error: decision on $ac_decision_item failed" 1>&2
21983 if test ".$ac_decision_msg" = .; then
21984 ac_decision_msg="$ac_decision"
21986 cat >>confdefs.h <<_ACEOF
21987 #define ${ac_decision_item} 1
21990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
21991 $as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
21994 cat >>confdefs.h <<_ACEOF
21995 #define $ac_decision 1
22003 case $ac_decision in
22004 USE_SHMEM_SHMGET_ANON )
22007 USE_SHMEM_MMAP_ZERO )
22010 USE_SHMEM_MMAP_ANON )
22022 # Now we determine which one is our name-based shmem preference.
22029 ac_decision_item='namebased memory allocation method'
22030 ac_decision_msg='FAILED'
22034 for ac_spec in header:sys/mman.h func:mmap func:munmap; do
22035 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
22036 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
22039 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22040 ac_var="ac_cv_header_$ac_item"
22043 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22044 ac_var="ac_cv_file_$ac_item"
22046 func ) ac_var="ac_cv_func_$ac_item" ;;
22047 struct ) ac_var="ac_cv_struct_$ac_item" ;;
22048 define ) ac_var="ac_cv_define_$ac_item" ;;
22049 custom ) ac_var="$ac_item" ;;
22051 eval "ac_val=\$$ac_var"
22052 if test ".$ac_val" != .yes; then
22057 if test ".$ac_rc" = .yes; then
22061 ac_decision='USE_SHMEM_MMAP_TMP'
22062 ac_decision_msg='Classical mmap() on temporary file'
22063 ac_decision_USE_SHMEM_MMAP_TMP=yes
22064 ac_decision_USE_SHMEM_MMAP_TMP_msg='Classical mmap() on temporary file'
22072 for ac_spec in header:sys/mman.h func:mmap func:munmap func:shm_open func:shm_unlink; do
22073 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
22074 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
22077 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22078 ac_var="ac_cv_header_$ac_item"
22081 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22082 ac_var="ac_cv_file_$ac_item"
22084 func ) ac_var="ac_cv_func_$ac_item" ;;
22085 struct ) ac_var="ac_cv_struct_$ac_item" ;;
22086 define ) ac_var="ac_cv_define_$ac_item" ;;
22087 custom ) ac_var="$ac_item" ;;
22089 eval "ac_val=\$$ac_var"
22090 if test ".$ac_val" != .yes; then
22095 if test ".$ac_rc" = .yes; then
22099 ac_decision='USE_SHMEM_MMAP_SHM'
22100 ac_decision_msg='mmap() via POSIX.1 shm_open() on temporary file'
22101 ac_decision_USE_SHMEM_MMAP_SHM=yes
22102 ac_decision_USE_SHMEM_MMAP_SHM_msg='mmap() via POSIX.1 shm_open() on temporary file'
22110 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
22111 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
22112 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
22115 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22116 ac_var="ac_cv_header_$ac_item"
22119 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22120 ac_var="ac_cv_file_$ac_item"
22122 func ) ac_var="ac_cv_func_$ac_item" ;;
22123 struct ) ac_var="ac_cv_struct_$ac_item" ;;
22124 define ) ac_var="ac_cv_define_$ac_item" ;;
22125 custom ) ac_var="$ac_item" ;;
22127 eval "ac_val=\$$ac_var"
22128 if test ".$ac_val" != .yes; then
22133 if test ".$ac_rc" = .yes; then
22137 ac_decision='USE_SHMEM_SHMGET'
22138 ac_decision_msg='SysV IPC shmget()'
22139 ac_decision_USE_SHMEM_SHMGET=yes
22140 ac_decision_USE_SHMEM_SHMGET_msg='SysV IPC shmget()'
22148 for ac_spec in header:kernel/OS.h func:create_area; do
22149 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
22150 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
22153 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22154 ac_var="ac_cv_header_$ac_item"
22157 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22158 ac_var="ac_cv_file_$ac_item"
22160 func ) ac_var="ac_cv_func_$ac_item" ;;
22161 struct ) ac_var="ac_cv_struct_$ac_item" ;;
22162 define ) ac_var="ac_cv_define_$ac_item" ;;
22163 custom ) ac_var="$ac_item" ;;
22165 eval "ac_val=\$$ac_var"
22166 if test ".$ac_val" != .yes; then
22171 if test ".$ac_rc" = .yes; then
22175 ac_decision='USE_SHMEM_BEOS'
22176 ac_decision_msg='BeOS areas'
22177 ac_decision_USE_SHMEM_BEOS=yes
22178 ac_decision_USE_SHMEM_BEOS_msg='BeOS areas'
22186 for ac_spec in header:os2.h; do
22187 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
22188 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
22191 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22192 ac_var="ac_cv_header_$ac_item"
22195 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22196 ac_var="ac_cv_file_$ac_item"
22198 func ) ac_var="ac_cv_func_$ac_item" ;;
22199 struct ) ac_var="ac_cv_struct_$ac_item" ;;
22200 define ) ac_var="ac_cv_define_$ac_item" ;;
22201 custom ) ac_var="$ac_item" ;;
22203 eval "ac_val=\$$ac_var"
22204 if test ".$ac_val" != .yes; then
22209 if test ".$ac_rc" = .yes; then
22213 ac_decision='USE_SHMEM_OS2'
22214 ac_decision_msg='OS/2 DosAllocSharedMem()'
22215 ac_decision_USE_SHMEM_OS2=yes
22216 ac_decision_USE_SHMEM_OS2_msg='OS/2 DosAllocSharedMem()'
22224 for ac_spec in header:windows.h; do
22225 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
22226 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
22229 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22230 ac_var="ac_cv_header_$ac_item"
22233 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
22234 ac_var="ac_cv_file_$ac_item"
22236 func ) ac_var="ac_cv_func_$ac_item" ;;
22237 struct ) ac_var="ac_cv_struct_$ac_item" ;;
22238 define ) ac_var="ac_cv_define_$ac_item" ;;
22239 custom ) ac_var="$ac_item" ;;
22241 eval "ac_val=\$$ac_var"
22242 if test ".$ac_val" != .yes; then
22247 if test ".$ac_rc" = .yes; then
22251 ac_decision='USE_SHMEM_WIN32'
22252 ac_decision_msg='Windows shared memory'
22253 ac_decision_USE_SHMEM_WIN32=yes
22254 ac_decision_USE_SHMEM_WIN32_msg='Windows shared memory'
22261 # Check whether --enable-posix-shm was given.
22262 if test "${enable_posix_shm+set}" = set; then :
22263 enableval=$enable_posix_shm;
22264 if test "$havemmapshm" = "1"; then
22266 for ac_item in USE_SHMEM_MMAP_SHM; do
22267 eval "ac_decision_this=\$ac_decision_${ac_item}"
22268 if test ".$ac_decision_this" = .yes; then
22269 ac_decision=$ac_item
22270 eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
22280 # Linux pre-2.4 had problems with MM_SHMT_MMANON even though
22281 # it reports that it has it.
22282 if test $os_pre24linux -eq 1; then
22284 for ac_item in USE_SHMEM_MMAP_TMP USE_SHMEM_MMAP_SHM USE_SHMEM_SHMGET; do
22285 eval "ac_decision_this=\$ac_decision_${ac_item}"
22286 if test ".$ac_decision_this" = .yes; then
22287 ac_decision=$ac_item
22288 eval "ac_decision_msg=\$ac_decision_${ac_item}_msg"
22295 if test ".$ac_decision" = .; then
22296 echo "$0:Error: decision on $ac_decision_item failed" 1>&2
22299 if test ".$ac_decision_msg" = .; then
22300 ac_decision_msg="$ac_decision"
22302 cat >>confdefs.h <<_ACEOF
22303 #define ${ac_decision_item} 1
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
22307 $as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
22310 cat >>confdefs.h <<_ACEOF
22311 #define $ac_decision 1
22322 case $ac_decision in
22323 USE_SHMEM_MMAP_TMP )
22326 USE_SHMEM_MMAP_SHM )
22343 # Do we have any shared memory support?
22344 if test "$usemmaptmp$usemmapshm$usemmapzero$useshmget$usemmapanon$usebeosarea$useos2shm$usewin32shm" = "00000000"; then
22365 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22366 if test "x$ac_cv_type_size_t" = xyes; then :
22370 cat >>confdefs.h <<_ACEOF
22371 #define size_t unsigned int
22376 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22377 # for constant arguments. Useless!
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
22379 $as_echo_n "checking for working alloca.h... " >&6; }
22380 if ${ac_cv_working_alloca_h+:} false; then :
22381 $as_echo_n "(cached) " >&6
22383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22384 /* end confdefs.h. */
22385 #include <alloca.h>
22389 char *p = (char *) alloca (2 * sizeof (int));
22395 if ac_fn_c_try_link "$LINENO"; then :
22396 ac_cv_working_alloca_h=yes
22398 ac_cv_working_alloca_h=no
22400 rm -f core conftest.err conftest.$ac_objext \
22401 conftest$ac_exeext conftest.$ac_ext
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
22404 $as_echo "$ac_cv_working_alloca_h" >&6; }
22405 if test $ac_cv_working_alloca_h = yes; then
22407 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
22411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
22412 $as_echo_n "checking for alloca... " >&6; }
22413 if ${ac_cv_func_alloca_works+:} false; then :
22414 $as_echo_n "(cached) " >&6
22416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22417 /* end confdefs.h. */
22419 # define alloca __builtin_alloca
22422 # include <malloc.h>
22423 # define alloca _alloca
22425 # ifdef HAVE_ALLOCA_H
22426 # include <alloca.h>
22431 # ifndef alloca /* predefined by HP cc +Olibcalls */
22432 void *alloca (size_t);
22442 char *p = (char *) alloca (1);
22448 if ac_fn_c_try_link "$LINENO"; then :
22449 ac_cv_func_alloca_works=yes
22451 ac_cv_func_alloca_works=no
22453 rm -f core conftest.err conftest.$ac_objext \
22454 conftest$ac_exeext conftest.$ac_ext
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
22457 $as_echo "$ac_cv_func_alloca_works" >&6; }
22459 if test $ac_cv_func_alloca_works = yes; then
22461 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
22464 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22465 # that cause trouble. Some versions do not even contain alloca or
22466 # contain a buggy version. If you still want to use their alloca,
22467 # use ar to extract alloca.o from them instead of compiling alloca.c.
22469 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
22471 $as_echo "#define C_ALLOCA 1" >>confdefs.h
22474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
22475 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
22476 if ${ac_cv_os_cray+:} false; then :
22477 $as_echo_n "(cached) " >&6
22479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22480 /* end confdefs.h. */
22481 #if defined CRAY && ! defined CRAY2
22488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22489 $EGREP "webecray" >/dev/null 2>&1; then :
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
22498 $as_echo "$ac_cv_os_cray" >&6; }
22499 if test $ac_cv_os_cray = yes; then
22500 for ac_func in _getb67 GETB67 getb67; do
22501 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22502 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22503 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22505 cat >>confdefs.h <<_ACEOF
22506 #define CRAY_STACKSEG_END $ac_func
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
22516 $as_echo_n "checking stack direction for C alloca... " >&6; }
22517 if ${ac_cv_c_stack_direction+:} false; then :
22518 $as_echo_n "(cached) " >&6
22520 if test "$cross_compiling" = yes; then :
22521 ac_cv_c_stack_direction=0
22523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22524 /* end confdefs.h. */
22525 $ac_includes_default
22527 find_stack_direction (int *addr, int depth)
22529 int dir, dummy = 0;
22532 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
22533 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
22534 return dir + dummy;
22538 main (int argc, char **argv)
22540 return find_stack_direction (0, argc + !argv + 20) < 0;
22543 if ac_fn_c_try_run "$LINENO"; then :
22544 ac_cv_c_stack_direction=1
22546 ac_cv_c_stack_direction=-1
22548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22549 conftest.$ac_objext conftest.beam conftest.$ac_ext
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
22554 $as_echo "$ac_cv_c_stack_direction" >&6; }
22555 cat >>confdefs.h <<_ACEOF
22556 #define STACK_DIRECTION $ac_cv_c_stack_direction
22563 for ac_func in calloc setsid isinf isnan \
22564 getenv putenv setenv unsetenv \
22565 writev getifaddrs utime utimes
22567 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22568 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22569 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22570 cat >>confdefs.h <<_ACEOF
22571 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22577 for ac_func in setrlimit
22579 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
22580 if test "x$ac_cv_func_setrlimit" = xyes; then :
22581 cat >>confdefs.h <<_ACEOF
22582 #define HAVE_SETRLIMIT 1
22590 for ac_func in getrlimit
22592 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
22593 if test "x$ac_cv_func_getrlimit" = xyes; then :
22594 cat >>confdefs.h <<_ACEOF
22595 #define HAVE_GETRLIMIT 1
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfilev in -lsendfile" >&5
22605 $as_echo_n "checking for sendfilev in -lsendfile... " >&6; }
22606 if ${ac_cv_lib_sendfile_sendfilev+:} false; then :
22607 $as_echo_n "(cached) " >&6
22609 ac_check_lib_save_LIBS=$LIBS
22610 LIBS="-lsendfile $LIBS"
22611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22612 /* end confdefs.h. */
22614 /* Override any GCC internal prototype to avoid an error.
22615 Use char because int might match the return type of a GCC
22616 builtin and then its argument prototype would still apply. */
22624 return sendfilev ();
22629 if ac_fn_c_try_link "$LINENO"; then :
22630 ac_cv_lib_sendfile_sendfilev=yes
22632 ac_cv_lib_sendfile_sendfilev=no
22634 rm -f core conftest.err conftest.$ac_objext \
22635 conftest$ac_exeext conftest.$ac_ext
22636 LIBS=$ac_check_lib_save_LIBS
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfilev" >&5
22639 $as_echo "$ac_cv_lib_sendfile_sendfilev" >&6; }
22640 if test "x$ac_cv_lib_sendfile_sendfilev" = xyes; then :
22641 cat >>confdefs.h <<_ACEOF
22642 #define HAVE_LIBSENDFILE 1
22645 LIBS="-lsendfile $LIBS"
22649 for ac_func in sendfile send_file sendfilev
22651 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22652 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22653 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22654 cat >>confdefs.h <<_ACEOF
22655 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22664 # Check whether --with-sendfile was given.
22665 if test "${with_sendfile+set}" = set; then :
22666 withval=$with_sendfile; if test "$withval" = "yes"; then
22673 orig_sendfile=$sendfile
22676 # FreeBSD < 4.2 has issues with threads+sendfile
22677 if test $os_version -le "401999"; then
22678 if test "$threads" = "1"; then
22687 # disable sendfile support for 2.2 on S/390
22688 if test $os_pre24linux -eq 1; then
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabled sendfile support for Linux 2.2 on S/390" >&5
22690 $as_echo "$as_me: WARNING: Disabled sendfile support for Linux 2.2 on S/390" >&2;}
22695 # compiler-independent check for 64-bit build
22696 # The cast to long int works around a bug in the HP C Compiler
22697 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22698 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22699 # This bug is HP SR number 8606223364.
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
22701 $as_echo_n "checking size of void*... " >&6; }
22702 if ${ac_cv_sizeof_voidp+:} false; then :
22703 $as_echo_n "(cached) " >&6
22705 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
22708 if test "$ac_cv_type_voidp" = yes; then
22709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22711 as_fn_error 77 "cannot compute sizeof (void*)
22712 See \`config.log' for more details" "$LINENO" 5; }
22714 ac_cv_sizeof_voidp=0
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
22720 $as_echo "$ac_cv_sizeof_voidp" >&6; }
22724 cat >>confdefs.h <<_ACEOF
22725 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
22729 if test "x$ac_cv_sizeof_voidp" = "x8"; then
22730 # sendfile not working for 64-bit build
22735 if test "$orig_sendfile" != "$sendfile"; then
22736 echo "sendfile support disabled to avoid system problem"
22742 for ac_func in sigaction
22744 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
22745 if test "x$ac_cv_func_sigaction" = xyes; then :
22746 cat >>confdefs.h <<_ACEOF
22747 #define HAVE_SIGACTION 1
22755 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
22756 /* NetBSD declares sys_siglist in unistd.h. */
22757 #ifdef HAVE_UNISTD_H
22758 # include <unistd.h>
22762 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
22768 cat >>confdefs.h <<_ACEOF
22769 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
22774 for ac_func in fork
22776 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
22777 if test "x$ac_cv_func_fork" = xyes; then :
22778 cat >>confdefs.h <<_ACEOF
22779 #define HAVE_FORK 1
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr" >&5
22789 $as_echo_n "checking for inet_addr... " >&6; }
22790 if ${ac_cv_func_inet_addr+:} false; then :
22791 $as_echo_n "(cached) " >&6
22794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22795 /* end confdefs.h. */
22797 #ifdef HAVE_SYS_TYPES_H
22798 #include <sys/types.h>
22800 #ifdef HAVE_ARPA_INET_H
22801 #include <arpa/inet.h>
22808 inet_addr("127.0.0.1");
22814 if ac_fn_c_try_compile "$LINENO"; then :
22816 ac_cv_func_inet_addr=yes
22820 ac_cv_func_inet_addr=no
22823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_addr" >&5
22827 $as_echo "$ac_cv_func_inet_addr" >&6; }
22829 if test "$ac_cv_func_inet_addr" = "yes"; then
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_network" >&5
22837 $as_echo_n "checking for inet_network... " >&6; }
22838 if ${ac_cv_func_inet_network+:} false; then :
22839 $as_echo_n "(cached) " >&6
22842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22843 /* end confdefs.h. */
22845 #ifdef HAVE_SYS_TYPES_H
22846 #include <sys/types.h>
22848 #ifdef HAVE_ARPA_INET_H
22849 #include <arpa/inet.h>
22856 inet_network("127.0.0.1");
22862 if ac_fn_c_try_compile "$LINENO"; then :
22864 ac_cv_func_inet_network=yes
22868 ac_cv_func_inet_network=no
22871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_network" >&5
22875 $as_echo "$ac_cv_func_inet_network" >&6; }
22877 if test "$ac_cv_func_inet_network" = "yes"; then
22878 have_inet_network=1
22880 have_inet_network=0
22884 ac_fn_c_check_func "$LINENO" "_getch" "ac_cv_func__getch"
22885 if test "x$ac_cv_func__getch" = xyes; then :
22889 for ac_func in strerror_r
22891 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
22892 if test "x$ac_cv_func_strerror_r" = xyes; then :
22893 cat >>confdefs.h <<_ACEOF
22894 #define HAVE_STRERROR_R 1
22902 if test "$strerror_r" = "1"; then
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of return code from strerror_r" >&5
22905 $as_echo_n "checking for type of return code from strerror_r... " >&6; }
22906 if test "$cross_compiling" = yes; then :
22908 ac_cv_strerror_r_rc_int=no
22910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22911 /* end confdefs.h. */
22914 #include <string.h>
22919 if (strerror_r(ERANGE, buf, sizeof buf) < 1) {
22927 if ac_fn_c_try_run "$LINENO"; then :
22929 ac_cv_strerror_r_rc_int=yes
22932 ac_cv_strerror_r_rc_int=no
22934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22935 conftest.$ac_objext conftest.beam conftest.$ac_ext
22938 if test "x$ac_cv_strerror_r_rc_int" = xyes; then
22940 $as_echo "#define STRERROR_R_RC_INT 1" >>confdefs.h
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
22947 $as_echo "$msg" >&6; }
22950 for ac_func in mmap
22952 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
22953 if test "x$ac_cv_func_mmap" = xyes; then :
22954 cat >>confdefs.h <<_ACEOF
22955 #define HAVE_MMAP 1
22963 if test "$native_mmap_emul" = "1"; then
22966 for ac_func in memmove
22968 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22969 if test "x$ac_cv_func_memmove" = xyes; then :
22970 cat >>confdefs.h <<_ACEOF
22971 #define HAVE_MEMMOVE 1
22979 for ac_func in getpass getpassphrase gmtime_r localtime_r
22981 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22982 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22983 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22984 cat >>confdefs.h <<_ACEOF
22985 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22995 for ac_func in mkstemp
22997 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
22998 if test "x$ac_cv_func_mkstemp" = xyes; then :
22999 cat >>confdefs.h <<_ACEOF
23000 #define HAVE_MKSTEMP 1
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sigwait takes one argument" >&5
23022 $as_echo_n "checking whether sigwait takes one argument... " >&6; }
23023 if ${ac_cv_sigwait_one_arg+:} false; then :
23024 $as_echo_n "(cached) " >&6
23027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23028 /* end confdefs.h. */
23030 #if defined(__NETBSD__) || defined(DARWIN)
23031 /* When using the unproven-pthreads package, we need to pull in this
23032 * header to get a prototype for sigwait(). Else things will fail later
23033 * on. XXX Should probably be fixed in the unproven-pthreads package.
23034 * Darwin is declaring sigwait() in the wrong place as well.
23036 #include <pthread.h>
23038 #include <signal.h>
23052 if ac_fn_c_try_compile "$LINENO"; then :
23054 ac_cv_sigwait_one_arg=yes
23058 ac_cv_sigwait_one_arg=no
23061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sigwait_one_arg" >&5
23064 $as_echo "$ac_cv_sigwait_one_arg" >&6; }
23065 if test "$ac_cv_sigwait_one_arg" = "yes"; then
23067 $as_echo "#define SIGWAIT_TAKES_ONE_ARG 1" >>confdefs.h
23072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
23073 $as_echo_n "checking for ANSI C header files... " >&6; }
23074 if ${ac_cv_header_stdc+:} false; then :
23075 $as_echo_n "(cached) " >&6
23077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23078 /* end confdefs.h. */
23079 #include <stdlib.h>
23080 #include <stdarg.h>
23081 #include <string.h>
23092 if ac_fn_c_try_compile "$LINENO"; then :
23093 ac_cv_header_stdc=yes
23095 ac_cv_header_stdc=no
23097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23099 if test $ac_cv_header_stdc = yes; then
23100 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23102 /* end confdefs.h. */
23103 #include <string.h>
23106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23107 $EGREP "memchr" >/dev/null 2>&1; then :
23110 ac_cv_header_stdc=no
23116 if test $ac_cv_header_stdc = yes; then
23117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23119 /* end confdefs.h. */
23120 #include <stdlib.h>
23123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23124 $EGREP "free" >/dev/null 2>&1; then :
23127 ac_cv_header_stdc=no
23133 if test $ac_cv_header_stdc = yes; then
23134 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23135 if test "$cross_compiling" = yes; then :
23138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23139 /* end confdefs.h. */
23141 #include <stdlib.h>
23142 #if ((' ' & 0x0FF) == 0x020)
23143 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23144 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23146 # define ISLOWER(c) \
23147 (('a' <= (c) && (c) <= 'i') \
23148 || ('j' <= (c) && (c) <= 'r') \
23149 || ('s' <= (c) && (c) <= 'z'))
23150 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23153 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23158 for (i = 0; i < 256; i++)
23159 if (XOR (islower (i), ISLOWER (i))
23160 || toupper (i) != TOUPPER (i))
23165 if ac_fn_c_try_run "$LINENO"; then :
23168 ac_cv_header_stdc=no
23170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23171 conftest.$ac_objext conftest.beam conftest.$ac_ext
23176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
23177 $as_echo "$ac_cv_header_stdc" >&6; }
23178 if test $ac_cv_header_stdc = yes; then
23180 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
23186 for ac_header in ByteOrder.h \
23231 netinet/sctp_uio.h \
23253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23254 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23255 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23256 cat >>confdefs.h <<_ACEOF
23257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23264 for aprt_i in ByteOrder.h \
23309 netinet/sctp_uio.h \
23331 ac_safe=`echo "$aprt_i" | sed 'y%./+-%__p_%'`
23332 aprt_2=`echo "$aprt_i" | sed -e 's%/%_%g' -e 's/\.//g' -e 's/-//g'`
23333 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23341 # IRIX 6.5 has a problem in <netinet/tcp.h> which prevents it from
23342 # being included by itself. Check for <netinet/tcp.h> manually,
23343 # including another header file first.
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netinet/tcp.h" >&5
23345 $as_echo_n "checking for netinet/tcp.h... " >&6; }
23346 if ${apr_cv_hdr_netinet_tcp_h+:} false; then :
23347 $as_echo_n "(cached) " >&6
23349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23350 /* end confdefs.h. */
23351 #ifdef HAVE_NETINET_IN_H
23352 #include <netinet/in.h>
23354 #include <netinet/tcp.h>
23357 if ac_fn_c_try_cpp "$LINENO"; then :
23358 apr_cv_hdr_netinet_tcp_h=yes
23360 apr_cv_hdr_netinet_tcp_h=no
23362 rm -f conftest.err conftest.i conftest.$ac_ext
23364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_hdr_netinet_tcp_h" >&5
23365 $as_echo "$apr_cv_hdr_netinet_tcp_h" >&6; }
23366 if test "$apr_cv_hdr_netinet_tcp_h" = "yes"; then
23369 $as_echo "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
23415 # Checking for h_errno in <netdb.h>
23416 if test "$netdbh" = "1"; then
23418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5
23419 $as_echo_n "checking for h_errno in netdb.h... " >&6; }
23420 if ${ac_cv_h_errno_cppflags+:} false; then :
23421 $as_echo_n "(cached) " >&6
23425 if test x != x; then
23426 CPPFLAGS="-D $CPPFLAGS"
23428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23429 /* end confdefs.h. */
23431 #ifdef HAVE_SYS_TYPES_H
23432 #include <sys/types.h>
23434 #ifdef HAVE_NETDB_H
23448 if ac_fn_c_try_compile "$LINENO"; then :
23450 if test x != x; then
23451 ac_cv_h_errno_cppflags=""
23453 ac_cv_h_errno_cppflags=yes
23458 ac_cv_h_errno_cppflags=no
23461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23462 if test "$ac_cv_h_errno_cppflags" = "no"; then
23463 ac_save="$CPPFLAGS"
23464 for flag in _XOPEN_SOURCE_EXTENDED; do
23466 if test x$flag != x; then
23467 CPPFLAGS="-D$flag $CPPFLAGS"
23469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23470 /* end confdefs.h. */
23472 #ifdef HAVE_SYS_TYPES_H
23473 #include <sys/types.h>
23475 #ifdef HAVE_NETDB_H
23489 if ac_fn_c_try_compile "$LINENO"; then :
23491 if test x$flag != x; then
23492 ac_cv_h_errno_cppflags="$flag"
23494 ac_cv_h_errno_cppflags=yes
23499 ac_cv_h_errno_cppflags=no
23502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23503 if test "$ac_cv_h_errno_cppflags" != "no"; then
23507 CPPFLAGS="$ac_save"
23512 if test "$ac_cv_h_errno_cppflags" != "no"; then
23513 if test "$ac_cv_h_errno_cppflags" != "yes"; then
23514 CPPFLAGS="-D$ac_cv_h_errno_cppflags $CPPFLAGS"
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -D$ac_cv_h_errno_cppflags" >&5
23516 $as_echo "yes, with -D$ac_cv_h_errno_cppflags" >&6; }
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
23519 $as_echo "$ac_cv_h_errno_cppflags" >&6; }
23522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5
23523 $as_echo "$ac_cv_h_errno_cppflags" >&6; }
23526 if test "$ac_cv_h_errno_cflags" = "no"; then
23527 as_fn_error $? "can not find h_errno in netdb.h" "$LINENO" 5
23531 # Check whether --enable-allocator-uses-mmap was given.
23532 if test "${enable_allocator_uses_mmap+set}" = set; then :
23533 enableval=$enable_allocator_uses_mmap; if test "$enableval" = "yes"; then
23535 for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do
23536 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
23537 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
23540 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
23541 ac_var="ac_cv_header_$ac_item"
23544 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
23545 ac_var="ac_cv_file_$ac_item"
23547 func ) ac_var="ac_cv_func_$ac_item" ;;
23548 struct ) ac_var="ac_cv_struct_$ac_item" ;;
23549 define ) ac_var="ac_cv_define_$ac_item" ;;
23550 custom ) ac_var="$ac_item" ;;
23552 eval "ac_val=\$$ac_var"
23553 if test ".$ac_val" != .yes; then
23558 if test ".$ac_rc" = .yes; then
23561 $as_echo "#define APR_ALLOCATOR_USES_MMAP 1" >>confdefs.h
23565 as_fn_error $? "mmap()/MAP_ANON not supported" "$LINENO" 5
23574 # Check whether --enable-allocator-guard-pages was given.
23575 if test "${enable_allocator_guard_pages+set}" = set; then :
23576 enableval=$enable_allocator_guard_pages; if test "$enableval" = "yes"; then
23578 for ac_spec in header:sys/mman.h func:mmap func:munmap func:mprotect define:MAP_ANON; do
23579 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
23580 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
23583 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
23584 ac_var="ac_cv_header_$ac_item"
23587 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
23588 ac_var="ac_cv_file_$ac_item"
23590 func ) ac_var="ac_cv_func_$ac_item" ;;
23591 struct ) ac_var="ac_cv_struct_$ac_item" ;;
23592 define ) ac_var="ac_cv_define_$ac_item" ;;
23593 custom ) ac_var="$ac_item" ;;
23595 eval "ac_val=\$$ac_var"
23596 if test ".$ac_val" != .yes; then
23601 if test ".$ac_rc" = .yes; then
23604 $as_echo "#define APR_ALLOCATOR_GUARD_PAGES 1" >>confdefs.h
23608 as_fn_error $? "mmap()/MAP_ANON/mprotect() not supported" "$LINENO" 5
23618 # Check whether --enable-pool-concurrency-check was given.
23619 if test "${enable_pool_concurrency_check+set}" = set; then :
23620 enableval=$enable_pool_concurrency_check; if test "$enableval" = "yes"; then
23622 $as_echo "#define APR_POOL_CONCURRENCY_CHECK 1" >>confdefs.h
23629 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23630 if test "x$ac_cv_type_off_t" = xyes; then :
23634 cat >>confdefs.h <<_ACEOF
23635 #define off_t long int
23640 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23641 if test "x$ac_cv_type_pid_t" = xyes; then :
23645 cat >>confdefs.h <<_ACEOF
23651 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23652 if test "x$ac_cv_type_size_t" = xyes; then :
23656 cat >>confdefs.h <<_ACEOF
23657 #define size_t unsigned int
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23663 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23664 if ${ac_cv_type_uid_t+:} false; then :
23665 $as_echo_n "(cached) " >&6
23667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23668 /* end confdefs.h. */
23669 #include <sys/types.h>
23672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23673 $EGREP "uid_t" >/dev/null 2>&1; then :
23674 ac_cv_type_uid_t=yes
23676 ac_cv_type_uid_t=no
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23682 $as_echo "$ac_cv_type_uid_t" >&6; }
23683 if test $ac_cv_type_uid_t = no; then
23685 $as_echo "#define uid_t int" >>confdefs.h
23688 $as_echo "#define gid_t int" >>confdefs.h
23692 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23693 if test "x$ac_cv_type_ssize_t" = xyes; then :
23697 cat >>confdefs.h <<_ACEOF
23698 #define ssize_t int
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
23704 $as_echo_n "checking for inline... " >&6; }
23705 if ${ac_cv_c_inline+:} false; then :
23706 $as_echo_n "(cached) " >&6
23709 for ac_kw in inline __inline__ __inline; do
23710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23711 /* end confdefs.h. */
23712 #ifndef __cplusplus
23714 static $ac_kw foo_t static_foo () {return 0; }
23715 $ac_kw foo_t foo () {return 0; }
23719 if ac_fn_c_try_compile "$LINENO"; then :
23720 ac_cv_c_inline=$ac_kw
23722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23723 test "$ac_cv_c_inline" != no && break
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
23728 $as_echo "$ac_cv_c_inline" >&6; }
23730 case $ac_cv_c_inline in
23733 case $ac_cv_c_inline in
23735 *) ac_val=$ac_cv_c_inline;;
23737 cat >>confdefs.h <<_ACEOF
23738 #ifndef __cplusplus
23739 #define inline $ac_val
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23746 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23747 if ${ac_cv_c_const+:} false; then :
23748 $as_echo_n "(cached) " >&6
23750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23751 /* end confdefs.h. */
23757 #ifndef __cplusplus
23758 /* Ultrix mips cc rejects this sort of thing. */
23759 typedef int charset[2];
23760 const charset cs = { 0, 0 };
23761 /* SunOS 4.1.1 cc rejects this. */
23762 char const *const *pcpcc;
23764 /* NEC SVR4.0.2 mips cc rejects this. */
23765 struct point {int x, y;};
23766 static struct point const zero = {0,0};
23767 /* AIX XL C 1.02.0.0 rejects this.
23768 It does not let you subtract one const X* pointer from another in
23769 an arm of an if-expression whose if-part is not a constant
23771 const char *g = "string";
23772 pcpcc = &g + (g ? g-g : 0);
23773 /* HPUX 7.0 cc rejects these. */
23775 ppc = (char**) pcpcc;
23776 pcpcc = (char const *const *) ppc;
23777 { /* SCO 3.2v4 cc rejects this sort of thing. */
23780 char const *s = 0 ? (char *) 0 : (char const *) 0;
23785 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23786 int x[] = {25, 17};
23787 const int *foo = &x[0];
23790 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23791 typedef const int *iptr;
23795 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23796 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23797 struct s { int j; const int *ap[3]; } bx;
23798 struct s *b = &bx; b->j = 5;
23800 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23801 const int foo = 10;
23802 if (!foo) return 0;
23804 return !cs[0] && !zero.x;
23811 if ac_fn_c_try_compile "$LINENO"; then :
23816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23819 $as_echo "$ac_cv_c_const" >&6; }
23820 if test $ac_cv_c_const = no; then
23822 $as_echo "#define const /**/" >>confdefs.h
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
23827 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
23828 if ${ac_cv_func_setpgrp_void+:} false; then :
23829 $as_echo_n "(cached) " >&6
23831 if test "$cross_compiling" = yes; then :
23832 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
23834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23835 /* end confdefs.h. */
23836 $ac_includes_default
23840 /* If this system has a BSD-style setpgrp which takes arguments,
23841 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
23842 exit successfully. */
23843 return setpgrp (1,1) != -1;
23848 if ac_fn_c_try_run "$LINENO"; then :
23849 ac_cv_func_setpgrp_void=no
23851 ac_cv_func_setpgrp_void=yes
23853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23854 conftest.$ac_objext conftest.beam conftest.$ac_ext
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
23859 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
23860 if test $ac_cv_func_setpgrp_void = yes; then
23862 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
23869 $as_echo_n "checking for socklen_t... " >&6; }
23870 if ${ac_cv_socklen_t+:} false; then :
23871 $as_echo_n "(cached) " >&6
23874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23875 /* end confdefs.h. */
23877 #ifdef HAVE_SYS_TYPES_H
23878 #include <sys/types.h>
23880 #ifdef HAVE_SYS_SOCKET_H
23881 #include <sys/socket.h>
23888 socklen_t foo = (socklen_t) 0;
23894 if ac_fn_c_try_compile "$LINENO"; then :
23896 ac_cv_socklen_t=yes
23903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_socklen_t" >&5
23907 $as_echo "$ac_cv_socklen_t" >&6; }
23909 if test "$ac_cv_socklen_t" = "yes"; then
23911 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
23916 # The cast to long int works around a bug in the HP C Compiler
23917 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23918 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23919 # This bug is HP SR number 8606223364.
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
23921 $as_echo_n "checking size of void*... " >&6; }
23922 if ${ac_cv_sizeof_voidp+:} false; then :
23923 $as_echo_n "(cached) " >&6
23925 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
23928 if test "$ac_cv_type_voidp" = yes; then
23929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23931 as_fn_error 77 "cannot compute sizeof (void*)
23932 See \`config.log' for more details" "$LINENO" 5; }
23934 ac_cv_sizeof_voidp=0
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
23940 $as_echo "$ac_cv_sizeof_voidp" >&6; }
23944 cat >>confdefs.h <<_ACEOF
23945 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
23950 if test "x$ac_cv_sizeof_voidp" != "x"; then
23951 voidp_size=$ac_cv_sizeof_voidp
23953 as_fn_error $? "Cannot determine size of void*" "$LINENO" 5
23956 # The cast to long int works around a bug in the HP C Compiler
23957 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23958 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23959 # This bug is HP SR number 8606223364.
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
23961 $as_echo_n "checking size of char... " >&6; }
23962 if ${ac_cv_sizeof_char+:} false; then :
23963 $as_echo_n "(cached) " >&6
23965 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
23968 if test "$ac_cv_type_char" = yes; then
23969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23971 as_fn_error 77 "cannot compute sizeof (char)
23972 See \`config.log' for more details" "$LINENO" 5; }
23974 ac_cv_sizeof_char=0
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
23980 $as_echo "$ac_cv_sizeof_char" >&6; }
23984 cat >>confdefs.h <<_ACEOF
23985 #define SIZEOF_CHAR $ac_cv_sizeof_char
23989 # The cast to long int works around a bug in the HP C Compiler
23990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23992 # This bug is HP SR number 8606223364.
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23994 $as_echo_n "checking size of short... " >&6; }
23995 if ${ac_cv_sizeof_short+:} false; then :
23996 $as_echo_n "(cached) " >&6
23998 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
24001 if test "$ac_cv_type_short" = yes; then
24002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24004 as_fn_error 77 "cannot compute sizeof (short)
24005 See \`config.log' for more details" "$LINENO" 5; }
24007 ac_cv_sizeof_short=0
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
24013 $as_echo "$ac_cv_sizeof_short" >&6; }
24017 cat >>confdefs.h <<_ACEOF
24018 #define SIZEOF_SHORT $ac_cv_sizeof_short
24022 # The cast to long int works around a bug in the HP C Compiler
24023 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24024 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24025 # This bug is HP SR number 8606223364.
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
24027 $as_echo_n "checking size of int... " >&6; }
24028 if ${ac_cv_sizeof_int+:} false; then :
24029 $as_echo_n "(cached) " >&6
24031 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
24034 if test "$ac_cv_type_int" = yes; then
24035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24037 as_fn_error 77 "cannot compute sizeof (int)
24038 See \`config.log' for more details" "$LINENO" 5; }
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
24046 $as_echo "$ac_cv_sizeof_int" >&6; }
24050 cat >>confdefs.h <<_ACEOF
24051 #define SIZEOF_INT $ac_cv_sizeof_int
24055 # The cast to long int works around a bug in the HP C Compiler
24056 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24057 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24058 # This bug is HP SR number 8606223364.
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
24060 $as_echo_n "checking size of long... " >&6; }
24061 if ${ac_cv_sizeof_long+:} false; then :
24062 $as_echo_n "(cached) " >&6
24064 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
24067 if test "$ac_cv_type_long" = yes; then
24068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24070 as_fn_error 77 "cannot compute sizeof (long)
24071 See \`config.log' for more details" "$LINENO" 5; }
24073 ac_cv_sizeof_long=0
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
24079 $as_echo "$ac_cv_sizeof_long" >&6; }
24083 cat >>confdefs.h <<_ACEOF
24084 #define SIZEOF_LONG $ac_cv_sizeof_long
24088 # The cast to long int works around a bug in the HP C Compiler
24089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24091 # This bug is HP SR number 8606223364.
24092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24093 $as_echo_n "checking size of long long... " >&6; }
24094 if ${ac_cv_sizeof_long_long+:} false; then :
24095 $as_echo_n "(cached) " >&6
24097 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
24100 if test "$ac_cv_type_long_long" = yes; then
24101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24103 as_fn_error 77 "cannot compute sizeof (long long)
24104 See \`config.log' for more details" "$LINENO" 5; }
24106 ac_cv_sizeof_long_long=0
24111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24112 $as_echo "$ac_cv_sizeof_long_long" >&6; }
24116 cat >>confdefs.h <<_ACEOF
24117 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24122 if test "$ac_cv_sizeof_short" = "2"; then
24125 if test "$ac_cv_sizeof_int" = "4"; then
24129 # Now we need to find what apr_int64_t (sizeof == 8) will be.
24130 # The first match is our preference (use inttypes if available).
24132 for ac_spec in header:stdint.h header:inttypes.h; do
24133 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
24134 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
24137 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
24138 ac_var="ac_cv_header_$ac_item"
24141 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
24142 ac_var="ac_cv_file_$ac_item"
24144 func ) ac_var="ac_cv_func_$ac_item" ;;
24145 struct ) ac_var="ac_cv_struct_$ac_item" ;;
24146 define ) ac_var="ac_cv_define_$ac_item" ;;
24147 custom ) ac_var="$ac_item" ;;
24149 eval "ac_val=\$$ac_var"
24150 if test ".$ac_val" != .yes; then
24155 if test ".$ac_rc" = .yes; then
24163 if test "$hasinttypes" = "1"; then
24164 int64_literal='#define APR_INT64_C(val) INT64_C(val)'
24165 uint64_literal='#define APR_UINT64_C(val) UINT64_C(val)'
24166 int64_t_fmt='#define APR_INT64_T_FMT PRId64'
24167 uint64_t_fmt='#define APR_UINT64_T_FMT PRIu64'
24168 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT PRIx64'
24169 int64_value="int64_t"
24170 uint64_value="uint64_t"
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether int64_t and int use fmt %d" >&5
24174 $as_echo_n "checking whether int64_t and int use fmt %d... " >&6; }
24175 if ${apr_cv_typematch_int64_t_int_d+:} false; then :
24176 $as_echo_n "(cached) " >&6
24179 apr_save_CFLAGS=$CFLAGS
24180 CFLAGS="$CFLAGS $CFLAGS_WARN"
24181 if test "$ac_cv_c_compiler_gnu" = "yes"; then
24182 CFLAGS="$CFLAGS -Werror"
24184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24185 /* end confdefs.h. */
24186 #include "confdefs.h"
24188 #include <sys/types.h>
24190 #ifdef HAVE_STDINT_H
24191 #include <stdint.h>
24194 int main(int argc, const char *const *argv) {
24196 int64_t chk1, *ptr1;
24197 int chk2, *ptr2 = &chk1;
24200 printf("%d %d", chk1, chk2);
24205 if ac_fn_c_try_compile "$LINENO"; then :
24206 CFLAGS=$apr_save_CFLAGS
24207 apr_cv_typematch_int64_t_int_d=yes
24209 CFLAGS=$apr_save_CFLAGS
24210 apr_cv_typematch_int64_t_int_d=no
24212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_int64_t_int_d" >&5
24216 $as_echo "$apr_cv_typematch_int64_t_int_d" >&6; }
24217 if test "$apr_cv_typematch_int64_t_int_d" = "yes"; then
24220 int64_strfn="strtoi"
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether int64_t and long use fmt %ld" >&5
24228 $as_echo_n "checking whether int64_t and long use fmt %ld... " >&6; }
24229 if ${apr_cv_typematch_int64_t_long_ld+:} false; then :
24230 $as_echo_n "(cached) " >&6
24233 apr_save_CFLAGS=$CFLAGS
24234 CFLAGS="$CFLAGS $CFLAGS_WARN"
24235 if test "$ac_cv_c_compiler_gnu" = "yes"; then
24236 CFLAGS="$CFLAGS -Werror"
24238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24239 /* end confdefs.h. */
24240 #include "confdefs.h"
24242 #include <sys/types.h>
24244 #ifdef HAVE_STDINT_H
24245 #include <stdint.h>
24248 int main(int argc, const char *const *argv) {
24250 int64_t chk1, *ptr1;
24251 long chk2, *ptr2 = &chk1;
24254 printf("%ld %ld", chk1, chk2);
24259 if ac_fn_c_try_compile "$LINENO"; then :
24260 CFLAGS=$apr_save_CFLAGS
24261 apr_cv_typematch_int64_t_long_ld=yes
24263 CFLAGS=$apr_save_CFLAGS
24264 apr_cv_typematch_int64_t_long_ld=no
24266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_int64_t_long_ld" >&5
24270 $as_echo "$apr_cv_typematch_int64_t_long_ld" >&6; }
24271 if test "$apr_cv_typematch_int64_t_long_ld" = "yes"; then
24274 int64_strfn="strtol"
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether int64_t and long long use fmt %lld" >&5
24282 $as_echo_n "checking whether int64_t and long long use fmt %lld... " >&6; }
24283 if ${apr_cv_typematch_int64_t_long_long_lld+:} false; then :
24284 $as_echo_n "(cached) " >&6
24287 apr_save_CFLAGS=$CFLAGS
24288 CFLAGS="$CFLAGS $CFLAGS_WARN"
24289 if test "$ac_cv_c_compiler_gnu" = "yes"; then
24290 CFLAGS="$CFLAGS -Werror"
24292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24293 /* end confdefs.h. */
24294 #include "confdefs.h"
24296 #include <sys/types.h>
24298 #ifdef HAVE_STDINT_H
24299 #include <stdint.h>
24302 int main(int argc, const char *const *argv) {
24304 int64_t chk1, *ptr1;
24305 long long chk2, *ptr2 = &chk1;
24308 printf("%lld %lld", chk1, chk2);
24313 if ac_fn_c_try_compile "$LINENO"; then :
24314 CFLAGS=$apr_save_CFLAGS
24315 apr_cv_typematch_int64_t_long_long_lld=yes
24317 CFLAGS=$apr_save_CFLAGS
24318 apr_cv_typematch_int64_t_long_long_lld=no
24320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_int64_t_long_long_lld" >&5
24324 $as_echo "$apr_cv_typematch_int64_t_long_long_lld" >&6; }
24325 if test "$apr_cv_typematch_int64_t_long_long_lld" = "yes"; then
24328 int64_strfn="strtoll"
24333 as_fn_error $? "could not determine the string function for int64_t" "$LINENO" 5
24341 elif test "$ac_cv_sizeof_int" = "8"; then
24342 int64_literal='#define APR_INT64_C(val) (val)'
24343 uint64_literal='#define APR_UINT64_C(val) (val##U)'
24344 int64_t_fmt='#define APR_INT64_T_FMT "d"'
24345 uint64_t_fmt='#define APR_UINT64_T_FMT "u"'
24346 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "x"'
24348 uint64_value="unsigned int"
24349 int64_strfn="strtoi"
24350 elif test "$ac_cv_sizeof_long" = "8"; then
24351 int64_literal='#define APR_INT64_C(val) (val##L)'
24352 uint64_literal='#define APR_UINT64_C(val) (val##UL)'
24353 int64_t_fmt='#define APR_INT64_T_FMT "ld"'
24354 uint64_t_fmt='#define APR_UINT64_T_FMT "lu"'
24355 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "lx"'
24357 uint64_value="unsigned long"
24358 int64_strfn="strtol"
24359 elif test "$ac_cv_sizeof_long_long" = "8"; then
24360 int64_literal='#define APR_INT64_C(val) (val##LL)'
24361 uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
24362 # Linux, Solaris, FreeBSD all support ll with printf.
24363 # BSD 4.4 originated 'q'. Solaris is more popular and
24364 # doesn't support 'q'. Solaris wins. Exceptions can
24365 # go to the OS-dependent section.
24366 int64_t_fmt='#define APR_INT64_T_FMT "lld"'
24367 uint64_t_fmt='#define APR_UINT64_T_FMT "llu"'
24368 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "llx"'
24369 int64_value="long long"
24370 uint64_value="unsigned long long"
24371 int64_strfn="strtoll"
24372 elif test "$ac_cv_sizeof_longlong" = "8"; then
24373 int64_literal='#define APR_INT64_C(val) (val##LL)'
24374 uint64_literal='#define APR_UINT64_C(val) (val##ULL)'
24375 int64_t_fmt='#define APR_INT64_T_FMT "qd"'
24376 uint64_t_fmt='#define APR_UINT64_T_FMT "qu"'
24377 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "qx"'
24378 int64_value="__int64"
24379 uint64_value="unsigned __int64"
24380 int64_strfn="strtoll"
24382 # int64_literal may be overriden if your compiler thinks you have
24383 # a 64-bit value but APR does not agree.
24384 as_fn_error $? "could not detect a 64-bit integer type" "$LINENO" 5
24387 # If present, allow the C99 macro INT64_C to override our conversion.
24389 # HP-UX's ANSI C compiler provides this without any includes, so we
24390 # will first look for INT64_C without adding stdint.h
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INT64_C" >&5
24392 $as_echo_n "checking for INT64_C... " >&6; }
24393 if ${apr_cv_define_INT64_C+:} false; then :
24394 $as_echo_n "(cached) " >&6
24397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24398 /* end confdefs.h. */
24403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24404 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
24405 apr_cv_define_INT64_C=yes
24408 # Now check for INT64_C in stdint.h
24409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24410 /* end confdefs.h. */
24411 #include <stdint.h>
24416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24417 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
24418 apr_cv_define_INT64_C=yes
24420 apr_cv_define_INT64_C=no
24428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_INT64_C" >&5
24429 $as_echo "$apr_cv_define_INT64_C" >&6; }
24431 if test "$apr_cv_define_INT64_C" = "yes"; then
24432 int64_literal='#define APR_INT64_C(val) INT64_C(val)'
24433 uint64_literal='#define APR_UINT64_C(val) UINT64_C(val)'
24439 if test "$ac_cv_type_size_t" = "yes"; then
24440 size_t_value="size_t"
24442 size_t_value="apr_int32_t"
24444 if test "$ac_cv_type_ssize_t" = "yes"; then
24445 ssize_t_value="ssize_t"
24447 ssize_t_value="apr_int32_t"
24449 if test "$ac_cv_socklen_t" = "yes"; then
24450 socklen_t_value="socklen_t"
24453 if test "$ac_cv_sizeof_long" = "8"; then
24454 # 64-bit HP-UX requires 32-bit socklens in
24455 # kernel, but user-space declarations say
24456 # 64-bit (socklen_t == size_t == long).
24457 # This will result in many compile warnings,
24458 # but we're functionally busted otherwise.
24459 socklen_t_value="int"
24464 socklen_t_value="int"
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
24468 $as_echo_n "checking size of pid_t... " >&6; }
24469 if ${ac_cv_sizeof_pid_t+:} false; then :
24470 $as_echo_n "(cached) " >&6
24472 if test "$cross_compiling" = yes; then :
24473 ac_cv_sizeof_pid_t=8
24475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24476 /* end confdefs.h. */
24478 #include <sys/types.h>
24480 #define binmode "b"
24486 FILE *f=fopen("conftestval", "w" binmode);
24488 fprintf(f, "%d\n", sizeof(pid_t));
24492 if ac_fn_c_try_run "$LINENO"; then :
24493 ac_cv_sizeof_pid_t=`cat conftestval`
24495 ac_cv_sizeof_pid_t=0
24497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24498 conftest.$ac_objext conftest.beam conftest.$ac_ext
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
24503 $as_echo "$ac_cv_sizeof_pid_t" >&6; }
24505 cat >>confdefs.h <<_ACEOF
24506 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
24511 if test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_short"; then
24512 pid_t_fmt='#define APR_PID_T_FMT "hd"'
24513 elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_int"; then
24514 pid_t_fmt='#define APR_PID_T_FMT "d"'
24515 elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long"; then
24516 pid_t_fmt='#define APR_PID_T_FMT "ld"'
24517 elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long_long"; then
24518 pid_t_fmt='#define APR_PID_T_FMT APR_INT64_T_FMT'
24520 pid_t_fmt='#error Can not determine the proper size for pid_t'
24523 # Basically, we have tried to figure out the correct format strings
24524 # for APR types which vary between platforms, but we don't always get
24528 # uniquely, the 31-bit Linux/s390 uses "unsigned long int"
24529 # for size_t rather than "unsigned int":
24537 if test "$ac_cv_sizeof_long" = "8"; then
24538 pid_t_fmt='#define APR_PID_T_FMT "d"'
24540 pid_t_fmt='#define APR_PID_T_FMT "ld"'
24564 int64_t_fmt='#define APR_INT64_T_FMT "I64d"'
24565 uint64_t_fmt='#define APR_UINT64_T_FMT "I64u"'
24566 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "I64x"'
24567 int64_value="__int64"
24568 uint64_value="unsigned __int64"
24569 int64_strfn="_strtoi64"
24575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and long use fmt %ld" >&5
24576 $as_echo_n "checking whether ssize_t and long use fmt %ld... " >&6; }
24577 if ${apr_cv_typematch_ssize_t_long_ld+:} false; then :
24578 $as_echo_n "(cached) " >&6
24581 apr_save_CFLAGS=$CFLAGS
24582 CFLAGS="$CFLAGS $CFLAGS_WARN"
24583 if test "$ac_cv_c_compiler_gnu" = "yes"; then
24584 CFLAGS="$CFLAGS -Werror"
24586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24587 /* end confdefs.h. */
24588 #include "confdefs.h"
24590 #include <sys/types.h>
24592 #ifdef HAVE_STDINT_H
24593 #include <stdint.h>
24596 int main(int argc, const char *const *argv) {
24598 ssize_t chk1, *ptr1;
24599 long chk2, *ptr2 = &chk1;
24602 printf("%ld %ld", chk1, chk2);
24607 if ac_fn_c_try_compile "$LINENO"; then :
24608 CFLAGS=$apr_save_CFLAGS
24609 apr_cv_typematch_ssize_t_long_ld=yes
24611 CFLAGS=$apr_save_CFLAGS
24612 apr_cv_typematch_ssize_t_long_ld=no
24614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_long_ld" >&5
24618 $as_echo "$apr_cv_typematch_ssize_t_long_ld" >&6; }
24619 if test "$apr_cv_typematch_ssize_t_long_ld" = "yes"; then
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and int use fmt %d" >&5
24628 $as_echo_n "checking whether ssize_t and int use fmt %d... " >&6; }
24629 if ${apr_cv_typematch_ssize_t_int_d+:} false; then :
24630 $as_echo_n "(cached) " >&6
24633 apr_save_CFLAGS=$CFLAGS
24634 CFLAGS="$CFLAGS $CFLAGS_WARN"
24635 if test "$ac_cv_c_compiler_gnu" = "yes"; then
24636 CFLAGS="$CFLAGS -Werror"
24638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24639 /* end confdefs.h. */
24640 #include "confdefs.h"
24642 #include <sys/types.h>
24644 #ifdef HAVE_STDINT_H
24645 #include <stdint.h>
24648 int main(int argc, const char *const *argv) {
24650 ssize_t chk1, *ptr1;
24651 int chk2, *ptr2 = &chk1;
24654 printf("%d %d", chk1, chk2);
24659 if ac_fn_c_try_compile "$LINENO"; then :
24660 CFLAGS=$apr_save_CFLAGS
24661 apr_cv_typematch_ssize_t_int_d=yes
24663 CFLAGS=$apr_save_CFLAGS
24664 apr_cv_typematch_ssize_t_int_d=no
24666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_int_d" >&5
24670 $as_echo "$apr_cv_typematch_ssize_t_int_d" >&6; }
24671 if test "$apr_cv_typematch_ssize_t_int_d" = "yes"; then
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned long use fmt %lu" >&5
24685 $as_echo_n "checking whether size_t and unsigned long use fmt %lu... " >&6; }
24686 if ${apr_cv_typematch_size_t_unsigned_long_lu+:} false; then :
24687 $as_echo_n "(cached) " >&6
24690 apr_save_CFLAGS=$CFLAGS
24691 CFLAGS="$CFLAGS $CFLAGS_WARN"
24692 if test "$ac_cv_c_compiler_gnu" = "yes"; then
24693 CFLAGS="$CFLAGS -Werror"
24695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24696 /* end confdefs.h. */
24697 #include "confdefs.h"
24699 #include <sys/types.h>
24701 #ifdef HAVE_STDINT_H
24702 #include <stdint.h>
24705 int main(int argc, const char *const *argv) {
24707 size_t chk1, *ptr1;
24708 unsigned long chk2, *ptr2 = &chk1;
24711 printf("%lu %lu", chk1, chk2);
24716 if ac_fn_c_try_compile "$LINENO"; then :
24717 CFLAGS=$apr_save_CFLAGS
24718 apr_cv_typematch_size_t_unsigned_long_lu=yes
24720 CFLAGS=$apr_save_CFLAGS
24721 apr_cv_typematch_size_t_unsigned_long_lu=no
24723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_long_lu" >&5
24727 $as_echo "$apr_cv_typematch_size_t_unsigned_long_lu" >&6; }
24728 if test "$apr_cv_typematch_size_t_unsigned_long_lu" = "yes"; then
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned int use fmt %u" >&5
24737 $as_echo_n "checking whether size_t and unsigned int use fmt %u... " >&6; }
24738 if ${apr_cv_typematch_size_t_unsigned_int_u+:} false; then :
24739 $as_echo_n "(cached) " >&6
24742 apr_save_CFLAGS=$CFLAGS
24743 CFLAGS="$CFLAGS $CFLAGS_WARN"
24744 if test "$ac_cv_c_compiler_gnu" = "yes"; then
24745 CFLAGS="$CFLAGS -Werror"
24747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24748 /* end confdefs.h. */
24749 #include "confdefs.h"
24751 #include <sys/types.h>
24753 #ifdef HAVE_STDINT_H
24754 #include <stdint.h>
24757 int main(int argc, const char *const *argv) {
24759 size_t chk1, *ptr1;
24760 unsigned int chk2, *ptr2 = &chk1;
24763 printf("%u %u", chk1, chk2);
24768 if ac_fn_c_try_compile "$LINENO"; then :
24769 CFLAGS=$apr_save_CFLAGS
24770 apr_cv_typematch_size_t_unsigned_int_u=yes
24772 CFLAGS=$apr_save_CFLAGS
24773 apr_cv_typematch_size_t_unsigned_int_u=no
24775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_int_u" >&5
24779 $as_echo "$apr_cv_typematch_size_t_unsigned_int_u" >&6; }
24780 if test "$apr_cv_typematch_size_t_unsigned_int_u" = "yes"; then
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24793 $as_echo_n "checking size of ssize_t... " >&6; }
24794 if ${ac_cv_sizeof_ssize_t+:} false; then :
24795 $as_echo_n "(cached) " >&6
24797 if test "$cross_compiling" = yes; then :
24798 ac_cv_sizeof_ssize_t=8
24800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24801 /* end confdefs.h. */
24803 #include <sys/types.h>
24805 #define binmode "b"
24811 FILE *f=fopen("conftestval", "w" binmode);
24813 fprintf(f, "%d\n", sizeof(ssize_t));
24817 if ac_fn_c_try_run "$LINENO"; then :
24818 ac_cv_sizeof_ssize_t=`cat conftestval`
24820 ac_cv_sizeof_ssize_t=0
24822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24823 conftest.$ac_objext conftest.beam conftest.$ac_ext
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24828 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24830 cat >>confdefs.h <<_ACEOF
24831 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_ssize_t" >&5
24837 $as_echo_n "checking which format to use for apr_ssize_t... " >&6; }
24838 if test -n "$ssize_t_fmt"; then
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$ssize_t_fmt" >&5
24840 $as_echo "%$ssize_t_fmt" >&6; }
24841 elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_int"; then
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
24844 $as_echo "%d" >&6; }
24845 elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_long"; then
24847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
24848 $as_echo "%ld" >&6; }
24850 as_fn_error $? "could not determine the proper format for apr_ssize_t" "$LINENO" 5
24853 ssize_t_fmt="#define APR_SSIZE_T_FMT \"$ssize_t_fmt\""
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
24856 $as_echo_n "checking size of size_t... " >&6; }
24857 if ${ac_cv_sizeof_size_t+:} false; then :
24858 $as_echo_n "(cached) " >&6
24860 if test "$cross_compiling" = yes; then :
24861 ac_cv_sizeof_size_t=8
24863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24864 /* end confdefs.h. */
24866 #include <stddef.h>
24868 #define binmode "b"
24874 FILE *f=fopen("conftestval", "w" binmode);
24876 fprintf(f, "%d\n", sizeof(size_t));
24880 if ac_fn_c_try_run "$LINENO"; then :
24881 ac_cv_sizeof_size_t=`cat conftestval`
24883 ac_cv_sizeof_size_t=0
24885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24886 conftest.$ac_objext conftest.beam conftest.$ac_ext
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
24891 $as_echo "$ac_cv_sizeof_size_t" >&6; }
24893 cat >>confdefs.h <<_ACEOF
24894 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24899 # else cases below should no longer occur;
24900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_size_t" >&5
24901 $as_echo_n "checking which format to use for apr_size_t... " >&6; }
24902 if test -n "$size_t_fmt"; then
24903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$size_t_fmt" >&5
24904 $as_echo "%$size_t_fmt" >&6; }
24905 elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_int"; then
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5
24908 $as_echo "%d" >&6; }
24909 elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_long"; then
24911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5
24912 $as_echo "%ld" >&6; }
24914 as_fn_error $? "could not determine the proper format for apr_size_t" "$LINENO" 5
24917 size_t_fmt="#define APR_SIZE_T_FMT \"$size_t_fmt\""
24919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
24920 $as_echo_n "checking size of off_t... " >&6; }
24921 if ${ac_cv_sizeof_off_t+:} false; then :
24922 $as_echo_n "(cached) " >&6
24924 if test "$cross_compiling" = yes; then :
24925 ac_cv_sizeof_off_t=8
24927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24928 /* end confdefs.h. */
24930 #include <sys/types.h>
24932 #define binmode "b"
24938 FILE *f=fopen("conftestval", "w" binmode);
24940 fprintf(f, "%d\n", sizeof(off_t));
24944 if ac_fn_c_try_run "$LINENO"; then :
24945 ac_cv_sizeof_off_t=`cat conftestval`
24947 ac_cv_sizeof_off_t=0
24949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24950 conftest.$ac_objext conftest.beam conftest.$ac_ext
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
24955 $as_echo "$ac_cv_sizeof_off_t" >&6; }
24957 cat >>confdefs.h <<_ACEOF
24958 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24963 if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
24966 for ac_func in mmap64 sendfile64 sendfilev64 readdir64_r
24968 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24969 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24970 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24971 cat >>confdefs.h <<_ACEOF
24972 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24982 for ac_func in mkstemp64
24984 ac_fn_c_check_func "$LINENO" "mkstemp64" "ac_cv_func_mkstemp64"
24985 if test "x$ac_cv_func_mkstemp64" = xyes; then :
24986 cat >>confdefs.h <<_ACEOF
24987 #define HAVE_MKSTEMP64 1
24995 elif test "${ac_cv_sizeof_off_t}" != "${ac_cv_sizeof_size_t}"; then
24996 # unsure of using -gt above is as portable, can can't forsee where
24997 # off_t can legitimately be smaller than size_t
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which type to use for apr_off_t" >&5
25004 $as_echo_n "checking which type to use for apr_off_t... " >&6; }
25005 if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
25007 off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
25008 off_t_value='off64_t'
25009 off_t_strfn='apr_strtoi64'
25010 elif test "${ac_cv_sizeof_off_t}x${ac_cv_sizeof_long}" = "4x4"; then
25011 # Special case: off_t may change size with _FILE_OFFSET_BITS
25012 # on 32-bit systems with LFS support. To avoid compatibility
25013 # issues when other packages do define _FILE_OFFSET_BITS,
25014 # hard-code apr_off_t to long.
25016 off_t_fmt='#define APR_OFF_T_FMT "ld"'
25017 off_t_strfn='strtol'
25018 elif test "$ac_cv_type_off_t" = "yes"; then
25019 # off_t is more commonly a long than an int; prefer that case
25020 # where int and long are the same size and interchangable.
25024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether off_t and long use fmt %ld" >&5
25025 $as_echo_n "checking whether off_t and long use fmt %ld... " >&6; }
25026 if ${apr_cv_typematch_off_t_long_ld+:} false; then :
25027 $as_echo_n "(cached) " >&6
25030 apr_save_CFLAGS=$CFLAGS
25031 CFLAGS="$CFLAGS $CFLAGS_WARN"
25032 if test "$ac_cv_c_compiler_gnu" = "yes"; then
25033 CFLAGS="$CFLAGS -Werror"
25035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25036 /* end confdefs.h. */
25037 #include "confdefs.h"
25039 #include <sys/types.h>
25041 #ifdef HAVE_STDINT_H
25042 #include <stdint.h>
25045 int main(int argc, const char *const *argv) {
25048 long chk2, *ptr2 = &chk1;
25051 printf("%ld %ld", chk1, chk2);
25056 if ac_fn_c_try_compile "$LINENO"; then :
25057 CFLAGS=$apr_save_CFLAGS
25058 apr_cv_typematch_off_t_long_ld=yes
25060 CFLAGS=$apr_save_CFLAGS
25061 apr_cv_typematch_off_t_long_ld=no
25063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_off_t_long_ld" >&5
25067 $as_echo "$apr_cv_typematch_off_t_long_ld" >&6; }
25068 if test "$apr_cv_typematch_off_t_long_ld" = "yes"; then
25071 off_t_fmt="#define APR_OFF_T_FMT \"ld\""
25072 off_t_strfn='strtol'
25079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether off_t and int use fmt %d" >&5
25080 $as_echo_n "checking whether off_t and int use fmt %d... " >&6; }
25081 if ${apr_cv_typematch_off_t_int_d+:} false; then :
25082 $as_echo_n "(cached) " >&6
25085 apr_save_CFLAGS=$CFLAGS
25086 CFLAGS="$CFLAGS $CFLAGS_WARN"
25087 if test "$ac_cv_c_compiler_gnu" = "yes"; then
25088 CFLAGS="$CFLAGS -Werror"
25090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25091 /* end confdefs.h. */
25092 #include "confdefs.h"
25094 #include <sys/types.h>
25096 #ifdef HAVE_STDINT_H
25097 #include <stdint.h>
25100 int main(int argc, const char *const *argv) {
25103 int chk2, *ptr2 = &chk1;
25106 printf("%d %d", chk1, chk2);
25111 if ac_fn_c_try_compile "$LINENO"; then :
25112 CFLAGS=$apr_save_CFLAGS
25113 apr_cv_typematch_off_t_int_d=yes
25115 CFLAGS=$apr_save_CFLAGS
25116 apr_cv_typematch_off_t_int_d=no
25118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_off_t_int_d" >&5
25122 $as_echo "$apr_cv_typematch_off_t_int_d" >&6; }
25123 if test "$apr_cv_typematch_off_t_int_d" = "yes"; then
25126 off_t_fmt="#define APR_OFF_T_FMT \"d\""
25127 off_t_strfn='strtoi'
25134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether off_t and long long use fmt %lld" >&5
25135 $as_echo_n "checking whether off_t and long long use fmt %lld... " >&6; }
25136 if ${apr_cv_typematch_off_t_long_long_lld+:} false; then :
25137 $as_echo_n "(cached) " >&6
25140 apr_save_CFLAGS=$CFLAGS
25141 CFLAGS="$CFLAGS $CFLAGS_WARN"
25142 if test "$ac_cv_c_compiler_gnu" = "yes"; then
25143 CFLAGS="$CFLAGS -Werror"
25145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25146 /* end confdefs.h. */
25147 #include "confdefs.h"
25149 #include <sys/types.h>
25151 #ifdef HAVE_STDINT_H
25152 #include <stdint.h>
25155 int main(int argc, const char *const *argv) {
25158 long long chk2, *ptr2 = &chk1;
25161 printf("%lld %lld", chk1, chk2);
25166 if ac_fn_c_try_compile "$LINENO"; then :
25167 CFLAGS=$apr_save_CFLAGS
25168 apr_cv_typematch_off_t_long_long_lld=yes
25170 CFLAGS=$apr_save_CFLAGS
25171 apr_cv_typematch_off_t_long_long_lld=no
25173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_off_t_long_long_lld" >&5
25177 $as_echo "$apr_cv_typematch_off_t_long_long_lld" >&6; }
25178 if test "$apr_cv_typematch_off_t_long_long_lld" = "yes"; then
25181 off_t_fmt="#define APR_OFF_T_FMT \"lld\""
25182 off_t_strfn='strtoll'
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether off_t and $int64_value use fmt %I64d" >&5
25190 $as_echo_n "checking whether off_t and $int64_value use fmt %I64d... " >&6; }
25191 if eval \${apr_cv_typematch_off_t_$int64_value_I64d+:} false; then :
25192 $as_echo_n "(cached) " >&6
25195 apr_save_CFLAGS=$CFLAGS
25196 CFLAGS="$CFLAGS $CFLAGS_WARN"
25197 if test "$ac_cv_c_compiler_gnu" = "yes"; then
25198 CFLAGS="$CFLAGS -Werror"
25200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25201 /* end confdefs.h. */
25202 #include "confdefs.h"
25204 #include <sys/types.h>
25206 #ifdef HAVE_STDINT_H
25207 #include <stdint.h>
25210 int main(int argc, const char *const *argv) {
25213 $int64_value chk2, *ptr2 = &chk1;
25216 printf("%I64d %I64d", chk1, chk2);
25221 if ac_fn_c_try_compile "$LINENO"; then :
25222 CFLAGS=$apr_save_CFLAGS
25223 apr_cv_typematch_off_t_$int64_value_I64d=yes
25225 CFLAGS=$apr_save_CFLAGS
25226 apr_cv_typematch_off_t_$int64_value_I64d=no
25228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25231 eval ac_res=\$apr_cv_typematch_off_t_$int64_value_I64d
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25233 $as_echo "$ac_res" >&6; }
25234 if test "$apr_cv_typematch_off_t_$int64_value_I64d" = "yes"; then
25237 off_t_fmt="#define APR_OFF_T_FMT APR_INT64_T_FMT"
25238 off_t_strfn='apr_strtoi64'
25245 off_t_value=apr_int64_t
25246 off_t_fmt='#define APR_OFF_T_FMT "I64d"'
25247 off_t_strfn='_strtoi64'
25250 as_fn_error $? "could not determine the size of off_t" "$LINENO" 5
25264 off_t_value=apr_int32_t
25266 off_t_strfn='strtoi'
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $off_t_value" >&5
25269 $as_echo "$off_t_value" >&6; }
25271 # Regardless of whether _LARGEFILE64_SOURCE is used, on some
25272 # platforms _FILE_OFFSET_BITS will affect the size of ino_t and hence
25273 # the build-time ABI may be different from the apparent ABI when using
25274 # APR with another package which *does* define _FILE_OFFSET_BITS.
25275 # (Exactly as per the case above with off_t where LFS is *not* used)
25277 # To be safe, hard-code apr_ino_t as 'unsigned long' or 'unsigned int'
25278 # iff that is exactly the size of ino_t here; otherwise use ino_t as existing
25279 # releases did. To be correct, apr_ino_t should have been made an
25280 # ino64_t as apr_off_t is off64_t, but this can't be done now without
25286 ino_t_value=apr_int64_t
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
25291 $as_echo_n "checking size of ino_t... " >&6; }
25292 if ${ac_cv_sizeof_ino_t+:} false; then :
25293 $as_echo_n "(cached) " >&6
25295 if test "$cross_compiling" = yes; then :
25296 ac_cv_sizeof_ino_t=$ac_cv_sizeof_long
25298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25299 /* end confdefs.h. */
25301 $ac_includes_default
25303 #define binmode "b"
25309 FILE *f=fopen("conftestval", "w" binmode);
25311 fprintf(f, "%d\n", sizeof(ino_t));
25315 if ac_fn_c_try_run "$LINENO"; then :
25316 ac_cv_sizeof_ino_t=`cat conftestval`
25318 ac_cv_sizeof_ino_t=0
25320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25321 conftest.$ac_objext conftest.beam conftest.$ac_ext
25325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
25326 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
25328 cat >>confdefs.h <<_ACEOF
25329 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
25333 if test $ac_cv_sizeof_ino_t = 4; then
25334 if test $ac_cv_sizeof_long = 4; then
25335 ino_t_value="unsigned long"
25337 ino_t_value="unsigned int"
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: using $ino_t_value for ino_t" >&5
25343 $as_echo "$as_me: using $ino_t_value for ino_t" >&6;}
25345 # Checks for endianness
25346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25347 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25348 if ${ac_cv_c_bigendian+:} false; then :
25349 $as_echo_n "(cached) " >&6
25351 ac_cv_c_bigendian=unknown
25352 # See if we're dealing with a universal compiler.
25353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25354 /* end confdefs.h. */
25355 #ifndef __APPLE_CC__
25356 not a universal capable compiler
25361 if ac_fn_c_try_compile "$LINENO"; then :
25363 # Check for potential -arch flags. It is not universal unless
25364 # there are at least two -arch flags with different values.
25367 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25368 if test -n "$ac_prev"; then
25370 i?86 | x86_64 | ppc | ppc64)
25371 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25374 ac_cv_c_bigendian=universal
25380 elif test "x$ac_word" = "x-arch"; then
25385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25386 if test $ac_cv_c_bigendian = unknown; then
25387 # See if sys/param.h defines the BYTE_ORDER macro.
25388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25389 /* end confdefs.h. */
25390 #include <sys/types.h>
25391 #include <sys/param.h>
25396 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25397 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25399 bogus endian macros
25406 if ac_fn_c_try_compile "$LINENO"; then :
25407 # It does; now see whether it defined to BIG_ENDIAN or not.
25408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25409 /* end confdefs.h. */
25410 #include <sys/types.h>
25411 #include <sys/param.h>
25416 #if BYTE_ORDER != BIG_ENDIAN
25424 if ac_fn_c_try_compile "$LINENO"; then :
25425 ac_cv_c_bigendian=yes
25427 ac_cv_c_bigendian=no
25429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25433 if test $ac_cv_c_bigendian = unknown; then
25434 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25436 /* end confdefs.h. */
25437 #include <limits.h>
25442 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25443 bogus endian macros
25450 if ac_fn_c_try_compile "$LINENO"; then :
25451 # It does; now see whether it defined to _BIG_ENDIAN or not.
25452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25453 /* end confdefs.h. */
25454 #include <limits.h>
25459 #ifndef _BIG_ENDIAN
25467 if ac_fn_c_try_compile "$LINENO"; then :
25468 ac_cv_c_bigendian=yes
25470 ac_cv_c_bigendian=no
25472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25476 if test $ac_cv_c_bigendian = unknown; then
25477 # Compile a test program.
25478 if test "$cross_compiling" = yes; then :
25479 # Try to guess by grepping values from an object file.
25480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25481 /* end confdefs.h. */
25482 short int ascii_mm[] =
25483 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25484 short int ascii_ii[] =
25485 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25486 int use_ascii (int i) {
25487 return ascii_mm[i] + ascii_ii[i];
25489 short int ebcdic_ii[] =
25490 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25491 short int ebcdic_mm[] =
25492 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25493 int use_ebcdic (int i) {
25494 return ebcdic_mm[i] + ebcdic_ii[i];
25501 return use_ascii (foo) == use_ebcdic (foo);
25506 if ac_fn_c_try_compile "$LINENO"; then :
25507 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25508 ac_cv_c_bigendian=yes
25510 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25511 if test "$ac_cv_c_bigendian" = unknown; then
25512 ac_cv_c_bigendian=no
25514 # finding both strings is unlikely to happen, but who knows?
25515 ac_cv_c_bigendian=unknown
25519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25522 /* end confdefs.h. */
25523 $ac_includes_default
25528 /* Are we little or big endian? From Harbison&Steele. */
25532 char c[sizeof (long int)];
25535 return u.c[sizeof (long int) - 1] == 1;
25541 if ac_fn_c_try_run "$LINENO"; then :
25542 ac_cv_c_bigendian=no
25544 ac_cv_c_bigendian=yes
25546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25547 conftest.$ac_objext conftest.beam conftest.$ac_ext
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
25553 $as_echo "$ac_cv_c_bigendian" >&6; }
25554 case $ac_cv_c_bigendian in #(
25556 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
25562 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25566 as_fn_error $? "unknown endianness
25567 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
25570 if test $ac_cv_c_bigendian = yes; then
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iovec" >&5
25577 $as_echo_n "checking size of struct iovec... " >&6; }
25578 if ${ac_cv_sizeof_struct_iovec+:} false; then :
25579 $as_echo_n "(cached) " >&6
25581 if test "$cross_compiling" = yes; then :
25582 ac_cv_sizeof_struct_iovec=0
25584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25585 /* end confdefs.h. */
25587 #include <sys/types.h>
25588 #include <sys/uio.h>
25590 #define binmode "b"
25596 FILE *f=fopen("conftestval", "w" binmode);
25598 fprintf(f, "%d\n", sizeof(struct iovec));
25602 if ac_fn_c_try_run "$LINENO"; then :
25603 ac_cv_sizeof_struct_iovec=`cat conftestval`
25605 ac_cv_sizeof_struct_iovec=0
25607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25608 conftest.$ac_objext conftest.beam conftest.$ac_ext
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iovec" >&5
25613 $as_echo "$ac_cv_sizeof_struct_iovec" >&6; }
25615 cat >>confdefs.h <<_ACEOF
25616 #define SIZEOF_STRUCT_IOVEC $ac_cv_sizeof_struct_iovec
25620 if test "$ac_cv_sizeof_struct_iovec" = "0"; then
25650 for ac_func in strnicmp
25652 ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp"
25653 if test "x$ac_cv_func_strnicmp" = xyes; then :
25654 cat >>confdefs.h <<_ACEOF
25655 #define HAVE_STRNICMP 1
25663 for ac_func in strncasecmp
25665 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
25666 if test "x$ac_cv_func_strncasecmp" = xyes; then :
25667 cat >>confdefs.h <<_ACEOF
25668 #define HAVE_STRNCASECMP 1
25670 have_strncasecmp="1"
25672 have_strncasecmp="0"
25676 for ac_func in stricmp
25678 ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
25679 if test "x$ac_cv_func_stricmp" = xyes; then :
25680 cat >>confdefs.h <<_ACEOF
25681 #define HAVE_STRICMP 1
25689 for ac_func in strcasecmp
25691 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
25692 if test "x$ac_cv_func_strcasecmp" = xyes; then :
25693 cat >>confdefs.h <<_ACEOF
25694 #define HAVE_STRCASECMP 1
25696 have_strcasecmp="1"
25698 have_strcasecmp="0"
25702 for ac_func in strdup
25704 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
25705 if test "x$ac_cv_func_strdup" = xyes; then :
25706 cat >>confdefs.h <<_ACEOF
25707 #define HAVE_STRDUP 1
25715 for ac_func in strstr
25717 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
25718 if test "x$ac_cv_func_strstr" = xyes; then :
25719 cat >>confdefs.h <<_ACEOF
25720 #define HAVE_STRSTR 1
25728 for ac_func in memchr
25730 ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
25731 if test "x$ac_cv_func_memchr" = xyes; then :
25732 cat >>confdefs.h <<_ACEOF
25733 #define HAVE_MEMCHR 1
25741 as_ac_var=`$as_echo "ac_cv_func_$int64_strfn" | $as_tr_sh`
25742 ac_fn_c_check_func "$LINENO" "$int64_strfn" "$as_ac_var"
25743 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25744 have_int64_strfn="1"
25746 have_int64_strfn="0"
25750 if test "$have_int64_strfn" = "0" && test "$int64_strfn" = "strtoll"; then
25751 int64_strfn="strtoq"
25752 ac_fn_c_check_func "$LINENO" "strtoq" "ac_cv_func_strtoq"
25753 if test "x$ac_cv_func_strtoq" = xyes; then :
25761 if test "$have_int64_strfn" = "1"; then
25763 cat >>confdefs.h <<_ACEOF
25764 #define APR_INT64_STRFN $int64_strfn
25777 if test "$off_t_strfn" = "apr_strtoi64" && test "$have_int64_strfn" = "1"; then
25778 off_t_strfn=$int64_strfn
25781 cat >>confdefs.h <<_ACEOF
25782 #define APR_OFF_T_STRFN $off_t_strfn
25786 echo "${nl}Checking for DSO..."
25787 # Check whether --enable-dso was given.
25788 if test "${enable_dso+set}" = set; then :
25789 enableval=$enable_dso; if test "x$enableval" = "xyes"; then
25800 if test "$dsotype" = "any"; then
25801 if test "$dsotype" = "any"; then
25804 # Original Darwin, not for 9.0!:
25805 ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
25806 if test "x$ac_cv_func_NSLinkModule" = xyes; then :
25810 hppa*-hpux[1-9]\.*|hppa*-hpux1[01]*)
25811 # shl is specific to parisc hpux SOM binaries, not used for 64 bit
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
25813 $as_echo_n "checking for shl_load in -ldld... " >&6; }
25814 if ${ac_cv_lib_dld_shl_load+:} false; then :
25815 $as_echo_n "(cached) " >&6
25817 ac_check_lib_save_LIBS=$LIBS
25819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25820 /* end confdefs.h. */
25822 /* Override any GCC internal prototype to avoid an error.
25823 Use char because int might match the return type of a GCC
25824 builtin and then its argument prototype would still apply. */
25832 return shl_load ();
25837 if ac_fn_c_try_link "$LINENO"; then :
25838 ac_cv_lib_dld_shl_load=yes
25840 ac_cv_lib_dld_shl_load=no
25842 rm -f core conftest.err conftest.$ac_objext \
25843 conftest$ac_exeext conftest.$ac_ext
25844 LIBS=$ac_check_lib_save_LIBS
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
25847 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
25848 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
25852 if test "$ac_cv_sizeof_voidp$have_shl" = "41"; then
25854 if test "x$LIBS" = "x"; then
25855 test "x$silent" != "xyes" && echo " setting LIBS to \"-ldld\""
25858 apr_addto_bugger="-ldld"
25859 for i in $apr_addto_bugger; do
25860 apr_addto_duplicate="0"
25862 if test "x$i" = "x$j"; then
25863 apr_addto_duplicate="1"
25867 if test $apr_addto_duplicate = "0"; then
25868 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
25876 # several 'other's below probably belong up here. If they always
25877 # use a platform implementation and shouldn't test the dlopen/dlfcn
25878 # features, then bring them up here.
25879 # But if they -should- optionally use dlfcn, and/or need the config
25880 # detection of dlopen/dlsym, do not move them up.
25885 if test "$dsotype" = "any"; then
25886 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
25887 if test "x$ac_cv_func_dlopen" = xyes; then :
25892 if test "$dsotype" = "any"; then
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
25894 $as_echo_n "checking for dlopen in -ldl... " >&6; }
25895 if ${ac_cv_lib_dl_dlopen+:} false; then :
25896 $as_echo_n "(cached) " >&6
25898 ac_check_lib_save_LIBS=$LIBS
25900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25901 /* end confdefs.h. */
25903 /* Override any GCC internal prototype to avoid an error.
25904 Use char because int might match the return type of a GCC
25905 builtin and then its argument prototype would still apply. */
25918 if ac_fn_c_try_link "$LINENO"; then :
25919 ac_cv_lib_dl_dlopen=yes
25921 ac_cv_lib_dl_dlopen=no
25923 rm -f core conftest.err conftest.$ac_objext \
25924 conftest$ac_exeext conftest.$ac_ext
25925 LIBS=$ac_check_lib_save_LIBS
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
25928 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
25929 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
25931 if test "x$LIBS" = "x"; then
25932 test "x$silent" != "xyes" && echo " setting LIBS to \"-ldl\""
25935 apr_addto_bugger="-ldl"
25936 for i in $apr_addto_bugger; do
25937 apr_addto_duplicate="0"
25939 if test "x$i" = "x$j"; then
25940 apr_addto_duplicate="1"
25944 if test $apr_addto_duplicate = "0"; then
25945 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
25954 if test "$dsotype" = "dlfcn"; then
25955 # ReliantUnix has dlopen() in libc but dlsym() in libdl :(
25956 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
25957 if test "x$ac_cv_func_dlsym" = xyes; then :
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
25961 $as_echo_n "checking for dlsym in -ldl... " >&6; }
25962 if ${ac_cv_lib_dl_dlsym+:} false; then :
25963 $as_echo_n "(cached) " >&6
25965 ac_check_lib_save_LIBS=$LIBS
25967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25968 /* end confdefs.h. */
25970 /* Override any GCC internal prototype to avoid an error.
25971 Use char because int might match the return type of a GCC
25972 builtin and then its argument prototype would still apply. */
25985 if ac_fn_c_try_link "$LINENO"; then :
25986 ac_cv_lib_dl_dlsym=yes
25988 ac_cv_lib_dl_dlsym=no
25990 rm -f core conftest.err conftest.$ac_objext \
25991 conftest$ac_exeext conftest.$ac_ext
25992 LIBS=$ac_check_lib_save_LIBS
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
25995 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
25996 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
25998 if test "x$LIBS" = "x"; then
25999 test "x$silent" != "xyes" && echo " setting LIBS to \"-ldl\""
26002 apr_addto_bugger="-ldl"
26003 for i in $apr_addto_bugger; do
26004 apr_addto_duplicate="0"
26006 if test "x$i" = "x$j"; then
26007 apr_addto_duplicate="1"
26011 if test $apr_addto_duplicate = "0"; then
26012 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
26020 echo "Weird: dlopen() was found but dlsym() was not found!"
26026 if test "$dsotype" = "any"; then
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for load_image in -lroot" >&5
26029 $as_echo_n "checking for load_image in -lroot... " >&6; }
26030 if ${ac_cv_lib_root_load_image+:} false; then :
26031 $as_echo_n "(cached) " >&6
26033 ac_check_lib_save_LIBS=$LIBS
26034 LIBS="-lroot $LIBS"
26035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26036 /* end confdefs.h. */
26038 /* Override any GCC internal prototype to avoid an error.
26039 Use char because int might match the return type of a GCC
26040 builtin and then its argument prototype would still apply. */
26044 char load_image ();
26048 return load_image ();
26053 if ac_fn_c_try_link "$LINENO"; then :
26054 ac_cv_lib_root_load_image=yes
26056 ac_cv_lib_root_load_image=no
26058 rm -f core conftest.err conftest.$ac_objext \
26059 conftest$ac_exeext conftest.$ac_ext
26060 LIBS=$ac_check_lib_save_LIBS
26062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_load_image" >&5
26063 $as_echo "$ac_cv_lib_root_load_image" >&6; }
26064 if test "x$ac_cv_lib_root_load_image" = xyes; then :
26070 if test "$dsotype" = "any"; then
26072 *os390|*os400|*-aix*)
26073 # Some -aix5 will use dl, no hassles. Keep that pattern here.
26076 if test "$have_shl" = "1"; then
26078 if test "x$LIBS" = "x"; then
26079 test "x$silent" != "xyes" && echo " setting LIBS to \"-ldld\""
26082 apr_addto_bugger="-ldld"
26083 for i in $apr_addto_bugger; do
26084 apr_addto_duplicate="0"
26086 if test "x$i" = "x$j"; then
26087 apr_addto_duplicate="1"
26091 if test $apr_addto_duplicate = "0"; then
26092 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS"
26103 if test "$dsotype" = "any"; then
26104 as_fn_error $? "Could not detect suitable DSO implementation" "$LINENO" 5
26105 elif test "$dsotype" = "no"; then
26110 $as_echo "#define DSO_USE_DLFCN 1" >>confdefs.h
26113 $as_echo "#define DSO_USE_SHL 1" >>confdefs.h
26116 $as_echo "#define DSO_USE_DYLD 1" >>confdefs.h
26118 other) ;; # Use whatever is in dso/OSDIR
26119 *) as_fn_error $? "Unknown DSO implementation \"$dsotype\"" "$LINENO" 5;;
26122 apr_modules="$apr_modules dso"
26127 echo "${nl}Checking for Processes..."
26129 for ac_func in waitpid
26131 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
26132 if test "x$ac_cv_func_waitpid" = xyes; then :
26133 cat >>confdefs.h <<_ACEOF
26134 #define HAVE_WAITPID 1
26141 # Check whether --enable-other-child was given.
26142 if test "${enable_other_child+set}" = set; then :
26143 enableval=$enable_other_child; if test "$enableval" = "yes"; then
26155 if test -z "$have_proc_invoked"; then
26156 have_proc_invoked="0"
26161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Variable Length Arrays" >&5
26162 $as_echo_n "checking for Variable Length Arrays... " >&6; }
26163 apr_save_CFLAGS=$CFLAGS
26164 CFLAGS="$CFLAGS $CFLAGS_WARN"
26165 if test "$ac_cv_c_compiler_gnu" = "yes"; then
26166 CFLAGS="$CFLAGS -Werror"
26168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26169 /* end confdefs.h. */
26170 #include "confdefs.h"
26173 int main(int argc, const char *const *argv) {
26181 if ac_fn_c_try_compile "$LINENO"; then :
26182 CFLAGS=$apr_save_CFLAGS
26185 CFLAGS=$apr_save_CFLAGS
26188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vla_msg" >&5
26191 $as_echo "$vla_msg" >&6; }
26192 if test "$vla_msg" = "yes"; then
26194 $as_echo "#define HAVE_VLA 1" >>confdefs.h
26198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct rlimit" >&5
26199 $as_echo_n "checking struct rlimit... " >&6; }
26200 if ${ac_cv_struct_rlimit+:} false; then :
26201 $as_echo_n "(cached) " >&6
26204 if test "$cross_compiling" = yes; then :
26206 ac_cv_struct_rlimit=no
26208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26209 /* end confdefs.h. */
26211 #include <sys/types.h>
26212 #include <sys/time.h>
26213 #include <sys/resource.h>
26216 struct rlimit limit;
26217 limit.rlim_cur = 0;
26218 limit.rlim_max = 0;
26222 if ac_fn_c_try_run "$LINENO"; then :
26224 ac_cv_struct_rlimit=yes
26227 ac_cv_struct_rlimit=no
26229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26230 conftest.$ac_objext conftest.beam conftest.$ac_ext
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rlimit" >&5
26235 $as_echo "$ac_cv_struct_rlimit" >&6; }
26237 test "x$ac_cv_struct_rlimit" = xyes && struct_rlimit=1
26240 echo "${nl}Checking for Locking..."
26242 for ac_func in semget semctl semop semtimedop flock
26244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26245 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26246 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26247 cat >>confdefs.h <<_ACEOF
26248 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26255 for ac_spec in func:semtimedop; do
26256 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
26257 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
26260 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
26261 ac_var="ac_cv_header_$ac_item"
26264 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
26265 ac_var="ac_cv_file_$ac_item"
26267 func ) ac_var="ac_cv_func_$ac_item" ;;
26268 struct ) ac_var="ac_cv_struct_$ac_item" ;;
26269 define ) ac_var="ac_cv_define_$ac_item" ;;
26270 custom ) ac_var="$ac_item" ;;
26272 eval "ac_val=\$$ac_var"
26273 if test ".$ac_val" != .yes; then
26278 if test ".$ac_rc" = .yes; then
26280 have_semtimedop="1"
26283 have_semtimedop="0"
26287 for ac_header in semaphore.h
26289 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
26290 if test "x$ac_cv_header_semaphore_h" = xyes; then :
26291 cat >>confdefs.h <<_ACEOF
26292 #define HAVE_SEMAPHORE_H 1
26299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
26300 $as_echo_n "checking for library containing sem_open... " >&6; }
26301 if ${ac_cv_search_sem_open+:} false; then :
26302 $as_echo_n "(cached) " >&6
26304 ac_func_search_save_LIBS=$LIBS
26305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26306 /* end confdefs.h. */
26308 /* Override any GCC internal prototype to avoid an error.
26309 Use char because int might match the return type of a GCC
26310 builtin and then its argument prototype would still apply. */
26318 return sem_open ();
26323 for ac_lib in '' rt; do
26324 if test -z "$ac_lib"; then
26325 ac_res="none required"
26328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26330 if ac_fn_c_try_link "$LINENO"; then :
26331 ac_cv_search_sem_open=$ac_res
26333 rm -f core conftest.err conftest.$ac_objext \
26335 if ${ac_cv_search_sem_open+:} false; then :
26339 if ${ac_cv_search_sem_open+:} false; then :
26342 ac_cv_search_sem_open=no
26344 rm conftest.$ac_ext
26345 LIBS=$ac_func_search_save_LIBS
26347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
26348 $as_echo "$ac_cv_search_sem_open" >&6; }
26349 ac_res=$ac_cv_search_sem_open
26350 if test "$ac_res" != no; then :
26351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26355 for ac_func in sem_close sem_unlink sem_post sem_wait sem_timedwait
26357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26358 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26359 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26360 cat >>confdefs.h <<_ACEOF
26361 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26368 for ac_spec in func:sem_timedwait; do
26369 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
26370 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
26373 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
26374 ac_var="ac_cv_header_$ac_item"
26377 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
26378 ac_var="ac_cv_file_$ac_item"
26380 func ) ac_var="ac_cv_func_$ac_item" ;;
26381 struct ) ac_var="ac_cv_struct_$ac_item" ;;
26382 define ) ac_var="ac_cv_define_$ac_item" ;;
26383 custom ) ac_var="$ac_item" ;;
26385 eval "ac_val=\$$ac_var"
26386 if test ".$ac_val" != .yes; then
26391 if test ".$ac_rc" = .yes; then
26393 have_sem_timedwait="1"
26396 have_sem_timedwait="0"
26400 for ac_header in OS.h
26402 ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
26403 if test "x$ac_cv_header_OS_h" = xyes; then :
26404 cat >>confdefs.h <<_ACEOF
26405 #define HAVE_OS_H 1
26412 for ac_func in create_sem acquire_sem acquire_sem_etc
26414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26415 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26416 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26417 cat >>confdefs.h <<_ACEOF
26418 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26425 for ac_spec in header:OS.h func:acquire_sem_etc; do
26426 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
26427 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
26430 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
26431 ac_var="ac_cv_header_$ac_item"
26434 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
26435 ac_var="ac_cv_file_$ac_item"
26437 func ) ac_var="ac_cv_func_$ac_item" ;;
26438 struct ) ac_var="ac_cv_struct_$ac_item" ;;
26439 define ) ac_var="ac_cv_define_$ac_item" ;;
26440 custom ) ac_var="$ac_item" ;;
26442 eval "ac_val=\$$ac_var"
26443 if test ".$ac_val" != .yes; then
26448 if test ".$ac_rc" = .yes; then
26450 have_acquire_sem_etc="1"
26453 have_acquire_sem_etc="0"
26457 # Some systems return ENOSYS from sem_open.
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sem_open" >&5
26459 $as_echo_n "checking for working sem_open... " >&6; }
26460 if ${ac_cv_func_sem_open+:} false; then :
26461 $as_echo_n "(cached) " >&6
26464 if test "$cross_compiling" = yes; then :
26465 ac_cv_func_sem_open=no
26467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26468 /* end confdefs.h. */
26471 #include <stdlib.h>
26473 #include <semaphore.h>
26475 #define SEM_FAILED (-1)
26480 const char *sem_name = "/apr_autoconf";
26482 psem = sem_open(sem_name, O_CREAT, 0644, 1);
26483 if (psem == (sem_t *)SEM_FAILED) {
26487 psem = sem_open(sem_name, O_CREAT | O_EXCL, 0644, 1);
26488 if (psem != (sem_t *)SEM_FAILED) {
26492 sem_unlink(sem_name);
26496 if ac_fn_c_try_run "$LINENO"; then :
26497 ac_cv_func_sem_open=yes
26499 ac_cv_func_sem_open=no
26501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26502 conftest.$ac_objext conftest.beam conftest.$ac_ext
26506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sem_open" >&5
26507 $as_echo "$ac_cv_func_sem_open" >&6; }
26509 # It's stupid, but not all platforms have union semun, even those that need it.
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun in sys/sem.h" >&5
26511 $as_echo_n "checking for union semun in sys/sem.h... " >&6; }
26512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26513 /* end confdefs.h. */
26515 #include <sys/types.h>
26516 #include <sys/ipc.h>
26517 #include <sys/sem.h>
26524 semctl(0, 0, 0, arg);
26530 if ac_fn_c_try_compile "$LINENO"; then :
26531 have_union_semun="1" union_semun=yes
26535 have_union_semun="0"
26538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
26540 $as_echo "$msg" >&6; }
26544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOCK_EX in sys/file.h" >&5
26545 $as_echo_n "checking for LOCK_EX in sys/file.h... " >&6; }
26546 if ${ac_cv_define_LOCK_EX+:} false; then :
26547 $as_echo_n "(cached) " >&6
26550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26551 /* end confdefs.h. */
26553 #include <sys/file.h>
26559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26560 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
26561 ac_cv_define_LOCK_EX=yes
26563 ac_cv_define_LOCK_EX=no
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_LOCK_EX" >&5
26570 $as_echo "$ac_cv_define_LOCK_EX" >&6; }
26571 if test "$ac_cv_define_LOCK_EX" = "yes"; then
26573 $as_echo "#define HAVE_LOCK_EX 1" >>confdefs.h
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLK in fcntl.h" >&5
26579 $as_echo_n "checking for F_SETLK in fcntl.h... " >&6; }
26580 if ${ac_cv_define_F_SETLK+:} false; then :
26581 $as_echo_n "(cached) " >&6
26584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26585 /* end confdefs.h. */
26593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26594 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
26595 ac_cv_define_F_SETLK=yes
26597 ac_cv_define_F_SETLK=no
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_F_SETLK" >&5
26604 $as_echo "$ac_cv_define_F_SETLK" >&6; }
26605 if test "$ac_cv_define_F_SETLK" = "yes"; then
26607 $as_echo "#define HAVE_F_SETLK 1" >>confdefs.h
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SEM_UNDO in sys/sem.h" >&5
26613 $as_echo_n "checking for SEM_UNDO in sys/sem.h... " >&6; }
26614 if ${ac_cv_define_SEM_UNDO+:} false; then :
26615 $as_echo_n "(cached) " >&6
26618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26619 /* end confdefs.h. */
26621 #include <sys/sem.h>
26627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26628 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
26629 ac_cv_define_SEM_UNDO=yes
26631 ac_cv_define_SEM_UNDO=no
26637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SEM_UNDO" >&5
26638 $as_echo "$ac_cv_define_SEM_UNDO" >&6; }
26639 if test "$ac_cv_define_SEM_UNDO" = "yes"; then
26641 $as_echo "#define HAVE_SEM_UNDO 1" >>confdefs.h
26646 # We are assuming that if the platform doesn't have POLLIN, it doesn't have
26647 # any POLL definitions.
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POLLIN in poll.h sys/poll.h" >&5
26650 $as_echo_n "checking for POLLIN in poll.h sys/poll.h... " >&6; }
26651 if ${ac_cv_define_POLLIN+:} false; then :
26652 $as_echo_n "(cached) " >&6
26655 ac_cv_define_POLLIN=no
26656 for curhdr in poll.h sys/poll.h
26658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26659 /* end confdefs.h. */
26667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26668 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
26669 ac_cv_define_POLLIN=yes
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_POLLIN" >&5
26677 $as_echo "$ac_cv_define_POLLIN" >&6; }
26678 if test "$ac_cv_define_POLLIN" = "yes"; then
26680 $as_echo "#define HAVE_POLLIN 1" >>confdefs.h
26685 if test "$threads" = "1"; then
26687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PROCESS_SHARED in pthread.h" >&5
26688 $as_echo_n "checking for PTHREAD_PROCESS_SHARED in pthread.h... " >&6; }
26689 if ${ac_cv_define_PTHREAD_PROCESS_SHARED+:} false; then :
26690 $as_echo_n "(cached) " >&6
26693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26694 /* end confdefs.h. */
26696 #include <pthread.h>
26697 #ifdef PTHREAD_PROCESS_SHARED
26702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26703 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
26704 ac_cv_define_PTHREAD_PROCESS_SHARED=yes
26706 ac_cv_define_PTHREAD_PROCESS_SHARED=no
26712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_PTHREAD_PROCESS_SHARED" >&5
26713 $as_echo "$ac_cv_define_PTHREAD_PROCESS_SHARED" >&6; }
26714 if test "$ac_cv_define_PTHREAD_PROCESS_SHARED" = "yes"; then
26716 $as_echo "#define HAVE_PTHREAD_PROCESS_SHARED 1" >>confdefs.h
26720 for ac_func in pthread_mutex_timedlock pthread_mutexattr_setpshared
26722 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26723 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26724 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26725 cat >>confdefs.h <<_ACEOF
26726 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26733 for ac_spec in header:pthread.h func:pthread_mutex_timedlock; do
26734 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
26735 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
26738 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
26739 ac_var="ac_cv_header_$ac_item"
26742 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
26743 ac_var="ac_cv_file_$ac_item"
26745 func ) ac_var="ac_cv_func_$ac_item" ;;
26746 struct ) ac_var="ac_cv_struct_$ac_item" ;;
26747 define ) ac_var="ac_cv_define_$ac_item" ;;
26748 custom ) ac_var="$ac_item" ;;
26750 eval "ac_val=\$$ac_var"
26751 if test ".$ac_val" != .yes; then
26756 if test ".$ac_rc" = .yes; then
26758 have_pthread_mutex_timedlock="1"
26761 have_pthread_mutex_timedlock="0"
26765 # Some systems have setpshared and define PROCESS_SHARED, but don't
26766 # really support PROCESS_SHARED locks. So, we must validate that we
26767 # can go through the steps without receiving some sort of system error.
26768 # Linux and older versions of AIX have this problem.
26770 for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared; do
26771 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
26772 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
26775 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
26776 ac_var="ac_cv_header_$ac_item"
26779 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
26780 ac_var="ac_cv_file_$ac_item"
26782 func ) ac_var="ac_cv_func_$ac_item" ;;
26783 struct ) ac_var="ac_cv_struct_$ac_item" ;;
26784 define ) ac_var="ac_cv_define_$ac_item" ;;
26785 custom ) ac_var="$ac_item" ;;
26787 eval "ac_val=\$$ac_var"
26788 if test ".$ac_val" != .yes; then
26793 if test ".$ac_rc" = .yes; then
26796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working PROCESS_SHARED locks" >&5
26797 $as_echo_n "checking for working PROCESS_SHARED locks... " >&6; }
26798 if ${apr_cv_process_shared_works+:} false; then :
26799 $as_echo_n "(cached) " >&6
26802 if test "$cross_compiling" = yes; then :
26803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26805 as_fn_error $? "cannot run test program while cross compiling
26806 See \`config.log' for more details" "$LINENO" 5; }
26808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26809 /* end confdefs.h. */
26811 #include <sys/types.h>
26812 #include <pthread.h>
26815 pthread_mutex_t mutex;
26816 pthread_mutexattr_t attr;
26817 if (pthread_mutexattr_init(&attr))
26819 if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
26821 if (pthread_mutex_init(&mutex, &attr))
26823 if (pthread_mutexattr_destroy(&attr))
26825 if (pthread_mutex_destroy(&mutex))
26830 if ac_fn_c_try_run "$LINENO"; then :
26831 apr_cv_process_shared_works=yes
26833 apr_cv_process_shared_works=no
26835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26836 conftest.$ac_objext conftest.beam conftest.$ac_ext
26840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_process_shared_works" >&5
26841 $as_echo "$apr_cv_process_shared_works" >&6; }
26842 # Override detection of pthread_mutexattr_setpshared
26843 ac_cv_func_pthread_mutexattr_setpshared=$apr_cv_process_shared_works
26850 if test "$ac_cv_func_pthread_mutexattr_setpshared" = "yes"; then
26852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for robust cross-process mutex support" >&5
26853 $as_echo_n "checking for robust cross-process mutex support... " >&6; }
26854 if ${apr_cv_mutex_robust_shared+:} false; then :
26855 $as_echo_n "(cached) " >&6
26857 if test "$cross_compiling" = yes; then :
26858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26860 as_fn_error $? "cannot run test program while cross compiling
26861 See \`config.log' for more details" "$LINENO" 5; }
26863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26864 /* end confdefs.h. */
26866 #include <sys/types.h>
26867 #include <pthread.h>
26868 #include <stdlib.h>
26870 int main(int argc, char **argv)
26872 pthread_mutex_t mutex;
26873 pthread_mutexattr_t attr;
26875 if (pthread_mutexattr_init(&attr))
26877 if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
26879 if (pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST))
26881 if (pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT))
26883 if (pthread_mutex_init(&mutex, &attr))
26885 if (pthread_mutexattr_destroy(&attr))
26887 if (pthread_mutex_destroy(&mutex))
26893 if ac_fn_c_try_run "$LINENO"; then :
26894 apr_cv_mutex_robust_shared=yes
26897 if test "$cross_compiling" = yes; then :
26898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26900 as_fn_error $? "cannot run test program while cross compiling
26901 See \`config.log' for more details" "$LINENO" 5; }
26903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26904 /* end confdefs.h. */
26906 #include <sys/types.h>
26907 #include <pthread.h>
26908 #include <stdlib.h>
26910 int main(int argc, char **argv)
26912 pthread_mutex_t mutex;
26913 pthread_mutexattr_t attr;
26915 if (pthread_mutexattr_init(&attr))
26917 if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED))
26919 if (pthread_mutexattr_setrobust_np(&attr, PTHREAD_MUTEX_ROBUST_NP))
26921 if (pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT))
26923 if (pthread_mutex_init(&mutex, &attr))
26925 if (pthread_mutexattr_destroy(&attr))
26927 if (pthread_mutex_destroy(&mutex))
26933 if ac_fn_c_try_run "$LINENO"; then :
26934 apr_cv_mutex_robust_shared=np
26936 apr_cv_mutex_robust_shared=no
26938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26939 conftest.$ac_objext conftest.beam conftest.$ac_ext
26944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26945 conftest.$ac_objext conftest.beam conftest.$ac_ext
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_robust_shared" >&5
26950 $as_echo "$apr_cv_mutex_robust_shared" >&6; }
26952 if test "$apr_cv_mutex_robust_shared" = "yes"; then
26954 $as_echo "#define HAVE_PTHREAD_MUTEX_ROBUST 1" >>confdefs.h
26956 elif test "$apr_cv_mutex_robust_shared" = "np"; then
26958 $as_echo "#define HAVE_PTHREAD_MUTEX_ROBUST_NP 1" >>confdefs.h
26965 # See which lock mechanisms we can support on this system.
26967 for ac_spec in header:semaphore.h func:sem_open func:sem_close func:sem_unlink func:sem_post func:sem_wait; do
26968 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
26969 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
26972 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
26973 ac_var="ac_cv_header_$ac_item"
26976 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
26977 ac_var="ac_cv_file_$ac_item"
26979 func ) ac_var="ac_cv_func_$ac_item" ;;
26980 struct ) ac_var="ac_cv_struct_$ac_item" ;;
26981 define ) ac_var="ac_cv_define_$ac_item" ;;
26982 custom ) ac_var="$ac_item" ;;
26984 eval "ac_val=\$$ac_var"
26985 if test ".$ac_val" != .yes; then
26990 if test ".$ac_rc" = .yes; then
26999 for ac_spec in func:semget func:semctl func:semop define:SEM_UNDO; do
27000 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
27001 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
27004 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27005 ac_var="ac_cv_header_$ac_item"
27008 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27009 ac_var="ac_cv_file_$ac_item"
27011 func ) ac_var="ac_cv_func_$ac_item" ;;
27012 struct ) ac_var="ac_cv_struct_$ac_item" ;;
27013 define ) ac_var="ac_cv_define_$ac_item" ;;
27014 custom ) ac_var="$ac_item" ;;
27016 eval "ac_val=\$$ac_var"
27017 if test ".$ac_val" != .yes; then
27022 if test ".$ac_rc" = .yes; then
27031 for ac_spec in func:flock define:LOCK_EX; do
27032 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
27033 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
27036 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27037 ac_var="ac_cv_header_$ac_item"
27040 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27041 ac_var="ac_cv_file_$ac_item"
27043 func ) ac_var="ac_cv_func_$ac_item" ;;
27044 struct ) ac_var="ac_cv_struct_$ac_item" ;;
27045 define ) ac_var="ac_cv_define_$ac_item" ;;
27046 custom ) ac_var="$ac_item" ;;
27048 eval "ac_val=\$$ac_var"
27049 if test ".$ac_val" != .yes; then
27054 if test ".$ac_rc" = .yes; then
27063 for ac_spec in header:fcntl.h define:F_SETLK; do
27064 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
27065 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
27068 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27069 ac_var="ac_cv_header_$ac_item"
27072 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27073 ac_var="ac_cv_file_$ac_item"
27075 func ) ac_var="ac_cv_func_$ac_item" ;;
27076 struct ) ac_var="ac_cv_struct_$ac_item" ;;
27077 define ) ac_var="ac_cv_define_$ac_item" ;;
27078 custom ) ac_var="$ac_item" ;;
27080 eval "ac_val=\$$ac_var"
27081 if test ".$ac_val" != .yes; then
27086 if test ".$ac_rc" = .yes; then
27094 # note: the current APR use of shared mutex requires /dev/zero
27096 for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared file:/dev/zero; do
27097 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
27098 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
27101 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27102 ac_var="ac_cv_header_$ac_item"
27105 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27106 ac_var="ac_cv_file_$ac_item"
27108 func ) ac_var="ac_cv_func_$ac_item" ;;
27109 struct ) ac_var="ac_cv_struct_$ac_item" ;;
27110 define ) ac_var="ac_cv_define_$ac_item" ;;
27111 custom ) ac_var="$ac_item" ;;
27113 eval "ac_val=\$$ac_var"
27114 if test ".$ac_val" != .yes; then
27119 if test ".$ac_rc" = .yes; then
27121 hasprocpthreadser="1"
27124 hasprocpthreadser="0"
27128 for ac_spec in header:OS.h func:create_sem; do
27129 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
27130 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
27133 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27134 ac_var="ac_cv_header_$ac_item"
27137 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27138 ac_var="ac_cv_file_$ac_item"
27140 func ) ac_var="ac_cv_func_$ac_item" ;;
27141 struct ) ac_var="ac_cv_struct_$ac_item" ;;
27142 define ) ac_var="ac_cv_define_$ac_item" ;;
27143 custom ) ac_var="$ac_item" ;;
27145 eval "ac_val=\$$ac_var"
27146 if test ".$ac_val" != .yes; then
27151 if test ".$ac_rc" = .yes; then
27160 for ac_func in pthread_condattr_setpshared
27162 ac_fn_c_check_func "$LINENO" "pthread_condattr_setpshared" "ac_cv_func_pthread_condattr_setpshared"
27163 if test "x$ac_cv_func_pthread_condattr_setpshared" = xyes; then :
27164 cat >>confdefs.h <<_ACEOF
27165 #define HAVE_PTHREAD_CONDATTR_SETPSHARED 1
27172 for ac_spec in header:pthread.h func:pthread_condattr_setpshared; do
27173 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
27174 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
27177 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27178 ac_var="ac_cv_header_$ac_item"
27181 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27182 ac_var="ac_cv_file_$ac_item"
27184 func ) ac_var="ac_cv_func_$ac_item" ;;
27185 struct ) ac_var="ac_cv_struct_$ac_item" ;;
27186 define ) ac_var="ac_cv_define_$ac_item" ;;
27187 custom ) ac_var="$ac_item" ;;
27189 eval "ac_val=\$$ac_var"
27190 if test ".$ac_val" != .yes; then
27195 if test ".$ac_rc" = .yes; then
27197 have_pthread_condattr_setpshared="1"
27200 have_pthread_condattr_setpshared="0"
27205 # See which lock mechanism we'll select by default on this system.
27206 # The last APR_DECIDE to execute sets the default.
27207 # At this stage, we match the ordering in Apache 1.3
27208 # which is (highest to lowest): sysvsem -> fcntl -> flock.
27209 # POSIX semaphores and cross-process pthread mutexes are not
27210 # used by default since they have less desirable behaviour when
27211 # e.g. a process holding the mutex segfaults.
27212 # The BEOSSEM decision doesn't require any substitutions but is
27213 # included here to prevent the fcntl() branch being selected
27214 # from the decision making.
27215 ac_decision_item='apr_lock implementation method'
27216 ac_decision_msg='FAILED'
27220 for ac_spec in func:flock define:LOCK_EX; do
27221 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
27222 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
27225 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27226 ac_var="ac_cv_header_$ac_item"
27229 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27230 ac_var="ac_cv_file_$ac_item"
27232 func ) ac_var="ac_cv_func_$ac_item" ;;
27233 struct ) ac_var="ac_cv_struct_$ac_item" ;;
27234 define ) ac_var="ac_cv_define_$ac_item" ;;
27235 custom ) ac_var="$ac_item" ;;
27237 eval "ac_val=\$$ac_var"
27238 if test ".$ac_val" != .yes; then
27243 if test ".$ac_rc" = .yes; then
27246 ac_decision='USE_FLOCK_SERIALIZE'
27247 ac_decision_msg='4.2BSD-style flock()'
27248 ac_decision_USE_FLOCK_SERIALIZE=yes
27249 ac_decision_USE_FLOCK_SERIALIZE_msg='4.2BSD-style flock()'
27257 for ac_spec in header:fcntl.h define:F_SETLK; do
27258 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
27259 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
27262 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27263 ac_var="ac_cv_header_$ac_item"
27266 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27267 ac_var="ac_cv_file_$ac_item"
27269 func ) ac_var="ac_cv_func_$ac_item" ;;
27270 struct ) ac_var="ac_cv_struct_$ac_item" ;;
27271 define ) ac_var="ac_cv_define_$ac_item" ;;
27272 custom ) ac_var="$ac_item" ;;
27274 eval "ac_val=\$$ac_var"
27275 if test ".$ac_val" != .yes; then
27280 if test ".$ac_rc" = .yes; then
27283 ac_decision='USE_FCNTL_SERIALIZE'
27284 ac_decision_msg='SVR4-style fcntl()'
27285 ac_decision_USE_FCNTL_SERIALIZE=yes
27286 ac_decision_USE_FCNTL_SERIALIZE_msg='SVR4-style fcntl()'
27294 for ac_spec in func:semget func:semctl func:semop define:SEM_UNDO; do
27295 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
27296 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
27299 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27300 ac_var="ac_cv_header_$ac_item"
27303 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27304 ac_var="ac_cv_file_$ac_item"
27306 func ) ac_var="ac_cv_func_$ac_item" ;;
27307 struct ) ac_var="ac_cv_struct_$ac_item" ;;
27308 define ) ac_var="ac_cv_define_$ac_item" ;;
27309 custom ) ac_var="$ac_item" ;;
27311 eval "ac_val=\$$ac_var"
27312 if test ".$ac_val" != .yes; then
27317 if test ".$ac_rc" = .yes; then
27320 ac_decision='USE_SYSVSEM_SERIALIZE'
27321 ac_decision_msg='SysV IPC semget()'
27322 ac_decision_USE_SYSVSEM_SERIALIZE=yes
27323 ac_decision_USE_SYSVSEM_SERIALIZE_msg='SysV IPC semget()'
27331 for ac_spec in header:OS.h func:create_sem func:acquire_sem func:acquire_sem_etc; do
27332 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'`
27333 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'`
27336 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27337 ac_var="ac_cv_header_$ac_item"
27340 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'`
27341 ac_var="ac_cv_file_$ac_item"
27343 func ) ac_var="ac_cv_func_$ac_item" ;;
27344 struct ) ac_var="ac_cv_struct_$ac_item" ;;
27345 define ) ac_var="ac_cv_define_$ac_item" ;;
27346 custom ) ac_var="$ac_item" ;;
27348 eval "ac_val=\$$ac_var"
27349 if test ".$ac_val" != .yes; then
27354 if test ".$ac_rc" = .yes; then
27357 ac_decision='USE_BEOSSEM'
27358 ac_decision_msg='BeOS Semaphores'
27359 ac_decision_USE_BEOSSEM=yes
27360 ac_decision_USE_BEOSSEM_msg='BeOS Semaphores'
27367 # pthread mutex both pshared and robust[_np] is the best default
27368 case "$apr_cv_mutex_robust_shared" in
27371 ac_decision='USE_PROC_PTHREAD_SERIALIZE'
27372 ac_decision_msg='pthread pshared mutex'
27373 ac_decision_USE_PROC_PTHREAD_SERIALIZE=yes
27374 ac_decision_USE_PROC_PTHREAD_SERIALIZE_msg='pthread pshared mutex'
27380 if test "x$apr_lock_method" != "x"; then
27381 ac_decision="$apr_lock_method"
27382 eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\""
27385 if test ".$ac_decision" = .; then
27386 echo "$0:Error: decision on $ac_decision_item failed" 1>&2
27389 if test ".$ac_decision_msg" = .; then
27390 ac_decision_msg="$ac_decision"
27392 cat >>confdefs.h <<_ACEOF
27393 #define ${ac_decision_item} 1
27396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5
27397 $as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; }
27400 cat >>confdefs.h <<_ACEOF
27401 #define $ac_decision 1
27410 case $ac_decision in
27411 USE_FLOCK_SERIALIZE )
27414 USE_FCNTL_SERIALIZE )
27417 USE_SYSVSEM_SERIALIZE )
27420 USE_POSIXSEM_SERIALIZE )
27423 USE_PROC_PTHREAD_SERIALIZE )
27431 if test $hasfcntlser = "1"; then
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl returns EACCES when F_SETLK is already held" >&5
27433 $as_echo_n "checking if fcntl returns EACCES when F_SETLK is already held... " >&6; }
27434 if test "$cross_compiling" = yes; then :
27435 apr_fcntl_tryacquire_eacces=0
27437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27438 /* end confdefs.h. */
27440 #ifdef HAVE_STDLIB_H
27441 #include <stdlib.h>
27443 #ifdef HAVE_SYS_TYPES_H
27444 #include <sys/types.h>
27446 #ifdef HAVE_SYS_STAT_H
27447 #include <sys/stat.h>
27449 #ifdef HAVE_SYS_WAIT_H
27450 #include <sys/wait.h>
27452 #if defined(HAVE_UNISTD_H)
27453 #include <unistd.h>
27459 struct flock proc_mutex_lock_it = {0};
27460 const char *fname = "conftest.fcntl";
27465 proc_mutex_lock_it.l_whence = SEEK_SET; /* from current point */
27466 proc_mutex_lock_it.l_type = F_WRLCK; /* set exclusive/write lock */
27468 fd = creat(fname, S_IRWXU);
27471 if (rc = lockit()) {
27483 exit(WEXITSTATUS(status) != EACCES);
27489 rc = fcntl(fd, F_SETLK, &proc_mutex_lock_it);
27490 } while ( rc < 0 && errno == EINTR);
27492 return (rc < 0) ? errno : 0;
27495 if ac_fn_c_try_run "$LINENO"; then :
27496 apr_fcntl_tryacquire_eacces=1
27498 apr_fcntl_tryacquire_eacces=0
27500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27501 conftest.$ac_objext conftest.beam conftest.$ac_ext
27506 if test "$apr_fcntl_tryacquire_eacces" = "1"; then
27508 $as_echo "#define FCNTL_TRYACQUIRE_EACCES 1" >>confdefs.h
27510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27511 $as_echo "yes" >&6; }
27513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27514 $as_echo "no" >&6; }
27530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if all interprocess locks affect threads" >&5
27531 $as_echo_n "checking if all interprocess locks affect threads... " >&6; }
27532 if test "x$apr_process_lock_is_global" = "xyes"; then
27534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27535 $as_echo "yes" >&6; }
27538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27539 $as_echo "no" >&6; }
27544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if POSIX sems affect threads in the same process" >&5
27545 $as_echo_n "checking if POSIX sems affect threads in the same process... " >&6; }
27546 if test "x$apr_posixsem_is_global" = "xyes"; then
27548 $as_echo "#define POSIXSEM_IS_GLOBAL 1" >>confdefs.h
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27551 $as_echo "yes" >&6; }
27553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27554 $as_echo "no" >&6; }
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SysV sems affect threads in the same process" >&5
27558 $as_echo_n "checking if SysV sems affect threads in the same process... " >&6; }
27559 if test "x$apr_sysvsem_is_global" = "xyes"; then
27561 $as_echo "#define SYSVSEM_IS_GLOBAL 1" >>confdefs.h
27563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27564 $as_echo "yes" >&6; }
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27567 $as_echo "no" >&6; }
27570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl locks affect threads in the same process" >&5
27571 $as_echo_n "checking if fcntl locks affect threads in the same process... " >&6; }
27572 if test "x$apr_fcntl_is_global" = "xyes"; then
27574 $as_echo "#define FCNTL_IS_GLOBAL 1" >>confdefs.h
27576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27577 $as_echo "yes" >&6; }
27579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27580 $as_echo "no" >&6; }
27583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flock locks affect threads in the same process" >&5
27584 $as_echo_n "checking if flock locks affect threads in the same process... " >&6; }
27585 if test "x$apr_flock_is_global" = "xyes"; then
27587 $as_echo "#define FLOCK_IS_GLOBAL 1" >>confdefs.h
27589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27590 $as_echo "yes" >&6; }
27592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27593 $as_echo "no" >&6; }
27596 for ac_header in sys/random.h
27598 ac_fn_c_check_header_mongrel "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
27599 if test "x$ac_cv_header_sys_random_h" = xyes; then :
27600 cat >>confdefs.h <<_ACEOF
27601 #define HAVE_SYS_RANDOM_H 1
27608 for ac_func in getrandom
27610 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
27611 if test "x$ac_cv_func_getrandom" = xyes; then :
27612 cat >>confdefs.h <<_ACEOF
27613 #define HAVE_GETRANDOM 1
27620 for ac_header in sys/syscall.h
27622 ac_fn_c_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
27623 if test "x$ac_cv_header_sys_syscall_h" = xyes; then :
27624 cat >>confdefs.h <<_ACEOF
27625 #define HAVE_SYS_SYSCALL_H 1
27632 for ac_header in linux/random.h
27634 ac_fn_c_check_header_mongrel "$LINENO" "linux/random.h" "ac_cv_header_linux_random_h" "$ac_includes_default"
27635 if test "x$ac_cv_header_linux_random_h" = xyes; then :
27636 cat >>confdefs.h <<_ACEOF
27637 #define HAVE_LINUX_RANDOM_H 1
27644 ac_fn_c_check_decl "$LINENO" "SYS_getrandom" "ac_cv_have_decl_SYS_getrandom" "#include <sys/syscall.h>
27646 if test "x$ac_cv_have_decl_SYS_getrandom" = xyes; then :
27652 cat >>confdefs.h <<_ACEOF
27653 #define HAVE_DECL_SYS_GETRANDOM $ac_have_decl
27657 for ac_func in arc4random_buf
27659 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
27660 if test "x$ac_cv_func_arc4random_buf" = xyes; then :
27661 cat >>confdefs.h <<_ACEOF
27662 #define HAVE_ARC4RANDOM_BUF 1
27669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for entropy source" >&5
27670 $as_echo_n "checking for entropy source... " >&6; }
27675 # Check whether --with-egd was given.
27676 if test "${with_egd+set}" = set; then :
27678 $as_echo "#define HAVE_EGD 1" >>confdefs.h
27680 if test "$withval" = "yes"; then
27682 cat >>confdefs.h <<_ACEOF
27683 #define EGD_DEFAULT_SOCKET "/var/run/egd-pool","/dev/egd-pool","/etc/egd-pool","/etc/entropy"
27687 cat >>confdefs.h <<_ACEOF
27688 #define EGD_DEFAULT_SOCKET "$withval"
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: EGD-compatible daemon" >&5
27693 $as_echo "EGD-compatible daemon" >&6; }
27699 if test "$rand" != "1"; then
27700 if test "$ac_cv_func_getrandom" = yes; then
27702 elif test "$ac_cv_have_decl_SYS_getrandom" = yes; then
27703 rand="SYS_getrandom"
27704 elif test "$ac_cv_func_arc4random_buf" = yes; then
27709 if test "$rand" != "1"; then
27711 # Check whether --with-devrandom was given.
27712 if test "${with_devrandom+set}" = set; then :
27713 withval=$with_devrandom; apr_devrandom="$withval"
27718 if test "$apr_devrandom" = "no"; then
27719 if test -z "$rand"; then
27720 apr_devrandom="yes"
27726 if test "$apr_devrandom" = "yes"; then
27727 # /dev/random on OpenBSD doesn't provide random data, so
27728 # prefer /dev/arandom, which does; see random(4).
27729 for f in /dev/arandom /dev/urandom /dev/random; do
27730 if test -r $f; then
27736 elif test "$apr_devrandom" != "no"; then
27737 if test -r "$apr_devrandom"; then
27740 as_fn_error $? "$apr_devrandom not found or unreadable." "$LINENO" 5
27744 if test "$rand" = "1"; then
27747 if test $os_version -lt 1700; then
27749 why_no_rand=" ($apr_devrandom unusable on z/OS before V1R7)"
27755 if test "$rand" = "1"; then
27757 cat >>confdefs.h <<_ACEOF
27758 #define DEV_RANDOM "$apr_devrandom"
27761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_devrandom" >&5
27762 $as_echo "$apr_devrandom" >&6; }
27763 elif test -n "$rand"; then
27765 cat >>confdefs.h <<_ACEOF
27766 #define SYS_RANDOM "$rand"
27769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rand" >&5
27770 $as_echo "$rand" >&6; }
27775 if test "$rand" != "1"; then
27777 # we have built in support for OS/2
27779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS/2 builtin random" >&5
27780 $as_echo "Using OS/2 builtin random" >&6; }
27784 if test "$rand" != "1"; then
27785 if test "$ac_cv_lib_truerand_main" = "yes"; then
27787 $as_echo "#define HAVE_TRUERAND 1" >>confdefs.h
27789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: truerand" >&5
27790 $as_echo "truerand" >&6; }
27793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found$why_no_rand" >&5
27794 $as_echo "not found$why_no_rand" >&6; }
27804 echo "${nl}Checking for File Info Support..."
27805 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "
27806 #ifdef HAVE_SYS_TYPES_H
27807 #include <sys/types.h>
27809 #ifdef HAVE_SYS_STAT_H
27810 #include <sys/stat.h>
27812 #ifdef HAVE_UNISTD_H
27813 #include <unistd.h>
27816 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27818 cat >>confdefs.h <<_ACEOF
27819 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27824 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "
27825 #ifdef HAVE_SYS_TYPES_H
27826 #include <sys/types.h>
27828 #ifdef HAVE_SYS_STAT_H
27829 #include <sys/stat.h>
27831 #ifdef HAVE_UNISTD_H
27832 #include <unistd.h>
27835 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
27837 cat >>confdefs.h <<_ACEOF
27838 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
27843 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "
27844 #ifdef HAVE_SYS_TYPES_H
27845 #include <sys/types.h>
27847 #ifdef HAVE_SYS_STAT_H
27848 #include <sys/stat.h>
27850 #ifdef HAVE_UNISTD_H
27851 #include <unistd.h>
27854 if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes; then :
27856 cat >>confdefs.h <<_ACEOF
27857 #define HAVE_STRUCT_STAT_ST_CTIMENSEC 1
27862 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "
27863 #ifdef HAVE_SYS_TYPES_H
27864 #include <sys/types.h>
27866 #ifdef HAVE_SYS_STAT_H
27867 #include <sys/stat.h>
27869 #ifdef HAVE_UNISTD_H
27870 #include <unistd.h>
27873 if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
27875 cat >>confdefs.h <<_ACEOF
27876 #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
27881 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "
27882 #ifdef HAVE_SYS_TYPES_H
27883 #include <sys/types.h>
27885 #ifdef HAVE_SYS_STAT_H
27886 #include <sys/stat.h>
27888 #ifdef HAVE_UNISTD_H
27889 #include <unistd.h>
27892 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
27894 cat >>confdefs.h <<_ACEOF
27895 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
27900 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "
27901 #ifdef HAVE_SYS_TYPES_H
27902 #include <sys/types.h>
27904 #ifdef HAVE_SYS_STAT_H
27905 #include <sys/stat.h>
27907 #ifdef HAVE_UNISTD_H
27908 #include <unistd.h>
27911 if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = xyes; then :
27913 cat >>confdefs.h <<_ACEOF
27914 #define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
27919 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "
27920 #ifdef HAVE_SYS_TYPES_H
27921 #include <sys/types.h>
27923 #ifdef HAVE_SYS_STAT_H
27924 #include <sys/stat.h>
27926 #ifdef HAVE_UNISTD_H
27927 #include <unistd.h>
27930 if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
27932 cat >>confdefs.h <<_ACEOF
27933 #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
27938 ac_fn_c_check_member "$LINENO" "struct stat" "st_atime_n" "ac_cv_member_struct_stat_st_atime_n" "
27939 #ifdef HAVE_SYS_TYPES_H
27940 #include <sys/types.h>
27942 #ifdef HAVE_SYS_STAT_H
27943 #include <sys/stat.h>
27945 #ifdef HAVE_UNISTD_H
27946 #include <unistd.h>
27949 if test "x$ac_cv_member_struct_stat_st_atime_n" = xyes; then :
27951 cat >>confdefs.h <<_ACEOF
27952 #define HAVE_STRUCT_STAT_ST_ATIME_N 1
27957 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime_n" "ac_cv_member_struct_stat_st_ctime_n" "
27958 #ifdef HAVE_SYS_TYPES_H
27959 #include <sys/types.h>
27961 #ifdef HAVE_SYS_STAT_H
27962 #include <sys/stat.h>
27964 #ifdef HAVE_UNISTD_H
27965 #include <unistd.h>
27968 if test "x$ac_cv_member_struct_stat_st_ctime_n" = xyes; then :
27970 cat >>confdefs.h <<_ACEOF
27971 #define HAVE_STRUCT_STAT_ST_CTIME_N 1
27976 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_n" "ac_cv_member_struct_stat_st_mtime_n" "
27977 #ifdef HAVE_SYS_TYPES_H
27978 #include <sys/types.h>
27980 #ifdef HAVE_SYS_STAT_H
27981 #include <sys/stat.h>
27983 #ifdef HAVE_UNISTD_H
27984 #include <unistd.h>
27987 if test "x$ac_cv_member_struct_stat_st_mtime_n" = xyes; then :
27989 cat >>confdefs.h <<_ACEOF
27990 #define HAVE_STRUCT_STAT_ST_MTIME_N 1
27998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inode member of struct dirent" >&5
27999 $as_echo_n "checking for inode member of struct dirent... " >&6; }
28000 if ${apr_cv_dirent_inode+:} false; then :
28001 $as_echo_n "(cached) " >&6
28004 apr_cv_dirent_inode=no
28005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28006 /* end confdefs.h. */
28008 #include <sys/types.h>
28009 #include <dirent.h>
28018 struct dirent de; de.d_fileno;
28024 if ac_fn_c_try_compile "$LINENO"; then :
28025 apr_cv_dirent_inode=d_fileno
28027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28028 if test "$apr_cv_dirent_inode" = "no"; then
28029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28030 /* end confdefs.h. */
28032 #include <sys/types.h>
28033 #include <dirent.h>
28042 struct dirent de; de.d_ino;
28048 if ac_fn_c_try_compile "$LINENO"; then :
28049 apr_cv_dirent_inode=d_ino
28051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_inode" >&5
28056 $as_echo "$apr_cv_dirent_inode" >&6; }
28057 if test "$apr_cv_dirent_inode" != "no"; then
28059 cat >>confdefs.h <<_ACEOF
28060 #define DIRENT_INODE $apr_cv_dirent_inode
28066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file type member of struct dirent" >&5
28067 $as_echo_n "checking for file type member of struct dirent... " >&6; }
28068 if ${apr_cv_dirent_type+:} false; then :
28069 $as_echo_n "(cached) " >&6
28072 apr_cv_dirent_type=no
28073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28074 /* end confdefs.h. */
28076 #include <sys/types.h>
28077 #include <dirent.h>
28083 struct dirent de; de.d_type = DT_REG;
28089 if ac_fn_c_try_compile "$LINENO"; then :
28090 apr_cv_dirent_type=d_type
28092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_type" >&5
28096 $as_echo "$apr_cv_dirent_type" >&6; }
28097 if test "$apr_cv_dirent_type" != "no"; then
28099 cat >>confdefs.h <<_ACEOF
28100 #define DIRENT_TYPE $apr_cv_dirent_type
28106 echo "${nl}Checking for OS UUID Support..."
28108 for ac_header in uuid.h uuid/uuid.h sys/uuid.h
28110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28111 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28112 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28113 cat >>confdefs.h <<_ACEOF
28114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28122 apr_revert_save_LIBS=$LIBS
28124 # Prefer the flavor(s) that live in libc;
28125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
28126 $as_echo_n "checking for library containing uuid_create... " >&6; }
28127 if ${ac_cv_search_uuid_create+:} false; then :
28128 $as_echo_n "(cached) " >&6
28130 ac_func_search_save_LIBS=$LIBS
28131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28132 /* end confdefs.h. */
28134 /* Override any GCC internal prototype to avoid an error.
28135 Use char because int might match the return type of a GCC
28136 builtin and then its argument prototype would still apply. */
28140 char uuid_create ();
28144 return uuid_create ();
28149 for ac_lib in '' uuid; do
28150 if test -z "$ac_lib"; then
28151 ac_res="none required"
28154 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28156 if ac_fn_c_try_link "$LINENO"; then :
28157 ac_cv_search_uuid_create=$ac_res
28159 rm -f core conftest.err conftest.$ac_objext \
28161 if ${ac_cv_search_uuid_create+:} false; then :
28165 if ${ac_cv_search_uuid_create+:} false; then :
28168 ac_cv_search_uuid_create=no
28170 rm conftest.$ac_ext
28171 LIBS=$ac_func_search_save_LIBS
28173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
28174 $as_echo "$ac_cv_search_uuid_create" >&6; }
28175 ac_res=$ac_cv_search_uuid_create
28176 if test "$ac_res" != no; then :
28177 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
28182 $as_echo_n "checking for library containing uuid_generate... " >&6; }
28183 if ${ac_cv_search_uuid_generate+:} false; then :
28184 $as_echo_n "(cached) " >&6
28186 ac_func_search_save_LIBS=$LIBS
28187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28188 /* end confdefs.h. */
28190 /* Override any GCC internal prototype to avoid an error.
28191 Use char because int might match the return type of a GCC
28192 builtin and then its argument prototype would still apply. */
28196 char uuid_generate ();
28200 return uuid_generate ();
28205 for ac_lib in '' uuid; do
28206 if test -z "$ac_lib"; then
28207 ac_res="none required"
28210 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28212 if ac_fn_c_try_link "$LINENO"; then :
28213 ac_cv_search_uuid_generate=$ac_res
28215 rm -f core conftest.err conftest.$ac_objext \
28217 if ${ac_cv_search_uuid_generate+:} false; then :
28221 if ${ac_cv_search_uuid_generate+:} false; then :
28224 ac_cv_search_uuid_generate=no
28226 rm conftest.$ac_ext
28227 LIBS=$ac_func_search_save_LIBS
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
28230 $as_echo "$ac_cv_search_uuid_generate" >&6; }
28231 ac_res=$ac_cv_search_uuid_generate
28232 if test "$ac_res" != no; then :
28233 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28237 if test "$ac_cv_search_uuid_create" = "none required" -o \
28238 "$ac_cv_search_uuid_generate" = "none required"; then
28239 LIBS=$apr_revert_save_LIBS
28242 for ac_func in uuid_create uuid_generate
28244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28245 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28246 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28247 cat >>confdefs.h <<_ACEOF
28248 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for os uuid usability" >&5
28256 $as_echo_n "checking for os uuid usability... " >&6; }
28257 if ${apr_cv_osuuid+:} false; then :
28258 $as_echo_n "(cached) " >&6
28261 # Ensure this test closely mirrors misc/unix/rand.c!
28263 #if defined(HAVE_SYS_TYPES_H)
28264 #include <sys/types.h>
28266 #if defined(HAVE_UNISTD_H)
28267 #include <unistd.h>
28269 #if defined(HAVE_UUID_H)
28271 #elif defined(HAVE_UUID_UUID_H)
28272 #include <uuid/uuid.h>
28273 #elif defined(HAVE_SYS_UUID_H)
28274 #include <sys/uuid.h>
28278 if test $ac_cv_func_uuid_create = yes; then
28279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28280 /* end confdefs.h. */
28288 uuid_create(&g, &s);
28289 if (s == uuid_s_ok) s = 0;
28295 if ac_fn_c_try_link "$LINENO"; then :
28298 apr_cv_func_uuid_create=no
28300 rm -f core conftest.err conftest.$ac_objext \
28301 conftest$ac_exeext conftest.$ac_ext
28303 if test $ac_cv_func_uuid_generate = yes; then
28304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28305 /* end confdefs.h. */
28318 if ac_fn_c_try_link "$LINENO"; then :
28321 apr_cv_func_uuid_generate=no
28323 rm -f core conftest.err conftest.$ac_objext \
28324 conftest$ac_exeext conftest.$ac_ext
28328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_osuuid" >&5
28329 $as_echo "$apr_cv_osuuid" >&6; }
28331 if test $apr_cv_osuuid = yes; then
28335 LIBS=$apr_revert_save_LIBS
28340 echo "${nl}Checking for Time Support..."
28342 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
28343 #include <sys/types.h>
28346 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
28348 cat >>confdefs.h <<_ACEOF
28349 #define HAVE_STRUCT_TM_TM_GMTOFF 1
28354 ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "
28355 #include <sys/types.h>
28358 if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
28360 cat >>confdefs.h <<_ACEOF
28361 #define HAVE_STRUCT_TM___TM_GMTOFF 1
28368 echo "${nl}Checking for Networking support..."
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type in_addr" >&5
28371 $as_echo_n "checking for type in_addr... " >&6; }
28372 if ${ac_cv_type_in_addr+:} false; then :
28373 $as_echo_n "(cached) " >&6
28376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28377 /* end confdefs.h. */
28379 #ifdef HAVE_SYS_TYPES_H
28380 #include <sys/types.h>
28382 #ifdef HAVE_NETINET_IN_H
28383 #include <netinet/in.h>
28385 #ifdef HAVE_WINSOCK2_H
28386 #include <winsock2.h>
28393 struct in_addr arg;
28394 arg.s_addr = htonl(INADDR_ANY);
28400 if ac_fn_c_try_compile "$LINENO"; then :
28401 ac_cv_type_in_addr="yes"
28404 ac_cv_type_in_addr="no"
28406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr" >&5
28410 $as_echo "$ac_cv_type_in_addr" >&6; }
28412 if test "$ac_cv_type_in_addr" = "yes"; then
28418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fd == socket on this platform" >&5
28419 $as_echo_n "checking if fd == socket on this platform... " >&6; }
28420 if test "x$file_as_socket" != "x0" ; then
28421 file_as_socket="1";
28430 if test "$ac_cv_func_poll $file_as_socket" = "yes 1"; then
28432 $as_echo "#define WAITIO_USES_POLL 1" >>confdefs.h
28436 # Check the types only if we have gethostbyname_r
28437 if test "$ac_cv_func_gethostbyname_r" = "yes"; then
28440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking style of gethostbyname_r routine" >&5
28441 $as_echo_n "checking style of gethostbyname_r routine... " >&6; }
28442 if ${ac_cv_gethostbyname_r_style+:} false; then :
28443 $as_echo_n "(cached) " >&6
28445 apr_save_CFLAGS=$CFLAGS
28446 CFLAGS="$CFLAGS $CFLAGS_WARN"
28447 if test "$ac_cv_c_compiler_gnu" = "yes"; then
28448 CFLAGS="$CFLAGS -Werror"
28450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28451 /* end confdefs.h. */
28452 #include "confdefs.h"
28455 #ifdef HAVE_SYS_TYPES_H
28456 #include <sys/types.h>
28458 #ifdef HAVE_NETINET_IN_H
28459 #include <netinet/in.h>
28461 #ifdef HAVE_ARPA_INET_H
28462 #include <arpa/inet.h>
28464 #ifdef HAVE_NETDB_H
28467 #ifdef HAVE_STDLIB_H
28468 #include <stdlib.h>
28471 int main(int argc, const char *const *argv) {
28473 int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
28474 (char *) 0, 0, (struct hostent **) 0, &tmp);
28475 /* use tmp to suppress the warning */
28481 if ac_fn_c_try_compile "$LINENO"; then :
28482 CFLAGS=$apr_save_CFLAGS
28483 ac_cv_gethostbyname_r_style=glibc2
28485 CFLAGS=$apr_save_CFLAGS
28486 ac_cv_gethostbyname_r_style=none
28488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_style" >&5
28492 $as_echo "$ac_cv_gethostbyname_r_style" >&6; }
28494 if test "$ac_cv_gethostbyname_r_style" = "glibc2"; then
28496 $as_echo "#define GETHOSTBYNAME_R_GLIBC2 1" >>confdefs.h
28500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 3rd argument to the gethostbyname_r routines" >&5
28501 $as_echo_n "checking 3rd argument to the gethostbyname_r routines... " >&6; }
28502 if ${ac_cv_gethostbyname_r_arg+:} false; then :
28503 $as_echo_n "(cached) " >&6
28505 apr_save_CFLAGS=$CFLAGS
28506 CFLAGS="$CFLAGS $CFLAGS_WARN"
28507 if test "$ac_cv_c_compiler_gnu" = "yes"; then
28508 CFLAGS="$CFLAGS -Werror"
28510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28511 /* end confdefs.h. */
28512 #include "confdefs.h"
28515 #ifdef HAVE_SYS_TYPES_H
28516 #include <sys/types.h>
28518 #ifdef HAVE_NETINET_IN_H
28519 #include <netinet/in.h>
28521 #ifdef HAVE_ARPA_INET_H
28522 #include <arpa/inet.h>
28524 #ifdef HAVE_NETDB_H
28527 #ifdef HAVE_STDLIB_H
28528 #include <stdlib.h>
28531 int main(int argc, const char *const *argv) {
28533 int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0,
28534 (struct hostent_data *) 0);
28535 /* use tmp to suppress the warning */
28541 if ac_fn_c_try_compile "$LINENO"; then :
28542 CFLAGS=$apr_save_CFLAGS
28543 ac_cv_gethostbyname_r_arg=hostent_data
28545 CFLAGS=$apr_save_CFLAGS
28546 ac_cv_gethostbyname_r_arg=char
28548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_arg" >&5
28552 $as_echo "$ac_cv_gethostbyname_r_arg" >&6; }
28554 if test "$ac_cv_gethostbyname_r_arg" = "hostent_data"; then
28556 $as_echo "#define GETHOSTBYNAME_R_HOSTENT_DATA 1" >>confdefs.h
28562 # Check the types only if we have getservbyname_r
28563 if test "$ac_cv_func_getservbyname_r" = "yes"; then
28566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking style of getservbyname_r routine" >&5
28567 $as_echo_n "checking style of getservbyname_r routine... " >&6; }
28568 if ${ac_cv_getservbyname_r_style+:} false; then :
28569 $as_echo_n "(cached) " >&6
28572 apr_save_CFLAGS=$CFLAGS
28573 CFLAGS="$CFLAGS $CFLAGS_WARN"
28574 if test "$ac_cv_c_compiler_gnu" = "yes"; then
28575 CFLAGS="$CFLAGS -Werror"
28577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28578 /* end confdefs.h. */
28579 #include "confdefs.h"
28582 #ifdef HAVE_SYS_TYPES_H
28583 #include <sys/types.h>
28585 #ifdef HAVE_NETINET_IN_H
28586 #include <netinet/in.h>
28588 #ifdef HAVE_ARPA_INET_H
28589 #include <arpa/inet.h>
28591 #ifdef HAVE_NETDB_H
28594 #ifdef HAVE_STDLIB_H
28595 #include <stdlib.h>
28598 int main(int argc, const char *const *argv) {
28600 int tmp = getservbyname_r((const char *) 0, (const char *) 0,
28601 (struct servent *) 0, (char *) 0, 0,
28602 (struct servent **) 0);
28603 /* use tmp to suppress the warning */
28609 if ac_fn_c_try_compile "$LINENO"; then :
28610 CFLAGS=$apr_save_CFLAGS
28611 ac_cv_getservbyname_r_style=glibc2
28613 CFLAGS=$apr_save_CFLAGS
28614 ac_cv_getservbyname_r_style=none
28616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28619 if test "$ac_cv_getservbyname_r_style" = "none"; then
28620 apr_save_CFLAGS=$CFLAGS
28621 CFLAGS="$CFLAGS $CFLAGS_WARN"
28622 if test "$ac_cv_c_compiler_gnu" = "yes"; then
28623 CFLAGS="$CFLAGS -Werror"
28625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28626 /* end confdefs.h. */
28627 #include "confdefs.h"
28630 #ifdef HAVE_SYS_TYPES_H
28631 #include <sys/types.h>
28633 #ifdef HAVE_NETINET_IN_H
28634 #include <netinet/in.h>
28636 #ifdef HAVE_ARPA_INET_H
28637 #include <arpa/inet.h>
28639 #ifdef HAVE_NETDB_H
28642 #ifdef HAVE_STDLIB_H
28643 #include <stdlib.h>
28646 int main(int argc, const char *const *argv) {
28648 struct servent *tmp = getservbyname_r((const char *) 0, (const char *) 0,
28649 (struct servent *) 0, (char *) 0, 0);
28650 /* use tmp to suppress the warning */
28656 if ac_fn_c_try_compile "$LINENO"; then :
28657 CFLAGS=$apr_save_CFLAGS
28658 ac_cv_getservbyname_r_style=solaris
28660 CFLAGS=$apr_save_CFLAGS
28661 ac_cv_getservbyname_r_style=none
28663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28667 if test "$ac_cv_getservbyname_r_style" = "none"; then
28668 apr_save_CFLAGS=$CFLAGS
28669 CFLAGS="$CFLAGS $CFLAGS_WARN"
28670 if test "$ac_cv_c_compiler_gnu" = "yes"; then
28671 CFLAGS="$CFLAGS -Werror"
28673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28674 /* end confdefs.h. */
28675 #include "confdefs.h"
28678 #ifdef HAVE_SYS_TYPES_H
28679 #include <sys/types.h>
28681 #ifdef HAVE_NETINET_IN_H
28682 #include <netinet/in.h>
28684 #ifdef HAVE_ARPA_INET_H
28685 #include <arpa/inet.h>
28687 #ifdef HAVE_NETDB_H
28690 #ifdef HAVE_STDLIB_H
28691 #include <stdlib.h>
28694 int main(int argc, const char *const *argv) {
28696 int tmp = getservbyname_r((const char *) 0, (const char *) 0,
28697 (struct servent *) 0, (struct servent_data *) 0);
28698 /* use tmp to suppress the warning */
28704 if ac_fn_c_try_compile "$LINENO"; then :
28705 CFLAGS=$apr_save_CFLAGS
28706 ac_cv_getservbyname_r_style=osf1
28708 CFLAGS=$apr_save_CFLAGS
28709 ac_cv_getservbyname_r_style=none
28711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_getservbyname_r_style" >&5
28717 $as_echo "$ac_cv_getservbyname_r_style" >&6; }
28719 if test "$ac_cv_getservbyname_r_style" = "glibc2"; then
28721 $as_echo "#define GETSERVBYNAME_R_GLIBC2 1" >>confdefs.h
28723 elif test "$ac_cv_getservbyname_r_style" = "solaris"; then
28725 $as_echo "#define GETSERVBYNAME_R_SOLARIS 1" >>confdefs.h
28727 elif test "$ac_cv_getservbyname_r_style" = "osf1"; then
28729 $as_echo "#define GETSERVBYNAME_R_OSF1 1" >>confdefs.h
28736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TCP_NODELAY setting is inherited from listening sockets" >&5
28737 $as_echo_n "checking if TCP_NODELAY setting is inherited from listening sockets... " >&6; }
28738 if ${ac_cv_tcp_nodelay_inherited+:} false; then :
28739 $as_echo_n "(cached) " >&6
28742 if test "$cross_compiling" = yes; then :
28744 ac_cv_tcp_nodelay_inherited="yes"
28747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28748 /* end confdefs.h. */
28751 #ifdef HAVE_SYS_TYPES_H
28752 #include <sys/types.h>
28754 #ifdef HAVE_SYS_SOCKET_H
28755 #include <sys/socket.h>
28757 #ifdef HAVE_NETINET_IN_H
28758 #include <netinet/in.h>
28760 #ifdef HAVE_NETINET_TCP_H
28761 #include <netinet/tcp.h>
28763 #ifndef HAVE_SOCKLEN_T
28764 typedef int socklen_t;
28767 int listen_s, connected_s, client_s;
28768 int listen_port, rc;
28769 struct sockaddr_in sa;
28771 socklen_t option_len;
28774 listen_s = socket(AF_INET, SOCK_STREAM, 0);
28775 if (listen_s < 0) {
28780 rc = setsockopt(listen_s, IPPROTO_TCP, TCP_NODELAY, &option, sizeof option);
28782 perror("setsockopt TCP_NODELAY");
28785 memset(&sa, 0, sizeof sa);
28786 sa.sin_family = AF_INET;
28788 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
28790 /* leave port 0 to get ephemeral */
28791 rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
28793 perror("bind for ephemeral port");
28796 /* find ephemeral port */
28797 sa_len = sizeof(sa);
28798 rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
28800 perror("getsockname");
28803 listen_port = sa.sin_port;
28804 rc = listen(listen_s, 5);
28809 client_s = socket(AF_INET, SOCK_STREAM, 0);
28810 if (client_s < 0) {
28814 memset(&sa, 0, sizeof sa);
28815 sa.sin_family = AF_INET;
28816 sa.sin_port = listen_port;
28818 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
28820 /* leave sin_addr all zeros to use loopback */
28821 rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
28826 sa_len = sizeof sa;
28827 connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
28828 if (connected_s < 0) {
28832 option_len = sizeof option;
28833 rc = getsockopt(connected_s, IPPROTO_TCP, TCP_NODELAY, &option, &option_len);
28835 perror("getsockopt");
28839 fprintf(stderr, "TCP_NODELAY is not set in the child.\n");
28846 if ac_fn_c_try_run "$LINENO"; then :
28848 ac_cv_tcp_nodelay_inherited="yes"
28852 ac_cv_tcp_nodelay_inherited="no"
28855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28856 conftest.$ac_objext conftest.beam conftest.$ac_ext
28860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tcp_nodelay_inherited" >&5
28861 $as_echo "$ac_cv_tcp_nodelay_inherited" >&6; }
28862 if test "$ac_cv_tcp_nodelay_inherited" = "yes"; then
28863 tcp_nodelay_inherited=1
28865 tcp_nodelay_inherited=0
28869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if O_NONBLOCK setting is inherited from listening sockets" >&5
28870 $as_echo_n "checking if O_NONBLOCK setting is inherited from listening sockets... " >&6; }
28871 if ${ac_cv_o_nonblock_inherited+:} false; then :
28872 $as_echo_n "(cached) " >&6
28875 if test "$cross_compiling" = yes; then :
28877 ac_cv_o_nonblock_inherited="yes"
28880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28881 /* end confdefs.h. */
28883 #ifdef HAVE_STDLIB_H
28884 #include <stdlib.h>
28886 #ifdef HAVE_STRING_H
28887 #include <string.h>
28889 #ifdef HAVE_STDIO_H
28892 #ifdef HAVE_SYS_TYPES_H
28893 #include <sys/types.h>
28895 #ifdef HAVE_SYS_SOCKET_H
28896 #include <sys/socket.h>
28898 #ifdef HAVE_SYS_TIME_H
28899 #include <sys/time.h>
28901 #ifdef HAVE_SYS_SELECT_H
28902 #include <sys/select.h>
28904 #ifdef HAVE_NETINET_IN_H
28905 #include <netinet/in.h>
28907 #ifdef HAVE_NETINET_TCP_H
28908 #include <netinet/tcp.h>
28910 #ifndef HAVE_SOCKLEN_T
28911 typedef int socklen_t;
28913 #ifdef HAVE_FCNTL_H
28917 int listen_s, connected_s, client_s;
28918 int listen_port, rc;
28919 struct sockaddr_in sa;
28924 listen_s = socket(AF_INET, SOCK_STREAM, 0);
28925 if (listen_s < 0) {
28929 memset(&sa, 0, sizeof sa);
28930 sa.sin_family = AF_INET;
28932 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
28934 /* leave port 0 to get ephemeral */
28935 rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa);
28937 perror("bind for ephemeral port");
28940 /* find ephemeral port */
28941 sa_len = sizeof(sa);
28942 rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len);
28944 perror("getsockname");
28947 listen_port = sa.sin_port;
28948 rc = listen(listen_s, 5);
28953 rc = fcntl(listen_s, F_SETFL, O_NONBLOCK);
28955 perror("fcntl(F_SETFL)");
28958 client_s = socket(AF_INET, SOCK_STREAM, 0);
28959 if (client_s < 0) {
28963 memset(&sa, 0, sizeof sa);
28964 sa.sin_family = AF_INET;
28965 sa.sin_port = listen_port;
28967 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
28969 /* leave sin_addr all zeros to use loopback */
28970 rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa);
28975 sa_len = sizeof sa;
28976 /* 1 second select timeout */
28979 /* Set up fd set */
28981 FD_SET(listen_s, &fds);
28982 /* Wait for socket to become readable */
28983 rc = select(listen_s + 1, &fds, NULL, NULL, &tv);
28989 fprintf(stderr, "Socket failed to become readable (timeout)\n");
28992 if (!FD_ISSET(listen_s, &fds)) {
28993 fprintf(stderr, "Socket failed to become readable (selected another fd)\n");
28996 connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len);
28997 if (connected_s < 0) {
29001 rc = fcntl(connected_s, F_GETFL, 0);
29003 perror("fcntl(F_GETFL)");
29006 if (!(rc & O_NONBLOCK)) {
29007 fprintf(stderr, "O_NONBLOCK is not set in the child.\n");
29014 if ac_fn_c_try_run "$LINENO"; then :
29016 ac_cv_o_nonblock_inherited="yes"
29020 ac_cv_o_nonblock_inherited="no"
29023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29024 conftest.$ac_objext conftest.beam conftest.$ac_ext
29028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_nonblock_inherited" >&5
29029 $as_echo "$ac_cv_o_nonblock_inherited" >&6; }
29030 if test "$ac_cv_o_nonblock_inherited" = "yes"; then
29031 o_nonblock_inherited=1
29033 o_nonblock_inherited=0
29037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCP_NODELAY and TCP_CORK can both be enabled" >&5
29038 $as_echo_n "checking whether TCP_NODELAY and TCP_CORK can both be enabled... " >&6; }
29039 if ${apr_cv_tcp_nodelay_with_cork+:} false; then :
29040 $as_echo_n "(cached) " >&6
29042 if test "$cross_compiling" = yes; then :
29043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29045 as_fn_error $? "cannot run test program while cross compiling
29046 See \`config.log' for more details" "$LINENO" 5; }
29048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29049 /* end confdefs.h. */
29051 #ifdef HAVE_SYS_TYPES_H
29052 #include <sys/types.h>
29054 #ifdef HAVE_SYS_SOCKET_H
29055 #include <sys/socket.h>
29057 #ifdef HAVE_NETINET_IN_H
29058 #include <netinet/in.h>
29060 #ifdef HAVE_NETINET_TCP_H
29061 #include <netinet/tcp.h>
29064 #include <stdlib.h>
29072 fd = socket(AF_INET, SOCK_STREAM, 0);
29078 rc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &flag, sizeof flag);
29080 perror("setsockopt TCP_NODELAY");
29085 rc = setsockopt(fd, IPPROTO_TCP, TCP_CORK, &flag, sizeof flag);
29087 perror("setsockopt TCP_CORK");
29097 if ac_fn_c_try_run "$LINENO"; then :
29098 apr_cv_tcp_nodelay_with_cork=yes
29100 apr_cv_tcp_nodelay_with_cork=no
29102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29103 conftest.$ac_objext conftest.beam conftest.$ac_ext
29107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_tcp_nodelay_with_cork" >&5
29108 $as_echo "$apr_cv_tcp_nodelay_with_cork" >&6; }
29110 if test "$apr_cv_tcp_nodelay_with_cork" = "yes"; then
29112 $as_echo "#define HAVE_TCP_NODELAY_WITH_CORK 1" >>confdefs.h
29117 # Look for a way of corking TCP...
29119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_CORK in netinet/tcp.h" >&5
29120 $as_echo_n "checking for TCP_CORK in netinet/tcp.h... " >&6; }
29121 if ${ac_cv_define_TCP_CORK+:} false; then :
29122 $as_echo_n "(cached) " >&6
29125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29126 /* end confdefs.h. */
29128 #include <netinet/tcp.h>
29134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29135 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
29136 ac_cv_define_TCP_CORK=yes
29138 ac_cv_define_TCP_CORK=no
29144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_CORK" >&5
29145 $as_echo "$ac_cv_define_TCP_CORK" >&6; }
29146 if test "$ac_cv_define_TCP_CORK" = "yes"; then
29148 $as_echo "#define HAVE_TCP_CORK 1" >>confdefs.h
29153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_NOPUSH in netinet/tcp.h" >&5
29154 $as_echo_n "checking for TCP_NOPUSH in netinet/tcp.h... " >&6; }
29155 if ${ac_cv_define_TCP_NOPUSH+:} false; then :
29156 $as_echo_n "(cached) " >&6
29159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29160 /* end confdefs.h. */
29162 #include <netinet/tcp.h>
29168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29169 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
29170 ac_cv_define_TCP_NOPUSH=yes
29172 ac_cv_define_TCP_NOPUSH=no
29178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_NOPUSH" >&5
29179 $as_echo "$ac_cv_define_TCP_NOPUSH" >&6; }
29180 if test "$ac_cv_define_TCP_NOPUSH" = "yes"; then
29182 $as_echo "#define HAVE_TCP_NOPUSH 1" >>confdefs.h
29186 apr_tcp_nopush_flag="0"
29187 have_corkable_tcp="0"
29188 if test "x$ac_cv_define_TCP_CORK" = "xyes"; then
29189 apr_tcp_nopush_flag="TCP_CORK"
29190 have_corkable_tcp="1"
29194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29195 /* end confdefs.h. */
29197 #include <linux/socket.h>
29203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29204 $EGREP "yes" >/dev/null 2>&1; then :
29206 apr_tcp_nopush_flag="3"
29207 have_corkable_tcp="1"
29217 if test "x$ac_cv_define_TCP_NOPUSH" = "xyes"; then
29218 apr_tcp_nopush_flag="TCP_NOPUSH"
29219 have_corkable_tcp="1"
29223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_ACCEPTFILTER in sys/socket.h" >&5
29224 $as_echo_n "checking for SO_ACCEPTFILTER in sys/socket.h... " >&6; }
29225 if ${ac_cv_define_SO_ACCEPTFILTER+:} false; then :
29226 $as_echo_n "(cached) " >&6
29229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29230 /* end confdefs.h. */
29232 #include <sys/socket.h>
29233 #ifdef SO_ACCEPTFILTER
29238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29239 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
29240 ac_cv_define_SO_ACCEPTFILTER=yes
29242 ac_cv_define_SO_ACCEPTFILTER=no
29248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SO_ACCEPTFILTER" >&5
29249 $as_echo "$ac_cv_define_SO_ACCEPTFILTER" >&6; }
29250 if test "$ac_cv_define_SO_ACCEPTFILTER" = "yes"; then
29252 $as_echo "#define HAVE_SO_ACCEPTFILTER 1" >>confdefs.h
29256 if test "x$ac_cv_define_SO_ACCEPTFILTER" = "xyes"; then
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SCTP is supported" >&5
29264 $as_echo_n "checking whether SCTP is supported... " >&6; }
29265 if ${apr_cv_sctp+:} false; then :
29266 $as_echo_n "(cached) " >&6
29269 if test "$cross_compiling" = yes; then :
29272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29273 /* end confdefs.h. */
29275 #ifdef HAVE_SYS_TYPES_H
29276 #include <sys/types.h>
29278 #ifdef HAVE_SYS_SOCKET_H
29279 #include <sys/socket.h>
29281 #ifdef HAVE_NETINET_IN_H
29282 #include <netinet/in.h>
29284 #ifdef HAVE_NETINET_SCTP_H
29285 #include <netinet/sctp.h>
29287 #ifdef HAVE_NETINET_SCTP_UIO_H
29288 #include <netinet/sctp_uio.h>
29290 #include <stdlib.h>
29293 if ((s = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP)) < 0)
29295 if (setsockopt(s, IPPROTO_SCTP, SCTP_NODELAY, &opt, sizeof(int)) < 0)
29300 if ac_fn_c_try_run "$LINENO"; then :
29305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29306 conftest.$ac_objext conftest.beam conftest.$ac_ext
29310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sctp" >&5
29311 $as_echo "$apr_cv_sctp" >&6; }
29313 if test "$apr_cv_sctp" = "yes"; then
29320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreq" >&5
29321 $as_echo_n "checking for struct ip_mreq... " >&6; }
29322 if ${apr_cv_struct_ipmreq+:} false; then :
29323 $as_echo_n "(cached) " >&6
29326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29327 /* end confdefs.h. */
29329 #include <sys/types.h>
29330 #include <netinet/in.h>
29336 struct ip_mreq mip;
29337 mip.imr_interface.s_addr = INADDR_ANY;
29343 if ac_fn_c_try_compile "$LINENO"; then :
29344 apr_cv_struct_ipmreq=yes
29346 apr_cv_struct_ipmreq=no
29348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_struct_ipmreq" >&5
29351 $as_echo "$apr_cv_struct_ipmreq" >&6; }
29353 if test $apr_cv_struct_ipmreq = yes; then
29355 $as_echo "#define HAVE_STRUCT_IPMREQ 1" >>confdefs.h
29365 for ac_func in set_h_errno
29367 ac_fn_c_check_func "$LINENO" "set_h_errno" "ac_cv_func_set_h_errno"
29368 if test "x$ac_cv_func_set_h_errno" = xyes; then :
29369 cat >>confdefs.h <<_ACEOF
29370 #define HAVE_SET_H_ERRNO 1
29377 echo "${nl}Checking for IPv6 Networking support..."
29379 # Check whether --enable-ipv6 was given.
29380 if test "${enable_ipv6+set}" = set; then :
29381 enableval=$enable_ipv6; if test "$enableval" = "no"; then
29382 user_disabled_ipv6=1
29385 user_disabled_ipv6=0
29394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
29395 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
29396 if ${ac_cv_search_getaddrinfo+:} false; then :
29397 $as_echo_n "(cached) " >&6
29399 ac_func_search_save_LIBS=$LIBS
29400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29401 /* end confdefs.h. */
29403 /* Override any GCC internal prototype to avoid an error.
29404 Use char because int might match the return type of a GCC
29405 builtin and then its argument prototype would still apply. */
29409 char getaddrinfo ();
29413 return getaddrinfo ();
29418 for ac_lib in '' socket inet6; do
29419 if test -z "$ac_lib"; then
29420 ac_res="none required"
29423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29425 if ac_fn_c_try_link "$LINENO"; then :
29426 ac_cv_search_getaddrinfo=$ac_res
29428 rm -f core conftest.err conftest.$ac_objext \
29430 if ${ac_cv_search_getaddrinfo+:} false; then :
29434 if ${ac_cv_search_getaddrinfo+:} false; then :
29437 ac_cv_search_getaddrinfo=no
29439 rm conftest.$ac_ext
29440 LIBS=$ac_func_search_save_LIBS
29442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
29443 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
29444 ac_res=$ac_cv_search_getaddrinfo
29445 if test "$ac_res" != no; then :
29446 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gai_strerror" >&5
29451 $as_echo_n "checking for library containing gai_strerror... " >&6; }
29452 if ${ac_cv_search_gai_strerror+:} false; then :
29453 $as_echo_n "(cached) " >&6
29455 ac_func_search_save_LIBS=$LIBS
29456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29457 /* end confdefs.h. */
29459 /* Override any GCC internal prototype to avoid an error.
29460 Use char because int might match the return type of a GCC
29461 builtin and then its argument prototype would still apply. */
29465 char gai_strerror ();
29469 return gai_strerror ();
29474 for ac_lib in '' socket inet6; do
29475 if test -z "$ac_lib"; then
29476 ac_res="none required"
29479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29481 if ac_fn_c_try_link "$LINENO"; then :
29482 ac_cv_search_gai_strerror=$ac_res
29484 rm -f core conftest.err conftest.$ac_objext \
29486 if ${ac_cv_search_gai_strerror+:} false; then :
29490 if ${ac_cv_search_gai_strerror+:} false; then :
29493 ac_cv_search_gai_strerror=no
29495 rm conftest.$ac_ext
29496 LIBS=$ac_func_search_save_LIBS
29498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gai_strerror" >&5
29499 $as_echo "$ac_cv_search_gai_strerror" >&6; }
29500 ac_res=$ac_cv_search_gai_strerror
29501 if test "$ac_res" != no; then :
29502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
29507 $as_echo_n "checking for library containing getnameinfo... " >&6; }
29508 if ${ac_cv_search_getnameinfo+:} false; then :
29509 $as_echo_n "(cached) " >&6
29511 ac_func_search_save_LIBS=$LIBS
29512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29513 /* end confdefs.h. */
29515 /* Override any GCC internal prototype to avoid an error.
29516 Use char because int might match the return type of a GCC
29517 builtin and then its argument prototype would still apply. */
29521 char getnameinfo ();
29525 return getnameinfo ();
29530 for ac_lib in '' socket inet6; do
29531 if test -z "$ac_lib"; then
29532 ac_res="none required"
29535 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29537 if ac_fn_c_try_link "$LINENO"; then :
29538 ac_cv_search_getnameinfo=$ac_res
29540 rm -f core conftest.err conftest.$ac_objext \
29542 if ${ac_cv_search_getnameinfo+:} false; then :
29546 if ${ac_cv_search_getnameinfo+:} false; then :
29549 ac_cv_search_getnameinfo=no
29551 rm conftest.$ac_ext
29552 LIBS=$ac_func_search_save_LIBS
29554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
29555 $as_echo "$ac_cv_search_getnameinfo" >&6; }
29556 ac_res=$ac_cv_search_getnameinfo
29557 if test "$ac_res" != no; then :
29558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29562 for ac_func in gai_strerror if_nametoindex if_indextoname
29564 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29565 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29566 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29567 cat >>confdefs.h <<_ACEOF
29568 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
29576 $as_echo_n "checking for working getaddrinfo... " >&6; }
29577 if ${ac_cv_working_getaddrinfo+:} false; then :
29578 $as_echo_n "(cached) " >&6
29581 if test "$cross_compiling" = yes; then :
29583 ac_cv_working_getaddrinfo="yes"
29586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29587 /* end confdefs.h. */
29589 #ifdef HAVE_NETDB_H
29592 #ifdef HAVE_STRING_H
29593 #include <string.h>
29595 #ifdef HAVE_SYS_TYPES_H
29596 #include <sys/types.h>
29598 #ifdef HAVE_SYS_SOCKET_H
29599 #include <sys/socket.h>
29603 struct addrinfo hints, *ai;
29606 memset(&hints, 0, sizeof(hints));
29607 hints.ai_family = AF_UNSPEC;
29608 hints.ai_socktype = SOCK_STREAM;
29609 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
29613 if (ai->ai_addr->sa_family != AF_INET) {
29620 if ac_fn_c_try_run "$LINENO"; then :
29622 ac_cv_working_getaddrinfo="yes"
29626 ac_cv_working_getaddrinfo="no"
29629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29630 conftest.$ac_objext conftest.beam conftest.$ac_ext
29634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
29635 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
29636 if test "$ac_cv_working_getaddrinfo" = "yes"; then
29637 if test "$ac_cv_func_gai_strerror" != "yes"; then
29638 ac_cv_working_getaddrinfo="no"
29641 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
29647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for negative error codes for getaddrinfo" >&5
29648 $as_echo_n "checking for negative error codes for getaddrinfo... " >&6; }
29649 if ${ac_cv_negative_eai+:} false; then :
29650 $as_echo_n "(cached) " >&6
29653 if test "$cross_compiling" = yes; then :
29655 ac_cv_negative_eai="no"
29658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29659 /* end confdefs.h. */
29661 #ifdef HAVE_NETDB_H
29666 if (EAI_ADDRFAMILY < 0) {
29673 if ac_fn_c_try_run "$LINENO"; then :
29675 ac_cv_negative_eai="yes"
29679 ac_cv_negative_eai="no"
29682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29683 conftest.$ac_objext conftest.beam conftest.$ac_ext
29687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_negative_eai" >&5
29688 $as_echo "$ac_cv_negative_eai" >&6; }
29689 if test "$ac_cv_negative_eai" = "yes"; then
29691 $as_echo "#define NEGATIVE_EAI 1" >>confdefs.h
29696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getnameinfo" >&5
29697 $as_echo_n "checking for working getnameinfo... " >&6; }
29698 if ${ac_cv_working_getnameinfo+:} false; then :
29699 $as_echo_n "(cached) " >&6
29702 if test "$cross_compiling" = yes; then :
29704 ac_cv_working_getnameinfo="yes"
29707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29708 /* end confdefs.h. */
29710 #ifdef HAVE_NETDB_H
29713 #ifdef HAVE_STRING_H
29714 #include <string.h>
29716 #ifdef HAVE_SYS_TYPES_H
29717 #include <sys/types.h>
29719 #ifdef HAVE_SYS_SOCKET_H
29720 #include <sys/socket.h>
29722 #ifdef HAVE_NETINET_IN_H
29723 #include <netinet/in.h>
29727 struct sockaddr_in sa;
29731 sa.sin_family = AF_INET;
29733 sa.sin_addr.s_addr = inet_addr("127.0.0.1");
29735 sa.sin_len = sizeof(sa);
29738 error = getnameinfo((const struct sockaddr *)&sa, sizeof(sa),
29739 hbuf, 256, NULL, 0,
29749 if ac_fn_c_try_run "$LINENO"; then :
29751 ac_cv_working_getnameinfo="yes"
29755 ac_cv_working_getnameinfo="no"
29758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29759 conftest.$ac_objext conftest.beam conftest.$ac_ext
29763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getnameinfo" >&5
29764 $as_echo "$ac_cv_working_getnameinfo" >&6; }
29765 if test "$ac_cv_working_getnameinfo" = "yes"; then
29767 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
29772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6" >&5
29773 $as_echo_n "checking for sockaddr_in6... " >&6; }
29774 if ${ac_cv_define_sockaddr_in6+:} false; then :
29775 $as_echo_n "(cached) " >&6
29778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29779 /* end confdefs.h. */
29781 #ifdef HAVE_SYS_TYPES_H
29782 #include <sys/types.h>
29784 #ifdef HAVE_NETINET_IN_H
29785 #include <netinet/in.h>
29792 struct sockaddr_in6 sa;
29798 if ac_fn_c_try_compile "$LINENO"; then :
29800 ac_cv_define_sockaddr_in6=yes
29804 ac_cv_define_sockaddr_in6=no
29807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_sockaddr_in6" >&5
29811 $as_echo "$ac_cv_define_sockaddr_in6" >&6; }
29813 if test "$ac_cv_define_sockaddr_in6" = "yes"; then
29814 have_sockaddr_in6=1
29816 have_sockaddr_in6=0
29820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
29821 $as_echo_n "checking for sockaddr_storage... " >&6; }
29822 if ${apr_cv_define_sockaddr_storage+:} false; then :
29823 $as_echo_n "(cached) " >&6
29826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29827 /* end confdefs.h. */
29829 #ifdef HAVE_SYS_TYPES_H
29830 #include <sys/types.h>
29832 #ifdef HAVE_NETINET_IN_H
29833 #include <netinet/in.h>
29839 struct sockaddr_storage sa;
29844 if ac_fn_c_try_compile "$LINENO"; then :
29845 apr_cv_define_sockaddr_storage=yes
29847 apr_cv_define_sockaddr_storage=no
29849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_sockaddr_storage" >&5
29852 $as_echo "$apr_cv_define_sockaddr_storage" >&6; }
29854 if test "$apr_cv_define_sockaddr_storage" = "yes"; then
29862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_un" >&5
29863 $as_echo_n "checking for sockaddr_un... " >&6; }
29864 if ${ac_cv_define_sockaddr_un+:} false; then :
29865 $as_echo_n "(cached) " >&6
29868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29869 /* end confdefs.h. */
29871 #ifdef HAVE_SYS_TYPES_H
29872 #include <sys/types.h>
29874 #ifdef HAVE_NETINET_IN_H
29875 #include <netinet/in.h>
29877 #ifdef HAVE_SYS_UN_H
29878 #include <sys/un.h>
29885 struct sockaddr_un sa;
29891 if ac_fn_c_try_compile "$LINENO"; then :
29893 ac_cv_define_sockaddr_un=yes
29897 ac_cv_define_sockaddr_un=no
29900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_sockaddr_un" >&5
29904 $as_echo "$ac_cv_define_sockaddr_un" >&6; }
29906 if test "$ac_cv_define_sockaddr_un" = "yes"; then
29915 if test "$user_disabled_ipv6" = 1; then
29916 ipv6_result="no -- disabled by user"
29918 if test "x$broken_ipv6" = "x0"; then
29919 if test "x$have_sockaddr_in6" = "x1"; then
29920 if test "x$ac_cv_working_getaddrinfo" = "xyes"; then
29921 if test "x$ac_cv_working_getnameinfo" = "xyes"; then
29923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5
29924 $as_echo_n "checking for working AI_ADDRCONFIG... " >&6; }
29925 if ${apr_cv_gai_addrconfig+:} false; then :
29926 $as_echo_n "(cached) " >&6
29929 if test "$cross_compiling" = yes; then :
29930 apr_cv_gai_addrconfig=no
29932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29933 /* end confdefs.h. */
29935 #ifdef HAVE_NETDB_H
29938 #ifdef HAVE_STRING_H
29939 #include <string.h>
29941 #ifdef HAVE_SYS_TYPES_H
29942 #include <sys/types.h>
29944 #ifdef HAVE_SYS_SOCKET_H
29945 #include <sys/socket.h>
29948 int main(int argc, char **argv) {
29949 struct addrinfo hints, *ai;
29951 memset(&hints, 0, sizeof(hints));
29952 hints.ai_family = AF_UNSPEC;
29953 hints.ai_socktype = SOCK_STREAM;
29954 hints.ai_flags = AI_ADDRCONFIG;
29955 return getaddrinfo("localhost", NULL, &hints, &ai) != 0;
29958 if ac_fn_c_try_run "$LINENO"; then :
29959 apr_cv_gai_addrconfig=yes
29961 apr_cv_gai_addrconfig=no
29963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29964 conftest.$ac_objext conftest.beam conftest.$ac_ext
29968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_gai_addrconfig" >&5
29969 $as_echo "$apr_cv_gai_addrconfig" >&6; }
29971 if test $apr_cv_gai_addrconfig = yes; then
29973 $as_echo "#define HAVE_GAI_ADDRCONFIG 1" >>confdefs.h
29980 ipv6_result="no -- no getnameinfo"
29983 ipv6_result="no -- no working getaddrinfo"
29986 ipv6_result="no -- no sockaddr_in6"
29989 ipv6_result="no -- the platform has known problems supporting IPv6"
29993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if APR supports IPv6" >&5
29994 $as_echo_n "checking if APR supports IPv6... " >&6; }
29995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_result" >&5
29996 $as_echo "$ipv6_result" >&6; }
30000 # Check whether --enable-timedlocks was given.
30001 if test "${enable_timedlocks+set}" = set; then :
30002 enableval=$enable_timedlocks; apr_has_timedlocks="0"
30004 apr_has_timedlocks="1"
30010 # hstrerror is only needed if IPv6 is not enabled,
30011 # so getaddrinfo/gai_strerror are not used.
30012 if test $have_ipv6 = 0; then
30013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
30014 $as_echo_n "checking for library containing hstrerror... " >&6; }
30015 if ${ac_cv_search_hstrerror+:} false; then :
30016 $as_echo_n "(cached) " >&6
30018 ac_func_search_save_LIBS=$LIBS
30019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30020 /* end confdefs.h. */
30022 /* Override any GCC internal prototype to avoid an error.
30023 Use char because int might match the return type of a GCC
30024 builtin and then its argument prototype would still apply. */
30032 return hstrerror ();
30037 for ac_lib in '' resolv; do
30038 if test -z "$ac_lib"; then
30039 ac_res="none required"
30042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30044 if ac_fn_c_try_link "$LINENO"; then :
30045 ac_cv_search_hstrerror=$ac_res
30047 rm -f core conftest.err conftest.$ac_objext \
30049 if ${ac_cv_search_hstrerror+:} false; then :
30053 if ${ac_cv_search_hstrerror+:} false; then :
30056 ac_cv_search_hstrerror=no
30058 rm conftest.$ac_ext
30059 LIBS=$ac_func_search_save_LIBS
30061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
30062 $as_echo "$ac_cv_search_hstrerror" >&6; }
30063 ac_res=$ac_cv_search_hstrerror
30064 if test "$ac_res" != no; then :
30065 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30067 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
30074 for ac_header in langinfo.h
30076 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
30077 if test "x$ac_cv_header_langinfo_h" = xyes; then :
30078 cat >>confdefs.h <<_ACEOF
30079 #define HAVE_LANGINFO_H 1
30086 for ac_func in nl_langinfo
30088 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
30089 if test "x$ac_cv_func_nl_langinfo" = xyes; then :
30090 cat >>confdefs.h <<_ACEOF
30091 #define HAVE_NL_LANGINFO 1
30100 if test -z "$have_unicode_fs"; then
30101 test "x$silent" != "xyes" && echo " setting have_unicode_fs to \"0\""
30102 have_unicode_fs="0"
30108 if test -z "$apr_has_xthread_files"; then
30109 test "x$silent" != "xyes" && echo " setting apr_has_xthread_files to \"0\""
30110 apr_has_xthread_files="0"
30116 if test -z "$apr_procattr_user_set_requires_password"; then
30117 test "x$silent" != "xyes" && echo " setting apr_procattr_user_set_requires_password to \"0\""
30118 apr_procattr_user_set_requires_password="0"
30124 if test -z "$apr_thread_func"; then
30125 test "x$silent" != "xyes" && echo " setting apr_thread_func to \"\""
30132 if test -z "$apr_has_user"; then
30133 test "x$silent" != "xyes" && echo " setting apr_has_user to \"1\""
30140 echo "${nl}Restore user-defined environment settings..."
30143 set X $apr_ste_save_CPPFLAGS
30144 if test ${#} -eq 1; then
30145 EXTRA_CPPFLAGS="$CPPFLAGS"
30148 if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then
30151 EXTRA_CPPFLAGS=`echo "$CPPFLAGS" | sed -e "s%${apr_ste_save_CPPFLAGS}%%"`
30152 CPPFLAGS="$apr_ste_save_CPPFLAGS"
30155 if test "x$silent" != "xyes"; then
30156 echo " restoring CPPFLAGS to \"$CPPFLAGS\""
30157 echo " setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\""
30162 set X $apr_ste_save_CFLAGS
30163 if test ${#} -eq 1; then
30164 EXTRA_CFLAGS="$CFLAGS"
30167 if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then
30170 EXTRA_CFLAGS=`echo "$CFLAGS" | sed -e "s%${apr_ste_save_CFLAGS}%%"`
30171 CFLAGS="$apr_ste_save_CFLAGS"
30174 if test "x$silent" != "xyes"; then
30175 echo " restoring CFLAGS to \"$CFLAGS\""
30176 echo " setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\""
30181 set X $apr_ste_save_LDFLAGS
30182 if test ${#} -eq 1; then
30183 EXTRA_LDFLAGS="$LDFLAGS"
30186 if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then
30189 EXTRA_LDFLAGS=`echo "$LDFLAGS" | sed -e "s%${apr_ste_save_LDFLAGS}%%"`
30190 LDFLAGS="$apr_ste_save_LDFLAGS"
30193 if test "x$silent" != "xyes"; then
30194 echo " restoring LDFLAGS to \"$LDFLAGS\""
30195 echo " setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\""
30200 set X $apr_ste_save_LIBS
30201 if test ${#} -eq 1; then
30205 if test "x$apr_ste_save_LIBS" = "x$LIBS"; then
30208 EXTRA_LIBS=`echo "$LIBS" | sed -e "s%${apr_ste_save_LIBS}%%"`
30209 LIBS="$apr_ste_save_LIBS"
30212 if test "x$silent" != "xyes"; then
30213 echo " restoring LIBS to \"$LIBS\""
30214 echo " setting EXTRA_LIBS to \"$EXTRA_LIBS\""
30219 set X $apr_ste_save_INCLUDES
30220 if test ${#} -eq 1; then
30221 EXTRA_INCLUDES="$INCLUDES"
30224 if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then
30227 EXTRA_INCLUDES=`echo "$INCLUDES" | sed -e "s%${apr_ste_save_INCLUDES}%%"`
30228 INCLUDES="$apr_ste_save_INCLUDES"
30231 if test "x$silent" != "xyes"; then
30232 echo " restoring INCLUDES to \"$INCLUDES\""
30233 echo " setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\""
30254 # Use -no-install or -no-fast-install to link the test
30255 # programs on all platforms but Darwin, where it would cause
30256 # the programs to be linked against installed versions of
30257 # libapr instead of those just built.
30263 LT_NO_INSTALL="-no-fast-install"
30266 LT_NO_INSTALL="-no-install"
30272 # BSD/OS (BSDi) needs to use a different include syntax in the Makefiles
30276 # Check whether they've installed GNU make
30277 if make --version > /dev/null 2>&1; then
30278 INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
30279 INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
30282 INCLUDE_RULES=".include \"$apr_buildout/apr_rules.mk\""
30283 INCLUDE_OUTPUTS=".include \"$apr_srcdir/build-outputs.mk\""
30287 INCLUDE_RULES="include $apr_buildout/apr_rules.mk"
30288 INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk"
30294 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"
30297 if test -d $srcdir/test; then
30298 ac_config_files="$ac_config_files test/Makefile test/internal/Makefile"
30302 dir=include/arch/unix
30303 test -d $dir || $MKDIR $dir
30305 ac_config_commands="$ac_config_commands default"
30308 cat >confcache <<\_ACEOF
30309 # This file is a shell script that caches the results of configure
30310 # tests run on this system so they can be shared between configure
30311 # scripts and configure runs, see configure's option --config-cache.
30312 # It is not useful on other systems. If it contains results you don't
30313 # want to keep, you may remove or edit it.
30315 # config.status only pays attention to the cache file if you give it
30316 # the --recheck option to rerun configure.
30318 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30319 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30320 # following values.
30324 # The following way of writing the cache mishandles newlines in values,
30325 # but we know of no workaround that is simple, portable, and efficient.
30326 # So, we kill variables containing newlines.
30327 # Ultrix sh set writes to stderr and can't be redirected directly,
30328 # and sets the high bit in the cache file unless we assign to the vars.
30330 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30331 eval ac_val=\$$ac_var
30335 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30336 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30339 _ | IFS | as_nl) ;; #(
30340 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30341 *) { eval $ac_var=; unset $ac_var;} ;;
30347 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30348 *${as_nl}ac_space=\ *)
30349 # `set' does not quote correctly, so add quotes: double-quote
30350 # substitution turns \\\\ into \\, and sed turns \\ into \.
30353 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30356 # `set' quotes correctly as required by POSIX, so do not add quotes.
30357 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30366 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30368 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30370 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30371 if test -w "$cache_file"; then
30372 if test "x$cache_file" != "x/dev/null"; then
30373 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30374 $as_echo "$as_me: updating cache $cache_file" >&6;}
30375 if test ! -f "$cache_file" || test -h "$cache_file"; then
30376 cat confcache >"$cache_file"
30378 case $cache_file in #(
30380 mv -f confcache "$cache_file"$$ &&
30381 mv -f "$cache_file"$$ "$cache_file" ;; #(
30383 mv -f confcache "$cache_file" ;;
30388 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30389 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30394 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30395 # Let make expand exec_prefix.
30396 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30398 DEFS=-DHAVE_CONFIG_H
30403 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30404 # 1. Remove the extension, and $U if already installed.
30405 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30406 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30407 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30408 # will be set to the directory where LIBOBJS objects are built.
30409 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30410 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30412 LIBOBJS=$ac_libobjs
30414 LTLIBOBJS=$ac_ltlibobjs
30419 : "${CONFIG_STATUS=./config.status}"
30421 ac_clean_files_save=$ac_clean_files
30422 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30423 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30424 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30426 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30428 # Generated by $as_me.
30429 # Run this file to recreate the current configuration.
30430 # Compiler output produced by configure, useful for debugging
30431 # configure, is in config.log if it exists.
30434 ac_cs_recheck=false
30437 SHELL=\${CONFIG_SHELL-$SHELL}
30440 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30441 ## -------------------- ##
30442 ## M4sh Initialization. ##
30443 ## -------------------- ##
30445 # Be more Bourne compatible
30446 DUALCASE=1; export DUALCASE # for MKS sh
30447 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30450 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30451 # is contrary to our usage. Disable this feature.
30452 alias -g '${1+"$@"}'='"$@"'
30453 setopt NO_GLOB_SUBST
30455 case `(set -o) 2>/dev/null` in #(
30467 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30468 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30469 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30470 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30471 # Prefer a ksh shell builtin over an external printf program on Solaris,
30472 # but without wasting forks for bash or zsh.
30473 if test -z "$BASH_VERSION$ZSH_VERSION" \
30474 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30475 as_echo='print -r --'
30476 as_echo_n='print -rn --'
30477 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30478 as_echo='printf %s\n'
30479 as_echo_n='printf %s'
30481 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30482 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30483 as_echo_n='/usr/ucb/echo -n'
30485 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30486 as_echo_n_body='eval
30490 expr "X$arg" : "X\\(.*\\)$as_nl";
30491 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30493 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30495 export as_echo_n_body
30496 as_echo_n='sh -c $as_echo_n_body as_echo'
30498 export as_echo_body
30499 as_echo='sh -c $as_echo_body as_echo'
30502 # The user is always right.
30503 if test "${PATH_SEPARATOR+set}" != set; then
30505 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30506 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30513 # We need space, tab and new line, in precisely that order. Quoting is
30514 # there to prevent editors from complaining about space-tab.
30515 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30516 # splitting by setting IFS to empty value.)
30519 # Find who we are. Look in the path if we contain no directory separator.
30522 *[\\/]* ) as_myself=$0 ;;
30523 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30524 for as_dir in $PATH
30527 test -z "$as_dir" && as_dir=.
30528 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30534 # We did not find ourselves, most probably we were run as `sh COMMAND'
30535 # in which case we are not to be found in the path.
30536 if test "x$as_myself" = x; then
30539 if test ! -f "$as_myself"; then
30540 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30544 # Unset variables that we do not need and which cause bugs (e.g. in
30545 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30546 # suppresses any "Segmentation fault" message there. '((' could
30547 # trigger a bug in pdksh 5.2.14.
30548 for as_var in BASH_ENV ENV MAIL MAILPATH
30549 do eval test x\${$as_var+set} = xset \
30550 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30563 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30566 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30567 # ----------------------------------------
30568 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30569 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30570 # script with STATUS, using 1 if that was 0.
30573 as_status=$1; test $as_status -eq 0 && as_status=1
30575 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30576 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30578 $as_echo "$as_me: error: $2" >&2
30579 as_fn_exit $as_status
30583 # as_fn_set_status STATUS
30584 # -----------------------
30585 # Set $? to STATUS, without forking.
30586 as_fn_set_status ()
30589 } # as_fn_set_status
30591 # as_fn_exit STATUS
30592 # -----------------
30593 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30597 as_fn_set_status $1
30603 # Portably unset VAR.
30606 { eval $1=; unset $1;}
30608 as_unset=as_fn_unset
30609 # as_fn_append VAR VALUE
30610 # ----------------------
30611 # Append the text in VALUE to the end of the definition contained in VAR. Take
30612 # advantage of any shell optimizations that allow amortized linear growth over
30613 # repeated appends, instead of the typical quadratic growth present in naive
30615 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30616 eval 'as_fn_append ()
30627 # as_fn_arith ARG...
30628 # ------------------
30629 # Perform arithmetic evaluation on the ARGs, and store the result in the
30630 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30631 # must be portable across $(()) and expr.
30632 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30633 eval 'as_fn_arith ()
30640 as_val=`expr "$@" || test $? -eq 1`
30645 if expr a : '\(a\)' >/dev/null 2>&1 &&
30646 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30652 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30653 as_basename=basename
30658 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30664 as_me=`$as_basename -- "$0" ||
30665 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30666 X"$0" : 'X\(//\)$' \| \
30667 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30669 sed '/^.*\/\([^/][^/]*\)\/*$/{
30683 # Avoid depending upon Character Ranges.
30684 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30685 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30686 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30687 as_cr_digits='0123456789'
30688 as_cr_alnum=$as_cr_Letters$as_cr_digits
30690 ECHO_C= ECHO_N= ECHO_T=
30691 case `echo -n x` in #(((((
30693 case `echo 'xy\c'` in
30694 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30696 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30703 rm -f conf$$ conf$$.exe conf$$.file
30704 if test -d conf$$.dir; then
30705 rm -f conf$$.dir/conf$$.file
30708 mkdir conf$$.dir 2>/dev/null
30710 if (echo >conf$$.file) 2>/dev/null; then
30711 if ln -s conf$$.file conf$$ 2>/dev/null; then
30713 # ... but there are two gotchas:
30714 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30715 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30716 # In both cases, we have to default to `cp -pR'.
30717 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30719 elif ln conf$$.file conf$$ 2>/dev/null; then
30727 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30728 rmdir conf$$.dir 2>/dev/null
30733 # Create "$as_dir" as a directory, including parents if necessary.
30738 -*) as_dir=./$as_dir;;
30740 test -d "$as_dir" || eval $as_mkdir_p || {
30744 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30745 *) as_qdir=$as_dir;;
30747 as_dirs="'$as_qdir' $as_dirs"
30748 as_dir=`$as_dirname -- "$as_dir" ||
30749 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30750 X"$as_dir" : 'X\(//\)[^/]' \| \
30751 X"$as_dir" : 'X\(//\)$' \| \
30752 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30753 $as_echo X"$as_dir" |
30754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30758 /^X\(\/\/\)[^/].*/{
30771 test -d "$as_dir" && break
30773 test -z "$as_dirs" || eval "mkdir $as_dirs"
30774 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30778 if mkdir -p . 2>/dev/null; then
30779 as_mkdir_p='mkdir -p "$as_dir"'
30781 test -d ./-p && rmdir ./-p
30786 # as_fn_executable_p FILE
30787 # -----------------------
30788 # Test if FILE is an executable regular file.
30789 as_fn_executable_p ()
30791 test -f "$1" && test -x "$1"
30792 } # as_fn_executable_p
30793 as_test_x='test -x'
30794 as_executable_p=as_fn_executable_p
30796 # Sed expression to map a string onto a valid CPP name.
30797 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30799 # Sed expression to map a string onto a valid variable name.
30800 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30804 ## ----------------------------------- ##
30805 ## Main body of $CONFIG_STATUS script. ##
30806 ## ----------------------------------- ##
30808 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30811 # Save the log message, to keep $0 and so on meaningful, and to
30812 # report actual input values of CONFIG_FILES etc. instead of their
30813 # values after options handling.
30815 This file was extended by $as_me, which was
30816 generated by GNU Autoconf 2.69. Invocation command line was
30818 CONFIG_FILES = $CONFIG_FILES
30819 CONFIG_HEADERS = $CONFIG_HEADERS
30820 CONFIG_LINKS = $CONFIG_LINKS
30821 CONFIG_COMMANDS = $CONFIG_COMMANDS
30824 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30829 case $ac_config_files in *"
30830 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30833 case $ac_config_headers in *"
30834 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30839 # Files that config.status was made for.
30840 config_files="$ac_config_files"
30841 config_headers="$ac_config_headers"
30842 config_commands="$ac_config_commands"
30846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30848 \`$as_me' instantiates files and other configuration actions
30849 from templates according to the current configuration. Unless the files
30850 and actions are specified as TAGs, all are instantiated by default.
30852 Usage: $0 [OPTION]... [TAG]...
30854 -h, --help print this help, then exit
30855 -V, --version print version number and configuration settings, then exit
30856 --config print configuration, then exit
30857 -q, --quiet, --silent
30858 do not print progress messages
30859 -d, --debug don't remove temporary files
30860 --recheck update $as_me by reconfiguring in the same conditions
30861 --file=FILE[:TEMPLATE]
30862 instantiate the configuration file FILE
30863 --header=FILE[:TEMPLATE]
30864 instantiate the configuration header FILE
30866 Configuration files:
30869 Configuration headers:
30872 Configuration commands:
30875 Report bugs to the package provider."
30878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30879 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30882 configured by $0, generated by GNU Autoconf 2.69,
30883 with options \\"\$ac_cs_config\\"
30885 Copyright (C) 2012 Free Software Foundation, Inc.
30886 This config.status script is free software; the Free Software Foundation
30887 gives unlimited permission to copy, distribute and modify it."
30893 test -n "\$AWK" || AWK=awk
30896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30897 # The default lists apply if the user does not specify any file.
30903 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30904 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30908 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30920 # Handling of the options.
30921 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30923 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30924 $as_echo "$ac_cs_version"; exit ;;
30925 --config | --confi | --conf | --con | --co | --c )
30926 $as_echo "$ac_cs_config"; exit ;;
30927 --debug | --debu | --deb | --de | --d | -d )
30929 --file | --fil | --fi | --f )
30932 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30933 '') as_fn_error $? "missing file argument" ;;
30935 as_fn_append CONFIG_FILES " '$ac_optarg'"
30936 ac_need_defaults=false;;
30937 --header | --heade | --head | --hea )
30940 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30942 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30943 ac_need_defaults=false;;
30945 # Conflict between --help and --header
30946 as_fn_error $? "ambiguous option: \`$1'
30947 Try \`$0 --help' for more information.";;
30948 --help | --hel | -h )
30949 $as_echo "$ac_cs_usage"; exit ;;
30950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30951 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30954 # This is an error.
30955 -*) as_fn_error $? "unrecognized option: \`$1'
30956 Try \`$0 --help' for more information." ;;
30958 *) as_fn_append ac_config_targets " $1"
30959 ac_need_defaults=false ;;
30965 ac_configure_extra_args=
30967 if $ac_cs_silent; then
30969 ac_configure_extra_args="$ac_configure_extra_args --silent"
30973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30974 if \$ac_cs_recheck; then
30975 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30977 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30978 CONFIG_SHELL='$SHELL'
30979 export CONFIG_SHELL
30984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30988 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30989 ## Running $as_me. ##
30995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31001 # The HP-UX ksh and POSIX shell print the target directory to stdout
31002 # if CDPATH is set.
31003 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31005 sed_quote_subst='$sed_quote_subst'
31006 double_quote_subst='$double_quote_subst'
31007 delay_variable_subst='$delay_variable_subst'
31008 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
31009 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31010 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31011 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31012 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31013 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31014 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31015 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31016 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31017 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
31018 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31019 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31020 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31021 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31022 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31023 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31024 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31025 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31026 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31027 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31028 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31029 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31030 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31031 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31032 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31033 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31034 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31035 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31036 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31037 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31038 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31039 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31040 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31041 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31042 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31043 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31044 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31045 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31046 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31047 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31048 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31049 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31050 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31051 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31052 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31053 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31054 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31055 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31056 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31057 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31058 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31059 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31060 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31061 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31062 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31063 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31064 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31065 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
31066 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31067 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"`'
31068 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
31069 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31070 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31071 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
31072 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31073 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31074 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31075 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31076 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31077 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31078 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31079 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31080 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31081 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31082 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31083 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31084 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31085 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31086 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31087 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31088 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31089 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31090 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31091 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31092 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31093 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31094 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31095 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31096 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31097 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31098 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31099 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31100 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31101 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31102 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31103 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31104 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31105 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31106 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31107 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31108 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31109 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31110 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31111 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31112 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31113 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31114 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31115 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31116 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31117 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31118 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31119 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31120 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31121 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31122 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31123 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31124 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31125 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31126 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31127 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31128 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31129 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31130 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31131 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31132 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31133 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31134 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31135 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31136 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
31137 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
31138 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31139 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31140 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31141 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31142 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31143 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31146 LTCFLAGS='$LTCFLAGS'
31147 compiler='$compiler_DEFAULT'
31149 # A function that is used when there is no print builtin or printf.
31150 func_fallback_echo ()
31152 eval 'cat <<_LTECHO_EOF
31157 # Quote evaled strings.
31174 deplibs_check_method \
31178 sharedlib_from_linklib_cmd \
31181 archiver_list_spec \
31187 lt_cv_sys_global_symbol_pipe \
31188 lt_cv_sys_global_symbol_to_cdecl \
31189 lt_cv_sys_global_symbol_to_import \
31190 lt_cv_sys_global_symbol_to_c_name_address \
31191 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31192 lt_cv_nm_interface \
31193 nm_file_list_spec \
31194 lt_cv_truncate_bin \
31195 lt_prog_compiler_no_builtin_flag \
31196 lt_prog_compiler_pic \
31197 lt_prog_compiler_wl \
31198 lt_prog_compiler_static \
31199 lt_cv_prog_compiler_c_o \
31208 export_dynamic_flag_spec \
31209 whole_archive_flag_spec \
31210 compiler_needs_object \
31212 allow_undefined_flag \
31213 no_undefined_flag \
31214 hardcode_libdir_flag_spec \
31215 hardcode_libdir_separator \
31219 variables_saved_for_relink \
31221 library_names_spec \
31223 install_override_mode \
31227 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31228 *[\\\\\\\`\\"\\\$]*)
31229 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
31232 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31237 # Double-quote double-evaled strings.
31238 for var in reload_cmds \
31239 old_postinstall_cmds \
31240 old_postuninstall_cmds \
31242 extract_expsyms_cmds \
31243 old_archive_from_new_cmds \
31244 old_archive_from_expsyms_cmds \
31246 archive_expsym_cmds \
31248 module_expsym_cmds \
31249 export_symbols_cmds \
31253 postuninstall_cmds \
31255 sys_lib_search_path_spec \
31256 configure_time_dlsearch_path \
31257 configure_time_lt_sys_library_path; do
31258 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31259 *[\\\\\\\`\\"\\\$]*)
31260 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
31263 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31268 ac_aux_dir='$ac_aux_dir'
31270 # See if we are running on zsh, and set the options that allow our
31271 # commands through without removal of \ escapes INIT.
31272 if test -n "\${ZSH_VERSION+set}"; then
31273 setopt NO_GLOB_SUBST
31286 # Commands run at the beginning of config.status:
31287 APR_SAVE_HEADERS="include/apr.h include/arch/unix/apr_private.h"
31288 APR_MAJOR_VERSION=$APR_MAJOR_VERSION
31291 for apri in \${APR_SAVE_HEADERS}; do
31292 test -r \${apri} && mv \${apri} \${apri}.save
31298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31300 # Handling of arguments.
31301 for ac_config_target in $ac_config_targets
31303 case $ac_config_target in
31304 "include/arch/unix/apr_private.h") CONFIG_HEADERS="$CONFIG_HEADERS include/arch/unix/apr_private.h" ;;
31305 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31306 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31307 "include/apr.h") CONFIG_FILES="$CONFIG_FILES include/apr.h" ;;
31308 "build/apr_rules.mk") CONFIG_FILES="$CONFIG_FILES build/apr_rules.mk" ;;
31309 "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;;
31310 "apr-$APR_MAJOR_VERSION-config") CONFIG_FILES="$CONFIG_FILES apr-$APR_MAJOR_VERSION-config:apr-config.in" ;;
31311 "apr.pc") CONFIG_FILES="$CONFIG_FILES apr.pc" ;;
31312 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
31313 "test/internal/Makefile") CONFIG_FILES="$CONFIG_FILES test/internal/Makefile" ;;
31314 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31316 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31321 # If the user did not use the arguments to specify the items to instantiate,
31322 # then the envvar interface is used. Set only those that are not.
31323 # We use the long form for the default assignment because of an extremely
31324 # bizarre bug on SunOS 4.1.3.
31325 if $ac_need_defaults; then
31326 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31327 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31328 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31331 # Have a temporary directory for convenience. Make it in the build tree
31332 # simply because there is no reason against having it here, and in addition,
31333 # creating and moving files from /tmp can sometimes cause problems.
31334 # Hook for its removal unless debugging.
31335 # Note that there is a small window in which the directory will not be cleaned:
31336 # after its creation but before its name has been assigned to `$tmp'.
31340 trap 'exit_status=$?
31341 : "${ac_tmp:=$tmp}"
31342 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31344 trap 'as_fn_exit 1' 1 2 13 15
31346 # Create a (secure) tmp directory for tmp files.
31349 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31353 tmp=./conf$$-$RANDOM
31354 (umask 077 && mkdir "$tmp")
31355 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31358 # Set up the scripts for CONFIG_FILES section.
31359 # No need to generate them if there are no CONFIG_FILES.
31360 # This happens for instance with `./config.status config.h'.
31361 if test -n "$CONFIG_FILES"; then
31364 ac_cr=`echo X | tr X '\015'`
31365 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31366 # But we know of no other shell where ac_cr would be empty at this
31367 # point, so we can use a bashism as a fallback.
31368 if test "x$ac_cr" = x; then
31369 eval ac_cr=\$\'\\r\'
31371 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31372 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31375 ac_cs_awk_cr=$ac_cr
31378 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31383 echo "cat >conf$$subs.awk <<_ACEOF" &&
31384 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31386 } >conf$$subs.sh ||
31387 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31388 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31390 for ac_last_try in false false false false false :; do
31391 . ./conf$$subs.sh ||
31392 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31394 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31395 if test $ac_delim_n = $ac_delim_num; then
31397 elif $ac_last_try; then
31398 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31400 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31403 rm -f conf$$subs.sh
31405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31406 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31410 s/^/S["/; s/!.*/"]=/
31420 s/\(.\{148\}\)..*/\1/
31422 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31427 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31434 s/\(.\{148\}\)..*/\1/
31436 s/["\\]/\\&/g; s/^/"/; s/$/"/
31440 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31445 ' <conf$$subs.awk | sed '
31450 ' >>$CONFIG_STATUS || ac_write_fail=1
31451 rm -f conf$$subs.awk
31452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31454 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31455 for (key in S) S_is_set[key] = 1
31461 nfields = split(line, field, "@")
31463 len = length(field[1])
31464 for (i = 2; i < nfields; i++) {
31466 keylen = length(key)
31467 if (S_is_set[key]) {
31469 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31470 len += length(value) + length(field[++i])
31481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31482 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31483 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31486 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31487 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31490 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31491 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31492 # trailing colons and then remove the whole line if VPATH becomes empty
31493 # (actually we leave an empty line to preserve line numbers).
31494 if test "x$srcdir" = x.; then
31495 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31514 fi # test -n "$CONFIG_FILES"
31516 # Set up the scripts for CONFIG_HEADERS section.
31517 # No need to generate them if there are no CONFIG_HEADERS.
31518 # This happens for instance with `./config.status Makefile'.
31519 if test -n "$CONFIG_HEADERS"; then
31520 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31524 # Transform confdefs.h into an awk script `defines.awk', embedded as
31525 # here-document in config.status, that substitutes the proper values into
31526 # config.h.in to produce config.h.
31528 # Create a delimiter string that does not exist in confdefs.h, to ease
31529 # handling of long lines.
31531 for ac_last_try in false false :; do
31532 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31533 if test -z "$ac_tt"; then
31535 elif $ac_last_try; then
31536 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31538 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31542 # For the awk script, D is an array of macro values keyed by name,
31543 # likewise P contains macro parameters if any. Preserve backslash
31544 # newline sequences.
31546 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31548 s/.\{148\}/&'"$ac_delim"'/g
31551 s/^[ ]*#[ ]*define[ ][ ]*/ /
31558 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31560 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31564 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31565 D["\1"]=" \3\\\\\\n"\\/p
31567 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31572 s/.\{148\}/&'"$ac_delim"'/g
31577 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31580 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31582 ' <confdefs.h | sed '
31583 s/'"$ac_delim"'/"\\\
31584 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31587 for (key in D) D_is_set[key] = 1
31590 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31592 split(line, arg, " ")
31593 if (arg[1] == "#") {
31597 defundef = substr(arg[1], 2)
31600 split(mac1, mac2, "(") #)
31602 prefix = substr(line, 1, index(line, defundef) - 1)
31603 if (D_is_set[macro]) {
31604 # Preserve the white space surrounding the "#".
31605 print prefix "define", macro P[macro] D[macro]
31608 # Replace #undef with comments. This is necessary, for example,
31609 # in the case of _POSIX_SOURCE, which is predefined and required
31610 # on some systems where configure will not decide to define it.
31611 if (defundef == "undef") {
31612 print "/*", prefix defundef, macro, "*/"
31620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31621 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31622 fi # test -n "$CONFIG_HEADERS"
31625 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31630 :[FHLC]) ac_mode=$ac_tag; continue;;
31632 case $ac_mode$ac_tag in
31634 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31635 :[FH]-) ac_tag=-:-;;
31636 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31653 -) ac_f="$ac_tmp/stdin";;
31654 *) # Look for the file first in the build tree, then in the source tree
31655 # (if the path is not absolute). The absolute path cannot be DOS-style,
31656 # because $ac_f cannot contain `:'.
31660 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31662 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31664 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31665 as_fn_append ac_file_inputs " '$ac_f'"
31668 # Let's still pretend it is `configure' which instantiates (i.e., don't
31669 # use $as_me), people would be surprised to read:
31670 # /* config.h. Generated by config.status. */
31671 configure_input='Generated from '`
31672 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31674 if test x"$ac_file" != x-; then
31675 configure_input="$ac_file. $configure_input"
31676 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31677 $as_echo "$as_me: creating $ac_file" >&6;}
31679 # Neutralize special characters interpreted by sed in replacement strings.
31680 case $configure_input in #(
31681 *\&* | *\|* | *\\* )
31682 ac_sed_conf_input=`$as_echo "$configure_input" |
31683 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31684 *) ac_sed_conf_input=$configure_input;;
31688 *:-:* | *:-) cat >"$ac_tmp/stdin" \
31689 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31694 ac_dir=`$as_dirname -- "$ac_file" ||
31695 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31696 X"$ac_file" : 'X\(//\)[^/]' \| \
31697 X"$ac_file" : 'X\(//\)$' \| \
31698 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31699 $as_echo X"$ac_file" |
31700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31704 /^X\(\/\/\)[^/].*/{
31717 as_dir="$ac_dir"; as_fn_mkdir_p
31721 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31723 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31724 # A ".." for each directory in $ac_dir_suffix.
31725 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31726 case $ac_top_builddir_sub in
31727 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31728 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31731 ac_abs_top_builddir=$ac_pwd
31732 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31733 # for backward compatibility:
31734 ac_top_builddir=$ac_top_build_prefix
31737 .) # We are building in place.
31739 ac_top_srcdir=$ac_top_builddir_sub
31740 ac_abs_top_srcdir=$ac_pwd ;;
31741 [\\/]* | ?:[\\/]* ) # Absolute name.
31742 ac_srcdir=$srcdir$ac_dir_suffix;
31743 ac_top_srcdir=$srcdir
31744 ac_abs_top_srcdir=$srcdir ;;
31745 *) # Relative name.
31746 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31747 ac_top_srcdir=$ac_top_build_prefix$srcdir
31748 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31750 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31760 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31761 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31766 # If the template does not know about datarootdir, expand it.
31767 # FIXME: This hack should be removed a few years after 2.60.
31768 ac_datarootdir_hack=; ac_datarootdir_seen=
31779 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31780 *datarootdir*) ac_datarootdir_seen=yes;;
31781 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31783 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31786 ac_datarootdir_hack='
31787 s&@datadir@&$datadir&g
31788 s&@docdir@&$docdir&g
31789 s&@infodir@&$infodir&g
31790 s&@localedir@&$localedir&g
31791 s&@mandir@&$mandir&g
31792 s&\\\${datarootdir}&$datarootdir&g' ;;
31796 # Neutralize VPATH when `$srcdir' = `.'.
31797 # Shell code in configure.ac might set extrasub.
31798 # FIXME: do we really want to maintain this feature?
31799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31800 ac_sed_extra="$ac_vpsub
31803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31805 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31806 s|@configure_input@|$ac_sed_conf_input|;t t
31807 s&@top_builddir@&$ac_top_builddir_sub&;t t
31808 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31809 s&@srcdir@&$ac_srcdir&;t t
31810 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31811 s&@top_srcdir@&$ac_top_srcdir&;t t
31812 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31813 s&@builddir@&$ac_builddir&;t t
31814 s&@abs_builddir@&$ac_abs_builddir&;t t
31815 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31816 s&@INSTALL@&$ac_INSTALL&;t t
31817 $ac_datarootdir_hack
31819 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
31820 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31822 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31823 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31824 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31825 "$ac_tmp/out"`; test -z "$ac_out"; } &&
31826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31827 which seems to be undefined. Please make sure it is defined" >&5
31828 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31829 which seems to be undefined. Please make sure it is defined" >&2;}
31831 rm -f "$ac_tmp/stdin"
31833 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31834 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31836 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31842 if test x"$ac_file" != x-; then
31844 $as_echo "/* $configure_input */" \
31845 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31846 } >"$ac_tmp/config.h" \
31847 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31848 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31849 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31850 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31853 mv "$ac_tmp/config.h" "$ac_file" \
31854 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31857 $as_echo "/* $configure_input */" \
31858 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31859 || as_fn_error $? "could not create -" "$LINENO" 5
31863 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31864 $as_echo "$as_me: executing $ac_file commands" >&6;}
31869 case $ac_file$ac_mode in
31872 # See if we are running on zsh, and set the options that allow our
31873 # commands through without removal of \ escapes.
31874 if test -n "${ZSH_VERSION+set}"; then
31875 setopt NO_GLOB_SUBST
31879 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31882 cat <<_LT_EOF >> "$cfgfile"
31884 # Generated automatically by $as_me ($PACKAGE) $VERSION
31885 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31886 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31888 # Provide generalized library-building support services.
31889 # Written by Gordon Matzigkeit, 1996
31891 # Copyright (C) 2014 Free Software Foundation, Inc.
31892 # This is free software; see the source for copying conditions. There is NO
31893 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
31895 # GNU Libtool is free software; you can redistribute it and/or modify
31896 # it under the terms of the GNU General Public License as published by
31897 # the Free Software Foundation; either version 2 of of the License, or
31898 # (at your option) any later version.
31900 # As a special exception to the GNU General Public License, if you
31901 # distribute this file as part of a program or library that is built
31902 # using GNU Libtool, you may include this file under the same
31903 # distribution terms that you use for the rest of that program.
31905 # GNU Libtool is distributed in the hope that it will be useful, but
31906 # WITHOUT ANY WARRANTY; without even the implied warranty of
31907 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31908 # GNU General Public License for more details.
31910 # You should have received a copy of the GNU General Public License
31911 # along with this program. If not, see <http://www.gnu.org/licenses/>.
31914 # The names of the tagged configurations supported by this script.
31917 # Configured defaults for sys_lib_dlsearch_path munging.
31918 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
31920 # ### BEGIN LIBTOOL CONFIG
31922 # Assembler program.
31925 # DLL creation program.
31926 DLLTOOL=$lt_DLLTOOL
31928 # Object dumper program.
31929 OBJDUMP=$lt_OBJDUMP
31931 # Which release of libtool.m4 was used?
31932 macro_version=$macro_version
31933 macro_revision=$macro_revision
31935 # Whether or not to build shared libraries.
31936 build_libtool_libs=$enable_shared
31938 # Whether or not to build static libraries.
31939 build_old_libs=$enable_static
31941 # What type of objects to build.
31944 # Whether or not to optimize for fast installation.
31945 fast_install=$enable_fast_install
31947 # Shared archive member basename,for filename based shared library versioning on AIX.
31948 shared_archive_member_spec=$shared_archive_member_spec
31950 # Shell to use when invoking shell scripts.
31953 # An echo program that protects backslashes.
31956 # The PATH separator for the build system.
31957 PATH_SEPARATOR=$lt_PATH_SEPARATOR
31960 host_alias=$host_alias
31964 # The build system.
31965 build_alias=$build_alias
31969 # A sed program that does not truncate output.
31972 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31973 Xsed="\$SED -e 1s/^X//"
31975 # A grep program that handles long lines.
31981 # A literal string matcher.
31984 # A BSD- or MS-compatible name lister.
31987 # Whether we need soft or hard links.
31990 # What is the maximum length of a command?
31991 max_cmd_len=$max_cmd_len
31993 # Object file suffix (normally "o").
31996 # Executable file suffix (normally "").
31999 # whether the shell understands "unset".
32002 # turn spaces into newlines.
32005 # turn newlines into spaces.
32008 # convert \$build file names to \$host format.
32009 to_host_file_cmd=$lt_cv_to_host_file_cmd
32011 # convert \$build files to toolchain format.
32012 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32014 # Method to check whether dependent libraries are shared objects.
32015 deplibs_check_method=$lt_deplibs_check_method
32017 # Command to use when deplibs_check_method = "file_magic".
32018 file_magic_cmd=$lt_file_magic_cmd
32020 # How to find potential files when deplibs_check_method = "file_magic".
32021 file_magic_glob=$lt_file_magic_glob
32023 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32024 want_nocaseglob=$lt_want_nocaseglob
32026 # Command to associate shared and link libraries.
32027 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32032 # Flags to create an archive.
32033 AR_FLAGS=$lt_AR_FLAGS
32035 # How to feed a file listing to the archiver.
32036 archiver_list_spec=$lt_archiver_list_spec
32038 # A symbol stripping program.
32041 # Commands used to install an old-style archive.
32043 old_postinstall_cmds=$lt_old_postinstall_cmds
32044 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32046 # Whether to use a lock for old archive extraction.
32047 lock_old_archive_extraction=$lock_old_archive_extraction
32052 # LTCC compiler flags.
32053 LTCFLAGS=$lt_CFLAGS
32055 # Take the output of nm and produce a listing of raw symbols and C names.
32056 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32058 # Transform the output of nm in a proper C declaration.
32059 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32061 # Transform the output of nm into a list of symbols to manually relocate.
32062 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
32064 # Transform the output of nm in a C name address pair.
32065 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32067 # Transform the output of nm in a C name address pair when lib prefix is needed.
32068 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32070 # The name lister interface.
32071 nm_interface=$lt_lt_cv_nm_interface
32073 # Specify filename containing input files for \$NM.
32074 nm_file_list_spec=$lt_nm_file_list_spec
32076 # The root where to search for dependent libraries,and where our libraries should be installed.
32077 lt_sysroot=$lt_sysroot
32079 # Command to truncate a binary pipe.
32080 lt_truncate_bin=$lt_lt_cv_truncate_bin
32082 # The name of the directory that contains temporary libtool files.
32085 # Used to examine libraries when file_magic_cmd begins with "file".
32086 MAGIC_CMD=$MAGIC_CMD
32088 # Must we lock files when doing compilation?
32089 need_locks=$lt_need_locks
32092 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32094 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32095 DSYMUTIL=$lt_DSYMUTIL
32097 # Tool to change global to local symbols on Mac OS X.
32100 # Tool to manipulate fat objects and archives on Mac OS X.
32103 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32106 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32107 OTOOL64=$lt_OTOOL64
32109 # Old archive suffix (normally "a").
32112 # Shared library suffix (normally ".so").
32113 shrext_cmds=$lt_shrext_cmds
32115 # The commands to extract the exported symbol list from a shared archive.
32116 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32118 # Variables whose values should be saved in libtool wrapper scripts and
32119 # restored at link time.
32120 variables_saved_for_relink=$lt_variables_saved_for_relink
32122 # Do we need the "lib" prefix for modules?
32123 need_lib_prefix=$need_lib_prefix
32125 # Do we need a version for libraries?
32126 need_version=$need_version
32128 # Library versioning type.
32129 version_type=$version_type
32131 # Shared library runtime path variable.
32132 runpath_var=$runpath_var
32134 # Shared library path variable.
32135 shlibpath_var=$shlibpath_var
32137 # Is shlibpath searched before the hard-coded library search path?
32138 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32140 # Format of library name prefix.
32141 libname_spec=$lt_libname_spec
32143 # List of archive names. First name is the real one, the rest are links.
32144 # The last name is the one that the linker finds with -lNAME
32145 library_names_spec=$lt_library_names_spec
32147 # The coded name of the library, if different from the real name.
32148 soname_spec=$lt_soname_spec
32150 # Permission mode override for installation of shared libraries.
32151 install_override_mode=$lt_install_override_mode
32153 # Command to use after installation of a shared archive.
32154 postinstall_cmds=$lt_postinstall_cmds
32156 # Command to use after uninstallation of a shared archive.
32157 postuninstall_cmds=$lt_postuninstall_cmds
32159 # Commands used to finish a libtool library installation in a directory.
32160 finish_cmds=$lt_finish_cmds
32162 # As "finish_cmds", except a single script fragment to be evaled but
32164 finish_eval=$lt_finish_eval
32166 # Whether we should hardcode library paths into libraries.
32167 hardcode_into_libs=$hardcode_into_libs
32169 # Compile-time system search path for libraries.
32170 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32172 # Detected run-time system search path for libraries.
32173 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
32175 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
32176 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
32178 # Whether dlopen is supported.
32179 dlopen_support=$enable_dlopen
32181 # Whether dlopen of programs is supported.
32182 dlopen_self=$enable_dlopen_self
32184 # Whether dlopen of statically linked programs is supported.
32185 dlopen_self_static=$enable_dlopen_self_static
32187 # Commands to strip libraries.
32188 old_striplib=$lt_old_striplib
32189 striplib=$lt_striplib
32192 # The linker used to build libraries.
32195 # How to create reloadable object files.
32196 reload_flag=$lt_reload_flag
32197 reload_cmds=$lt_reload_cmds
32199 # Commands used to build an old-style archive.
32200 old_archive_cmds=$lt_old_archive_cmds
32202 # A language specific compiler.
32205 # Is the compiler the GNU compiler?
32208 # Compiler flag to turn off builtin functions.
32209 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32211 # Additional compiler flags for building library objects.
32212 pic_flag=$lt_lt_prog_compiler_pic
32214 # How to pass a linker flag through the compiler.
32215 wl=$lt_lt_prog_compiler_wl
32217 # Compiler flag to prevent dynamic linking.
32218 link_static_flag=$lt_lt_prog_compiler_static
32220 # Does compiler simultaneously support -c and -o options?
32221 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32223 # Whether or not to add -lc for building shared libraries.
32224 build_libtool_need_lc=$archive_cmds_need_lc
32226 # Whether or not to disallow shared libs when runtime libs are static.
32227 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32229 # Compiler flag to allow reflexive dlopens.
32230 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32232 # Compiler flag to generate shared objects directly from archives.
32233 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32235 # Whether the compiler copes with passing no objects directly.
32236 compiler_needs_object=$lt_compiler_needs_object
32238 # Create an old-style archive from a shared archive.
32239 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32241 # Create a temporary old-style archive to link instead of a shared archive.
32242 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32244 # Commands used to build a shared archive.
32245 archive_cmds=$lt_archive_cmds
32246 archive_expsym_cmds=$lt_archive_expsym_cmds
32248 # Commands used to build a loadable module if different from building
32249 # a shared archive.
32250 module_cmds=$lt_module_cmds
32251 module_expsym_cmds=$lt_module_expsym_cmds
32253 # Whether we are building with GNU ld or not.
32254 with_gnu_ld=$lt_with_gnu_ld
32256 # Flag that allows shared libraries with undefined symbols to be built.
32257 allow_undefined_flag=$lt_allow_undefined_flag
32259 # Flag that enforces no undefined symbols.
32260 no_undefined_flag=$lt_no_undefined_flag
32262 # Flag to hardcode \$libdir into a binary during linking.
32263 # This must work even if \$libdir does not exist
32264 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32266 # Whether we need a single "-rpath" flag with a separated argument.
32267 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32269 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
32270 # DIR into the resulting binary.
32271 hardcode_direct=$hardcode_direct
32273 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
32274 # DIR into the resulting binary and the resulting library dependency is
32275 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
32276 # library is relocated.
32277 hardcode_direct_absolute=$hardcode_direct_absolute
32279 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32280 # into the resulting binary.
32281 hardcode_minus_L=$hardcode_minus_L
32283 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32284 # into the resulting binary.
32285 hardcode_shlibpath_var=$hardcode_shlibpath_var
32287 # Set to "yes" if building a shared library automatically hardcodes DIR
32288 # into the library and all subsequent libraries and executables linked
32290 hardcode_automatic=$hardcode_automatic
32292 # Set to yes if linker adds runtime paths of dependent libraries
32293 # to runtime path list.
32294 inherit_rpath=$inherit_rpath
32296 # Whether libtool must link a program against all its dependency libraries.
32297 link_all_deplibs=$link_all_deplibs
32299 # Set to "yes" if exported symbols are required.
32300 always_export_symbols=$always_export_symbols
32302 # The commands to list exported symbols.
32303 export_symbols_cmds=$lt_export_symbols_cmds
32305 # Symbols that should not be listed in the preloaded symbols.
32306 exclude_expsyms=$lt_exclude_expsyms
32308 # Symbols that must always be exported.
32309 include_expsyms=$lt_include_expsyms
32311 # Commands necessary for linking programs (against libraries) with templates.
32312 prelink_cmds=$lt_prelink_cmds
32314 # Commands necessary for finishing linking programs.
32315 postlink_cmds=$lt_postlink_cmds
32317 # Specify filename containing input files.
32318 file_list_spec=$lt_file_list_spec
32320 # How to hardcode a shared library path into an executable.
32321 hardcode_action=$hardcode_action
32323 # ### END LIBTOOL CONFIG
32327 cat <<'_LT_EOF' >> "$cfgfile"
32329 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
32331 # func_munge_path_list VARIABLE PATH
32332 # -----------------------------------
32333 # VARIABLE is name of variable containing _space_ separated list of
32334 # directories to be munged by the contents of PATH, which is string
32337 # string "DIR[ DIR]" will be prepended to VARIABLE
32339 # string "DIR[ DIR]" will be appended to VARIABLE
32340 # "DIRP[:DIRP]::[DIRA:]DIRA"
32341 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
32342 # "DIRA[ DIRA]" will be appended to VARIABLE
32344 # VARIABLE will be replaced by "DIR[ DIR]"
32345 func_munge_path_list ()
32351 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
32354 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
32357 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
32358 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
32361 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
32367 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
32368 func_cc_basename ()
32370 for cc_temp in $*""; do
32372 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
32373 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
32378 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
32382 # ### END FUNCTIONS SHARED WITH CONFIGURE
32388 cat <<\_LT_EOF >> "$cfgfile"
32389 # AIX sometimes has problems with the GCC collect2 program. For some
32390 # reason, if we set the COLLECT_NAMES environment variable, the problems
32391 # vanish in a puff of smoke.
32392 if test set != "${COLLECT_NAMES+set}"; then
32394 export COLLECT_NAMES
32401 ltmain=$ac_aux_dir/ltmain.sh
32404 # We use sed instead of cat because bash on DJGPP gets confused if
32405 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32406 # text mode, it properly converts lines to CR/LF. This bash problem
32407 # is reportedly fixed, but why not run on old versions too?
32408 sed '$q' "$ltmain" >> "$cfgfile" \
32409 || (rm -f "$cfgfile"; exit 1)
32411 mv -f "$cfgfile" "$ofile" ||
32412 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32417 # Commands run at the end of config.status:
32418 for i in $APR_SAVE_HEADERS; do
32419 if cmp -s $i $i.save 2>/dev/null; then
32421 { $as_echo "$as_me:${as_lineno-$LINENO}: $i is unchanged" >&5
32422 $as_echo "$as_me: $i is unchanged" >&6;}
32426 chmod +x apr-$APR_MAJOR_VERSION-config
32435 ac_clean_files=$ac_clean_files_save
32437 test $ac_write_fail = 0 ||
32438 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32441 # configure is writing to config.log, and then calls config.status.
32442 # config.status does its own redirection, appending to config.log.
32443 # Unfortunately, on DOS this fails, as config.log is still kept open
32444 # by configure, so config.status won't be able to write to it; its
32445 # output is simply discarded. So we exec the FD to /dev/null,
32446 # effectively closing config.log, so it can be properly (re)opened and
32447 # appended to by config.status. When coming back to configure, we
32448 # need to make the FD available again.
32449 if test "$no_create" != yes; then
32451 ac_config_status_args=
32452 test "$silent" = yes &&
32453 ac_config_status_args="$ac_config_status_args --quiet"
32455 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32457 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32458 # would make configure fail if this is the last instruction.
32459 $ac_cs_success || as_fn_exit 1
32461 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32463 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}