2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.69 for libevent 2.0.21-stable-dev.
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 @%:@(
171 set -o posix ;; @%:@(
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=.
223 case $as_dir in @%:@(
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 @S|@? to STATUS, without forking.
308 } @%:@ as_fn_set_status
310 @%:@ as_fn_exit STATUS
311 @%:@ -----------------
312 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 @%:@ Create "@S|@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
380 @%:@ implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
393 @%:@ as_fn_arith ARG...
394 @%:@ ------------------
395 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
396 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
397 @%:@ must be portable across @S|@(()) 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 @S|@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.
588 PACKAGE_NAME='libevent'
589 PACKAGE_TARNAME='libevent'
590 PACKAGE_VERSION='2.0.21-stable-dev'
591 PACKAGE_STRING='libevent 2.0.21-stable-dev'
595 ac_unique_file="evdns.c"
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='am__EXEEXT_FALSE
635 INSTALL_LIBEVENT_FALSE
636 INSTALL_LIBEVENT_TRUE
655 DEVPOLL_BACKEND_FALSE
661 BUILD_WITH_NO_UNDEFINED_FALSE
662 BUILD_WITH_NO_UNDEFINED_TRUE
736 INSTALL_STRIP_PROGRAM
778 program_transform_name
791 enable_option_checking
793 enable_dependency_tracking
795 enable_thread_support
796 enable_malloc_replacement
799 enable_libevent_install
800 enable_libevent_regress
801 enable_function_sections
810 ac_precious_vars='build_alias
821 # Initialize some variables set by options.
823 ac_init_version=false
824 ac_unrecognized_opts=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
835 program_transform_name=s,x,x,
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
881 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886 # Accept the important Cygnus configure options, so we can diagnose typos.
888 case $ac_dashdash$ac_option in
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
910 cache_file=config.cache ;;
912 -datadir | --datadir | --datadi | --datad)
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
924 -disable-* | --disable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
938 eval enable_$ac_useropt=no ;;
940 -docdir | --docdir | --docdi | --doc | --do)
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 -enable-* | --enable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error $? "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
964 eval enable_$ac_useropt=\$ac_optarg ;;
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
979 -help | --help | --hel | --he | -h)
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 htmldir=$ac_optarg ;;
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1009 -libdir | --libdir | --libdi | --libd)
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1100 -psdir | --psdir | --psdi | --psd | --ps)
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 sbindir=$ac_optarg ;;
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 sharedstatedir=$ac_optarg ;;
1126 -site | --site | --sit)
1128 -site=* | --site=* | --sit=*)
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1168 eval with_$ac_useropt=\$ac_optarg ;;
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1184 eval with_$ac_useropt=no ;;
1187 # Obsolete; use --with-x.
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1204 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205 Try \`$0 --help' for more information"
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 case $ac_envvar in #(
1212 '' | [0-9]* | *[!_$as_cr_alnum]* )
1213 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1229 if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 as_fn_error $? "missing argument to $ac_option"
1234 if test -n "$ac_unrecognized_opts"; then
1235 case $enable_option_checking in
1237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1242 # Check all directory arguments for consistency.
1243 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir
1248 eval ac_val=\$$ac_var
1249 # Remove trailing slashes.
1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253 eval $ac_var=\$ac_val;;
1255 # Be sure to have absolute directory names.
1257 [\\/$]* | ?:[\\/]* ) continue;;
1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1263 # There might be people who depend on the old broken behavior: `$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1268 target=$target_alias
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x; then
1272 if test "x$build_alias" = x; then
1273 cross_compiling=maybe
1274 elif test "x$build_alias" != "x$host_alias"; then
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282 test "$silent" = yes && exec 6>/dev/null
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 as_fn_error $? "working directory cannot be determined"
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 as_fn_error $? "pwd does not report name of working directory"
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295 ac_srcdir_defaulted=yes
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 $as_echo X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1325 ac_srcdir_defaulted=no
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1353 # Report the --help message.
1355 if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1359 \`configure' configures libevent 2.0.21-stable-dev to adapt to many kinds of systems.
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE. See below for descriptions of some of the useful variables.
1366 Defaults for the options are specified in brackets.
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking ...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379 Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 @<:@@S|@ac_default_prefix@:>@
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1390 For better control, use the options below.
1392 Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
1407 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/libevent@:>@
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1417 --program-prefix=PREFIX prepend PREFIX to installed program names
1418 --program-suffix=SUFFIX append SUFFIX to installed program names
1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1427 if test -n "$ac_init_help"; then
1428 case $ac_init_help in
1429 short | recursive ) echo "Configuration of libevent 2.0.21-stable-dev:";;
1434 --disable-option-checking ignore unrecognized --enable/--with options
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --enable-silent-rules less verbose build output (undo: "make V=1")
1438 --disable-silent-rules verbose build output (undo: "make V=0")
1439 --enable-dependency-tracking
1440 do not reject slow dependency extractors
1441 --disable-dependency-tracking
1442 speeds up one-time build
1443 --enable-gcc-warnings enable verbose warnings with GCC
1444 --disable-thread-support
1445 disable support for threading
1446 --disable-malloc-replacement
1447 disable support for replacing the memory mgt
1449 --disable-openssl disable support for openssl encryption
1450 --disable-debug-mode disable support for running in debug mode
1451 --disable-libevent-install, disable installation of libevent
1453 --enable-libevent-regress, enable regress in make check
1455 --enable-function-sections, make static library allow smaller binaries with --gc-sections
1457 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1458 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1459 --enable-fast-install@<:@=PKGS@:>@
1460 optimize for fast installation @<:@default=yes@:>@
1461 --disable-libtool-lock avoid locking (might break parallel builds)
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1466 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
1468 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1469 --with-sysroot=DIR Search for dependent libraries within DIR
1470 (or the compiler's sysroot if not specified).
1472 Some influential environment variables:
1473 CC C compiler command
1474 CFLAGS C compiler flags
1475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1476 nonstandard directory <lib dir>
1477 LIBS libraries to pass to the linker, e.g. -l<library>
1478 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1479 you have headers in a nonstandard directory <include dir>
1482 Use these variables to override the choices made by `configure' or to help
1483 it to find libraries and programs with nonstandard names/locations.
1485 Report bugs to the package provider.
1490 if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
1492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493 test -d "$ac_dir" ||
1494 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509 ac_abs_top_builddir=$ac_pwd
1510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511 # for backward compatibility:
1512 ac_top_builddir=$ac_top_build_prefix
1515 .) # We are building in place.
1517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
1520 ac_srcdir=$srcdir$ac_dir_suffix;
1521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1537 $SHELL "$ac_srcdir/configure" --help=recursive
1539 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 cd "$ac_pwd" || { ac_status=$?; break; }
1545 test -n "$ac_init_help" && exit $ac_status
1546 if $ac_init_version; then
1548 libevent configure 2.0.21-stable-dev
1549 generated by GNU Autoconf 2.69
1551 Copyright (C) 2012 Free Software Foundation, Inc.
1552 This configure script is free software; the Free Software Foundation
1553 gives unlimited permission to copy, distribute and modify it.
1558 ## ------------------------ ##
1559 ## Autoconf initialization. ##
1560 ## ------------------------ ##
1562 @%:@ ac_fn_c_try_compile LINENO
1563 @%:@ --------------------------
1564 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_compile ()
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext
1569 if { { ac_try="$ac_compile"
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_compile") 2>conftest.err
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest.$ac_objext; then :
1590 $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596 as_fn_set_status $ac_retval
1598 } @%:@ ac_fn_c_try_compile
1600 @%:@ ac_fn_c_try_cpp LINENO
1601 @%:@ ----------------------
1602 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if { { ac_try="$ac_cpp conftest.$ac_ext"
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } > conftest.i && {
1622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1635 } @%:@ ac_fn_c_try_cpp
1637 @%:@ ac_fn_c_try_link LINENO
1638 @%:@ -----------------------
1639 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 rm -f conftest.$ac_objext conftest$ac_exeext
1644 if { { ac_try="$ac_link"
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_link") 2>conftest.err
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && {
1660 test -z "$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 } && test -s conftest$ac_exeext && {
1663 test "$cross_compiling" = yes ||
1664 test -x conftest$ac_exeext
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1673 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1674 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1675 # interfere with the next link command; also delete a directory that is
1676 # left behind by Apple's compiler. We do this before executing the actions.
1677 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1681 } @%:@ ac_fn_c_try_link
1683 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1684 @%:@ -------------------------------------------------------
1685 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1686 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1687 ac_fn_c_check_header_compile ()
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if eval \${$3+:} false; then :
1693 $as_echo_n "(cached) " >&6
1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696 /* end confdefs.h. */
1700 if ac_fn_c_try_compile "$LINENO"; then :
1705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709 $as_echo "$ac_res" >&6; }
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 } @%:@ ac_fn_c_check_header_compile
1714 @%:@ ac_fn_c_try_run LINENO
1715 @%:@ ----------------------
1716 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1717 @%:@ that executables *can* be run.
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_link"
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_link") 2>&5
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1732 { { case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_try") 2>&5
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; }; }; then :
1744 $as_echo "$as_me: program exited with status $ac_status" >&5
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1748 ac_retval=$ac_status
1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1754 } @%:@ ac_fn_c_try_run
1756 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1757 @%:@ ----------------------------------
1758 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1759 ac_fn_c_check_func ()
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1769 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1771 #define $2 innocuous_$2
1773 /* System header to define __stub macros and hopefully few prototypes,
1774 which can conflict with char $2 (); below.
1775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1776 <limits.h> exists even on freestanding compilers. */
1779 # include <limits.h>
1781 # include <assert.h>
1786 /* Override any GCC internal prototype to avoid an error.
1787 Use char because int might match the return type of a GCC
1788 builtin and then its argument prototype would still apply. */
1793 /* The GNU C library defines this for functions which it implements
1794 to always fail with ENOSYS. Some functions are actually named
1795 something starting with __ and the normal name is an alias. */
1796 #if defined __stub_$2 || defined __stub___$2
1808 if ac_fn_c_try_link "$LINENO"; then :
1813 rm -f core conftest.err conftest.$ac_objext \
1814 conftest$ac_exeext conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 } @%:@ ac_fn_c_check_func
1823 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1824 @%:@ -------------------------------------------------------
1825 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1826 @%:@ the include files in INCLUDES and setting the cache variable VAR
1828 ac_fn_c_check_header_mongrel ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 if eval \${$3+:} false; then :
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1841 # Is the header compilable?
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1843 $as_echo_n "checking $2 usability... " >&6; }
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1849 if ac_fn_c_try_compile "$LINENO"; then :
1850 ac_header_compiler=yes
1852 ac_header_compiler=no
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1856 $as_echo "$ac_header_compiler" >&6; }
1858 # Is the header present?
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1860 $as_echo_n "checking $2 presence... " >&6; }
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1865 if ac_fn_c_try_cpp "$LINENO"; then :
1866 ac_header_preproc=yes
1868 ac_header_preproc=no
1870 rm -f conftest.err conftest.i conftest.$ac_ext
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1872 $as_echo "$ac_header_preproc" >&6; }
1874 # So? What about this header?
1875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1878 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1880 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1884 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1886 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1888 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1890 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1892 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if eval \${$3+:} false; then :
1898 $as_echo_n "(cached) " >&6
1900 eval "$3=\$ac_header_compiler"
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908 } @%:@ ac_fn_c_check_header_mongrel
1910 @%:@ ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1911 @%:@ ---------------------------------------------
1912 @%:@ Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1914 ac_fn_c_check_decl ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 as_decl_name=`echo $2|sed 's/ *(.*//'`
1918 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1920 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1921 if eval \${$3+:} false; then :
1922 $as_echo_n "(cached) " >&6
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1930 @%:@ifndef $as_decl_name
1931 @%:@ifdef __cplusplus
1932 (void) $as_decl_use;
1934 (void) $as_decl_name;
1942 if ac_fn_c_try_compile "$LINENO"; then :
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 } @%:@ ac_fn_c_check_decl
1956 @%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1957 @%:@ --------------------------------------------
1958 @%:@ Tries to find the compile-time value of EXPR in a program that includes
1959 @%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
1961 ac_fn_c_compute_int ()
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 if test "$cross_compiling" = yes; then
1965 # Depending upon the size, compute the lo and hi bounds.
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1972 static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
1973 test_array @<:@0@:>@ = 0;
1974 return test_array @<:@0@:>@;
1980 if ac_fn_c_try_compile "$LINENO"; then :
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1989 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
1990 test_array @<:@0@:>@ = 0;
1991 return test_array @<:@0@:>@;
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_hi=$ac_mid; break
2000 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2001 if test $ac_lo -le $ac_mid; then
2005 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2016 static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
2017 test_array @<:@0@:>@ = 0;
2018 return test_array @<:@0@:>@;
2024 if ac_fn_c_try_compile "$LINENO"; then :
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2033 static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
2034 test_array @<:@0@:>@ = 0;
2035 return test_array @<:@0@:>@;
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 ac_lo=$ac_mid; break
2044 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2045 if test $ac_mid -le $ac_hi; then
2049 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 # Binary search between lo and hi bounds.
2060 while test "x$ac_lo" != "x$ac_hi"; do
2061 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2068 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2069 test_array @<:@0@:>@ = 0;
2070 return test_array @<:@0@:>@;
2076 if ac_fn_c_try_compile "$LINENO"; then :
2079 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 case $ac_lo in @%:@((
2084 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2091 static long int longval () { return $2; }
2092 static unsigned long int ulongval () { return $2; }
2093 @%:@include <stdio.h>
2094 @%:@include <stdlib.h>
2099 FILE *f = fopen ("conftest.val", "w");
2104 long int i = longval ();
2107 fprintf (f, "%ld", i);
2111 unsigned long int i = ulongval ();
2114 fprintf (f, "%lu", i);
2116 /* Do not output a trailing newline, as this causes \r\n confusion
2117 on some platforms. */
2118 return ferror (f) || fclose (f) != 0;
2124 if ac_fn_c_try_run "$LINENO"; then :
2125 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2130 conftest.$ac_objext conftest.beam conftest.$ac_ext
2134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2135 as_fn_set_status $ac_retval
2137 } @%:@ ac_fn_c_compute_int
2139 @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2140 @%:@ -------------------------------------------
2141 @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
2142 @%:@ variable VAR accordingly.
2143 ac_fn_c_check_type ()
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2147 $as_echo_n "checking for $2... " >&6; }
2148 if eval \${$3+:} false; then :
2149 $as_echo_n "(cached) " >&6
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2177 if ac_fn_c_try_compile "$LINENO"; then :
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 } @%:@ ac_fn_c_check_type
2193 @%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2194 @%:@ ----------------------------------------------------
2195 @%:@ Tries to find if the field MEMBER exists in type AGGR, after including
2196 @%:@ INCLUDES, setting cache variable VAR accordingly.
2197 ac_fn_c_check_member ()
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2201 $as_echo_n "checking for $2.$3... " >&6; }
2202 if eval \${$4+:} false; then :
2203 $as_echo_n "(cached) " >&6
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2218 if ac_fn_c_try_compile "$LINENO"; then :
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2228 if (sizeof ac_aggr.$3)
2234 if ac_fn_c_try_compile "$LINENO"; then :
2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2245 $as_echo "$ac_res" >&6; }
2246 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248 } @%:@ ac_fn_c_check_member
2249 cat >config.log <<_ACEOF
2250 This file contains any messages produced by compilers while
2251 running configure, to aid debugging if configure makes a mistake.
2253 It was created by libevent $as_me 2.0.21-stable-dev, which was
2254 generated by GNU Autoconf 2.69. Invocation command line was
2266 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2267 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2268 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2269 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2270 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2272 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2273 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2275 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2276 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2277 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2278 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2279 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2280 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2281 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 test -z "$as_dir" && as_dir=.
2290 $as_echo "PATH: $as_dir"
2306 # Keep a trace of the command line.
2307 # Strip out --no-create and --no-recursion so they do not pile up.
2308 # Strip out --silent because we don't want to record it for future runs.
2309 # Also quote any args containing shell meta-characters.
2310 # Make two passes to allow for proper duplicate-argument suppression.
2314 ac_must_keep_next=false
2320 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2322 | -silent | --silent | --silen | --sile | --sil)
2325 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2328 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2330 as_fn_append ac_configure_args1 " '$ac_arg'"
2331 if test $ac_must_keep_next = true; then
2332 ac_must_keep_next=false # Got value, back to normal.
2335 *=* | --config-cache | -C | -disable-* | --disable-* \
2336 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2337 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2338 | -with-* | --with-* | -without-* | --without-* | --x)
2339 case "$ac_configure_args0 " in
2340 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2343 -* ) ac_must_keep_next=true ;;
2346 as_fn_append ac_configure_args " '$ac_arg'"
2351 { ac_configure_args0=; unset ac_configure_args0;}
2352 { ac_configure_args1=; unset ac_configure_args1;}
2354 # When interrupted or exit'd, cleanup temporary files, and complete
2355 # config.log. We remove comments because anyway the quotes in there
2356 # would cause problems or look ugly.
2357 # WARNING: Use '\'' to represent an apostrophe within the trap.
2358 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2359 trap 'exit_status=$?
2360 # Save into config.log some information that might help in debugging.
2364 $as_echo "## ---------------- ##
2365 ## Cache variables. ##
2366 ## ---------------- ##"
2368 # The following way of writing the cache mishandles newlines in values,
2370 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2371 eval ac_val=\$$ac_var
2375 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2376 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2379 _ | IFS | as_nl) ;; #(
2380 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2381 *) { eval $ac_var=; unset $ac_var;} ;;
2386 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2387 *${as_nl}ac_space=\ *)
2389 "s/'\''/'\''\\\\'\'''\''/g;
2390 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2393 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2400 $as_echo "## ----------------- ##
2401 ## Output variables. ##
2402 ## ----------------- ##"
2404 for ac_var in $ac_subst_vars
2406 eval ac_val=\$$ac_var
2408 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410 $as_echo "$ac_var='\''$ac_val'\''"
2414 if test -n "$ac_subst_files"; then
2415 $as_echo "## ------------------- ##
2416 ## File substitutions. ##
2417 ## ------------------- ##"
2419 for ac_var in $ac_subst_files
2421 eval ac_val=\$$ac_var
2423 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2425 $as_echo "$ac_var='\''$ac_val'\''"
2430 if test -s confdefs.h; then
2431 $as_echo "## ----------- ##
2438 test "$ac_signal" != 0 &&
2439 $as_echo "$as_me: caught signal $ac_signal"
2440 $as_echo "$as_me: exit $exit_status"
2442 rm -f core *.core core.conftest.* &&
2443 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2446 for ac_signal in 1 2 13 15; do
2447 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2452 rm -f -r conftest* confdefs.h
2454 $as_echo "/* confdefs.h */" > confdefs.h
2456 # Predefined preprocessor variables.
2458 cat >>confdefs.h <<_ACEOF
2459 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2462 cat >>confdefs.h <<_ACEOF
2463 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2466 cat >>confdefs.h <<_ACEOF
2467 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2470 cat >>confdefs.h <<_ACEOF
2471 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2474 cat >>confdefs.h <<_ACEOF
2475 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2478 cat >>confdefs.h <<_ACEOF
2479 @%:@define PACKAGE_URL "$PACKAGE_URL"
2483 # Let the site file select an alternate cache file if it wants to.
2484 # Prefer an explicitly selected file to automatically selected ones.
2487 if test -n "$CONFIG_SITE"; then
2488 # We do not want a PATH search for config.site.
2489 case $CONFIG_SITE in @%:@((
2490 -*) ac_site_file1=./$CONFIG_SITE;;
2491 */*) ac_site_file1=$CONFIG_SITE;;
2492 *) ac_site_file1=./$CONFIG_SITE;;
2494 elif test "x$prefix" != xNONE; then
2495 ac_site_file1=$prefix/share/config.site
2496 ac_site_file2=$prefix/etc/config.site
2498 ac_site_file1=$ac_default_prefix/share/config.site
2499 ac_site_file2=$ac_default_prefix/etc/config.site
2501 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2503 test "x$ac_site_file" = xNONE && continue
2504 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2506 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2507 sed 's/^/| /' "$ac_site_file" >&5
2509 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2511 as_fn_error $? "failed to load site script $ac_site_file
2512 See \`config.log' for more details" "$LINENO" 5; }
2516 if test -r "$cache_file"; then
2517 # Some versions of bash will fail to source /dev/null (special files
2518 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2519 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2521 $as_echo "$as_me: loading cache $cache_file" >&6;}
2523 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2524 *) . "./$cache_file";;
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2529 $as_echo "$as_me: creating cache $cache_file" >&6;}
2533 # Check that the precious variables saved in the cache have kept the same
2535 ac_cache_corrupted=false
2536 for ac_var in $ac_precious_vars; do
2537 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2538 eval ac_new_set=\$ac_env_${ac_var}_set
2539 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2540 eval ac_new_val=\$ac_env_${ac_var}_value
2541 case $ac_old_set,$ac_new_set in
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2544 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2545 ac_cache_corrupted=: ;;
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2548 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2549 ac_cache_corrupted=: ;;
2552 if test "x$ac_old_val" != "x$ac_new_val"; then
2553 # differences in whitespace do not lead to failure.
2554 ac_old_val_w=`echo x $ac_old_val`
2555 ac_new_val_w=`echo x $ac_new_val`
2556 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2558 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2559 ac_cache_corrupted=:
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2562 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2563 eval $ac_var=\$ac_old_val
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2566 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2568 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2571 # Pass precious variables to config.status.
2572 if test "$ac_new_set" = set; then
2574 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2575 *) ac_arg=$ac_var=$ac_new_val ;;
2577 case " $ac_configure_args " in
2578 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2579 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2583 if $ac_cache_corrupted; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2587 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2588 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2590 ## -------------------- ##
2591 ## Main body of script. ##
2592 ## -------------------- ##
2595 ac_cpp='$CPP $CPPFLAGS'
2596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602 am__api_version='1.14'
2605 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2606 if test -f "$ac_dir/install-sh"; then
2608 ac_install_sh="$ac_aux_dir/install-sh -c"
2610 elif test -f "$ac_dir/install.sh"; then
2612 ac_install_sh="$ac_aux_dir/install.sh -c"
2614 elif test -f "$ac_dir/shtool"; then
2616 ac_install_sh="$ac_aux_dir/shtool install -c"
2620 if test -z "$ac_aux_dir"; then
2621 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2624 # These three variables are undocumented and unsupported,
2625 # and are intended to be withdrawn in a future Autoconf release.
2626 # They can cause serious problems if a builder's source tree is in a directory
2627 # whose full name contains unusual characters.
2628 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2629 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2630 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2633 # Find a good install program. We prefer a C program (faster),
2634 # so one script is as good as another. But avoid the broken or
2635 # incompatible versions:
2636 # SysV /etc/install, /usr/sbin/install
2637 # SunOS /usr/etc/install
2638 # IRIX /sbin/install
2640 # AmigaOS /C/install, which installs bootblocks on floppy discs
2641 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2642 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2643 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2644 # OS/2's system install, which has a completely different semantic
2645 # ./install, which can be erroneously created by make from ./install.sh.
2646 # Reject install programs that cannot install multiple files.
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2648 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2649 if test -z "$INSTALL"; then
2650 if ${ac_cv_path_install+:} false; then :
2651 $as_echo_n "(cached) " >&6
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 test -z "$as_dir" && as_dir=.
2658 # Account for people who put trailing slashes in PATH elements.
2659 case $as_dir/ in @%:@((
2660 ./ | .// | /[cC]/* | \
2661 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2662 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2665 # OSF1 and SCO ODT 3.0 have their own names for install.
2666 # Don't use installbsd from OSF since it installs stuff as root
2668 for ac_prog in ginstall scoinst install; do
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2671 if test $ac_prog = install &&
2672 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2673 # AIX install. It has an incompatible calling convention.
2675 elif test $ac_prog = install &&
2676 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2677 # program-specific install script used by HP pwplus--don't use.
2680 rm -rf conftest.one conftest.two conftest.dir
2681 echo one > conftest.one
2682 echo two > conftest.two
2684 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2685 test -s conftest.one && test -s conftest.two &&
2686 test -s conftest.dir/conftest.one &&
2687 test -s conftest.dir/conftest.two
2689 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2702 rm -rf conftest.one conftest.two conftest.dir
2705 if test "${ac_cv_path_install+set}" = set; then
2706 INSTALL=$ac_cv_path_install
2708 # As a last resort, use the slow shell script. Don't cache a
2709 # value for INSTALL within a source directory, because that will
2710 # break other packages using the cache if that directory is
2711 # removed, or if the value is a relative name.
2712 INSTALL=$ac_install_sh
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2716 $as_echo "$INSTALL" >&6; }
2718 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2719 # It thinks the first close brace ends the variable substitution.
2720 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2722 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2724 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2727 $as_echo_n "checking whether build environment is sane... " >&6; }
2728 # Reject unsafe characters in $srcdir or the absolute working directory
2729 # name. Accept space and tab only in the latter.
2733 *[\\\"\#\$\&\'\`$am_lf]*)
2734 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2737 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2738 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2741 # Do 'set' in a subshell so we don't clobber the current shell's
2742 # arguments. Must try -L first in case configure is actually a
2743 # symlink; some systems play weird games with the mod time of symlinks
2744 # (eg FreeBSD returns the mod time of the symlink's containing
2748 for am_try in 1 2; do
2749 echo "timestamp, slept: $am_has_slept" > conftest.file
2750 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2751 if test "$*" = "X"; then
2753 set X `ls -t "$srcdir/configure" conftest.file`
2755 if test "$*" != "X $srcdir/configure conftest.file" \
2756 && test "$*" != "X conftest.file $srcdir/configure"; then
2758 # If neither matched, then we have a broken ls. This can happen
2759 # if, for instance, CONFIG_SHELL is bash and it inherits a
2760 # broken ls alias from the environment. This has actually
2761 # happened. Such a system could not be considered "sane".
2762 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2763 alias in your environment" "$LINENO" 5
2765 if test "$2" = conftest.file || test $am_try -eq 2; then
2772 test "$2" = conftest.file
2778 as_fn_error $? "newly created file is older than distributed files!
2779 Check your system clock" "$LINENO" 5
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2782 $as_echo "yes" >&6; }
2783 # If we didn't sleep, we still need to ensure time stamps of config.status and
2784 # generated files are strictly newer.
2786 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2793 test "$program_prefix" != NONE &&
2794 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2795 # Use a double $ so make ignores it.
2796 test "$program_suffix" != NONE &&
2797 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2798 # Double any \ or $.
2799 # By default was `s,x,x', remove it if useless.
2800 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2801 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2803 # expand $ac_aux_dir to an absolute path
2804 am_aux_dir=`cd $ac_aux_dir && pwd`
2806 if test x"${MISSING+set}" != xset; then
2809 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2811 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2814 # Use eval to expand $SHELL
2815 if eval "$MISSING --is-lightweight"; then
2816 am_missing_run="$MISSING "
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2820 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2823 if test x"${install_sh}" != xset; then
2826 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2828 install_sh="\${SHELL} $am_aux_dir/install-sh"
2832 # Installed binaries are usually stripped using 'strip' when the user
2833 # run "make install-strip". However 'strip' might not be the right
2834 # tool to use in cross-compilation environments, therefore Automake
2835 # will honor the 'STRIP' environment variable to overrule this program.
2836 if test "$cross_compiling" != no; then
2837 if test -n "$ac_tool_prefix"; then
2838 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2839 set dummy ${ac_tool_prefix}strip; ac_word=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if ${ac_cv_prog_STRIP+:} false; then :
2843 $as_echo_n "(cached) " >&6
2845 if test -n "$STRIP"; then
2846 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 STRIP=$ac_cv_prog_STRIP
2866 if test -n "$STRIP"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2868 $as_echo "$STRIP" >&6; }
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2876 if test -z "$ac_cv_prog_STRIP"; then
2878 # Extract the first word of "strip", so it can be a program name with args.
2879 set dummy strip; ac_word=$2
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2883 $as_echo_n "(cached) " >&6
2885 if test -n "$ac_ct_STRIP"; then
2886 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_ac_ct_STRIP="strip"
2896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2906 if test -n "$ac_ct_STRIP"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2908 $as_echo "$ac_ct_STRIP" >&6; }
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 $as_echo "no" >&6; }
2914 if test "x$ac_ct_STRIP" = x; then
2917 case $cross_compiling:$ac_tool_warned in
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2921 ac_tool_warned=yes ;;
2926 STRIP="$ac_cv_prog_STRIP"
2930 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2933 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2934 if test -z "$MKDIR_P"; then
2935 if ${ac_cv_path_mkdir+:} false; then :
2936 $as_echo_n "(cached) " >&6
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2942 test -z "$as_dir" && as_dir=.
2943 for ac_prog in mkdir gmkdir; do
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2946 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2947 'mkdir (GNU coreutils) '* | \
2948 'mkdir (coreutils) '* | \
2949 'mkdir (fileutils) '4.1*)
2950 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2960 test -d ./--version && rmdir ./--version
2961 if test "${ac_cv_path_mkdir+set}" = set; then
2962 MKDIR_P="$ac_cv_path_mkdir -p"
2964 # As a last resort, use the slow shell script. Don't cache a
2965 # value for MKDIR_P within a source directory, because that will
2966 # break other packages using the cache if that directory is
2967 # removed, or if the value is a relative name.
2968 MKDIR_P="$ac_install_sh -d"
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2972 $as_echo "$MKDIR_P" >&6; }
2974 for ac_prog in gawk mawk nawk awk
2976 # Extract the first word of "$ac_prog", so it can be a program name with args.
2977 set dummy $ac_prog; ac_word=$2
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if ${ac_cv_prog_AWK+:} false; then :
2981 $as_echo_n "(cached) " >&6
2983 if test -n "$AWK"; then
2984 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993 ac_cv_prog_AWK="$ac_prog"
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 if test -n "$AWK"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3006 $as_echo "$AWK" >&6; }
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3013 test -n "$AWK" && break
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3017 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3019 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3020 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3021 $as_echo_n "(cached) " >&6
3023 cat >conftest.make <<\_ACEOF
3026 @echo '@@@%%%=$(MAKE)=@@@%%%'
3028 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3029 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3031 eval ac_cv_prog_make_${ac_make}_set=yes;;
3033 eval ac_cv_prog_make_${ac_make}_set=no;;
3037 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3039 $as_echo "yes" >&6; }
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 $as_echo "no" >&6; }
3044 SET_MAKE="MAKE=${MAKE-make}"
3047 rm -rf .tst 2>/dev/null
3048 mkdir .tst 2>/dev/null
3049 if test -d .tst; then
3054 rmdir .tst 2>/dev/null
3056 @%:@ Check whether --enable-silent-rules was given.
3057 if test "${enable_silent_rules+set}" = set; then :
3058 enableval=$enable_silent_rules;
3061 case $enable_silent_rules in @%:@ (((
3062 yes) AM_DEFAULT_VERBOSITY=0;;
3063 no) AM_DEFAULT_VERBOSITY=1;;
3064 *) AM_DEFAULT_VERBOSITY=1;;
3066 am_make=${MAKE-make}
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3068 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3069 if ${am_cv_make_support_nested_variables+:} false; then :
3070 $as_echo_n "(cached) " >&6
3072 if $as_echo 'TRUE=$(BAR$(V))
3078 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3079 am_cv_make_support_nested_variables=yes
3081 am_cv_make_support_nested_variables=no
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3085 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3086 if test $am_cv_make_support_nested_variables = yes; then
3088 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3090 AM_V=$AM_DEFAULT_VERBOSITY
3091 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3095 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3096 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3097 # is not polluted with repeated "-I."
3098 am__isrc=' -I$(srcdir)'
3099 # test to see if srcdir already configured
3100 if test -f $srcdir/config.status; then
3101 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3105 # test whether we have cygpath
3106 if test -z "$CYGPATH_W"; then
3107 if (cygpath --version) >/dev/null 2>/dev/null; then
3108 CYGPATH_W='cygpath -w'
3115 # Define the identity of the package.
3117 VERSION='2.0.21-stable-dev'
3120 cat >>confdefs.h <<_ACEOF
3121 @%:@define PACKAGE "$PACKAGE"
3125 cat >>confdefs.h <<_ACEOF
3126 @%:@define VERSION "$VERSION"
3129 # Some tools Automake needs.
3131 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3134 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3137 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3140 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3143 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3145 # For better backward compatibility. To be removed once Automake 1.9.x
3146 # dies out for good. For more background, see:
3147 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3148 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3149 mkdir_p='$(MKDIR_P)'
3151 # We need awk for the "check" target. The system "awk" is bad on
3153 # Always define AMTAR for backward compatibility. Yes, it's still used
3154 # in the wild :-( We should find a proper way to deprecate it ...
3158 # We'll loop over all known methods to create a tar archive until one works.
3159 _am_tools='gnutar pax cpio none'
3161 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3168 # POSIX will say in a future version that running "rm -f" with no argument
3169 # is OK; and we want to be able to make that assumption in our Makefile
3170 # recipes. So use an aggressive probe to check that the usage we want is
3171 # actually supported "in the wild" to an acceptable degree.
3172 # See automake bug#10828.
3173 # To make any issue more visible, cause the running configure to be aborted
3174 # by default if the 'rm' program in use doesn't match our expectations; the
3175 # user can still override this though.
3176 if rm -f && rm -fr && rm -rf; then : OK; else
3180 Your 'rm' program seems unable to run without file operands specified
3181 on the command line, even when the '-f' option is present. This is contrary
3182 to the behaviour of most rm programs out there, and not conforming with
3183 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3185 Please tell bug-automake@gnu.org about your system, including the value
3186 of your $PATH and any error possibly output before this message. This
3187 can help us improve future automake versions.
3190 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3191 echo 'Configuration will proceed anyway, since you have set the' >&2
3192 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3196 Aborting the configuration process, to ensure you take notice of the issue.
3198 You can download and install GNU coreutils to get an 'rm' implementation
3199 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3201 If you want to complete the configuration process using your problematic
3202 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3203 to "yes", and re-run configure.
3206 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3209 ac_config_headers="$ac_config_headers config.h"
3212 $as_echo "@%:@define NUMERIC_VERSION 0x02001501" >>confdefs.h
3215 if test "$prefix" = "NONE"; then
3219 # Make sure we can run config.sub.
3220 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3221 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3224 $as_echo_n "checking build system type... " >&6; }
3225 if ${ac_cv_build+:} false; then :
3226 $as_echo_n "(cached) " >&6
3228 ac_build_alias=$build_alias
3229 test "x$ac_build_alias" = x &&
3230 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3231 test "x$ac_build_alias" = x &&
3232 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3233 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3234 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3238 $as_echo "$ac_cv_build" >&6; }
3239 case $ac_cv_build in
3241 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3244 ac_save_IFS=$IFS; IFS='-'
3250 # Remember, the first character of IFS is used to create $*,
3251 # except with old shells:
3254 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3258 $as_echo_n "checking host system type... " >&6; }
3259 if ${ac_cv_host+:} false; then :
3260 $as_echo_n "(cached) " >&6
3262 if test "x$host_alias" = x; then
3263 ac_cv_host=$ac_cv_build
3265 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3266 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3271 $as_echo "$ac_cv_host" >&6; }
3274 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3277 ac_save_IFS=$IFS; IFS='-'
3283 # Remember, the first character of IFS is used to create $*,
3284 # except with old shells:
3287 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3294 CFLAGS="$CFLAGS -D_OSF_SOURCE"
3299 ac_cpp='$CPP $CPPFLAGS'
3300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3303 if test -n "$ac_tool_prefix"; then
3304 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3305 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if ${ac_cv_prog_CC+:} false; then :
3309 $as_echo_n "(cached) " >&6
3311 if test -n "$CC"; then
3312 ac_cv_prog_CC="$CC" # Let the user override the test.
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 if test -n "$CC"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334 $as_echo "$CC" >&6; }
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3342 if test -z "$ac_cv_prog_CC"; then
3344 # Extract the first word of "gcc", so it can be a program name with args.
3345 set dummy gcc; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3349 $as_echo_n "(cached) " >&6
3351 if test -n "$ac_ct_CC"; then
3352 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361 ac_cv_prog_ac_ct_CC="gcc"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3372 if test -n "$ac_ct_CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3374 $as_echo "$ac_ct_CC" >&6; }
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3380 if test "x$ac_ct_CC" = x; then
3383 case $cross_compiling:$ac_tool_warned in
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3387 ac_tool_warned=yes ;;
3395 if test -z "$CC"; then
3396 if test -n "$ac_tool_prefix"; then
3397 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3398 set dummy ${ac_tool_prefix}cc; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if ${ac_cv_prog_CC+:} false; then :
3402 $as_echo_n "(cached) " >&6
3404 if test -n "$CC"; then
3405 ac_cv_prog_CC="$CC" # Let the user override the test.
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 test -z "$as_dir" && as_dir=.
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3414 ac_cv_prog_CC="${ac_tool_prefix}cc"
3415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 if test -n "$CC"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3427 $as_echo "$CC" >&6; }
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3436 if test -z "$CC"; then
3437 # Extract the first word of "cc", so it can be a program name with args.
3438 set dummy cc; ac_word=$2
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if ${ac_cv_prog_CC+:} false; then :
3442 $as_echo_n "(cached) " >&6
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3455 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3456 ac_prog_rejected=yes
3460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 if test $ac_prog_rejected = yes; then
3468 # We found a bogon in the path, so make sure we never use it.
3469 set dummy $ac_cv_prog_CC
3471 if test $@%:@ != 0; then
3472 # We chose a different compiler from the bogus one.
3473 # However, it has the same basename, so the bogon will be chosen
3474 # first if we set CC to just the basename; use the full file name.
3476 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3482 if test -n "$CC"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3484 $as_echo "$CC" >&6; }
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3492 if test -z "$CC"; then
3493 if test -n "$ac_tool_prefix"; then
3494 for ac_prog in cl.exe
3496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if ${ac_cv_prog_CC+:} false; then :
3501 $as_echo_n "(cached) " >&6
3503 if test -n "$CC"; then
3504 ac_cv_prog_CC="$CC" # Let the user override the test.
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 if test -n "$CC"; then
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3526 $as_echo "$CC" >&6; }
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3533 test -n "$CC" && break
3536 if test -z "$CC"; then
3538 for ac_prog in cl.exe
3540 # Extract the first word of "$ac_prog", so it can be a program name with args.
3541 set dummy $ac_prog; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3545 $as_echo_n "(cached) " >&6
3547 if test -n "$ac_ct_CC"; then
3548 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_prog_ac_ct_CC="$ac_prog"
3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3568 if test -n "$ac_ct_CC"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3570 $as_echo "$ac_ct_CC" >&6; }
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3577 test -n "$ac_ct_CC" && break
3580 if test "x$ac_ct_CC" = x; then
3583 case $cross_compiling:$ac_tool_warned in
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3587 ac_tool_warned=yes ;;
3596 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598 as_fn_error $? "no acceptable C compiler found in \$PATH
3599 See \`config.log' for more details" "$LINENO" 5; }
3601 # Provide some information about the compiler.
3602 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3605 for ac_option in --version -v -V -qversion; do
3606 { { ac_try="$ac_compiler $ac_option >&5"
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3615 if test -s conftest.err; then
3617 ... rest of stderr output deleted ...
3618 10q' conftest.err >conftest.er1
3619 cat conftest.er1 >&5
3621 rm -f conftest.er1 conftest.err
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3637 ac_clean_files_save=$ac_clean_files
3638 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3639 # Try to create an executable without -o first, disregard a.out.
3640 # It will help us diagnose broken compilers, and finding out an intuition
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3643 $as_echo_n "checking whether the C compiler works... " >&6; }
3644 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3646 # The possible output files:
3647 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3650 for ac_file in $ac_files
3653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3654 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3659 if { { ac_try="$ac_link_default"
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665 $as_echo "$ac_try_echo"; } >&5
3666 (eval "$ac_link_default") 2>&5
3668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669 test $ac_status = 0; }; then :
3670 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3671 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3672 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3673 # so that the user can short-circuit this test for compilers unknown to
3675 for ac_file in $ac_files ''
3677 test -f "$ac_file" || continue
3679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3682 # We found the default executable, but exeext='' is most
3686 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3688 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3690 # We set ac_cv_exeext here because the later test for it is not
3691 # safe: cross compilers may not add the suffix if given an `-o'
3692 # argument, so we may need to know it at that point already.
3693 # Even if this section looks crufty: it has the advantage of
3700 test "$ac_cv_exeext" = no && ac_cv_exeext=
3705 if test -z "$ac_file"; then :
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3708 $as_echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3713 as_fn_error 77 "C compiler cannot create executables
3714 See \`config.log' for more details" "$LINENO" 5; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3717 $as_echo "yes" >&6; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3720 $as_echo_n "checking for C compiler default output file name... " >&6; }
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3722 $as_echo "$ac_file" >&6; }
3723 ac_exeext=$ac_cv_exeext
3725 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3726 ac_clean_files=$ac_clean_files_save
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3728 $as_echo_n "checking for suffix of executables... " >&6; }
3729 if { { ac_try="$ac_link"
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735 $as_echo "$ac_try_echo"; } >&5
3736 (eval "$ac_link") 2>&5
3738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739 test $ac_status = 0; }; then :
3740 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3741 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3742 # work properly (i.e., refer to `conftest.exe'), while it won't with
3744 for ac_file in conftest.exe conftest conftest.*; do
3745 test -f "$ac_file" || continue
3747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3748 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3756 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3757 See \`config.log' for more details" "$LINENO" 5; }
3759 rm -f conftest conftest$ac_cv_exeext
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3761 $as_echo "$ac_cv_exeext" >&6; }
3763 rm -f conftest.$ac_ext
3764 EXEEXT=$ac_cv_exeext
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3768 @%:@include <stdio.h>
3772 FILE *f = fopen ("conftest.out", "w");
3773 return ferror (f) || fclose (f) != 0;
3779 ac_clean_files="$ac_clean_files conftest.out"
3780 # Check that the compiler produces executables we can run. If not, either
3781 # the compiler is broken, or we cross compile.
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3783 $as_echo_n "checking whether we are cross compiling... " >&6; }
3784 if test "$cross_compiling" != yes; then
3785 { { ac_try="$ac_link"
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791 $as_echo "$ac_try_echo"; } >&5
3792 (eval "$ac_link") 2>&5
3794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795 test $ac_status = 0; }
3796 if { ac_try='./conftest$ac_cv_exeext'
3797 { { case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_try") 2>&5
3805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3806 test $ac_status = 0; }; }; then
3809 if test "$cross_compiling" = maybe; then
3812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3814 as_fn_error $? "cannot run C compiled programs.
3815 If you meant to cross compile, use \`--host'.
3816 See \`config.log' for more details" "$LINENO" 5; }
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3821 $as_echo "$cross_compiling" >&6; }
3823 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3824 ac_clean_files=$ac_clean_files_save
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3826 $as_echo_n "checking for suffix of object files... " >&6; }
3827 if ${ac_cv_objext+:} false; then :
3828 $as_echo_n "(cached) " >&6
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3841 rm -f conftest.o conftest.obj
3842 if { { ac_try="$ac_compile"
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3848 $as_echo "$ac_try_echo"; } >&5
3849 (eval "$ac_compile") 2>&5
3851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3852 test $ac_status = 0; }; then :
3853 for ac_file in conftest.o conftest.obj conftest.*; do
3854 test -f "$ac_file" || continue;
3856 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3857 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3862 $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 as_fn_error $? "cannot compute suffix of object files: cannot compile
3868 See \`config.log' for more details" "$LINENO" 5; }
3870 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3873 $as_echo "$ac_cv_objext" >&6; }
3874 OBJEXT=$ac_cv_objext
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3877 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3878 if ${ac_cv_c_compiler_gnu+:} false; then :
3879 $as_echo_n "(cached) " >&6
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3895 if ac_fn_c_try_compile "$LINENO"; then :
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3905 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3906 if test $ac_compiler_gnu = yes; then
3911 ac_test_CFLAGS=${CFLAGS+set}
3912 ac_save_CFLAGS=$CFLAGS
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3914 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3915 if ${ac_cv_prog_cc_g+:} false; then :
3916 $as_echo_n "(cached) " >&6
3918 ac_save_c_werror_flag=$ac_c_werror_flag
3919 ac_c_werror_flag=yes
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3933 if ac_fn_c_try_compile "$LINENO"; then :
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h. */
3948 if ac_fn_c_try_compile "$LINENO"; then :
3951 ac_c_werror_flag=$ac_save_c_werror_flag
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3964 if ac_fn_c_try_compile "$LINENO"; then :
3967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972 ac_c_werror_flag=$ac_save_c_werror_flag
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3975 $as_echo "$ac_cv_prog_cc_g" >&6; }
3976 if test "$ac_test_CFLAGS" = set; then
3977 CFLAGS=$ac_save_CFLAGS
3978 elif test $ac_cv_prog_cc_g = yes; then
3979 if test "$GCC" = yes; then
3985 if test "$GCC" = yes; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3992 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3993 if ${ac_cv_prog_cc_c89+:} false; then :
3994 $as_echo_n "(cached) " >&6
3996 ac_cv_prog_cc_c89=no
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4003 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4004 struct buf { int x; };
4005 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4006 static char *e (p, i)
4012 static char *f (char * (*g) (char **, int), char **p, ...)
4017 s = g (p, va_arg (v,int));
4022 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4023 function prototypes and stuff, but not '\xHH' hex character constants.
4024 These don't provoke an error unfortunately, instead are silently treated
4025 as 'x'. The following induces an error, until -std is added to get
4026 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4027 array size at least. It's necessary to write '\x00'==0 to get something
4028 that's true only with -std. */
4029 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4031 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4032 inside strings and character constants. */
4034 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4036 int test (int i, double x);
4037 struct s1 {int (*f) (int a);};
4038 struct s2 {int (*f) (double a);};
4039 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4045 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4050 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4051 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4053 CC="$ac_save_CC $ac_arg"
4054 if ac_fn_c_try_compile "$LINENO"; then :
4055 ac_cv_prog_cc_c89=$ac_arg
4057 rm -f core conftest.err conftest.$ac_objext
4058 test "x$ac_cv_prog_cc_c89" != "xno" && break
4060 rm -f conftest.$ac_ext
4065 case "x$ac_cv_prog_cc_c89" in
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4068 $as_echo "none needed" >&6; } ;;
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4071 $as_echo "unsupported" >&6; } ;;
4073 CC="$CC $ac_cv_prog_cc_c89"
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4075 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4077 if test "x$ac_cv_prog_cc_c89" != xno; then :
4082 ac_cpp='$CPP $CPPFLAGS'
4083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4088 ac_cpp='$CPP $CPPFLAGS'
4089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4093 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4094 if ${am_cv_prog_cc_c_o+:} false; then :
4095 $as_echo_n "(cached) " >&6
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4108 # Make sure it works both with $CC and with simple cc.
4109 # Following AC_PROG_CC_C_O, we do the test twice because some
4110 # compilers refuse to overwrite an existing .o file with -o,
4111 # though they will create one.
4112 am_cv_prog_cc_c_o=yes
4114 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4115 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } \
4119 && test -f conftest2.$ac_objext; then
4122 am_cv_prog_cc_c_o=no
4126 rm -f core conftest*
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4130 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4131 if test "$am_cv_prog_cc_c_o" != yes; then
4132 # Losing compiler, so override with the script.
4133 # FIXME: It is wrong to rewrite CC.
4134 # But if we don't then we get into trouble of one sort or another.
4135 # A longer-term fix would be to have automake use am__CC in this case,
4136 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4137 CC="$am_aux_dir/compile $CC"
4140 ac_cpp='$CPP $CPPFLAGS'
4141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145 DEPDIR="${am__leading_dot}deps"
4147 ac_config_commands="$ac_config_commands depfiles"
4150 am_make=${MAKE-make}
4151 cat > confinc << 'END'
4153 @echo this is the am__doit target
4156 # If we don't find an include directive, just comment out the code.
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4158 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4162 # First try GNU make style include.
4163 echo "include confinc" > confmf
4164 # Ignore all kinds of additional output from 'make'.
4165 case `$am_make -s -f confmf 2> /dev/null` in #(
4166 *the\ am__doit\ target*)
4172 # Now try BSD make style include.
4173 if test "$am__include" = "#"; then
4174 echo '.include "confinc"' > confmf
4175 case `$am_make -s -f confmf 2> /dev/null` in #(
4176 *the\ am__doit\ target*)
4177 am__include=.include
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4186 $as_echo "$_am_result" >&6; }
4187 rm -f confinc confmf
4189 @%:@ Check whether --enable-dependency-tracking was given.
4190 if test "${enable_dependency_tracking+set}" = set; then :
4191 enableval=$enable_dependency_tracking;
4194 if test "x$enable_dependency_tracking" != xno; then
4195 am_depcomp="$ac_aux_dir/depcomp"
4199 if test "x$enable_dependency_tracking" != xno; then
4209 depcc="$CC" am_compiler_list=
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4212 $as_echo_n "checking dependency style of $depcc... " >&6; }
4213 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4214 $as_echo_n "(cached) " >&6
4216 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4217 # We make a subdir and do the tests there. Otherwise we can end up
4218 # making bogus files that we don't know about and never remove. For
4219 # instance it was reported that on HP-UX the gcc test will end up
4220 # making a dummy file named 'D' -- because '-MD' means "put the output
4224 # Copy depcomp to subdir because otherwise we won't find it if we're
4225 # using a relative directory.
4226 cp "$am_depcomp" conftest.dir
4228 # We will build objects and dependencies in a subdirectory because
4229 # it helps to detect inapplicable dependency modes. For instance
4230 # both Tru64's cc and ICC support -MD to output dependencies as a
4231 # side effect of compilation, but ICC will put the dependencies in
4232 # the current directory while Tru64 will put them in the object
4236 am_cv_CC_dependencies_compiler_type=none
4237 if test "$am_compiler_list" = ""; then
4238 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4241 case " $depcc " in #(
4242 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4245 for depmode in $am_compiler_list; do
4246 # Setup a source with many dependencies, because some compilers
4247 # like to wrap large dependency lists on column 80 (with \), and
4248 # we should not choose a depcomp mode which is confused by this.
4250 # We need to recreate these files for each test, as the compiler may
4251 # overwrite some of them when testing with obscure command lines.
4252 # This happens at least with the AIX C compiler.
4254 for i in 1 2 3 4 5 6; do
4255 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4256 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4257 # Solaris 10 /bin/sh.
4258 echo '/* dummy */' > sub/conftst$i.h
4260 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4262 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4263 # mode. It turns out that the SunPro C++ compiler does not properly
4264 # handle '-M -o', and we need to detect this. Also, some Intel
4265 # versions had trouble with output in subdirs.
4266 am__obj=sub/conftest.${OBJEXT-o}
4267 am__minus_obj="-o $am__obj"
4270 # This depmode causes a compiler race in universal mode.
4271 test "$am__universal" = false || continue
4274 # After this tag, mechanisms are not by side-effect, so they'll
4275 # only be used when explicitly requested.
4276 if test "x$enable_dependency_tracking" = xyes; then
4282 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4283 # This compiler won't grok '-c -o', but also, the minuso test has
4284 # not run yet. These depmodes are late enough in the game, and
4285 # so weak that their functioning should not be impacted.
4286 am__obj=conftest.${OBJEXT-o}
4291 if depmode=$depmode \
4292 source=sub/conftest.c object=$am__obj \
4293 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4294 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4295 >/dev/null 2>conftest.err &&
4296 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4297 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4298 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4299 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4300 # icc doesn't choke on unknown options, it will just issue warnings
4301 # or remarks (even with -Werror). So we grep stderr for any message
4302 # that says an option was ignored or not supported.
4303 # When given -MP, icc 7.0 and 7.1 complain thusly:
4304 # icc: Command line warning: ignoring option '-M'; no argument required
4305 # The diagnosis changed in icc 8.0:
4306 # icc: Command line remark: option '-MP' not supported
4307 if (grep 'ignoring option' conftest.err ||
4308 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4309 am_cv_CC_dependencies_compiler_type=$depmode
4318 am_cv_CC_dependencies_compiler_type=none
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4323 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4324 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4327 test "x$enable_dependency_tracking" != xno \
4328 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4330 am__fastdepCC_FALSE='#'
4332 am__fastdepCC_TRUE='#'
4333 am__fastdepCC_FALSE=
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4340 $as_echo_n "checking whether ln -s works... " >&6; }
4342 if test "$LN_S" = "ln -s"; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4344 $as_echo "yes" >&6; }
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4347 $as_echo "no, using $LN_S" >&6; }
4350 # AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
4352 # AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4355 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4356 if ${ac_cv_path_SED+:} false; then :
4357 $as_echo_n "(cached) " >&6
4359 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4360 for ac_i in 1 2 3 4 5 6 7; do
4361 ac_script="$ac_script$as_nl$ac_script"
4363 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4364 { ac_script=; unset ac_script;}
4365 if test -z "$SED"; then
4366 ac_path_SED_found=false
4367 # Loop through the user's path and test for each of PROGNAME-LIST
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 test -z "$as_dir" && as_dir=.
4373 for ac_prog in sed gsed; do
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4376 as_fn_executable_p "$ac_path_SED" || continue
4377 # Check for GNU ac_path_SED and select it if it is found.
4378 # Check for GNU $ac_path_SED
4379 case `"$ac_path_SED" --version 2>&1` in
4381 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4384 $as_echo_n 0123456789 >"conftest.in"
4387 cat "conftest.in" "conftest.in" >"conftest.tmp"
4388 mv "conftest.tmp" "conftest.in"
4389 cp "conftest.in" "conftest.nl"
4390 $as_echo '' >> "conftest.nl"
4391 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4392 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4393 as_fn_arith $ac_count + 1 && ac_count=$as_val
4394 if test $ac_count -gt ${ac_path_SED_max-0}; then
4395 # Best one so far, save it but keep looking for a better one
4396 ac_cv_path_SED="$ac_path_SED"
4397 ac_path_SED_max=$ac_count
4399 # 10*(2^10) chars as input seems more than enough
4400 test $ac_count -gt 10 && break
4402 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4405 $ac_path_SED_found && break 3
4410 if test -z "$ac_cv_path_SED"; then
4411 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4419 $as_echo "$ac_cv_path_SED" >&6; }
4420 SED="$ac_cv_path_SED"
4426 ac_cpp='$CPP $CPPFLAGS'
4427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4431 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4432 # On Suns, sometimes $CPP names a directory.
4433 if test -n "$CPP" && test -d "$CPP"; then
4436 if test -z "$CPP"; then
4437 if ${ac_cv_prog_CPP+:} false; then :
4438 $as_echo_n "(cached) " >&6
4440 # Double quotes because CPP needs to be expanded
4441 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4444 for ac_c_preproc_warn_flag in '' yes
4446 # Use a header file that comes with gcc, so configuring glibc
4447 # with a fresh cross-compiler works.
4448 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4449 # <limits.h> exists even on freestanding compilers.
4450 # On the NeXT, cc -E runs the code through the compiler's parser,
4451 # not just through cpp. "Syntax error" is here to catch this case.
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4455 @%:@ include <limits.h>
4457 @%:@ include <assert.h>
4461 if ac_fn_c_try_cpp "$LINENO"; then :
4464 # Broken: fails on valid input.
4467 rm -f conftest.err conftest.i conftest.$ac_ext
4469 # OK, works on sane cases. Now check whether nonexistent headers
4470 # can be detected and how.
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4473 @%:@include <ac_nonexistent.h>
4475 if ac_fn_c_try_cpp "$LINENO"; then :
4476 # Broken: success on invalid input.
4479 # Passes both tests.
4483 rm -f conftest.err conftest.i conftest.$ac_ext
4486 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4487 rm -f conftest.i conftest.err conftest.$ac_ext
4488 if $ac_preproc_ok; then :
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4501 $as_echo "$CPP" >&6; }
4503 for ac_c_preproc_warn_flag in '' yes
4505 # Use a header file that comes with gcc, so configuring glibc
4506 # with a fresh cross-compiler works.
4507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4508 # <limits.h> exists even on freestanding compilers.
4509 # On the NeXT, cc -E runs the code through the compiler's parser,
4510 # not just through cpp. "Syntax error" is here to catch this case.
4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h. */
4514 @%:@ include <limits.h>
4516 @%:@ include <assert.h>
4520 if ac_fn_c_try_cpp "$LINENO"; then :
4523 # Broken: fails on valid input.
4526 rm -f conftest.err conftest.i conftest.$ac_ext
4528 # OK, works on sane cases. Now check whether nonexistent headers
4529 # can be detected and how.
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4532 @%:@include <ac_nonexistent.h>
4534 if ac_fn_c_try_cpp "$LINENO"; then :
4535 # Broken: success on invalid input.
4538 # Passes both tests.
4542 rm -f conftest.err conftest.i conftest.$ac_ext
4545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4546 rm -f conftest.i conftest.err conftest.$ac_ext
4547 if $ac_preproc_ok; then :
4550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4552 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4553 See \`config.log' for more details" "$LINENO" 5; }
4557 ac_cpp='$CPP $CPPFLAGS'
4558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4564 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4565 if ${ac_cv_path_GREP+:} false; then :
4566 $as_echo_n "(cached) " >&6
4568 if test -z "$GREP"; then
4569 ac_path_GREP_found=false
4570 # Loop through the user's path and test for each of PROGNAME-LIST
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4575 test -z "$as_dir" && as_dir=.
4576 for ac_prog in grep ggrep; do
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4579 as_fn_executable_p "$ac_path_GREP" || continue
4580 # Check for GNU ac_path_GREP and select it if it is found.
4581 # Check for GNU $ac_path_GREP
4582 case `"$ac_path_GREP" --version 2>&1` in
4584 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4587 $as_echo_n 0123456789 >"conftest.in"
4590 cat "conftest.in" "conftest.in" >"conftest.tmp"
4591 mv "conftest.tmp" "conftest.in"
4592 cp "conftest.in" "conftest.nl"
4593 $as_echo 'GREP' >> "conftest.nl"
4594 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4595 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4596 as_fn_arith $ac_count + 1 && ac_count=$as_val
4597 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4598 # Best one so far, save it but keep looking for a better one
4599 ac_cv_path_GREP="$ac_path_GREP"
4600 ac_path_GREP_max=$ac_count
4602 # 10*(2^10) chars as input seems more than enough
4603 test $ac_count -gt 10 && break
4605 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4608 $ac_path_GREP_found && break 3
4613 if test -z "$ac_cv_path_GREP"; then
4614 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4617 ac_cv_path_GREP=$GREP
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4622 $as_echo "$ac_cv_path_GREP" >&6; }
4623 GREP="$ac_cv_path_GREP"
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4627 $as_echo_n "checking for egrep... " >&6; }
4628 if ${ac_cv_path_EGREP+:} false; then :
4629 $as_echo_n "(cached) " >&6
4631 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4632 then ac_cv_path_EGREP="$GREP -E"
4634 if test -z "$EGREP"; then
4635 ac_path_EGREP_found=false
4636 # Loop through the user's path and test for each of PROGNAME-LIST
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4641 test -z "$as_dir" && as_dir=.
4642 for ac_prog in egrep; do
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4645 as_fn_executable_p "$ac_path_EGREP" || continue
4646 # Check for GNU ac_path_EGREP and select it if it is found.
4647 # Check for GNU $ac_path_EGREP
4648 case `"$ac_path_EGREP" --version 2>&1` in
4650 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4653 $as_echo_n 0123456789 >"conftest.in"
4656 cat "conftest.in" "conftest.in" >"conftest.tmp"
4657 mv "conftest.tmp" "conftest.in"
4658 cp "conftest.in" "conftest.nl"
4659 $as_echo 'EGREP' >> "conftest.nl"
4660 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4662 as_fn_arith $ac_count + 1 && ac_count=$as_val
4663 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4664 # Best one so far, save it but keep looking for a better one
4665 ac_cv_path_EGREP="$ac_path_EGREP"
4666 ac_path_EGREP_max=$ac_count
4668 # 10*(2^10) chars as input seems more than enough
4669 test $ac_count -gt 10 && break
4671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4674 $ac_path_EGREP_found && break 3
4679 if test -z "$ac_cv_path_EGREP"; then
4680 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4683 ac_cv_path_EGREP=$EGREP
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4689 $as_echo "$ac_cv_path_EGREP" >&6; }
4690 EGREP="$ac_cv_path_EGREP"
4693 if test $ac_cv_c_compiler_gnu = yes; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4695 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4696 if ${ac_cv_prog_gcc_traditional+:} false; then :
4697 $as_echo_n "(cached) " >&6
4699 ac_pattern="Autoconf.*'x'"
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4706 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4707 ac_cv_prog_gcc_traditional=yes
4709 ac_cv_prog_gcc_traditional=no
4714 if test $ac_cv_prog_gcc_traditional = no; then
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4721 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4722 ac_cv_prog_gcc_traditional=yes
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4729 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4730 if test $ac_cv_prog_gcc_traditional = yes; then
4731 CC="$CC -traditional"
4736 # We need to test for at least gcc 2.95 here, because older versions don't
4737 # have -fno-strict-aliasing
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4745 #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
4752 if ac_fn_c_try_compile "$LINENO"; then :
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759 if test "$GCC" = "yes" ; then
4760 # Enable many gcc warnings by default...
4761 CFLAGS="$CFLAGS -Wall"
4762 # And disable the strict-aliasing optimization, since it breaks
4763 # our sockaddr-handling code in strange ways.
4764 if test x$have_gcc295 = xyes; then
4765 CFLAGS="$CFLAGS -fno-strict-aliasing"
4769 # OS X Lion started deprecating the system openssl. Let's just disable
4770 # all deprecation warnings on OS X.
4774 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
4778 @%:@ Check whether --enable-gcc-warnings was given.
4779 if test "${enable_gcc_warnings+set}" = set; then :
4780 enableval=$enable_gcc_warnings;
4783 @%:@ Check whether --enable-thread-support was given.
4784 if test "${enable_thread_support+set}" = set; then :
4785 enableval=$enable_thread_support;
4787 enable_thread_support=yes
4790 @%:@ Check whether --enable-malloc-replacement was given.
4791 if test "${enable_malloc_replacement+set}" = set; then :
4792 enableval=$enable_malloc_replacement;
4794 enable_malloc_replacement=yes
4797 @%:@ Check whether --enable-openssl was given.
4798 if test "${enable_openssl+set}" = set; then :
4799 enableval=$enable_openssl;
4804 @%:@ Check whether --enable-debug-mode was given.
4805 if test "${enable_debug_mode+set}" = set; then :
4806 enableval=$enable_debug_mode;
4808 enable_debug_mode=yes
4811 @%:@ Check whether --enable-libevent-install was given.
4812 if test "${enable_libevent_install+set}" = set; then :
4813 enableval=$enable_libevent_install;
4815 enable_libevent_install=yes
4818 @%:@ Check whether --enable-libevent-regress was given.
4819 if test "${enable_libevent_regress+set}" = set; then :
4820 enableval=$enable_libevent_regress; enable_libevent_regress=yes
4823 @%:@ Check whether --enable-function-sections was given.
4824 if test "${enable_function_sections+set}" = set; then :
4825 enableval=$enable_function_sections;
4827 enable_function_sections=no
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4835 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4840 macro_version='2.4.2'
4841 macro_revision='1.3337'
4855 ltmain="$ac_aux_dir/ltmain.sh"
4857 # Backslashify metacharacters that are still active within
4858 # double-quoted strings.
4859 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4861 # Same as above, but do not quote variable references.
4862 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4864 # Sed substitution to delay expansion of an escaped shell variable in a
4865 # double_quote_subst'ed string.
4866 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4868 # Sed substitution to delay expansion of an escaped single quote.
4869 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4871 # Sed substitution to avoid accidental globbing in evaled expressions
4872 no_glob_subst='s/\*/\\\*/g'
4874 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4875 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4876 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4879 $as_echo_n "checking how to print strings... " >&6; }
4880 # Test print first, because it will be a builtin if present.
4881 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4882 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4884 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4887 # Use this function as a fallback that always works.
4888 func_fallback_echo ()
4890 eval 'cat <<_LTECHO_EOF
4894 ECHO='func_fallback_echo'
4897 # func_echo_all arg...
4898 # Invoke $ECHO with all args, space-separated.
4905 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4906 $as_echo "printf" >&6; } ;;
4907 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4908 $as_echo "print -r" >&6; } ;;
4909 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4910 $as_echo "cat" >&6; } ;;
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4927 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4928 if ${ac_cv_path_SED+:} false; then :
4929 $as_echo_n "(cached) " >&6
4931 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4932 for ac_i in 1 2 3 4 5 6 7; do
4933 ac_script="$ac_script$as_nl$ac_script"
4935 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4936 { ac_script=; unset ac_script;}
4937 if test -z "$SED"; then
4938 ac_path_SED_found=false
4939 # Loop through the user's path and test for each of PROGNAME-LIST
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 test -z "$as_dir" && as_dir=.
4945 for ac_prog in sed gsed; do
4946 for ac_exec_ext in '' $ac_executable_extensions; do
4947 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4948 as_fn_executable_p "$ac_path_SED" || continue
4949 # Check for GNU ac_path_SED and select it if it is found.
4950 # Check for GNU $ac_path_SED
4951 case `"$ac_path_SED" --version 2>&1` in
4953 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4956 $as_echo_n 0123456789 >"conftest.in"
4959 cat "conftest.in" "conftest.in" >"conftest.tmp"
4960 mv "conftest.tmp" "conftest.in"
4961 cp "conftest.in" "conftest.nl"
4962 $as_echo '' >> "conftest.nl"
4963 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4965 as_fn_arith $ac_count + 1 && ac_count=$as_val
4966 if test $ac_count -gt ${ac_path_SED_max-0}; then
4967 # Best one so far, save it but keep looking for a better one
4968 ac_cv_path_SED="$ac_path_SED"
4969 ac_path_SED_max=$ac_count
4971 # 10*(2^10) chars as input seems more than enough
4972 test $ac_count -gt 10 && break
4974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4977 $ac_path_SED_found && break 3
4982 if test -z "$ac_cv_path_SED"; then
4983 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4991 $as_echo "$ac_cv_path_SED" >&6; }
4992 SED="$ac_cv_path_SED"
4995 test -z "$SED" && SED=sed
4996 Xsed="$SED -e 1s/^X//"
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5009 $as_echo_n "checking for fgrep... " >&6; }
5010 if ${ac_cv_path_FGREP+:} false; then :
5011 $as_echo_n "(cached) " >&6
5013 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5014 then ac_cv_path_FGREP="$GREP -F"
5016 if test -z "$FGREP"; then
5017 ac_path_FGREP_found=false
5018 # Loop through the user's path and test for each of PROGNAME-LIST
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5023 test -z "$as_dir" && as_dir=.
5024 for ac_prog in fgrep; do
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5027 as_fn_executable_p "$ac_path_FGREP" || continue
5028 # Check for GNU ac_path_FGREP and select it if it is found.
5029 # Check for GNU $ac_path_FGREP
5030 case `"$ac_path_FGREP" --version 2>&1` in
5032 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5035 $as_echo_n 0123456789 >"conftest.in"
5038 cat "conftest.in" "conftest.in" >"conftest.tmp"
5039 mv "conftest.tmp" "conftest.in"
5040 cp "conftest.in" "conftest.nl"
5041 $as_echo 'FGREP' >> "conftest.nl"
5042 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5044 as_fn_arith $ac_count + 1 && ac_count=$as_val
5045 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5046 # Best one so far, save it but keep looking for a better one
5047 ac_cv_path_FGREP="$ac_path_FGREP"
5048 ac_path_FGREP_max=$ac_count
5050 # 10*(2^10) chars as input seems more than enough
5051 test $ac_count -gt 10 && break
5053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5056 $ac_path_FGREP_found && break 3
5061 if test -z "$ac_cv_path_FGREP"; then
5062 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5065 ac_cv_path_FGREP=$FGREP
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5071 $as_echo "$ac_cv_path_FGREP" >&6; }
5072 FGREP="$ac_cv_path_FGREP"
5075 test -z "$GREP" && GREP=grep
5095 @%:@ Check whether --with-gnu-ld was given.
5096 if test "${with_gnu_ld+set}" = set; then :
5097 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5103 if test "$GCC" = yes; then
5104 # Check if gcc -print-prog-name=ld gives a path.
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5106 $as_echo_n "checking for ld used by $CC... " >&6; }
5109 # gcc leaves a trailing carriage return which upsets mingw
5110 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5112 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5115 # Accept absolute paths.
5117 re_direlt='/[^/][^/]*/\.\./'
5118 # Canonicalize the pathname of ld
5119 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5120 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5121 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5123 test -z "$LD" && LD="$ac_prog"
5126 # If it fails, then pretend we aren't using GCC.
5130 # If it is relative, then search for the first ld in PATH.
5134 elif test "$with_gnu_ld" = yes; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5136 $as_echo_n "checking for GNU ld... " >&6; }
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5139 $as_echo_n "checking for non-GNU ld... " >&6; }
5141 if ${lt_cv_path_LD+:} false; then :
5142 $as_echo_n "(cached) " >&6
5144 if test -z "$LD"; then
5145 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5146 for ac_dir in $PATH; do
5148 test -z "$ac_dir" && ac_dir=.
5149 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5150 lt_cv_path_LD="$ac_dir/$ac_prog"
5151 # Check to see if the program is GNU ld. I'd rather use --version,
5152 # but apparently some variants of GNU ld only accept -v.
5153 # Break only if it was the GNU/non-GNU ld that we prefer.
5154 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5155 *GNU* | *'with BFD'*)
5156 test "$with_gnu_ld" != no && break
5159 test "$with_gnu_ld" != yes && break
5166 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5171 if test -n "$LD"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5173 $as_echo "$LD" >&6; }
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5178 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5180 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5181 if ${lt_cv_prog_gnu_ld+:} false; then :
5182 $as_echo_n "(cached) " >&6
5184 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5185 case `$LD -v 2>&1 </dev/null` in
5186 *GNU* | *'with BFD'*)
5187 lt_cv_prog_gnu_ld=yes
5190 lt_cv_prog_gnu_ld=no
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5195 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5196 with_gnu_ld=$lt_cv_prog_gnu_ld
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5207 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5208 if ${lt_cv_path_NM+:} false; then :
5209 $as_echo_n "(cached) " >&6
5211 if test -n "$NM"; then
5212 # Let the user override the test.
5215 lt_nm_to_check="${ac_tool_prefix}nm"
5216 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5217 lt_nm_to_check="$lt_nm_to_check nm"
5219 for lt_tmp_nm in $lt_nm_to_check; do
5220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5221 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5223 test -z "$ac_dir" && ac_dir=.
5224 tmp_nm="$ac_dir/$lt_tmp_nm"
5225 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5226 # Check to see if the nm accepts a BSD-compat flag.
5227 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5228 # nm: unknown option "B" ignored
5229 # Tru64's nm complains that /dev/null is an invalid object file
5230 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5231 */dev/null* | *'Invalid file or object type'*)
5232 lt_cv_path_NM="$tmp_nm -B"
5236 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5238 lt_cv_path_NM="$tmp_nm -p"
5242 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5243 continue # so that we can try to find one that supports BSD flags
5252 : ${lt_cv_path_NM=no}
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5256 $as_echo "$lt_cv_path_NM" >&6; }
5257 if test "$lt_cv_path_NM" != "no"; then
5260 # Didn't find any BSD compatible name lister, look for dumpbin.
5261 if test -n "$DUMPBIN"; then :
5262 # Let the user override the test.
5264 if test -n "$ac_tool_prefix"; then
5265 for ac_prog in dumpbin "link -dump"
5267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270 $as_echo_n "checking for $ac_word... " >&6; }
5271 if ${ac_cv_prog_DUMPBIN+:} false; then :
5272 $as_echo_n "(cached) " >&6
5274 if test -n "$DUMPBIN"; then
5275 ac_cv_prog_DUMPBIN="$DUMPBIN" # 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 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 DUMPBIN=$ac_cv_prog_DUMPBIN
5295 if test -n "$DUMPBIN"; then
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5297 $as_echo "$DUMPBIN" >&6; }
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 $as_echo "no" >&6; }
5304 test -n "$DUMPBIN" && break
5307 if test -z "$DUMPBIN"; then
5308 ac_ct_DUMPBIN=$DUMPBIN
5309 for ac_prog in dumpbin "link -dump"
5311 # Extract the first word of "$ac_prog", so it can be a program name with args.
5312 set dummy $ac_prog; ac_word=$2
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5316 $as_echo_n "(cached) " >&6
5318 if test -n "$ac_ct_DUMPBIN"; then
5319 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 test -z "$as_dir" && as_dir=.
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5328 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5339 if test -n "$ac_ct_DUMPBIN"; then
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5341 $as_echo "$ac_ct_DUMPBIN" >&6; }
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344 $as_echo "no" >&6; }
5348 test -n "$ac_ct_DUMPBIN" && break
5351 if test "x$ac_ct_DUMPBIN" = x; then
5354 case $cross_compiling:$ac_tool_warned in
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5358 ac_tool_warned=yes ;;
5360 DUMPBIN=$ac_ct_DUMPBIN
5364 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5366 DUMPBIN="$DUMPBIN -symbols"
5374 if test "$DUMPBIN" != ":"; then
5378 test -z "$NM" && NM=nm
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5386 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5387 if ${lt_cv_nm_interface+:} false; then :
5388 $as_echo_n "(cached) " >&6
5390 lt_cv_nm_interface="BSD nm"
5391 echo "int some_variable = 0;" > conftest.$ac_ext
5392 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5393 (eval "$ac_compile" 2>conftest.err)
5394 cat conftest.err >&5
5395 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5396 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5397 cat conftest.err >&5
5398 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5399 cat conftest.out >&5
5400 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5401 lt_cv_nm_interface="MS dumpbin"
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5406 $as_echo "$lt_cv_nm_interface" >&6; }
5408 # find the maximum length of command line arguments
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5410 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5411 if ${lt_cv_sys_max_cmd_len+:} false; then :
5412 $as_echo_n "(cached) " >&6
5419 # On DJGPP, this test can blow up pretty badly due to problems in libc
5420 # (any single argument exceeding 2000 bytes causes a buffer overrun
5421 # during glob expansion). Even if it were fixed, the result of this
5422 # check would be larger than it should be.
5423 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5427 # Under GNU Hurd, this test is not required because there is
5428 # no limit to the length of command line arguments.
5429 # Libtool will interpret -1 as no limit whatsoever
5430 lt_cv_sys_max_cmd_len=-1;
5433 cygwin* | mingw* | cegcc*)
5434 # On Win9x/ME, this test blows up -- it succeeds, but takes
5435 # about 5 minutes as the teststring grows exponentially.
5436 # Worse, since 9x/ME are not pre-emptively multitasking,
5437 # you end up with a "frozen" computer, even though with patience
5438 # the test eventually succeeds (with a max line length of 256k).
5439 # Instead, let's just punt: use the minimum linelength reported by
5440 # all of the supported platforms: 8192 (on NT/2K/XP).
5441 lt_cv_sys_max_cmd_len=8192;
5445 # On MiNT this can take a long time and run out of memory.
5446 lt_cv_sys_max_cmd_len=8192;
5450 # On AmigaOS with pdksh, this test takes hours, literally.
5451 # So we just punt and use a minimum line length of 8192.
5452 lt_cv_sys_max_cmd_len=8192;
5455 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5456 # This has been around since 386BSD, at least. Likely further.
5457 if test -x /sbin/sysctl; then
5458 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5459 elif test -x /usr/sbin/sysctl; then
5460 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5462 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5464 # And add a safety zone
5465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5466 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5470 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5471 lt_cv_sys_max_cmd_len=196608
5475 # The test takes a long time on OS/2.
5476 lt_cv_sys_max_cmd_len=8192
5480 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5481 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5482 # nice to cause kernel panics so lets avoid the loop below.
5483 # First set a reasonable default.
5484 lt_cv_sys_max_cmd_len=16384
5486 if test -x /sbin/sysconfig; then
5487 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5488 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5493 lt_cv_sys_max_cmd_len=102400
5495 sysv5* | sco5v6* | sysv4.2uw2*)
5496 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5497 if test -n "$kargmax"; then
5498 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5500 lt_cv_sys_max_cmd_len=32768
5504 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5505 if test -n "$lt_cv_sys_max_cmd_len" && \
5506 test undefined != "$lt_cv_sys_max_cmd_len"; then
5507 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5508 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5510 # Make teststring a little bigger before we do anything with it.
5511 # a 1K string should be a reasonable start.
5512 for i in 1 2 3 4 5 6 7 8 ; do
5513 teststring=$teststring$teststring
5515 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5516 # If test is not a shell built-in, we'll probably end up computing a
5517 # maximum length that is only half of the actual maximum length, but
5519 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5520 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5521 test $i != 17 # 1/2 MB should be enough
5524 teststring=$teststring$teststring
5526 # Only check the string length outside the loop.
5527 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5529 # Add a significant safety factor because C++ compilers can tack on
5530 # massive amounts of additional arguments before passing them to the
5531 # linker. It appears as though 1/2 is a usable value.
5532 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5539 if test -n $lt_cv_sys_max_cmd_len ; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5541 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5544 $as_echo "none" >&6; }
5546 max_cmd_len=$lt_cv_sys_max_cmd_len
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5558 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5559 # Try some XSI features
5562 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5564 && eval 'test $(( 1 + 1 )) -eq 2 \
5565 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5568 $as_echo "$xsi_shell" >&6; }
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5572 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5574 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5576 && lt_shell_append=yes
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5578 $as_echo "$lt_shell_append" >&6; }
5581 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5591 # test EBCDIC or ASCII
5592 case `echo X|tr X '\101'` in
5593 A) # ASCII based system
5594 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5595 lt_SP2NL='tr \040 \012'
5596 lt_NL2SP='tr \015\012 \040\040'
5598 *) # EBCDIC based system
5599 lt_SP2NL='tr \100 \n'
5600 lt_NL2SP='tr \r\n \100\100'
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5613 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5614 if ${lt_cv_to_host_file_cmd+:} false; then :
5615 $as_echo_n "(cached) " >&6
5620 *-*-mingw* ) # actually msys
5621 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5624 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5626 * ) # otherwise, assume *nix
5627 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5633 *-*-mingw* ) # actually msys
5634 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5637 lt_cv_to_host_file_cmd=func_convert_file_noop
5639 * ) # otherwise, assume *nix
5640 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5644 * ) # unhandled hosts (and "normal" native builds)
5645 lt_cv_to_host_file_cmd=func_convert_file_noop
5651 to_host_file_cmd=$lt_cv_to_host_file_cmd
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5653 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5660 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5661 if ${lt_cv_to_tool_file_cmd+:} false; then :
5662 $as_echo_n "(cached) " >&6
5664 #assume ordinary cross tools, or native build.
5665 lt_cv_to_tool_file_cmd=func_convert_file_noop
5669 *-*-mingw* ) # actually msys
5670 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5678 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5680 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5687 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5688 if ${lt_cv_ld_reload_flag+:} false; then :
5689 $as_echo_n "(cached) " >&6
5691 lt_cv_ld_reload_flag='-r'
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5694 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5695 reload_flag=$lt_cv_ld_reload_flag
5696 case $reload_flag in
5698 *) reload_flag=" $reload_flag" ;;
5700 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5702 cygwin* | mingw* | pw32* | cegcc*)
5703 if test "$GCC" != yes; then
5708 if test "$GCC" = yes; then
5709 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5711 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5724 if test -n "$ac_tool_prefix"; then
5725 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5726 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5728 $as_echo_n "checking for $ac_word... " >&6; }
5729 if ${ac_cv_prog_OBJDUMP+:} false; then :
5730 $as_echo_n "(cached) " >&6
5732 if test -n "$OBJDUMP"; then
5733 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 test -z "$as_dir" && as_dir=.
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 OBJDUMP=$ac_cv_prog_OBJDUMP
5753 if test -n "$OBJDUMP"; then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5755 $as_echo "$OBJDUMP" >&6; }
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758 $as_echo "no" >&6; }
5763 if test -z "$ac_cv_prog_OBJDUMP"; then
5764 ac_ct_OBJDUMP=$OBJDUMP
5765 # Extract the first word of "objdump", so it can be a program name with args.
5766 set dummy objdump; ac_word=$2
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768 $as_echo_n "checking for $ac_word... " >&6; }
5769 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5770 $as_echo_n "(cached) " >&6
5772 if test -n "$ac_ct_OBJDUMP"; then
5773 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5793 if test -n "$ac_ct_OBJDUMP"; then
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5795 $as_echo "$ac_ct_OBJDUMP" >&6; }
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5801 if test "x$ac_ct_OBJDUMP" = x; then
5804 case $cross_compiling:$ac_tool_warned in
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5808 ac_tool_warned=yes ;;
5810 OBJDUMP=$ac_ct_OBJDUMP
5813 OBJDUMP="$ac_cv_prog_OBJDUMP"
5816 test -z "$OBJDUMP" && OBJDUMP=objdump
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5827 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5828 if ${lt_cv_deplibs_check_method+:} false; then :
5829 $as_echo_n "(cached) " >&6
5831 lt_cv_file_magic_cmd='$MAGIC_CMD'
5832 lt_cv_file_magic_test_file=
5833 lt_cv_deplibs_check_method='unknown'
5834 # Need to set the preceding variable on all platforms that support
5835 # interlibrary dependencies.
5836 # 'none' -- dependencies not supported.
5837 # `unknown' -- same as none, but documents that we really don't know.
5838 # 'pass_all' -- all dependencies passed with no checks.
5839 # 'test_compile' -- check by making test program.
5840 # 'file_magic [[regex]]' -- check by looking for files in library path
5841 # which responds to the $file_magic_cmd with a given extended regex.
5842 # If you have `file' or equivalent on your system and you're not sure
5843 # whether `pass_all' will *always* work, you probably want this one.
5847 lt_cv_deplibs_check_method=pass_all
5851 lt_cv_deplibs_check_method=pass_all
5855 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5856 lt_cv_file_magic_cmd='/usr/bin/file -L'
5857 lt_cv_file_magic_test_file=/shlib/libc.so
5861 # func_win32_libid is a shell function defined in ltmain.sh
5862 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5863 lt_cv_file_magic_cmd='func_win32_libid'
5867 # Base MSYS/MinGW do not provide the 'file' command needed by
5868 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5869 # unless we find 'file', for example because we are cross-compiling.
5870 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5871 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5872 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5873 lt_cv_file_magic_cmd='func_win32_libid'
5875 # Keep this pattern in sync with the one in func_win32_libid.
5876 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5877 lt_cv_file_magic_cmd='$OBJDUMP -f'
5882 # use the weaker test based on 'objdump'. See mingw*.
5883 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5884 lt_cv_file_magic_cmd='$OBJDUMP -f'
5887 darwin* | rhapsody*)
5888 lt_cv_deplibs_check_method=pass_all
5891 freebsd* | dragonfly*)
5892 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5895 # Not sure whether the presence of OpenBSD here was a mistake.
5896 # Let's accept both of them until this is cleared up.
5897 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5898 lt_cv_file_magic_cmd=/usr/bin/file
5899 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5903 lt_cv_deplibs_check_method=pass_all
5908 lt_cv_deplibs_check_method=pass_all
5911 hpux10.20* | hpux11*)
5912 lt_cv_file_magic_cmd=/usr/bin/file
5915 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5916 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5919 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]'
5920 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5923 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5924 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5930 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5931 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5934 irix5* | irix6* | nonstopux*)
5936 *-32|*"-32 ") libmagic=32-bit;;
5937 *-n32|*"-n32 ") libmagic=N32;;
5938 *-64|*"-64 ") libmagic=64-bit;;
5939 *) libmagic=never-match;;
5941 lt_cv_deplibs_check_method=pass_all
5944 # This must be glibc/ELF.
5945 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5946 lt_cv_deplibs_check_method=pass_all
5949 netbsd* | netbsdelf*-gnu)
5950 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5951 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5953 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5958 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5959 lt_cv_file_magic_cmd=/usr/bin/file
5960 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5964 lt_cv_deplibs_check_method=pass_all
5968 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5969 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5975 osf3* | osf4* | osf5*)
5976 lt_cv_deplibs_check_method=pass_all
5980 lt_cv_deplibs_check_method=pass_all
5984 lt_cv_deplibs_check_method=pass_all
5987 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5988 lt_cv_deplibs_check_method=pass_all
5992 case $host_vendor in
5994 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]'
5995 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5998 lt_cv_deplibs_check_method=pass_all
6001 lt_cv_file_magic_cmd='/bin/file'
6002 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6005 lt_cv_file_magic_cmd='/bin/file'
6006 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6007 lt_cv_file_magic_test_file=/lib/libc.so
6010 lt_cv_deplibs_check_method=pass_all
6013 lt_cv_deplibs_check_method=pass_all
6019 lt_cv_deplibs_check_method=pass_all
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6025 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6029 if test "$build" = "$host"; then
6032 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6035 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6041 file_magic_cmd=$lt_cv_file_magic_cmd
6042 deplibs_check_method=$lt_cv_deplibs_check_method
6043 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6066 if test -n "$ac_tool_prefix"; then
6067 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6068 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070 $as_echo_n "checking for $ac_word... " >&6; }
6071 if ${ac_cv_prog_DLLTOOL+:} false; then :
6072 $as_echo_n "(cached) " >&6
6074 if test -n "$DLLTOOL"; then
6075 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081 test -z "$as_dir" && as_dir=.
6082 for ac_exec_ext in '' $ac_executable_extensions; do
6083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6084 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 DLLTOOL=$ac_cv_prog_DLLTOOL
6095 if test -n "$DLLTOOL"; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6097 $as_echo "$DLLTOOL" >&6; }
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100 $as_echo "no" >&6; }
6105 if test -z "$ac_cv_prog_DLLTOOL"; then
6106 ac_ct_DLLTOOL=$DLLTOOL
6107 # Extract the first word of "dlltool", so it can be a program name with args.
6108 set dummy dlltool; ac_word=$2
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6112 $as_echo_n "(cached) " >&6
6114 if test -n "$ac_ct_DLLTOOL"; then
6115 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6124 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6135 if test -n "$ac_ct_DLLTOOL"; then
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6137 $as_echo "$ac_ct_DLLTOOL" >&6; }
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6143 if test "x$ac_ct_DLLTOOL" = x; then
6146 case $cross_compiling:$ac_tool_warned in
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6150 ac_tool_warned=yes ;;
6152 DLLTOOL=$ac_ct_DLLTOOL
6155 DLLTOOL="$ac_cv_prog_DLLTOOL"
6158 test -z "$DLLTOOL" && DLLTOOL=dlltool
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6170 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6171 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6172 $as_echo_n "(cached) " >&6
6174 lt_cv_sharedlib_from_linklib_cmd='unknown'
6177 cygwin* | mingw* | pw32* | cegcc*)
6178 # two different shell functions defined in ltmain.sh
6179 # decide which to use based on capabilities of $DLLTOOL
6180 case `$DLLTOOL --help 2>&1` in
6181 *--identify-strict*)
6182 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6185 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6190 # fallback: assume linklib IS sharedlib
6191 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6197 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6198 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6199 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6207 if test -n "$ac_tool_prefix"; then
6210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6211 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if ${ac_cv_prog_AR+:} false; then :
6215 $as_echo_n "(cached) " >&6
6217 if test -n "$AR"; then
6218 ac_cv_prog_AR="$AR" # Let the user override the test.
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6227 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 if test -n "$AR"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6240 $as_echo "$AR" >&6; }
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6247 test -n "$AR" && break
6250 if test -z "$AR"; then
6254 # Extract the first word of "$ac_prog", so it can be a program name with args.
6255 set dummy $ac_prog; ac_word=$2
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6259 $as_echo_n "(cached) " >&6
6261 if test -n "$ac_ct_AR"; then
6262 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6271 ac_cv_prog_ac_ct_AR="$ac_prog"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6282 if test -n "$ac_ct_AR"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6284 $as_echo "$ac_ct_AR" >&6; }
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6291 test -n "$ac_ct_AR" && break
6294 if test "x$ac_ct_AR" = x; then
6297 case $cross_compiling:$ac_tool_warned in
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6301 ac_tool_warned=yes ;;
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6321 $as_echo_n "checking for archiver @FILE support... " >&6; }
6322 if ${lt_cv_ar_at_file+:} false; then :
6323 $as_echo_n "(cached) " >&6
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6337 if ac_fn_c_try_compile "$LINENO"; then :
6338 echo conftest.$ac_objext > conftest.lst
6339 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6341 (eval $lt_ar_try) 2>&5
6343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6344 test $ac_status = 0; }
6345 if test "$ac_status" -eq 0; then
6346 # Ensure the archiver fails upon bogus file names.
6347 rm -f conftest.$ac_objext libconftest.a
6348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6349 (eval $lt_ar_try) 2>&5
6351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6352 test $ac_status = 0; }
6353 if test "$ac_status" -ne 0; then
6357 rm -f conftest.* libconftest.a
6360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6364 $as_echo "$lt_cv_ar_at_file" >&6; }
6366 if test "x$lt_cv_ar_at_file" = xno; then
6369 archiver_list_spec=$lt_cv_ar_at_file
6378 if test -n "$ac_tool_prefix"; then
6379 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6380 set dummy ${ac_tool_prefix}strip; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if ${ac_cv_prog_STRIP+:} false; then :
6384 $as_echo_n "(cached) " >&6
6386 if test -n "$STRIP"; then
6387 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6396 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 STRIP=$ac_cv_prog_STRIP
6407 if test -n "$STRIP"; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6409 $as_echo "$STRIP" >&6; }
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6417 if test -z "$ac_cv_prog_STRIP"; then
6419 # Extract the first word of "strip", so it can be a program name with args.
6420 set dummy strip; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6424 $as_echo_n "(cached) " >&6
6426 if test -n "$ac_ct_STRIP"; then
6427 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436 ac_cv_prog_ac_ct_STRIP="strip"
6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6447 if test -n "$ac_ct_STRIP"; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6449 $as_echo "$ac_ct_STRIP" >&6; }
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6455 if test "x$ac_ct_STRIP" = x; then
6458 case $cross_compiling:$ac_tool_warned in
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462 ac_tool_warned=yes ;;
6467 STRIP="$ac_cv_prog_STRIP"
6470 test -z "$STRIP" && STRIP=:
6477 if test -n "$ac_tool_prefix"; then
6478 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6479 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if ${ac_cv_prog_RANLIB+:} false; then :
6483 $as_echo_n "(cached) " >&6
6485 if test -n "$RANLIB"; then
6486 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6495 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 RANLIB=$ac_cv_prog_RANLIB
6506 if test -n "$RANLIB"; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6508 $as_echo "$RANLIB" >&6; }
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 $as_echo "no" >&6; }
6516 if test -z "$ac_cv_prog_RANLIB"; then
6517 ac_ct_RANLIB=$RANLIB
6518 # Extract the first word of "ranlib", so it can be a program name with args.
6519 set dummy ranlib; ac_word=$2
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521 $as_echo_n "checking for $ac_word... " >&6; }
6522 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6523 $as_echo_n "(cached) " >&6
6525 if test -n "$ac_ct_RANLIB"; then
6526 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 test -z "$as_dir" && as_dir=.
6533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6535 ac_cv_prog_ac_ct_RANLIB="ranlib"
6536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6546 if test -n "$ac_ct_RANLIB"; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6548 $as_echo "$ac_ct_RANLIB" >&6; }
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6554 if test "x$ac_ct_RANLIB" = x; then
6557 case $cross_compiling:$ac_tool_warned in
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6561 ac_tool_warned=yes ;;
6563 RANLIB=$ac_ct_RANLIB
6566 RANLIB="$ac_cv_prog_RANLIB"
6569 test -z "$RANLIB" && RANLIB=:
6576 # Determine commands to create old-style static archives.
6577 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6578 old_postinstall_cmds='chmod 644 $oldlib'
6579 old_postuninstall_cmds=
6581 if test -n "$RANLIB"; then
6584 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6587 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6590 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6595 lock_old_archive_extraction=yes ;;
6597 lock_old_archive_extraction=no ;;
6638 # If no C compiler was specified, use CC.
6641 # If no C compiler flags were specified, use CFLAGS.
6642 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6644 # Allow CC to be a program name with arguments.
6648 # Check for command to grab the raw symbol name followed by C symbol from nm.
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6650 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6651 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6652 $as_echo_n "(cached) " >&6
6655 # These are sane defaults that work on at least a few old systems.
6656 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6658 # Character class describing NM global symbol codes.
6659 symcode='[BCDEGRST]'
6661 # Regexp to match symbols that can be accessed directly from C.
6662 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6664 # Define system-specific variables.
6669 cygwin* | mingw* | pw32* | cegcc*)
6670 symcode='[ABCDGISTW]'
6673 if test "$host_cpu" = ia64; then
6674 symcode='[ABCDEGRST]'
6678 symcode='[BCDEGRST]'
6681 symcode='[BCDEGQRST]'
6692 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6700 # If we're using GNU nm, then use its standard symbol codes.
6701 case `$NM -V 2>&1` in
6702 *GNU* | *'with BFD'*)
6703 symcode='[ABCDGIRSTW]' ;;
6706 # Transform an extracted symbol line into a proper C declaration.
6707 # Some systems (esp. on ia64) link data and code symbols differently,
6708 # so use this general approach.
6709 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6711 # Transform an extracted symbol line into symbol name and symbol address
6712 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6713 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6715 # Handle CRLF in mingw tool chain
6719 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6723 # Try without a prefix underscore, then with it.
6724 for ac_symprfx in "" "_"; do
6726 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6727 symxfrm="\\1 $ac_symprfx\\2 \\2"
6729 # Write the raw and C identifiers.
6730 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6731 # Fake it for dumpbin and say T for any non-static function
6732 # and D for any global variable.
6733 # Also find C++ and __fastcall symbols from MSVC++,
6734 # which start with @ or ?.
6735 lt_cv_sys_global_symbol_pipe="$AWK '"\
6736 " {last_section=section; section=\$ 3};"\
6737 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6738 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6739 " \$ 0!~/External *\|/{next};"\
6740 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6741 " {if(hide[section]) next};"\
6742 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6743 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6744 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6745 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6746 " ' prfx=^$ac_symprfx"
6748 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6750 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6752 # Check to see that the pipe works correctly.
6756 cat > conftest.$ac_ext <<_LT_EOF
6761 void nm_test_func(void);
6762 void nm_test_func(void){}
6766 int main(){nm_test_var='a';nm_test_func();return(0);}
6769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6770 (eval $ac_compile) 2>&5
6772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6773 test $ac_status = 0; }; then
6774 # Now try to grab the symbols.
6776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6777 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6780 test $ac_status = 0; } && test -s "$nlist"; then
6781 # Try sorting and uniquifying the output.
6782 if sort "$nlist" | uniq > "$nlist"T; then
6783 mv -f "$nlist"T "$nlist"
6788 # Make sure that we snagged all the symbols we need.
6789 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6790 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6791 cat <<_LT_EOF > conftest.$ac_ext
6792 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6793 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6794 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6795 relocations are performed -- see ld's documentation on pseudo-relocs. */
6796 # define LT@&t@_DLSYM_CONST
6797 #elif defined(__osf__)
6798 /* This system does not cope well with relocations in const data. */
6799 # define LT@&t@_DLSYM_CONST
6801 # define LT@&t@_DLSYM_CONST const
6809 # Now generate the symbol file.
6810 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6812 cat <<_LT_EOF >> conftest.$ac_ext
6814 /* The mapping between symbol names and symbols. */
6815 LT@&t@_DLSYM_CONST struct {
6819 lt__PROGRAM__LTX_preloaded_symbols[] =
6821 { "@PROGRAM@", (void *) 0 },
6823 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6824 cat <<\_LT_EOF >> conftest.$ac_ext
6828 /* This works around a problem in FreeBSD linker */
6829 #ifdef FREEBSD_WORKAROUND
6830 static const void *lt_preloaded_setup() {
6831 return lt__PROGRAM__LTX_preloaded_symbols;
6839 # Now try linking the two files.
6840 mv conftest.$ac_objext conftstm.$ac_objext
6841 lt_globsym_save_LIBS=$LIBS
6842 lt_globsym_save_CFLAGS=$CFLAGS
6843 LIBS="conftstm.$ac_objext"
6844 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6846 (eval $ac_link) 2>&5
6848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6849 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6852 LIBS=$lt_globsym_save_LIBS
6853 CFLAGS=$lt_globsym_save_CFLAGS
6855 echo "cannot find nm_test_func in $nlist" >&5
6858 echo "cannot find nm_test_var in $nlist" >&5
6861 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6864 echo "$progname: failed program was:" >&5
6865 cat conftest.$ac_ext >&5
6867 rm -rf conftest* conftst*
6869 # Do not use the global_symbol_pipe unless it works.
6870 if test "$pipe_works" = yes; then
6873 lt_cv_sys_global_symbol_pipe=
6879 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6880 lt_cv_sys_global_symbol_to_cdecl=
6882 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6884 $as_echo "failed" >&6; }
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6887 $as_echo "ok" >&6; }
6890 # Response file support.
6891 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6892 nm_file_list_spec='@'
6893 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6894 nm_file_list_spec='@'
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6924 $as_echo_n "checking for sysroot... " >&6; }
6926 @%:@ Check whether --with-sysroot was given.
6927 if test "${with_sysroot+set}" = set; then :
6928 withval=$with_sysroot;
6935 case ${with_sysroot} in #(
6937 if test "$GCC" = yes; then
6938 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6942 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6948 $as_echo "${with_sysroot}" >&6; }
6949 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6954 $as_echo "${lt_sysroot:-no}" >&6; }
6960 @%:@ Check whether --enable-libtool-lock was given.
6961 if test "${enable_libtool_lock+set}" = set; then :
6962 enableval=$enable_libtool_lock;
6965 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6967 # Some flags need to be propagated to the compiler or linker for good
6971 # Find out which ABI we are using.
6972 echo 'int i;' > conftest.$ac_ext
6973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6974 (eval $ac_compile) 2>&5
6976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6977 test $ac_status = 0; }; then
6978 case `/usr/bin/file conftest.$ac_objext` in
6990 # Find out which ABI we are using.
6991 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6993 (eval $ac_compile) 2>&5
6995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6996 test $ac_status = 0; }; then
6997 if test "$lt_cv_prog_gnu_ld" = yes; then
6998 case `/usr/bin/file conftest.$ac_objext` in
7000 LD="${LD-ld} -melf32bsmip"
7003 LD="${LD-ld} -melf32bmipn32"
7006 LD="${LD-ld} -melf64bmip"
7010 case `/usr/bin/file conftest.$ac_objext` in
7026 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7027 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7028 # Find out which ABI we are using.
7029 echo 'int i;' > conftest.$ac_ext
7030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7031 (eval $ac_compile) 2>&5
7033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7034 test $ac_status = 0; }; then
7035 case `/usr/bin/file conftest.o` in
7038 x86_64-*kfreebsd*-gnu)
7039 LD="${LD-ld} -m elf_i386_fbsd"
7042 case `/usr/bin/file conftest.o` in
7044 LD="${LD-ld} -m elf32_x86_64"
7047 LD="${LD-ld} -m elf_i386"
7052 LD="${LD-ld} -m elf32lppclinux"
7055 LD="${LD-ld} -m elf32ppclinux"
7058 LD="${LD-ld} -m elf_s390"
7061 LD="${LD-ld} -m elf32_sparc"
7067 x86_64-*kfreebsd*-gnu)
7068 LD="${LD-ld} -m elf_x86_64_fbsd"
7071 LD="${LD-ld} -m elf_x86_64"
7074 LD="${LD-ld} -m elf64lppc"
7077 LD="${LD-ld} -m elf64ppc"
7079 s390*-*linux*|s390*-*tpf*)
7080 LD="${LD-ld} -m elf64_s390"
7083 LD="${LD-ld} -m elf64_sparc"
7093 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7094 SAVE_CFLAGS="$CFLAGS"
7095 CFLAGS="$CFLAGS -belf"
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7097 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7098 if ${lt_cv_cc_needs_belf+:} false; then :
7099 $as_echo_n "(cached) " >&6
7102 ac_cpp='$CPP $CPPFLAGS'
7103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7118 if ac_fn_c_try_link "$LINENO"; then :
7119 lt_cv_cc_needs_belf=yes
7121 lt_cv_cc_needs_belf=no
7123 rm -f core conftest.err conftest.$ac_objext \
7124 conftest$ac_exeext conftest.$ac_ext
7126 ac_cpp='$CPP $CPPFLAGS'
7127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7133 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7134 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7135 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7136 CFLAGS="$SAVE_CFLAGS"
7140 # Find out which ABI we are using.
7141 echo 'int i;' > conftest.$ac_ext
7142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7143 (eval $ac_compile) 2>&5
7145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7146 test $ac_status = 0; }; then
7147 case `/usr/bin/file conftest.o` in
7149 case $lt_cv_prog_gnu_ld in
7153 LD="${LD-ld} -m elf_x86_64"
7156 LD="${LD-ld} -m elf64_sparc"
7159 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7160 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7165 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7177 need_locks="$enable_libtool_lock"
7179 if test -n "$ac_tool_prefix"; then
7180 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7181 set dummy ${ac_tool_prefix}mt; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7185 $as_echo_n "(cached) " >&6
7187 if test -n "$MANIFEST_TOOL"; then
7188 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7208 if test -n "$MANIFEST_TOOL"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7210 $as_echo "$MANIFEST_TOOL" >&6; }
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7218 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7219 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7220 # Extract the first word of "mt", so it can be a program name with args.
7221 set dummy mt; ac_word=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7225 $as_echo_n "(cached) " >&6
7227 if test -n "$ac_ct_MANIFEST_TOOL"; then
7228 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7237 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7248 if test -n "$ac_ct_MANIFEST_TOOL"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7250 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7256 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7259 case $cross_compiling:$ac_tool_warned in
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7263 ac_tool_warned=yes ;;
7265 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7268 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7271 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7273 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7274 if ${lt_cv_path_mainfest_tool+:} false; then :
7275 $as_echo_n "(cached) " >&6
7277 lt_cv_path_mainfest_tool=no
7278 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7279 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7280 cat conftest.err >&5
7281 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7282 lt_cv_path_mainfest_tool=yes
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7287 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7288 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7298 rhapsody* | darwin*)
7299 if test -n "$ac_tool_prefix"; then
7300 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7301 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7305 $as_echo_n "(cached) " >&6
7307 if test -n "$DSYMUTIL"; then
7308 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7328 if test -n "$DSYMUTIL"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7330 $as_echo "$DSYMUTIL" >&6; }
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7338 if test -z "$ac_cv_prog_DSYMUTIL"; then
7339 ac_ct_DSYMUTIL=$DSYMUTIL
7340 # Extract the first word of "dsymutil", so it can be a program name with args.
7341 set dummy dsymutil; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7345 $as_echo_n "(cached) " >&6
7347 if test -n "$ac_ct_DSYMUTIL"; then
7348 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7367 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7368 if test -n "$ac_ct_DSYMUTIL"; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7370 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7376 if test "x$ac_ct_DSYMUTIL" = x; then
7379 case $cross_compiling:$ac_tool_warned in
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7383 ac_tool_warned=yes ;;
7385 DSYMUTIL=$ac_ct_DSYMUTIL
7388 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7391 if test -n "$ac_tool_prefix"; then
7392 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7393 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if ${ac_cv_prog_NMEDIT+:} false; then :
7397 $as_echo_n "(cached) " >&6
7399 if test -n "$NMEDIT"; then
7400 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7409 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 NMEDIT=$ac_cv_prog_NMEDIT
7420 if test -n "$NMEDIT"; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7422 $as_echo "$NMEDIT" >&6; }
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7430 if test -z "$ac_cv_prog_NMEDIT"; then
7431 ac_ct_NMEDIT=$NMEDIT
7432 # Extract the first word of "nmedit", so it can be a program name with args.
7433 set dummy nmedit; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7437 $as_echo_n "(cached) " >&6
7439 if test -n "$ac_ct_NMEDIT"; then
7440 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7449 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7460 if test -n "$ac_ct_NMEDIT"; then
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7462 $as_echo "$ac_ct_NMEDIT" >&6; }
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7468 if test "x$ac_ct_NMEDIT" = x; then
7471 case $cross_compiling:$ac_tool_warned in
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7475 ac_tool_warned=yes ;;
7477 NMEDIT=$ac_ct_NMEDIT
7480 NMEDIT="$ac_cv_prog_NMEDIT"
7483 if test -n "$ac_tool_prefix"; then
7484 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7485 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if ${ac_cv_prog_LIPO+:} false; then :
7489 $as_echo_n "(cached) " >&6
7491 if test -n "$LIPO"; then
7492 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7511 LIPO=$ac_cv_prog_LIPO
7512 if test -n "$LIPO"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7514 $as_echo "$LIPO" >&6; }
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7522 if test -z "$ac_cv_prog_LIPO"; then
7524 # Extract the first word of "lipo", so it can be a program name with args.
7525 set dummy lipo; ac_word=$2
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527 $as_echo_n "checking for $ac_word... " >&6; }
7528 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7529 $as_echo_n "(cached) " >&6
7531 if test -n "$ac_ct_LIPO"; then
7532 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7541 ac_cv_prog_ac_ct_LIPO="lipo"
7542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7551 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7552 if test -n "$ac_ct_LIPO"; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7554 $as_echo "$ac_ct_LIPO" >&6; }
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7560 if test "x$ac_ct_LIPO" = x; then
7563 case $cross_compiling:$ac_tool_warned in
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7567 ac_tool_warned=yes ;;
7572 LIPO="$ac_cv_prog_LIPO"
7575 if test -n "$ac_tool_prefix"; then
7576 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7577 set dummy ${ac_tool_prefix}otool; ac_word=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if ${ac_cv_prog_OTOOL+:} false; then :
7581 $as_echo_n "(cached) " >&6
7583 if test -n "$OTOOL"; then
7584 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7593 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 OTOOL=$ac_cv_prog_OTOOL
7604 if test -n "$OTOOL"; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7606 $as_echo "$OTOOL" >&6; }
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 $as_echo "no" >&6; }
7614 if test -z "$ac_cv_prog_OTOOL"; then
7616 # Extract the first word of "otool", so it can be a program name with args.
7617 set dummy otool; ac_word=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7621 $as_echo_n "(cached) " >&6
7623 if test -n "$ac_ct_OTOOL"; then
7624 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7633 ac_cv_prog_ac_ct_OTOOL="otool"
7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7644 if test -n "$ac_ct_OTOOL"; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7646 $as_echo "$ac_ct_OTOOL" >&6; }
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7652 if test "x$ac_ct_OTOOL" = x; then
7655 case $cross_compiling:$ac_tool_warned in
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7659 ac_tool_warned=yes ;;
7664 OTOOL="$ac_cv_prog_OTOOL"
7667 if test -n "$ac_tool_prefix"; then
7668 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7669 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671 $as_echo_n "checking for $ac_word... " >&6; }
7672 if ${ac_cv_prog_OTOOL64+:} false; then :
7673 $as_echo_n "(cached) " >&6
7675 if test -n "$OTOOL64"; then
7676 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 test -z "$as_dir" && as_dir=.
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7685 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7695 OTOOL64=$ac_cv_prog_OTOOL64
7696 if test -n "$OTOOL64"; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7698 $as_echo "$OTOOL64" >&6; }
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 $as_echo "no" >&6; }
7706 if test -z "$ac_cv_prog_OTOOL64"; then
7707 ac_ct_OTOOL64=$OTOOL64
7708 # Extract the first word of "otool64", so it can be a program name with args.
7709 set dummy otool64; ac_word=$2
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 $as_echo_n "checking for $ac_word... " >&6; }
7712 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7713 $as_echo_n "(cached) " >&6
7715 if test -n "$ac_ct_OTOOL64"; then
7716 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 test -z "$as_dir" && as_dir=.
7723 for ac_exec_ext in '' $ac_executable_extensions; do
7724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7725 ac_cv_prog_ac_ct_OTOOL64="otool64"
7726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7736 if test -n "$ac_ct_OTOOL64"; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7738 $as_echo "$ac_ct_OTOOL64" >&6; }
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7744 if test "x$ac_ct_OTOOL64" = x; then
7747 case $cross_compiling:$ac_tool_warned in
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7751 ac_tool_warned=yes ;;
7753 OTOOL64=$ac_ct_OTOOL64
7756 OTOOL64="$ac_cv_prog_OTOOL64"
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7786 $as_echo_n "checking for -single_module linker flag... " >&6; }
7787 if ${lt_cv_apple_cc_single_mod+:} false; then :
7788 $as_echo_n "(cached) " >&6
7790 lt_cv_apple_cc_single_mod=no
7791 if test -z "${LT_MULTI_MODULE}"; then
7792 # By default we will add the -single_module flag. You can override
7793 # by either setting the environment variable LT_MULTI_MODULE
7794 # non-empty at configure time, or by adding -multi_module to the
7796 rm -rf libconftest.dylib*
7797 echo "int foo(void){return 1;}" > conftest.c
7798 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7799 -dynamiclib -Wl,-single_module conftest.c" >&5
7800 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7801 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7803 # If there is a non-empty error log, and "single_module"
7804 # appears in it, assume the flag caused a linker warning
7805 if test -s conftest.err && $GREP single_module conftest.err; then
7806 cat conftest.err >&5
7807 # Otherwise, if the output was created with a 0 exit code from
7808 # the compiler, it worked.
7809 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7810 lt_cv_apple_cc_single_mod=yes
7812 cat conftest.err >&5
7814 rm -rf libconftest.dylib*
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7819 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7822 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7823 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7824 $as_echo_n "(cached) " >&6
7826 lt_cv_ld_exported_symbols_list=no
7827 save_LDFLAGS=$LDFLAGS
7828 echo "_main" > conftest.sym
7829 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h. */
7841 if ac_fn_c_try_link "$LINENO"; then :
7842 lt_cv_ld_exported_symbols_list=yes
7844 lt_cv_ld_exported_symbols_list=no
7846 rm -f core conftest.err conftest.$ac_objext \
7847 conftest$ac_exeext conftest.$ac_ext
7848 LDFLAGS="$save_LDFLAGS"
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7852 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7855 $as_echo_n "checking for -force_load linker flag... " >&6; }
7856 if ${lt_cv_ld_force_load+:} false; then :
7857 $as_echo_n "(cached) " >&6
7859 lt_cv_ld_force_load=no
7860 cat > conftest.c << _LT_EOF
7861 int forced_loaded() { return 2;}
7863 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7864 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7865 echo "$AR cru libconftest.a conftest.o" >&5
7866 $AR cru libconftest.a conftest.o 2>&5
7867 echo "$RANLIB libconftest.a" >&5
7868 $RANLIB libconftest.a 2>&5
7869 cat > conftest.c << _LT_EOF
7870 int main() { return 0;}
7872 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7873 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7875 if test -s conftest.err && $GREP force_load conftest.err; then
7876 cat conftest.err >&5
7877 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7878 lt_cv_ld_force_load=yes
7880 cat conftest.err >&5
7882 rm -f conftest.err libconftest.a conftest conftest.c
7883 rm -rf conftest.dSYM
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7887 $as_echo "$lt_cv_ld_force_load" >&6; }
7889 rhapsody* | darwin1.[012])
7890 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7892 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7893 darwin*) # darwin 5.x on
7894 # if running on 10.5 or later, the deployment target defaults
7895 # to the OS version, if on x86, and 10.4, the deployment
7896 # target defaults to 10.4. Don't you love it?
7897 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7898 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7899 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7901 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7903 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7907 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7908 _lt_dar_single_mod='$single_module'
7910 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7911 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7913 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7915 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7916 _lt_dsymutil='~$DSYMUTIL $lib || :'
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7924 $as_echo_n "checking for ANSI C header files... " >&6; }
7925 if ${ac_cv_header_stdc+:} false; then :
7926 $as_echo_n "(cached) " >&6
7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h. */
7943 if ac_fn_c_try_compile "$LINENO"; then :
7944 ac_cv_header_stdc=yes
7946 ac_cv_header_stdc=no
7948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950 if test $ac_cv_header_stdc = yes; then
7951 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h. */
7957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7958 $EGREP "memchr" >/dev/null 2>&1; then :
7961 ac_cv_header_stdc=no
7967 if test $ac_cv_header_stdc = yes; then
7968 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7975 $EGREP "free" >/dev/null 2>&1; then :
7978 ac_cv_header_stdc=no
7984 if test $ac_cv_header_stdc = yes; then
7985 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7986 if test "$cross_compiling" = yes; then :
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7993 #if ((' ' & 0x0FF) == 0x020)
7994 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7995 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7997 # define ISLOWER(c) \
7998 (('a' <= (c) && (c) <= 'i') \
7999 || ('j' <= (c) && (c) <= 'r') \
8000 || ('s' <= (c) && (c) <= 'z'))
8001 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8004 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8009 for (i = 0; i < 256; i++)
8010 if (XOR (islower (i), ISLOWER (i))
8011 || toupper (i) != TOUPPER (i))
8016 if ac_fn_c_try_run "$LINENO"; then :
8019 ac_cv_header_stdc=no
8021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8022 conftest.$ac_objext conftest.beam conftest.$ac_ext
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8028 $as_echo "$ac_cv_header_stdc" >&6; }
8029 if test $ac_cv_header_stdc = yes; then
8031 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
8035 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8036 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8037 inttypes.h stdint.h unistd.h
8039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8040 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8042 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8043 cat >>confdefs.h <<_ACEOF
8044 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8052 for ac_header in dlfcn.h
8054 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8056 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8057 cat >>confdefs.h <<_ACEOF
8058 @%:@define HAVE_DLFCN_H 1
8079 @%:@ Check whether --enable-shared was given.
8080 if test "${enable_shared+set}" = set; then :
8081 enableval=$enable_shared; p=${PACKAGE-default}
8083 yes) enable_shared=yes ;;
8084 no) enable_shared=no ;;
8087 # Look at the argument we got. We use all the common list separators.
8088 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8089 for pkg in $enableval; do
8091 if test "X$pkg" = "X$p"; then
8110 @%:@ Check whether --enable-static was given.
8111 if test "${enable_static+set}" = set; then :
8112 enableval=$enable_static; p=${PACKAGE-default}
8114 yes) enable_static=yes ;;
8115 no) enable_static=no ;;
8118 # Look at the argument we got. We use all the common list separators.
8119 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8120 for pkg in $enableval; do
8122 if test "X$pkg" = "X$p"; then
8142 @%:@ Check whether --with-pic was given.
8143 if test "${with_pic+set}" = set; then :
8144 withval=$with_pic; lt_p=${PACKAGE-default}
8146 yes|no) pic_mode=$withval ;;
8149 # Look at the argument we got. We use all the common list separators.
8150 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8151 for lt_pkg in $withval; do
8153 if test "X$lt_pkg" = "X$lt_p"; then
8165 test -z "$pic_mode" && pic_mode=default
8173 @%:@ Check whether --enable-fast-install was given.
8174 if test "${enable_fast_install+set}" = set; then :
8175 enableval=$enable_fast_install; p=${PACKAGE-default}
8177 yes) enable_fast_install=yes ;;
8178 no) enable_fast_install=no ;;
8180 enable_fast_install=no
8181 # Look at the argument we got. We use all the common list separators.
8182 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8183 for pkg in $enableval; do
8185 if test "X$pkg" = "X$p"; then
8186 enable_fast_install=yes
8193 enable_fast_install=yes
8206 # This can be used to rebuild libtool when needed
8207 LIBTOOL_DEPS="$ltmain"
8209 # Always use our own libtool.
8210 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8241 test -z "$LN_S" && LN_S="ln -s"
8256 if test -n "${ZSH_VERSION+set}" ; then
8257 setopt NO_GLOB_SUBST
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8261 $as_echo_n "checking for objdir... " >&6; }
8262 if ${lt_cv_objdir+:} false; then :
8263 $as_echo_n "(cached) " >&6
8265 rm -f .libs 2>/dev/null
8266 mkdir .libs 2>/dev/null
8267 if test -d .libs; then
8270 # MS-DOS does not allow filenames that begin with a dot.
8273 rmdir .libs 2>/dev/null
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8276 $as_echo "$lt_cv_objdir" >&6; }
8277 objdir=$lt_cv_objdir
8283 cat >>confdefs.h <<_ACEOF
8284 @%:@define LT_OBJDIR "$lt_cv_objdir/"
8292 # AIX sometimes has problems with the GCC collect2 program. For some
8293 # reason, if we set the COLLECT_NAMES environment variable, the problems
8294 # vanish in a puff of smoke.
8295 if test "X${COLLECT_NAMES+set}" != Xset; then
8297 export COLLECT_NAMES
8304 can_build_shared=yes
8306 # All known linkers require a `.a' archive for static linking (except MSVC,
8307 # which needs '.lib').
8310 with_gnu_ld="$lt_cv_prog_gnu_ld"
8313 old_CFLAGS="$CFLAGS"
8315 # Set sane defaults for various variables
8316 test -z "$CC" && CC=cc
8317 test -z "$LTCC" && LTCC=$CC
8318 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8319 test -z "$LD" && LD=ld
8320 test -z "$ac_objext" && ac_objext=o
8322 for cc_temp in $compiler""; do
8324 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8325 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8330 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8333 # Only perform the check for file, if the check method requires it
8334 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8335 case $deplibs_check_method in
8337 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8339 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8340 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8341 $as_echo_n "(cached) " >&6
8345 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8348 lt_save_MAGIC_CMD="$MAGIC_CMD"
8349 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8350 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8351 for ac_dir in $ac_dummy; do
8353 test -z "$ac_dir" && ac_dir=.
8354 if test -f $ac_dir/${ac_tool_prefix}file; then
8355 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8356 if test -n "$file_magic_test_file"; then
8357 case $deplibs_check_method in
8359 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8360 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8361 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8362 $EGREP "$file_magic_regex" > /dev/null; then
8367 *** Warning: the command libtool uses to detect shared libraries,
8368 *** $file_magic_cmd, produces output that libtool cannot recognize.
8369 *** The result is that libtool may fail to recognize shared libraries
8370 *** as such. This will affect the creation of libtool libraries that
8371 *** depend on shared libraries, but programs linked with such libtool
8372 *** libraries will work regardless of this problem. Nevertheless, you
8373 *** may want to report the problem to your system manager and/or to
8374 *** bug-libtool@gnu.org
8384 MAGIC_CMD="$lt_save_MAGIC_CMD"
8389 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8390 if test -n "$MAGIC_CMD"; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8392 $as_echo "$MAGIC_CMD" >&6; }
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8402 if test -z "$lt_cv_path_MAGIC_CMD"; then
8403 if test -n "$ac_tool_prefix"; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8405 $as_echo_n "checking for file... " >&6; }
8406 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8407 $as_echo_n "(cached) " >&6
8411 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8414 lt_save_MAGIC_CMD="$MAGIC_CMD"
8415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8416 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8417 for ac_dir in $ac_dummy; do
8419 test -z "$ac_dir" && ac_dir=.
8420 if test -f $ac_dir/file; then
8421 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8422 if test -n "$file_magic_test_file"; then
8423 case $deplibs_check_method in
8425 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8426 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8427 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8428 $EGREP "$file_magic_regex" > /dev/null; then
8433 *** Warning: the command libtool uses to detect shared libraries,
8434 *** $file_magic_cmd, produces output that libtool cannot recognize.
8435 *** The result is that libtool may fail to recognize shared libraries
8436 *** as such. This will affect the creation of libtool libraries that
8437 *** depend on shared libraries, but programs linked with such libtool
8438 *** libraries will work regardless of this problem. Nevertheless, you
8439 *** may want to report the problem to your system manager and/or to
8440 *** bug-libtool@gnu.org
8450 MAGIC_CMD="$lt_save_MAGIC_CMD"
8455 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8456 if test -n "$MAGIC_CMD"; then
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8458 $as_echo "$MAGIC_CMD" >&6; }
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 $as_echo "no" >&6; }
8474 # Use C for the default configuration in the libtool script
8478 ac_cpp='$CPP $CPPFLAGS'
8479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8484 # Source file extension for C test sources.
8487 # Object file extension for compiled C test sources.
8491 # Code to be used in simple compile tests
8492 lt_simple_compile_test_code="int some_variable = 0;"
8494 # Code to be used in simple link tests
8495 lt_simple_link_test_code='int main(){return(0);}'
8503 # If no C compiler was specified, use CC.
8506 # If no C compiler flags were specified, use CFLAGS.
8507 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8509 # Allow CC to be a program name with arguments.
8512 # Save the default compiler, since it gets overwritten when the other
8513 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8514 compiler_DEFAULT=$CC
8516 # save warnings/boilerplate of simple test code
8517 ac_outfile=conftest.$ac_objext
8518 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8519 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8520 _lt_compiler_boilerplate=`cat conftest.err`
8523 ac_outfile=conftest.$ac_objext
8524 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8525 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8526 _lt_linker_boilerplate=`cat conftest.err`
8531 ## There is no encapsulation within the following macros, do not change
8532 ## the running order or otherwise move them around unless you know exactly
8533 ## what you are doing...
8534 if test -n "$compiler"; then
8536 lt_prog_compiler_no_builtin_flag=
8538 if test "$GCC" = yes; then
8539 case $cc_basename in
8541 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8543 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8547 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8548 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8549 $as_echo_n "(cached) " >&6
8551 lt_cv_prog_compiler_rtti_exceptions=no
8552 ac_outfile=conftest.$ac_objext
8553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8554 lt_compiler_flag="-fno-rtti -fno-exceptions"
8555 # Insert the option either (1) after the last *FLAGS variable, or
8556 # (2) before a word containing "conftest.", or (3) at the end.
8557 # Note that $ac_compile itself does not contain backslashes and begins
8558 # with a dollar sign (not a hyphen), so the echo should work correctly.
8559 # The option is referenced via a variable to avoid confusing sed.
8560 lt_compile=`echo "$ac_compile" | $SED \
8561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8563 -e 's:$: $lt_compiler_flag:'`
8564 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8565 (eval "$lt_compile" 2>conftest.err)
8567 cat conftest.err >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 if (exit $ac_status) && test -s "$ac_outfile"; then
8570 # The compiler can only warn and ignore the option if not recognized
8571 # So say no if there are warnings other than the usual output.
8572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8573 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8574 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8575 lt_cv_prog_compiler_rtti_exceptions=yes
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8582 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8584 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8585 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8597 lt_prog_compiler_wl=
8598 lt_prog_compiler_pic=
8599 lt_prog_compiler_static=
8602 if test "$GCC" = yes; then
8603 lt_prog_compiler_wl='-Wl,'
8604 lt_prog_compiler_static='-static'
8608 # All AIX code is PIC.
8609 if test "$host_cpu" = ia64; then
8610 # AIX 5 now supports IA64 processor
8611 lt_prog_compiler_static='-Bstatic'
8618 # see comment about AmigaOS4 .so support
8619 lt_prog_compiler_pic='-fPIC'
8622 # FIXME: we need at least 68020 code to build shared libraries, but
8623 # adding the `-m68020' flag to GCC prevents building anything better,
8625 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8630 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8631 # PIC is the default for these OSes.
8634 mingw* | cygwin* | pw32* | os2* | cegcc*)
8635 # This hack is so that the source file can tell whether it is being
8636 # built for inclusion in a dll (and should export symbols for example).
8637 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8638 # (--disable-auto-import) libraries
8639 lt_prog_compiler_pic='-DDLL_EXPORT'
8642 darwin* | rhapsody*)
8643 # PIC is the default on this platform
8644 # Common symbols not allowed in MH_DYLIB files
8645 lt_prog_compiler_pic='-fno-common'
8649 # PIC is the default for Haiku.
8650 # The "-static" flag exists, but is broken.
8651 lt_prog_compiler_static=
8655 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8656 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8657 # sets the default TLS model and affects inlining.
8663 lt_prog_compiler_pic='-fPIC'
8669 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8670 # Instead, we relocate shared libraries at runtime.
8674 # Just because we use GCC doesn't mean we suddenly get shared libraries
8675 # on systems that don't support them.
8676 lt_prog_compiler_can_build_shared=no
8681 # QNX uses GNU C++, but need to define -shared option too, otherwise
8683 lt_prog_compiler_pic='-fPIC -shared'
8687 if test -d /usr/nec; then
8688 lt_prog_compiler_pic=-Kconform_pic
8693 lt_prog_compiler_pic='-fPIC'
8697 case $cc_basename in
8698 nvcc*) # Cuda Compiler Driver 2.2
8699 lt_prog_compiler_wl='-Xlinker '
8700 if test -n "$lt_prog_compiler_pic"; then
8701 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8706 # PORTME Check for flag to pass linker flags through the system compiler.
8709 lt_prog_compiler_wl='-Wl,'
8710 if test "$host_cpu" = ia64; then
8711 # AIX 5 now supports IA64 processor
8712 lt_prog_compiler_static='-Bstatic'
8714 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8718 mingw* | cygwin* | pw32* | os2* | cegcc*)
8719 # This hack is so that the source file can tell whether it is being
8720 # built for inclusion in a dll (and should export symbols for example).
8721 lt_prog_compiler_pic='-DDLL_EXPORT'
8724 hpux9* | hpux10* | hpux11*)
8725 lt_prog_compiler_wl='-Wl,'
8726 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8733 lt_prog_compiler_pic='+Z'
8736 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8737 lt_prog_compiler_static='${wl}-a ${wl}archive'
8740 irix5* | irix6* | nonstopux*)
8741 lt_prog_compiler_wl='-Wl,'
8742 # PIC (with -KPIC) is the default.
8743 lt_prog_compiler_static='-non_shared'
8746 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8747 case $cc_basename in
8748 # old Intel for x86_64 which still supported -KPIC.
8750 lt_prog_compiler_wl='-Wl,'
8751 lt_prog_compiler_pic='-KPIC'
8752 lt_prog_compiler_static='-static'
8754 # icc used to be incompatible with GCC.
8755 # ICC 10 doesn't accept -KPIC any more.
8757 lt_prog_compiler_wl='-Wl,'
8758 lt_prog_compiler_pic='-fPIC'
8759 lt_prog_compiler_static='-static'
8761 # Lahey Fortran 8.1.
8763 lt_prog_compiler_wl='-Wl,'
8764 lt_prog_compiler_pic='--shared'
8765 lt_prog_compiler_static='--static'
8768 # NAG Fortran compiler
8769 lt_prog_compiler_wl='-Wl,-Wl,,'
8770 lt_prog_compiler_pic='-PIC'
8771 lt_prog_compiler_static='-Bstatic'
8773 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8774 # Portland Group compilers (*not* the Pentium gcc compiler,
8775 # which looks to be a dead project)
8776 lt_prog_compiler_wl='-Wl,'
8777 lt_prog_compiler_pic='-fpic'
8778 lt_prog_compiler_static='-Bstatic'
8781 lt_prog_compiler_wl='-Wl,'
8782 # All Alpha code is PIC.
8783 lt_prog_compiler_static='-non_shared'
8785 xl* | bgxl* | bgf* | mpixl*)
8786 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8787 lt_prog_compiler_wl='-Wl,'
8788 lt_prog_compiler_pic='-qpic'
8789 lt_prog_compiler_static='-qstaticlink'
8792 case `$CC -V 2>&1 | sed 5q` in
8793 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8794 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8795 lt_prog_compiler_pic='-KPIC'
8796 lt_prog_compiler_static='-Bstatic'
8797 lt_prog_compiler_wl=''
8799 *Sun\ F* | *Sun*Fortran*)
8800 lt_prog_compiler_pic='-KPIC'
8801 lt_prog_compiler_static='-Bstatic'
8802 lt_prog_compiler_wl='-Qoption ld '
8806 lt_prog_compiler_pic='-KPIC'
8807 lt_prog_compiler_static='-Bstatic'
8808 lt_prog_compiler_wl='-Wl,'
8810 *Intel*\ [CF]*Compiler*)
8811 lt_prog_compiler_wl='-Wl,'
8812 lt_prog_compiler_pic='-fPIC'
8813 lt_prog_compiler_static='-static'
8816 lt_prog_compiler_wl='-Wl,'
8817 lt_prog_compiler_pic='-fpic'
8818 lt_prog_compiler_static='-Bstatic'
8826 lt_prog_compiler_pic='-KPIC'
8827 lt_prog_compiler_static='-Bstatic'
8831 # QNX uses GNU C++, but need to define -shared option too, otherwise
8833 lt_prog_compiler_pic='-fPIC -shared'
8836 osf3* | osf4* | osf5*)
8837 lt_prog_compiler_wl='-Wl,'
8838 # All OSF/1 code is PIC.
8839 lt_prog_compiler_static='-non_shared'
8843 lt_prog_compiler_static='-non_shared'
8847 lt_prog_compiler_pic='-KPIC'
8848 lt_prog_compiler_static='-Bstatic'
8849 case $cc_basename in
8850 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8851 lt_prog_compiler_wl='-Qoption ld ';;
8853 lt_prog_compiler_wl='-Wl,';;
8858 lt_prog_compiler_wl='-Qoption ld '
8859 lt_prog_compiler_pic='-PIC'
8860 lt_prog_compiler_static='-Bstatic'
8863 sysv4 | sysv4.2uw2* | sysv4.3*)
8864 lt_prog_compiler_wl='-Wl,'
8865 lt_prog_compiler_pic='-KPIC'
8866 lt_prog_compiler_static='-Bstatic'
8870 if test -d /usr/nec ;then
8871 lt_prog_compiler_pic='-Kconform_pic'
8872 lt_prog_compiler_static='-Bstatic'
8876 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8877 lt_prog_compiler_wl='-Wl,'
8878 lt_prog_compiler_pic='-KPIC'
8879 lt_prog_compiler_static='-Bstatic'
8883 lt_prog_compiler_wl='-Wl,'
8884 lt_prog_compiler_can_build_shared=no
8888 lt_prog_compiler_pic='-pic'
8889 lt_prog_compiler_static='-Bstatic'
8893 lt_prog_compiler_can_build_shared=no
8899 # For platforms which do not support PIC, -DPIC is meaningless:
8901 lt_prog_compiler_pic=
8904 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8909 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8910 if ${lt_cv_prog_compiler_pic+:} false; then :
8911 $as_echo_n "(cached) " >&6
8913 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8916 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8917 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8920 # Check to make sure the PIC flag actually works.
8922 if test -n "$lt_prog_compiler_pic"; then
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8924 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8925 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8926 $as_echo_n "(cached) " >&6
8928 lt_cv_prog_compiler_pic_works=no
8929 ac_outfile=conftest.$ac_objext
8930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8931 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8932 # Insert the option either (1) after the last *FLAGS variable, or
8933 # (2) before a word containing "conftest.", or (3) at the end.
8934 # Note that $ac_compile itself does not contain backslashes and begins
8935 # with a dollar sign (not a hyphen), so the echo should work correctly.
8936 # The option is referenced via a variable to avoid confusing sed.
8937 lt_compile=`echo "$ac_compile" | $SED \
8938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8940 -e 's:$: $lt_compiler_flag:'`
8941 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8942 (eval "$lt_compile" 2>conftest.err)
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 if (exit $ac_status) && test -s "$ac_outfile"; then
8947 # The compiler can only warn and ignore the option if not recognized
8948 # So say no if there are warnings other than the usual output.
8949 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8951 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8952 lt_cv_prog_compiler_pic_works=yes
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8959 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8961 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8962 case $lt_prog_compiler_pic in
8964 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8967 lt_prog_compiler_pic=
8968 lt_prog_compiler_can_build_shared=no
8984 # Check to make sure the static flag actually works.
8986 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8988 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8989 if ${lt_cv_prog_compiler_static_works+:} false; then :
8990 $as_echo_n "(cached) " >&6
8992 lt_cv_prog_compiler_static_works=no
8993 save_LDFLAGS="$LDFLAGS"
8994 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8995 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8996 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8997 # The linker can only warn and ignore the option if not recognized
8998 # So say no if there are warnings
8999 if test -s conftest.err; then
9000 # Append any errors to the config.log.
9001 cat conftest.err 1>&5
9002 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9004 if diff conftest.exp conftest.er2 >/dev/null; then
9005 lt_cv_prog_compiler_static_works=yes
9008 lt_cv_prog_compiler_static_works=yes
9012 LDFLAGS="$save_LDFLAGS"
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9016 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9018 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9021 lt_prog_compiler_static=
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9031 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9032 if ${lt_cv_prog_compiler_c_o+:} false; then :
9033 $as_echo_n "(cached) " >&6
9035 lt_cv_prog_compiler_c_o=no
9036 $RM -r conftest 2>/dev/null
9040 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9042 lt_compiler_flag="-o out/conftest2.$ac_objext"
9043 # Insert the option either (1) after the last *FLAGS variable, or
9044 # (2) before a word containing "conftest.", or (3) at the end.
9045 # Note that $ac_compile itself does not contain backslashes and begins
9046 # with a dollar sign (not a hyphen), so the echo should work correctly.
9047 lt_compile=`echo "$ac_compile" | $SED \
9048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9050 -e 's:$: $lt_compiler_flag:'`
9051 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9052 (eval "$lt_compile" 2>out/conftest.err)
9054 cat out/conftest.err >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9058 # The compiler can only warn and ignore the option if not recognized
9059 # So say no if there are warnings
9060 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9061 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9062 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9063 lt_cv_prog_compiler_c_o=yes
9068 # SGI C++ compiler will create directory out/ii_files/ for
9069 # template instantiation
9070 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9071 $RM out/* && rmdir out
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9078 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9086 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9087 if ${lt_cv_prog_compiler_c_o+:} false; then :
9088 $as_echo_n "(cached) " >&6
9090 lt_cv_prog_compiler_c_o=no
9091 $RM -r conftest 2>/dev/null
9095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9097 lt_compiler_flag="-o out/conftest2.$ac_objext"
9098 # Insert the option either (1) after the last *FLAGS variable, or
9099 # (2) before a word containing "conftest.", or (3) at the end.
9100 # Note that $ac_compile itself does not contain backslashes and begins
9101 # with a dollar sign (not a hyphen), so the echo should work correctly.
9102 lt_compile=`echo "$ac_compile" | $SED \
9103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9105 -e 's:$: $lt_compiler_flag:'`
9106 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9107 (eval "$lt_compile" 2>out/conftest.err)
9109 cat out/conftest.err >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9113 # The compiler can only warn and ignore the option if not recognized
9114 # So say no if there are warnings
9115 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9116 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9117 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9118 lt_cv_prog_compiler_c_o=yes
9123 # SGI C++ compiler will create directory out/ii_files/ for
9124 # template instantiation
9125 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9126 $RM out/* && rmdir out
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9133 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9138 hard_links="nottested"
9139 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9140 # do not overwrite the value of need_locks provided by the user
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9142 $as_echo_n "checking if we can lock with hard links... " >&6; }
9145 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9147 ln conftest.a conftest.b 2>&5 || hard_links=no
9148 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9150 $as_echo "$hard_links" >&6; }
9151 if test "$hard_links" = no; then
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9153 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9166 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9169 allow_undefined_flag=
9170 always_export_symbols=no
9172 archive_expsym_cmds=
9173 compiler_needs_object=no
9174 enable_shared_with_static_runtimes=no
9175 export_dynamic_flag_spec=
9176 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9177 hardcode_automatic=no
9179 hardcode_direct_absolute=no
9180 hardcode_libdir_flag_spec=
9181 hardcode_libdir_separator=
9183 hardcode_shlibpath_var=unsupported
9185 link_all_deplibs=unknown
9188 old_archive_from_new_cmds=
9189 old_archive_from_expsyms_cmds=
9190 thread_safe_flag_spec=
9191 whole_archive_flag_spec=
9192 # include_expsyms should be a list of space-separated symbols to be *always*
9193 # included in the symbol list
9195 # exclude_expsyms can be an extended regexp of symbols to exclude
9196 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9197 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9198 # as well as any symbol that contains `d'.
9199 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9200 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9201 # platforms (ab)use it in PIC code, but their linkers get confused if
9202 # the symbol is explicitly referenced. Since portable code cannot
9203 # rely on this symbol name, it's probably fine to never include it in
9204 # preloaded symbol tables.
9205 # Exclude shared library initialization/finalization symbols.
9206 extract_expsyms_cmds=
9209 cygwin* | mingw* | pw32* | cegcc*)
9210 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9211 # When not using gcc, we currently assume that we are using
9212 # Microsoft Visual C++.
9213 if test "$GCC" != yes; then
9218 # we just hope/assume this is gcc and not c89 (= MSVC++)
9224 linux* | k*bsd*-gnu | gnu*)
9231 # On some targets, GNU ld is compatible enough with the native linker
9232 # that we're better off using the native interface for both.
9233 lt_use_gnu_ld_interface=no
9234 if test "$with_gnu_ld" = yes; then
9237 # The AIX port of GNU ld has always aspired to compatibility
9238 # with the native linker. However, as the warning in the GNU ld
9239 # block says, versions before 2.19.5* couldn't really create working
9240 # shared libraries, regardless of the interface used.
9241 case `$LD -v 2>&1` in
9242 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9243 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9244 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9246 lt_use_gnu_ld_interface=yes
9251 lt_use_gnu_ld_interface=yes
9256 if test "$lt_use_gnu_ld_interface" = yes; then
9257 # If archive_cmds runs LD, not CC, wlarc should be empty
9260 # Set some defaults for GNU ld with shared library support. These
9261 # are reset later if shared libraries are not supported. Putting them
9262 # here allows them to be overridden if necessary.
9263 runpath_var=LD_RUN_PATH
9264 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9265 export_dynamic_flag_spec='${wl}--export-dynamic'
9266 # ancient GNU ld didn't support --whole-archive et. al.
9267 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9268 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9270 whole_archive_flag_spec=
9272 supports_anon_versioning=no
9273 case `$LD -v 2>&1` in
9274 *GNU\ gold*) supports_anon_versioning=yes ;;
9275 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9276 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9277 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9278 *\ 2.11.*) ;; # other 2.11 versions
9279 *) supports_anon_versioning=yes ;;
9282 # See if GNU ld supports shared libraries.
9285 # On AIX/PPC, the GNU linker is very broken
9286 if test "$host_cpu" != ia64; then
9290 *** Warning: the GNU linker, at least up to release 2.19, is reported
9291 *** to be unable to reliably create shared libraries on AIX.
9292 *** Therefore, libtool is disabling shared libraries support. If you
9293 *** really care for shared libraries, you may want to install binutils
9294 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9295 *** You will then need to restart the configuration process.
9304 # see comment about AmigaOS4 .so support
9305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9306 archive_expsym_cmds=''
9309 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)'
9310 hardcode_libdir_flag_spec='-L$libdir'
9311 hardcode_minus_L=yes
9317 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9318 allow_undefined_flag=unsupported
9319 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9320 # support --undefined. This deserves some investigation. FIXME
9321 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9327 cygwin* | mingw* | pw32* | cegcc*)
9328 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9329 # as there is no search path for DLLs.
9330 hardcode_libdir_flag_spec='-L$libdir'
9331 export_dynamic_flag_spec='${wl}--export-all-symbols'
9332 allow_undefined_flag=unsupported
9333 always_export_symbols=no
9334 enable_shared_with_static_runtimes=yes
9335 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'
9336 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9338 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9340 # If the export-symbols file already is a .def file (1st line
9341 # is EXPORTS), use it as is; otherwise, prepend...
9342 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9343 cp $export_symbols $output_objdir/$soname.def;
9345 echo EXPORTS > $output_objdir/$soname.def;
9346 cat $export_symbols >> $output_objdir/$soname.def;
9348 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9356 link_all_deplibs=yes
9361 hardcode_shlibpath_var=no
9362 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9363 export_dynamic_flag_spec='${wl}-E'
9364 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9365 # Instead, shared libraries are loaded at an image base (0x10000000 by
9366 # default) and relocated if they conflict, which is a slow very memory
9367 # consuming and fragmenting process. To avoid this, we pick a random,
9368 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9369 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9370 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9371 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'
9374 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9376 if test "$host_os" = linux-dietlibc; then
9377 case $cc_basename in
9378 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9381 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9382 && test "$tmp_diet" = no
9384 tmp_addflag=' $pic_flag'
9385 tmp_sharedflag='-shared'
9386 case $cc_basename,$host_cpu in
9387 pgcc*) # Portland Group C compiler
9388 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'
9389 tmp_addflag=' $pic_flag'
9391 pgf77* | pgf90* | pgf95* | pgfortran*)
9392 # Portland Group f77 and f90 compilers
9393 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'
9394 tmp_addflag=' $pic_flag -Mnomain' ;;
9395 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9396 tmp_addflag=' -i_dynamic' ;;
9397 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9398 tmp_addflag=' -i_dynamic -nofor_main' ;;
9399 ifc* | ifort*) # Intel Fortran compiler
9400 tmp_addflag=' -nofor_main' ;;
9401 lf95*) # Lahey Fortran 8.1
9402 whole_archive_flag_spec=
9403 tmp_sharedflag='--shared' ;;
9404 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9405 tmp_sharedflag='-qmkshrobj'
9407 nvcc*) # Cuda Compiler Driver 2.2
9408 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'
9409 compiler_needs_object=yes
9412 case `$CC -V 2>&1 | sed 5q` in
9413 *Sun\ C*) # Sun C 5.9
9414 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'
9415 compiler_needs_object=yes
9416 tmp_sharedflag='-G' ;;
9417 *Sun\ F*) # Sun Fortran 8.3
9418 tmp_sharedflag='-G' ;;
9420 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422 if test "x$supports_anon_versioning" = xyes; then
9423 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9424 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9425 echo "local: *; };" >> $output_objdir/$libname.ver~
9426 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9429 case $cc_basename in
9430 xlf* | bgf* | bgxlf* | mpixlf*)
9431 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9432 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9433 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9434 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9435 if test "x$supports_anon_versioning" = xyes; then
9436 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9437 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9438 echo "local: *; };" >> $output_objdir/$libname.ver~
9439 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9448 netbsd* | netbsdelf*-gnu)
9449 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9450 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9453 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9454 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9459 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9463 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9464 *** create shared libraries on Solaris systems. Therefore, libtool
9465 *** is disabling shared libraries support. We urge you to upgrade GNU
9466 *** binutils to release 2.9.1 or newer. Another option is to modify
9467 *** your PATH or compiler configuration so that the native linker is
9468 *** used, and then restart.
9471 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9472 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9473 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9479 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9480 case `$LD -v 2>&1` in
9481 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9485 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9486 *** reliably create shared libraries on SCO systems. Therefore, libtool
9487 *** is disabling shared libraries support. We urge you to upgrade GNU
9488 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9489 *** your PATH or compiler configuration so that the native linker is
9490 *** used, and then restart.
9495 # For security reasons, it is highly recommended that you always
9496 # use absolute paths for naming shared libraries, and exclude the
9497 # DT_RUNPATH tag from executables and libraries. But doing so
9498 # requires that you compile everything twice, which is a pain.
9499 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9500 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9502 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9511 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9514 hardcode_shlibpath_var=no
9518 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9519 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9520 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9527 if test "$ld_shlibs" = no; then
9529 hardcode_libdir_flag_spec=
9530 export_dynamic_flag_spec=
9531 whole_archive_flag_spec=
9534 # PORTME fill in a description of your system's linker (not GNU ld)
9537 allow_undefined_flag=unsupported
9538 always_export_symbols=yes
9539 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'
9540 # Note: this linker hardcodes the directories in LIBPATH if there
9541 # are no directories specified by -L.
9542 hardcode_minus_L=yes
9543 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9544 # Neither direct hardcoding nor static linking is supported with a
9546 hardcode_direct=unsupported
9551 if test "$host_cpu" = ia64; then
9552 # On IA64, the linker does run time linking by default, so we don't
9553 # have to do anything special.
9554 aix_use_runtimelinking=no
9555 exp_sym_flag='-Bexport'
9558 # If we're using GNU nm, then we don't want the "-C" option.
9559 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9560 # Also, AIX nm treats weak defined symbols like other global
9561 # defined symbols, whereas GNU nm marks them as "W".
9562 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9563 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9565 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9567 aix_use_runtimelinking=no
9569 # Test if we are trying to use run time linking or normal
9570 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9571 # need to do runtime linking.
9572 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9573 for ld_flag in $LDFLAGS; do
9574 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9575 aix_use_runtimelinking=yes
9582 exp_sym_flag='-bexport'
9583 no_entry_flag='-bnoentry'
9586 # When large executables or shared objects are built, AIX ld can
9587 # have problems creating the table of contents. If linking a library
9588 # or program results in "error TOC overflow" add -mminimal-toc to
9589 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9590 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9594 hardcode_direct_absolute=yes
9595 hardcode_libdir_separator=':'
9596 link_all_deplibs=yes
9597 file_list_spec='${wl}-f,'
9599 if test "$GCC" = yes; then
9600 case $host_os in aix4.[012]|aix4.[012].*)
9601 # We only want to do this on AIX 4.2 and lower, the check
9602 # below for broken collect2 doesn't work under 4.3+
9603 collect2name=`${CC} -print-prog-name=collect2`
9604 if test -f "$collect2name" &&
9605 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9607 # We have reworked collect2
9610 # We have old collect2
9611 hardcode_direct=unsupported
9612 # It fails to find uninstalled libraries when the uninstalled
9613 # path is not listed in the libpath. Setting hardcode_minus_L
9614 # to unsupported forces relinking
9615 hardcode_minus_L=yes
9616 hardcode_libdir_flag_spec='-L$libdir'
9617 hardcode_libdir_separator=
9621 shared_flag='-shared'
9622 if test "$aix_use_runtimelinking" = yes; then
9623 shared_flag="$shared_flag "'${wl}-G'
9628 if test "$host_cpu" = ia64; then
9629 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9630 # chokes on -Wl,-G. The following line is correct:
9633 if test "$aix_use_runtimelinking" = yes; then
9634 shared_flag='${wl}-G'
9636 shared_flag='${wl}-bM:SRE'
9641 export_dynamic_flag_spec='${wl}-bexpall'
9642 # It seems that -bexpall does not export symbols beginning with
9643 # underscore (_), so it is better to generate a list of symbols to export.
9644 always_export_symbols=yes
9645 if test "$aix_use_runtimelinking" = yes; then
9646 # Warning - without using the other runtime loading flags (-brtl),
9647 # -berok will link without error, but may produce a broken library.
9648 allow_undefined_flag='-berok'
9649 # Determine the default libpath from the value encoded in an
9651 if test "${lt_cv_aix_libpath+set}" = set; then
9652 aix_libpath=$lt_cv_aix_libpath
9654 if ${lt_cv_aix_libpath_+:} false; then :
9655 $as_echo_n "(cached) " >&6
9657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9658 /* end confdefs.h. */
9668 if ac_fn_c_try_link "$LINENO"; then :
9670 lt_aix_libpath_sed='
9671 /Import File Strings/,/^$/ {
9673 s/^0 *\([^ ]*\) *$/\1/
9677 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9678 # Check for a 64-bit object if we didn't find anything.
9679 if test -z "$lt_cv_aix_libpath_"; then
9680 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9683 rm -f core conftest.err conftest.$ac_objext \
9684 conftest$ac_exeext conftest.$ac_ext
9685 if test -z "$lt_cv_aix_libpath_"; then
9686 lt_cv_aix_libpath_="/usr/lib:/lib"
9691 aix_libpath=$lt_cv_aix_libpath_
9694 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9695 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9697 if test "$host_cpu" = ia64; then
9698 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9699 allow_undefined_flag="-z nodefs"
9700 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"
9702 # Determine the default libpath from the value encoded in an
9704 if test "${lt_cv_aix_libpath+set}" = set; then
9705 aix_libpath=$lt_cv_aix_libpath
9707 if ${lt_cv_aix_libpath_+:} false; then :
9708 $as_echo_n "(cached) " >&6
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9721 if ac_fn_c_try_link "$LINENO"; then :
9723 lt_aix_libpath_sed='
9724 /Import File Strings/,/^$/ {
9726 s/^0 *\([^ ]*\) *$/\1/
9730 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9731 # Check for a 64-bit object if we didn't find anything.
9732 if test -z "$lt_cv_aix_libpath_"; then
9733 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9736 rm -f core conftest.err conftest.$ac_objext \
9737 conftest$ac_exeext conftest.$ac_ext
9738 if test -z "$lt_cv_aix_libpath_"; then
9739 lt_cv_aix_libpath_="/usr/lib:/lib"
9744 aix_libpath=$lt_cv_aix_libpath_
9747 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9748 # Warning - without using the other run time loading flags,
9749 # -berok will link without error, but may produce a broken library.
9750 no_undefined_flag=' ${wl}-bernotok'
9751 allow_undefined_flag=' ${wl}-berok'
9752 if test "$with_gnu_ld" = yes; then
9753 # We only use this code for GNU lds that support --whole-archive.
9754 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9756 # Exported symbols can be pulled into shared objects from archives
9757 whole_archive_flag_spec='$convenience'
9759 archive_cmds_need_lc=yes
9760 # This is similar to how AIX traditionally builds its shared libraries.
9761 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9769 # see comment about AmigaOS4 .so support
9770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9771 archive_expsym_cmds=''
9774 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)'
9775 hardcode_libdir_flag_spec='-L$libdir'
9776 hardcode_minus_L=yes
9782 export_dynamic_flag_spec=-rdynamic
9785 cygwin* | mingw* | pw32* | cegcc*)
9786 # When not using gcc, we currently assume that we are using
9787 # Microsoft Visual C++.
9788 # hardcode_libdir_flag_spec is actually meaningless, as there is
9789 # no search path for DLLs.
9790 case $cc_basename in
9793 hardcode_libdir_flag_spec=' '
9794 allow_undefined_flag=unsupported
9795 always_export_symbols=yes
9797 # Tell ltmain to make .lib files, not .a files.
9799 # Tell ltmain to make .dll files, not .so files.
9801 # FIXME: Setting linknames here is a bad hack.
9802 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9803 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9804 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9806 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9808 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9810 # The linker will not automatically build a static lib if we build a DLL.
9811 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9812 enable_shared_with_static_runtimes=yes
9813 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9814 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9816 old_postinstall_cmds='chmod 644 $oldlib'
9817 postlink_cmds='lt_outputfile="@OUTPUT@"~
9818 lt_tool_outputfile="@TOOL_OUTPUT@"~
9819 case $lt_outputfile in
9822 lt_outputfile="$lt_outputfile.exe"
9823 lt_tool_outputfile="$lt_tool_outputfile.exe"
9826 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9827 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9828 $RM "$lt_outputfile.manifest";
9832 # Assume MSVC wrapper
9833 hardcode_libdir_flag_spec=' '
9834 allow_undefined_flag=unsupported
9835 # Tell ltmain to make .lib files, not .a files.
9837 # Tell ltmain to make .dll files, not .so files.
9839 # FIXME: Setting linknames here is a bad hack.
9840 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9841 # The linker will automatically build a .lib file if we build a DLL.
9842 old_archive_from_new_cmds='true'
9843 # FIXME: Should let the user specify the lib program.
9844 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9845 enable_shared_with_static_runtimes=yes
9850 darwin* | rhapsody*)
9853 archive_cmds_need_lc=no
9855 hardcode_automatic=yes
9856 hardcode_shlibpath_var=unsupported
9857 if test "$lt_cv_ld_force_load" = "yes"; then
9858 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\"`'
9861 whole_archive_flag_spec=''
9863 link_all_deplibs=yes
9864 allow_undefined_flag="$_lt_dar_allow_undefined"
9865 case $cc_basename in
9866 ifort*) _lt_dar_can_shared=yes ;;
9867 *) _lt_dar_can_shared=$GCC ;;
9869 if test "$_lt_dar_can_shared" = "yes"; then
9870 output_verbose_link_cmd=func_echo_all
9871 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9872 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9873 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}"
9874 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}"
9883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9884 hardcode_libdir_flag_spec='-L$libdir'
9885 hardcode_shlibpath_var=no
9888 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9889 # support. Future versions do this automatically, but an explicit c++rt0.o
9890 # does not break anything, and helps significantly (at the cost of a little
9893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9894 hardcode_libdir_flag_spec='-R$libdir'
9896 hardcode_shlibpath_var=no
9899 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9903 hardcode_minus_L=yes
9904 hardcode_shlibpath_var=no
9907 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9908 freebsd* | dragonfly*)
9909 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9910 hardcode_libdir_flag_spec='-R$libdir'
9912 hardcode_shlibpath_var=no
9916 if test "$GCC" = yes; then
9917 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9919 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9921 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9922 hardcode_libdir_separator=:
9925 # hardcode_minus_L: Not really in the search PATH,
9926 # but as the default location of the library.
9927 hardcode_minus_L=yes
9928 export_dynamic_flag_spec='${wl}-E'
9932 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9933 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9935 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9937 if test "$with_gnu_ld" = no; then
9938 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9939 hardcode_libdir_separator=:
9941 hardcode_direct_absolute=yes
9942 export_dynamic_flag_spec='${wl}-E'
9943 # hardcode_minus_L: Not really in the search PATH,
9944 # but as the default location of the library.
9945 hardcode_minus_L=yes
9950 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9953 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9956 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9959 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9965 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9968 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9972 # Older versions of the 11.00 compiler do not understand -b yet
9973 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9975 $as_echo_n "checking if $CC understands -b... " >&6; }
9976 if ${lt_cv_prog_compiler__b+:} false; then :
9977 $as_echo_n "(cached) " >&6
9979 lt_cv_prog_compiler__b=no
9980 save_LDFLAGS="$LDFLAGS"
9981 LDFLAGS="$LDFLAGS -b"
9982 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9983 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9984 # The linker can only warn and ignore the option if not recognized
9985 # So say no if there are warnings
9986 if test -s conftest.err; then
9987 # Append any errors to the config.log.
9988 cat conftest.err 1>&5
9989 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9991 if diff conftest.exp conftest.er2 >/dev/null; then
9992 lt_cv_prog_compiler__b=yes
9995 lt_cv_prog_compiler__b=yes
9999 LDFLAGS="$save_LDFLAGS"
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10003 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10005 if test x"$lt_cv_prog_compiler__b" = xyes; then
10006 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10008 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10014 if test "$with_gnu_ld" = no; then
10015 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10016 hardcode_libdir_separator=:
10021 hardcode_shlibpath_var=no
10024 hardcode_direct=yes
10025 hardcode_direct_absolute=yes
10026 export_dynamic_flag_spec='${wl}-E'
10028 # hardcode_minus_L: Not really in the search PATH,
10029 # but as the default location of the library.
10030 hardcode_minus_L=yes
10036 irix5* | irix6* | nonstopux*)
10037 if test "$GCC" = yes; then
10038 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'
10039 # Try to use the -exported_symbol ld option, if it does not
10040 # work, assume that -exports_file does not work either and
10041 # implicitly export all symbols.
10042 # This should be the same for all languages, so no per-tag cache variable.
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10044 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10045 if ${lt_cv_irix_exported_symbol+:} false; then :
10046 $as_echo_n "(cached) " >&6
10048 save_LDFLAGS="$LDFLAGS"
10049 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051 /* end confdefs.h. */
10052 int foo (void) { return 0; }
10054 if ac_fn_c_try_link "$LINENO"; then :
10055 lt_cv_irix_exported_symbol=yes
10057 lt_cv_irix_exported_symbol=no
10059 rm -f core conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
10061 LDFLAGS="$save_LDFLAGS"
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10064 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10065 if test "$lt_cv_irix_exported_symbol" = yes; then
10066 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'
10069 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'
10070 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'
10072 archive_cmds_need_lc='no'
10073 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10074 hardcode_libdir_separator=:
10076 link_all_deplibs=yes
10079 netbsd* | netbsdelf*-gnu)
10080 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10081 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10083 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10085 hardcode_libdir_flag_spec='-R$libdir'
10086 hardcode_direct=yes
10087 hardcode_shlibpath_var=no
10091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10092 hardcode_direct=yes
10093 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10094 hardcode_libdir_separator=:
10095 hardcode_shlibpath_var=no
10102 if test -f /usr/libexec/ld.so; then
10103 hardcode_direct=yes
10104 hardcode_shlibpath_var=no
10105 hardcode_direct_absolute=yes
10106 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10107 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10108 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10109 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10110 export_dynamic_flag_spec='${wl}-E'
10113 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10114 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10115 hardcode_libdir_flag_spec='-R$libdir'
10118 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10119 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10129 hardcode_libdir_flag_spec='-L$libdir'
10130 hardcode_minus_L=yes
10131 allow_undefined_flag=unsupported
10132 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10133 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10137 if test "$GCC" = yes; then
10138 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10139 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'
10141 allow_undefined_flag=' -expect_unresolved \*'
10142 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'
10144 archive_cmds_need_lc='no'
10145 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10146 hardcode_libdir_separator=:
10149 osf4* | osf5*) # as osf3* with the addition of -msym flag
10150 if test "$GCC" = yes; then
10151 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10152 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'
10153 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10155 allow_undefined_flag=' -expect_unresolved \*'
10156 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'
10157 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~
10158 $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'
10160 # Both c and cxx compiler support -rpath directly
10161 hardcode_libdir_flag_spec='-rpath $libdir'
10163 archive_cmds_need_lc='no'
10164 hardcode_libdir_separator=:
10168 no_undefined_flag=' -z defs'
10169 if test "$GCC" = yes; then
10171 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10172 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10173 $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'
10175 case `$CC -V 2>&1` in
10178 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10179 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10180 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10184 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10185 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10186 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10190 hardcode_libdir_flag_spec='-R$libdir'
10191 hardcode_shlibpath_var=no
10193 solaris2.[0-5] | solaris2.[0-5].*) ;;
10195 # The compiler driver will combine and reorder linker options,
10196 # but understands `-z linker_flag'. GCC discards it without `$wl',
10197 # but is careful enough not to reorder.
10198 # Supported since Solaris 2.6 (maybe 2.5.1?)
10199 if test "$GCC" = yes; then
10200 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10202 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10206 link_all_deplibs=yes
10210 if test "x$host_vendor" = xsequent; then
10211 # Use $CC to link under sequent, because it throws in some extra .o
10212 # files that make .init and .fini sections work.
10213 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10215 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10217 hardcode_libdir_flag_spec='-L$libdir'
10218 hardcode_direct=yes
10219 hardcode_minus_L=yes
10220 hardcode_shlibpath_var=no
10224 case $host_vendor in
10226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10227 hardcode_direct=yes # is this really true???
10230 ## LD is ld it makes a PLAMLIB
10231 ## CC just makes a GrossModule.
10232 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10233 reload_cmds='$CC -r -o $output$reload_objs'
10237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10238 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10241 runpath_var='LD_RUN_PATH'
10242 hardcode_shlibpath_var=no
10246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10247 hardcode_shlibpath_var=no
10248 export_dynamic_flag_spec='-Bexport'
10252 if test -d /usr/nec; then
10253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10254 hardcode_shlibpath_var=no
10255 runpath_var=LD_RUN_PATH
10256 hardcode_runpath_var=yes
10261 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10262 no_undefined_flag='${wl}-z,text'
10263 archive_cmds_need_lc=no
10264 hardcode_shlibpath_var=no
10265 runpath_var='LD_RUN_PATH'
10267 if test "$GCC" = yes; then
10268 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10269 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10271 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10272 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10276 sysv5* | sco3.2v5* | sco5v6*)
10277 # Note: We can NOT use -z defs as we might desire, because we do not
10278 # link with -lc, and that would cause any symbols used from libc to
10279 # always be unresolved, which means just about no library would
10280 # ever link correctly. If we're not using GNU ld we use -z text
10281 # though, which does catch some bad symbols but isn't as heavy-handed
10283 no_undefined_flag='${wl}-z,text'
10284 allow_undefined_flag='${wl}-z,nodefs'
10285 archive_cmds_need_lc=no
10286 hardcode_shlibpath_var=no
10287 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10288 hardcode_libdir_separator=':'
10289 link_all_deplibs=yes
10290 export_dynamic_flag_spec='${wl}-Bexport'
10291 runpath_var='LD_RUN_PATH'
10293 if test "$GCC" = yes; then
10294 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10295 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10297 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10298 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10304 hardcode_libdir_flag_spec='-L$libdir'
10305 hardcode_shlibpath_var=no
10313 if test x$host_vendor = xsni; then
10315 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10316 export_dynamic_flag_spec='${wl}-Blargedynsym'
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10323 $as_echo "$ld_shlibs" >&6; }
10324 test "$ld_shlibs" = no && can_build_shared=no
10326 with_gnu_ld=$with_gnu_ld
10343 # Do we need to explicitly link libc?
10345 case "x$archive_cmds_need_lc" in
10347 # Assume -lc should be added
10348 archive_cmds_need_lc=yes
10350 if test "$enable_shared" = yes && test "$GCC" = yes; then
10351 case $archive_cmds in
10353 # FIXME: we may have to deal with multi-command sequences.
10356 # Test whether the compiler implicitly links with -lc since on some
10357 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10358 # to ld, don't add -lc before -lgcc.
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10360 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10361 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10362 $as_echo_n "(cached) " >&6
10365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10368 (eval $ac_compile) 2>&5
10370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10371 test $ac_status = 0; } 2>conftest.err; then
10374 libobjs=conftest.$ac_objext
10376 wl=$lt_prog_compiler_wl
10377 pic_flag=$lt_prog_compiler_pic
10383 lt_save_allow_undefined_flag=$allow_undefined_flag
10384 allow_undefined_flag=
10385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10386 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10389 test $ac_status = 0; }
10391 lt_cv_archive_cmds_need_lc=no
10393 lt_cv_archive_cmds_need_lc=yes
10395 allow_undefined_flag=$lt_save_allow_undefined_flag
10397 cat conftest.err 1>&5
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10403 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10404 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10563 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10565 if test "$GCC" = yes; then
10567 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10568 *) lt_awk_arg="/^libraries:/" ;;
10571 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10572 *) lt_sed_strip_eq="s,=/,/,g" ;;
10574 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10575 case $lt_search_path_spec in
10577 # if the path contains ";" then we assume it to be the separator
10578 # otherwise default to the standard path separator (i.e. ":") - it is
10579 # assumed that no part of a normal pathname contains ";" but that should
10580 # okay in the real world where ";" in dirpaths is itself problematic.
10581 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10584 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10587 # Ok, now we have the path, separated by spaces, we can step through it
10588 # and add multilib dir if necessary.
10589 lt_tmp_lt_search_path_spec=
10590 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10591 for lt_sys_path in $lt_search_path_spec; do
10592 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10593 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10595 test -d "$lt_sys_path" && \
10596 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10599 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10600 BEGIN {RS=" "; FS="/|\n";} {
10603 for (lt_i = NF; lt_i > 0; lt_i--) {
10604 if ($lt_i != "" && $lt_i != ".") {
10605 if ($lt_i == "..") {
10608 if (lt_count == 0) {
10609 lt_foo="/" $lt_i lt_foo;
10616 if (lt_foo != "") { lt_freq[lt_foo]++; }
10617 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10619 # AWK program above erroneously prepends '/' to C:/dos/paths
10622 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10623 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10625 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10627 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10629 library_names_spec=
10630 libname_spec='lib$name'
10634 postuninstall_cmds=
10638 shlibpath_overrides_runpath=unknown
10640 dynamic_linker="$host_os ld.so"
10641 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10642 need_lib_prefix=unknown
10643 hardcode_into_libs=no
10645 # when you set need_version to no, make sure it does not cause -set_version
10646 # flags to be left without arguments
10647 need_version=unknown
10651 version_type=linux # correct to gnu/linux during the next big refactor
10652 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10653 shlibpath_var=LIBPATH
10655 # AIX 3 has no versioning support, so we append a major version to the name.
10656 soname_spec='${libname}${release}${shared_ext}$major'
10660 version_type=linux # correct to gnu/linux during the next big refactor
10663 hardcode_into_libs=yes
10664 if test "$host_cpu" = ia64; then
10665 # AIX 5 supports IA64
10666 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10667 shlibpath_var=LD_LIBRARY_PATH
10669 # With GCC up to 2.95.x, collect2 would create an import file
10670 # for dependence libraries. The import file would start with
10671 # the line `#! .'. This would cause the generated library to
10672 # depend on `.', always an invalid library. This was fixed in
10673 # development snapshots of GCC prior to 3.0.
10675 aix4 | aix4.[01] | aix4.[01].*)
10676 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10678 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10681 can_build_shared=no
10685 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10686 # soname into executable. Probably we can add versioning support to
10687 # collect2, so additional links can be useful in future.
10688 if test "$aix_use_runtimelinking" = yes; then
10689 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10690 # instead of lib<name>.a to let people know that these are not
10691 # typical AIX shared libraries.
10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 # We preserve .a as extension for shared libraries through AIX4.2
10695 # and later when we are not doing run time linking.
10696 library_names_spec='${libname}${release}.a $libname.a'
10697 soname_spec='${libname}${release}${shared_ext}$major'
10699 shlibpath_var=LIBPATH
10706 # Since July 2007 AmigaOS4 officially supports .so libraries.
10707 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10711 library_names_spec='$libname.ixlibrary $libname.a'
10712 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10713 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10719 library_names_spec='${libname}${shared_ext}'
10720 dynamic_linker="$host_os ld.so"
10721 shlibpath_var=LIBRARY_PATH
10725 version_type=linux # correct to gnu/linux during the next big refactor
10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10728 soname_spec='${libname}${release}${shared_ext}$major'
10729 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10730 shlibpath_var=LD_LIBRARY_PATH
10731 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10732 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10733 # the default ld.so.conf also contains /usr/contrib/lib and
10734 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10735 # libtool to hard-code these into programs
10738 cygwin* | mingw* | pw32* | cegcc*)
10739 version_type=windows
10744 case $GCC,$cc_basename in
10747 library_names_spec='$libname.dll.a'
10748 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10749 postinstall_cmds='base_file=`basename \${file}`~
10750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10751 dldir=$destdir/`dirname \$dlpath`~
10752 test -d \$dldir || mkdir -p \$dldir~
10753 $install_prog $dir/$dlname \$dldir/$dlname~
10754 chmod a+x \$dldir/$dlname~
10755 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10756 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10758 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10759 dlpath=$dir/\$dldll~
10761 shlibpath_overrides_runpath=yes
10765 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10766 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10768 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10771 # MinGW DLLs use traditional 'lib' prefix
10772 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10775 # pw32 DLLs use 'pw' prefix rather than 'lib'
10776 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10779 dynamic_linker='Win32 ld.exe'
10784 libname_spec='$name'
10785 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10786 library_names_spec='${libname}.dll.lib'
10790 sys_lib_search_path_spec=
10793 for lt_path in $LIB
10796 # Let DOS variable expansion print the short 8.3 style file name.
10797 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10798 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10801 # Convert to MSYS style.
10802 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10805 # Convert to unix form, then to dos form, then back to unix form
10806 # but this time dos style (no spaces!) so that the unix form looks
10807 # like /cygdrive/c/PROGRA~1:/cygdr...
10808 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10809 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10810 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10813 sys_lib_search_path_spec="$LIB"
10814 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10815 # It is most probably a Windows format PATH.
10816 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10818 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10820 # FIXME: find the short name or the path components, as spaces are
10821 # common. (e.g. "Program Files" -> "PROGRA~1")
10825 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10826 postinstall_cmds='base_file=`basename \${file}`~
10827 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10828 dldir=$destdir/`dirname \$dlpath`~
10829 test -d \$dldir || mkdir -p \$dldir~
10830 $install_prog $dir/$dlname \$dldir/$dlname'
10831 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10832 dlpath=$dir/\$dldll~
10834 shlibpath_overrides_runpath=yes
10835 dynamic_linker='Win32 link.exe'
10839 # Assume MSVC wrapper
10840 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10841 dynamic_linker='Win32 ld.exe'
10844 # FIXME: first we should search . and the directory the executable is in
10848 darwin* | rhapsody*)
10849 dynamic_linker="$host_os dyld"
10850 version_type=darwin
10853 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10854 soname_spec='${libname}${release}${major}$shared_ext'
10855 shlibpath_overrides_runpath=yes
10856 shlibpath_var=DYLD_LIBRARY_PATH
10857 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10859 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10860 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10864 version_type=linux # correct to gnu/linux during the next big refactor
10867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10868 soname_spec='${libname}${release}${shared_ext}$major'
10869 shlibpath_var=LD_LIBRARY_PATH
10872 freebsd* | dragonfly*)
10873 # DragonFly does not have aout. When/if they implement a new
10874 # versioning mechanism, adjust this.
10875 if test -x /usr/bin/objformat; then
10876 objformat=`/usr/bin/objformat`
10879 freebsd[23].*) objformat=aout ;;
10880 *) objformat=elf ;;
10883 version_type=freebsd-$objformat
10884 case $version_type in
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10891 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10895 shlibpath_var=LD_LIBRARY_PATH
10898 shlibpath_overrides_runpath=yes
10900 freebsd3.[01]* | freebsdelf3.[01]*)
10901 shlibpath_overrides_runpath=yes
10902 hardcode_into_libs=yes
10904 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10905 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10906 shlibpath_overrides_runpath=no
10907 hardcode_into_libs=yes
10909 *) # from 4.6 on, and DragonFly
10910 shlibpath_overrides_runpath=yes
10911 hardcode_into_libs=yes
10917 version_type=linux # correct to gnu/linux during the next big refactor
10920 dynamic_linker="$host_os runtime_loader"
10921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10922 soname_spec='${libname}${release}${shared_ext}$major'
10923 shlibpath_var=LIBRARY_PATH
10924 shlibpath_overrides_runpath=yes
10925 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10926 hardcode_into_libs=yes
10929 hpux9* | hpux10* | hpux11*)
10930 # Give a soname corresponding to the major version so that dld.sl refuses to
10931 # link against other versions.
10938 hardcode_into_libs=yes
10939 dynamic_linker="$host_os dld.so"
10940 shlibpath_var=LD_LIBRARY_PATH
10941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943 soname_spec='${libname}${release}${shared_ext}$major'
10944 if test "X$HPUX_IA64_MODE" = X32; then
10945 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10947 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10949 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10953 hardcode_into_libs=yes
10954 dynamic_linker="$host_os dld.sl"
10955 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10956 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10958 soname_spec='${libname}${release}${shared_ext}$major'
10959 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10964 dynamic_linker="$host_os dld.sl"
10965 shlibpath_var=SHLIB_PATH
10966 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968 soname_spec='${libname}${release}${shared_ext}$major'
10971 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10972 postinstall_cmds='chmod 555 $lib'
10973 # or fails outright, so override atomically:
10974 install_override_mode=555
10978 version_type=linux # correct to gnu/linux during the next big refactor
10981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10982 soname_spec='${libname}${release}${shared_ext}$major'
10983 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 shlibpath_overrides_runpath=no
10986 hardcode_into_libs=yes
10989 irix5* | irix6* | nonstopux*)
10991 nonstopux*) version_type=nonstopux ;;
10993 if test "$lt_cv_prog_gnu_ld" = yes; then
10994 version_type=linux # correct to gnu/linux during the next big refactor
11001 soname_spec='${libname}${release}${shared_ext}$major'
11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11004 irix5* | nonstopux*)
11005 libsuff= shlibsuff=
11008 case $LD in # libtool.m4 will add one of these switches to LD
11009 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11010 libsuff= shlibsuff= libmagic=32-bit;;
11011 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11012 libsuff=32 shlibsuff=N32 libmagic=N32;;
11013 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11014 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11015 *) libsuff= shlibsuff= libmagic=never-match;;
11019 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11020 shlibpath_overrides_runpath=no
11021 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11022 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11023 hardcode_into_libs=yes
11026 # No shared lib support for Linux oldld, aout, or coff.
11027 linux*oldld* | linux*aout* | linux*coff*)
11031 # This must be glibc/ELF.
11032 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11033 version_type=linux # correct to gnu/linux during the next big refactor
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11037 soname_spec='${libname}${release}${shared_ext}$major'
11038 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11039 shlibpath_var=LD_LIBRARY_PATH
11040 shlibpath_overrides_runpath=no
11042 # Some binutils ld are patched to set DT_RUNPATH
11043 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11044 $as_echo_n "(cached) " >&6
11046 lt_cv_shlibpath_overrides_runpath=no
11047 save_LDFLAGS=$LDFLAGS
11048 save_libdir=$libdir
11049 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11050 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h. */
11062 if ac_fn_c_try_link "$LINENO"; then :
11063 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11064 lt_cv_shlibpath_overrides_runpath=yes
11067 rm -f core conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext conftest.$ac_ext
11069 LDFLAGS=$save_LDFLAGS
11070 libdir=$save_libdir
11074 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11076 # This implies no fast_install, which is unacceptable.
11077 # Some rework will be needed to allow for fast_install
11078 # before this can be enabled.
11079 hardcode_into_libs=yes
11081 # Append ld.so.conf contents to the search path
11082 if test -f /etc/ld.so.conf; then
11083 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' ' '`
11084 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11087 # We used to test for /lib/ld.so.1 and disable shared libraries on
11088 # powerpc, because MkLinux only supported shared libraries with the
11089 # GNU dynamic linker. Since this was broken with cross compilers,
11090 # most powerpc-linux boxes support dynamic linking these days and
11091 # people can always --disable-shared, the test was removed, and we
11092 # assume the GNU/Linux dynamic linker is in use.
11093 dynamic_linker='GNU/Linux ld.so'
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11101 soname_spec='${libname}${release}${shared_ext}$major'
11102 shlibpath_var=LD_LIBRARY_PATH
11103 shlibpath_overrides_runpath=no
11104 hardcode_into_libs=yes
11105 dynamic_linker='NetBSD ld.elf_so'
11112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11115 dynamic_linker='NetBSD (a.out) ld.so'
11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11118 soname_spec='${libname}${release}${shared_ext}$major'
11119 dynamic_linker='NetBSD ld.elf_so'
11121 shlibpath_var=LD_LIBRARY_PATH
11122 shlibpath_overrides_runpath=yes
11123 hardcode_into_libs=yes
11127 version_type=linux # correct to gnu/linux during the next big refactor
11128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 shlibpath_overrides_runpath=yes
11137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11138 soname_spec='${libname}${release}${shared_ext}$major'
11139 shlibpath_var=LD_LIBRARY_PATH
11140 shlibpath_overrides_runpath=no
11141 hardcode_into_libs=yes
11142 dynamic_linker='ldqnx.so'
11147 sys_lib_dlsearch_path_spec="/usr/lib"
11149 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11151 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11152 *) need_version=no ;;
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11156 shlibpath_var=LD_LIBRARY_PATH
11157 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11159 openbsd2.[89] | openbsd2.[89].*)
11160 shlibpath_overrides_runpath=no
11163 shlibpath_overrides_runpath=yes
11167 shlibpath_overrides_runpath=yes
11172 libname_spec='$name'
11175 library_names_spec='$libname${shared_ext} $libname.a'
11176 dynamic_linker='OS/2 ld.exe'
11177 shlibpath_var=LIBPATH
11180 osf3* | osf4* | osf5*)
11184 soname_spec='${libname}${release}${shared_ext}$major'
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186 shlibpath_var=LD_LIBRARY_PATH
11187 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11188 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11196 version_type=linux # correct to gnu/linux during the next big refactor
11199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11200 soname_spec='${libname}${release}${shared_ext}$major'
11201 shlibpath_var=LD_LIBRARY_PATH
11202 shlibpath_overrides_runpath=yes
11203 hardcode_into_libs=yes
11204 # ldd complains unless libraries are executable
11205 postinstall_cmds='chmod +x $lib'
11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11211 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11212 shlibpath_var=LD_LIBRARY_PATH
11213 shlibpath_overrides_runpath=yes
11214 if test "$with_gnu_ld" = yes; then
11221 version_type=linux # correct to gnu/linux during the next big refactor
11222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11223 soname_spec='${libname}${release}${shared_ext}$major'
11224 shlibpath_var=LD_LIBRARY_PATH
11225 case $host_vendor in
11227 shlibpath_overrides_runpath=no
11229 runpath_var=LD_RUN_PATH
11237 shlibpath_overrides_runpath=no
11238 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11244 if test -d /usr/nec ;then
11245 version_type=linux # correct to gnu/linux during the next big refactor
11246 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11247 soname_spec='$libname${shared_ext}.$major'
11248 shlibpath_var=LD_LIBRARY_PATH
11252 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11253 version_type=freebsd-elf
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 shlibpath_var=LD_LIBRARY_PATH
11259 shlibpath_overrides_runpath=yes
11260 hardcode_into_libs=yes
11261 if test "$with_gnu_ld" = yes; then
11262 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11264 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11267 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11271 sys_lib_dlsearch_path_spec='/usr/lib'
11275 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11276 version_type=linux # correct to gnu/linux during the next big refactor
11279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11280 shlibpath_var=LD_LIBRARY_PATH
11281 shlibpath_overrides_runpath=no
11282 hardcode_into_libs=yes
11286 version_type=linux # correct to gnu/linux during the next big refactor
11287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11288 soname_spec='${libname}${release}${shared_ext}$major'
11289 shlibpath_var=LD_LIBRARY_PATH
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11297 $as_echo "$dynamic_linker" >&6; }
11298 test "$dynamic_linker" = no && can_build_shared=no
11300 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11301 if test "$GCC" = yes; then
11302 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11305 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11306 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11308 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11309 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11404 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11406 if test -n "$hardcode_libdir_flag_spec" ||
11407 test -n "$runpath_var" ||
11408 test "X$hardcode_automatic" = "Xyes" ; then
11410 # We can hardcode non-existent directories.
11411 if test "$hardcode_direct" != no &&
11412 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11413 # have to relink, otherwise we might link with an installed library
11414 # when we should be linking with a yet-to-be-installed one
11415 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11416 test "$hardcode_minus_L" != no; then
11417 # Linking always hardcodes the temporary library directory.
11418 hardcode_action=relink
11420 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11421 hardcode_action=immediate
11424 # We cannot hardcode anything, or else we can only hardcode existing
11426 hardcode_action=unsupported
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11429 $as_echo "$hardcode_action" >&6; }
11431 if test "$hardcode_action" = relink ||
11432 test "$inherit_rpath" = yes; then
11433 # Fast installation is not supported
11434 enable_fast_install=no
11435 elif test "$shlibpath_overrides_runpath" = yes ||
11436 test "$enable_shared" = no; then
11437 # Fast installation is not necessary
11438 enable_fast_install=needless
11446 if test "x$enable_dlopen" != xyes; then
11447 enable_dlopen=unknown
11448 enable_dlopen_self=unknown
11449 enable_dlopen_self_static=unknown
11456 lt_cv_dlopen="load_add_on"
11458 lt_cv_dlopen_self=yes
11461 mingw* | pw32* | cegcc*)
11462 lt_cv_dlopen="LoadLibrary"
11467 lt_cv_dlopen="dlopen"
11472 # if libdl is installed we need to link against it
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11474 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11475 if ${ac_cv_lib_dl_dlopen+:} false; then :
11476 $as_echo_n "(cached) " >&6
11478 ac_check_lib_save_LIBS=$LIBS
11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h. */
11483 /* Override any GCC internal prototype to avoid an error.
11484 Use char because int might match the return type of a GCC
11485 builtin and then its argument prototype would still apply. */
11498 if ac_fn_c_try_link "$LINENO"; then :
11499 ac_cv_lib_dl_dlopen=yes
11501 ac_cv_lib_dl_dlopen=no
11503 rm -f core conftest.err conftest.$ac_objext \
11504 conftest$ac_exeext conftest.$ac_ext
11505 LIBS=$ac_check_lib_save_LIBS
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11508 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11509 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11510 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11513 lt_cv_dlopen="dyld"
11515 lt_cv_dlopen_self=yes
11522 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11523 if test "x$ac_cv_func_shl_load" = xyes; then :
11524 lt_cv_dlopen="shl_load"
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11527 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11528 if ${ac_cv_lib_dld_shl_load+:} false; then :
11529 $as_echo_n "(cached) " >&6
11531 ac_check_lib_save_LIBS=$LIBS
11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534 /* end confdefs.h. */
11536 /* Override any GCC internal prototype to avoid an error.
11537 Use char because int might match the return type of a GCC
11538 builtin and then its argument prototype would still apply. */
11546 return shl_load ();
11551 if ac_fn_c_try_link "$LINENO"; then :
11552 ac_cv_lib_dld_shl_load=yes
11554 ac_cv_lib_dld_shl_load=no
11556 rm -f core conftest.err conftest.$ac_objext \
11557 conftest$ac_exeext conftest.$ac_ext
11558 LIBS=$ac_check_lib_save_LIBS
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11561 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11562 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11563 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11565 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11566 if test "x$ac_cv_func_dlopen" = xyes; then :
11567 lt_cv_dlopen="dlopen"
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11570 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11571 if ${ac_cv_lib_dl_dlopen+:} false; then :
11572 $as_echo_n "(cached) " >&6
11574 ac_check_lib_save_LIBS=$LIBS
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11579 /* Override any GCC internal prototype to avoid an error.
11580 Use char because int might match the return type of a GCC
11581 builtin and then its argument prototype would still apply. */
11594 if ac_fn_c_try_link "$LINENO"; then :
11595 ac_cv_lib_dl_dlopen=yes
11597 ac_cv_lib_dl_dlopen=no
11599 rm -f core conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
11601 LIBS=$ac_check_lib_save_LIBS
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11604 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11605 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11606 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11609 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11610 if ${ac_cv_lib_svld_dlopen+:} false; then :
11611 $as_echo_n "(cached) " >&6
11613 ac_check_lib_save_LIBS=$LIBS
11614 LIBS="-lsvld $LIBS"
11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616 /* end confdefs.h. */
11618 /* Override any GCC internal prototype to avoid an error.
11619 Use char because int might match the return type of a GCC
11620 builtin and then its argument prototype would still apply. */
11633 if ac_fn_c_try_link "$LINENO"; then :
11634 ac_cv_lib_svld_dlopen=yes
11636 ac_cv_lib_svld_dlopen=no
11638 rm -f core conftest.err conftest.$ac_objext \
11639 conftest$ac_exeext conftest.$ac_ext
11640 LIBS=$ac_check_lib_save_LIBS
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11643 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11644 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11645 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11648 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11649 if ${ac_cv_lib_dld_dld_link+:} false; then :
11650 $as_echo_n "(cached) " >&6
11652 ac_check_lib_save_LIBS=$LIBS
11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655 /* end confdefs.h. */
11657 /* Override any GCC internal prototype to avoid an error.
11658 Use char because int might match the return type of a GCC
11659 builtin and then its argument prototype would still apply. */
11667 return dld_link ();
11672 if ac_fn_c_try_link "$LINENO"; then :
11673 ac_cv_lib_dld_dld_link=yes
11675 ac_cv_lib_dld_dld_link=no
11677 rm -f core conftest.err conftest.$ac_objext \
11678 conftest$ac_exeext conftest.$ac_ext
11679 LIBS=$ac_check_lib_save_LIBS
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11682 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11683 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11684 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11705 if test "x$lt_cv_dlopen" != xno; then
11711 case $lt_cv_dlopen in
11713 save_CPPFLAGS="$CPPFLAGS"
11714 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11716 save_LDFLAGS="$LDFLAGS"
11717 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11720 LIBS="$lt_cv_dlopen_libs $LIBS"
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11723 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11724 if ${lt_cv_dlopen_self+:} false; then :
11725 $as_echo_n "(cached) " >&6
11727 if test "$cross_compiling" = yes; then :
11728 lt_cv_dlopen_self=cross
11730 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11731 lt_status=$lt_dlunknown
11732 cat > conftest.$ac_ext <<_LT_EOF
11733 #line $LINENO "configure"
11734 #include "confdefs.h"
11743 # define LT_DLGLOBAL RTLD_GLOBAL
11746 # define LT_DLGLOBAL DL_GLOBAL
11748 # define LT_DLGLOBAL 0
11752 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11753 find out it does not work in some platform. */
11754 #ifndef LT_DLLAZY_OR_NOW
11756 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11759 # define LT_DLLAZY_OR_NOW DL_LAZY
11762 # define LT_DLLAZY_OR_NOW RTLD_NOW
11765 # define LT_DLLAZY_OR_NOW DL_NOW
11767 # define LT_DLLAZY_OR_NOW 0
11774 /* When -fvisbility=hidden is used, assume the code has been annotated
11775 correspondingly for the symbols needed. */
11776 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11777 int fnord () __attribute__((visibility("default")));
11780 int fnord () { return 42; }
11783 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11784 int status = $lt_dlunknown;
11788 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11791 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11792 else puts (dlerror ());
11794 /* dlclose (self); */
11802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11803 (eval $ac_link) 2>&5
11805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11806 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11807 (./conftest; exit; ) >&5 2>/dev/null
11809 case x$lt_status in
11810 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11811 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11812 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11815 # compilation failed
11816 lt_cv_dlopen_self=no
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11824 $as_echo "$lt_cv_dlopen_self" >&6; }
11826 if test "x$lt_cv_dlopen_self" = xyes; then
11827 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11829 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11830 if ${lt_cv_dlopen_self_static+:} false; then :
11831 $as_echo_n "(cached) " >&6
11833 if test "$cross_compiling" = yes; then :
11834 lt_cv_dlopen_self_static=cross
11836 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11837 lt_status=$lt_dlunknown
11838 cat > conftest.$ac_ext <<_LT_EOF
11839 #line $LINENO "configure"
11840 #include "confdefs.h"
11849 # define LT_DLGLOBAL RTLD_GLOBAL
11852 # define LT_DLGLOBAL DL_GLOBAL
11854 # define LT_DLGLOBAL 0
11858 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11859 find out it does not work in some platform. */
11860 #ifndef LT_DLLAZY_OR_NOW
11862 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11865 # define LT_DLLAZY_OR_NOW DL_LAZY
11868 # define LT_DLLAZY_OR_NOW RTLD_NOW
11871 # define LT_DLLAZY_OR_NOW DL_NOW
11873 # define LT_DLLAZY_OR_NOW 0
11880 /* When -fvisbility=hidden is used, assume the code has been annotated
11881 correspondingly for the symbols needed. */
11882 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11883 int fnord () __attribute__((visibility("default")));
11886 int fnord () { return 42; }
11889 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11890 int status = $lt_dlunknown;
11894 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11897 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11898 else puts (dlerror ());
11900 /* dlclose (self); */
11908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11909 (eval $ac_link) 2>&5
11911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11912 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11913 (./conftest; exit; ) >&5 2>/dev/null
11915 case x$lt_status in
11916 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11917 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11918 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11921 # compilation failed
11922 lt_cv_dlopen_self_static=no
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11930 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11933 CPPFLAGS="$save_CPPFLAGS"
11934 LDFLAGS="$save_LDFLAGS"
11939 case $lt_cv_dlopen_self in
11940 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11941 *) enable_dlopen_self=unknown ;;
11944 case $lt_cv_dlopen_self_static in
11945 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11946 *) enable_dlopen_self_static=unknown ;;
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11969 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11970 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11971 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11972 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11974 $as_echo "yes" >&6; }
11976 # FIXME - insert some real tests, host_os isn't really good enough
11979 if test -n "$STRIP" ; then
11980 striplib="$STRIP -x"
11981 old_striplib="$STRIP -S"
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11983 $as_echo "yes" >&6; }
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991 $as_echo "no" >&6; }
12007 # Report which library types will actually be built
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12009 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12011 $as_echo "$can_build_shared" >&6; }
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12014 $as_echo_n "checking whether to build shared libraries... " >&6; }
12015 test "$can_build_shared" = "no" && enable_shared=no
12017 # On AIX, shared libraries and static libraries use the same namespace, and
12018 # are all built from PIC.
12021 test "$enable_shared" = yes && enable_static=no
12022 if test -n "$RANLIB"; then
12023 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12024 postinstall_cmds='$RANLIB $lib'
12029 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12030 test "$enable_shared" = yes && enable_static=no
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12035 $as_echo "$enable_shared" >&6; }
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12038 $as_echo_n "checking whether to build static libraries... " >&6; }
12039 # Make sure either enable_shared or enable_static is yes.
12040 test "$enable_shared" = yes || enable_static=yes
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12042 $as_echo "$enable_static" >&6; }
12049 ac_cpp='$CPP $CPPFLAGS'
12050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12070 ac_config_commands="$ac_config_commands libtool"
12075 # Only expand once:
12081 if test "$enable_libevent_regress" = "yes"; then
12082 BUILD_REGRESS_TRUE=
12083 BUILD_REGRESS_FALSE='#'
12085 BUILD_REGRESS_TRUE='#'
12086 BUILD_REGRESS_FALSE=
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
12091 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
12092 if ${ac_cv_search_inet_ntoa+:} false; then :
12093 $as_echo_n "(cached) " >&6
12095 ac_func_search_save_LIBS=$LIBS
12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097 /* end confdefs.h. */
12099 /* Override any GCC internal prototype to avoid an error.
12100 Use char because int might match the return type of a GCC
12101 builtin and then its argument prototype would still apply. */
12109 return inet_ntoa ();
12114 for ac_lib in '' nsl; do
12115 if test -z "$ac_lib"; then
12116 ac_res="none required"
12119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12121 if ac_fn_c_try_link "$LINENO"; then :
12122 ac_cv_search_inet_ntoa=$ac_res
12124 rm -f core conftest.err conftest.$ac_objext \
12126 if ${ac_cv_search_inet_ntoa+:} false; then :
12130 if ${ac_cv_search_inet_ntoa+:} false; then :
12133 ac_cv_search_inet_ntoa=no
12135 rm conftest.$ac_ext
12136 LIBS=$ac_func_search_save_LIBS
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12139 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
12140 ac_res=$ac_cv_search_inet_ntoa
12141 if test "$ac_res" != no; then :
12142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12147 $as_echo_n "checking for library containing socket... " >&6; }
12148 if ${ac_cv_search_socket+:} false; then :
12149 $as_echo_n "(cached) " >&6
12151 ac_func_search_save_LIBS=$LIBS
12152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12153 /* end confdefs.h. */
12155 /* Override any GCC internal prototype to avoid an error.
12156 Use char because int might match the return type of a GCC
12157 builtin and then its argument prototype would still apply. */
12170 for ac_lib in '' socket; do
12171 if test -z "$ac_lib"; then
12172 ac_res="none required"
12175 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12177 if ac_fn_c_try_link "$LINENO"; then :
12178 ac_cv_search_socket=$ac_res
12180 rm -f core conftest.err conftest.$ac_objext \
12182 if ${ac_cv_search_socket+:} false; then :
12186 if ${ac_cv_search_socket+:} false; then :
12189 ac_cv_search_socket=no
12191 rm conftest.$ac_ext
12192 LIBS=$ac_func_search_save_LIBS
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12195 $as_echo "$ac_cv_search_socket" >&6; }
12196 ac_res=$ac_cv_search_socket
12197 if test "$ac_res" != no; then :
12198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12203 $as_echo_n "checking for library containing inet_aton... " >&6; }
12204 if ${ac_cv_search_inet_aton+:} false; then :
12205 $as_echo_n "(cached) " >&6
12207 ac_func_search_save_LIBS=$LIBS
12208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209 /* end confdefs.h. */
12211 /* Override any GCC internal prototype to avoid an error.
12212 Use char because int might match the return type of a GCC
12213 builtin and then its argument prototype would still apply. */
12221 return inet_aton ();
12226 for ac_lib in '' resolv; do
12227 if test -z "$ac_lib"; then
12228 ac_res="none required"
12231 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12233 if ac_fn_c_try_link "$LINENO"; then :
12234 ac_cv_search_inet_aton=$ac_res
12236 rm -f core conftest.err conftest.$ac_objext \
12238 if ${ac_cv_search_inet_aton+:} false; then :
12242 if ${ac_cv_search_inet_aton+:} false; then :
12245 ac_cv_search_inet_aton=no
12247 rm conftest.$ac_ext
12248 LIBS=$ac_func_search_save_LIBS
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12251 $as_echo "$ac_cv_search_inet_aton" >&6; }
12252 ac_res=$ac_cv_search_inet_aton
12253 if test "$ac_res" != no; then :
12254 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12259 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12260 if ${ac_cv_search_clock_gettime+:} false; then :
12261 $as_echo_n "(cached) " >&6
12263 ac_func_search_save_LIBS=$LIBS
12264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265 /* end confdefs.h. */
12267 /* Override any GCC internal prototype to avoid an error.
12268 Use char because int might match the return type of a GCC
12269 builtin and then its argument prototype would still apply. */
12273 char clock_gettime ();
12277 return clock_gettime ();
12282 for ac_lib in '' rt; do
12283 if test -z "$ac_lib"; then
12284 ac_res="none required"
12287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12289 if ac_fn_c_try_link "$LINENO"; then :
12290 ac_cv_search_clock_gettime=$ac_res
12292 rm -f core conftest.err conftest.$ac_objext \
12294 if ${ac_cv_search_clock_gettime+:} false; then :
12298 if ${ac_cv_search_clock_gettime+:} false; then :
12301 ac_cv_search_clock_gettime=no
12303 rm conftest.$ac_ext
12304 LIBS=$ac_func_search_save_LIBS
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12307 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12308 ac_res=$ac_cv_search_clock_gettime
12309 if test "$ac_res" != no; then :
12310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12315 $as_echo_n "checking for library containing sendfile... " >&6; }
12316 if ${ac_cv_search_sendfile+:} false; then :
12317 $as_echo_n "(cached) " >&6
12319 ac_func_search_save_LIBS=$LIBS
12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h. */
12323 /* Override any GCC internal prototype to avoid an error.
12324 Use char because int might match the return type of a GCC
12325 builtin and then its argument prototype would still apply. */
12333 return sendfile ();
12338 for ac_lib in '' sendfile; do
12339 if test -z "$ac_lib"; then
12340 ac_res="none required"
12343 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12345 if ac_fn_c_try_link "$LINENO"; then :
12346 ac_cv_search_sendfile=$ac_res
12348 rm -f core conftest.err conftest.$ac_objext \
12350 if ${ac_cv_search_sendfile+:} false; then :
12354 if ${ac_cv_search_sendfile+:} false; then :
12357 ac_cv_search_sendfile=no
12359 rm conftest.$ac_ext
12360 LIBS=$ac_func_search_save_LIBS
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
12363 $as_echo "$ac_cv_search_sendfile" >&6; }
12364 ac_res=$ac_cv_search_sendfile
12365 if test "$ac_res" != no; then :
12366 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
12372 $as_echo_n "checking for WIN32... " >&6; }
12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12388 if ac_fn_c_try_compile "$LINENO"; then :
12389 bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12390 $as_echo "yes" >&6; }
12392 bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393 $as_echo "no" >&6; }
12395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
12398 $as_echo_n "checking for CYGWIN... " >&6; }
12399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400 /* end confdefs.h. */
12414 if ac_fn_c_try_compile "$LINENO"; then :
12415 cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12416 $as_echo "yes" >&6; }
12418 cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; }
12421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12423 for ac_header in zlib.h
12425 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12426 if test "x$ac_cv_header_zlib_h" = xyes; then :
12427 cat >>confdefs.h <<_ACEOF
12428 @%:@define HAVE_ZLIB_H 1
12436 if test "x$ac_cv_header_zlib_h" = "xyes"; then
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
12442 $as_echo_n "checking for library containing inflateEnd... " >&6; }
12443 if ${ac_cv_search_inflateEnd+:} false; then :
12444 $as_echo_n "(cached) " >&6
12446 ac_func_search_save_LIBS=$LIBS
12447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448 /* end confdefs.h. */
12450 /* Override any GCC internal prototype to avoid an error.
12451 Use char because int might match the return type of a GCC
12452 builtin and then its argument prototype would still apply. */
12456 char inflateEnd ();
12460 return inflateEnd ();
12465 for ac_lib in '' z; do
12466 if test -z "$ac_lib"; then
12467 ac_res="none required"
12470 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12472 if ac_fn_c_try_link "$LINENO"; then :
12473 ac_cv_search_inflateEnd=$ac_res
12475 rm -f core conftest.err conftest.$ac_objext \
12477 if ${ac_cv_search_inflateEnd+:} false; then :
12481 if ${ac_cv_search_inflateEnd+:} false; then :
12484 ac_cv_search_inflateEnd=no
12486 rm conftest.$ac_ext
12487 LIBS=$ac_func_search_save_LIBS
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
12490 $as_echo "$ac_cv_search_inflateEnd" >&6; }
12491 ac_res=$ac_cv_search_inflateEnd
12492 if test "$ac_res" != no; then :
12493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12497 $as_echo "@%:@define HAVE_LIBZ 1" >>confdefs.h
12504 if test "$have_zlib" = "yes"; then
12506 ZLIB_REGRESS_FALSE='#'
12508 ZLIB_REGRESS_TRUE='#'
12509 ZLIB_REGRESS_FALSE=
12513 if test "$bwin32" = true; then
12514 EV_LIB_WS32=-lws2_32
12524 for ac_header in openssl/bio.h
12526 ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
12527 if test "x$ac_cv_header_openssl_bio_h" = xyes; then :
12528 cat >>confdefs.h <<_ACEOF
12529 @%:@define HAVE_OPENSSL_BIO_H 1
12537 if test "$enable_openssl" = "yes"; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12543 $as_echo_n "checking for library containing SSL_new... " >&6; }
12544 if ${ac_cv_search_SSL_new+:} false; then :
12545 $as_echo_n "(cached) " >&6
12547 ac_func_search_save_LIBS=$LIBS
12548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549 /* end confdefs.h. */
12551 /* Override any GCC internal prototype to avoid an error.
12552 Use char because int might match the return type of a GCC
12553 builtin and then its argument prototype would still apply. */
12566 for ac_lib in '' ssl; do
12567 if test -z "$ac_lib"; then
12568 ac_res="none required"
12571 LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
12573 if ac_fn_c_try_link "$LINENO"; then :
12574 ac_cv_search_SSL_new=$ac_res
12576 rm -f core conftest.err conftest.$ac_objext \
12578 if ${ac_cv_search_SSL_new+:} false; then :
12582 if ${ac_cv_search_SSL_new+:} false; then :
12585 ac_cv_search_SSL_new=no
12587 rm conftest.$ac_ext
12588 LIBS=$ac_func_search_save_LIBS
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12591 $as_echo "$ac_cv_search_SSL_new" >&6; }
12592 ac_res=$ac_cv_search_SSL_new
12593 if test "$ac_res" != no; then :
12594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12596 OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
12598 $as_echo "@%:@define HAVE_OPENSSL 1" >>confdefs.h
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12609 $as_echo_n "checking for ANSI C header files... " >&6; }
12610 if ${ac_cv_header_stdc+:} false; then :
12611 $as_echo_n "(cached) " >&6
12613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614 /* end confdefs.h. */
12615 #include <stdlib.h>
12616 #include <stdarg.h>
12617 #include <string.h>
12628 if ac_fn_c_try_compile "$LINENO"; then :
12629 ac_cv_header_stdc=yes
12631 ac_cv_header_stdc=no
12633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12635 if test $ac_cv_header_stdc = yes; then
12636 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638 /* end confdefs.h. */
12639 #include <string.h>
12642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12643 $EGREP "memchr" >/dev/null 2>&1; then :
12646 ac_cv_header_stdc=no
12652 if test $ac_cv_header_stdc = yes; then
12653 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h. */
12656 #include <stdlib.h>
12659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12660 $EGREP "free" >/dev/null 2>&1; then :
12663 ac_cv_header_stdc=no
12669 if test $ac_cv_header_stdc = yes; then
12670 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12671 if test "$cross_compiling" = yes; then :
12674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675 /* end confdefs.h. */
12677 #include <stdlib.h>
12678 #if ((' ' & 0x0FF) == 0x020)
12679 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12680 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12682 # define ISLOWER(c) \
12683 (('a' <= (c) && (c) <= 'i') \
12684 || ('j' <= (c) && (c) <= 'r') \
12685 || ('s' <= (c) && (c) <= 'z'))
12686 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12689 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12694 for (i = 0; i < 256; i++)
12695 if (XOR (islower (i), ISLOWER (i))
12696 || toupper (i) != TOUPPER (i))
12701 if ac_fn_c_try_run "$LINENO"; then :
12704 ac_cv_header_stdc=no
12706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12707 conftest.$ac_objext conftest.beam conftest.$ac_ext
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12713 $as_echo "$ac_cv_header_stdc" >&6; }
12714 if test $ac_cv_header_stdc = yes; then
12716 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
12720 for ac_header in fcntl.h stdarg.h inttypes.h stdint.h stddef.h poll.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/param.h sys/ioctl.h sys/select.h sys/devpoll.h port.h netinet/in.h netinet/in6.h sys/socket.h sys/uio.h arpa/inet.h sys/eventfd.h sys/mman.h sys/sendfile.h sys/wait.h netdb.h
12722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12723 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12724 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12725 cat >>confdefs.h <<_ACEOF
12726 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12733 for ac_header in sys/stat.h
12735 ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12736 if test "x$ac_cv_header_sys_stat_h" = xyes; then :
12737 cat >>confdefs.h <<_ACEOF
12738 @%:@define HAVE_SYS_STAT_H 1
12745 for ac_header in sys/sysctl.h
12747 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
12748 #ifdef HAVE_SYS_PARAM_H
12749 #include <sys/param.h>
12753 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
12754 cat >>confdefs.h <<_ACEOF
12755 @%:@define HAVE_SYS_SYSCTL_H 1
12762 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
12764 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
12765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766 /* end confdefs.h. */
12768 #include <sys/queue.h>
12769 #ifdef TAILQ_FOREACH
12774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12775 $EGREP "yes" >/dev/null 2>&1; then :
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12777 $as_echo "yes" >&6; }
12779 $as_echo "@%:@define HAVE_TAILQFOREACH 1" >>confdefs.h
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12783 $as_echo "no" >&6; }
12790 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
12792 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
12793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h. */
12796 #include <sys/time.h>
12802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12803 $EGREP "yes" >/dev/null 2>&1; then :
12805 $as_echo "@%:@define HAVE_TIMERADD 1" >>confdefs.h
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12808 $as_echo "yes" >&6; }
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811 $as_echo "no" >&6; }
12818 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
12820 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
12821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822 /* end confdefs.h. */
12824 #include <sys/time.h>
12830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12831 $EGREP "yes" >/dev/null 2>&1; then :
12833 $as_echo "@%:@define HAVE_TIMERCMP 1" >>confdefs.h
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12836 $as_echo "yes" >&6; }
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12839 $as_echo "no" >&6; }
12846 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
12848 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h. */
12852 #include <sys/time.h>
12858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12859 $EGREP "yes" >/dev/null 2>&1; then :
12861 $as_echo "@%:@define HAVE_TIMERCLEAR 1" >>confdefs.h
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12864 $as_echo "yes" >&6; }
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867 $as_echo "no" >&6; }
12874 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
12876 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
12877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878 /* end confdefs.h. */
12880 #include <sys/time.h>
12886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12887 $EGREP "yes" >/dev/null 2>&1; then :
12889 $as_echo "@%:@define HAVE_TIMERISSET 1" >>confdefs.h
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12892 $as_echo "yes" >&6; }
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895 $as_echo "no" >&6; }
12902 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
12903 ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
12904 #include <sys/sysctl.h>
12907 if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
12913 cat >>confdefs.h <<_ACEOF
12914 @%:@define HAVE_DECL_CTL_KERN $ac_have_decl
12916 ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
12917 #include <sys/sysctl.h>
12920 if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
12926 cat >>confdefs.h <<_ACEOF
12927 @%:@define HAVE_DECL_KERN_RANDOM $ac_have_decl
12929 ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
12930 #include <sys/sysctl.h>
12933 if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
12939 cat >>confdefs.h <<_ACEOF
12940 @%:@define HAVE_DECL_RANDOM_UUID $ac_have_decl
12942 ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
12943 #include <sys/sysctl.h>
12946 if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
12952 cat >>confdefs.h <<_ACEOF
12953 @%:@define HAVE_DECL_KERN_ARND $ac_have_decl
12958 if test x$bwin32 = xtrue; then
12960 BUILD_WIN32_FALSE='#'
12962 BUILD_WIN32_TRUE='#'
12966 if test x$cygwin = xtrue; then
12968 BUILD_CYGWIN_FALSE='#'
12970 BUILD_CYGWIN_TRUE='#'
12971 BUILD_CYGWIN_FALSE=
12974 if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
12975 BUILD_WITH_NO_UNDEFINED_TRUE=
12976 BUILD_WITH_NO_UNDEFINED_FALSE='#'
12978 BUILD_WITH_NO_UNDEFINED_TRUE='#'
12979 BUILD_WITH_NO_UNDEFINED_FALSE=
12983 if test x$bwin32 = xtrue; then
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
12985 $as_echo_n "checking for library containing getservbyname... " >&6; }
12986 if ${ac_cv_search_getservbyname+:} false; then :
12987 $as_echo_n "(cached) " >&6
12989 ac_func_search_save_LIBS=$LIBS
12990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12991 /* end confdefs.h. */
12993 /* Override any GCC internal prototype to avoid an error.
12994 Use char because int might match the return type of a GCC
12995 builtin and then its argument prototype would still apply. */
12999 char getservbyname ();
13003 return getservbyname ();
13008 for ac_lib in '' ws2_32; do
13009 if test -z "$ac_lib"; then
13010 ac_res="none required"
13013 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13015 if ac_fn_c_try_link "$LINENO"; then :
13016 ac_cv_search_getservbyname=$ac_res
13018 rm -f core conftest.err conftest.$ac_objext \
13020 if ${ac_cv_search_getservbyname+:} false; then :
13024 if ${ac_cv_search_getservbyname+:} false; then :
13027 ac_cv_search_getservbyname=no
13029 rm conftest.$ac_ext
13030 LIBS=$ac_func_search_save_LIBS
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
13033 $as_echo "$ac_cv_search_getservbyname" >&6; }
13034 ac_res=$ac_cv_search_getservbyname
13035 if test "$ac_res" != no; then :
13036 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13043 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13044 if ${ac_cv_c_const+:} false; then :
13045 $as_echo_n "(cached) " >&6
13047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h. */
13054 #ifndef __cplusplus
13055 /* Ultrix mips cc rejects this sort of thing. */
13056 typedef int charset[2];
13057 const charset cs = { 0, 0 };
13058 /* SunOS 4.1.1 cc rejects this. */
13059 char const *const *pcpcc;
13061 /* NEC SVR4.0.2 mips cc rejects this. */
13062 struct point {int x, y;};
13063 static struct point const zero = {0,0};
13064 /* AIX XL C 1.02.0.0 rejects this.
13065 It does not let you subtract one const X* pointer from another in
13066 an arm of an if-expression whose if-part is not a constant
13068 const char *g = "string";
13069 pcpcc = &g + (g ? g-g : 0);
13070 /* HPUX 7.0 cc rejects these. */
13072 ppc = (char**) pcpcc;
13073 pcpcc = (char const *const *) ppc;
13074 { /* SCO 3.2v4 cc rejects this sort of thing. */
13077 char const *s = 0 ? (char *) 0 : (char const *) 0;
13082 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13083 int x[] = {25, 17};
13084 const int *foo = &x[0];
13087 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13088 typedef const int *iptr;
13092 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13093 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13094 struct s { int j; const int *ap[3]; } bx;
13095 struct s *b = &bx; b->j = 5;
13097 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13098 const int foo = 10;
13099 if (!foo) return 0;
13101 return !cs[0] && !zero.x;
13108 if ac_fn_c_try_compile "$LINENO"; then :
13113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13116 $as_echo "$ac_cv_c_const" >&6; }
13117 if test $ac_cv_c_const = no; then
13119 $as_echo "@%:@define const /**/" >>confdefs.h
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13124 $as_echo_n "checking for inline... " >&6; }
13125 if ${ac_cv_c_inline+:} false; then :
13126 $as_echo_n "(cached) " >&6
13129 for ac_kw in inline __inline__ __inline; do
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13132 #ifndef __cplusplus
13134 static $ac_kw foo_t static_foo () {return 0; }
13135 $ac_kw foo_t foo () {return 0; }
13139 if ac_fn_c_try_compile "$LINENO"; then :
13140 ac_cv_c_inline=$ac_kw
13142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13143 test "$ac_cv_c_inline" != no && break
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13148 $as_echo "$ac_cv_c_inline" >&6; }
13150 case $ac_cv_c_inline in
13153 case $ac_cv_c_inline in
13155 *) ac_val=$ac_cv_c_inline;;
13157 cat >>confdefs.h <<_ACEOF
13158 #ifndef __cplusplus
13159 #define inline $ac_val
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13166 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13167 if ${ac_cv_header_time+:} false; then :
13168 $as_echo_n "(cached) " >&6
13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h. */
13172 #include <sys/types.h>
13173 #include <sys/time.h>
13179 if ((struct tm *) 0)
13185 if ac_fn_c_try_compile "$LINENO"; then :
13186 ac_cv_header_time=yes
13188 ac_cv_header_time=no
13190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13193 $as_echo "$ac_cv_header_time" >&6; }
13194 if test $ac_cv_header_time = yes; then
13196 $as_echo "@%:@define TIME_WITH_SYS_TIME 1" >>confdefs.h
13201 for ac_func in gettimeofday vasprintf fcntl clock_gettime strtok_r strsep
13203 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13204 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13205 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13206 cat >>confdefs.h <<_ACEOF
13207 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13213 for ac_func in getnameinfo strlcpy inet_ntop inet_pton signal sigaction strtoll inet_aton pipe eventfd sendfile mmap splice arc4random arc4random_buf arc4random_addrandom issetugid geteuid getegid getprotobynumber setenv unsetenv putenv sysctl
13215 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13216 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13217 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13218 cat >>confdefs.h <<_ACEOF
13219 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13225 for ac_func in umask
13227 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
13228 if test "x$ac_cv_func_umask" = xyes; then :
13229 cat >>confdefs.h <<_ACEOF
13230 @%:@define HAVE_UMASK 1
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13238 $as_echo_n "checking for getaddrinfo... " >&6; }
13239 if ${libevent_cv_getaddrinfo+:} false; then :
13240 $as_echo_n "(cached) " >&6
13242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13243 /* end confdefs.h. */
13245 #ifdef HAVE_NETDB_H
13260 if ac_fn_c_try_link "$LINENO"; then :
13261 libevent_cv_getaddrinfo=yes
13263 libevent_cv_getaddrinfo=no
13266 rm -f core conftest.err conftest.$ac_objext \
13267 conftest$ac_exeext conftest.$ac_ext
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
13271 $as_echo "$libevent_cv_getaddrinfo" >&6; }
13272 if test "$libevent_cv_getaddrinfo" = "yes" ; then
13274 $as_echo "@%:@define HAVE_GETADDRINFO 1" >>confdefs.h
13278 for ac_func in getservbyname
13280 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
13281 if test "x$ac_cv_func_getservbyname" = xyes; then :
13282 cat >>confdefs.h <<_ACEOF
13283 @%:@define HAVE_GETSERVBYNAME 1
13289 # Check for gethostbyname_r in all its glorious incompatible versions.
13290 # (This is cut-and-pasted from Tor, which based its logic on
13291 # Python's configure.in.)
13294 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13295 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
13298 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
13300 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13311 struct hostent *h1, *h2;
13313 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13319 if ac_fn_c_try_compile "$LINENO"; then :
13321 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13324 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
13327 $as_echo "6" >&6; }
13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h. */
13341 struct hostent *h1;
13343 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13349 if ac_fn_c_try_compile "$LINENO"; then :
13351 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13354 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
13357 $as_echo "5" >&6; }
13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13371 struct hostent *h1;
13372 struct hostent_data hd;
13373 (void) gethostbyname_r(cp1,h1,&hd);
13379 if ac_fn_c_try_compile "$LINENO"; then :
13381 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13384 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
13387 $as_echo "3" >&6; }
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
13392 $as_echo "0" >&6; }
13395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13409 # The cast to long int works around a bug in the HP C Compiler
13410 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13411 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13412 # This bug is HP SR number 8606223364.
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13414 $as_echo_n "checking size of long... " >&6; }
13415 if ${ac_cv_sizeof_long+:} false; then :
13416 $as_echo_n "(cached) " >&6
13418 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13421 if test "$ac_cv_type_long" = yes; then
13422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13424 as_fn_error 77 "cannot compute sizeof (long)
13425 See \`config.log' for more details" "$LINENO" 5; }
13427 ac_cv_sizeof_long=0
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13433 $as_echo "$ac_cv_sizeof_long" >&6; }
13437 cat >>confdefs.h <<_ACEOF
13438 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
13444 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
13445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13448 #define _GNU_SOURCE
13455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13456 $EGREP "yes" >/dev/null 2>&1; then :
13458 $as_echo "@%:@define HAVE_SETFD 1" >>confdefs.h
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13461 $as_echo "yes" >&6; }
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13464 $as_echo "no" >&6; }
13471 if test x$bwin32 != xtrue; then
13472 for ac_func in select
13474 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
13475 if test "x$ac_cv_func_select" = xyes; then :
13476 cat >>confdefs.h <<_ACEOF
13477 @%:@define HAVE_SELECT 1
13483 if test "x$haveselect" = "xyes" ; then
13487 if test "x$haveselect" = "xyes"; then
13488 SELECT_BACKEND_TRUE=
13489 SELECT_BACKEND_FALSE='#'
13491 SELECT_BACKEND_TRUE='#'
13492 SELECT_BACKEND_FALSE=
13497 for ac_func in poll
13499 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
13500 if test "x$ac_cv_func_poll" = xyes; then :
13501 cat >>confdefs.h <<_ACEOF
13502 @%:@define HAVE_POLL 1
13508 if test "x$havepoll" = "xyes" ; then
13511 if test "x$havepoll" = "xyes"; then
13513 POLL_BACKEND_FALSE='#'
13515 POLL_BACKEND_TRUE='#'
13516 POLL_BACKEND_FALSE=
13521 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13523 $as_echo "@%:@define HAVE_DEVPOLL 1" >>confdefs.h
13526 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13527 DEVPOLL_BACKEND_TRUE=
13528 DEVPOLL_BACKEND_FALSE='#'
13530 DEVPOLL_BACKEND_TRUE='#'
13531 DEVPOLL_BACKEND_FALSE=
13536 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
13537 for ac_func in kqueue
13539 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13540 if test "x$ac_cv_func_kqueue" = xyes; then :
13541 cat >>confdefs.h <<_ACEOF
13542 @%:@define HAVE_KQUEUE 1
13548 if test "x$havekqueue" = "xyes" ; then
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
13550 $as_echo_n "checking for working kqueue... " >&6; }
13551 if test "$cross_compiling" = yes; then :
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13553 $as_echo "no" >&6; }
13555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h. */
13557 #include <sys/types.h>
13558 #include <sys/time.h>
13559 #include <sys/event.h>
13561 #include <unistd.h>
13565 main(int argc, char **argv)
13571 struct timespec ts;
13574 if (pipe(fd) == -1)
13576 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
13579 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
13582 if ((kq = kqueue()) == -1)
13585 memset(&ev, 0, sizeof(ev));
13587 ev.filter = EVFILT_WRITE;
13588 ev.flags = EV_ADD | EV_ENABLE;
13589 n = kevent(kq, &ev, 1, NULL, 0, NULL);
13593 read(fd[0], buf, sizeof(buf));
13597 n = kevent(kq, NULL, 0, &ev, 1, &ts);
13598 if (n == -1 || n == 0)
13604 if ac_fn_c_try_run "$LINENO"; then :
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13606 $as_echo "yes" >&6; }
13608 $as_echo "@%:@define HAVE_WORKING_KQUEUE 1" >>confdefs.h
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13614 $as_echo "no" >&6; }
13616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13617 conftest.$ac_objext conftest.beam conftest.$ac_ext
13622 if test "x$havekqueue" = "xyes"; then
13623 KQUEUE_BACKEND_TRUE=
13624 KQUEUE_BACKEND_FALSE='#'
13626 KQUEUE_BACKEND_TRUE='#'
13627 KQUEUE_BACKEND_FALSE=
13631 haveepollsyscall=no
13633 for ac_func in epoll_ctl
13635 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
13636 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
13637 cat >>confdefs.h <<_ACEOF
13638 @%:@define HAVE_EPOLL_CTL 1
13644 if test "x$haveepoll" = "xyes" ; then
13646 $as_echo "@%:@define HAVE_EPOLL 1" >>confdefs.h
13650 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
13651 if test "x$haveepoll" = "xno" ; then
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
13653 $as_echo_n "checking for epoll system call... " >&6; }
13654 if test "$cross_compiling" = yes; then :
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13656 $as_echo "no" >&6; }
13658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659 /* end confdefs.h. */
13660 #include <stdint.h>
13661 #include <sys/param.h>
13662 #include <sys/types.h>
13663 #include <sys/syscall.h>
13664 #include <sys/epoll.h>
13665 #include <unistd.h>
13668 epoll_create(int size)
13670 return (syscall(__NR_epoll_create, size));
13674 main(int argc, char **argv)
13678 epfd = epoll_create(256);
13679 exit (epfd == -1 ? 1 : 0);
13682 if ac_fn_c_try_run "$LINENO"; then :
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13684 $as_echo "yes" >&6; }
13686 $as_echo "@%:@define HAVE_EPOLL 1" >>confdefs.h
13690 case " $LIB@&t@OBJS " in
13691 *" epoll_sub.$ac_objext "* ) ;;
13692 *) LIB@&t@OBJS="$LIB@&t@OBJS epoll_sub.$ac_objext"
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13699 $as_echo "no" >&6; }
13701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13702 conftest.$ac_objext conftest.beam conftest.$ac_ext
13707 if test "x$haveepoll" = "xyes"; then
13708 EPOLL_BACKEND_TRUE=
13709 EPOLL_BACKEND_FALSE='#'
13711 EPOLL_BACKEND_TRUE='#'
13712 EPOLL_BACKEND_FALSE=
13717 for ac_func in port_create
13719 ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
13720 if test "x$ac_cv_func_port_create" = xyes; then :
13721 cat >>confdefs.h <<_ACEOF
13722 @%:@define HAVE_PORT_CREATE 1
13728 if test "x$haveeventports" = "xyes" ; then
13730 $as_echo "@%:@define HAVE_EVENT_PORTS 1" >>confdefs.h
13734 if test "x$haveeventports" = "xyes"; then
13735 EVPORT_BACKEND_TRUE=
13736 EVPORT_BACKEND_FALSE='#'
13738 EVPORT_BACKEND_TRUE='#'
13739 EVPORT_BACKEND_FALSE=
13743 if test "x$bwin32" = "xtrue"; then
13747 if test "x$needsignal" = "xyes"; then
13748 SIGNAL_SUPPORT_TRUE=
13749 SIGNAL_SUPPORT_FALSE='#'
13751 SIGNAL_SUPPORT_TRUE='#'
13752 SIGNAL_SUPPORT_FALSE=
13756 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13757 if test "x$ac_cv_type_pid_t" = xyes; then :
13761 cat >>confdefs.h <<_ACEOF
13762 @%:@define pid_t int
13767 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13768 if test "x$ac_cv_type_size_t" = xyes; then :
13772 cat >>confdefs.h <<_ACEOF
13773 @%:@define size_t unsigned int
13778 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13779 if test "x$ac_cv_type_ssize_t" = xyes; then :
13783 cat >>confdefs.h <<_ACEOF
13784 @%:@define ssize_t int
13790 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
13791 #include <stdint.h>
13792 #elif defined(HAVE_INTTYPES_H)
13793 #include <inttypes.h>
13795 #ifdef HAVE_SYS_TYPES_H
13796 #include <sys/types.h>
13799 if test "x$ac_cv_type_uint64_t" = xyes; then :
13801 cat >>confdefs.h <<_ACEOF
13802 @%:@define HAVE_UINT64_T 1
13807 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
13808 #include <stdint.h>
13809 #elif defined(HAVE_INTTYPES_H)
13810 #include <inttypes.h>
13812 #ifdef HAVE_SYS_TYPES_H
13813 #include <sys/types.h>
13816 if test "x$ac_cv_type_uint32_t" = xyes; then :
13818 cat >>confdefs.h <<_ACEOF
13819 @%:@define HAVE_UINT32_T 1
13824 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
13825 #include <stdint.h>
13826 #elif defined(HAVE_INTTYPES_H)
13827 #include <inttypes.h>
13829 #ifdef HAVE_SYS_TYPES_H
13830 #include <sys/types.h>
13833 if test "x$ac_cv_type_uint16_t" = xyes; then :
13835 cat >>confdefs.h <<_ACEOF
13836 @%:@define HAVE_UINT16_T 1
13841 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
13842 #include <stdint.h>
13843 #elif defined(HAVE_INTTYPES_H)
13844 #include <inttypes.h>
13846 #ifdef HAVE_SYS_TYPES_H
13847 #include <sys/types.h>
13850 if test "x$ac_cv_type_uint8_t" = xyes; then :
13852 cat >>confdefs.h <<_ACEOF
13853 @%:@define HAVE_UINT8_T 1
13858 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
13859 #include <stdint.h>
13860 #elif defined(HAVE_INTTYPES_H)
13861 #include <inttypes.h>
13863 #ifdef HAVE_SYS_TYPES_H
13864 #include <sys/types.h>
13867 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13869 cat >>confdefs.h <<_ACEOF
13870 @%:@define HAVE_UINTPTR_T 1
13877 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
13878 #include <sys/types.h>
13880 #ifdef HAVE_SYS_SELECT_H
13881 #include <sys/select.h>
13884 if test "x$ac_cv_type_fd_mask" = xyes; then :
13886 cat >>confdefs.h <<_ACEOF
13887 @%:@define HAVE_FD_MASK 1
13894 # The cast to long int works around a bug in the HP C Compiler
13895 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13896 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13897 # This bug is HP SR number 8606223364.
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13899 $as_echo_n "checking size of long long... " >&6; }
13900 if ${ac_cv_sizeof_long_long+:} false; then :
13901 $as_echo_n "(cached) " >&6
13903 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13906 if test "$ac_cv_type_long_long" = yes; then
13907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13909 as_fn_error 77 "cannot compute sizeof (long long)
13910 See \`config.log' for more details" "$LINENO" 5; }
13912 ac_cv_sizeof_long_long=0
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13918 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13922 cat >>confdefs.h <<_ACEOF
13923 @%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13927 # The cast to long int works around a bug in the HP C Compiler
13928 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13929 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13930 # This bug is HP SR number 8606223364.
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13932 $as_echo_n "checking size of long... " >&6; }
13933 if ${ac_cv_sizeof_long+:} false; then :
13934 $as_echo_n "(cached) " >&6
13936 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13939 if test "$ac_cv_type_long" = yes; then
13940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13942 as_fn_error 77 "cannot compute sizeof (long)
13943 See \`config.log' for more details" "$LINENO" 5; }
13945 ac_cv_sizeof_long=0
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13951 $as_echo "$ac_cv_sizeof_long" >&6; }
13955 cat >>confdefs.h <<_ACEOF
13956 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
13960 # The cast to long int works around a bug in the HP C Compiler
13961 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13962 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13963 # This bug is HP SR number 8606223364.
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13965 $as_echo_n "checking size of int... " >&6; }
13966 if ${ac_cv_sizeof_int+:} false; then :
13967 $as_echo_n "(cached) " >&6
13969 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13972 if test "$ac_cv_type_int" = yes; then
13973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13975 as_fn_error 77 "cannot compute sizeof (int)
13976 See \`config.log' for more details" "$LINENO" 5; }
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13984 $as_echo "$ac_cv_sizeof_int" >&6; }
13988 cat >>confdefs.h <<_ACEOF
13989 @%:@define SIZEOF_INT $ac_cv_sizeof_int
13993 # The cast to long int works around a bug in the HP C Compiler
13994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13996 # This bug is HP SR number 8606223364.
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13998 $as_echo_n "checking size of short... " >&6; }
13999 if ${ac_cv_sizeof_short+:} false; then :
14000 $as_echo_n "(cached) " >&6
14002 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14005 if test "$ac_cv_type_short" = yes; then
14006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14008 as_fn_error 77 "cannot compute sizeof (short)
14009 See \`config.log' for more details" "$LINENO" 5; }
14011 ac_cv_sizeof_short=0
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14017 $as_echo "$ac_cv_sizeof_short" >&6; }
14021 cat >>confdefs.h <<_ACEOF
14022 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
14026 # The cast to long int works around a bug in the HP C Compiler
14027 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14028 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14029 # This bug is HP SR number 8606223364.
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14031 $as_echo_n "checking size of size_t... " >&6; }
14032 if ${ac_cv_sizeof_size_t+:} false; then :
14033 $as_echo_n "(cached) " >&6
14035 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14038 if test "$ac_cv_type_size_t" = yes; then
14039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14041 as_fn_error 77 "cannot compute sizeof (size_t)
14042 See \`config.log' for more details" "$LINENO" 5; }
14044 ac_cv_sizeof_size_t=0
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14050 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14054 cat >>confdefs.h <<_ACEOF
14055 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14059 # The cast to long int works around a bug in the HP C Compiler
14060 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14061 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14062 # This bug is HP SR number 8606223364.
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14064 $as_echo_n "checking size of void *... " >&6; }
14065 if ${ac_cv_sizeof_void_p+:} false; then :
14066 $as_echo_n "(cached) " >&6
14068 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14071 if test "$ac_cv_type_void_p" = yes; then
14072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14074 as_fn_error 77 "cannot compute sizeof (void *)
14075 See \`config.log' for more details" "$LINENO" 5; }
14077 ac_cv_sizeof_void_p=0
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14083 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14087 cat >>confdefs.h <<_ACEOF
14088 @%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14093 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
14094 #include <sys/types.h>
14095 #ifdef HAVE_NETINET_IN_H
14096 #include <netinet/in.h>
14098 #ifdef HAVE_NETINET_IN6_H
14099 #include <netinet/in6.h>
14101 #ifdef HAVE_SYS_SOCKET_H
14102 #include <sys/socket.h>
14104 #ifdef HAVE_NETDB_H
14108 #define WIN32_WINNT 0x400
14109 #define _WIN32_WINNT 0x400
14110 #define WIN32_LEAN_AND_MEAN
14111 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14112 #include <winsock.h>
14114 #include <winsock2.h>
14115 #include <ws2tcpip.h>
14120 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
14122 cat >>confdefs.h <<_ACEOF
14123 @%:@define HAVE_STRUCT_IN6_ADDR 1
14128 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
14129 #include <sys/types.h>
14130 #ifdef HAVE_NETINET_IN_H
14131 #include <netinet/in.h>
14133 #ifdef HAVE_NETINET_IN6_H
14134 #include <netinet/in6.h>
14136 #ifdef HAVE_SYS_SOCKET_H
14137 #include <sys/socket.h>
14139 #ifdef HAVE_NETDB_H
14143 #define WIN32_WINNT 0x400
14144 #define _WIN32_WINNT 0x400
14145 #define WIN32_LEAN_AND_MEAN
14146 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14147 #include <winsock.h>
14149 #include <winsock2.h>
14150 #include <ws2tcpip.h>
14155 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
14157 cat >>confdefs.h <<_ACEOF
14158 @%:@define HAVE_STRUCT_SOCKADDR_IN6 1
14163 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
14164 #include <sys/types.h>
14165 #ifdef HAVE_NETINET_IN_H
14166 #include <netinet/in.h>
14168 #ifdef HAVE_NETINET_IN6_H
14169 #include <netinet/in6.h>
14171 #ifdef HAVE_SYS_SOCKET_H
14172 #include <sys/socket.h>
14174 #ifdef HAVE_NETDB_H
14178 #define WIN32_WINNT 0x400
14179 #define _WIN32_WINNT 0x400
14180 #define WIN32_LEAN_AND_MEAN
14181 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14182 #include <winsock.h>
14184 #include <winsock2.h>
14185 #include <ws2tcpip.h>
14190 if test "x$ac_cv_type_sa_family_t" = xyes; then :
14192 cat >>confdefs.h <<_ACEOF
14193 @%:@define HAVE_SA_FAMILY_T 1
14198 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
14199 #include <sys/types.h>
14200 #ifdef HAVE_NETINET_IN_H
14201 #include <netinet/in.h>
14203 #ifdef HAVE_NETINET_IN6_H
14204 #include <netinet/in6.h>
14206 #ifdef HAVE_SYS_SOCKET_H
14207 #include <sys/socket.h>
14209 #ifdef HAVE_NETDB_H
14213 #define WIN32_WINNT 0x400
14214 #define _WIN32_WINNT 0x400
14215 #define WIN32_LEAN_AND_MEAN
14216 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14217 #include <winsock.h>
14219 #include <winsock2.h>
14220 #include <ws2tcpip.h>
14225 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14227 cat >>confdefs.h <<_ACEOF
14228 @%:@define HAVE_STRUCT_ADDRINFO 1
14233 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
14234 #include <sys/types.h>
14235 #ifdef HAVE_NETINET_IN_H
14236 #include <netinet/in.h>
14238 #ifdef HAVE_NETINET_IN6_H
14239 #include <netinet/in6.h>
14241 #ifdef HAVE_SYS_SOCKET_H
14242 #include <sys/socket.h>
14244 #ifdef HAVE_NETDB_H
14248 #define WIN32_WINNT 0x400
14249 #define _WIN32_WINNT 0x400
14250 #define WIN32_LEAN_AND_MEAN
14251 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14252 #include <winsock.h>
14254 #include <winsock2.h>
14255 #include <ws2tcpip.h>
14260 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
14262 cat >>confdefs.h <<_ACEOF
14263 @%:@define HAVE_STRUCT_SOCKADDR_STORAGE 1
14269 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
14270 #ifdef HAVE_NETINET_IN_H
14271 #include <netinet/in.h>
14273 #ifdef HAVE_NETINET_IN6_H
14274 #include <netinet/in6.h>
14276 #ifdef HAVE_SYS_SOCKET_H
14277 #include <sys/socket.h>
14280 #define WIN32_WINNT 0x400
14281 #define _WIN32_WINNT 0x400
14282 #define WIN32_LEAN_AND_MEAN
14283 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14284 #include <winsock.h>
14286 #include <winsock2.h>
14287 #include <ws2tcpip.h>
14292 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
14294 cat >>confdefs.h <<_ACEOF
14295 @%:@define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
14300 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
14301 #ifdef HAVE_NETINET_IN_H
14302 #include <netinet/in.h>
14304 #ifdef HAVE_NETINET_IN6_H
14305 #include <netinet/in6.h>
14307 #ifdef HAVE_SYS_SOCKET_H
14308 #include <sys/socket.h>
14311 #define WIN32_WINNT 0x400
14312 #define _WIN32_WINNT 0x400
14313 #define WIN32_LEAN_AND_MEAN
14314 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14315 #include <winsock.h>
14317 #include <winsock2.h>
14318 #include <ws2tcpip.h>
14323 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
14325 cat >>confdefs.h <<_ACEOF
14326 @%:@define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
14331 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
14332 #ifdef HAVE_NETINET_IN_H
14333 #include <netinet/in.h>
14335 #ifdef HAVE_NETINET_IN6_H
14336 #include <netinet/in6.h>
14338 #ifdef HAVE_SYS_SOCKET_H
14339 #include <sys/socket.h>
14342 #define WIN32_WINNT 0x400
14343 #define _WIN32_WINNT 0x400
14344 #define WIN32_LEAN_AND_MEAN
14345 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14346 #include <winsock.h>
14348 #include <winsock2.h>
14349 #include <ws2tcpip.h>
14354 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
14356 cat >>confdefs.h <<_ACEOF
14357 @%:@define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
14362 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
14363 #ifdef HAVE_NETINET_IN_H
14364 #include <netinet/in.h>
14366 #ifdef HAVE_NETINET_IN6_H
14367 #include <netinet/in6.h>
14369 #ifdef HAVE_SYS_SOCKET_H
14370 #include <sys/socket.h>
14373 #define WIN32_WINNT 0x400
14374 #define _WIN32_WINNT 0x400
14375 #define WIN32_LEAN_AND_MEAN
14376 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14377 #include <winsock.h>
14379 #include <winsock2.h>
14380 #include <ws2tcpip.h>
14385 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
14387 cat >>confdefs.h <<_ACEOF
14388 @%:@define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
14393 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14394 #ifdef HAVE_NETINET_IN_H
14395 #include <netinet/in.h>
14397 #ifdef HAVE_NETINET_IN6_H
14398 #include <netinet/in6.h>
14400 #ifdef HAVE_SYS_SOCKET_H
14401 #include <sys/socket.h>
14404 #define WIN32_WINNT 0x400
14405 #define _WIN32_WINNT 0x400
14406 #define WIN32_LEAN_AND_MEAN
14407 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14408 #include <winsock.h>
14410 #include <winsock2.h>
14411 #include <ws2tcpip.h>
14416 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
14418 cat >>confdefs.h <<_ACEOF
14419 @%:@define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14424 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14425 #ifdef HAVE_NETINET_IN_H
14426 #include <netinet/in.h>
14428 #ifdef HAVE_NETINET_IN6_H
14429 #include <netinet/in6.h>
14431 #ifdef HAVE_SYS_SOCKET_H
14432 #include <sys/socket.h>
14435 #define WIN32_WINNT 0x400
14436 #define _WIN32_WINNT 0x400
14437 #define WIN32_LEAN_AND_MEAN
14438 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14439 #include <winsock.h>
14441 #include <winsock2.h>
14442 #include <ws2tcpip.h>
14447 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
14449 cat >>confdefs.h <<_ACEOF
14450 @%:@define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
14458 $as_echo_n "checking for socklen_t... " >&6; }
14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14462 #include <sys/types.h>
14463 #include <sys/socket.h>
14472 if ac_fn_c_try_compile "$LINENO"; then :
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14474 $as_echo "yes" >&6; }
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14477 $as_echo "no" >&6; }
14479 $as_echo "@%:@define socklen_t unsigned int" >>confdefs.h
14483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
14486 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
14487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488 /* end confdefs.h. */
14493 const char *cp = __func__;
14498 if ac_fn_c_try_compile "$LINENO"; then :
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14500 $as_echo "yes" >&6; }
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14503 $as_echo "no" >&6; }
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
14505 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
14506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507 /* end confdefs.h. */
14512 const char *cp = __FUNCTION__;
14517 if ac_fn_c_try_compile "$LINENO"; then :
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14519 $as_echo "yes" >&6; }
14521 $as_echo "@%:@define __func__ __FUNCTION__" >>confdefs.h
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14525 $as_echo "no" >&6; }
14527 $as_echo "@%:@define __func__ __FILE__" >>confdefs.h
14530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14535 # check if we can compile with pthreads
14537 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
14542 ac_cpp='$CPP $CPPFLAGS'
14543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14549 # We used to check for pthread.h first, but this fails if pthread.h
14550 # requires special compiler flags (e.g. on True64 or Sequent).
14551 # It gets checked for in the link test anyway.
14553 # First of all, check if the user has set any of the PTHREAD_LIBS,
14554 # etcetera environment variables, and if threads linking works using
14556 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14557 save_CFLAGS="$CFLAGS"
14558 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14560 LIBS="$PTHREAD_LIBS $LIBS"
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14562 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14566 /* Override any GCC internal prototype to avoid an error.
14567 Use char because int might match the return type of a GCC
14568 builtin and then its argument prototype would still apply. */
14572 char pthread_join ();
14576 return pthread_join ();
14581 if ac_fn_c_try_link "$LINENO"; then :
14584 rm -f core conftest.err conftest.$ac_objext \
14585 conftest$ac_exeext conftest.$ac_ext
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14587 $as_echo "$acx_pthread_ok" >&6; }
14588 if test x"$acx_pthread_ok" = xno; then
14593 CFLAGS="$save_CFLAGS"
14596 # We must check for the threads library under a number of different
14597 # names; the ordering is very important because some systems
14598 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14599 # libraries is broken (non-POSIX).
14601 # Create a list of thread flags to try. Items starting with a "-" are
14602 # C compiler flags, and other items are library names, except for "none"
14603 # which indicates that we try without any flags at all, and "pthread-config"
14604 # which is a program returning the flags for the Pth emulation library.
14606 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14608 # The ordering *is* (sometimes) important. Some notes on the
14609 # individual items follow:
14611 # pthreads: AIX (must check this before -lpthread)
14612 # none: in case threads are in libc; should be tried before -Kthread and
14613 # other compiler flags to prevent continual compiler warnings
14614 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14615 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14616 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14617 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14618 # -pthreads: Solaris/gcc
14619 # -mthreads: Mingw32/gcc, Lynx/gcc
14620 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14621 # doesn't hurt to check since this sometimes defines pthreads too;
14622 # also defines -D_REENTRANT)
14623 # ... -mt is also the pthreads flag for HP/aCC
14624 # pthread: Linux, etcetera
14625 # --thread-safe: KAI C++
14626 # pthread-config: use pthread-config program (for GNU Pth library)
14628 case "${host_cpu}-${host_os}" in
14631 # On Solaris (at least, for some versions), libc contains stubbed
14632 # (non-functional) versions of the pthreads routines, so link-based
14633 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
14634 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
14635 # a function called by this macro, so we could check for that, but
14636 # who knows whether they'll stub that too in a future libc.) So,
14637 # we'll just look for -pthreads and -lpthread first:
14639 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
14643 if test x"$acx_pthread_ok" = xno; then
14644 for flag in $acx_pthread_flags; do
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14649 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14654 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
14655 PTHREAD_CFLAGS="$flag"
14659 # Extract the first word of "pthread-config", so it can be a program name with args.
14660 set dummy pthread-config; ac_word=$2
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14662 $as_echo_n "checking for $ac_word... " >&6; }
14663 if ${ac_cv_prog_acx_pthread_config+:} false; then :
14664 $as_echo_n "(cached) " >&6
14666 if test -n "$acx_pthread_config"; then
14667 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14670 for as_dir in $PATH
14673 test -z "$as_dir" && as_dir=.
14674 for ac_exec_ext in '' $ac_executable_extensions; do
14675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14676 ac_cv_prog_acx_pthread_config="yes"
14677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14684 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14687 acx_pthread_config=$ac_cv_prog_acx_pthread_config
14688 if test -n "$acx_pthread_config"; then
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14690 $as_echo "$acx_pthread_config" >&6; }
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14693 $as_echo "no" >&6; }
14697 if test x"$acx_pthread_config" = xno; then continue; fi
14698 PTHREAD_CFLAGS="`pthread-config --cflags`"
14699 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14704 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14705 PTHREAD_LIBS="-l$flag"
14710 save_CFLAGS="$CFLAGS"
14711 LIBS="$PTHREAD_LIBS $LIBS"
14712 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14714 # Check for various functions. We must include pthread.h,
14715 # since some functions may be macros. (On the Sequent, we
14716 # need a special flag -Kthread to make this header compile.)
14717 # We check for pthread_join because it is in -lpthread on IRIX
14718 # while pthread_create is in libc. We check for pthread_attr_init
14719 # due to DEC craziness with -lpthreads. We check for
14720 # pthread_cleanup_push because it is one of the few pthread
14721 # functions on Solaris that doesn't have a non-functional libc stub.
14722 # We try pthread_create on general principles.
14723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14724 /* end confdefs.h. */
14725 #include <pthread.h>
14729 pthread_t th; pthread_join(th, 0);
14730 pthread_attr_init(0); pthread_cleanup_push(0, 0);
14731 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14736 if ac_fn_c_try_link "$LINENO"; then :
14739 rm -f core conftest.err conftest.$ac_objext \
14740 conftest$ac_exeext conftest.$ac_ext
14743 CFLAGS="$save_CFLAGS"
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14746 $as_echo "$acx_pthread_ok" >&6; }
14747 if test "x$acx_pthread_ok" = xyes; then
14756 # Various other checks:
14757 if test "x$acx_pthread_ok" = xyes; then
14759 LIBS="$PTHREAD_LIBS $LIBS"
14760 save_CFLAGS="$CFLAGS"
14761 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14763 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14765 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14767 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h. */
14770 #include <pthread.h>
14774 int attr=$attr; return attr;
14779 if ac_fn_c_try_link "$LINENO"; then :
14780 attr_name=$attr; break
14782 rm -f core conftest.err conftest.$ac_objext \
14783 conftest$ac_exeext conftest.$ac_ext
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14786 $as_echo "$attr_name" >&6; }
14787 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14789 cat >>confdefs.h <<_ACEOF
14790 @%:@define PTHREAD_CREATE_JOINABLE $attr_name
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14796 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14798 case "${host_cpu}-${host_os}" in
14799 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14800 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14803 $as_echo "${flag}" >&6; }
14804 if test "x$flag" != xno; then
14805 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14809 CFLAGS="$save_CFLAGS"
14811 # More AIX lossage: must compile with xlc_r or cc_r
14812 if test x"$GCC" != xyes; then
14813 for ac_prog in xlc_r cc_r
14815 # Extract the first word of "$ac_prog", so it can be a program name with args.
14816 set dummy $ac_prog; ac_word=$2
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14818 $as_echo_n "checking for $ac_word... " >&6; }
14819 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
14820 $as_echo_n "(cached) " >&6
14822 if test -n "$PTHREAD_CC"; then
14823 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14826 for as_dir in $PATH
14829 test -z "$as_dir" && as_dir=.
14830 for ac_exec_ext in '' $ac_executable_extensions; do
14831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14832 ac_cv_prog_PTHREAD_CC="$ac_prog"
14833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14842 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14843 if test -n "$PTHREAD_CC"; then
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14845 $as_echo "$PTHREAD_CC" >&6; }
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14848 $as_echo "no" >&6; }
14852 test -n "$PTHREAD_CC" && break
14854 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14867 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14868 if test x"$acx_pthread_ok" = xyes; then
14871 $as_echo "@%:@define HAVE_PTHREADS 1" >>confdefs.h
14880 ac_cpp='$CPP $CPPFLAGS'
14881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14886 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14887 # The cast to long int works around a bug in the HP C Compiler
14888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14890 # This bug is HP SR number 8606223364.
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
14892 $as_echo_n "checking size of pthread_t... " >&6; }
14893 if ${ac_cv_sizeof_pthread_t+:} false; then :
14894 $as_echo_n "(cached) " >&6
14896 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default
14897 #include <pthread.h>
14902 if test "$ac_cv_type_pthread_t" = yes; then
14903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14905 as_fn_error 77 "cannot compute sizeof (pthread_t)
14906 See \`config.log' for more details" "$LINENO" 5; }
14908 ac_cv_sizeof_pthread_t=0
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
14914 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
14918 cat >>confdefs.h <<_ACEOF
14919 @%:@define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14924 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
14933 # check if we should compile locking into the library
14934 if test x$enable_thread_support = xno; then
14936 $as_echo "@%:@define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
14940 # check if we should hard-code the mm functions.
14941 if test x$enable_malloc_replacement = xno; then
14943 $as_echo "@%:@define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
14947 # check if we should hard-code debugging out
14948 if test x$enable_debug_mode = xno; then
14950 $as_echo "@%:@define DISABLE_DEBUG_MODE 1" >>confdefs.h
14954 # check if we have and should use openssl
14955 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
14964 # Add some more warnings which we use in development but not in the
14965 # released versions. (Some relevant gcc versions can't handle these.)
14966 if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then
14968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14969 /* end confdefs.h. */
14975 #if !defined(__GNUC__) || (__GNUC__ < 4)
14982 if ac_fn_c_try_compile "$LINENO"; then :
14987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14990 /* end confdefs.h. */
14996 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
15003 if ac_fn_c_try_compile "$LINENO"; then :
15008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011 /* end confdefs.h. */
15017 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
15024 if ac_fn_c_try_compile "$LINENO"; then :
15029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032 /* end confdefs.h. */
15038 #if !defined(__clang__)
15045 if ac_fn_c_try_compile "$LINENO"; then :
15050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052 CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror"
15053 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
15055 if test x$have_gcc4 = xyes ; then
15056 # These warnings break gcc 3.3.5 and work on gcc 4.0.2
15057 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
15058 #CFLAGS="$CFLAGS -Wold-style-definition"
15061 if test x$have_gcc42 = xyes ; then
15062 # These warnings break gcc 4.0.2 and work on gcc 4.2
15063 CFLAGS="$CFLAGS -Waddress"
15066 if test x$have_gcc42 = xyes && test x$have_clang = xno; then
15067 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
15068 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
15071 if test x$have_gcc45 = xyes ; then
15072 # These warnings work on gcc 4.5
15073 CFLAGS="$CFLAGS -Wlogical-op"
15076 if test x$have_clang = xyes; then
15077 # Disable the unused-function warnings, because these trigger
15078 # for minheap-internal.h related code.
15079 CFLAGS="$CFLAGS -Wno-unused-function"
15081 # clang on macosx emits warnigns for each directory specified which
15082 # isn't "used" generating a lot of build noise (typically 3 warnings
15086 CFLAGS="$CFLAGS -Qunused-arguments"
15091 ##This will break the world on some 64-bit architectures
15092 # CFLAGS="$CFLAGS -Winline"
15096 LIBEVENT_GC_SECTIONS=
15097 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
15099 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
15100 if ${libevent_cv_gc_sections_runs+:} false; then :
15101 $as_echo_n "(cached) " >&6
15104 origCFLAGS="$CFLAGS"
15105 CFLAGS="$CFLAGS -Wl,--gc-sections"
15106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15107 /* end confdefs.h. */
15109 #include <stdlib.h>
15119 int read_success_once;
15121 fpC = fopen("conftest.c", "r");
15125 cch = fread(buf, sizeof(buf), 1, fpC);
15126 read_success_once |= (0 != cch);
15127 } while (0 != cch);
15128 if (!read_success_once)
15132 if (0 != fclose(fpC))
15135 exit(EXIT_SUCCESS);
15142 if ac_fn_c_try_link "$LINENO"; then :
15144 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
15145 libevent_cv_gc_sections_runs=no
15147 libevent_cv_gc_sections_runs=no
15148 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
15152 libevent_cv_gc_sections_runs=no
15155 rm -f core conftest.err conftest.$ac_objext \
15156 conftest$ac_exeext conftest.$ac_ext
15157 CFLAGS="$origCFLAGS"
15158 { origCFLAGS=; unset origCFLAGS;}
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
15163 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
15164 case "$libevent_cv_gc_sections_runs" in
15166 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
15167 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
15173 if test "$enable_libevent_install" = "yes"; then
15174 INSTALL_LIBEVENT_TRUE=
15175 INSTALL_LIBEVENT_FALSE='#'
15177 INSTALL_LIBEVENT_TRUE='#'
15178 INSTALL_LIBEVENT_FALSE=
15182 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
15184 ac_config_files="$ac_config_files Makefile include/Makefile test/Makefile sample/Makefile"
15186 cat >confcache <<\_ACEOF
15187 # This file is a shell script that caches the results of configure
15188 # tests run on this system so they can be shared between configure
15189 # scripts and configure runs, see configure's option --config-cache.
15190 # It is not useful on other systems. If it contains results you don't
15191 # want to keep, you may remove or edit it.
15193 # config.status only pays attention to the cache file if you give it
15194 # the --recheck option to rerun configure.
15196 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15197 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15198 # following values.
15202 # The following way of writing the cache mishandles newlines in values,
15203 # but we know of no workaround that is simple, portable, and efficient.
15204 # So, we kill variables containing newlines.
15205 # Ultrix sh set writes to stderr and can't be redirected directly,
15206 # and sets the high bit in the cache file unless we assign to the vars.
15208 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15209 eval ac_val=\$$ac_var
15213 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15214 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15217 _ | IFS | as_nl) ;; #(
15218 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15219 *) { eval $ac_var=; unset $ac_var;} ;;
15225 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15226 *${as_nl}ac_space=\ *)
15227 # `set' does not quote correctly, so add quotes: double-quote
15228 # substitution turns \\\\ into \\, and sed turns \\ into \.
15231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15234 # `set' quotes correctly as required by POSIX, so do not add quotes.
15235 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15244 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15246 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15248 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15249 if test -w "$cache_file"; then
15250 if test "x$cache_file" != "x/dev/null"; then
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15252 $as_echo "$as_me: updating cache $cache_file" >&6;}
15253 if test ! -f "$cache_file" || test -h "$cache_file"; then
15254 cat confcache >"$cache_file"
15256 case $cache_file in #(
15258 mv -f confcache "$cache_file"$$ &&
15259 mv -f "$cache_file"$$ "$cache_file" ;; #(
15261 mv -f confcache "$cache_file" ;;
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15267 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15272 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15273 # Let make expand exec_prefix.
15274 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15276 DEFS=-DHAVE_CONFIG_H
15281 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
15282 # 1. Remove the extension, and $U if already installed.
15283 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15284 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15285 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15286 # will be set to the directory where LIBOBJS objects are built.
15287 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15288 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15290 LIB@&t@OBJS=$ac_libobjs
15292 LTLIBOBJS=$ac_ltlibobjs
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15296 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15297 if test -n "$am_sleep_pid"; then
15298 # Hide warnings about reused PIDs.
15299 wait $am_sleep_pid 2>/dev/null
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15302 $as_echo "done" >&6; }
15303 if test -n "$EXEEXT"; then
15305 am__EXEEXT_FALSE='#'
15307 am__EXEEXT_TRUE='#'
15311 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15312 as_fn_error $? "conditional \"AMDEP\" was never defined.
15313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15315 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15316 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15319 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
15320 as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
15321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15323 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
15324 as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
15325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15327 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
15328 as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
15329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15331 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
15332 as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
15333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15335 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
15336 as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
15337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15339 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
15340 as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
15341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15343 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
15344 as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
15345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15347 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
15348 as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
15349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15351 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
15352 as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
15353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15355 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
15356 as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
15357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15359 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
15360 as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
15361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15363 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
15364 as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
15365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15367 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
15368 as_fn_error $? "conditional \"PTHREADS\" was never defined.
15369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15371 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
15372 as_fn_error $? "conditional \"OPENSSL\" was never defined.
15373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15375 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
15376 as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
15377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15380 : "${CONFIG_STATUS=./config.status}"
15382 ac_clean_files_save=$ac_clean_files
15383 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15385 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15387 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15389 # Generated by $as_me.
15390 # Run this file to recreate the current configuration.
15391 # Compiler output produced by configure, useful for debugging
15392 # configure, is in config.log if it exists.
15395 ac_cs_recheck=false
15398 SHELL=\${CONFIG_SHELL-$SHELL}
15401 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15402 ## -------------------- ##
15403 ## M4sh Initialization. ##
15404 ## -------------------- ##
15406 # Be more Bourne compatible
15407 DUALCASE=1; export DUALCASE # for MKS sh
15408 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15411 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15412 # is contrary to our usage. Disable this feature.
15413 alias -g '${1+"$@"}'='"$@"'
15414 setopt NO_GLOB_SUBST
15416 case `(set -o) 2>/dev/null` in @%:@(
15418 set -o posix ;; @%:@(
15428 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15429 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15430 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15431 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15432 # Prefer a ksh shell builtin over an external printf program on Solaris,
15433 # but without wasting forks for bash or zsh.
15434 if test -z "$BASH_VERSION$ZSH_VERSION" \
15435 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15436 as_echo='print -r --'
15437 as_echo_n='print -rn --'
15438 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15439 as_echo='printf %s\n'
15440 as_echo_n='printf %s'
15442 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15443 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15444 as_echo_n='/usr/ucb/echo -n'
15446 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15447 as_echo_n_body='eval
15451 expr "X$arg" : "X\\(.*\\)$as_nl";
15452 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15454 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15456 export as_echo_n_body
15457 as_echo_n='sh -c $as_echo_n_body as_echo'
15459 export as_echo_body
15460 as_echo='sh -c $as_echo_body as_echo'
15463 # The user is always right.
15464 if test "${PATH_SEPARATOR+set}" != set; then
15466 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15467 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15474 # We need space, tab and new line, in precisely that order. Quoting is
15475 # there to prevent editors from complaining about space-tab.
15476 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15477 # splitting by setting IFS to empty value.)
15480 # Find who we are. Look in the path if we contain no directory separator.
15483 *[\\/]* ) as_myself=$0 ;;
15484 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15485 for as_dir in $PATH
15488 test -z "$as_dir" && as_dir=.
15489 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15495 # We did not find ourselves, most probably we were run as `sh COMMAND'
15496 # in which case we are not to be found in the path.
15497 if test "x$as_myself" = x; then
15500 if test ! -f "$as_myself"; then
15501 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15505 # Unset variables that we do not need and which cause bugs (e.g. in
15506 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15507 # suppresses any "Segmentation fault" message there. '((' could
15508 # trigger a bug in pdksh 5.2.14.
15509 for as_var in BASH_ENV ENV MAIL MAILPATH
15510 do eval test x\${$as_var+set} = xset \
15511 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15524 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15527 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
15528 @%:@ ----------------------------------------
15529 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15530 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15531 @%:@ script with STATUS, using 1 if that was 0.
15534 as_status=$1; test $as_status -eq 0 && as_status=1
15536 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15537 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15539 $as_echo "$as_me: error: $2" >&2
15540 as_fn_exit $as_status
15544 @%:@ as_fn_set_status STATUS
15545 @%:@ -----------------------
15546 @%:@ Set @S|@? to STATUS, without forking.
15547 as_fn_set_status ()
15550 } @%:@ as_fn_set_status
15552 @%:@ as_fn_exit STATUS
15553 @%:@ -----------------
15554 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15558 as_fn_set_status $1
15562 @%:@ as_fn_unset VAR
15563 @%:@ ---------------
15564 @%:@ Portably unset VAR.
15567 { eval $1=; unset $1;}
15569 as_unset=as_fn_unset
15570 @%:@ as_fn_append VAR VALUE
15571 @%:@ ----------------------
15572 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
15573 @%:@ advantage of any shell optimizations that allow amortized linear growth over
15574 @%:@ repeated appends, instead of the typical quadratic growth present in naive
15575 @%:@ implementations.
15576 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15577 eval 'as_fn_append ()
15588 @%:@ as_fn_arith ARG...
15589 @%:@ ------------------
15590 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
15591 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
15592 @%:@ must be portable across @S|@(()) and expr.
15593 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15594 eval 'as_fn_arith ()
15601 as_val=`expr "$@" || test $? -eq 1`
15606 if expr a : '\(a\)' >/dev/null 2>&1 &&
15607 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15613 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15614 as_basename=basename
15619 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15625 as_me=`$as_basename -- "$0" ||
15626 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15627 X"$0" : 'X\(//\)$' \| \
15628 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15630 sed '/^.*\/\([^/][^/]*\)\/*$/{
15644 # Avoid depending upon Character Ranges.
15645 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15646 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15647 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15648 as_cr_digits='0123456789'
15649 as_cr_alnum=$as_cr_Letters$as_cr_digits
15651 ECHO_C= ECHO_N= ECHO_T=
15652 case `echo -n x` in @%:@(((((
15654 case `echo 'xy\c'` in
15655 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15657 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15664 rm -f conf$$ conf$$.exe conf$$.file
15665 if test -d conf$$.dir; then
15666 rm -f conf$$.dir/conf$$.file
15669 mkdir conf$$.dir 2>/dev/null
15671 if (echo >conf$$.file) 2>/dev/null; then
15672 if ln -s conf$$.file conf$$ 2>/dev/null; then
15674 # ... but there are two gotchas:
15675 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15676 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15677 # In both cases, we have to default to `cp -pR'.
15678 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15680 elif ln conf$$.file conf$$ 2>/dev/null; then
15688 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15689 rmdir conf$$.dir 2>/dev/null
15694 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
15699 -*) as_dir=./$as_dir;;
15701 test -d "$as_dir" || eval $as_mkdir_p || {
15705 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15706 *) as_qdir=$as_dir;;
15708 as_dirs="'$as_qdir' $as_dirs"
15709 as_dir=`$as_dirname -- "$as_dir" ||
15710 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15711 X"$as_dir" : 'X\(//\)[^/]' \| \
15712 X"$as_dir" : 'X\(//\)$' \| \
15713 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15714 $as_echo X"$as_dir" |
15715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15719 /^X\(\/\/\)[^/].*/{
15732 test -d "$as_dir" && break
15734 test -z "$as_dirs" || eval "mkdir $as_dirs"
15735 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15738 } @%:@ as_fn_mkdir_p
15739 if mkdir -p . 2>/dev/null; then
15740 as_mkdir_p='mkdir -p "$as_dir"'
15742 test -d ./-p && rmdir ./-p
15747 @%:@ as_fn_executable_p FILE
15748 @%:@ -----------------------
15749 @%:@ Test if FILE is an executable regular file.
15750 as_fn_executable_p ()
15752 test -f "$1" && test -x "$1"
15753 } @%:@ as_fn_executable_p
15754 as_test_x='test -x'
15755 as_executable_p=as_fn_executable_p
15757 # Sed expression to map a string onto a valid CPP name.
15758 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15760 # Sed expression to map a string onto a valid variable name.
15761 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15765 ## ----------------------------------- ##
15766 ## Main body of $CONFIG_STATUS script. ##
15767 ## ----------------------------------- ##
15769 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15772 # Save the log message, to keep $0 and so on meaningful, and to
15773 # report actual input values of CONFIG_FILES etc. instead of their
15774 # values after options handling.
15776 This file was extended by libevent $as_me 2.0.21-stable-dev, which was
15777 generated by GNU Autoconf 2.69. Invocation command line was
15779 CONFIG_FILES = $CONFIG_FILES
15780 CONFIG_HEADERS = $CONFIG_HEADERS
15781 CONFIG_LINKS = $CONFIG_LINKS
15782 CONFIG_COMMANDS = $CONFIG_COMMANDS
15785 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15790 case $ac_config_files in *"
15791 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15794 case $ac_config_headers in *"
15795 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15800 # Files that config.status was made for.
15801 config_files="$ac_config_files"
15802 config_headers="$ac_config_headers"
15803 config_commands="$ac_config_commands"
15807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15809 \`$as_me' instantiates files and other configuration actions
15810 from templates according to the current configuration. Unless the files
15811 and actions are specified as TAGs, all are instantiated by default.
15813 Usage: $0 [OPTION]... [TAG]...
15815 -h, --help print this help, then exit
15816 -V, --version print version number and configuration settings, then exit
15817 --config print configuration, then exit
15818 -q, --quiet, --silent
15819 do not print progress messages
15820 -d, --debug don't remove temporary files
15821 --recheck update $as_me by reconfiguring in the same conditions
15822 --file=FILE[:TEMPLATE]
15823 instantiate the configuration file FILE
15824 --header=FILE[:TEMPLATE]
15825 instantiate the configuration header FILE
15827 Configuration files:
15830 Configuration headers:
15833 Configuration commands:
15836 Report bugs to the package provider."
15839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15840 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15842 libevent config.status 2.0.21-stable-dev
15843 configured by $0, generated by GNU Autoconf 2.69,
15844 with options \\"\$ac_cs_config\\"
15846 Copyright (C) 2012 Free Software Foundation, Inc.
15847 This config.status script is free software; the Free Software Foundation
15848 gives unlimited permission to copy, distribute and modify it."
15855 test -n "\$AWK" || AWK=awk
15858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15859 # The default lists apply if the user does not specify any file.
15865 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15866 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15870 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15882 # Handling of the options.
15883 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15885 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15886 $as_echo "$ac_cs_version"; exit ;;
15887 --config | --confi | --conf | --con | --co | --c )
15888 $as_echo "$ac_cs_config"; exit ;;
15889 --debug | --debu | --deb | --de | --d | -d )
15891 --file | --fil | --fi | --f )
15894 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15895 '') as_fn_error $? "missing file argument" ;;
15897 as_fn_append CONFIG_FILES " '$ac_optarg'"
15898 ac_need_defaults=false;;
15899 --header | --heade | --head | --hea )
15902 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15904 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15905 ac_need_defaults=false;;
15907 # Conflict between --help and --header
15908 as_fn_error $? "ambiguous option: \`$1'
15909 Try \`$0 --help' for more information.";;
15910 --help | --hel | -h )
15911 $as_echo "$ac_cs_usage"; exit ;;
15912 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15913 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15916 # This is an error.
15917 -*) as_fn_error $? "unrecognized option: \`$1'
15918 Try \`$0 --help' for more information." ;;
15920 *) as_fn_append ac_config_targets " $1"
15921 ac_need_defaults=false ;;
15927 ac_configure_extra_args=
15929 if $ac_cs_silent; then
15931 ac_configure_extra_args="$ac_configure_extra_args --silent"
15935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15936 if \$ac_cs_recheck; then
15937 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15939 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15940 CONFIG_SHELL='$SHELL'
15941 export CONFIG_SHELL
15946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15950 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
15951 @%:@@%:@ Running $as_me. @%:@@%:@
15957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15961 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15964 # The HP-UX ksh and POSIX shell print the target directory to stdout
15965 # if CDPATH is set.
15966 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15968 sed_quote_subst='$sed_quote_subst'
15969 double_quote_subst='$double_quote_subst'
15970 delay_variable_subst='$delay_variable_subst'
15971 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15972 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15973 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15974 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15975 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15976 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15977 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15978 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15979 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15980 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15981 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15982 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15983 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15984 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15985 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15986 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15987 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15988 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15989 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15990 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15991 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15992 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15993 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15994 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15995 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15996 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15997 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15998 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15999 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16000 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16001 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16002 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16003 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16004 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16005 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16006 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16007 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16008 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16009 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16010 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16011 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16012 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16013 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16014 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16015 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16016 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16017 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16018 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16019 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16020 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16021 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16022 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16023 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16024 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16025 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16026 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16027 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"`'
16028 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16029 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16030 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16031 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16032 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16033 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16034 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16035 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16036 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16037 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16038 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16039 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16040 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16041 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16042 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16043 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16044 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16045 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16046 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16047 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16048 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16049 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16050 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16051 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16052 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16053 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16054 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16055 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16056 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16057 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16058 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16059 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16060 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16061 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16062 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16063 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16064 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16065 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16066 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16067 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16068 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16069 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16070 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16071 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16072 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16073 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16074 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16075 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16076 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16077 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16078 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16079 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16080 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16081 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16082 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16083 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16084 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16085 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16086 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16087 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16088 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16089 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16090 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16091 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16092 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16093 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16094 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16095 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16096 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16097 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16098 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16099 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16100 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16103 LTCFLAGS='$LTCFLAGS'
16104 compiler='$compiler_DEFAULT'
16106 # A function that is used when there is no print builtin or printf.
16107 func_fallback_echo ()
16109 eval 'cat <<_LTECHO_EOF
16114 # Quote evaled strings.
16129 deplibs_check_method \
16134 sharedlib_from_linklib_cmd \
16137 archiver_list_spec \
16143 lt_cv_sys_global_symbol_pipe \
16144 lt_cv_sys_global_symbol_to_cdecl \
16145 lt_cv_sys_global_symbol_to_c_name_address \
16146 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16147 nm_file_list_spec \
16148 lt_prog_compiler_no_builtin_flag \
16149 lt_prog_compiler_pic \
16150 lt_prog_compiler_wl \
16151 lt_prog_compiler_static \
16152 lt_cv_prog_compiler_c_o \
16161 export_dynamic_flag_spec \
16162 whole_archive_flag_spec \
16163 compiler_needs_object \
16165 allow_undefined_flag \
16166 no_undefined_flag \
16167 hardcode_libdir_flag_spec \
16168 hardcode_libdir_separator \
16172 variables_saved_for_relink \
16174 library_names_spec \
16176 install_override_mode \
16180 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16181 *[\\\\\\\`\\"\\\$]*)
16182 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16185 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16190 # Double-quote double-evaled strings.
16191 for var in reload_cmds \
16192 old_postinstall_cmds \
16193 old_postuninstall_cmds \
16195 extract_expsyms_cmds \
16196 old_archive_from_new_cmds \
16197 old_archive_from_expsyms_cmds \
16199 archive_expsym_cmds \
16201 module_expsym_cmds \
16202 export_symbols_cmds \
16206 postuninstall_cmds \
16208 sys_lib_search_path_spec \
16209 sys_lib_dlsearch_path_spec; do
16210 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16211 *[\\\\\\\`\\"\\\$]*)
16212 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16215 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16220 ac_aux_dir='$ac_aux_dir'
16221 xsi_shell='$xsi_shell'
16222 lt_shell_append='$lt_shell_append'
16224 # See if we are running on zsh, and set the options which allow our
16225 # commands through without removal of \ escapes INIT.
16226 if test -n "\${ZSH_VERSION+set}" ; then
16227 setopt NO_GLOB_SUBST
16233 TIMESTAMP='$TIMESTAMP'
16242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16244 # Handling of arguments.
16245 for ac_config_target in $ac_config_targets
16247 case $ac_config_target in
16248 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16249 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16250 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16251 "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
16252 "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
16253 "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
16254 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16255 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16256 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16257 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
16259 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16264 # If the user did not use the arguments to specify the items to instantiate,
16265 # then the envvar interface is used. Set only those that are not.
16266 # We use the long form for the default assignment because of an extremely
16267 # bizarre bug on SunOS 4.1.3.
16268 if $ac_need_defaults; then
16269 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16270 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16271 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16274 # Have a temporary directory for convenience. Make it in the build tree
16275 # simply because there is no reason against having it here, and in addition,
16276 # creating and moving files from /tmp can sometimes cause problems.
16277 # Hook for its removal unless debugging.
16278 # Note that there is a small window in which the directory will not be cleaned:
16279 # after its creation but before its name has been assigned to `$tmp'.
16283 trap 'exit_status=$?
16284 : "${ac_tmp:=$tmp}"
16285 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16287 trap 'as_fn_exit 1' 1 2 13 15
16289 # Create a (secure) tmp directory for tmp files.
16292 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16296 tmp=./conf$$-$RANDOM
16297 (umask 077 && mkdir "$tmp")
16298 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16301 # Set up the scripts for CONFIG_FILES section.
16302 # No need to generate them if there are no CONFIG_FILES.
16303 # This happens for instance with `./config.status config.h'.
16304 if test -n "$CONFIG_FILES"; then
16307 ac_cr=`echo X | tr X '\015'`
16308 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16309 # But we know of no other shell where ac_cr would be empty at this
16310 # point, so we can use a bashism as a fallback.
16311 if test "x$ac_cr" = x; then
16312 eval ac_cr=\$\'\\r\'
16314 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16315 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16318 ac_cs_awk_cr=$ac_cr
16321 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16326 echo "cat >conf$$subs.awk <<_ACEOF" &&
16327 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16329 } >conf$$subs.sh ||
16330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16331 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16333 for ac_last_try in false false false false false :; do
16334 . ./conf$$subs.sh ||
16335 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16337 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16338 if test $ac_delim_n = $ac_delim_num; then
16340 elif $ac_last_try; then
16341 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16343 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16346 rm -f conf$$subs.sh
16348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16349 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16353 s/^/S["/; s/!.*/"]=/
16363 s/\(.\{148\}\)..*/\1/
16365 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16370 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16377 s/\(.\{148\}\)..*/\1/
16379 s/["\\]/\\&/g; s/^/"/; s/$/"/
16383 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16388 ' <conf$$subs.awk | sed '
16393 ' >>$CONFIG_STATUS || ac_write_fail=1
16394 rm -f conf$$subs.awk
16395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16397 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16398 for (key in S) S_is_set[key] = 1
16404 nfields = split(line, field, "@")
16406 len = length(field[1])
16407 for (i = 2; i < nfields; i++) {
16409 keylen = length(key)
16410 if (S_is_set[key]) {
16412 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16413 len += length(value) + length(field[++i])
16424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16425 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16426 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16429 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16430 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16433 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16434 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16435 # trailing colons and then remove the whole line if VPATH becomes empty
16436 # (actually we leave an empty line to preserve line numbers).
16437 if test "x$srcdir" = x.; then
16438 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16457 fi # test -n "$CONFIG_FILES"
16459 # Set up the scripts for CONFIG_HEADERS section.
16460 # No need to generate them if there are no CONFIG_HEADERS.
16461 # This happens for instance with `./config.status Makefile'.
16462 if test -n "$CONFIG_HEADERS"; then
16463 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16467 # Transform confdefs.h into an awk script `defines.awk', embedded as
16468 # here-document in config.status, that substitutes the proper values into
16469 # config.h.in to produce config.h.
16471 # Create a delimiter string that does not exist in confdefs.h, to ease
16472 # handling of long lines.
16474 for ac_last_try in false false :; do
16475 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16476 if test -z "$ac_tt"; then
16478 elif $ac_last_try; then
16479 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16481 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16485 # For the awk script, D is an array of macro values keyed by name,
16486 # likewise P contains macro parameters if any. Preserve backslash
16487 # newline sequences.
16489 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16491 s/.\{148\}/&'"$ac_delim"'/g
16494 s/^[ ]*#[ ]*define[ ][ ]*/ /
16501 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16503 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16507 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16508 D["\1"]=" \3\\\\\\n"\\/p
16510 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16515 s/.\{148\}/&'"$ac_delim"'/g
16520 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16523 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16525 ' <confdefs.h | sed '
16526 s/'"$ac_delim"'/"\\\
16527 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16530 for (key in D) D_is_set[key] = 1
16533 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16535 split(line, arg, " ")
16536 if (arg[1] == "#") {
16540 defundef = substr(arg[1], 2)
16543 split(mac1, mac2, "(") #)
16545 prefix = substr(line, 1, index(line, defundef) - 1)
16546 if (D_is_set[macro]) {
16547 # Preserve the white space surrounding the "#".
16548 print prefix "define", macro P[macro] D[macro]
16551 # Replace #undef with comments. This is necessary, for example,
16552 # in the case of _POSIX_SOURCE, which is predefined and required
16553 # on some systems where configure will not decide to define it.
16554 if (defundef == "undef") {
16555 print "/*", prefix defundef, macro, "*/"
16563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16564 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16565 fi # test -n "$CONFIG_HEADERS"
16568 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16573 :[FHLC]) ac_mode=$ac_tag; continue;;
16575 case $ac_mode$ac_tag in
16577 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16578 :[FH]-) ac_tag=-:-;;
16579 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16596 -) ac_f="$ac_tmp/stdin";;
16597 *) # Look for the file first in the build tree, then in the source tree
16598 # (if the path is not absolute). The absolute path cannot be DOS-style,
16599 # because $ac_f cannot contain `:'.
16603 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16605 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16607 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16608 as_fn_append ac_file_inputs " '$ac_f'"
16611 # Let's still pretend it is `configure' which instantiates (i.e., don't
16612 # use $as_me), people would be surprised to read:
16613 # /* config.h. Generated by config.status. */
16614 configure_input='Generated from '`
16615 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16617 if test x"$ac_file" != x-; then
16618 configure_input="$ac_file. $configure_input"
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16620 $as_echo "$as_me: creating $ac_file" >&6;}
16622 # Neutralize special characters interpreted by sed in replacement strings.
16623 case $configure_input in #(
16624 *\&* | *\|* | *\\* )
16625 ac_sed_conf_input=`$as_echo "$configure_input" |
16626 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16627 *) ac_sed_conf_input=$configure_input;;
16631 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16632 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16637 ac_dir=`$as_dirname -- "$ac_file" ||
16638 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16639 X"$ac_file" : 'X\(//\)[^/]' \| \
16640 X"$ac_file" : 'X\(//\)$' \| \
16641 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16642 $as_echo X"$ac_file" |
16643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16647 /^X\(\/\/\)[^/].*/{
16660 as_dir="$ac_dir"; as_fn_mkdir_p
16664 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16666 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16667 # A ".." for each directory in $ac_dir_suffix.
16668 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16669 case $ac_top_builddir_sub in
16670 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16671 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16674 ac_abs_top_builddir=$ac_pwd
16675 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16676 # for backward compatibility:
16677 ac_top_builddir=$ac_top_build_prefix
16680 .) # We are building in place.
16682 ac_top_srcdir=$ac_top_builddir_sub
16683 ac_abs_top_srcdir=$ac_pwd ;;
16684 [\\/]* | ?:[\\/]* ) # Absolute name.
16685 ac_srcdir=$srcdir$ac_dir_suffix;
16686 ac_top_srcdir=$srcdir
16687 ac_abs_top_srcdir=$srcdir ;;
16688 *) # Relative name.
16689 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16690 ac_top_srcdir=$ac_top_build_prefix$srcdir
16691 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16693 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16703 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16704 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16706 ac_MKDIR_P=$MKDIR_P
16708 [\\/$]* | ?:[\\/]* ) ;;
16709 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16714 # If the template does not know about datarootdir, expand it.
16715 # FIXME: This hack should be removed a few years after 2.60.
16716 ac_datarootdir_hack=; ac_datarootdir_seen=
16727 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16728 *datarootdir*) ac_datarootdir_seen=yes;;
16729 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16731 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16734 ac_datarootdir_hack='
16735 s&@datadir@&$datadir&g
16736 s&@docdir@&$docdir&g
16737 s&@infodir@&$infodir&g
16738 s&@localedir@&$localedir&g
16739 s&@mandir@&$mandir&g
16740 s&\\\${datarootdir}&$datarootdir&g' ;;
16744 # Neutralize VPATH when `$srcdir' = `.'.
16745 # Shell code in configure.ac might set extrasub.
16746 # FIXME: do we really want to maintain this feature?
16747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16748 ac_sed_extra="$ac_vpsub
16751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16753 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16754 s|@configure_input@|$ac_sed_conf_input|;t t
16755 s&@top_builddir@&$ac_top_builddir_sub&;t t
16756 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16757 s&@srcdir@&$ac_srcdir&;t t
16758 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16759 s&@top_srcdir@&$ac_top_srcdir&;t t
16760 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16761 s&@builddir@&$ac_builddir&;t t
16762 s&@abs_builddir@&$ac_abs_builddir&;t t
16763 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16764 s&@INSTALL@&$ac_INSTALL&;t t
16765 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16766 $ac_datarootdir_hack
16768 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16769 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16771 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16772 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16773 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16774 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16776 which seems to be undefined. Please make sure it is defined" >&5
16777 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16778 which seems to be undefined. Please make sure it is defined" >&2;}
16780 rm -f "$ac_tmp/stdin"
16782 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16783 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16785 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16791 if test x"$ac_file" != x-; then
16793 $as_echo "/* $configure_input */" \
16794 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16795 } >"$ac_tmp/config.h" \
16796 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16797 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16799 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16802 mv "$ac_tmp/config.h" "$ac_file" \
16803 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16806 $as_echo "/* $configure_input */" \
16807 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16808 || as_fn_error $? "could not create -" "$LINENO" 5
16810 # Compute "$ac_file"'s index in $config_headers.
16813 for _am_header in $config_headers :; do
16814 case $_am_header in
16815 $_am_arg | $_am_arg:* )
16818 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16821 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16822 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16823 X"$_am_arg" : 'X\(//\)[^/]' \| \
16824 X"$_am_arg" : 'X\(//\)$' \| \
16825 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16826 $as_echo X"$_am_arg" |
16827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16831 /^X\(\/\/\)[^/].*/{
16843 s/.*/./; q'`/stamp-h$_am_stamp_count
16846 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16847 $as_echo "$as_me: executing $ac_file commands" >&6;}
16852 case $ac_file$ac_mode in
16853 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16854 # Older Autoconf quotes --file arguments for eval, but not when files
16855 # are listed without --file. Let's play safe and only enable the eval
16856 # if we detect the quoting.
16857 case $CONFIG_FILES in
16858 *\'*) eval set x "$CONFIG_FILES" ;;
16859 *) set x $CONFIG_FILES ;;
16864 # Strip MF so we end up with the name of the file.
16865 mf=`echo "$mf" | sed -e 's/:.*$//'`
16866 # Check whether this is an Automake generated Makefile or not.
16867 # We used to match only the files named 'Makefile.in', but
16868 # some people rename them; so instead we look at the file content.
16869 # Grep'ing the first line is not enough: some people post-process
16870 # each Makefile.in and add a new line on top of each file to say so.
16871 # Grep'ing the whole file is not good either: AIX grep has a line
16872 # limit of 2048, but all sed's we know have understand at least 4000.
16873 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16874 dirpart=`$as_dirname -- "$mf" ||
16875 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16876 X"$mf" : 'X\(//\)[^/]' \| \
16877 X"$mf" : 'X\(//\)$' \| \
16878 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16884 /^X\(\/\/\)[^/].*/{
16900 # Extract the definition of DEPDIR, am__include, and am__quote
16901 # from the Makefile without running 'make'.
16902 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16903 test -z "$DEPDIR" && continue
16904 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16905 test -z "$am__include" && continue
16906 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16907 # Find all dependency output files, they are included files with
16908 # $(DEPDIR) in their names. We invoke sed twice because it is the
16909 # simplest approach to changing $(DEPDIR) to its actual value in the
16911 for file in `sed -n "
16912 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16913 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16914 # Make sure the directory exists.
16915 test -f "$dirpart/$file" && continue
16916 fdir=`$as_dirname -- "$file" ||
16917 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16918 X"$file" : 'X\(//\)[^/]' \| \
16919 X"$file" : 'X\(//\)$' \| \
16920 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16921 $as_echo X"$file" |
16922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16926 /^X\(\/\/\)[^/].*/{
16939 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16940 # echo "creating $dirpart/$file"
16941 echo '# dummy' > "$dirpart/$file"
16948 # See if we are running on zsh, and set the options which allow our
16949 # commands through without removal of \ escapes.
16950 if test -n "${ZSH_VERSION+set}" ; then
16951 setopt NO_GLOB_SUBST
16954 cfgfile="${ofile}T"
16955 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16958 cat <<_LT_EOF >> "$cfgfile"
16961 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16962 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16963 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16964 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16966 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16967 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16969 # Written by Gordon Matzigkeit, 1996
16971 # This file is part of GNU Libtool.
16973 # GNU Libtool is free software; you can redistribute it and/or
16974 # modify it under the terms of the GNU General Public License as
16975 # published by the Free Software Foundation; either version 2 of
16976 # the License, or (at your option) any later version.
16978 # As a special exception to the GNU General Public License,
16979 # if you distribute this file as part of a program or library that
16980 # is built using GNU Libtool, you may include this file under the
16981 # same distribution terms that you use for the rest of that program.
16983 # GNU Libtool is distributed in the hope that it will be useful,
16984 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16985 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16986 # GNU General Public License for more details.
16988 # You should have received a copy of the GNU General Public License
16989 # along with GNU Libtool; see the file COPYING. If not, a copy
16990 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16991 # obtained by writing to the Free Software Foundation, Inc.,
16992 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16995 # The names of the tagged configurations supported by this script.
16998 # ### BEGIN LIBTOOL CONFIG
17000 # Which release of libtool.m4 was used?
17001 macro_version=$macro_version
17002 macro_revision=$macro_revision
17004 # Whether or not to build shared libraries.
17005 build_libtool_libs=$enable_shared
17007 # Whether or not to build static libraries.
17008 build_old_libs=$enable_static
17010 # What type of objects to build.
17013 # Whether or not to optimize for fast installation.
17014 fast_install=$enable_fast_install
17016 # Shell to use when invoking shell scripts.
17019 # An echo program that protects backslashes.
17022 # The PATH separator for the build system.
17023 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17026 host_alias=$host_alias
17030 # The build system.
17031 build_alias=$build_alias
17035 # A sed program that does not truncate output.
17038 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17039 Xsed="\$SED -e 1s/^X//"
17041 # A grep program that handles long lines.
17047 # A literal string matcher.
17050 # A BSD- or MS-compatible name lister.
17053 # Whether we need soft or hard links.
17056 # What is the maximum length of a command?
17057 max_cmd_len=$max_cmd_len
17059 # Object file suffix (normally "o").
17062 # Executable file suffix (normally "").
17065 # whether the shell understands "unset".
17068 # turn spaces into newlines.
17071 # turn newlines into spaces.
17074 # convert \$build file names to \$host format.
17075 to_host_file_cmd=$lt_cv_to_host_file_cmd
17077 # convert \$build files to toolchain format.
17078 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17080 # An object symbol dumper.
17081 OBJDUMP=$lt_OBJDUMP
17083 # Method to check whether dependent libraries are shared objects.
17084 deplibs_check_method=$lt_deplibs_check_method
17086 # Command to use when deplibs_check_method = "file_magic".
17087 file_magic_cmd=$lt_file_magic_cmd
17089 # How to find potential files when deplibs_check_method = "file_magic".
17090 file_magic_glob=$lt_file_magic_glob
17092 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17093 want_nocaseglob=$lt_want_nocaseglob
17095 # DLL creation program.
17096 DLLTOOL=$lt_DLLTOOL
17098 # Command to associate shared and link libraries.
17099 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17104 # Flags to create an archive.
17105 AR_FLAGS=$lt_AR_FLAGS
17107 # How to feed a file listing to the archiver.
17108 archiver_list_spec=$lt_archiver_list_spec
17110 # A symbol stripping program.
17113 # Commands used to install an old-style archive.
17115 old_postinstall_cmds=$lt_old_postinstall_cmds
17116 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17118 # Whether to use a lock for old archive extraction.
17119 lock_old_archive_extraction=$lock_old_archive_extraction
17124 # LTCC compiler flags.
17125 LTCFLAGS=$lt_CFLAGS
17127 # Take the output of nm and produce a listing of raw symbols and C names.
17128 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17130 # Transform the output of nm in a proper C declaration.
17131 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17133 # Transform the output of nm in a C name address pair.
17134 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17136 # Transform the output of nm in a C name address pair when lib prefix is needed.
17137 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17139 # Specify filename containing input files for \$NM.
17140 nm_file_list_spec=$lt_nm_file_list_spec
17142 # The root where to search for dependent libraries,and in which our libraries should be installed.
17143 lt_sysroot=$lt_sysroot
17145 # The name of the directory that contains temporary libtool files.
17148 # Used to examine libraries when file_magic_cmd begins with "file".
17149 MAGIC_CMD=$MAGIC_CMD
17151 # Must we lock files when doing compilation?
17152 need_locks=$lt_need_locks
17155 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17157 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17158 DSYMUTIL=$lt_DSYMUTIL
17160 # Tool to change global to local symbols on Mac OS X.
17163 # Tool to manipulate fat objects and archives on Mac OS X.
17166 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17169 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17170 OTOOL64=$lt_OTOOL64
17172 # Old archive suffix (normally "a").
17175 # Shared library suffix (normally ".so").
17176 shrext_cmds=$lt_shrext_cmds
17178 # The commands to extract the exported symbol list from a shared archive.
17179 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17181 # Variables whose values should be saved in libtool wrapper scripts and
17182 # restored at link time.
17183 variables_saved_for_relink=$lt_variables_saved_for_relink
17185 # Do we need the "lib" prefix for modules?
17186 need_lib_prefix=$need_lib_prefix
17188 # Do we need a version for libraries?
17189 need_version=$need_version
17191 # Library versioning type.
17192 version_type=$version_type
17194 # Shared library runtime path variable.
17195 runpath_var=$runpath_var
17197 # Shared library path variable.
17198 shlibpath_var=$shlibpath_var
17200 # Is shlibpath searched before the hard-coded library search path?
17201 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17203 # Format of library name prefix.
17204 libname_spec=$lt_libname_spec
17206 # List of archive names. First name is the real one, the rest are links.
17207 # The last name is the one that the linker finds with -lNAME
17208 library_names_spec=$lt_library_names_spec
17210 # The coded name of the library, if different from the real name.
17211 soname_spec=$lt_soname_spec
17213 # Permission mode override for installation of shared libraries.
17214 install_override_mode=$lt_install_override_mode
17216 # Command to use after installation of a shared archive.
17217 postinstall_cmds=$lt_postinstall_cmds
17219 # Command to use after uninstallation of a shared archive.
17220 postuninstall_cmds=$lt_postuninstall_cmds
17222 # Commands used to finish a libtool library installation in a directory.
17223 finish_cmds=$lt_finish_cmds
17225 # As "finish_cmds", except a single script fragment to be evaled but
17227 finish_eval=$lt_finish_eval
17229 # Whether we should hardcode library paths into libraries.
17230 hardcode_into_libs=$hardcode_into_libs
17232 # Compile-time system search path for libraries.
17233 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17235 # Run-time system search path for libraries.
17236 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17238 # Whether dlopen is supported.
17239 dlopen_support=$enable_dlopen
17241 # Whether dlopen of programs is supported.
17242 dlopen_self=$enable_dlopen_self
17244 # Whether dlopen of statically linked programs is supported.
17245 dlopen_self_static=$enable_dlopen_self_static
17247 # Commands to strip libraries.
17248 old_striplib=$lt_old_striplib
17249 striplib=$lt_striplib
17252 # The linker used to build libraries.
17255 # How to create reloadable object files.
17256 reload_flag=$lt_reload_flag
17257 reload_cmds=$lt_reload_cmds
17259 # Commands used to build an old-style archive.
17260 old_archive_cmds=$lt_old_archive_cmds
17262 # A language specific compiler.
17265 # Is the compiler the GNU compiler?
17268 # Compiler flag to turn off builtin functions.
17269 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17271 # Additional compiler flags for building library objects.
17272 pic_flag=$lt_lt_prog_compiler_pic
17274 # How to pass a linker flag through the compiler.
17275 wl=$lt_lt_prog_compiler_wl
17277 # Compiler flag to prevent dynamic linking.
17278 link_static_flag=$lt_lt_prog_compiler_static
17280 # Does compiler simultaneously support -c and -o options?
17281 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17283 # Whether or not to add -lc for building shared libraries.
17284 build_libtool_need_lc=$archive_cmds_need_lc
17286 # Whether or not to disallow shared libs when runtime libs are static.
17287 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17289 # Compiler flag to allow reflexive dlopens.
17290 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17292 # Compiler flag to generate shared objects directly from archives.
17293 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17295 # Whether the compiler copes with passing no objects directly.
17296 compiler_needs_object=$lt_compiler_needs_object
17298 # Create an old-style archive from a shared archive.
17299 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17301 # Create a temporary old-style archive to link instead of a shared archive.
17302 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17304 # Commands used to build a shared archive.
17305 archive_cmds=$lt_archive_cmds
17306 archive_expsym_cmds=$lt_archive_expsym_cmds
17308 # Commands used to build a loadable module if different from building
17309 # a shared archive.
17310 module_cmds=$lt_module_cmds
17311 module_expsym_cmds=$lt_module_expsym_cmds
17313 # Whether we are building with GNU ld or not.
17314 with_gnu_ld=$lt_with_gnu_ld
17316 # Flag that allows shared libraries with undefined symbols to be built.
17317 allow_undefined_flag=$lt_allow_undefined_flag
17319 # Flag that enforces no undefined symbols.
17320 no_undefined_flag=$lt_no_undefined_flag
17322 # Flag to hardcode \$libdir into a binary during linking.
17323 # This must work even if \$libdir does not exist
17324 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17326 # Whether we need a single "-rpath" flag with a separated argument.
17327 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17329 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17330 # DIR into the resulting binary.
17331 hardcode_direct=$hardcode_direct
17333 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17334 # DIR into the resulting binary and the resulting library dependency is
17335 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17336 # library is relocated.
17337 hardcode_direct_absolute=$hardcode_direct_absolute
17339 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17340 # into the resulting binary.
17341 hardcode_minus_L=$hardcode_minus_L
17343 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17344 # into the resulting binary.
17345 hardcode_shlibpath_var=$hardcode_shlibpath_var
17347 # Set to "yes" if building a shared library automatically hardcodes DIR
17348 # into the library and all subsequent libraries and executables linked
17350 hardcode_automatic=$hardcode_automatic
17352 # Set to yes if linker adds runtime paths of dependent libraries
17353 # to runtime path list.
17354 inherit_rpath=$inherit_rpath
17356 # Whether libtool must link a program against all its dependency libraries.
17357 link_all_deplibs=$link_all_deplibs
17359 # Set to "yes" if exported symbols are required.
17360 always_export_symbols=$always_export_symbols
17362 # The commands to list exported symbols.
17363 export_symbols_cmds=$lt_export_symbols_cmds
17365 # Symbols that should not be listed in the preloaded symbols.
17366 exclude_expsyms=$lt_exclude_expsyms
17368 # Symbols that must always be exported.
17369 include_expsyms=$lt_include_expsyms
17371 # Commands necessary for linking programs (against libraries) with templates.
17372 prelink_cmds=$lt_prelink_cmds
17374 # Commands necessary for finishing linking programs.
17375 postlink_cmds=$lt_postlink_cmds
17377 # Specify filename containing input files.
17378 file_list_spec=$lt_file_list_spec
17380 # How to hardcode a shared library path into an executable.
17381 hardcode_action=$hardcode_action
17383 # ### END LIBTOOL CONFIG
17389 cat <<\_LT_EOF >> "$cfgfile"
17390 # AIX sometimes has problems with the GCC collect2 program. For some
17391 # reason, if we set the COLLECT_NAMES environment variable, the problems
17392 # vanish in a puff of smoke.
17393 if test "X${COLLECT_NAMES+set}" != Xset; then
17395 export COLLECT_NAMES
17402 ltmain="$ac_aux_dir/ltmain.sh"
17405 # We use sed instead of cat because bash on DJGPP gets confused if
17406 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17407 # text mode, it properly converts lines to CR/LF. This bash problem
17408 # is reportedly fixed, but why not run on old versions too?
17409 sed '$q' "$ltmain" >> "$cfgfile" \
17410 || (rm -f "$cfgfile"; exit 1)
17412 if test x"$xsi_shell" = xyes; then
17413 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17417 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17418 \ * ) func_dirname_result="${3}" ;;\
17420 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17421 && mv -f "$cfgfile.tmp" "$cfgfile" \
17422 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17423 test 0 -eq $? || _lt_function_replace_fail=:
17426 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17429 \ func_basename_result="${1##*/}"\
17430 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17431 && mv -f "$cfgfile.tmp" "$cfgfile" \
17432 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17433 test 0 -eq $? || _lt_function_replace_fail=:
17436 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17437 func_dirname_and_basename ()\
17440 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17441 \ * ) func_dirname_result="${3}" ;;\
17443 \ func_basename_result="${1##*/}"\
17444 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17445 && mv -f "$cfgfile.tmp" "$cfgfile" \
17446 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17447 test 0 -eq $? || _lt_function_replace_fail=:
17450 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17453 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17454 \ # positional parameters, so assign one to ordinary parameter first.\
17455 \ func_stripname_result=${3}\
17456 \ func_stripname_result=${func_stripname_result#"${1}"}\
17457 \ func_stripname_result=${func_stripname_result%"${2}"}\
17458 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17459 && mv -f "$cfgfile.tmp" "$cfgfile" \
17460 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17461 test 0 -eq $? || _lt_function_replace_fail=:
17464 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17465 func_split_long_opt ()\
17467 \ func_split_long_opt_name=${1%%=*}\
17468 \ func_split_long_opt_arg=${1#*=}\
17469 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17470 && mv -f "$cfgfile.tmp" "$cfgfile" \
17471 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17472 test 0 -eq $? || _lt_function_replace_fail=:
17475 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17476 func_split_short_opt ()\
17478 \ func_split_short_opt_arg=${1#??}\
17479 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17480 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17481 && mv -f "$cfgfile.tmp" "$cfgfile" \
17482 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17483 test 0 -eq $? || _lt_function_replace_fail=:
17486 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17490 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17491 \ *) func_lo2o_result=${1} ;;\
17493 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17494 && mv -f "$cfgfile.tmp" "$cfgfile" \
17495 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17496 test 0 -eq $? || _lt_function_replace_fail=:
17499 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17502 func_xform_result=${1%.*}.lo\
17503 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17504 && mv -f "$cfgfile.tmp" "$cfgfile" \
17505 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17506 test 0 -eq $? || _lt_function_replace_fail=:
17509 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17512 func_arith_result=$(( $* ))\
17513 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17514 && mv -f "$cfgfile.tmp" "$cfgfile" \
17515 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17516 test 0 -eq $? || _lt_function_replace_fail=:
17519 sed -e '/^func_len ()$/,/^} # func_len /c\
17522 func_len_result=${#1}\
17523 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17524 && mv -f "$cfgfile.tmp" "$cfgfile" \
17525 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17526 test 0 -eq $? || _lt_function_replace_fail=:
17530 if test x"$lt_shell_append" = xyes; then
17531 sed -e '/^func_append ()$/,/^} # func_append /c\
17534 eval "${1}+=\\${2}"\
17535 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17536 && mv -f "$cfgfile.tmp" "$cfgfile" \
17537 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17538 test 0 -eq $? || _lt_function_replace_fail=:
17541 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17542 func_append_quoted ()\
17544 \ func_quote_for_eval "${2}"\
17545 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17546 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17547 && mv -f "$cfgfile.tmp" "$cfgfile" \
17548 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17549 test 0 -eq $? || _lt_function_replace_fail=:
17552 # Save a `func_append' function call where possible by direct use of '+='
17553 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17554 && mv -f "$cfgfile.tmp" "$cfgfile" \
17555 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17556 test 0 -eq $? || _lt_function_replace_fail=:
17558 # Save a `func_append' function call even when '+=' is not available
17559 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17560 && mv -f "$cfgfile.tmp" "$cfgfile" \
17561 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17562 test 0 -eq $? || _lt_function_replace_fail=:
17565 if test x"$_lt_function_replace_fail" = x":"; then
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17567 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17571 mv -f "$cfgfile" "$ofile" ||
17572 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17583 ac_clean_files=$ac_clean_files_save
17585 test $ac_write_fail = 0 ||
17586 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17589 # configure is writing to config.log, and then calls config.status.
17590 # config.status does its own redirection, appending to config.log.
17591 # Unfortunately, on DOS this fails, as config.log is still kept open
17592 # by configure, so config.status won't be able to write to it; its
17593 # output is simply discarded. So we exec the FD to /dev/null,
17594 # effectively closing config.log, so it can be properly (re)opened and
17595 # appended to by config.status. When coming back to configure, we
17596 # need to make the FD available again.
17597 if test "$no_create" != yes; then
17599 ac_config_status_args=
17600 test "$silent" = yes &&
17601 ac_config_status_args="$ac_config_status_args --quiet"
17603 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17605 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17606 # would make configure fail if this is the last instruction.
17607 $ac_cs_success || as_fn_exit 1
17609 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17611 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}