2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libevent 2.1.3-alpha-dev.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
568 PACKAGE_NAME='libevent'
569 PACKAGE_TARNAME='libevent'
570 PACKAGE_VERSION='2.1.3-alpha-dev'
571 PACKAGE_STRING='libevent 2.1.3-alpha-dev'
575 ac_unique_file="event.c"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
589 # ifdef HAVE_STDLIB_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
612 ac_subst_vars='am__EXEEXT_FALSE
615 INSTALL_LIBEVENT_FALSE
616 INSTALL_LIBEVENT_TRUE
631 DEVPOLL_BACKEND_FALSE
639 BUILD_WITH_NO_UNDEFINED_FALSE
640 BUILD_WITH_NO_UNDEFINED_TRUE
715 INSTALL_STRIP_PROGRAM
757 program_transform_name
770 enable_option_checking
772 enable_dependency_tracking
775 enable_thread_support
776 enable_malloc_replacement
779 enable_libevent_install
780 enable_libevent_regress
781 enable_function_sections
794 ac_precious_vars='build_alias
805 # Initialize some variables set by options.
807 ac_init_version=false
808 ac_unrecognized_opts=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
819 program_transform_name=s,x,x,
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir='${exec_prefix}/bin'
834 sbindir='${exec_prefix}/sbin'
835 libexecdir='${exec_prefix}/libexec'
836 datarootdir='${prefix}/share'
837 datadir='${datarootdir}'
838 sysconfdir='${prefix}/etc'
839 sharedstatedir='${prefix}/com'
840 localstatedir='${prefix}/var'
841 includedir='${prefix}/include'
842 oldincludedir='/usr/include'
843 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844 infodir='${datarootdir}/info'
849 libdir='${exec_prefix}/lib'
850 localedir='${datarootdir}/locale'
851 mandir='${datarootdir}/man'
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\$ac_option
865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 # Accept the important Cygnus configure options, so we can diagnose typos.
872 case $ac_dashdash$ac_option in
876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881 -build | --build | --buil | --bui | --bu)
882 ac_prev=build_alias ;;
883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884 build_alias=$ac_optarg ;;
886 -cache-file | --cache-file | --cache-fil | --cache-fi \
887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888 ac_prev=cache_file ;;
889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891 cache_file=$ac_optarg ;;
894 cache_file=config.cache ;;
896 -datadir | --datadir | --datadi | --datad)
898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
899 datadir=$ac_optarg ;;
901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902 | --dataroo | --dataro | --datar)
903 ac_prev=datarootdir ;;
904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906 datarootdir=$ac_optarg ;;
908 -disable-* | --disable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
922 eval enable_$ac_useropt=no ;;
924 -docdir | --docdir | --docdi | --doc | --do)
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934 -enable-* | --enable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
948 eval enable_$ac_useropt=\$ac_optarg ;;
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
963 -help | --help | --hel | --he | -h)
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 htmldir=$ac_optarg ;;
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
993 -libdir | --libdir | --libdi | --libd)
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1084 -psdir | --psdir | --psdi | --psd | --ps)
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 sbindir=$ac_optarg ;;
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 sharedstatedir=$ac_optarg ;;
1110 -site | --site | --sit)
1112 -site=* | --site=* | --sit=*)
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1152 eval with_$ac_useropt=\$ac_optarg ;;
1154 -without-* | --without-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1168 eval with_$ac_useropt=no ;;
1171 # Obsolete; use --with-x.
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1188 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189 Try \`$0 --help' for more information"
1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194 # Reject names that are not valid shell variable names.
1195 case $ac_envvar in #(
1196 '' | [0-9]* | *[!_$as_cr_alnum]* )
1197 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1199 eval $ac_envvar=\$ac_optarg
1200 export $ac_envvar ;;
1203 # FIXME: should be removed in autoconf 3.0.
1204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1213 if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215 as_fn_error $? "missing argument to $ac_option"
1218 if test -n "$ac_unrecognized_opts"; then
1219 case $enable_option_checking in
1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1226 # Check all directory arguments for consistency.
1227 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228 datadir sysconfdir sharedstatedir localstatedir includedir \
1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230 libdir localedir mandir
1232 eval ac_val=\$$ac_var
1233 # Remove trailing slashes.
1236 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237 eval $ac_var=\$ac_val;;
1239 # Be sure to have absolute directory names.
1241 [\\/$]* | ?:[\\/]* ) continue;;
1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247 # There might be people who depend on the old broken behavior: `$host'
1248 # used to hold the argument of --host etc.
1249 # FIXME: To remove some day.
1252 target=$target_alias
1254 # FIXME: To remove some day.
1255 if test "x$host_alias" != x; then
1256 if test "x$build_alias" = x; then
1257 cross_compiling=maybe
1258 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1259 If a cross compiler is detected then cross compile mode will be used" >&2
1260 elif test "x$build_alias" != "x$host_alias"; then
1266 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268 test "$silent" = yes && exec 6>/dev/null
1271 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272 ac_ls_di=`ls -di .` &&
1273 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274 as_fn_error $? "working directory cannot be determined"
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276 as_fn_error $? "pwd does not report name of working directory"
1279 # Find the source files, if location was not specified.
1280 if test -z "$srcdir"; then
1281 ac_srcdir_defaulted=yes
1282 # Try the directory containing this script, then the parent directory.
1283 ac_confdir=`$as_dirname -- "$as_myself" ||
1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285 X"$as_myself" : 'X\(//\)[^/]' \| \
1286 X"$as_myself" : 'X\(//\)$' \| \
1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288 $as_echo X"$as_myself" |
1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1311 ac_srcdir_defaulted=no
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1317 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331 for ac_var in $ac_precious_vars; do
1332 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_env_${ac_var}_value=\$${ac_var}
1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339 # Report the --help message.
1341 if test "$ac_init_help" = "long"; then
1342 # Omit some internal or obsolete options to make the list less imposing.
1343 # This message is too long to be a string in the A/UX 3.1 sh.
1345 \`configure' configures libevent 2.1.3-alpha-dev to adapt to many kinds of systems.
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE. See below for descriptions of some of the useful variables.
1352 Defaults for the options are specified in brackets.
1355 -h, --help display this help and exit
1356 --help=short display options specific to this package
1357 --help=recursive display the short help of all the included packages
1358 -V, --version display version information and exit
1359 -q, --quiet, --silent do not print \`checking ...' messages
1360 --cache-file=FILE cache test results in FILE [disabled]
1361 -C, --config-cache alias for \`--cache-file=config.cache'
1362 -n, --no-create do not create output files
1363 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1365 Installation directories:
1366 --prefix=PREFIX install architecture-independent files in PREFIX
1367 [$ac_default_prefix]
1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1371 By default, \`make install' will install all the files in
1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374 for instance \`--prefix=\$HOME'.
1376 For better control, use the options below.
1378 Fine tuning of the installation directories:
1379 --bindir=DIR user executables [EPREFIX/bin]
1380 --sbindir=DIR system admin executables [EPREFIX/sbin]
1381 --libexecdir=DIR program executables [EPREFIX/libexec]
1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1385 --libdir=DIR object code libraries [EPREFIX/lib]
1386 --includedir=DIR C header files [PREFIX/include]
1387 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1388 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1389 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1390 --infodir=DIR info documentation [DATAROOTDIR/info]
1391 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1392 --mandir=DIR man documentation [DATAROOTDIR/man]
1393 --docdir=DIR documentation root [DATAROOTDIR/doc/libevent]
1394 --htmldir=DIR html documentation [DOCDIR]
1395 --dvidir=DIR dvi documentation [DOCDIR]
1396 --pdfdir=DIR pdf documentation [DOCDIR]
1397 --psdir=DIR ps documentation [DOCDIR]
1403 --program-prefix=PREFIX prepend PREFIX to installed program names
1404 --program-suffix=SUFFIX append SUFFIX to installed program names
1405 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1408 --build=BUILD configure for building on BUILD [guessed]
1409 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1413 if test -n "$ac_init_help"; then
1414 case $ac_init_help in
1415 short | recursive ) echo "Configuration of libevent 2.1.3-alpha-dev:";;
1420 --disable-option-checking ignore unrecognized --enable/--with options
1421 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1422 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1423 --enable-silent-rules less verbose build output (undo: `make V=1')
1424 --disable-silent-rules verbose build output (undo: `make V=0')
1425 --disable-dependency-tracking speeds up one-time build
1426 --enable-dependency-tracking do not reject slow dependency extractors
1427 --disable-gcc-warnings disable verbose warnings with GCC
1428 --enable-gcc-hardening enable compiler security checks
1429 --disable-thread-support
1430 disable support for threading
1431 --disable-malloc-replacement
1432 disable support for replacing the memory mgt
1434 --disable-openssl disable support for openssl encryption
1435 --disable-debug-mode disable support for running in debug mode
1436 --disable-libevent-install, disable installation of libevent
1438 --disable-libevent-regress, skip regress in make check
1440 --enable-function-sections, make static library allow smaller binaries with --gc-sections
1442 --enable-verbose-debug, verbose debug logging
1444 --enable-shared[=PKGS] build shared libraries [default=yes]
1445 --enable-static[=PKGS] build static libraries [default=yes]
1446 --enable-fast-install[=PKGS]
1447 optimize for fast installation [default=yes]
1448 --disable-libtool-lock avoid locking (might break parallel builds)
1449 --disable-largefile omit support for large files
1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1454 --with-pic try to use only PIC/non-PIC objects [default=use
1456 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1457 --with-sysroot=DIR Search for dependent libraries within DIR
1458 (or the compiler's sysroot if not specified).
1459 --with-threads with threads [auto]
1460 --with-yielding-select with yielding select [auto]
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 LIBS libraries to pass to the linker, e.g. -l<library>
1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469 you have headers in a nonstandard directory <include dir>
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1475 Report bugs to the package provider.
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" ||
1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1505 .) # We are building in place.
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
1510 ac_srcdir=$srcdir$ac_dir_suffix;
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for guested configure.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1529 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1538 libevent configure 2.1.3-alpha-dev
1539 generated by GNU Autoconf 2.68
1541 Copyright (C) 2010 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1548 ## ------------------------ ##
1549 ## Autoconf initialization. ##
1550 ## ------------------------ ##
1552 # ac_fn_c_try_compile LINENO
1553 # --------------------------
1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_compile ()
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext
1559 if { { ac_try="$ac_compile"
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_compile") 2>conftest.err
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest.$ac_objext; then :
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586 as_fn_set_status $ac_retval
1588 } # ac_fn_c_try_compile
1590 # ac_fn_c_try_cpp LINENO
1591 # ----------------------
1592 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 if { { ac_try="$ac_cpp conftest.$ac_ext"
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } > conftest.i && {
1612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1617 $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623 as_fn_set_status $ac_retval
1627 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1628 # -------------------------------------------------------
1629 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1630 # the include files in INCLUDES and setting the cache variable VAR
1632 ac_fn_c_check_header_mongrel ()
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 if eval \${$3+:} false; then :
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1637 $as_echo_n "checking for $2... " >&6; }
1638 if eval \${$3+:} false; then :
1639 $as_echo_n "(cached) " >&6
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643 $as_echo "$ac_res" >&6; }
1645 # Is the header compilable?
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1647 $as_echo_n "checking $2 usability... " >&6; }
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1653 if ac_fn_c_try_compile "$LINENO"; then :
1654 ac_header_compiler=yes
1656 ac_header_compiler=no
1658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1660 $as_echo "$ac_header_compiler" >&6; }
1662 # Is the header present?
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1664 $as_echo_n "checking $2 presence... " >&6; }
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1669 if ac_fn_c_try_cpp "$LINENO"; then :
1670 ac_header_preproc=yes
1672 ac_header_preproc=no
1674 rm -f conftest.err conftest.i conftest.$ac_ext
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1676 $as_echo "$ac_header_preproc" >&6; }
1678 # So? What about this header?
1679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1682 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1684 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1688 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1690 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1692 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1694 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1696 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700 $as_echo_n "checking for $2... " >&6; }
1701 if eval \${$3+:} false; then :
1702 $as_echo_n "(cached) " >&6
1704 eval "$3=\$ac_header_compiler"
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708 $as_echo "$ac_res" >&6; }
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 } # ac_fn_c_check_header_mongrel
1714 # ac_fn_c_try_run LINENO
1715 # ----------------------
1716 # Try to link conftest.$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
1756 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1757 # -------------------------------------------------------
1758 # Tests whether HEADER exists and can be compiled using the include files in
1759 # INCLUDES, setting the cache variable VAR accordingly.
1760 ac_fn_c_check_header_compile ()
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766 $as_echo_n "(cached) " >&6
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1773 if ac_fn_c_try_compile "$LINENO"; then :
1778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 } # ac_fn_c_check_header_compile
1787 # ac_fn_c_try_link LINENO
1788 # -----------------------
1789 # Try to link conftest.$ac_ext, and return whether this succeeded.
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext conftest$ac_exeext
1794 if { { ac_try="$ac_link"
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_link") 2>conftest.err
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest$ac_exeext && {
1813 test "$cross_compiling" = yes ||
1814 $as_test_x conftest$ac_exeext
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1823 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1824 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1825 # interfere with the next link command; also delete a directory that is
1826 # left behind by Apple's compiler. We do this before executing the actions.
1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1831 } # ac_fn_c_try_link
1833 # ac_fn_c_check_func LINENO FUNC VAR
1834 # ----------------------------------
1835 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1836 ac_fn_c_check_func ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842 $as_echo_n "(cached) " >&6
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1846 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1848 #define $2 innocuous_$2
1850 /* System header to define __stub macros and hopefully few prototypes,
1851 which can conflict with char $2 (); below.
1852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1853 <limits.h> exists even on freestanding compilers. */
1856 # include <limits.h>
1858 # include <assert.h>
1863 /* Override any GCC internal prototype to avoid an error.
1864 Use char because int might match the return type of a GCC
1865 builtin and then its argument prototype would still apply. */
1870 /* The GNU C library defines this for functions which it implements
1871 to always fail with ENOSYS. Some functions are actually named
1872 something starting with __ and the normal name is an alias. */
1873 #if defined __stub_$2 || defined __stub___$2
1885 if ac_fn_c_try_link "$LINENO"; then :
1890 rm -f core conftest.err conftest.$ac_objext \
1891 conftest$ac_exeext conftest.$ac_ext
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898 } # ac_fn_c_check_func
1900 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1901 # ---------------------------------------------
1902 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1904 ac_fn_c_check_decl ()
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 as_decl_name=`echo $2|sed 's/ *(.*//'`
1908 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1910 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1911 if eval \${$3+:} false; then :
1912 $as_echo_n "(cached) " >&6
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1920 #ifndef $as_decl_name
1922 (void) $as_decl_use;
1924 (void) $as_decl_name;
1932 if ac_fn_c_try_compile "$LINENO"; then :
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944 } # ac_fn_c_check_decl
1946 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1947 # -------------------------------------------
1948 # Tests whether TYPE exists after having included INCLUDES, setting cache
1949 # variable VAR accordingly.
1950 ac_fn_c_check_type ()
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval \${$3+:} false; then :
1956 $as_echo_n "(cached) " >&6
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1984 if ac_fn_c_try_compile "$LINENO"; then :
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 } # ac_fn_c_check_type
2000 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2001 # --------------------------------------------
2002 # Tries to find the compile-time value of EXPR in a program that includes
2003 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2005 ac_fn_c_compute_int ()
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 if test "$cross_compiling" = yes; then
2009 # Depending upon the size, compute the lo and hi bounds.
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2016 static int test_array [1 - 2 * !(($2) >= 0)];
2023 if ac_fn_c_try_compile "$LINENO"; then :
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2032 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040 ac_hi=$ac_mid; break
2042 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2043 if test $ac_lo -le $ac_mid; then
2047 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2058 static int test_array [1 - 2 * !(($2) < 0)];
2065 if ac_fn_c_try_compile "$LINENO"; then :
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2074 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082 ac_lo=$ac_mid; break
2084 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2085 if test $ac_mid -le $ac_hi; then
2089 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 # Binary search between lo and hi bounds.
2100 while test "x$ac_lo" != "x$ac_hi"; do
2101 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2108 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2115 if ac_fn_c_try_compile "$LINENO"; then :
2118 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2130 static long int longval () { return $2; }
2131 static unsigned long int ulongval () { return $2; }
2138 FILE *f = fopen ("conftest.val", "w");
2143 long int i = longval ();
2146 fprintf (f, "%ld", i);
2150 unsigned long int i = ulongval ();
2153 fprintf (f, "%lu", i);
2155 /* Do not output a trailing newline, as this causes \r\n confusion
2156 on some platforms. */
2157 return ferror (f) || fclose (f) != 0;
2163 if ac_fn_c_try_run "$LINENO"; then :
2164 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2169 conftest.$ac_objext conftest.beam conftest.$ac_ext
2173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174 as_fn_set_status $ac_retval
2176 } # ac_fn_c_compute_int
2178 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2179 # ----------------------------------------------------
2180 # Tries to find if the field MEMBER exists in type AGGR, after including
2181 # INCLUDES, setting cache variable VAR accordingly.
2182 ac_fn_c_check_member ()
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2186 $as_echo_n "checking for $2.$3... " >&6; }
2187 if eval \${$4+:} false; then :
2188 $as_echo_n "(cached) " >&6
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2203 if ac_fn_c_try_compile "$LINENO"; then :
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2213 if (sizeof ac_aggr.$3)
2219 if ac_fn_c_try_compile "$LINENO"; then :
2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2230 $as_echo "$ac_res" >&6; }
2231 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2233 } # ac_fn_c_check_member
2234 cat >config.log <<_ACEOF
2235 This file contains any messages produced by compilers while
2236 running configure, to aid debugging if configure makes a mistake.
2238 It was created by libevent $as_me 2.1.3-alpha-dev, which was
2239 generated by GNU Autoconf 2.68. Invocation command line was
2251 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2252 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2253 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2254 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2255 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2257 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2258 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2260 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2261 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2262 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2263 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2264 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2265 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2266 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 test -z "$as_dir" && as_dir=.
2275 $as_echo "PATH: $as_dir"
2291 # Keep a trace of the command line.
2292 # Strip out --no-create and --no-recursion so they do not pile up.
2293 # Strip out --silent because we don't want to record it for future runs.
2294 # Also quote any args containing shell meta-characters.
2295 # Make two passes to allow for proper duplicate-argument suppression.
2299 ac_must_keep_next=false
2305 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2307 | -silent | --silent | --silen | --sile | --sil)
2310 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2313 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2315 as_fn_append ac_configure_args1 " '$ac_arg'"
2316 if test $ac_must_keep_next = true; then
2317 ac_must_keep_next=false # Got value, back to normal.
2320 *=* | --config-cache | -C | -disable-* | --disable-* \
2321 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2322 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2323 | -with-* | --with-* | -without-* | --without-* | --x)
2324 case "$ac_configure_args0 " in
2325 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2328 -* ) ac_must_keep_next=true ;;
2331 as_fn_append ac_configure_args " '$ac_arg'"
2336 { ac_configure_args0=; unset ac_configure_args0;}
2337 { ac_configure_args1=; unset ac_configure_args1;}
2339 # When interrupted or exit'd, cleanup temporary files, and complete
2340 # config.log. We remove comments because anyway the quotes in there
2341 # would cause problems or look ugly.
2342 # WARNING: Use '\'' to represent an apostrophe within the trap.
2343 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2344 trap 'exit_status=$?
2345 # Save into config.log some information that might help in debugging.
2349 $as_echo "## ---------------- ##
2350 ## Cache variables. ##
2351 ## ---------------- ##"
2353 # The following way of writing the cache mishandles newlines in values,
2355 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2356 eval ac_val=\$$ac_var
2360 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2361 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2364 _ | IFS | as_nl) ;; #(
2365 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2366 *) { eval $ac_var=; unset $ac_var;} ;;
2371 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2372 *${as_nl}ac_space=\ *)
2374 "s/'\''/'\''\\\\'\'''\''/g;
2375 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2378 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2385 $as_echo "## ----------------- ##
2386 ## Output variables. ##
2387 ## ----------------- ##"
2389 for ac_var in $ac_subst_vars
2391 eval ac_val=\$$ac_var
2393 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2395 $as_echo "$ac_var='\''$ac_val'\''"
2399 if test -n "$ac_subst_files"; then
2400 $as_echo "## ------------------- ##
2401 ## File substitutions. ##
2402 ## ------------------- ##"
2404 for ac_var in $ac_subst_files
2406 eval ac_val=\$$ac_var
2408 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410 $as_echo "$ac_var='\''$ac_val'\''"
2415 if test -s confdefs.h; then
2416 $as_echo "## ----------- ##
2423 test "$ac_signal" != 0 &&
2424 $as_echo "$as_me: caught signal $ac_signal"
2425 $as_echo "$as_me: exit $exit_status"
2427 rm -f core *.core core.conftest.* &&
2428 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2431 for ac_signal in 1 2 13 15; do
2432 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2436 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2437 rm -f -r conftest* confdefs.h
2439 $as_echo "/* confdefs.h */" > confdefs.h
2441 # Predefined preprocessor variables.
2443 cat >>confdefs.h <<_ACEOF
2444 #define PACKAGE_NAME "$PACKAGE_NAME"
2447 cat >>confdefs.h <<_ACEOF
2448 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2451 cat >>confdefs.h <<_ACEOF
2452 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2455 cat >>confdefs.h <<_ACEOF
2456 #define PACKAGE_STRING "$PACKAGE_STRING"
2459 cat >>confdefs.h <<_ACEOF
2460 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2463 cat >>confdefs.h <<_ACEOF
2464 #define PACKAGE_URL "$PACKAGE_URL"
2468 # Let the site file select an alternate cache file if it wants to.
2469 # Prefer an explicitly selected file to automatically selected ones.
2472 if test -n "$CONFIG_SITE"; then
2473 # We do not want a PATH search for config.site.
2474 case $CONFIG_SITE in #((
2475 -*) ac_site_file1=./$CONFIG_SITE;;
2476 */*) ac_site_file1=$CONFIG_SITE;;
2477 *) ac_site_file1=./$CONFIG_SITE;;
2479 elif test "x$prefix" != xNONE; then
2480 ac_site_file1=$prefix/share/config.site
2481 ac_site_file2=$prefix/etc/config.site
2483 ac_site_file1=$ac_default_prefix/share/config.site
2484 ac_site_file2=$ac_default_prefix/etc/config.site
2486 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2488 test "x$ac_site_file" = xNONE && continue
2489 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2491 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2492 sed 's/^/| /' "$ac_site_file" >&5
2494 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2496 as_fn_error $? "failed to load site script $ac_site_file
2497 See \`config.log' for more details" "$LINENO" 5; }
2501 if test -r "$cache_file"; then
2502 # Some versions of bash will fail to source /dev/null (special files
2503 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2504 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2506 $as_echo "$as_me: loading cache $cache_file" >&6;}
2508 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2509 *) . "./$cache_file";;
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2514 $as_echo "$as_me: creating cache $cache_file" >&6;}
2518 # Check that the precious variables saved in the cache have kept the same
2520 ac_cache_corrupted=false
2521 for ac_var in $ac_precious_vars; do
2522 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2523 eval ac_new_set=\$ac_env_${ac_var}_set
2524 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2525 eval ac_new_val=\$ac_env_${ac_var}_value
2526 case $ac_old_set,$ac_new_set in
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2529 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2530 ac_cache_corrupted=: ;;
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2533 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2534 ac_cache_corrupted=: ;;
2537 if test "x$ac_old_val" != "x$ac_new_val"; then
2538 # differences in whitespace do not lead to failure.
2539 ac_old_val_w=`echo x $ac_old_val`
2540 ac_new_val_w=`echo x $ac_new_val`
2541 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2543 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2544 ac_cache_corrupted=:
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2547 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2548 eval $ac_var=\$ac_old_val
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2551 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2553 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2556 # Pass precious variables to config.status.
2557 if test "$ac_new_set" = set; then
2559 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2560 *) ac_arg=$ac_var=$ac_new_val ;;
2562 case " $ac_configure_args " in
2563 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2564 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2568 if $ac_cache_corrupted; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2572 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2573 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2575 ## -------------------- ##
2576 ## Main body of script. ##
2577 ## -------------------- ##
2580 ac_cpp='$CPP $CPPFLAGS'
2581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591 for ac_dir in build-aux "$srcdir"/build-aux; do
2592 if test -f "$ac_dir/install-sh"; then
2594 ac_install_sh="$ac_aux_dir/install-sh -c"
2596 elif test -f "$ac_dir/install.sh"; then
2598 ac_install_sh="$ac_aux_dir/install.sh -c"
2600 elif test -f "$ac_dir/shtool"; then
2602 ac_install_sh="$ac_aux_dir/shtool install -c"
2606 if test -z "$ac_aux_dir"; then
2607 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2610 # These three variables are undocumented and unsupported,
2611 # and are intended to be withdrawn in a future Autoconf release.
2612 # They can cause serious problems if a builder's source tree is in a directory
2613 # whose full name contains unusual characters.
2614 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2615 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2616 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2620 am__api_version='1.11'
2622 # Find a good install program. We prefer a C program (faster),
2623 # so one script is as good as another. But avoid the broken or
2624 # incompatible versions:
2625 # SysV /etc/install, /usr/sbin/install
2626 # SunOS /usr/etc/install
2627 # IRIX /sbin/install
2629 # AmigaOS /C/install, which installs bootblocks on floppy discs
2630 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2631 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2632 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2633 # OS/2's system install, which has a completely different semantic
2634 # ./install, which can be erroneously created by make from ./install.sh.
2635 # Reject install programs that cannot install multiple files.
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2637 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2638 if test -z "$INSTALL"; then
2639 if ${ac_cv_path_install+:} false; then :
2640 $as_echo_n "(cached) " >&6
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir=.
2647 # Account for people who put trailing slashes in PATH elements.
2648 case $as_dir/ in #((
2649 ./ | .// | /[cC]/* | \
2650 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2651 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2654 # OSF1 and SCO ODT 3.0 have their own names for install.
2655 # Don't use installbsd from OSF since it installs stuff as root
2657 for ac_prog in ginstall scoinst install; do
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2660 if test $ac_prog = install &&
2661 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2662 # AIX install. It has an incompatible calling convention.
2664 elif test $ac_prog = install &&
2665 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2666 # program-specific install script used by HP pwplus--don't use.
2669 rm -rf conftest.one conftest.two conftest.dir
2670 echo one > conftest.one
2671 echo two > conftest.two
2673 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2674 test -s conftest.one && test -s conftest.two &&
2675 test -s conftest.dir/conftest.one &&
2676 test -s conftest.dir/conftest.two
2678 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2691 rm -rf conftest.one conftest.two conftest.dir
2694 if test "${ac_cv_path_install+set}" = set; then
2695 INSTALL=$ac_cv_path_install
2697 # As a last resort, use the slow shell script. Don't cache a
2698 # value for INSTALL within a source directory, because that will
2699 # break other packages using the cache if that directory is
2700 # removed, or if the value is a relative name.
2701 INSTALL=$ac_install_sh
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2705 $as_echo "$INSTALL" >&6; }
2707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2708 # It thinks the first close brace ends the variable substitution.
2709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2713 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2716 $as_echo_n "checking whether build environment is sane... " >&6; }
2719 echo timestamp > conftest.file
2720 # Reject unsafe characters in $srcdir or the absolute working directory
2721 # name. Accept space and tab only in the latter.
2725 *[\\\"\#\$\&\'\`$am_lf]*)
2726 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2729 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2730 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2733 # Do `set' in a subshell so we don't clobber the current shell's
2734 # arguments. Must try -L first in case configure is actually a
2735 # symlink; some systems play weird games with the mod time of symlinks
2736 # (eg FreeBSD returns the mod time of the symlink's containing
2739 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2740 if test "$*" = "X"; then
2742 set X `ls -t "$srcdir/configure" conftest.file`
2745 if test "$*" != "X $srcdir/configure conftest.file" \
2746 && test "$*" != "X conftest.file $srcdir/configure"; then
2748 # If neither matched, then we have a broken ls. This can happen
2749 # if, for instance, CONFIG_SHELL is bash and it inherits a
2750 # broken ls alias from the environment. This has actually
2751 # happened. Such a system could not be considered "sane".
2752 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2753 alias in your environment" "$LINENO" 5
2756 test "$2" = conftest.file
2762 as_fn_error $? "newly created file is older than distributed files!
2763 Check your system clock" "$LINENO" 5
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2766 $as_echo "yes" >&6; }
2767 test "$program_prefix" != NONE &&
2768 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2769 # Use a double $ so make ignores it.
2770 test "$program_suffix" != NONE &&
2771 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2772 # Double any \ or $.
2773 # By default was `s,x,x', remove it if useless.
2774 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2775 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2777 # expand $ac_aux_dir to an absolute path
2778 am_aux_dir=`cd $ac_aux_dir && pwd`
2780 if test x"${MISSING+set}" != xset; then
2783 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2785 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2788 # Use eval to expand $SHELL
2789 if eval "$MISSING --run true"; then
2790 am_missing_run="$MISSING --run "
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2794 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2797 if test x"${install_sh}" != xset; then
2800 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2802 install_sh="\${SHELL} $am_aux_dir/install-sh"
2806 # Installed binaries are usually stripped using `strip' when the user
2807 # run `make install-strip'. However `strip' might not be the right
2808 # tool to use in cross-compilation environments, therefore Automake
2809 # will honor the `STRIP' environment variable to overrule this program.
2810 if test "$cross_compiling" != no; then
2811 if test -n "$ac_tool_prefix"; then
2812 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2813 set dummy ${ac_tool_prefix}strip; ac_word=$2
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815 $as_echo_n "checking for $ac_word... " >&6; }
2816 if ${ac_cv_prog_STRIP+:} false; then :
2817 $as_echo_n "(cached) " >&6
2819 if test -n "$STRIP"; then
2820 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2829 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 STRIP=$ac_cv_prog_STRIP
2840 if test -n "$STRIP"; then
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2842 $as_echo "$STRIP" >&6; }
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2850 if test -z "$ac_cv_prog_STRIP"; then
2852 # Extract the first word of "strip", so it can be a program name with args.
2853 set dummy strip; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2857 $as_echo_n "(cached) " >&6
2859 if test -n "$ac_ct_STRIP"; then
2860 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869 ac_cv_prog_ac_ct_STRIP="strip"
2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2880 if test -n "$ac_ct_STRIP"; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2882 $as_echo "$ac_ct_STRIP" >&6; }
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2888 if test "x$ac_ct_STRIP" = x; then
2891 case $cross_compiling:$ac_tool_warned in
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2895 ac_tool_warned=yes ;;
2900 STRIP="$ac_cv_prog_STRIP"
2904 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2907 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2908 if test -z "$MKDIR_P"; then
2909 if ${ac_cv_path_mkdir+:} false; then :
2910 $as_echo_n "(cached) " >&6
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2916 test -z "$as_dir" && as_dir=.
2917 for ac_prog in mkdir gmkdir; do
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2920 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2921 'mkdir (GNU coreutils) '* | \
2922 'mkdir (coreutils) '* | \
2923 'mkdir (fileutils) '4.1*)
2924 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2934 test -d ./--version && rmdir ./--version
2935 if test "${ac_cv_path_mkdir+set}" = set; then
2936 MKDIR_P="$ac_cv_path_mkdir -p"
2938 # As a last resort, use the slow shell script. Don't cache a
2939 # value for MKDIR_P within a source directory, because that will
2940 # break other packages using the cache if that directory is
2941 # removed, or if the value is a relative name.
2942 MKDIR_P="$ac_install_sh -d"
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2946 $as_echo "$MKDIR_P" >&6; }
2950 [\\/$]* | ?:[\\/]*) ;;
2951 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2954 for ac_prog in gawk mawk nawk awk
2956 # Extract the first word of "$ac_prog", so it can be a program name with args.
2957 set dummy $ac_prog; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_AWK+:} false; then :
2961 $as_echo_n "(cached) " >&6
2963 if test -n "$AWK"; then
2964 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973 ac_cv_prog_AWK="$ac_prog"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 if test -n "$AWK"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2986 $as_echo "$AWK" >&6; }
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2993 test -n "$AWK" && break
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2997 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2999 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3000 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3001 $as_echo_n "(cached) " >&6
3003 cat >conftest.make <<\_ACEOF
3006 @echo '@@@%%%=$(MAKE)=@@@%%%'
3008 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3009 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3011 eval ac_cv_prog_make_${ac_make}_set=yes;;
3013 eval ac_cv_prog_make_${ac_make}_set=no;;
3017 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3019 $as_echo "yes" >&6; }
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3024 SET_MAKE="MAKE=${MAKE-make}"
3027 rm -rf .tst 2>/dev/null
3028 mkdir .tst 2>/dev/null
3029 if test -d .tst; then
3034 rmdir .tst 2>/dev/null
3036 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3037 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3038 # is not polluted with repeated "-I."
3039 am__isrc=' -I$(srcdir)'
3040 # test to see if srcdir already configured
3041 if test -f $srcdir/config.status; then
3042 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3046 # test whether we have cygpath
3047 if test -z "$CYGPATH_W"; then
3048 if (cygpath --version) >/dev/null 2>/dev/null; then
3049 CYGPATH_W='cygpath -w'
3056 # Define the identity of the package.
3058 VERSION='2.1.3-alpha-dev'
3061 cat >>confdefs.h <<_ACEOF
3062 #define PACKAGE "$PACKAGE"
3066 cat >>confdefs.h <<_ACEOF
3067 #define VERSION "$VERSION"
3070 # Some tools Automake needs.
3072 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3075 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3078 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3081 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3084 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3086 # We need awk for the "check" target. The system "awk" is bad on
3088 # Always define AMTAR for backward compatibility.
3090 AMTAR=${AMTAR-"${am_missing_run}tar"}
3092 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3098 # Check whether --enable-silent-rules was given.
3099 if test "${enable_silent_rules+set}" = set; then :
3100 enableval=$enable_silent_rules;
3103 case $enable_silent_rules in
3104 yes) AM_DEFAULT_VERBOSITY=0;;
3105 no) AM_DEFAULT_VERBOSITY=1;;
3106 *) AM_DEFAULT_VERBOSITY=0;;
3110 ac_config_headers="$ac_config_headers config.h evconfig-private.h:evconfig-private.h.in"
3113 $as_echo "#define NUMERIC_VERSION 0x02010301" >>confdefs.h
3116 if test "$prefix" = "NONE"; then
3121 # Make sure we can run config.sub.
3122 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3123 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3126 $as_echo_n "checking build system type... " >&6; }
3127 if ${ac_cv_build+:} false; then :
3128 $as_echo_n "(cached) " >&6
3130 ac_build_alias=$build_alias
3131 test "x$ac_build_alias" = x &&
3132 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3133 test "x$ac_build_alias" = x &&
3134 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3135 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3136 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3140 $as_echo "$ac_cv_build" >&6; }
3141 case $ac_cv_build in
3143 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3146 ac_save_IFS=$IFS; IFS='-'
3152 # Remember, the first character of IFS is used to create $*,
3153 # except with old shells:
3156 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3160 $as_echo_n "checking host system type... " >&6; }
3161 if ${ac_cv_host+:} false; then :
3162 $as_echo_n "(cached) " >&6
3164 if test "x$host_alias" = x; then
3165 ac_cv_host=$ac_cv_build
3167 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3168 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3173 $as_echo "$ac_cv_host" >&6; }
3176 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3179 ac_save_IFS=$IFS; IFS='-'
3185 # Remember, the first character of IFS is used to create $*,
3186 # except with old shells:
3189 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3192 DEPDIR="${am__leading_dot}deps"
3194 ac_config_commands="$ac_config_commands depfiles"
3197 am_make=${MAKE-make}
3198 cat > confinc << 'END'
3200 @echo this is the am__doit target
3203 # If we don't find an include directive, just comment out the code.
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3205 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3209 # First try GNU make style include.
3210 echo "include confinc" > confmf
3211 # Ignore all kinds of additional output from `make'.
3212 case `$am_make -s -f confmf 2> /dev/null` in #(
3213 *the\ am__doit\ target*)
3219 # Now try BSD make style include.
3220 if test "$am__include" = "#"; then
3221 echo '.include "confinc"' > confmf
3222 case `$am_make -s -f confmf 2> /dev/null` in #(
3223 *the\ am__doit\ target*)
3224 am__include=.include
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3233 $as_echo "$_am_result" >&6; }
3234 rm -f confinc confmf
3236 # Check whether --enable-dependency-tracking was given.
3237 if test "${enable_dependency_tracking+set}" = set; then :
3238 enableval=$enable_dependency_tracking;
3241 if test "x$enable_dependency_tracking" != xno; then
3242 am_depcomp="$ac_aux_dir/depcomp"
3245 if test "x$enable_dependency_tracking" != xno; then
3255 ac_cpp='$CPP $CPPFLAGS'
3256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259 if test -n "$ac_tool_prefix"; then
3260 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3261 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3263 $as_echo_n "checking for $ac_word... " >&6; }
3264 if ${ac_cv_prog_CC+:} false; then :
3265 $as_echo_n "(cached) " >&6
3267 if test -n "$CC"; then
3268 ac_cv_prog_CC="$CC" # Let the user override the test.
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3277 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 if test -n "$CC"; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3290 $as_echo "$CC" >&6; }
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3298 if test -z "$ac_cv_prog_CC"; then
3300 # Extract the first word of "gcc", so it can be a program name with args.
3301 set dummy gcc; ac_word=$2
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303 $as_echo_n "checking for $ac_word... " >&6; }
3304 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3305 $as_echo_n "(cached) " >&6
3307 if test -n "$ac_ct_CC"; then
3308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3317 ac_cv_prog_ac_ct_CC="gcc"
3318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3328 if test -n "$ac_ct_CC"; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3330 $as_echo "$ac_ct_CC" >&6; }
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3336 if test "x$ac_ct_CC" = x; then
3339 case $cross_compiling:$ac_tool_warned in
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3343 ac_tool_warned=yes ;;
3351 if test -z "$CC"; then
3352 if test -n "$ac_tool_prefix"; then
3353 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3354 set dummy ${ac_tool_prefix}cc; ac_word=$2
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356 $as_echo_n "checking for $ac_word... " >&6; }
3357 if ${ac_cv_prog_CC+:} false; then :
3358 $as_echo_n "(cached) " >&6
3360 if test -n "$CC"; then
3361 ac_cv_prog_CC="$CC" # Let the user override the test.
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370 ac_cv_prog_CC="${ac_tool_prefix}cc"
3371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 if test -n "$CC"; then
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3383 $as_echo "$CC" >&6; }
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 $as_echo "no" >&6; }
3392 if test -z "$CC"; then
3393 # Extract the first word of "cc", so it can be a program name with args.
3394 set dummy cc; ac_word=$2
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396 $as_echo_n "checking for $ac_word... " >&6; }
3397 if ${ac_cv_prog_CC+:} false; then :
3398 $as_echo_n "(cached) " >&6
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC="$CC" # Let the user override the test.
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3411 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3412 ac_prog_rejected=yes
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 if test $ac_prog_rejected = yes; then
3424 # We found a bogon in the path, so make sure we never use it.
3425 set dummy $ac_cv_prog_CC
3427 if test $# != 0; then
3428 # We chose a different compiler from the bogus one.
3429 # However, it has the same basename, so the bogon will be chosen
3430 # first if we set CC to just the basename; use the full file name.
3432 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3438 if test -n "$CC"; then
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3440 $as_echo "$CC" >&6; }
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 $as_echo "no" >&6; }
3448 if test -z "$CC"; then
3449 if test -n "$ac_tool_prefix"; then
3450 for ac_prog in cl.exe
3452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if ${ac_cv_prog_CC+:} false; then :
3457 $as_echo_n "(cached) " >&6
3459 if test -n "$CC"; then
3460 ac_cv_prog_CC="$CC" # Let the user override the test.
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 if test -n "$CC"; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3482 $as_echo "$CC" >&6; }
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3489 test -n "$CC" && break
3492 if test -z "$CC"; then
3494 for ac_prog in cl.exe
3496 # Extract the first word of "$ac_prog", so it can be a program name with args.
3497 set dummy $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_ac_ct_CC+:} false; then :
3501 $as_echo_n "(cached) " >&6
3503 if test -n "$ac_ct_CC"; then
3504 ac_cv_prog_ac_ct_CC="$ac_ct_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3513 ac_cv_prog_ac_ct_CC="$ac_prog"
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3524 if test -n "$ac_ct_CC"; then
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3526 $as_echo "$ac_ct_CC" >&6; }
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3533 test -n "$ac_ct_CC" && break
3536 if test "x$ac_ct_CC" = x; then
3539 case $cross_compiling:$ac_tool_warned in
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3543 ac_tool_warned=yes ;;
3552 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3554 as_fn_error $? "no acceptable C compiler found in \$PATH
3555 See \`config.log' for more details" "$LINENO" 5; }
3557 # Provide some information about the compiler.
3558 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3561 for ac_option in --version -v -V -qversion; do
3562 { { ac_try="$ac_compiler $ac_option >&5"
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 $as_echo "$ac_try_echo"; } >&5
3569 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3571 if test -s conftest.err; then
3573 ... rest of stderr output deleted ...
3574 10q' conftest.err >conftest.er1
3575 cat conftest.er1 >&5
3577 rm -f conftest.er1 conftest.err
3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579 test $ac_status = 0; }
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3593 ac_clean_files_save=$ac_clean_files
3594 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3595 # Try to create an executable without -o first, disregard a.out.
3596 # It will help us diagnose broken compilers, and finding out an intuition
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3599 $as_echo_n "checking whether the C compiler works... " >&6; }
3600 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3602 # The possible output files:
3603 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3606 for ac_file in $ac_files
3609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3610 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3615 if { { ac_try="$ac_link_default"
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621 $as_echo "$ac_try_echo"; } >&5
3622 (eval "$ac_link_default") 2>&5
3624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625 test $ac_status = 0; }; then :
3626 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3627 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3628 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3629 # so that the user can short-circuit this test for compilers unknown to
3631 for ac_file in $ac_files ''
3633 test -f "$ac_file" || continue
3635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3638 # We found the default executable, but exeext='' is most
3642 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3644 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3646 # We set ac_cv_exeext here because the later test for it is not
3647 # safe: cross compilers may not add the suffix if given an `-o'
3648 # argument, so we may need to know it at that point already.
3649 # Even if this section looks crufty: it has the advantage of
3656 test "$ac_cv_exeext" = no && ac_cv_exeext=
3661 if test -z "$ac_file"; then :
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663 $as_echo "no" >&6; }
3664 $as_echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669 as_fn_error 77 "C compiler cannot create executables
3670 See \`config.log' for more details" "$LINENO" 5; }
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3673 $as_echo "yes" >&6; }
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3676 $as_echo_n "checking for C compiler default output file name... " >&6; }
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3678 $as_echo "$ac_file" >&6; }
3679 ac_exeext=$ac_cv_exeext
3681 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3682 ac_clean_files=$ac_clean_files_save
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3684 $as_echo_n "checking for suffix of executables... " >&6; }
3685 if { { ac_try="$ac_link"
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691 $as_echo "$ac_try_echo"; } >&5
3692 (eval "$ac_link") 2>&5
3694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695 test $ac_status = 0; }; then :
3696 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3697 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3698 # work properly (i.e., refer to `conftest.exe'), while it won't with
3700 for ac_file in conftest.exe conftest conftest.*; do
3701 test -f "$ac_file" || continue
3703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3704 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3713 See \`config.log' for more details" "$LINENO" 5; }
3715 rm -f conftest conftest$ac_cv_exeext
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3717 $as_echo "$ac_cv_exeext" >&6; }
3719 rm -f conftest.$ac_ext
3720 EXEEXT=$ac_cv_exeext
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3728 FILE *f = fopen ("conftest.out", "w");
3729 return ferror (f) || fclose (f) != 0;
3735 ac_clean_files="$ac_clean_files conftest.out"
3736 # Check that the compiler produces executables we can run. If not, either
3737 # the compiler is broken, or we cross compile.
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3739 $as_echo_n "checking whether we are cross compiling... " >&6; }
3740 if test "$cross_compiling" != yes; then
3741 { { ac_try="$ac_link"
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747 $as_echo "$ac_try_echo"; } >&5
3748 (eval "$ac_link") 2>&5
3750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3751 test $ac_status = 0; }
3752 if { ac_try='./conftest$ac_cv_exeext'
3753 { { case "(($ac_try" in
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 $as_echo "$ac_try_echo"; } >&5
3759 (eval "$ac_try") 2>&5
3761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762 test $ac_status = 0; }; }; then
3765 if test "$cross_compiling" = maybe; then
3768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3770 as_fn_error $? "cannot run C compiled programs.
3771 If you meant to cross compile, use \`--host'.
3772 See \`config.log' for more details" "$LINENO" 5; }
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3777 $as_echo "$cross_compiling" >&6; }
3779 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3780 ac_clean_files=$ac_clean_files_save
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3782 $as_echo_n "checking for suffix of object files... " >&6; }
3783 if ${ac_cv_objext+:} false; then :
3784 $as_echo_n "(cached) " >&6
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3797 rm -f conftest.o conftest.obj
3798 if { { ac_try="$ac_compile"
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804 $as_echo "$ac_try_echo"; } >&5
3805 (eval "$ac_compile") 2>&5
3807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808 test $ac_status = 0; }; then :
3809 for ac_file in conftest.o conftest.obj conftest.*; do
3810 test -f "$ac_file" || continue;
3812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3813 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3818 $as_echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3823 as_fn_error $? "cannot compute suffix of object files: cannot compile
3824 See \`config.log' for more details" "$LINENO" 5; }
3826 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3829 $as_echo "$ac_cv_objext" >&6; }
3830 OBJEXT=$ac_cv_objext
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3833 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3834 if ${ac_cv_c_compiler_gnu+:} false; then :
3835 $as_echo_n "(cached) " >&6
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3851 if ac_fn_c_try_compile "$LINENO"; then :
3856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3861 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3862 if test $ac_compiler_gnu = yes; then
3867 ac_test_CFLAGS=${CFLAGS+set}
3868 ac_save_CFLAGS=$CFLAGS
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3870 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3871 if ${ac_cv_prog_cc_g+:} false; then :
3872 $as_echo_n "(cached) " >&6
3874 ac_save_c_werror_flag=$ac_c_werror_flag
3875 ac_c_werror_flag=yes
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3889 if ac_fn_c_try_compile "$LINENO"; then :
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3904 if ac_fn_c_try_compile "$LINENO"; then :
3907 ac_c_werror_flag=$ac_save_c_werror_flag
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3920 if ac_fn_c_try_compile "$LINENO"; then :
3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 ac_c_werror_flag=$ac_save_c_werror_flag
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3931 $as_echo "$ac_cv_prog_cc_g" >&6; }
3932 if test "$ac_test_CFLAGS" = set; then
3933 CFLAGS=$ac_save_CFLAGS
3934 elif test $ac_cv_prog_cc_g = yes; then
3935 if test "$GCC" = yes; then
3941 if test "$GCC" = yes; then
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3948 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3949 if ${ac_cv_prog_cc_c89+:} false; then :
3950 $as_echo_n "(cached) " >&6
3952 ac_cv_prog_cc_c89=no
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3958 #include <sys/types.h>
3959 #include <sys/stat.h>
3960 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3961 struct buf { int x; };
3962 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3963 static char *e (p, i)
3969 static char *f (char * (*g) (char **, int), char **p, ...)
3974 s = g (p, va_arg (v,int));
3979 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3980 function prototypes and stuff, but not '\xHH' hex character constants.
3981 These don't provoke an error unfortunately, instead are silently treated
3982 as 'x'. The following induces an error, until -std is added to get
3983 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3984 array size at least. It's necessary to write '\x00'==0 to get something
3985 that's true only with -std. */
3986 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3988 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3989 inside strings and character constants. */
3991 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3993 int test (int i, double x);
3994 struct s1 {int (*f) (int a);};
3995 struct s2 {int (*f) (double a);};
3996 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4002 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4007 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4008 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4010 CC="$ac_save_CC $ac_arg"
4011 if ac_fn_c_try_compile "$LINENO"; then :
4012 ac_cv_prog_cc_c89=$ac_arg
4014 rm -f core conftest.err conftest.$ac_objext
4015 test "x$ac_cv_prog_cc_c89" != "xno" && break
4017 rm -f conftest.$ac_ext
4022 case "x$ac_cv_prog_cc_c89" in
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4025 $as_echo "none needed" >&6; } ;;
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4028 $as_echo "unsupported" >&6; } ;;
4030 CC="$CC $ac_cv_prog_cc_c89"
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4032 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4034 if test "x$ac_cv_prog_cc_c89" != xno; then :
4039 ac_cpp='$CPP $CPPFLAGS'
4040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4044 depcc="$CC" am_compiler_list=
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4047 $as_echo_n "checking dependency style of $depcc... " >&6; }
4048 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4049 $as_echo_n "(cached) " >&6
4051 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4052 # We make a subdir and do the tests there. Otherwise we can end up
4053 # making bogus files that we don't know about and never remove. For
4054 # instance it was reported that on HP-UX the gcc test will end up
4055 # making a dummy file named `D' -- because `-MD' means `put the output
4058 # Copy depcomp to subdir because otherwise we won't find it if we're
4059 # using a relative directory.
4060 cp "$am_depcomp" conftest.dir
4062 # We will build objects and dependencies in a subdirectory because
4063 # it helps to detect inapplicable dependency modes. For instance
4064 # both Tru64's cc and ICC support -MD to output dependencies as a
4065 # side effect of compilation, but ICC will put the dependencies in
4066 # the current directory while Tru64 will put them in the object
4070 am_cv_CC_dependencies_compiler_type=none
4071 if test "$am_compiler_list" = ""; then
4072 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4075 case " $depcc " in #(
4076 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4079 for depmode in $am_compiler_list; do
4080 # Setup a source with many dependencies, because some compilers
4081 # like to wrap large dependency lists on column 80 (with \), and
4082 # we should not choose a depcomp mode which is confused by this.
4084 # We need to recreate these files for each test, as the compiler may
4085 # overwrite some of them when testing with obscure command lines.
4086 # This happens at least with the AIX C compiler.
4088 for i in 1 2 3 4 5 6; do
4089 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4090 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4091 # Solaris 8's {/usr,}/bin/sh.
4092 touch sub/conftst$i.h
4094 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4096 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4097 # mode. It turns out that the SunPro C++ compiler does not properly
4098 # handle `-M -o', and we need to detect this. Also, some Intel
4099 # versions had trouble with output in subdirs
4100 am__obj=sub/conftest.${OBJEXT-o}
4101 am__minus_obj="-o $am__obj"
4104 # This depmode causes a compiler race in universal mode.
4105 test "$am__universal" = false || continue
4108 # after this tag, mechanisms are not by side-effect, so they'll
4109 # only be used when explicitly requested
4110 if test "x$enable_dependency_tracking" = xyes; then
4116 msvisualcpp | msvcmsys)
4117 # This compiler won't grok `-c -o', but also, the minuso test has
4118 # not run yet. These depmodes are late enough in the game, and
4119 # so weak that their functioning should not be impacted.
4120 am__obj=conftest.${OBJEXT-o}
4125 if depmode=$depmode \
4126 source=sub/conftest.c object=$am__obj \
4127 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4128 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4129 >/dev/null 2>conftest.err &&
4130 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4131 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4132 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4133 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4134 # icc doesn't choke on unknown options, it will just issue warnings
4135 # or remarks (even with -Werror). So we grep stderr for any message
4136 # that says an option was ignored or not supported.
4137 # When given -MP, icc 7.0 and 7.1 complain thusly:
4138 # icc: Command line warning: ignoring option '-M'; no argument required
4139 # The diagnosis changed in icc 8.0:
4140 # icc: Command line remark: option '-MP' not supported
4141 if (grep 'ignoring option' conftest.err ||
4142 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4143 am_cv_CC_dependencies_compiler_type=$depmode
4152 am_cv_CC_dependencies_compiler_type=none
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4157 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4158 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4161 test "x$enable_dependency_tracking" != xno \
4162 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4164 am__fastdepCC_FALSE='#'
4166 am__fastdepCC_TRUE='#'
4167 am__fastdepCC_FALSE=
4173 ac_cpp='$CPP $CPPFLAGS'
4174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4178 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4179 # On Suns, sometimes $CPP names a directory.
4180 if test -n "$CPP" && test -d "$CPP"; then
4183 if test -z "$CPP"; then
4184 if ${ac_cv_prog_CPP+:} false; then :
4185 $as_echo_n "(cached) " >&6
4187 # Double quotes because CPP needs to be expanded
4188 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4191 for ac_c_preproc_warn_flag in '' yes
4193 # Use a header file that comes with gcc, so configuring glibc
4194 # with a fresh cross-compiler works.
4195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4196 # <limits.h> exists even on freestanding compilers.
4197 # On the NeXT, cc -E runs the code through the compiler's parser,
4198 # not just through cpp. "Syntax error" is here to catch this case.
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4202 # include <limits.h>
4204 # include <assert.h>
4208 if ac_fn_c_try_cpp "$LINENO"; then :
4211 # Broken: fails on valid input.
4214 rm -f conftest.err conftest.i conftest.$ac_ext
4216 # OK, works on sane cases. Now check whether nonexistent headers
4217 # can be detected and how.
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4220 #include <ac_nonexistent.h>
4222 if ac_fn_c_try_cpp "$LINENO"; then :
4223 # Broken: success on invalid input.
4226 # Passes both tests.
4230 rm -f conftest.err conftest.i conftest.$ac_ext
4233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4234 rm -f conftest.i conftest.err conftest.$ac_ext
4235 if $ac_preproc_ok; then :
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4248 $as_echo "$CPP" >&6; }
4250 for ac_c_preproc_warn_flag in '' yes
4252 # Use a header file that comes with gcc, so configuring glibc
4253 # with a fresh cross-compiler works.
4254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4255 # <limits.h> exists even on freestanding compilers.
4256 # On the NeXT, cc -E runs the code through the compiler's parser,
4257 # not just through cpp. "Syntax error" is here to catch this case.
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4261 # include <limits.h>
4263 # include <assert.h>
4267 if ac_fn_c_try_cpp "$LINENO"; then :
4270 # Broken: fails on valid input.
4273 rm -f conftest.err conftest.i conftest.$ac_ext
4275 # OK, works on sane cases. Now check whether nonexistent headers
4276 # can be detected and how.
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4279 #include <ac_nonexistent.h>
4281 if ac_fn_c_try_cpp "$LINENO"; then :
4282 # Broken: success on invalid input.
4285 # Passes both tests.
4289 rm -f conftest.err conftest.i conftest.$ac_ext
4292 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4293 rm -f conftest.i conftest.err conftest.$ac_ext
4294 if $ac_preproc_ok; then :
4297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4299 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4300 See \`config.log' for more details" "$LINENO" 5; }
4304 ac_cpp='$CPP $CPPFLAGS'
4305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4311 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4312 if ${ac_cv_path_GREP+:} false; then :
4313 $as_echo_n "(cached) " >&6
4315 if test -z "$GREP"; then
4316 ac_path_GREP_found=false
4317 # Loop through the user's path and test for each of PROGNAME-LIST
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4322 test -z "$as_dir" && as_dir=.
4323 for ac_prog in grep ggrep; do
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4326 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4327 # Check for GNU ac_path_GREP and select it if it is found.
4328 # Check for GNU $ac_path_GREP
4329 case `"$ac_path_GREP" --version 2>&1` in
4331 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4334 $as_echo_n 0123456789 >"conftest.in"
4337 cat "conftest.in" "conftest.in" >"conftest.tmp"
4338 mv "conftest.tmp" "conftest.in"
4339 cp "conftest.in" "conftest.nl"
4340 $as_echo 'GREP' >> "conftest.nl"
4341 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4342 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4343 as_fn_arith $ac_count + 1 && ac_count=$as_val
4344 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4345 # Best one so far, save it but keep looking for a better one
4346 ac_cv_path_GREP="$ac_path_GREP"
4347 ac_path_GREP_max=$ac_count
4349 # 10*(2^10) chars as input seems more than enough
4350 test $ac_count -gt 10 && break
4352 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4355 $ac_path_GREP_found && break 3
4360 if test -z "$ac_cv_path_GREP"; then
4361 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4364 ac_cv_path_GREP=$GREP
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4369 $as_echo "$ac_cv_path_GREP" >&6; }
4370 GREP="$ac_cv_path_GREP"
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4374 $as_echo_n "checking for egrep... " >&6; }
4375 if ${ac_cv_path_EGREP+:} false; then :
4376 $as_echo_n "(cached) " >&6
4378 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4379 then ac_cv_path_EGREP="$GREP -E"
4381 if test -z "$EGREP"; then
4382 ac_path_EGREP_found=false
4383 # Loop through the user's path and test for each of PROGNAME-LIST
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4388 test -z "$as_dir" && as_dir=.
4389 for ac_prog in egrep; do
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4392 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4393 # Check for GNU ac_path_EGREP and select it if it is found.
4394 # Check for GNU $ac_path_EGREP
4395 case `"$ac_path_EGREP" --version 2>&1` in
4397 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4400 $as_echo_n 0123456789 >"conftest.in"
4403 cat "conftest.in" "conftest.in" >"conftest.tmp"
4404 mv "conftest.tmp" "conftest.in"
4405 cp "conftest.in" "conftest.nl"
4406 $as_echo 'EGREP' >> "conftest.nl"
4407 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4408 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4409 as_fn_arith $ac_count + 1 && ac_count=$as_val
4410 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4411 # Best one so far, save it but keep looking for a better one
4412 ac_cv_path_EGREP="$ac_path_EGREP"
4413 ac_path_EGREP_max=$ac_count
4415 # 10*(2^10) chars as input seems more than enough
4416 test $ac_count -gt 10 && break
4418 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4421 $ac_path_EGREP_found && break 3
4426 if test -z "$ac_cv_path_EGREP"; then
4427 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4430 ac_cv_path_EGREP=$EGREP
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4436 $as_echo "$ac_cv_path_EGREP" >&6; }
4437 EGREP="$ac_cv_path_EGREP"
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4441 $as_echo_n "checking for ANSI C header files... " >&6; }
4442 if ${ac_cv_header_stdc+:} false; then :
4443 $as_echo_n "(cached) " >&6
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4460 if ac_fn_c_try_compile "$LINENO"; then :
4461 ac_cv_header_stdc=yes
4463 ac_cv_header_stdc=no
4465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 if test $ac_cv_header_stdc = yes; then
4468 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h. */
4474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4475 $EGREP "memchr" >/dev/null 2>&1; then :
4478 ac_cv_header_stdc=no
4484 if test $ac_cv_header_stdc = yes; then
4485 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4492 $EGREP "free" >/dev/null 2>&1; then :
4495 ac_cv_header_stdc=no
4501 if test $ac_cv_header_stdc = yes; then
4502 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4503 if test "$cross_compiling" = yes; then :
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4510 #if ((' ' & 0x0FF) == 0x020)
4511 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4512 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4514 # define ISLOWER(c) \
4515 (('a' <= (c) && (c) <= 'i') \
4516 || ('j' <= (c) && (c) <= 'r') \
4517 || ('s' <= (c) && (c) <= 'z'))
4518 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4521 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4526 for (i = 0; i < 256; i++)
4527 if (XOR (islower (i), ISLOWER (i))
4528 || toupper (i) != TOUPPER (i))
4533 if ac_fn_c_try_run "$LINENO"; then :
4536 ac_cv_header_stdc=no
4538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4539 conftest.$ac_objext conftest.beam conftest.$ac_ext
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4545 $as_echo "$ac_cv_header_stdc" >&6; }
4546 if test $ac_cv_header_stdc = yes; then
4548 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4552 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4553 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4554 inttypes.h stdint.h unistd.h
4556 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4557 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4559 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4560 cat >>confdefs.h <<_ACEOF
4561 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4572 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4573 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4580 if test "$MINIX" = yes; then
4582 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4585 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4588 $as_echo "#define _MINIX 1" >>confdefs.h
4595 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4602 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4603 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4604 $as_echo_n "(cached) " >&6
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4609 # define __EXTENSIONS__ 1
4610 $ac_includes_default
4619 if ac_fn_c_try_compile "$LINENO"; then :
4620 ac_cv_safe_to_define___extensions__=yes
4622 ac_cv_safe_to_define___extensions__=no
4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4627 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4628 test $ac_cv_safe_to_define___extensions__ = yes &&
4629 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4631 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4633 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4635 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4637 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4648 # CFLAGS="$CFLAGS -D_OSF_SOURCE"
4652 if test "x$CC" != xcc; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4654 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4657 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4659 set dummy $CC; ac_cc=`$as_echo "$2" |
4660 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4661 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4662 $as_echo_n "(cached) " >&6
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4675 # Make sure it works both with $CC and with simple cc.
4676 # We do the test twice because some compilers refuse to overwrite an
4677 # existing .o file with -o, though they will create one.
4678 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4680 if { { case "(($ac_try" in
4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682 *) ac_try_echo=$ac_try;;
4684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4685 $as_echo "$ac_try_echo"; } >&5
4686 (eval "$ac_try") 2>&5
4688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4689 test $ac_status = 0; } &&
4690 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692 *) ac_try_echo=$ac_try;;
4694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4695 $as_echo "$ac_try_echo"; } >&5
4696 (eval "$ac_try") 2>&5
4698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4699 test $ac_status = 0; };
4701 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4702 if test "x$CC" != xcc; then
4703 # Test first that cc exists at all.
4704 if { ac_try='cc -c conftest.$ac_ext >&5'
4705 { { case "(($ac_try" in
4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4710 $as_echo "$ac_try_echo"; } >&5
4711 (eval "$ac_try") 2>&5
4713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4714 test $ac_status = 0; }; }; then
4715 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4717 if { { case "(($ac_try" in
4718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719 *) ac_try_echo=$ac_try;;
4721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4722 $as_echo "$ac_try_echo"; } >&5
4723 (eval "$ac_try") 2>&5
4725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4726 test $ac_status = 0; } &&
4727 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4732 $as_echo "$ac_try_echo"; } >&5
4733 (eval "$ac_try") 2>&5
4735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4736 test $ac_status = 0; };
4741 # cc exists but doesn't like -o.
4742 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4747 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4749 rm -f core conftest*
4752 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4754 $as_echo "yes" >&6; }
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4759 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4763 # FIXME: we rely on the cache variable name because
4764 # there is no other way.
4766 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4767 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4768 if test "$am_t" != yes; then
4769 # Losing compiler, so override with the script.
4770 # FIXME: It is wrong to rewrite CC.
4771 # But if we don't then we get into trouble of one sort or another.
4772 # A longer-term fix would be to have automake use am__CC in this case,
4773 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4774 CC="$am_aux_dir/compile $CC"
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4780 $as_echo_n "checking whether ln -s works... " >&6; }
4782 if test "$LN_S" = "ln -s"; then
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4784 $as_echo "yes" >&6; }
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4787 $as_echo "no, using $LN_S" >&6; }
4790 # AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
4792 # AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4795 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4796 if ${ac_cv_path_SED+:} false; then :
4797 $as_echo_n "(cached) " >&6
4799 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4800 for ac_i in 1 2 3 4 5 6 7; do
4801 ac_script="$ac_script$as_nl$ac_script"
4803 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4804 { ac_script=; unset ac_script;}
4805 if test -z "$SED"; then
4806 ac_path_SED_found=false
4807 # Loop through the user's path and test for each of PROGNAME-LIST
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 test -z "$as_dir" && as_dir=.
4813 for ac_prog in sed gsed; do
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4816 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4817 # Check for GNU ac_path_SED and select it if it is found.
4818 # Check for GNU $ac_path_SED
4819 case `"$ac_path_SED" --version 2>&1` in
4821 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4824 $as_echo_n 0123456789 >"conftest.in"
4827 cat "conftest.in" "conftest.in" >"conftest.tmp"
4828 mv "conftest.tmp" "conftest.in"
4829 cp "conftest.in" "conftest.nl"
4830 $as_echo '' >> "conftest.nl"
4831 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4832 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4833 as_fn_arith $ac_count + 1 && ac_count=$as_val
4834 if test $ac_count -gt ${ac_path_SED_max-0}; then
4835 # Best one so far, save it but keep looking for a better one
4836 ac_cv_path_SED="$ac_path_SED"
4837 ac_path_SED_max=$ac_count
4839 # 10*(2^10) chars as input seems more than enough
4840 test $ac_count -gt 10 && break
4842 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4845 $ac_path_SED_found && break 3
4850 if test -z "$ac_cv_path_SED"; then
4851 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4859 $as_echo "$ac_cv_path_SED" >&6; }
4860 SED="$ac_cv_path_SED"
4864 if test $ac_cv_c_compiler_gnu = yes; then
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4866 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4867 if ${ac_cv_prog_gcc_traditional+:} false; then :
4868 $as_echo_n "(cached) " >&6
4870 ac_pattern="Autoconf.*'x'"
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4877 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4878 ac_cv_prog_gcc_traditional=yes
4880 ac_cv_prog_gcc_traditional=no
4885 if test $ac_cv_prog_gcc_traditional = no; then
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4892 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4893 ac_cv_prog_gcc_traditional=yes
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4900 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4901 if test $ac_cv_prog_gcc_traditional = yes; then
4902 CC="$CC -traditional"
4907 # We need to test for at least gcc 2.95 here, because older versions don't
4908 # have -fno-strict-aliasing
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4916 #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
4923 if ac_fn_c_try_compile "$LINENO"; then :
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930 if test "$GCC" = "yes" ; then
4931 # Enable many gcc warnings by default...
4932 CFLAGS="$CFLAGS -Wall"
4933 # And disable the strict-aliasing optimization, since it breaks
4934 # our sockaddr-handling code in strange ways.
4935 if test x$have_gcc295 = xyes; then
4936 CFLAGS="$CFLAGS -fno-strict-aliasing"
4940 # OS X Lion started deprecating the system openssl. Let's just disable
4941 # all deprecation warnings on OS X.
4945 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
4949 # Check whether --enable-gcc-warnings was given.
4950 if test "${enable_gcc_warnings+set}" = set; then :
4951 enableval=$enable_gcc_warnings;
4955 # Check whether --enable-gcc-hardening was given.
4956 if test "${enable_gcc_hardening+set}" = set; then :
4957 enableval=$enable_gcc_hardening; if test x$enableval = xyes; then
4958 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
4959 CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector"
4960 CFLAGS="$CFLAGS --param ssp-buffer-size=1"
4965 # Check whether --enable-thread-support was given.
4966 if test "${enable_thread_support+set}" = set; then :
4967 enableval=$enable_thread_support;
4969 enable_thread_support=yes
4972 # Check whether --enable-malloc-replacement was given.
4973 if test "${enable_malloc_replacement+set}" = set; then :
4974 enableval=$enable_malloc_replacement;
4976 enable_malloc_replacement=yes
4979 # Check whether --enable-openssl was given.
4980 if test "${enable_openssl+set}" = set; then :
4981 enableval=$enable_openssl;
4986 # Check whether --enable-debug-mode was given.
4987 if test "${enable_debug_mode+set}" = set; then :
4988 enableval=$enable_debug_mode;
4990 enable_debug_mode=yes
4993 # Check whether --enable-libevent-install was given.
4994 if test "${enable_libevent_install+set}" = set; then :
4995 enableval=$enable_libevent_install;
4997 enable_libevent_install=yes
5000 # Check whether --enable-libevent-regress was given.
5001 if test "${enable_libevent_regress+set}" = set; then :
5002 enableval=$enable_libevent_regress;
5004 enable_libevent_regress=yes
5007 # Check whether --enable-function-sections was given.
5008 if test "${enable_function_sections+set}" = set; then :
5009 enableval=$enable_function_sections;
5011 enable_function_sections=no
5014 # Check whether --enable-verbose-debug was given.
5015 if test "${enable_verbose_debug+set}" = set; then :
5016 enableval=$enable_verbose_debug;
5018 enable_verbose_debug=no
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5026 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5032 macro_revision='1.3293'
5046 ltmain="$ac_aux_dir/ltmain.sh"
5048 # Backslashify metacharacters that are still active within
5049 # double-quoted strings.
5050 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5052 # Same as above, but do not quote variable references.
5053 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5055 # Sed substitution to delay expansion of an escaped shell variable in a
5056 # double_quote_subst'ed string.
5057 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5059 # Sed substitution to delay expansion of an escaped single quote.
5060 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5062 # Sed substitution to avoid accidental globbing in evaled expressions
5063 no_glob_subst='s/\*/\\\*/g'
5065 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5066 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5067 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5070 $as_echo_n "checking how to print strings... " >&6; }
5071 # Test print first, because it will be a builtin if present.
5072 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5073 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5075 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5078 # Use this function as a fallback that always works.
5079 func_fallback_echo ()
5081 eval 'cat <<_LTECHO_EOF
5085 ECHO='func_fallback_echo'
5088 # func_echo_all arg...
5089 # Invoke $ECHO with all args, space-separated.
5096 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5097 $as_echo "printf" >&6; } ;;
5098 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5099 $as_echo "print -r" >&6; } ;;
5100 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5101 $as_echo "cat" >&6; } ;;
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5118 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5119 if ${ac_cv_path_SED+:} false; then :
5120 $as_echo_n "(cached) " >&6
5122 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5123 for ac_i in 1 2 3 4 5 6 7; do
5124 ac_script="$ac_script$as_nl$ac_script"
5126 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5127 { ac_script=; unset ac_script;}
5128 if test -z "$SED"; then
5129 ac_path_SED_found=false
5130 # Loop through the user's path and test for each of PROGNAME-LIST
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 test -z "$as_dir" && as_dir=.
5136 for ac_prog in sed gsed; do
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5139 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5140 # Check for GNU ac_path_SED and select it if it is found.
5141 # Check for GNU $ac_path_SED
5142 case `"$ac_path_SED" --version 2>&1` in
5144 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5147 $as_echo_n 0123456789 >"conftest.in"
5150 cat "conftest.in" "conftest.in" >"conftest.tmp"
5151 mv "conftest.tmp" "conftest.in"
5152 cp "conftest.in" "conftest.nl"
5153 $as_echo '' >> "conftest.nl"
5154 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5155 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5156 as_fn_arith $ac_count + 1 && ac_count=$as_val
5157 if test $ac_count -gt ${ac_path_SED_max-0}; then
5158 # Best one so far, save it but keep looking for a better one
5159 ac_cv_path_SED="$ac_path_SED"
5160 ac_path_SED_max=$ac_count
5162 # 10*(2^10) chars as input seems more than enough
5163 test $ac_count -gt 10 && break
5165 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5168 $ac_path_SED_found && break 3
5173 if test -z "$ac_cv_path_SED"; then
5174 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5182 $as_echo "$ac_cv_path_SED" >&6; }
5183 SED="$ac_cv_path_SED"
5186 test -z "$SED" && SED=sed
5187 Xsed="$SED -e 1s/^X//"
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5200 $as_echo_n "checking for fgrep... " >&6; }
5201 if ${ac_cv_path_FGREP+:} false; then :
5202 $as_echo_n "(cached) " >&6
5204 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5205 then ac_cv_path_FGREP="$GREP -F"
5207 if test -z "$FGREP"; then
5208 ac_path_FGREP_found=false
5209 # Loop through the user's path and test for each of PROGNAME-LIST
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5214 test -z "$as_dir" && as_dir=.
5215 for ac_prog in fgrep; do
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5218 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5219 # Check for GNU ac_path_FGREP and select it if it is found.
5220 # Check for GNU $ac_path_FGREP
5221 case `"$ac_path_FGREP" --version 2>&1` in
5223 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5226 $as_echo_n 0123456789 >"conftest.in"
5229 cat "conftest.in" "conftest.in" >"conftest.tmp"
5230 mv "conftest.tmp" "conftest.in"
5231 cp "conftest.in" "conftest.nl"
5232 $as_echo 'FGREP' >> "conftest.nl"
5233 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5235 as_fn_arith $ac_count + 1 && ac_count=$as_val
5236 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5237 # Best one so far, save it but keep looking for a better one
5238 ac_cv_path_FGREP="$ac_path_FGREP"
5239 ac_path_FGREP_max=$ac_count
5241 # 10*(2^10) chars as input seems more than enough
5242 test $ac_count -gt 10 && break
5244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5247 $ac_path_FGREP_found && break 3
5252 if test -z "$ac_cv_path_FGREP"; then
5253 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5256 ac_cv_path_FGREP=$FGREP
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5262 $as_echo "$ac_cv_path_FGREP" >&6; }
5263 FGREP="$ac_cv_path_FGREP"
5266 test -z "$GREP" && GREP=grep
5286 # Check whether --with-gnu-ld was given.
5287 if test "${with_gnu_ld+set}" = set; then :
5288 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5294 if test "$GCC" = yes; then
5295 # Check if gcc -print-prog-name=ld gives a path.
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5297 $as_echo_n "checking for ld used by $CC... " >&6; }
5300 # gcc leaves a trailing carriage return which upsets mingw
5301 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5303 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5306 # Accept absolute paths.
5308 re_direlt='/[^/][^/]*/\.\./'
5309 # Canonicalize the pathname of ld
5310 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5311 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5312 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5314 test -z "$LD" && LD="$ac_prog"
5317 # If it fails, then pretend we aren't using GCC.
5321 # If it is relative, then search for the first ld in PATH.
5325 elif test "$with_gnu_ld" = yes; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5327 $as_echo_n "checking for GNU ld... " >&6; }
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5330 $as_echo_n "checking for non-GNU ld... " >&6; }
5332 if ${lt_cv_path_LD+:} false; then :
5333 $as_echo_n "(cached) " >&6
5335 if test -z "$LD"; then
5336 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5337 for ac_dir in $PATH; do
5339 test -z "$ac_dir" && ac_dir=.
5340 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5341 lt_cv_path_LD="$ac_dir/$ac_prog"
5342 # Check to see if the program is GNU ld. I'd rather use --version,
5343 # but apparently some variants of GNU ld only accept -v.
5344 # Break only if it was the GNU/non-GNU ld that we prefer.
5345 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5346 *GNU* | *'with BFD'*)
5347 test "$with_gnu_ld" != no && break
5350 test "$with_gnu_ld" != yes && break
5357 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5362 if test -n "$LD"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5364 $as_echo "$LD" >&6; }
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5369 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5371 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5372 if ${lt_cv_prog_gnu_ld+:} false; then :
5373 $as_echo_n "(cached) " >&6
5375 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5376 case `$LD -v 2>&1 </dev/null` in
5377 *GNU* | *'with BFD'*)
5378 lt_cv_prog_gnu_ld=yes
5381 lt_cv_prog_gnu_ld=no
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5386 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5387 with_gnu_ld=$lt_cv_prog_gnu_ld
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5398 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5399 if ${lt_cv_path_NM+:} false; then :
5400 $as_echo_n "(cached) " >&6
5402 if test -n "$NM"; then
5403 # Let the user override the test.
5406 lt_nm_to_check="${ac_tool_prefix}nm"
5407 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5408 lt_nm_to_check="$lt_nm_to_check nm"
5410 for lt_tmp_nm in $lt_nm_to_check; do
5411 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5412 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5414 test -z "$ac_dir" && ac_dir=.
5415 tmp_nm="$ac_dir/$lt_tmp_nm"
5416 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5417 # Check to see if the nm accepts a BSD-compat flag.
5418 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5419 # nm: unknown option "B" ignored
5420 # Tru64's nm complains that /dev/null is an invalid object file
5421 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5422 */dev/null* | *'Invalid file or object type'*)
5423 lt_cv_path_NM="$tmp_nm -B"
5427 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5429 lt_cv_path_NM="$tmp_nm -p"
5433 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5434 continue # so that we can try to find one that supports BSD flags
5443 : ${lt_cv_path_NM=no}
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5447 $as_echo "$lt_cv_path_NM" >&6; }
5448 if test "$lt_cv_path_NM" != "no"; then
5451 # Didn't find any BSD compatible name lister, look for dumpbin.
5452 if test -n "$DUMPBIN"; then :
5453 # Let the user override the test.
5455 if test -n "$ac_tool_prefix"; then
5456 for ac_prog in dumpbin "link -dump"
5458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5461 $as_echo_n "checking for $ac_word... " >&6; }
5462 if ${ac_cv_prog_DUMPBIN+:} false; then :
5463 $as_echo_n "(cached) " >&6
5465 if test -n "$DUMPBIN"; then
5466 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 test -z "$as_dir" && as_dir=.
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5475 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5485 DUMPBIN=$ac_cv_prog_DUMPBIN
5486 if test -n "$DUMPBIN"; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5488 $as_echo "$DUMPBIN" >&6; }
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491 $as_echo "no" >&6; }
5495 test -n "$DUMPBIN" && break
5498 if test -z "$DUMPBIN"; then
5499 ac_ct_DUMPBIN=$DUMPBIN
5500 for ac_prog in dumpbin "link -dump"
5502 # Extract the first word of "$ac_prog", so it can be a program name with args.
5503 set dummy $ac_prog; ac_word=$2
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505 $as_echo_n "checking for $ac_word... " >&6; }
5506 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5507 $as_echo_n "(cached) " >&6
5509 if test -n "$ac_ct_DUMPBIN"; then
5510 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5519 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5530 if test -n "$ac_ct_DUMPBIN"; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5532 $as_echo "$ac_ct_DUMPBIN" >&6; }
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 $as_echo "no" >&6; }
5539 test -n "$ac_ct_DUMPBIN" && break
5542 if test "x$ac_ct_DUMPBIN" = x; then
5545 case $cross_compiling:$ac_tool_warned in
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5549 ac_tool_warned=yes ;;
5551 DUMPBIN=$ac_ct_DUMPBIN
5555 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5557 DUMPBIN="$DUMPBIN -symbols"
5565 if test "$DUMPBIN" != ":"; then
5569 test -z "$NM" && NM=nm
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5577 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5578 if ${lt_cv_nm_interface+:} false; then :
5579 $as_echo_n "(cached) " >&6
5581 lt_cv_nm_interface="BSD nm"
5582 echo "int some_variable = 0;" > conftest.$ac_ext
5583 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5584 (eval "$ac_compile" 2>conftest.err)
5585 cat conftest.err >&5
5586 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5587 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5588 cat conftest.err >&5
5589 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5590 cat conftest.out >&5
5591 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5592 lt_cv_nm_interface="MS dumpbin"
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5597 $as_echo "$lt_cv_nm_interface" >&6; }
5599 # find the maximum length of command line arguments
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5601 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5602 if ${lt_cv_sys_max_cmd_len+:} false; then :
5603 $as_echo_n "(cached) " >&6
5610 # On DJGPP, this test can blow up pretty badly due to problems in libc
5611 # (any single argument exceeding 2000 bytes causes a buffer overrun
5612 # during glob expansion). Even if it were fixed, the result of this
5613 # check would be larger than it should be.
5614 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5618 # Under GNU Hurd, this test is not required because there is
5619 # no limit to the length of command line arguments.
5620 # Libtool will interpret -1 as no limit whatsoever
5621 lt_cv_sys_max_cmd_len=-1;
5624 cygwin* | mingw* | cegcc*)
5625 # On Win9x/ME, this test blows up -- it succeeds, but takes
5626 # about 5 minutes as the teststring grows exponentially.
5627 # Worse, since 9x/ME are not pre-emptively multitasking,
5628 # you end up with a "frozen" computer, even though with patience
5629 # the test eventually succeeds (with a max line length of 256k).
5630 # Instead, let's just punt: use the minimum linelength reported by
5631 # all of the supported platforms: 8192 (on NT/2K/XP).
5632 lt_cv_sys_max_cmd_len=8192;
5636 # On MiNT this can take a long time and run out of memory.
5637 lt_cv_sys_max_cmd_len=8192;
5641 # On AmigaOS with pdksh, this test takes hours, literally.
5642 # So we just punt and use a minimum line length of 8192.
5643 lt_cv_sys_max_cmd_len=8192;
5646 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5647 # This has been around since 386BSD, at least. Likely further.
5648 if test -x /sbin/sysctl; then
5649 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5650 elif test -x /usr/sbin/sysctl; then
5651 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5653 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5655 # And add a safety zone
5656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5661 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5662 lt_cv_sys_max_cmd_len=196608
5666 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5667 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5668 # nice to cause kernel panics so lets avoid the loop below.
5669 # First set a reasonable default.
5670 lt_cv_sys_max_cmd_len=16384
5672 if test -x /sbin/sysconfig; then
5673 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5674 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5679 lt_cv_sys_max_cmd_len=102400
5681 sysv5* | sco5v6* | sysv4.2uw2*)
5682 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5683 if test -n "$kargmax"; then
5684 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5686 lt_cv_sys_max_cmd_len=32768
5690 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5691 if test -n "$lt_cv_sys_max_cmd_len"; then
5692 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5695 # Make teststring a little bigger before we do anything with it.
5696 # a 1K string should be a reasonable start.
5697 for i in 1 2 3 4 5 6 7 8 ; do
5698 teststring=$teststring$teststring
5700 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5701 # If test is not a shell built-in, we'll probably end up computing a
5702 # maximum length that is only half of the actual maximum length, but
5704 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5705 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5706 test $i != 17 # 1/2 MB should be enough
5709 teststring=$teststring$teststring
5711 # Only check the string length outside the loop.
5712 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5714 # Add a significant safety factor because C++ compilers can tack on
5715 # massive amounts of additional arguments before passing them to the
5716 # linker. It appears as though 1/2 is a usable value.
5717 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5724 if test -n $lt_cv_sys_max_cmd_len ; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5726 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5729 $as_echo "none" >&6; }
5731 max_cmd_len=$lt_cv_sys_max_cmd_len
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5743 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5744 # Try some XSI features
5747 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5749 && eval 'test $(( 1 + 1 )) -eq 2 \
5750 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5753 $as_echo "$xsi_shell" >&6; }
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5757 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5759 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5761 && lt_shell_append=yes
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5763 $as_echo "$lt_shell_append" >&6; }
5766 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5776 # test EBCDIC or ASCII
5777 case `echo X|tr X '\101'` in
5778 A) # ASCII based system
5779 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5780 lt_SP2NL='tr \040 \012'
5781 lt_NL2SP='tr \015\012 \040\040'
5783 *) # EBCDIC based system
5784 lt_SP2NL='tr \100 \n'
5785 lt_NL2SP='tr \r\n \100\100'
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5798 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5799 if ${lt_cv_to_host_file_cmd+:} false; then :
5800 $as_echo_n "(cached) " >&6
5805 *-*-mingw* ) # actually msys
5806 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5809 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5811 * ) # otherwise, assume *nix
5812 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5818 *-*-mingw* ) # actually msys
5819 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5822 lt_cv_to_host_file_cmd=func_convert_file_noop
5824 * ) # otherwise, assume *nix
5825 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5829 * ) # unhandled hosts (and "normal" native builds)
5830 lt_cv_to_host_file_cmd=func_convert_file_noop
5836 to_host_file_cmd=$lt_cv_to_host_file_cmd
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5838 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5845 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5846 if ${lt_cv_to_tool_file_cmd+:} false; then :
5847 $as_echo_n "(cached) " >&6
5849 #assume ordinary cross tools, or native build.
5850 lt_cv_to_tool_file_cmd=func_convert_file_noop
5854 *-*-mingw* ) # actually msys
5855 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5863 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5865 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5872 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5873 if ${lt_cv_ld_reload_flag+:} false; then :
5874 $as_echo_n "(cached) " >&6
5876 lt_cv_ld_reload_flag='-r'
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5879 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5880 reload_flag=$lt_cv_ld_reload_flag
5881 case $reload_flag in
5883 *) reload_flag=" $reload_flag" ;;
5885 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5887 cygwin* | mingw* | pw32* | cegcc*)
5888 if test "$GCC" != yes; then
5893 if test "$GCC" = yes; then
5894 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5896 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5909 if test -n "$ac_tool_prefix"; then
5910 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5911 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913 $as_echo_n "checking for $ac_word... " >&6; }
5914 if ${ac_cv_prog_OBJDUMP+:} false; then :
5915 $as_echo_n "(cached) " >&6
5917 if test -n "$OBJDUMP"; then
5918 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 OBJDUMP=$ac_cv_prog_OBJDUMP
5938 if test -n "$OBJDUMP"; then
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5940 $as_echo "$OBJDUMP" >&6; }
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943 $as_echo "no" >&6; }
5948 if test -z "$ac_cv_prog_OBJDUMP"; then
5949 ac_ct_OBJDUMP=$OBJDUMP
5950 # Extract the first word of "objdump", so it can be a program name with args.
5951 set dummy objdump; ac_word=$2
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953 $as_echo_n "checking for $ac_word... " >&6; }
5954 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5955 $as_echo_n "(cached) " >&6
5957 if test -n "$ac_ct_OBJDUMP"; then
5958 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5978 if test -n "$ac_ct_OBJDUMP"; then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5980 $as_echo "$ac_ct_OBJDUMP" >&6; }
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 $as_echo "no" >&6; }
5986 if test "x$ac_ct_OBJDUMP" = x; then
5989 case $cross_compiling:$ac_tool_warned in
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5993 ac_tool_warned=yes ;;
5995 OBJDUMP=$ac_ct_OBJDUMP
5998 OBJDUMP="$ac_cv_prog_OBJDUMP"
6001 test -z "$OBJDUMP" && OBJDUMP=objdump
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6012 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6013 if ${lt_cv_deplibs_check_method+:} false; then :
6014 $as_echo_n "(cached) " >&6
6016 lt_cv_file_magic_cmd='$MAGIC_CMD'
6017 lt_cv_file_magic_test_file=
6018 lt_cv_deplibs_check_method='unknown'
6019 # Need to set the preceding variable on all platforms that support
6020 # interlibrary dependencies.
6021 # 'none' -- dependencies not supported.
6022 # `unknown' -- same as none, but documents that we really don't know.
6023 # 'pass_all' -- all dependencies passed with no checks.
6024 # 'test_compile' -- check by making test program.
6025 # 'file_magic [[regex]]' -- check by looking for files in library path
6026 # which responds to the $file_magic_cmd with a given extended regex.
6027 # If you have `file' or equivalent on your system and you're not sure
6028 # whether `pass_all' will *always* work, you probably want this one.
6032 lt_cv_deplibs_check_method=pass_all
6036 lt_cv_deplibs_check_method=pass_all
6040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6041 lt_cv_file_magic_cmd='/usr/bin/file -L'
6042 lt_cv_file_magic_test_file=/shlib/libc.so
6046 # func_win32_libid is a shell function defined in ltmain.sh
6047 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6048 lt_cv_file_magic_cmd='func_win32_libid'
6052 # Base MSYS/MinGW do not provide the 'file' command needed by
6053 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6054 # unless we find 'file', for example because we are cross-compiling.
6055 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6056 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6057 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6058 lt_cv_file_magic_cmd='func_win32_libid'
6060 # Keep this pattern in sync with the one in func_win32_libid.
6061 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6062 lt_cv_file_magic_cmd='$OBJDUMP -f'
6067 # use the weaker test based on 'objdump'. See mingw*.
6068 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6069 lt_cv_file_magic_cmd='$OBJDUMP -f'
6072 darwin* | rhapsody*)
6073 lt_cv_deplibs_check_method=pass_all
6076 freebsd* | dragonfly*)
6077 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6080 # Not sure whether the presence of OpenBSD here was a mistake.
6081 # Let's accept both of them until this is cleared up.
6082 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6083 lt_cv_file_magic_cmd=/usr/bin/file
6084 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6088 lt_cv_deplibs_check_method=pass_all
6093 lt_cv_deplibs_check_method=pass_all
6097 lt_cv_deplibs_check_method=pass_all
6100 hpux10.20* | hpux11*)
6101 lt_cv_file_magic_cmd=/usr/bin/file
6104 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6105 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6108 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]'
6109 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6112 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6113 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6119 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6123 irix5* | irix6* | nonstopux*)
6125 *-32|*"-32 ") libmagic=32-bit;;
6126 *-n32|*"-n32 ") libmagic=N32;;
6127 *-64|*"-64 ") libmagic=64-bit;;
6128 *) libmagic=never-match;;
6130 lt_cv_deplibs_check_method=pass_all
6133 # This must be Linux ELF.
6134 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6135 lt_cv_deplibs_check_method=pass_all
6139 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6140 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6142 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6147 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6148 lt_cv_file_magic_cmd=/usr/bin/file
6149 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6153 lt_cv_deplibs_check_method=pass_all
6157 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6158 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6160 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6164 osf3* | osf4* | osf5*)
6165 lt_cv_deplibs_check_method=pass_all
6169 lt_cv_deplibs_check_method=pass_all
6173 lt_cv_deplibs_check_method=pass_all
6176 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6177 lt_cv_deplibs_check_method=pass_all
6181 case $host_vendor in
6183 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]'
6184 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6187 lt_cv_deplibs_check_method=pass_all
6190 lt_cv_file_magic_cmd='/bin/file'
6191 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6194 lt_cv_file_magic_cmd='/bin/file'
6195 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6196 lt_cv_file_magic_test_file=/lib/libc.so
6199 lt_cv_deplibs_check_method=pass_all
6202 lt_cv_deplibs_check_method=pass_all
6208 lt_cv_deplibs_check_method=pass_all
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6214 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6218 if test "$build" = "$host"; then
6221 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6224 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6230 file_magic_cmd=$lt_cv_file_magic_cmd
6231 deplibs_check_method=$lt_cv_deplibs_check_method
6232 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6255 if test -n "$ac_tool_prefix"; then
6256 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6257 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if ${ac_cv_prog_DLLTOOL+:} false; then :
6261 $as_echo_n "(cached) " >&6
6263 if test -n "$DLLTOOL"; then
6264 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 DLLTOOL=$ac_cv_prog_DLLTOOL
6284 if test -n "$DLLTOOL"; then
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6286 $as_echo "$DLLTOOL" >&6; }
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 $as_echo "no" >&6; }
6294 if test -z "$ac_cv_prog_DLLTOOL"; then
6295 ac_ct_DLLTOOL=$DLLTOOL
6296 # Extract the first word of "dlltool", so it can be a program name with args.
6297 set dummy dlltool; ac_word=$2
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299 $as_echo_n "checking for $ac_word... " >&6; }
6300 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6301 $as_echo_n "(cached) " >&6
6303 if test -n "$ac_ct_DLLTOOL"; then
6304 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6313 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6324 if test -n "$ac_ct_DLLTOOL"; then
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6326 $as_echo "$ac_ct_DLLTOOL" >&6; }
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329 $as_echo "no" >&6; }
6332 if test "x$ac_ct_DLLTOOL" = x; then
6335 case $cross_compiling:$ac_tool_warned in
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6339 ac_tool_warned=yes ;;
6341 DLLTOOL=$ac_ct_DLLTOOL
6344 DLLTOOL="$ac_cv_prog_DLLTOOL"
6347 test -z "$DLLTOOL" && DLLTOOL=dlltool
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6359 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6360 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6361 $as_echo_n "(cached) " >&6
6363 lt_cv_sharedlib_from_linklib_cmd='unknown'
6366 cygwin* | mingw* | pw32* | cegcc*)
6367 # two different shell functions defined in ltmain.sh
6368 # decide which to use based on capabilities of $DLLTOOL
6369 case `$DLLTOOL --help 2>&1` in
6370 *--identify-strict*)
6371 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6374 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6379 # fallback: assume linklib IS sharedlib
6380 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6386 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6387 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6388 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6396 if test -n "$ac_tool_prefix"; then
6399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 $as_echo_n "checking for $ac_word... " >&6; }
6403 if ${ac_cv_prog_AR+:} false; then :
6404 $as_echo_n "(cached) " >&6
6406 if test -n "$AR"; then
6407 ac_cv_prog_AR="$AR" # Let the user override the test.
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6416 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 if test -n "$AR"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6429 $as_echo "$AR" >&6; }
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6436 test -n "$AR" && break
6439 if test -z "$AR"; then
6443 # Extract the first word of "$ac_prog", so it can be a program name with args.
6444 set dummy $ac_prog; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6448 $as_echo_n "(cached) " >&6
6450 if test -n "$ac_ct_AR"; then
6451 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_prog_ac_ct_AR="$ac_prog"
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6471 if test -n "$ac_ct_AR"; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6473 $as_echo "$ac_ct_AR" >&6; }
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6480 test -n "$ac_ct_AR" && break
6483 if test "x$ac_ct_AR" = x; then
6486 case $cross_compiling:$ac_tool_warned in
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6490 ac_tool_warned=yes ;;
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6510 $as_echo_n "checking for archiver @FILE support... " >&6; }
6511 if ${lt_cv_ar_at_file+:} false; then :
6512 $as_echo_n "(cached) " >&6
6515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516 /* end confdefs.h. */
6526 if ac_fn_c_try_compile "$LINENO"; then :
6527 echo conftest.$ac_objext > conftest.lst
6528 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6530 (eval $lt_ar_try) 2>&5
6532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6533 test $ac_status = 0; }
6534 if test "$ac_status" -eq 0; then
6535 # Ensure the archiver fails upon bogus file names.
6536 rm -f conftest.$ac_objext libconftest.a
6537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6538 (eval $lt_ar_try) 2>&5
6540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6541 test $ac_status = 0; }
6542 if test "$ac_status" -ne 0; then
6546 rm -f conftest.* libconftest.a
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6553 $as_echo "$lt_cv_ar_at_file" >&6; }
6555 if test "x$lt_cv_ar_at_file" = xno; then
6558 archiver_list_spec=$lt_cv_ar_at_file
6567 if test -n "$ac_tool_prefix"; then
6568 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6569 set dummy ${ac_tool_prefix}strip; ac_word=$2
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571 $as_echo_n "checking for $ac_word... " >&6; }
6572 if ${ac_cv_prog_STRIP+:} false; then :
6573 $as_echo_n "(cached) " >&6
6575 if test -n "$STRIP"; then
6576 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6585 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 STRIP=$ac_cv_prog_STRIP
6596 if test -n "$STRIP"; then
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6598 $as_echo "$STRIP" >&6; }
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601 $as_echo "no" >&6; }
6606 if test -z "$ac_cv_prog_STRIP"; then
6608 # Extract the first word of "strip", so it can be a program name with args.
6609 set dummy strip; ac_word=$2
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611 $as_echo_n "checking for $ac_word... " >&6; }
6612 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6613 $as_echo_n "(cached) " >&6
6615 if test -n "$ac_ct_STRIP"; then
6616 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625 ac_cv_prog_ac_ct_STRIP="strip"
6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6636 if test -n "$ac_ct_STRIP"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6638 $as_echo "$ac_ct_STRIP" >&6; }
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641 $as_echo "no" >&6; }
6644 if test "x$ac_ct_STRIP" = x; then
6647 case $cross_compiling:$ac_tool_warned in
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6651 ac_tool_warned=yes ;;
6656 STRIP="$ac_cv_prog_STRIP"
6659 test -z "$STRIP" && STRIP=:
6666 if test -n "$ac_tool_prefix"; then
6667 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6668 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if ${ac_cv_prog_RANLIB+:} false; then :
6672 $as_echo_n "(cached) " >&6
6674 if test -n "$RANLIB"; then
6675 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 RANLIB=$ac_cv_prog_RANLIB
6695 if test -n "$RANLIB"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6697 $as_echo "$RANLIB" >&6; }
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6705 if test -z "$ac_cv_prog_RANLIB"; then
6706 ac_ct_RANLIB=$RANLIB
6707 # Extract the first word of "ranlib", so it can be a program name with args.
6708 set dummy ranlib; ac_word=$2
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710 $as_echo_n "checking for $ac_word... " >&6; }
6711 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6712 $as_echo_n "(cached) " >&6
6714 if test -n "$ac_ct_RANLIB"; then
6715 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6724 ac_cv_prog_ac_ct_RANLIB="ranlib"
6725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6735 if test -n "$ac_ct_RANLIB"; then
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6737 $as_echo "$ac_ct_RANLIB" >&6; }
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 $as_echo "no" >&6; }
6743 if test "x$ac_ct_RANLIB" = x; then
6746 case $cross_compiling:$ac_tool_warned in
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6750 ac_tool_warned=yes ;;
6752 RANLIB=$ac_ct_RANLIB
6755 RANLIB="$ac_cv_prog_RANLIB"
6758 test -z "$RANLIB" && RANLIB=:
6765 # Determine commands to create old-style static archives.
6766 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6767 old_postinstall_cmds='chmod 644 $oldlib'
6768 old_postuninstall_cmds=
6770 if test -n "$RANLIB"; then
6773 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6776 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6779 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6784 lock_old_archive_extraction=yes ;;
6786 lock_old_archive_extraction=no ;;
6827 # If no C compiler was specified, use CC.
6830 # If no C compiler flags were specified, use CFLAGS.
6831 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6833 # Allow CC to be a program name with arguments.
6837 # Check for command to grab the raw symbol name followed by C symbol from nm.
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6839 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6840 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6841 $as_echo_n "(cached) " >&6
6844 # These are sane defaults that work on at least a few old systems.
6845 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6847 # Character class describing NM global symbol codes.
6848 symcode='[BCDEGRST]'
6850 # Regexp to match symbols that can be accessed directly from C.
6851 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6853 # Define system-specific variables.
6858 cygwin* | mingw* | pw32* | cegcc*)
6859 symcode='[ABCDGISTW]'
6862 if test "$host_cpu" = ia64; then
6863 symcode='[ABCDEGRST]'
6867 symcode='[BCDEGRST]'
6870 symcode='[BCDEGQRST]'
6881 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6889 # If we're using GNU nm, then use its standard symbol codes.
6890 case `$NM -V 2>&1` in
6891 *GNU* | *'with BFD'*)
6892 symcode='[ABCDGIRSTW]' ;;
6895 # Transform an extracted symbol line into a proper C declaration.
6896 # Some systems (esp. on ia64) link data and code symbols differently,
6897 # so use this general approach.
6898 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6900 # Transform an extracted symbol line into symbol name and symbol address
6901 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6902 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'"
6904 # Handle CRLF in mingw tool chain
6908 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6912 # Try without a prefix underscore, then with it.
6913 for ac_symprfx in "" "_"; do
6915 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6916 symxfrm="\\1 $ac_symprfx\\2 \\2"
6918 # Write the raw and C identifiers.
6919 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6920 # Fake it for dumpbin and say T for any non-static function
6921 # and D for any global variable.
6922 # Also find C++ and __fastcall symbols from MSVC++,
6923 # which start with @ or ?.
6924 lt_cv_sys_global_symbol_pipe="$AWK '"\
6925 " {last_section=section; section=\$ 3};"\
6926 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6927 " \$ 0!~/External *\|/{next};"\
6928 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6929 " {if(hide[section]) next};"\
6930 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6931 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6932 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6933 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6934 " ' prfx=^$ac_symprfx"
6936 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6938 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6940 # Check to see that the pipe works correctly.
6944 cat > conftest.$ac_ext <<_LT_EOF
6949 void nm_test_func(void);
6950 void nm_test_func(void){}
6954 int main(){nm_test_var='a';nm_test_func();return(0);}
6957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6958 (eval $ac_compile) 2>&5
6960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6961 test $ac_status = 0; }; then
6962 # Now try to grab the symbols.
6964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6965 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6968 test $ac_status = 0; } && test -s "$nlist"; then
6969 # Try sorting and uniquifying the output.
6970 if sort "$nlist" | uniq > "$nlist"T; then
6971 mv -f "$nlist"T "$nlist"
6976 # Make sure that we snagged all the symbols we need.
6977 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6978 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6979 cat <<_LT_EOF > conftest.$ac_ext
6980 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6981 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6982 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6983 relocations are performed -- see ld's documentation on pseudo-relocs. */
6984 # define LT_DLSYM_CONST
6985 #elif defined(__osf__)
6986 /* This system does not cope well with relocations in const data. */
6987 # define LT_DLSYM_CONST
6989 # define LT_DLSYM_CONST const
6997 # Now generate the symbol file.
6998 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7000 cat <<_LT_EOF >> conftest.$ac_ext
7002 /* The mapping between symbol names and symbols. */
7003 LT_DLSYM_CONST struct {
7007 lt__PROGRAM__LTX_preloaded_symbols[] =
7009 { "@PROGRAM@", (void *) 0 },
7011 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7012 cat <<\_LT_EOF >> conftest.$ac_ext
7016 /* This works around a problem in FreeBSD linker */
7017 #ifdef FREEBSD_WORKAROUND
7018 static const void *lt_preloaded_setup() {
7019 return lt__PROGRAM__LTX_preloaded_symbols;
7027 # Now try linking the two files.
7028 mv conftest.$ac_objext conftstm.$ac_objext
7029 lt_globsym_save_LIBS=$LIBS
7030 lt_globsym_save_CFLAGS=$CFLAGS
7031 LIBS="conftstm.$ac_objext"
7032 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7034 (eval $ac_link) 2>&5
7036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7037 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7040 LIBS=$lt_globsym_save_LIBS
7041 CFLAGS=$lt_globsym_save_CFLAGS
7043 echo "cannot find nm_test_func in $nlist" >&5
7046 echo "cannot find nm_test_var in $nlist" >&5
7049 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7052 echo "$progname: failed program was:" >&5
7053 cat conftest.$ac_ext >&5
7055 rm -rf conftest* conftst*
7057 # Do not use the global_symbol_pipe unless it works.
7058 if test "$pipe_works" = yes; then
7061 lt_cv_sys_global_symbol_pipe=
7067 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7068 lt_cv_sys_global_symbol_to_cdecl=
7070 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7072 $as_echo "failed" >&6; }
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7075 $as_echo "ok" >&6; }
7078 # Response file support.
7079 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7080 nm_file_list_spec='@'
7081 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7082 nm_file_list_spec='@'
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7112 $as_echo_n "checking for sysroot... " >&6; }
7114 # Check whether --with-sysroot was given.
7115 if test "${with_sysroot+set}" = set; then :
7116 withval=$with_sysroot;
7123 case ${with_sysroot} in #(
7125 if test "$GCC" = yes; then
7126 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7130 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7136 $as_echo "${with_sysroot}" >&6; }
7137 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7142 $as_echo "${lt_sysroot:-no}" >&6; }
7148 # Check whether --enable-libtool-lock was given.
7149 if test "${enable_libtool_lock+set}" = set; then :
7150 enableval=$enable_libtool_lock;
7153 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7155 # Some flags need to be propagated to the compiler or linker for good
7159 # Find out which ABI we are using.
7160 echo 'int i;' > conftest.$ac_ext
7161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7162 (eval $ac_compile) 2>&5
7164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7165 test $ac_status = 0; }; then
7166 case `/usr/bin/file conftest.$ac_objext` in
7178 # Find out which ABI we are using.
7179 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7181 (eval $ac_compile) 2>&5
7183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7184 test $ac_status = 0; }; then
7185 if test "$lt_cv_prog_gnu_ld" = yes; then
7186 case `/usr/bin/file conftest.$ac_objext` in
7188 LD="${LD-ld} -melf32bsmip"
7191 LD="${LD-ld} -melf32bmipn32"
7194 LD="${LD-ld} -melf64bmip"
7198 case `/usr/bin/file conftest.$ac_objext` in
7214 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7215 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7216 # Find out which ABI we are using.
7217 echo 'int i;' > conftest.$ac_ext
7218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7219 (eval $ac_compile) 2>&5
7221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7222 test $ac_status = 0; }; then
7223 case `/usr/bin/file conftest.o` in
7226 x86_64-*kfreebsd*-gnu)
7227 LD="${LD-ld} -m elf_i386_fbsd"
7230 LD="${LD-ld} -m elf_i386"
7232 ppc64-*linux*|powerpc64-*linux*)
7233 LD="${LD-ld} -m elf32ppclinux"
7236 LD="${LD-ld} -m elf_s390"
7239 LD="${LD-ld} -m elf32_sparc"
7245 x86_64-*kfreebsd*-gnu)
7246 LD="${LD-ld} -m elf_x86_64_fbsd"
7249 LD="${LD-ld} -m elf_x86_64"
7251 ppc*-*linux*|powerpc*-*linux*)
7252 LD="${LD-ld} -m elf64ppc"
7254 s390*-*linux*|s390*-*tpf*)
7255 LD="${LD-ld} -m elf64_s390"
7258 LD="${LD-ld} -m elf64_sparc"
7268 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7269 SAVE_CFLAGS="$CFLAGS"
7270 CFLAGS="$CFLAGS -belf"
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7272 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7273 if ${lt_cv_cc_needs_belf+:} false; then :
7274 $as_echo_n "(cached) " >&6
7277 ac_cpp='$CPP $CPPFLAGS'
7278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7293 if ac_fn_c_try_link "$LINENO"; then :
7294 lt_cv_cc_needs_belf=yes
7296 lt_cv_cc_needs_belf=no
7298 rm -f core conftest.err conftest.$ac_objext \
7299 conftest$ac_exeext conftest.$ac_ext
7301 ac_cpp='$CPP $CPPFLAGS'
7302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7308 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7309 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7310 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7311 CFLAGS="$SAVE_CFLAGS"
7315 # Find out which ABI we are using.
7316 echo 'int i;' > conftest.$ac_ext
7317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7318 (eval $ac_compile) 2>&5
7320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7321 test $ac_status = 0; }; then
7322 case `/usr/bin/file conftest.o` in
7324 case $lt_cv_prog_gnu_ld in
7325 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7327 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7339 need_locks="$enable_libtool_lock"
7341 if test -n "$ac_tool_prefix"; then
7342 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7343 set dummy ${ac_tool_prefix}mt; ac_word=$2
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345 $as_echo_n "checking for $ac_word... " >&6; }
7346 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7347 $as_echo_n "(cached) " >&6
7349 if test -n "$MANIFEST_TOOL"; then
7350 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7359 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7370 if test -n "$MANIFEST_TOOL"; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7372 $as_echo "$MANIFEST_TOOL" >&6; }
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7380 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7381 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7382 # Extract the first word of "mt", so it can be a program name with args.
7383 set dummy mt; ac_word=$2
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385 $as_echo_n "checking for $ac_word... " >&6; }
7386 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7387 $as_echo_n "(cached) " >&6
7389 if test -n "$ac_ct_MANIFEST_TOOL"; then
7390 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7399 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7410 if test -n "$ac_ct_MANIFEST_TOOL"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7412 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7418 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7421 case $cross_compiling:$ac_tool_warned in
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7425 ac_tool_warned=yes ;;
7427 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7430 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7433 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7435 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7436 if ${lt_cv_path_mainfest_tool+:} false; then :
7437 $as_echo_n "(cached) " >&6
7439 lt_cv_path_mainfest_tool=no
7440 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7441 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7442 cat conftest.err >&5
7443 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7444 lt_cv_path_mainfest_tool=yes
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7449 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7450 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7460 rhapsody* | darwin*)
7461 if test -n "$ac_tool_prefix"; then
7462 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7463 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 $as_echo_n "checking for $ac_word... " >&6; }
7466 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7467 $as_echo_n "(cached) " >&6
7469 if test -n "$DSYMUTIL"; then
7470 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7479 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7490 if test -n "$DSYMUTIL"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7492 $as_echo "$DSYMUTIL" >&6; }
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7500 if test -z "$ac_cv_prog_DSYMUTIL"; then
7501 ac_ct_DSYMUTIL=$DSYMUTIL
7502 # Extract the first word of "dsymutil", so it can be a program name with args.
7503 set dummy dsymutil; ac_word=$2
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505 $as_echo_n "checking for $ac_word... " >&6; }
7506 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7507 $as_echo_n "(cached) " >&6
7509 if test -n "$ac_ct_DSYMUTIL"; then
7510 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7519 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7530 if test -n "$ac_ct_DSYMUTIL"; then
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7532 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 $as_echo "no" >&6; }
7538 if test "x$ac_ct_DSYMUTIL" = x; then
7541 case $cross_compiling:$ac_tool_warned in
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7545 ac_tool_warned=yes ;;
7547 DSYMUTIL=$ac_ct_DSYMUTIL
7550 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7553 if test -n "$ac_tool_prefix"; then
7554 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7555 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if ${ac_cv_prog_NMEDIT+:} false; then :
7559 $as_echo_n "(cached) " >&6
7561 if test -n "$NMEDIT"; then
7562 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7571 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581 NMEDIT=$ac_cv_prog_NMEDIT
7582 if test -n "$NMEDIT"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7584 $as_echo "$NMEDIT" >&6; }
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7592 if test -z "$ac_cv_prog_NMEDIT"; then
7593 ac_ct_NMEDIT=$NMEDIT
7594 # Extract the first word of "nmedit", so it can be a program name with args.
7595 set dummy nmedit; ac_word=$2
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7597 $as_echo_n "checking for $ac_word... " >&6; }
7598 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7599 $as_echo_n "(cached) " >&6
7601 if test -n "$ac_ct_NMEDIT"; then
7602 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7611 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7622 if test -n "$ac_ct_NMEDIT"; then
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7624 $as_echo "$ac_ct_NMEDIT" >&6; }
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7627 $as_echo "no" >&6; }
7630 if test "x$ac_ct_NMEDIT" = x; then
7633 case $cross_compiling:$ac_tool_warned in
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7637 ac_tool_warned=yes ;;
7639 NMEDIT=$ac_ct_NMEDIT
7642 NMEDIT="$ac_cv_prog_NMEDIT"
7645 if test -n "$ac_tool_prefix"; then
7646 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7647 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649 $as_echo_n "checking for $ac_word... " >&6; }
7650 if ${ac_cv_prog_LIPO+:} false; then :
7651 $as_echo_n "(cached) " >&6
7653 if test -n "$LIPO"; then
7654 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 test -z "$as_dir" && as_dir=.
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7663 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 LIPO=$ac_cv_prog_LIPO
7674 if test -n "$LIPO"; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7676 $as_echo "$LIPO" >&6; }
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7684 if test -z "$ac_cv_prog_LIPO"; then
7686 # Extract the first word of "lipo", so it can be a program name with args.
7687 set dummy lipo; ac_word=$2
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7689 $as_echo_n "checking for $ac_word... " >&6; }
7690 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7691 $as_echo_n "(cached) " >&6
7693 if test -n "$ac_ct_LIPO"; then
7694 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700 test -z "$as_dir" && as_dir=.
7701 for ac_exec_ext in '' $ac_executable_extensions; do
7702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7703 ac_cv_prog_ac_ct_LIPO="lipo"
7704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7713 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7714 if test -n "$ac_ct_LIPO"; then
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7716 $as_echo "$ac_ct_LIPO" >&6; }
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719 $as_echo "no" >&6; }
7722 if test "x$ac_ct_LIPO" = x; then
7725 case $cross_compiling:$ac_tool_warned in
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7729 ac_tool_warned=yes ;;
7734 LIPO="$ac_cv_prog_LIPO"
7737 if test -n "$ac_tool_prefix"; then
7738 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7739 set dummy ${ac_tool_prefix}otool; ac_word=$2
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741 $as_echo_n "checking for $ac_word... " >&6; }
7742 if ${ac_cv_prog_OTOOL+:} false; then :
7743 $as_echo_n "(cached) " >&6
7745 if test -n "$OTOOL"; then
7746 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7755 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 OTOOL=$ac_cv_prog_OTOOL
7766 if test -n "$OTOOL"; then
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7768 $as_echo "$OTOOL" >&6; }
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 $as_echo "no" >&6; }
7776 if test -z "$ac_cv_prog_OTOOL"; then
7778 # Extract the first word of "otool", so it can be a program name with args.
7779 set dummy otool; ac_word=$2
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781 $as_echo_n "checking for $ac_word... " >&6; }
7782 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7783 $as_echo_n "(cached) " >&6
7785 if test -n "$ac_ct_OTOOL"; then
7786 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792 test -z "$as_dir" && as_dir=.
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7795 ac_cv_prog_ac_ct_OTOOL="otool"
7796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7805 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7806 if test -n "$ac_ct_OTOOL"; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7808 $as_echo "$ac_ct_OTOOL" >&6; }
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 $as_echo "no" >&6; }
7814 if test "x$ac_ct_OTOOL" = x; then
7817 case $cross_compiling:$ac_tool_warned in
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7821 ac_tool_warned=yes ;;
7826 OTOOL="$ac_cv_prog_OTOOL"
7829 if test -n "$ac_tool_prefix"; then
7830 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7831 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833 $as_echo_n "checking for $ac_word... " >&6; }
7834 if ${ac_cv_prog_OTOOL64+:} false; then :
7835 $as_echo_n "(cached) " >&6
7837 if test -n "$OTOOL64"; then
7838 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844 test -z "$as_dir" && as_dir=.
7845 for ac_exec_ext in '' $ac_executable_extensions; do
7846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7847 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 OTOOL64=$ac_cv_prog_OTOOL64
7858 if test -n "$OTOOL64"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7860 $as_echo "$OTOOL64" >&6; }
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 $as_echo "no" >&6; }
7868 if test -z "$ac_cv_prog_OTOOL64"; then
7869 ac_ct_OTOOL64=$OTOOL64
7870 # Extract the first word of "otool64", so it can be a program name with args.
7871 set dummy otool64; ac_word=$2
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7873 $as_echo_n "checking for $ac_word... " >&6; }
7874 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7875 $as_echo_n "(cached) " >&6
7877 if test -n "$ac_ct_OTOOL64"; then
7878 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884 test -z "$as_dir" && as_dir=.
7885 for ac_exec_ext in '' $ac_executable_extensions; do
7886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7887 ac_cv_prog_ac_ct_OTOOL64="otool64"
7888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7897 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7898 if test -n "$ac_ct_OTOOL64"; then
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7900 $as_echo "$ac_ct_OTOOL64" >&6; }
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7903 $as_echo "no" >&6; }
7906 if test "x$ac_ct_OTOOL64" = x; then
7909 case $cross_compiling:$ac_tool_warned in
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7913 ac_tool_warned=yes ;;
7915 OTOOL64=$ac_ct_OTOOL64
7918 OTOOL64="$ac_cv_prog_OTOOL64"
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7948 $as_echo_n "checking for -single_module linker flag... " >&6; }
7949 if ${lt_cv_apple_cc_single_mod+:} false; then :
7950 $as_echo_n "(cached) " >&6
7952 lt_cv_apple_cc_single_mod=no
7953 if test -z "${LT_MULTI_MODULE}"; then
7954 # By default we will add the -single_module flag. You can override
7955 # by either setting the environment variable LT_MULTI_MODULE
7956 # non-empty at configure time, or by adding -multi_module to the
7958 rm -rf libconftest.dylib*
7959 echo "int foo(void){return 1;}" > conftest.c
7960 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7961 -dynamiclib -Wl,-single_module conftest.c" >&5
7962 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7963 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7965 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7966 lt_cv_apple_cc_single_mod=yes
7968 cat conftest.err >&5
7970 rm -rf libconftest.dylib*
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7975 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7977 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7978 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7979 $as_echo_n "(cached) " >&6
7981 lt_cv_ld_exported_symbols_list=no
7982 save_LDFLAGS=$LDFLAGS
7983 echo "_main" > conftest.sym
7984 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7996 if ac_fn_c_try_link "$LINENO"; then :
7997 lt_cv_ld_exported_symbols_list=yes
7999 lt_cv_ld_exported_symbols_list=no
8001 rm -f core conftest.err conftest.$ac_objext \
8002 conftest$ac_exeext conftest.$ac_ext
8003 LDFLAGS="$save_LDFLAGS"
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8007 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8009 $as_echo_n "checking for -force_load linker flag... " >&6; }
8010 if ${lt_cv_ld_force_load+:} false; then :
8011 $as_echo_n "(cached) " >&6
8013 lt_cv_ld_force_load=no
8014 cat > conftest.c << _LT_EOF
8015 int forced_loaded() { return 2;}
8017 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8018 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8019 echo "$AR cru libconftest.a conftest.o" >&5
8020 $AR cru libconftest.a conftest.o 2>&5
8021 echo "$RANLIB libconftest.a" >&5
8022 $RANLIB libconftest.a 2>&5
8023 cat > conftest.c << _LT_EOF
8024 int main() { return 0;}
8026 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8027 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8029 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8030 lt_cv_ld_force_load=yes
8032 cat conftest.err >&5
8034 rm -f conftest.err libconftest.a conftest conftest.c
8035 rm -rf conftest.dSYM
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8039 $as_echo "$lt_cv_ld_force_load" >&6; }
8041 rhapsody* | darwin1.[012])
8042 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8044 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8045 darwin*) # darwin 5.x on
8046 # if running on 10.5 or later, the deployment target defaults
8047 # to the OS version, if on x86, and 10.4, the deployment
8048 # target defaults to 10.4. Don't you love it?
8049 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8050 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8051 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8053 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8055 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8059 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8060 _lt_dar_single_mod='$single_module'
8062 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8063 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8065 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8067 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8068 _lt_dsymutil='~$DSYMUTIL $lib || :'
8075 for ac_header in dlfcn.h
8077 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8079 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8080 cat >>confdefs.h <<_ACEOF
8081 #define HAVE_DLFCN_H 1
8102 # Check whether --enable-shared was given.
8103 if test "${enable_shared+set}" = set; then :
8104 enableval=$enable_shared; p=${PACKAGE-default}
8106 yes) enable_shared=yes ;;
8107 no) enable_shared=no ;;
8110 # Look at the argument we got. We use all the common list separators.
8111 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8112 for pkg in $enableval; do
8114 if test "X$pkg" = "X$p"; then
8133 # Check whether --enable-static was given.
8134 if test "${enable_static+set}" = set; then :
8135 enableval=$enable_static; p=${PACKAGE-default}
8137 yes) enable_static=yes ;;
8138 no) enable_static=no ;;
8141 # Look at the argument we got. We use all the common list separators.
8142 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8143 for pkg in $enableval; do
8145 if test "X$pkg" = "X$p"; then
8165 # Check whether --with-pic was given.
8166 if test "${with_pic+set}" = set; then :
8167 withval=$with_pic; pic_mode="$withval"
8173 test -z "$pic_mode" && pic_mode=default
8181 # Check whether --enable-fast-install was given.
8182 if test "${enable_fast_install+set}" = set; then :
8183 enableval=$enable_fast_install; p=${PACKAGE-default}
8185 yes) enable_fast_install=yes ;;
8186 no) enable_fast_install=no ;;
8188 enable_fast_install=no
8189 # Look at the argument we got. We use all the common list separators.
8190 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8191 for pkg in $enableval; do
8193 if test "X$pkg" = "X$p"; then
8194 enable_fast_install=yes
8201 enable_fast_install=yes
8214 # This can be used to rebuild libtool when needed
8215 LIBTOOL_DEPS="$ltmain"
8217 # Always use our own libtool.
8218 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8245 test -z "$LN_S" && LN_S="ln -s"
8260 if test -n "${ZSH_VERSION+set}" ; then
8261 setopt NO_GLOB_SUBST
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8265 $as_echo_n "checking for objdir... " >&6; }
8266 if ${lt_cv_objdir+:} false; then :
8267 $as_echo_n "(cached) " >&6
8269 rm -f .libs 2>/dev/null
8270 mkdir .libs 2>/dev/null
8271 if test -d .libs; then
8274 # MS-DOS does not allow filenames that begin with a dot.
8277 rmdir .libs 2>/dev/null
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8280 $as_echo "$lt_cv_objdir" >&6; }
8281 objdir=$lt_cv_objdir
8287 cat >>confdefs.h <<_ACEOF
8288 #define LT_OBJDIR "$lt_cv_objdir/"
8296 # AIX sometimes has problems with the GCC collect2 program. For some
8297 # reason, if we set the COLLECT_NAMES environment variable, the problems
8298 # vanish in a puff of smoke.
8299 if test "X${COLLECT_NAMES+set}" != Xset; then
8301 export COLLECT_NAMES
8308 can_build_shared=yes
8310 # All known linkers require a `.a' archive for static linking (except MSVC,
8311 # which needs '.lib').
8314 with_gnu_ld="$lt_cv_prog_gnu_ld"
8317 old_CFLAGS="$CFLAGS"
8319 # Set sane defaults for various variables
8320 test -z "$CC" && CC=cc
8321 test -z "$LTCC" && LTCC=$CC
8322 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8323 test -z "$LD" && LD=ld
8324 test -z "$ac_objext" && ac_objext=o
8326 for cc_temp in $compiler""; do
8328 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8329 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8334 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8337 # Only perform the check for file, if the check method requires it
8338 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8339 case $deplibs_check_method in
8341 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8343 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8344 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8345 $as_echo_n "(cached) " >&6
8349 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8352 lt_save_MAGIC_CMD="$MAGIC_CMD"
8353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8354 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8355 for ac_dir in $ac_dummy; do
8357 test -z "$ac_dir" && ac_dir=.
8358 if test -f $ac_dir/${ac_tool_prefix}file; then
8359 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8360 if test -n "$file_magic_test_file"; then
8361 case $deplibs_check_method in
8363 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8364 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8365 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8366 $EGREP "$file_magic_regex" > /dev/null; then
8371 *** Warning: the command libtool uses to detect shared libraries,
8372 *** $file_magic_cmd, produces output that libtool cannot recognize.
8373 *** The result is that libtool may fail to recognize shared libraries
8374 *** as such. This will affect the creation of libtool libraries that
8375 *** depend on shared libraries, but programs linked with such libtool
8376 *** libraries will work regardless of this problem. Nevertheless, you
8377 *** may want to report the problem to your system manager and/or to
8378 *** bug-libtool@gnu.org
8388 MAGIC_CMD="$lt_save_MAGIC_CMD"
8393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8394 if test -n "$MAGIC_CMD"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8396 $as_echo "$MAGIC_CMD" >&6; }
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8406 if test -z "$lt_cv_path_MAGIC_CMD"; then
8407 if test -n "$ac_tool_prefix"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8409 $as_echo_n "checking for file... " >&6; }
8410 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8411 $as_echo_n "(cached) " >&6
8415 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8418 lt_save_MAGIC_CMD="$MAGIC_CMD"
8419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8420 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8421 for ac_dir in $ac_dummy; do
8423 test -z "$ac_dir" && ac_dir=.
8424 if test -f $ac_dir/file; then
8425 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8426 if test -n "$file_magic_test_file"; then
8427 case $deplibs_check_method in
8429 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8430 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8431 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8432 $EGREP "$file_magic_regex" > /dev/null; then
8437 *** Warning: the command libtool uses to detect shared libraries,
8438 *** $file_magic_cmd, produces output that libtool cannot recognize.
8439 *** The result is that libtool may fail to recognize shared libraries
8440 *** as such. This will affect the creation of libtool libraries that
8441 *** depend on shared libraries, but programs linked with such libtool
8442 *** libraries will work regardless of this problem. Nevertheless, you
8443 *** may want to report the problem to your system manager and/or to
8444 *** bug-libtool@gnu.org
8454 MAGIC_CMD="$lt_save_MAGIC_CMD"
8459 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8460 if test -n "$MAGIC_CMD"; then
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8462 $as_echo "$MAGIC_CMD" >&6; }
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8465 $as_echo "no" >&6; }
8478 # Use C for the default configuration in the libtool script
8482 ac_cpp='$CPP $CPPFLAGS'
8483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8488 # Source file extension for C test sources.
8491 # Object file extension for compiled C test sources.
8495 # Code to be used in simple compile tests
8496 lt_simple_compile_test_code="int some_variable = 0;"
8498 # Code to be used in simple link tests
8499 lt_simple_link_test_code='int main(){return(0);}'
8507 # If no C compiler was specified, use CC.
8510 # If no C compiler flags were specified, use CFLAGS.
8511 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8513 # Allow CC to be a program name with arguments.
8516 # Save the default compiler, since it gets overwritten when the other
8517 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8518 compiler_DEFAULT=$CC
8520 # save warnings/boilerplate of simple test code
8521 ac_outfile=conftest.$ac_objext
8522 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8523 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8524 _lt_compiler_boilerplate=`cat conftest.err`
8527 ac_outfile=conftest.$ac_objext
8528 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8529 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8530 _lt_linker_boilerplate=`cat conftest.err`
8535 ## There is no encapsulation within the following macros, do not change
8536 ## the running order or otherwise move them around unless you know exactly
8537 ## what you are doing...
8538 if test -n "$compiler"; then
8540 lt_prog_compiler_no_builtin_flag=
8542 if test "$GCC" = yes; then
8543 case $cc_basename in
8545 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8547 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8551 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8552 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8553 $as_echo_n "(cached) " >&6
8555 lt_cv_prog_compiler_rtti_exceptions=no
8556 ac_outfile=conftest.$ac_objext
8557 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8558 lt_compiler_flag="-fno-rtti -fno-exceptions"
8559 # Insert the option either (1) after the last *FLAGS variable, or
8560 # (2) before a word containing "conftest.", or (3) at the end.
8561 # Note that $ac_compile itself does not contain backslashes and begins
8562 # with a dollar sign (not a hyphen), so the echo should work correctly.
8563 # The option is referenced via a variable to avoid confusing sed.
8564 lt_compile=`echo "$ac_compile" | $SED \
8565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8567 -e 's:$: $lt_compiler_flag:'`
8568 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8569 (eval "$lt_compile" 2>conftest.err)
8571 cat conftest.err >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 if (exit $ac_status) && test -s "$ac_outfile"; then
8574 # The compiler can only warn and ignore the option if not recognized
8575 # So say no if there are warnings other than the usual output.
8576 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8578 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8579 lt_cv_prog_compiler_rtti_exceptions=yes
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8586 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8588 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8589 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8601 lt_prog_compiler_wl=
8602 lt_prog_compiler_pic=
8603 lt_prog_compiler_static=
8606 if test "$GCC" = yes; then
8607 lt_prog_compiler_wl='-Wl,'
8608 lt_prog_compiler_static='-static'
8612 # All AIX code is PIC.
8613 if test "$host_cpu" = ia64; then
8614 # AIX 5 now supports IA64 processor
8615 lt_prog_compiler_static='-Bstatic'
8622 # see comment about AmigaOS4 .so support
8623 lt_prog_compiler_pic='-fPIC'
8626 # FIXME: we need at least 68020 code to build shared libraries, but
8627 # adding the `-m68020' flag to GCC prevents building anything better,
8629 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8634 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8635 # PIC is the default for these OSes.
8638 mingw* | cygwin* | pw32* | os2* | cegcc*)
8639 # This hack is so that the source file can tell whether it is being
8640 # built for inclusion in a dll (and should export symbols for example).
8641 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8642 # (--disable-auto-import) libraries
8643 lt_prog_compiler_pic='-DDLL_EXPORT'
8646 darwin* | rhapsody*)
8647 # PIC is the default on this platform
8648 # Common symbols not allowed in MH_DYLIB files
8649 lt_prog_compiler_pic='-fno-common'
8653 # PIC is the default for Haiku.
8654 # The "-static" flag exists, but is broken.
8655 lt_prog_compiler_static=
8659 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8660 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8661 # sets the default TLS model and affects inlining.
8667 lt_prog_compiler_pic='-fPIC'
8673 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8674 # Instead, we relocate shared libraries at runtime.
8678 # Just because we use GCC doesn't mean we suddenly get shared libraries
8679 # on systems that don't support them.
8680 lt_prog_compiler_can_build_shared=no
8685 # QNX uses GNU C++, but need to define -shared option too, otherwise
8687 lt_prog_compiler_pic='-fPIC -shared'
8691 if test -d /usr/nec; then
8692 lt_prog_compiler_pic=-Kconform_pic
8697 lt_prog_compiler_pic='-fPIC'
8701 case $cc_basename in
8702 nvcc*) # Cuda Compiler Driver 2.2
8703 lt_prog_compiler_wl='-Xlinker '
8704 lt_prog_compiler_pic='-Xcompiler -fPIC'
8708 # PORTME Check for flag to pass linker flags through the system compiler.
8711 lt_prog_compiler_wl='-Wl,'
8712 if test "$host_cpu" = ia64; then
8713 # AIX 5 now supports IA64 processor
8714 lt_prog_compiler_static='-Bstatic'
8716 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8720 mingw* | cygwin* | pw32* | os2* | cegcc*)
8721 # This hack is so that the source file can tell whether it is being
8722 # built for inclusion in a dll (and should export symbols for example).
8723 lt_prog_compiler_pic='-DDLL_EXPORT'
8726 hpux9* | hpux10* | hpux11*)
8727 lt_prog_compiler_wl='-Wl,'
8728 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8735 lt_prog_compiler_pic='+Z'
8738 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8739 lt_prog_compiler_static='${wl}-a ${wl}archive'
8742 irix5* | irix6* | nonstopux*)
8743 lt_prog_compiler_wl='-Wl,'
8744 # PIC (with -KPIC) is the default.
8745 lt_prog_compiler_static='-non_shared'
8748 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8749 case $cc_basename in
8750 # old Intel for x86_64 which still supported -KPIC.
8752 lt_prog_compiler_wl='-Wl,'
8753 lt_prog_compiler_pic='-KPIC'
8754 lt_prog_compiler_static='-static'
8756 # icc used to be incompatible with GCC.
8757 # ICC 10 doesn't accept -KPIC any more.
8759 lt_prog_compiler_wl='-Wl,'
8760 lt_prog_compiler_pic='-fPIC'
8761 lt_prog_compiler_static='-static'
8763 # Lahey Fortran 8.1.
8765 lt_prog_compiler_wl='-Wl,'
8766 lt_prog_compiler_pic='--shared'
8767 lt_prog_compiler_static='--static'
8770 # NAG Fortran compiler
8771 lt_prog_compiler_wl='-Wl,-Wl,,'
8772 lt_prog_compiler_pic='-PIC'
8773 lt_prog_compiler_static='-Bstatic'
8775 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8776 # Portland Group compilers (*not* the Pentium gcc compiler,
8777 # which looks to be a dead project)
8778 lt_prog_compiler_wl='-Wl,'
8779 lt_prog_compiler_pic='-fpic'
8780 lt_prog_compiler_static='-Bstatic'
8783 lt_prog_compiler_wl='-Wl,'
8784 # All Alpha code is PIC.
8785 lt_prog_compiler_static='-non_shared'
8787 xl* | bgxl* | bgf* | mpixl*)
8788 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8789 lt_prog_compiler_wl='-Wl,'
8790 lt_prog_compiler_pic='-qpic'
8791 lt_prog_compiler_static='-qstaticlink'
8794 case `$CC -V 2>&1 | sed 5q` in
8795 *Sun\ F* | *Sun*Fortran*)
8796 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8797 lt_prog_compiler_pic='-KPIC'
8798 lt_prog_compiler_static='-Bstatic'
8799 lt_prog_compiler_wl=''
8803 lt_prog_compiler_pic='-KPIC'
8804 lt_prog_compiler_static='-Bstatic'
8805 lt_prog_compiler_wl='-Wl,'
8813 lt_prog_compiler_pic='-KPIC'
8814 lt_prog_compiler_static='-Bstatic'
8818 # QNX uses GNU C++, but need to define -shared option too, otherwise
8820 lt_prog_compiler_pic='-fPIC -shared'
8823 osf3* | osf4* | osf5*)
8824 lt_prog_compiler_wl='-Wl,'
8825 # All OSF/1 code is PIC.
8826 lt_prog_compiler_static='-non_shared'
8830 lt_prog_compiler_static='-non_shared'
8834 lt_prog_compiler_pic='-KPIC'
8835 lt_prog_compiler_static='-Bstatic'
8836 case $cc_basename in
8837 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8838 lt_prog_compiler_wl='-Qoption ld ';;
8840 lt_prog_compiler_wl='-Wl,';;
8845 lt_prog_compiler_wl='-Qoption ld '
8846 lt_prog_compiler_pic='-PIC'
8847 lt_prog_compiler_static='-Bstatic'
8850 sysv4 | sysv4.2uw2* | sysv4.3*)
8851 lt_prog_compiler_wl='-Wl,'
8852 lt_prog_compiler_pic='-KPIC'
8853 lt_prog_compiler_static='-Bstatic'
8857 if test -d /usr/nec ;then
8858 lt_prog_compiler_pic='-Kconform_pic'
8859 lt_prog_compiler_static='-Bstatic'
8863 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8864 lt_prog_compiler_wl='-Wl,'
8865 lt_prog_compiler_pic='-KPIC'
8866 lt_prog_compiler_static='-Bstatic'
8870 lt_prog_compiler_wl='-Wl,'
8871 lt_prog_compiler_can_build_shared=no
8875 lt_prog_compiler_pic='-pic'
8876 lt_prog_compiler_static='-Bstatic'
8880 lt_prog_compiler_can_build_shared=no
8886 # For platforms which do not support PIC, -DPIC is meaningless:
8888 lt_prog_compiler_pic=
8891 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8896 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8897 if ${lt_cv_prog_compiler_pic+:} false; then :
8898 $as_echo_n "(cached) " >&6
8900 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8903 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8904 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8907 # Check to make sure the PIC flag actually works.
8909 if test -n "$lt_prog_compiler_pic"; then
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8911 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8912 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8913 $as_echo_n "(cached) " >&6
8915 lt_cv_prog_compiler_pic_works=no
8916 ac_outfile=conftest.$ac_objext
8917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8918 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8919 # Insert the option either (1) after the last *FLAGS variable, or
8920 # (2) before a word containing "conftest.", or (3) at the end.
8921 # Note that $ac_compile itself does not contain backslashes and begins
8922 # with a dollar sign (not a hyphen), so the echo should work correctly.
8923 # The option is referenced via a variable to avoid confusing sed.
8924 lt_compile=`echo "$ac_compile" | $SED \
8925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8927 -e 's:$: $lt_compiler_flag:'`
8928 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8929 (eval "$lt_compile" 2>conftest.err)
8931 cat conftest.err >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 if (exit $ac_status) && test -s "$ac_outfile"; then
8934 # The compiler can only warn and ignore the option if not recognized
8935 # So say no if there are warnings other than the usual output.
8936 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8938 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8939 lt_cv_prog_compiler_pic_works=yes
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8946 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8948 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8949 case $lt_prog_compiler_pic in
8951 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8954 lt_prog_compiler_pic=
8955 lt_prog_compiler_can_build_shared=no
8971 # Check to make sure the static flag actually works.
8973 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8975 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8976 if ${lt_cv_prog_compiler_static_works+:} false; then :
8977 $as_echo_n "(cached) " >&6
8979 lt_cv_prog_compiler_static_works=no
8980 save_LDFLAGS="$LDFLAGS"
8981 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8982 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8983 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8984 # The linker can only warn and ignore the option if not recognized
8985 # So say no if there are warnings
8986 if test -s conftest.err; then
8987 # Append any errors to the config.log.
8988 cat conftest.err 1>&5
8989 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8991 if diff conftest.exp conftest.er2 >/dev/null; then
8992 lt_cv_prog_compiler_static_works=yes
8995 lt_cv_prog_compiler_static_works=yes
8999 LDFLAGS="$save_LDFLAGS"
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9003 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9005 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9008 lt_prog_compiler_static=
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9018 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9019 if ${lt_cv_prog_compiler_c_o+:} false; then :
9020 $as_echo_n "(cached) " >&6
9022 lt_cv_prog_compiler_c_o=no
9023 $RM -r conftest 2>/dev/null
9027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9029 lt_compiler_flag="-o out/conftest2.$ac_objext"
9030 # Insert the option either (1) after the last *FLAGS variable, or
9031 # (2) before a word containing "conftest.", or (3) at the end.
9032 # Note that $ac_compile itself does not contain backslashes and begins
9033 # with a dollar sign (not a hyphen), so the echo should work correctly.
9034 lt_compile=`echo "$ac_compile" | $SED \
9035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9037 -e 's:$: $lt_compiler_flag:'`
9038 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9039 (eval "$lt_compile" 2>out/conftest.err)
9041 cat out/conftest.err >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9045 # The compiler can only warn and ignore the option if not recognized
9046 # So say no if there are warnings
9047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9048 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9049 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9050 lt_cv_prog_compiler_c_o=yes
9055 # SGI C++ compiler will create directory out/ii_files/ for
9056 # template instantiation
9057 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9058 $RM out/* && rmdir out
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9065 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9073 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9074 if ${lt_cv_prog_compiler_c_o+:} false; then :
9075 $as_echo_n "(cached) " >&6
9077 lt_cv_prog_compiler_c_o=no
9078 $RM -r conftest 2>/dev/null
9082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9084 lt_compiler_flag="-o out/conftest2.$ac_objext"
9085 # Insert the option either (1) after the last *FLAGS variable, or
9086 # (2) before a word containing "conftest.", or (3) at the end.
9087 # Note that $ac_compile itself does not contain backslashes and begins
9088 # with a dollar sign (not a hyphen), so the echo should work correctly.
9089 lt_compile=`echo "$ac_compile" | $SED \
9090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9092 -e 's:$: $lt_compiler_flag:'`
9093 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9094 (eval "$lt_compile" 2>out/conftest.err)
9096 cat out/conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9100 # The compiler can only warn and ignore the option if not recognized
9101 # So say no if there are warnings
9102 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9103 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9104 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9105 lt_cv_prog_compiler_c_o=yes
9110 # SGI C++ compiler will create directory out/ii_files/ for
9111 # template instantiation
9112 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9113 $RM out/* && rmdir out
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9120 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9125 hard_links="nottested"
9126 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9127 # do not overwrite the value of need_locks provided by the user
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9129 $as_echo_n "checking if we can lock with hard links... " >&6; }
9132 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9134 ln conftest.a conftest.b 2>&5 || hard_links=no
9135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9137 $as_echo "$hard_links" >&6; }
9138 if test "$hard_links" = no; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9140 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9153 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9156 allow_undefined_flag=
9157 always_export_symbols=no
9159 archive_expsym_cmds=
9160 compiler_needs_object=no
9161 enable_shared_with_static_runtimes=no
9162 export_dynamic_flag_spec=
9163 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9164 hardcode_automatic=no
9166 hardcode_direct_absolute=no
9167 hardcode_libdir_flag_spec=
9168 hardcode_libdir_flag_spec_ld=
9169 hardcode_libdir_separator=
9171 hardcode_shlibpath_var=unsupported
9173 link_all_deplibs=unknown
9176 old_archive_from_new_cmds=
9177 old_archive_from_expsyms_cmds=
9178 thread_safe_flag_spec=
9179 whole_archive_flag_spec=
9180 # include_expsyms should be a list of space-separated symbols to be *always*
9181 # included in the symbol list
9183 # exclude_expsyms can be an extended regexp of symbols to exclude
9184 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9185 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9186 # as well as any symbol that contains `d'.
9187 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9188 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9189 # platforms (ab)use it in PIC code, but their linkers get confused if
9190 # the symbol is explicitly referenced. Since portable code cannot
9191 # rely on this symbol name, it's probably fine to never include it in
9192 # preloaded symbol tables.
9193 # Exclude shared library initialization/finalization symbols.
9194 extract_expsyms_cmds=
9197 cygwin* | mingw* | pw32* | cegcc*)
9198 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9199 # When not using gcc, we currently assume that we are using
9200 # Microsoft Visual C++.
9201 if test "$GCC" != yes; then
9206 # we just hope/assume this is gcc and not c89 (= MSVC++)
9216 # On some targets, GNU ld is compatible enough with the native linker
9217 # that we're better off using the native interface for both.
9218 lt_use_gnu_ld_interface=no
9219 if test "$with_gnu_ld" = yes; then
9222 # The AIX port of GNU ld has always aspired to compatibility
9223 # with the native linker. However, as the warning in the GNU ld
9224 # block says, versions before 2.19.5* couldn't really create working
9225 # shared libraries, regardless of the interface used.
9226 case `$LD -v 2>&1` in
9227 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9228 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9229 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9231 lt_use_gnu_ld_interface=yes
9236 lt_use_gnu_ld_interface=yes
9241 if test "$lt_use_gnu_ld_interface" = yes; then
9242 # If archive_cmds runs LD, not CC, wlarc should be empty
9245 # Set some defaults for GNU ld with shared library support. These
9246 # are reset later if shared libraries are not supported. Putting them
9247 # here allows them to be overridden if necessary.
9248 runpath_var=LD_RUN_PATH
9249 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9250 export_dynamic_flag_spec='${wl}--export-dynamic'
9251 # ancient GNU ld didn't support --whole-archive et. al.
9252 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9253 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9255 whole_archive_flag_spec=
9257 supports_anon_versioning=no
9258 case `$LD -v 2>&1` in
9259 *GNU\ gold*) supports_anon_versioning=yes ;;
9260 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9261 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9262 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9263 *\ 2.11.*) ;; # other 2.11 versions
9264 *) supports_anon_versioning=yes ;;
9267 # See if GNU ld supports shared libraries.
9270 # On AIX/PPC, the GNU linker is very broken
9271 if test "$host_cpu" != ia64; then
9275 *** Warning: the GNU linker, at least up to release 2.19, is reported
9276 *** to be unable to reliably create shared libraries on AIX.
9277 *** Therefore, libtool is disabling shared libraries support. If you
9278 *** really care for shared libraries, you may want to install binutils
9279 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9280 *** You will then need to restart the configuration process.
9289 # see comment about AmigaOS4 .so support
9290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9291 archive_expsym_cmds=''
9294 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)'
9295 hardcode_libdir_flag_spec='-L$libdir'
9296 hardcode_minus_L=yes
9302 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9303 allow_undefined_flag=unsupported
9304 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9305 # support --undefined. This deserves some investigation. FIXME
9306 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9312 cygwin* | mingw* | pw32* | cegcc*)
9313 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9314 # as there is no search path for DLLs.
9315 hardcode_libdir_flag_spec='-L$libdir'
9316 export_dynamic_flag_spec='${wl}--export-all-symbols'
9317 allow_undefined_flag=unsupported
9318 always_export_symbols=no
9319 enable_shared_with_static_runtimes=yes
9320 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'
9321 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9323 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9325 # If the export-symbols file already is a .def file (1st line
9326 # is EXPORTS), use it as is; otherwise, prepend...
9327 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9328 cp $export_symbols $output_objdir/$soname.def;
9330 echo EXPORTS > $output_objdir/$soname.def;
9331 cat $export_symbols >> $output_objdir/$soname.def;
9333 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9341 link_all_deplibs=yes
9346 hardcode_shlibpath_var=no
9347 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9348 export_dynamic_flag_spec='${wl}-E'
9349 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9350 # Instead, shared libraries are loaded at an image base (0x10000000 by
9351 # default) and relocated if they conflict, which is a slow very memory
9352 # consuming and fragmenting process. To avoid this, we pick a random,
9353 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9354 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9355 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9356 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'
9359 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9361 if test "$host_os" = linux-dietlibc; then
9362 case $cc_basename in
9363 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9366 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9367 && test "$tmp_diet" = no
9369 tmp_addflag=' $pic_flag'
9370 tmp_sharedflag='-shared'
9371 case $cc_basename,$host_cpu in
9372 pgcc*) # Portland Group C compiler
9373 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'
9374 tmp_addflag=' $pic_flag'
9376 pgf77* | pgf90* | pgf95* | pgfortran*)
9377 # Portland Group f77 and f90 compilers
9378 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'
9379 tmp_addflag=' $pic_flag -Mnomain' ;;
9380 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9381 tmp_addflag=' -i_dynamic' ;;
9382 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9383 tmp_addflag=' -i_dynamic -nofor_main' ;;
9384 ifc* | ifort*) # Intel Fortran compiler
9385 tmp_addflag=' -nofor_main' ;;
9386 lf95*) # Lahey Fortran 8.1
9387 whole_archive_flag_spec=
9388 tmp_sharedflag='--shared' ;;
9389 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9390 tmp_sharedflag='-qmkshrobj'
9392 nvcc*) # Cuda Compiler Driver 2.2
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 compiler_needs_object=yes
9397 case `$CC -V 2>&1 | sed 5q` in
9398 *Sun\ C*) # Sun C 5.9
9399 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'
9400 compiler_needs_object=yes
9401 tmp_sharedflag='-G' ;;
9402 *Sun\ F*) # Sun Fortran 8.3
9403 tmp_sharedflag='-G' ;;
9405 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9407 if test "x$supports_anon_versioning" = xyes; then
9408 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9409 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9410 echo "local: *; };" >> $output_objdir/$libname.ver~
9411 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9414 case $cc_basename in
9415 xlf* | bgf* | bgxlf* | mpixlf*)
9416 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9417 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9418 hardcode_libdir_flag_spec=
9419 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9420 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9421 if test "x$supports_anon_versioning" = xyes; then
9422 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9423 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9424 echo "local: *; };" >> $output_objdir/$libname.ver~
9425 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9435 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9436 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9439 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9440 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9445 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9449 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9450 *** create shared libraries on Solaris systems. Therefore, libtool
9451 *** is disabling shared libraries support. We urge you to upgrade GNU
9452 *** binutils to release 2.9.1 or newer. Another option is to modify
9453 *** your PATH or compiler configuration so that the native linker is
9454 *** used, and then restart.
9457 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9458 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9459 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9465 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9466 case `$LD -v 2>&1` in
9467 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9471 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9472 *** reliably create shared libraries on SCO systems. Therefore, libtool
9473 *** is disabling shared libraries support. We urge you to upgrade GNU
9474 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9475 *** your PATH or compiler configuration so that the native linker is
9476 *** used, and then restart.
9481 # For security reasons, it is highly recommended that you always
9482 # use absolute paths for naming shared libraries, and exclude the
9483 # DT_RUNPATH tag from executables and libraries. But doing so
9484 # requires that you compile everything twice, which is a pain.
9485 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9486 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9488 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9497 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9500 hardcode_shlibpath_var=no
9504 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9505 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9506 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9513 if test "$ld_shlibs" = no; then
9515 hardcode_libdir_flag_spec=
9516 export_dynamic_flag_spec=
9517 whole_archive_flag_spec=
9520 # PORTME fill in a description of your system's linker (not GNU ld)
9523 allow_undefined_flag=unsupported
9524 always_export_symbols=yes
9525 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'
9526 # Note: this linker hardcodes the directories in LIBPATH if there
9527 # are no directories specified by -L.
9528 hardcode_minus_L=yes
9529 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9530 # Neither direct hardcoding nor static linking is supported with a
9532 hardcode_direct=unsupported
9537 if test "$host_cpu" = ia64; then
9538 # On IA64, the linker does run time linking by default, so we don't
9539 # have to do anything special.
9540 aix_use_runtimelinking=no
9541 exp_sym_flag='-Bexport'
9544 # If we're using GNU nm, then we don't want the "-C" option.
9545 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9546 # Also, AIX nm treats weak defined symbols like other global
9547 # defined symbols, whereas GNU nm marks them as "W".
9548 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9549 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'
9551 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'
9553 aix_use_runtimelinking=no
9555 # Test if we are trying to use run time linking or normal
9556 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9557 # need to do runtime linking.
9558 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9559 for ld_flag in $LDFLAGS; do
9560 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9561 aix_use_runtimelinking=yes
9568 exp_sym_flag='-bexport'
9569 no_entry_flag='-bnoentry'
9572 # When large executables or shared objects are built, AIX ld can
9573 # have problems creating the table of contents. If linking a library
9574 # or program results in "error TOC overflow" add -mminimal-toc to
9575 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9576 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9580 hardcode_direct_absolute=yes
9581 hardcode_libdir_separator=':'
9582 link_all_deplibs=yes
9583 file_list_spec='${wl}-f,'
9585 if test "$GCC" = yes; then
9586 case $host_os in aix4.[012]|aix4.[012].*)
9587 # We only want to do this on AIX 4.2 and lower, the check
9588 # below for broken collect2 doesn't work under 4.3+
9589 collect2name=`${CC} -print-prog-name=collect2`
9590 if test -f "$collect2name" &&
9591 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9593 # We have reworked collect2
9596 # We have old collect2
9597 hardcode_direct=unsupported
9598 # It fails to find uninstalled libraries when the uninstalled
9599 # path is not listed in the libpath. Setting hardcode_minus_L
9600 # to unsupported forces relinking
9601 hardcode_minus_L=yes
9602 hardcode_libdir_flag_spec='-L$libdir'
9603 hardcode_libdir_separator=
9607 shared_flag='-shared'
9608 if test "$aix_use_runtimelinking" = yes; then
9609 shared_flag="$shared_flag "'${wl}-G'
9613 if test "$host_cpu" = ia64; then
9614 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9615 # chokes on -Wl,-G. The following line is correct:
9618 if test "$aix_use_runtimelinking" = yes; then
9619 shared_flag='${wl}-G'
9621 shared_flag='${wl}-bM:SRE'
9626 export_dynamic_flag_spec='${wl}-bexpall'
9627 # It seems that -bexpall does not export symbols beginning with
9628 # underscore (_), so it is better to generate a list of symbols to export.
9629 always_export_symbols=yes
9630 if test "$aix_use_runtimelinking" = yes; then
9631 # Warning - without using the other runtime loading flags (-brtl),
9632 # -berok will link without error, but may produce a broken library.
9633 allow_undefined_flag='-berok'
9634 # Determine the default libpath from the value encoded in an
9636 if test "${lt_cv_aix_libpath+set}" = set; then
9637 aix_libpath=$lt_cv_aix_libpath
9639 if ${lt_cv_aix_libpath_+:} false; then :
9640 $as_echo_n "(cached) " >&6
9642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9643 /* end confdefs.h. */
9653 if ac_fn_c_try_link "$LINENO"; then :
9655 lt_aix_libpath_sed='
9656 /Import File Strings/,/^$/ {
9658 s/^0 *\([^ ]*\) *$/\1/
9662 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9663 # Check for a 64-bit object if we didn't find anything.
9664 if test -z "$lt_cv_aix_libpath_"; then
9665 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9668 rm -f core conftest.err conftest.$ac_objext \
9669 conftest$ac_exeext conftest.$ac_ext
9670 if test -z "$lt_cv_aix_libpath_"; then
9671 lt_cv_aix_libpath_="/usr/lib:/lib"
9676 aix_libpath=$lt_cv_aix_libpath_
9679 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9680 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"
9682 if test "$host_cpu" = ia64; then
9683 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9684 allow_undefined_flag="-z nodefs"
9685 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"
9687 # Determine the default libpath from the value encoded in an
9689 if test "${lt_cv_aix_libpath+set}" = set; then
9690 aix_libpath=$lt_cv_aix_libpath
9692 if ${lt_cv_aix_libpath_+:} false; then :
9693 $as_echo_n "(cached) " >&6
9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696 /* end confdefs.h. */
9706 if ac_fn_c_try_link "$LINENO"; then :
9708 lt_aix_libpath_sed='
9709 /Import File Strings/,/^$/ {
9711 s/^0 *\([^ ]*\) *$/\1/
9715 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9716 # Check for a 64-bit object if we didn't find anything.
9717 if test -z "$lt_cv_aix_libpath_"; then
9718 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9721 rm -f core conftest.err conftest.$ac_objext \
9722 conftest$ac_exeext conftest.$ac_ext
9723 if test -z "$lt_cv_aix_libpath_"; then
9724 lt_cv_aix_libpath_="/usr/lib:/lib"
9729 aix_libpath=$lt_cv_aix_libpath_
9732 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9733 # Warning - without using the other run time loading flags,
9734 # -berok will link without error, but may produce a broken library.
9735 no_undefined_flag=' ${wl}-bernotok'
9736 allow_undefined_flag=' ${wl}-berok'
9737 if test "$with_gnu_ld" = yes; then
9738 # We only use this code for GNU lds that support --whole-archive.
9739 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9741 # Exported symbols can be pulled into shared objects from archives
9742 whole_archive_flag_spec='$convenience'
9744 archive_cmds_need_lc=yes
9745 # This is similar to how AIX traditionally builds its shared libraries.
9746 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'
9754 # see comment about AmigaOS4 .so support
9755 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9756 archive_expsym_cmds=''
9759 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)'
9760 hardcode_libdir_flag_spec='-L$libdir'
9761 hardcode_minus_L=yes
9767 export_dynamic_flag_spec=-rdynamic
9770 cygwin* | mingw* | pw32* | cegcc*)
9771 # When not using gcc, we currently assume that we are using
9772 # Microsoft Visual C++.
9773 # hardcode_libdir_flag_spec is actually meaningless, as there is
9774 # no search path for DLLs.
9775 case $cc_basename in
9778 hardcode_libdir_flag_spec=' '
9779 allow_undefined_flag=unsupported
9780 always_export_symbols=yes
9782 # Tell ltmain to make .lib files, not .a files.
9784 # Tell ltmain to make .dll files, not .so files.
9786 # FIXME: Setting linknames here is a bad hack.
9787 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9788 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9789 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9791 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9793 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9795 # The linker will not automatically build a static lib if we build a DLL.
9796 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9797 enable_shared_with_static_runtimes=yes
9798 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9800 old_postinstall_cmds='chmod 644 $oldlib'
9801 postlink_cmds='lt_outputfile="@OUTPUT@"~
9802 lt_tool_outputfile="@TOOL_OUTPUT@"~
9803 case $lt_outputfile in
9806 lt_outputfile="$lt_outputfile.exe"
9807 lt_tool_outputfile="$lt_tool_outputfile.exe"
9810 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9811 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9812 $RM "$lt_outputfile.manifest";
9816 # Assume MSVC wrapper
9817 hardcode_libdir_flag_spec=' '
9818 allow_undefined_flag=unsupported
9819 # Tell ltmain to make .lib files, not .a files.
9821 # Tell ltmain to make .dll files, not .so files.
9823 # FIXME: Setting linknames here is a bad hack.
9824 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9825 # The linker will automatically build a .lib file if we build a DLL.
9826 old_archive_from_new_cmds='true'
9827 # FIXME: Should let the user specify the lib program.
9828 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9829 enable_shared_with_static_runtimes=yes
9834 darwin* | rhapsody*)
9837 archive_cmds_need_lc=no
9839 hardcode_automatic=yes
9840 hardcode_shlibpath_var=unsupported
9841 if test "$lt_cv_ld_force_load" = "yes"; then
9842 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\"`'
9844 whole_archive_flag_spec=''
9846 link_all_deplibs=yes
9847 allow_undefined_flag="$_lt_dar_allow_undefined"
9848 case $cc_basename in
9849 ifort*) _lt_dar_can_shared=yes ;;
9850 *) _lt_dar_can_shared=$GCC ;;
9852 if test "$_lt_dar_can_shared" = "yes"; then
9853 output_verbose_link_cmd=func_echo_all
9854 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9855 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9856 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}"
9857 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}"
9866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9867 hardcode_libdir_flag_spec='-L$libdir'
9868 hardcode_shlibpath_var=no
9875 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9876 # support. Future versions do this automatically, but an explicit c++rt0.o
9877 # does not break anything, and helps significantly (at the cost of a little
9880 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9881 hardcode_libdir_flag_spec='-R$libdir'
9883 hardcode_shlibpath_var=no
9886 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9888 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9890 hardcode_minus_L=yes
9891 hardcode_shlibpath_var=no
9894 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9895 freebsd* | dragonfly*)
9896 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9897 hardcode_libdir_flag_spec='-R$libdir'
9899 hardcode_shlibpath_var=no
9903 if test "$GCC" = yes; then
9904 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'
9906 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'
9908 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9909 hardcode_libdir_separator=:
9912 # hardcode_minus_L: Not really in the search PATH,
9913 # but as the default location of the library.
9914 hardcode_minus_L=yes
9915 export_dynamic_flag_spec='${wl}-E'
9919 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9920 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9922 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9924 if test "$with_gnu_ld" = no; then
9925 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9926 hardcode_libdir_flag_spec_ld='+b $libdir'
9927 hardcode_libdir_separator=:
9929 hardcode_direct_absolute=yes
9930 export_dynamic_flag_spec='${wl}-E'
9931 # hardcode_minus_L: Not really in the search PATH,
9932 # but as the default location of the library.
9933 hardcode_minus_L=yes
9938 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9941 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9944 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9947 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9953 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9956 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9960 # Older versions of the 11.00 compiler do not understand -b yet
9961 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9963 $as_echo_n "checking if $CC understands -b... " >&6; }
9964 if ${lt_cv_prog_compiler__b+:} false; then :
9965 $as_echo_n "(cached) " >&6
9967 lt_cv_prog_compiler__b=no
9968 save_LDFLAGS="$LDFLAGS"
9969 LDFLAGS="$LDFLAGS -b"
9970 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9971 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9972 # The linker can only warn and ignore the option if not recognized
9973 # So say no if there are warnings
9974 if test -s conftest.err; then
9975 # Append any errors to the config.log.
9976 cat conftest.err 1>&5
9977 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9978 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9979 if diff conftest.exp conftest.er2 >/dev/null; then
9980 lt_cv_prog_compiler__b=yes
9983 lt_cv_prog_compiler__b=yes
9987 LDFLAGS="$save_LDFLAGS"
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9991 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9993 if test x"$lt_cv_prog_compiler__b" = xyes; then
9994 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9996 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10002 if test "$with_gnu_ld" = no; then
10003 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10004 hardcode_libdir_separator=:
10009 hardcode_shlibpath_var=no
10012 hardcode_direct=yes
10013 hardcode_direct_absolute=yes
10014 export_dynamic_flag_spec='${wl}-E'
10016 # hardcode_minus_L: Not really in the search PATH,
10017 # but as the default location of the library.
10018 hardcode_minus_L=yes
10024 irix5* | irix6* | nonstopux*)
10025 if test "$GCC" = yes; then
10026 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'
10027 # Try to use the -exported_symbol ld option, if it does not
10028 # work, assume that -exports_file does not work either and
10029 # implicitly export all symbols.
10030 # This should be the same for all languages, so no per-tag cache variable.
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10032 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10033 if ${lt_cv_irix_exported_symbol+:} false; then :
10034 $as_echo_n "(cached) " >&6
10036 save_LDFLAGS="$LDFLAGS"
10037 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h. */
10040 int foo (void) { return 0; }
10042 if ac_fn_c_try_link "$LINENO"; then :
10043 lt_cv_irix_exported_symbol=yes
10045 lt_cv_irix_exported_symbol=no
10047 rm -f core conftest.err conftest.$ac_objext \
10048 conftest$ac_exeext conftest.$ac_ext
10049 LDFLAGS="$save_LDFLAGS"
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10052 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10053 if test "$lt_cv_irix_exported_symbol" = yes; then
10054 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'
10057 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'
10058 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'
10060 archive_cmds_need_lc='no'
10061 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10062 hardcode_libdir_separator=:
10064 link_all_deplibs=yes
10068 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10069 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10071 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10073 hardcode_libdir_flag_spec='-R$libdir'
10074 hardcode_direct=yes
10075 hardcode_shlibpath_var=no
10079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10080 hardcode_direct=yes
10081 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10082 hardcode_libdir_separator=:
10083 hardcode_shlibpath_var=no
10090 if test -f /usr/libexec/ld.so; then
10091 hardcode_direct=yes
10092 hardcode_shlibpath_var=no
10093 hardcode_direct_absolute=yes
10094 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10095 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10096 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10097 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10098 export_dynamic_flag_spec='${wl}-E'
10101 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10102 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10103 hardcode_libdir_flag_spec='-R$libdir'
10106 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10107 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10117 hardcode_libdir_flag_spec='-L$libdir'
10118 hardcode_minus_L=yes
10119 allow_undefined_flag=unsupported
10120 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'
10121 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10125 if test "$GCC" = yes; then
10126 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10127 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'
10129 allow_undefined_flag=' -expect_unresolved \*'
10130 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'
10132 archive_cmds_need_lc='no'
10133 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10134 hardcode_libdir_separator=:
10137 osf4* | osf5*) # as osf3* with the addition of -msym flag
10138 if test "$GCC" = yes; then
10139 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10140 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'
10141 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10143 allow_undefined_flag=' -expect_unresolved \*'
10144 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'
10145 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~
10146 $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'
10148 # Both c and cxx compiler support -rpath directly
10149 hardcode_libdir_flag_spec='-rpath $libdir'
10151 archive_cmds_need_lc='no'
10152 hardcode_libdir_separator=:
10156 no_undefined_flag=' -z defs'
10157 if test "$GCC" = yes; then
10159 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10160 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10161 $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'
10163 case `$CC -V 2>&1` in
10166 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10167 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10168 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10172 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10173 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10174 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10178 hardcode_libdir_flag_spec='-R$libdir'
10179 hardcode_shlibpath_var=no
10181 solaris2.[0-5] | solaris2.[0-5].*) ;;
10183 # The compiler driver will combine and reorder linker options,
10184 # but understands `-z linker_flag'. GCC discards it without `$wl',
10185 # but is careful enough not to reorder.
10186 # Supported since Solaris 2.6 (maybe 2.5.1?)
10187 if test "$GCC" = yes; then
10188 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10190 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10194 link_all_deplibs=yes
10198 if test "x$host_vendor" = xsequent; then
10199 # Use $CC to link under sequent, because it throws in some extra .o
10200 # files that make .init and .fini sections work.
10201 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10203 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10205 hardcode_libdir_flag_spec='-L$libdir'
10206 hardcode_direct=yes
10207 hardcode_minus_L=yes
10208 hardcode_shlibpath_var=no
10212 case $host_vendor in
10214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215 hardcode_direct=yes # is this really true???
10218 ## LD is ld it makes a PLAMLIB
10219 ## CC just makes a GrossModule.
10220 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10221 reload_cmds='$CC -r -o $output$reload_objs'
10225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10226 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10229 runpath_var='LD_RUN_PATH'
10230 hardcode_shlibpath_var=no
10234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10235 hardcode_shlibpath_var=no
10236 export_dynamic_flag_spec='-Bexport'
10240 if test -d /usr/nec; then
10241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10242 hardcode_shlibpath_var=no
10243 runpath_var=LD_RUN_PATH
10244 hardcode_runpath_var=yes
10249 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10250 no_undefined_flag='${wl}-z,text'
10251 archive_cmds_need_lc=no
10252 hardcode_shlibpath_var=no
10253 runpath_var='LD_RUN_PATH'
10255 if test "$GCC" = yes; then
10256 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10257 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10259 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10260 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264 sysv5* | sco3.2v5* | sco5v6*)
10265 # Note: We can NOT use -z defs as we might desire, because we do not
10266 # link with -lc, and that would cause any symbols used from libc to
10267 # always be unresolved, which means just about no library would
10268 # ever link correctly. If we're not using GNU ld we use -z text
10269 # though, which does catch some bad symbols but isn't as heavy-handed
10271 no_undefined_flag='${wl}-z,text'
10272 allow_undefined_flag='${wl}-z,nodefs'
10273 archive_cmds_need_lc=no
10274 hardcode_shlibpath_var=no
10275 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10276 hardcode_libdir_separator=':'
10277 link_all_deplibs=yes
10278 export_dynamic_flag_spec='${wl}-Bexport'
10279 runpath_var='LD_RUN_PATH'
10281 if test "$GCC" = yes; then
10282 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10283 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10285 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10286 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10291 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10292 hardcode_libdir_flag_spec='-L$libdir'
10293 hardcode_shlibpath_var=no
10301 if test x$host_vendor = xsni; then
10303 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10304 export_dynamic_flag_spec='${wl}-Blargedynsym'
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10311 $as_echo "$ld_shlibs" >&6; }
10312 test "$ld_shlibs" = no && can_build_shared=no
10314 with_gnu_ld=$with_gnu_ld
10331 # Do we need to explicitly link libc?
10333 case "x$archive_cmds_need_lc" in
10335 # Assume -lc should be added
10336 archive_cmds_need_lc=yes
10338 if test "$enable_shared" = yes && test "$GCC" = yes; then
10339 case $archive_cmds in
10341 # FIXME: we may have to deal with multi-command sequences.
10344 # Test whether the compiler implicitly links with -lc since on some
10345 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10346 # to ld, don't add -lc before -lgcc.
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10348 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10349 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10350 $as_echo_n "(cached) " >&6
10353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10356 (eval $ac_compile) 2>&5
10358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10359 test $ac_status = 0; } 2>conftest.err; then
10362 libobjs=conftest.$ac_objext
10364 wl=$lt_prog_compiler_wl
10365 pic_flag=$lt_prog_compiler_pic
10371 lt_save_allow_undefined_flag=$allow_undefined_flag
10372 allow_undefined_flag=
10373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10374 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10377 test $ac_status = 0; }
10379 lt_cv_archive_cmds_need_lc=no
10381 lt_cv_archive_cmds_need_lc=yes
10383 allow_undefined_flag=$lt_save_allow_undefined_flag
10385 cat conftest.err 1>&5
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10391 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10392 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10556 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10558 if test "$GCC" = yes; then
10560 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10561 *) lt_awk_arg="/^libraries:/" ;;
10564 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10565 *) lt_sed_strip_eq="s,=/,/,g" ;;
10567 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10568 case $lt_search_path_spec in
10570 # if the path contains ";" then we assume it to be the separator
10571 # otherwise default to the standard path separator (i.e. ":") - it is
10572 # assumed that no part of a normal pathname contains ";" but that should
10573 # okay in the real world where ";" in dirpaths is itself problematic.
10574 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10577 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10580 # Ok, now we have the path, separated by spaces, we can step through it
10581 # and add multilib dir if necessary.
10582 lt_tmp_lt_search_path_spec=
10583 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10584 for lt_sys_path in $lt_search_path_spec; do
10585 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10586 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10588 test -d "$lt_sys_path" && \
10589 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10592 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10593 BEGIN {RS=" "; FS="/|\n";} {
10596 for (lt_i = NF; lt_i > 0; lt_i--) {
10597 if ($lt_i != "" && $lt_i != ".") {
10598 if ($lt_i == "..") {
10601 if (lt_count == 0) {
10602 lt_foo="/" $lt_i lt_foo;
10609 if (lt_foo != "") { lt_freq[lt_foo]++; }
10610 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10612 # AWK program above erroneously prepends '/' to C:/dos/paths
10615 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10616 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10618 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10620 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10622 library_names_spec=
10623 libname_spec='lib$name'
10627 postuninstall_cmds=
10631 shlibpath_overrides_runpath=unknown
10633 dynamic_linker="$host_os ld.so"
10634 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10635 need_lib_prefix=unknown
10636 hardcode_into_libs=no
10638 # when you set need_version to no, make sure it does not cause -set_version
10639 # flags to be left without arguments
10640 need_version=unknown
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10646 shlibpath_var=LIBPATH
10648 # AIX 3 has no versioning support, so we append a major version to the name.
10649 soname_spec='${libname}${release}${shared_ext}$major'
10656 hardcode_into_libs=yes
10657 if test "$host_cpu" = ia64; then
10658 # AIX 5 supports IA64
10659 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10660 shlibpath_var=LD_LIBRARY_PATH
10662 # With GCC up to 2.95.x, collect2 would create an import file
10663 # for dependence libraries. The import file would start with
10664 # the line `#! .'. This would cause the generated library to
10665 # depend on `.', always an invalid library. This was fixed in
10666 # development snapshots of GCC prior to 3.0.
10668 aix4 | aix4.[01] | aix4.[01].*)
10669 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10671 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10674 can_build_shared=no
10678 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10679 # soname into executable. Probably we can add versioning support to
10680 # collect2, so additional links can be useful in future.
10681 if test "$aix_use_runtimelinking" = yes; then
10682 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10683 # instead of lib<name>.a to let people know that these are not
10684 # typical AIX shared libraries.
10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687 # We preserve .a as extension for shared libraries through AIX4.2
10688 # and later when we are not doing run time linking.
10689 library_names_spec='${libname}${release}.a $libname.a'
10690 soname_spec='${libname}${release}${shared_ext}$major'
10692 shlibpath_var=LIBPATH
10699 # Since July 2007 AmigaOS4 officially supports .so libraries.
10700 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10704 library_names_spec='$libname.ixlibrary $libname.a'
10705 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10706 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'
10712 library_names_spec='${libname}${shared_ext}'
10713 dynamic_linker="$host_os ld.so"
10714 shlibpath_var=LIBRARY_PATH
10720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10721 soname_spec='${libname}${release}${shared_ext}$major'
10722 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10723 shlibpath_var=LD_LIBRARY_PATH
10724 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10725 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10726 # the default ld.so.conf also contains /usr/contrib/lib and
10727 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10728 # libtool to hard-code these into programs
10731 cygwin* | mingw* | pw32* | cegcc*)
10732 version_type=windows
10737 case $GCC,$cc_basename in
10740 library_names_spec='$libname.dll.a'
10741 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10742 postinstall_cmds='base_file=`basename \${file}`~
10743 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10744 dldir=$destdir/`dirname \$dlpath`~
10745 test -d \$dldir || mkdir -p \$dldir~
10746 $install_prog $dir/$dlname \$dldir/$dlname~
10747 chmod a+x \$dldir/$dlname~
10748 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10749 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10752 dlpath=$dir/\$dldll~
10754 shlibpath_overrides_runpath=yes
10758 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10759 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10761 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10764 # MinGW DLLs use traditional 'lib' prefix
10765 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10768 # pw32 DLLs use 'pw' prefix rather than 'lib'
10769 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10772 dynamic_linker='Win32 ld.exe'
10777 libname_spec='$name'
10778 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10779 library_names_spec='${libname}.dll.lib'
10783 sys_lib_search_path_spec=
10786 for lt_path in $LIB
10789 # Let DOS variable expansion print the short 8.3 style file name.
10790 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10791 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10794 # Convert to MSYS style.
10795 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10798 # Convert to unix form, then to dos form, then back to unix form
10799 # but this time dos style (no spaces!) so that the unix form looks
10800 # like /cygdrive/c/PROGRA~1:/cygdr...
10801 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10802 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10803 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10806 sys_lib_search_path_spec="$LIB"
10807 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10808 # It is most probably a Windows format PATH.
10809 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10811 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10813 # FIXME: find the short name or the path components, as spaces are
10814 # common. (e.g. "Program Files" -> "PROGRA~1")
10818 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10819 postinstall_cmds='base_file=`basename \${file}`~
10820 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10821 dldir=$destdir/`dirname \$dlpath`~
10822 test -d \$dldir || mkdir -p \$dldir~
10823 $install_prog $dir/$dlname \$dldir/$dlname'
10824 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10825 dlpath=$dir/\$dldll~
10827 shlibpath_overrides_runpath=yes
10828 dynamic_linker='Win32 link.exe'
10832 # Assume MSVC wrapper
10833 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10834 dynamic_linker='Win32 ld.exe'
10837 # FIXME: first we should search . and the directory the executable is in
10841 darwin* | rhapsody*)
10842 dynamic_linker="$host_os dyld"
10843 version_type=darwin
10846 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10847 soname_spec='${libname}${release}${major}$shared_ext'
10848 shlibpath_overrides_runpath=yes
10849 shlibpath_var=DYLD_LIBRARY_PATH
10850 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10852 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10853 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10861 soname_spec='${libname}${release}${shared_ext}$major'
10862 shlibpath_var=LD_LIBRARY_PATH
10869 freebsd* | dragonfly*)
10870 # DragonFly does not have aout. When/if they implement a new
10871 # versioning mechanism, adjust this.
10872 if test -x /usr/bin/objformat; then
10873 objformat=`/usr/bin/objformat`
10876 freebsd[123]*) objformat=aout ;;
10877 *) objformat=elf ;;
10880 version_type=freebsd-$objformat
10881 case $version_type in
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10892 shlibpath_var=LD_LIBRARY_PATH
10895 shlibpath_overrides_runpath=yes
10897 freebsd3.[01]* | freebsdelf3.[01]*)
10898 shlibpath_overrides_runpath=yes
10899 hardcode_into_libs=yes
10901 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10902 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10903 shlibpath_overrides_runpath=no
10904 hardcode_into_libs=yes
10906 *) # from 4.6 on, and DragonFly
10907 shlibpath_overrides_runpath=yes
10908 hardcode_into_libs=yes
10917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10918 soname_spec='${libname}${release}${shared_ext}$major'
10919 shlibpath_var=LD_LIBRARY_PATH
10920 hardcode_into_libs=yes
10927 dynamic_linker="$host_os runtime_loader"
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10929 soname_spec='${libname}${release}${shared_ext}$major'
10930 shlibpath_var=LIBRARY_PATH
10931 shlibpath_overrides_runpath=yes
10932 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10933 hardcode_into_libs=yes
10936 hpux9* | hpux10* | hpux11*)
10937 # Give a soname corresponding to the major version so that dld.sl refuses to
10938 # link against other versions.
10945 hardcode_into_libs=yes
10946 dynamic_linker="$host_os dld.so"
10947 shlibpath_var=LD_LIBRARY_PATH
10948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10950 soname_spec='${libname}${release}${shared_ext}$major'
10951 if test "X$HPUX_IA64_MODE" = X32; then
10952 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10954 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10960 hardcode_into_libs=yes
10961 dynamic_linker="$host_os dld.sl"
10962 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10965 soname_spec='${libname}${release}${shared_ext}$major'
10966 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10971 dynamic_linker="$host_os dld.sl"
10972 shlibpath_var=SHLIB_PATH
10973 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975 soname_spec='${libname}${release}${shared_ext}$major'
10978 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10979 postinstall_cmds='chmod 555 $lib'
10980 # or fails outright, so override atomically:
10981 install_override_mode=555
10988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10989 soname_spec='${libname}${release}${shared_ext}$major'
10990 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 shlibpath_overrides_runpath=no
10993 hardcode_into_libs=yes
10996 irix5* | irix6* | nonstopux*)
10998 nonstopux*) version_type=nonstopux ;;
11000 if test "$lt_cv_prog_gnu_ld" = yes; then
11008 soname_spec='${libname}${release}${shared_ext}$major'
11009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11011 irix5* | nonstopux*)
11012 libsuff= shlibsuff=
11015 case $LD in # libtool.m4 will add one of these switches to LD
11016 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11017 libsuff= shlibsuff= libmagic=32-bit;;
11018 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11019 libsuff=32 shlibsuff=N32 libmagic=N32;;
11020 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11021 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11022 *) libsuff= shlibsuff= libmagic=never-match;;
11026 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11027 shlibpath_overrides_runpath=no
11028 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11029 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11030 hardcode_into_libs=yes
11033 # No shared lib support for Linux oldld, aout, or coff.
11034 linux*oldld* | linux*aout* | linux*coff*)
11038 # This must be Linux ELF.
11039 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11044 soname_spec='${libname}${release}${shared_ext}$major'
11045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 shlibpath_overrides_runpath=no
11049 # Some binutils ld are patched to set DT_RUNPATH
11050 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11051 $as_echo_n "(cached) " >&6
11053 lt_cv_shlibpath_overrides_runpath=no
11054 save_LDFLAGS=$LDFLAGS
11055 save_libdir=$libdir
11056 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11057 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059 /* end confdefs.h. */
11069 if ac_fn_c_try_link "$LINENO"; then :
11070 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11071 lt_cv_shlibpath_overrides_runpath=yes
11074 rm -f core conftest.err conftest.$ac_objext \
11075 conftest$ac_exeext conftest.$ac_ext
11076 LDFLAGS=$save_LDFLAGS
11077 libdir=$save_libdir
11081 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11083 # This implies no fast_install, which is unacceptable.
11084 # Some rework will be needed to allow for fast_install
11085 # before this can be enabled.
11086 hardcode_into_libs=yes
11088 # Append ld.so.conf contents to the search path
11089 if test -f /etc/ld.so.conf; then
11090 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' ' '`
11091 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11094 # We used to test for /lib/ld.so.1 and disable shared libraries on
11095 # powerpc, because MkLinux only supported shared libraries with the
11096 # GNU dynamic linker. Since this was broken with cross compilers,
11097 # most powerpc-linux boxes support dynamic linking these days and
11098 # people can always --disable-shared, the test was removed, and we
11099 # assume the GNU/Linux dynamic linker is in use.
11100 dynamic_linker='GNU/Linux ld.so'
11107 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11110 dynamic_linker='NetBSD (a.out) ld.so'
11112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11113 soname_spec='${libname}${release}${shared_ext}$major'
11114 dynamic_linker='NetBSD ld.elf_so'
11116 shlibpath_var=LD_LIBRARY_PATH
11117 shlibpath_overrides_runpath=yes
11118 hardcode_into_libs=yes
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124 shlibpath_var=LD_LIBRARY_PATH
11125 shlibpath_overrides_runpath=yes
11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11133 soname_spec='${libname}${release}${shared_ext}$major'
11134 shlibpath_var=LD_LIBRARY_PATH
11135 shlibpath_overrides_runpath=no
11136 hardcode_into_libs=yes
11137 dynamic_linker='ldqnx.so'
11142 sys_lib_dlsearch_path_spec="/usr/lib"
11144 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11146 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11147 *) need_version=no ;;
11149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11151 shlibpath_var=LD_LIBRARY_PATH
11152 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11154 openbsd2.[89] | openbsd2.[89].*)
11155 shlibpath_overrides_runpath=no
11158 shlibpath_overrides_runpath=yes
11162 shlibpath_overrides_runpath=yes
11167 libname_spec='$name'
11170 library_names_spec='$libname${shared_ext} $libname.a'
11171 dynamic_linker='OS/2 ld.exe'
11172 shlibpath_var=LIBPATH
11175 osf3* | osf4* | osf5*)
11179 soname_spec='${libname}${release}${shared_ext}$major'
11180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11181 shlibpath_var=LD_LIBRARY_PATH
11182 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11183 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11195 soname_spec='${libname}${release}${shared_ext}$major'
11196 shlibpath_var=LD_LIBRARY_PATH
11197 shlibpath_overrides_runpath=yes
11198 hardcode_into_libs=yes
11199 # ldd complains unless libraries are executable
11200 postinstall_cmds='chmod +x $lib'
11205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11206 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11207 shlibpath_var=LD_LIBRARY_PATH
11208 shlibpath_overrides_runpath=yes
11209 if test "$with_gnu_ld" = yes; then
11217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11218 soname_spec='${libname}${release}${shared_ext}$major'
11219 shlibpath_var=LD_LIBRARY_PATH
11220 case $host_vendor in
11222 shlibpath_overrides_runpath=no
11224 runpath_var=LD_RUN_PATH
11232 shlibpath_overrides_runpath=no
11233 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11239 if test -d /usr/nec ;then
11241 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11242 soname_spec='$libname${shared_ext}.$major'
11243 shlibpath_var=LD_LIBRARY_PATH
11247 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11248 version_type=freebsd-elf
11251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11252 soname_spec='${libname}${release}${shared_ext}$major'
11253 shlibpath_var=LD_LIBRARY_PATH
11254 shlibpath_overrides_runpath=yes
11255 hardcode_into_libs=yes
11256 if test "$with_gnu_ld" = yes; then
11257 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11259 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11262 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11266 sys_lib_dlsearch_path_spec='/usr/lib'
11270 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11275 shlibpath_var=LD_LIBRARY_PATH
11276 shlibpath_overrides_runpath=no
11277 hardcode_into_libs=yes
11282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11283 soname_spec='${libname}${release}${shared_ext}$major'
11284 shlibpath_var=LD_LIBRARY_PATH
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11292 $as_echo "$dynamic_linker" >&6; }
11293 test "$dynamic_linker" = no && can_build_shared=no
11295 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11296 if test "$GCC" = yes; then
11297 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11300 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11301 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11303 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11304 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11399 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11401 if test -n "$hardcode_libdir_flag_spec" ||
11402 test -n "$runpath_var" ||
11403 test "X$hardcode_automatic" = "Xyes" ; then
11405 # We can hardcode non-existent directories.
11406 if test "$hardcode_direct" != no &&
11407 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11408 # have to relink, otherwise we might link with an installed library
11409 # when we should be linking with a yet-to-be-installed one
11410 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11411 test "$hardcode_minus_L" != no; then
11412 # Linking always hardcodes the temporary library directory.
11413 hardcode_action=relink
11415 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11416 hardcode_action=immediate
11419 # We cannot hardcode anything, or else we can only hardcode existing
11421 hardcode_action=unsupported
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11424 $as_echo "$hardcode_action" >&6; }
11426 if test "$hardcode_action" = relink ||
11427 test "$inherit_rpath" = yes; then
11428 # Fast installation is not supported
11429 enable_fast_install=no
11430 elif test "$shlibpath_overrides_runpath" = yes ||
11431 test "$enable_shared" = no; then
11432 # Fast installation is not necessary
11433 enable_fast_install=needless
11441 if test "x$enable_dlopen" != xyes; then
11442 enable_dlopen=unknown
11443 enable_dlopen_self=unknown
11444 enable_dlopen_self_static=unknown
11451 lt_cv_dlopen="load_add_on"
11453 lt_cv_dlopen_self=yes
11456 mingw* | pw32* | cegcc*)
11457 lt_cv_dlopen="LoadLibrary"
11462 lt_cv_dlopen="dlopen"
11467 # if libdl is installed we need to link against it
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11469 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11470 if ${ac_cv_lib_dl_dlopen+:} false; then :
11471 $as_echo_n "(cached) " >&6
11473 ac_check_lib_save_LIBS=$LIBS
11475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h. */
11478 /* Override any GCC internal prototype to avoid an error.
11479 Use char because int might match the return type of a GCC
11480 builtin and then its argument prototype would still apply. */
11493 if ac_fn_c_try_link "$LINENO"; then :
11494 ac_cv_lib_dl_dlopen=yes
11496 ac_cv_lib_dl_dlopen=no
11498 rm -f core conftest.err conftest.$ac_objext \
11499 conftest$ac_exeext conftest.$ac_ext
11500 LIBS=$ac_check_lib_save_LIBS
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11503 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11504 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11505 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11508 lt_cv_dlopen="dyld"
11510 lt_cv_dlopen_self=yes
11517 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11518 if test "x$ac_cv_func_shl_load" = xyes; then :
11519 lt_cv_dlopen="shl_load"
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11522 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11523 if ${ac_cv_lib_dld_shl_load+:} false; then :
11524 $as_echo_n "(cached) " >&6
11526 ac_check_lib_save_LIBS=$LIBS
11528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h. */
11531 /* Override any GCC internal prototype to avoid an error.
11532 Use char because int might match the return type of a GCC
11533 builtin and then its argument prototype would still apply. */
11541 return shl_load ();
11546 if ac_fn_c_try_link "$LINENO"; then :
11547 ac_cv_lib_dld_shl_load=yes
11549 ac_cv_lib_dld_shl_load=no
11551 rm -f core conftest.err conftest.$ac_objext \
11552 conftest$ac_exeext conftest.$ac_ext
11553 LIBS=$ac_check_lib_save_LIBS
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11556 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11557 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11558 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11560 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11561 if test "x$ac_cv_func_dlopen" = xyes; then :
11562 lt_cv_dlopen="dlopen"
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11565 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11566 if ${ac_cv_lib_dl_dlopen+:} false; then :
11567 $as_echo_n "(cached) " >&6
11569 ac_check_lib_save_LIBS=$LIBS
11571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572 /* end confdefs.h. */
11574 /* Override any GCC internal prototype to avoid an error.
11575 Use char because int might match the return type of a GCC
11576 builtin and then its argument prototype would still apply. */
11589 if ac_fn_c_try_link "$LINENO"; then :
11590 ac_cv_lib_dl_dlopen=yes
11592 ac_cv_lib_dl_dlopen=no
11594 rm -f core conftest.err conftest.$ac_objext \
11595 conftest$ac_exeext conftest.$ac_ext
11596 LIBS=$ac_check_lib_save_LIBS
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11599 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11600 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11601 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11604 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11605 if ${ac_cv_lib_svld_dlopen+:} false; then :
11606 $as_echo_n "(cached) " >&6
11608 ac_check_lib_save_LIBS=$LIBS
11609 LIBS="-lsvld $LIBS"
11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11613 /* Override any GCC internal prototype to avoid an error.
11614 Use char because int might match the return type of a GCC
11615 builtin and then its argument prototype would still apply. */
11628 if ac_fn_c_try_link "$LINENO"; then :
11629 ac_cv_lib_svld_dlopen=yes
11631 ac_cv_lib_svld_dlopen=no
11633 rm -f core conftest.err conftest.$ac_objext \
11634 conftest$ac_exeext conftest.$ac_ext
11635 LIBS=$ac_check_lib_save_LIBS
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11638 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11639 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11640 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11643 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11644 if ${ac_cv_lib_dld_dld_link+:} false; then :
11645 $as_echo_n "(cached) " >&6
11647 ac_check_lib_save_LIBS=$LIBS
11649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11650 /* end confdefs.h. */
11652 /* Override any GCC internal prototype to avoid an error.
11653 Use char because int might match the return type of a GCC
11654 builtin and then its argument prototype would still apply. */
11662 return dld_link ();
11667 if ac_fn_c_try_link "$LINENO"; then :
11668 ac_cv_lib_dld_dld_link=yes
11670 ac_cv_lib_dld_dld_link=no
11672 rm -f core conftest.err conftest.$ac_objext \
11673 conftest$ac_exeext conftest.$ac_ext
11674 LIBS=$ac_check_lib_save_LIBS
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11677 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11678 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11679 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11700 if test "x$lt_cv_dlopen" != xno; then
11706 case $lt_cv_dlopen in
11708 save_CPPFLAGS="$CPPFLAGS"
11709 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11711 save_LDFLAGS="$LDFLAGS"
11712 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11715 LIBS="$lt_cv_dlopen_libs $LIBS"
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11718 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11719 if ${lt_cv_dlopen_self+:} false; then :
11720 $as_echo_n "(cached) " >&6
11722 if test "$cross_compiling" = yes; then :
11723 lt_cv_dlopen_self=cross
11725 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11726 lt_status=$lt_dlunknown
11727 cat > conftest.$ac_ext <<_LT_EOF
11728 #line $LINENO "configure"
11729 #include "confdefs.h"
11738 # define LT_DLGLOBAL RTLD_GLOBAL
11741 # define LT_DLGLOBAL DL_GLOBAL
11743 # define LT_DLGLOBAL 0
11747 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11748 find out it does not work in some platform. */
11749 #ifndef LT_DLLAZY_OR_NOW
11751 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11754 # define LT_DLLAZY_OR_NOW DL_LAZY
11757 # define LT_DLLAZY_OR_NOW RTLD_NOW
11760 # define LT_DLLAZY_OR_NOW DL_NOW
11762 # define LT_DLLAZY_OR_NOW 0
11769 /* When -fvisbility=hidden is used, assume the code has been annotated
11770 correspondingly for the symbols needed. */
11771 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11772 int fnord () __attribute__((visibility("default")));
11775 int fnord () { return 42; }
11778 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11779 int status = $lt_dlunknown;
11783 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11786 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11787 else puts (dlerror ());
11789 /* dlclose (self); */
11797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11798 (eval $ac_link) 2>&5
11800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11801 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11802 (./conftest; exit; ) >&5 2>/dev/null
11804 case x$lt_status in
11805 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11806 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11807 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11810 # compilation failed
11811 lt_cv_dlopen_self=no
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11819 $as_echo "$lt_cv_dlopen_self" >&6; }
11821 if test "x$lt_cv_dlopen_self" = xyes; then
11822 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11824 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11825 if ${lt_cv_dlopen_self_static+:} false; then :
11826 $as_echo_n "(cached) " >&6
11828 if test "$cross_compiling" = yes; then :
11829 lt_cv_dlopen_self_static=cross
11831 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11832 lt_status=$lt_dlunknown
11833 cat > conftest.$ac_ext <<_LT_EOF
11834 #line $LINENO "configure"
11835 #include "confdefs.h"
11844 # define LT_DLGLOBAL RTLD_GLOBAL
11847 # define LT_DLGLOBAL DL_GLOBAL
11849 # define LT_DLGLOBAL 0
11853 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11854 find out it does not work in some platform. */
11855 #ifndef LT_DLLAZY_OR_NOW
11857 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11860 # define LT_DLLAZY_OR_NOW DL_LAZY
11863 # define LT_DLLAZY_OR_NOW RTLD_NOW
11866 # define LT_DLLAZY_OR_NOW DL_NOW
11868 # define LT_DLLAZY_OR_NOW 0
11875 /* When -fvisbility=hidden is used, assume the code has been annotated
11876 correspondingly for the symbols needed. */
11877 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11878 int fnord () __attribute__((visibility("default")));
11881 int fnord () { return 42; }
11884 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11885 int status = $lt_dlunknown;
11889 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11892 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11893 else puts (dlerror ());
11895 /* dlclose (self); */
11903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11904 (eval $ac_link) 2>&5
11906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11907 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11908 (./conftest; exit; ) >&5 2>/dev/null
11910 case x$lt_status in
11911 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11912 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11913 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11916 # compilation failed
11917 lt_cv_dlopen_self_static=no
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11925 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11928 CPPFLAGS="$save_CPPFLAGS"
11929 LDFLAGS="$save_LDFLAGS"
11934 case $lt_cv_dlopen_self in
11935 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11936 *) enable_dlopen_self=unknown ;;
11939 case $lt_cv_dlopen_self_static in
11940 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11941 *) enable_dlopen_self_static=unknown ;;
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11964 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11965 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11966 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11967 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11969 $as_echo "yes" >&6; }
11971 # FIXME - insert some real tests, host_os isn't really good enough
11974 if test -n "$STRIP" ; then
11975 striplib="$STRIP -x"
11976 old_striplib="$STRIP -S"
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11978 $as_echo "yes" >&6; }
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981 $as_echo "no" >&6; }
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
12002 # Report which library types will actually be built
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12004 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12006 $as_echo "$can_build_shared" >&6; }
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12009 $as_echo_n "checking whether to build shared libraries... " >&6; }
12010 test "$can_build_shared" = "no" && enable_shared=no
12012 # On AIX, shared libraries and static libraries use the same namespace, and
12013 # are all built from PIC.
12016 test "$enable_shared" = yes && enable_static=no
12017 if test -n "$RANLIB"; then
12018 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12019 postinstall_cmds='$RANLIB $lib'
12024 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12025 test "$enable_shared" = yes && enable_static=no
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12030 $as_echo "$enable_shared" >&6; }
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12033 $as_echo_n "checking whether to build static libraries... " >&6; }
12034 # Make sure either enable_shared or enable_static is yes.
12035 test "$enable_shared" = yes || enable_static=yes
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12037 $as_echo "$enable_static" >&6; }
12044 ac_cpp='$CPP $CPPFLAGS'
12045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12063 ac_config_commands="$ac_config_commands libtool"
12068 # Only expand once:
12074 if test "$enable_libevent_regress" = "yes"; then
12075 BUILD_REGRESS_TRUE=
12076 BUILD_REGRESS_FALSE='#'
12078 BUILD_REGRESS_TRUE='#'
12079 BUILD_REGRESS_FALSE=
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
12084 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
12085 if ${ac_cv_search_inet_ntoa+:} false; then :
12086 $as_echo_n "(cached) " >&6
12088 ac_func_search_save_LIBS=$LIBS
12089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12090 /* end confdefs.h. */
12092 /* Override any GCC internal prototype to avoid an error.
12093 Use char because int might match the return type of a GCC
12094 builtin and then its argument prototype would still apply. */
12102 return inet_ntoa ();
12107 for ac_lib in '' nsl; do
12108 if test -z "$ac_lib"; then
12109 ac_res="none required"
12112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12114 if ac_fn_c_try_link "$LINENO"; then :
12115 ac_cv_search_inet_ntoa=$ac_res
12117 rm -f core conftest.err conftest.$ac_objext \
12119 if ${ac_cv_search_inet_ntoa+:} false; then :
12123 if ${ac_cv_search_inet_ntoa+:} false; then :
12126 ac_cv_search_inet_ntoa=no
12128 rm conftest.$ac_ext
12129 LIBS=$ac_func_search_save_LIBS
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12132 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
12133 ac_res=$ac_cv_search_inet_ntoa
12134 if test "$ac_res" != no; then :
12135 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12140 $as_echo_n "checking for library containing socket... " >&6; }
12141 if ${ac_cv_search_socket+:} false; then :
12142 $as_echo_n "(cached) " >&6
12144 ac_func_search_save_LIBS=$LIBS
12145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146 /* end confdefs.h. */
12148 /* Override any GCC internal prototype to avoid an error.
12149 Use char because int might match the return type of a GCC
12150 builtin and then its argument prototype would still apply. */
12163 for ac_lib in '' socket; do
12164 if test -z "$ac_lib"; then
12165 ac_res="none required"
12168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12170 if ac_fn_c_try_link "$LINENO"; then :
12171 ac_cv_search_socket=$ac_res
12173 rm -f core conftest.err conftest.$ac_objext \
12175 if ${ac_cv_search_socket+:} false; then :
12179 if ${ac_cv_search_socket+:} false; then :
12182 ac_cv_search_socket=no
12184 rm conftest.$ac_ext
12185 LIBS=$ac_func_search_save_LIBS
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12188 $as_echo "$ac_cv_search_socket" >&6; }
12189 ac_res=$ac_cv_search_socket
12190 if test "$ac_res" != no; then :
12191 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12196 $as_echo_n "checking for library containing inet_aton... " >&6; }
12197 if ${ac_cv_search_inet_aton+:} false; then :
12198 $as_echo_n "(cached) " >&6
12200 ac_func_search_save_LIBS=$LIBS
12201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202 /* end confdefs.h. */
12204 /* Override any GCC internal prototype to avoid an error.
12205 Use char because int might match the return type of a GCC
12206 builtin and then its argument prototype would still apply. */
12214 return inet_aton ();
12219 for ac_lib in '' resolv; do
12220 if test -z "$ac_lib"; then
12221 ac_res="none required"
12224 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12226 if ac_fn_c_try_link "$LINENO"; then :
12227 ac_cv_search_inet_aton=$ac_res
12229 rm -f core conftest.err conftest.$ac_objext \
12231 if ${ac_cv_search_inet_aton+:} false; then :
12235 if ${ac_cv_search_inet_aton+:} false; then :
12238 ac_cv_search_inet_aton=no
12240 rm conftest.$ac_ext
12241 LIBS=$ac_func_search_save_LIBS
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12244 $as_echo "$ac_cv_search_inet_aton" >&6; }
12245 ac_res=$ac_cv_search_inet_aton
12246 if test "$ac_res" != no; then :
12247 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12252 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12253 if ${ac_cv_search_clock_gettime+:} false; then :
12254 $as_echo_n "(cached) " >&6
12256 ac_func_search_save_LIBS=$LIBS
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12260 /* Override any GCC internal prototype to avoid an error.
12261 Use char because int might match the return type of a GCC
12262 builtin and then its argument prototype would still apply. */
12266 char clock_gettime ();
12270 return clock_gettime ();
12275 for ac_lib in '' rt; do
12276 if test -z "$ac_lib"; then
12277 ac_res="none required"
12280 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12282 if ac_fn_c_try_link "$LINENO"; then :
12283 ac_cv_search_clock_gettime=$ac_res
12285 rm -f core conftest.err conftest.$ac_objext \
12287 if ${ac_cv_search_clock_gettime+:} false; then :
12291 if ${ac_cv_search_clock_gettime+:} false; then :
12294 ac_cv_search_clock_gettime=no
12296 rm conftest.$ac_ext
12297 LIBS=$ac_func_search_save_LIBS
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12300 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12301 ac_res=$ac_cv_search_clock_gettime
12302 if test "$ac_res" != no; then :
12303 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12308 $as_echo_n "checking for library containing sendfile... " >&6; }
12309 if ${ac_cv_search_sendfile+:} false; then :
12310 $as_echo_n "(cached) " >&6
12312 ac_func_search_save_LIBS=$LIBS
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h. */
12316 /* Override any GCC internal prototype to avoid an error.
12317 Use char because int might match the return type of a GCC
12318 builtin and then its argument prototype would still apply. */
12326 return sendfile ();
12331 for ac_lib in '' sendfile; do
12332 if test -z "$ac_lib"; then
12333 ac_res="none required"
12336 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12338 if ac_fn_c_try_link "$LINENO"; then :
12339 ac_cv_search_sendfile=$ac_res
12341 rm -f core conftest.err conftest.$ac_objext \
12343 if ${ac_cv_search_sendfile+:} false; then :
12347 if ${ac_cv_search_sendfile+:} false; then :
12350 ac_cv_search_sendfile=no
12352 rm conftest.$ac_ext
12353 LIBS=$ac_func_search_save_LIBS
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
12356 $as_echo "$ac_cv_search_sendfile" >&6; }
12357 ac_res=$ac_cv_search_sendfile
12358 if test "$ac_res" != no; then :
12359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
12365 $as_echo_n "checking for WIN32... " >&6; }
12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12381 if ac_fn_c_try_compile "$LINENO"; then :
12382 bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12383 $as_echo "yes" >&6; }
12385 bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12386 $as_echo "no" >&6; }
12388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
12391 $as_echo_n "checking for CYGWIN... " >&6; }
12392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393 /* end confdefs.h. */
12407 if ac_fn_c_try_compile "$LINENO"; then :
12408 cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12409 $as_echo "yes" >&6; }
12411 cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12412 $as_echo "no" >&6; }
12414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12416 for ac_header in zlib.h
12418 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12419 if test "x$ac_cv_header_zlib_h" = xyes; then :
12420 cat >>confdefs.h <<_ACEOF
12421 #define HAVE_ZLIB_H 1
12429 if test "x$ac_cv_header_zlib_h" = "xyes"; then
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
12435 $as_echo_n "checking for library containing inflateEnd... " >&6; }
12436 if ${ac_cv_search_inflateEnd+:} false; then :
12437 $as_echo_n "(cached) " >&6
12439 ac_func_search_save_LIBS=$LIBS
12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12443 /* Override any GCC internal prototype to avoid an error.
12444 Use char because int might match the return type of a GCC
12445 builtin and then its argument prototype would still apply. */
12449 char inflateEnd ();
12453 return inflateEnd ();
12458 for ac_lib in '' z; do
12459 if test -z "$ac_lib"; then
12460 ac_res="none required"
12463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12465 if ac_fn_c_try_link "$LINENO"; then :
12466 ac_cv_search_inflateEnd=$ac_res
12468 rm -f core conftest.err conftest.$ac_objext \
12470 if ${ac_cv_search_inflateEnd+:} false; then :
12474 if ${ac_cv_search_inflateEnd+:} false; then :
12477 ac_cv_search_inflateEnd=no
12479 rm conftest.$ac_ext
12480 LIBS=$ac_func_search_save_LIBS
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
12483 $as_echo "$ac_cv_search_inflateEnd" >&6; }
12484 ac_res=$ac_cv_search_inflateEnd
12485 if test "$ac_res" != no; then :
12486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12490 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12497 if test "$have_zlib" = "yes"; then
12499 ZLIB_REGRESS_FALSE='#'
12501 ZLIB_REGRESS_TRUE='#'
12502 ZLIB_REGRESS_FALSE=
12506 if test "$bwin32" = true; then
12507 EV_LIB_WS32=-lws2_32
12517 # Check whether --enable-largefile was given.
12518 if test "${enable_largefile+set}" = set; then :
12519 enableval=$enable_largefile;
12522 if test "$enable_largefile" != no; then
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12525 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12526 if ${ac_cv_sys_largefile_CC+:} false; then :
12527 $as_echo_n "(cached) " >&6
12529 ac_cv_sys_largefile_CC=no
12530 if test "$GCC" != yes; then
12533 # IRIX 6.2 and later do not support large files by default,
12534 # so use the C compiler's -n32 option if that helps.
12535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12536 /* end confdefs.h. */
12537 #include <sys/types.h>
12538 /* Check that off_t can represent 2**63 - 1 correctly.
12539 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12540 since some C++ compilers masquerading as C compilers
12541 incorrectly reject 9223372036854775807. */
12542 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12543 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12544 && LARGE_OFF_T % 2147483647 == 1)
12554 if ac_fn_c_try_compile "$LINENO"; then :
12557 rm -f core conftest.err conftest.$ac_objext
12559 if ac_fn_c_try_compile "$LINENO"; then :
12560 ac_cv_sys_largefile_CC=' -n32'; break
12562 rm -f core conftest.err conftest.$ac_objext
12566 rm -f conftest.$ac_ext
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12570 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12571 if test "$ac_cv_sys_largefile_CC" != no; then
12572 CC=$CC$ac_cv_sys_largefile_CC
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12576 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12577 if ${ac_cv_sys_file_offset_bits+:} false; then :
12578 $as_echo_n "(cached) " >&6
12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12583 #include <sys/types.h>
12584 /* Check that off_t can represent 2**63 - 1 correctly.
12585 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12586 since some C++ compilers masquerading as C compilers
12587 incorrectly reject 9223372036854775807. */
12588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12590 && LARGE_OFF_T % 2147483647 == 1)
12600 if ac_fn_c_try_compile "$LINENO"; then :
12601 ac_cv_sys_file_offset_bits=no; break
12603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605 /* end confdefs.h. */
12606 #define _FILE_OFFSET_BITS 64
12607 #include <sys/types.h>
12608 /* Check that off_t can represent 2**63 - 1 correctly.
12609 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12610 since some C++ compilers masquerading as C compilers
12611 incorrectly reject 9223372036854775807. */
12612 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12613 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12614 && LARGE_OFF_T % 2147483647 == 1)
12624 if ac_fn_c_try_compile "$LINENO"; then :
12625 ac_cv_sys_file_offset_bits=64; break
12627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12628 ac_cv_sys_file_offset_bits=unknown
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12633 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12634 case $ac_cv_sys_file_offset_bits in #(
12637 cat >>confdefs.h <<_ACEOF
12638 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12643 if test $ac_cv_sys_file_offset_bits = unknown; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12645 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12646 if ${ac_cv_sys_large_files+:} false; then :
12647 $as_echo_n "(cached) " >&6
12650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12651 /* end confdefs.h. */
12652 #include <sys/types.h>
12653 /* Check that off_t can represent 2**63 - 1 correctly.
12654 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12655 since some C++ compilers masquerading as C compilers
12656 incorrectly reject 9223372036854775807. */
12657 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12658 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12659 && LARGE_OFF_T % 2147483647 == 1)
12669 if ac_fn_c_try_compile "$LINENO"; then :
12670 ac_cv_sys_large_files=no; break
12672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h. */
12675 #define _LARGE_FILES 1
12676 #include <sys/types.h>
12677 /* Check that off_t can represent 2**63 - 1 correctly.
12678 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12679 since some C++ compilers masquerading as C compilers
12680 incorrectly reject 9223372036854775807. */
12681 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12682 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12683 && LARGE_OFF_T % 2147483647 == 1)
12693 if ac_fn_c_try_compile "$LINENO"; then :
12694 ac_cv_sys_large_files=1; break
12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697 ac_cv_sys_large_files=unknown
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12702 $as_echo "$ac_cv_sys_large_files" >&6; }
12703 case $ac_cv_sys_large_files in #(
12706 cat >>confdefs.h <<_ACEOF
12707 #define _LARGE_FILES $ac_cv_sys_large_files
12718 ntp_pkgconfig_min_version='0.15.0'
12719 if test -n "$ac_tool_prefix"; then
12720 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12721 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12723 $as_echo_n "checking for $ac_word... " >&6; }
12724 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12725 $as_echo_n "(cached) " >&6
12727 case $PKG_CONFIG in
12729 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733 for as_dir in $PATH
12736 test -z "$as_dir" && as_dir=.
12737 for ac_exec_ext in '' $ac_executable_extensions; do
12738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12739 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12750 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12751 if test -n "$PKG_CONFIG"; then
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12753 $as_echo "$PKG_CONFIG" >&6; }
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756 $as_echo "no" >&6; }
12761 if test -z "$ac_cv_path_PKG_CONFIG"; then
12762 ac_pt_PKG_CONFIG=$PKG_CONFIG
12763 # Extract the first word of "pkg-config", so it can be a program name with args.
12764 set dummy pkg-config; ac_word=$2
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12766 $as_echo_n "checking for $ac_word... " >&6; }
12767 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12768 $as_echo_n "(cached) " >&6
12770 case $ac_pt_PKG_CONFIG in
12772 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12776 for as_dir in $PATH
12779 test -z "$as_dir" && as_dir=.
12780 for ac_exec_ext in '' $ac_executable_extensions; do
12781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12782 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12794 if test -n "$ac_pt_PKG_CONFIG"; then
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12796 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12799 $as_echo "no" >&6; }
12802 if test "x$ac_pt_PKG_CONFIG" = x; then
12805 case $cross_compiling:$ac_tool_warned in
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12809 ac_tool_warned=yes ;;
12811 PKG_CONFIG=$ac_pt_PKG_CONFIG
12814 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12817 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
12818 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
12820 case "$PKG_CONFIG" in
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
12823 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
12824 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12826 $as_echo "yes" >&6; }
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829 $as_echo "no" >&6; }
12838 case "$enable_openssl" in
12841 case "$PKG_CONFIG" in
12845 OPENSSL_LIBS=`$PKG_CONFIG --libs openssl 2>/dev/null`
12846 case "$OPENSSL_LIBS" in
12848 *) OPENSSL_LIBS="$OPENSSL_LIBS $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
12852 OPENSSL_INCS=`$PKG_CONFIG --cflags openssl 2>/dev/null`
12855 case "$have_openssl" in
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12862 $as_echo_n "checking for library containing SSL_new... " >&6; }
12863 if ${ac_cv_search_SSL_new+:} false; then :
12864 $as_echo_n "(cached) " >&6
12866 ac_func_search_save_LIBS=$LIBS
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12870 /* Override any GCC internal prototype to avoid an error.
12871 Use char because int might match the return type of a GCC
12872 builtin and then its argument prototype would still apply. */
12885 for ac_lib in '' ssl; do
12886 if test -z "$ac_lib"; then
12887 ac_res="none required"
12890 LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
12892 if ac_fn_c_try_link "$LINENO"; then :
12893 ac_cv_search_SSL_new=$ac_res
12895 rm -f core conftest.err conftest.$ac_objext \
12897 if ${ac_cv_search_SSL_new+:} false; then :
12901 if ${ac_cv_search_SSL_new+:} false; then :
12904 ac_cv_search_SSL_new=no
12906 rm conftest.$ac_ext
12907 LIBS=$ac_func_search_save_LIBS
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12910 $as_echo "$ac_cv_search_SSL_new" >&6; }
12911 ac_res=$ac_cv_search_SSL_new
12912 if test "$ac_res" != no; then :
12913 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12915 OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
12925 case "$have_openssl" in
12927 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
12933 # check if we have and should use openssl
12934 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
12976 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12977 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12978 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12979 cat >>confdefs.h <<_ACEOF
12980 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12988 for ac_header in sys/sysctl.h
12990 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
12991 #ifdef HAVE_SYS_PARAM_H
12992 #include <sys/param.h>
12996 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
12997 cat >>confdefs.h <<_ACEOF
12998 #define HAVE_SYS_SYSCTL_H 1
13005 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
13007 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
13008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009 /* end confdefs.h. */
13011 #include <sys/queue.h>
13012 #ifdef TAILQ_FOREACH
13017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13018 $EGREP "yes" >/dev/null 2>&1; then :
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13020 $as_echo "yes" >&6; }
13022 $as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026 $as_echo "no" >&6; }
13033 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
13035 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h. */
13039 #include <sys/time.h>
13045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13046 $EGREP "yes" >/dev/null 2>&1; then :
13048 $as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13051 $as_echo "yes" >&6; }
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13054 $as_echo "no" >&6; }
13061 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
13063 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
13064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13065 /* end confdefs.h. */
13067 #include <sys/time.h>
13073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13074 $EGREP "yes" >/dev/null 2>&1; then :
13076 $as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13079 $as_echo "yes" >&6; }
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13082 $as_echo "no" >&6; }
13089 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
13091 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h. */
13095 #include <sys/time.h>
13101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13102 $EGREP "yes" >/dev/null 2>&1; then :
13104 $as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13107 $as_echo "yes" >&6; }
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110 $as_echo "no" >&6; }
13117 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
13119 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
13120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h. */
13123 #include <sys/time.h>
13129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13130 $EGREP "yes" >/dev/null 2>&1; then :
13132 $as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13135 $as_echo "yes" >&6; }
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13138 $as_echo "no" >&6; }
13145 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
13146 ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
13147 #include <sys/sysctl.h>
13150 if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
13156 cat >>confdefs.h <<_ACEOF
13157 #define HAVE_DECL_CTL_KERN $ac_have_decl
13159 ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
13160 #include <sys/sysctl.h>
13163 if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
13169 cat >>confdefs.h <<_ACEOF
13170 #define HAVE_DECL_KERN_RANDOM $ac_have_decl
13172 ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
13173 #include <sys/sysctl.h>
13176 if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
13182 cat >>confdefs.h <<_ACEOF
13183 #define HAVE_DECL_RANDOM_UUID $ac_have_decl
13185 ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
13186 #include <sys/sysctl.h>
13189 if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
13195 cat >>confdefs.h <<_ACEOF
13196 #define HAVE_DECL_KERN_ARND $ac_have_decl
13201 if test x$bwin32 = xtrue; then
13203 BUILD_WIN32_FALSE='#'
13205 BUILD_WIN32_TRUE='#'
13209 if test x$cygwin = xtrue; then
13211 BUILD_CYGWIN_FALSE='#'
13213 BUILD_CYGWIN_TRUE='#'
13214 BUILD_CYGWIN_FALSE=
13217 if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
13218 BUILD_WITH_NO_UNDEFINED_TRUE=
13219 BUILD_WITH_NO_UNDEFINED_FALSE='#'
13221 BUILD_WITH_NO_UNDEFINED_TRUE='#'
13222 BUILD_WITH_NO_UNDEFINED_FALSE=
13226 if test x$bwin32 = xtrue; then
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
13228 $as_echo_n "checking for library containing getservbyname... " >&6; }
13229 if ${ac_cv_search_getservbyname+:} false; then :
13230 $as_echo_n "(cached) " >&6
13232 ac_func_search_save_LIBS=$LIBS
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h. */
13236 /* Override any GCC internal prototype to avoid an error.
13237 Use char because int might match the return type of a GCC
13238 builtin and then its argument prototype would still apply. */
13242 char getservbyname ();
13246 return getservbyname ();
13251 for ac_lib in '' ws2_32; do
13252 if test -z "$ac_lib"; then
13253 ac_res="none required"
13256 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13258 if ac_fn_c_try_link "$LINENO"; then :
13259 ac_cv_search_getservbyname=$ac_res
13261 rm -f core conftest.err conftest.$ac_objext \
13263 if ${ac_cv_search_getservbyname+:} false; then :
13267 if ${ac_cv_search_getservbyname+:} false; then :
13270 ac_cv_search_getservbyname=no
13272 rm conftest.$ac_ext
13273 LIBS=$ac_func_search_save_LIBS
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
13276 $as_echo "$ac_cv_search_getservbyname" >&6; }
13277 ac_res=$ac_cv_search_getservbyname
13278 if test "$ac_res" != no; then :
13279 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13286 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13287 if ${ac_cv_c_const+:} false; then :
13288 $as_echo_n "(cached) " >&6
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13296 /* FIXME: Include the comments suggested by Paul. */
13297 #ifndef __cplusplus
13298 /* Ultrix mips cc rejects this. */
13299 typedef int charset[2];
13301 /* SunOS 4.1.1 cc rejects this. */
13302 char const *const *pcpcc;
13304 /* NEC SVR4.0.2 mips cc rejects this. */
13305 struct point {int x, y;};
13306 static struct point const zero = {0,0};
13307 /* AIX XL C 1.02.0.0 rejects this.
13308 It does not let you subtract one const X* pointer from another in
13309 an arm of an if-expression whose if-part is not a constant
13311 const char *g = "string";
13312 pcpcc = &g + (g ? g-g : 0);
13313 /* HPUX 7.0 cc rejects these. */
13315 ppc = (char**) pcpcc;
13316 pcpcc = (char const *const *) ppc;
13317 { /* SCO 3.2v4 cc rejects this. */
13319 char const *s = 0 ? (char *) 0 : (char const *) 0;
13324 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13325 int x[] = {25, 17};
13326 const int *foo = &x[0];
13329 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13330 typedef const int *iptr;
13334 { /* AIX XL C 1.02.0.0 rejects this saying
13335 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13336 struct s { int j; const int *ap[3]; };
13337 struct s *b; b->j = 5;
13339 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13340 const int foo = 10;
13341 if (!foo) return 0;
13343 return !cs[0] && !zero.x;
13350 if ac_fn_c_try_compile "$LINENO"; then :
13355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13358 $as_echo "$ac_cv_c_const" >&6; }
13359 if test $ac_cv_c_const = no; then
13361 $as_echo "#define const /**/" >>confdefs.h
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13366 $as_echo_n "checking for inline... " >&6; }
13367 if ${ac_cv_c_inline+:} false; then :
13368 $as_echo_n "(cached) " >&6
13371 for ac_kw in inline __inline__ __inline; do
13372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373 /* end confdefs.h. */
13374 #ifndef __cplusplus
13376 static $ac_kw foo_t static_foo () {return 0; }
13377 $ac_kw foo_t foo () {return 0; }
13381 if ac_fn_c_try_compile "$LINENO"; then :
13382 ac_cv_c_inline=$ac_kw
13384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13385 test "$ac_cv_c_inline" != no && break
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13390 $as_echo "$ac_cv_c_inline" >&6; }
13392 case $ac_cv_c_inline in
13395 case $ac_cv_c_inline in
13397 *) ac_val=$ac_cv_c_inline;;
13399 cat >>confdefs.h <<_ACEOF
13400 #ifndef __cplusplus
13401 #define inline $ac_val
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13408 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13409 if ${ac_cv_header_time+:} false; then :
13410 $as_echo_n "(cached) " >&6
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13414 #include <sys/types.h>
13415 #include <sys/time.h>
13421 if ((struct tm *) 0)
13427 if ac_fn_c_try_compile "$LINENO"; then :
13428 ac_cv_header_time=yes
13430 ac_cv_header_time=no
13432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13435 $as_echo "$ac_cv_header_time" >&6; }
13436 if test $ac_cv_header_time = yes; then
13438 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13460 mach_absolute_time \
13484 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13485 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13486 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13487 cat >>confdefs.h <<_ACEOF
13488 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13494 if test x"$ac_cv_func_strlcpy" = xno; then
13496 STRLCPY_IMPL_FALSE='#'
13498 STRLCPY_IMPL_TRUE='#'
13499 STRLCPY_IMPL_FALSE=
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13504 $as_echo_n "checking for getaddrinfo... " >&6; }
13505 if ${libevent_cv_getaddrinfo+:} false; then :
13506 $as_echo_n "(cached) " >&6
13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h. */
13511 #ifdef HAVE_NETDB_H
13526 if ac_fn_c_try_link "$LINENO"; then :
13527 libevent_cv_getaddrinfo=yes
13529 libevent_cv_getaddrinfo=no
13532 rm -f core conftest.err conftest.$ac_objext \
13533 conftest$ac_exeext conftest.$ac_ext
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
13537 $as_echo "$libevent_cv_getaddrinfo" >&6; }
13538 if test "$libevent_cv_getaddrinfo" = "yes" ; then
13540 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13544 for ac_func in getservbyname
13546 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
13547 if test "x$ac_cv_func_getservbyname" = xyes; then :
13548 cat >>confdefs.h <<_ACEOF
13549 #define HAVE_GETSERVBYNAME 1
13555 # Check for gethostbyname_r in all its glorious incompatible versions.
13556 # (This is cut-and-pasted from Tor, which based its logic on
13557 # Python's configure.in.)
13560 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13561 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
13564 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
13566 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568 /* end confdefs.h. */
13577 struct hostent *h1, *h2;
13579 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13585 if ac_fn_c_try_compile "$LINENO"; then :
13587 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13590 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
13593 $as_echo "6" >&6; }
13597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13598 /* end confdefs.h. */
13607 struct hostent *h1;
13609 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13615 if ac_fn_c_try_compile "$LINENO"; then :
13617 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13620 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
13623 $as_echo "5" >&6; }
13627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13628 /* end confdefs.h. */
13637 struct hostent *h1;
13638 struct hostent_data hd;
13639 (void) gethostbyname_r(cp1,h1,&hd);
13645 if ac_fn_c_try_compile "$LINENO"; then :
13647 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13650 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
13653 $as_echo "3" >&6; }
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
13658 $as_echo "0" >&6; }
13661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
13676 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678 /* end confdefs.h. */
13680 #define _GNU_SOURCE
13687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13688 $EGREP "yes" >/dev/null 2>&1; then :
13690 $as_echo "#define HAVE_SETFD 1" >>confdefs.h
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13693 $as_echo "yes" >&6; }
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13696 $as_echo "no" >&6; }
13703 if test x$bwin32 != xtrue; then
13704 for ac_func in select
13706 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
13707 if test "x$ac_cv_func_select" = xyes; then :
13708 cat >>confdefs.h <<_ACEOF
13709 #define HAVE_SELECT 1
13715 if test "x$haveselect" = "xyes" ; then
13719 if test "x$haveselect" = "xyes"; then
13720 SELECT_BACKEND_TRUE=
13721 SELECT_BACKEND_FALSE='#'
13723 SELECT_BACKEND_TRUE='#'
13724 SELECT_BACKEND_FALSE=
13729 for ac_func in poll
13731 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
13732 if test "x$ac_cv_func_poll" = xyes; then :
13733 cat >>confdefs.h <<_ACEOF
13734 #define HAVE_POLL 1
13740 if test "x$havepoll" = "xyes" ; then
13743 if test "x$havepoll" = "xyes"; then
13745 POLL_BACKEND_FALSE='#'
13747 POLL_BACKEND_TRUE='#'
13748 POLL_BACKEND_FALSE=
13753 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13755 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
13758 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13759 DEVPOLL_BACKEND_TRUE=
13760 DEVPOLL_BACKEND_FALSE='#'
13762 DEVPOLL_BACKEND_TRUE='#'
13763 DEVPOLL_BACKEND_FALSE=
13768 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
13769 for ac_func in kqueue
13771 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13772 if test "x$ac_cv_func_kqueue" = xyes; then :
13773 cat >>confdefs.h <<_ACEOF
13774 #define HAVE_KQUEUE 1
13780 if test "x$havekqueue" = "xyes" ; then
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
13782 $as_echo_n "checking for working kqueue... " >&6; }
13783 if test "$cross_compiling" = yes; then :
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13785 $as_echo "no" >&6; }
13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h. */
13789 #include <sys/types.h>
13790 #include <sys/time.h>
13791 #include <sys/event.h>
13793 #include <unistd.h>
13797 main(int argc, char **argv)
13803 struct timespec ts;
13806 if (pipe(fd) == -1)
13808 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
13811 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
13814 if ((kq = kqueue()) == -1)
13817 memset(&ev, 0, sizeof(ev));
13819 ev.filter = EVFILT_WRITE;
13820 ev.flags = EV_ADD | EV_ENABLE;
13821 n = kevent(kq, &ev, 1, NULL, 0, NULL);
13825 read(fd[0], buf, sizeof(buf));
13829 n = kevent(kq, NULL, 0, &ev, 1, &ts);
13830 if (n == -1 || n == 0)
13836 if ac_fn_c_try_run "$LINENO"; then :
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13838 $as_echo "yes" >&6; }
13840 $as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13846 $as_echo "no" >&6; }
13848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13849 conftest.$ac_objext conftest.beam conftest.$ac_ext
13854 if test "x$havekqueue" = "xyes"; then
13855 KQUEUE_BACKEND_TRUE=
13856 KQUEUE_BACKEND_FALSE='#'
13858 KQUEUE_BACKEND_TRUE='#'
13859 KQUEUE_BACKEND_FALSE=
13863 haveepollsyscall=no
13865 for ac_func in epoll_ctl
13867 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
13868 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
13869 cat >>confdefs.h <<_ACEOF
13870 #define HAVE_EPOLL_CTL 1
13876 if test "x$haveepoll" = "xyes" ; then
13878 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13882 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
13883 if test "x$haveepoll" = "xno" ; then
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
13885 $as_echo_n "checking for epoll system call... " >&6; }
13886 if test "$cross_compiling" = yes; then :
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13888 $as_echo "no" >&6; }
13890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891 /* end confdefs.h. */
13892 #include <stdint.h>
13893 #include <sys/param.h>
13894 #include <sys/types.h>
13895 #include <sys/syscall.h>
13896 #include <sys/epoll.h>
13897 #include <unistd.h>
13900 epoll_create(int size)
13902 return (syscall(__NR_epoll_create, size));
13906 main(int argc, char **argv)
13910 epfd = epoll_create(256);
13911 exit (epfd == -1 ? 1 : 0);
13914 if ac_fn_c_try_run "$LINENO"; then :
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13916 $as_echo "yes" >&6; }
13918 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13922 case " $LIBOBJS " in
13923 *" epoll_sub.$ac_objext "* ) ;;
13924 *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13931 $as_echo "no" >&6; }
13933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13934 conftest.$ac_objext conftest.beam conftest.$ac_ext
13939 if test "x$haveepoll" = "xyes"; then
13940 EPOLL_BACKEND_TRUE=
13941 EPOLL_BACKEND_FALSE='#'
13943 EPOLL_BACKEND_TRUE='#'
13944 EPOLL_BACKEND_FALSE=
13949 for ac_func in port_create
13951 ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
13952 if test "x$ac_cv_func_port_create" = xyes; then :
13953 cat >>confdefs.h <<_ACEOF
13954 #define HAVE_PORT_CREATE 1
13960 if test "x$haveeventports" = "xyes" ; then
13962 $as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
13966 if test "x$haveeventports" = "xyes"; then
13967 EVPORT_BACKEND_TRUE=
13968 EVPORT_BACKEND_FALSE='#'
13970 EVPORT_BACKEND_TRUE='#'
13971 EVPORT_BACKEND_FALSE=
13975 if test "x$bwin32" = "xtrue"; then
13979 if test "x$needsignal" = "xyes"; then
13980 SIGNAL_SUPPORT_TRUE=
13981 SIGNAL_SUPPORT_FALSE='#'
13983 SIGNAL_SUPPORT_TRUE='#'
13984 SIGNAL_SUPPORT_FALSE=
13988 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13989 if test "x$ac_cv_type_pid_t" = xyes; then :
13993 cat >>confdefs.h <<_ACEOF
13999 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14000 if test "x$ac_cv_type_size_t" = xyes; then :
14004 cat >>confdefs.h <<_ACEOF
14005 #define size_t unsigned int
14010 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14011 if test "x$ac_cv_type_ssize_t" = xyes; then :
14015 cat >>confdefs.h <<_ACEOF
14016 #define ssize_t int
14022 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
14023 #include <stdint.h>
14024 #elif defined(HAVE_INTTYPES_H)
14025 #include <inttypes.h>
14027 #ifdef HAVE_SYS_TYPES_H
14028 #include <sys/types.h>
14031 if test "x$ac_cv_type_uint64_t" = xyes; then :
14033 cat >>confdefs.h <<_ACEOF
14034 #define HAVE_UINT64_T 1
14039 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
14040 #include <stdint.h>
14041 #elif defined(HAVE_INTTYPES_H)
14042 #include <inttypes.h>
14044 #ifdef HAVE_SYS_TYPES_H
14045 #include <sys/types.h>
14048 if test "x$ac_cv_type_uint32_t" = xyes; then :
14050 cat >>confdefs.h <<_ACEOF
14051 #define HAVE_UINT32_T 1
14056 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
14057 #include <stdint.h>
14058 #elif defined(HAVE_INTTYPES_H)
14059 #include <inttypes.h>
14061 #ifdef HAVE_SYS_TYPES_H
14062 #include <sys/types.h>
14065 if test "x$ac_cv_type_uint16_t" = xyes; then :
14067 cat >>confdefs.h <<_ACEOF
14068 #define HAVE_UINT16_T 1
14073 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
14074 #include <stdint.h>
14075 #elif defined(HAVE_INTTYPES_H)
14076 #include <inttypes.h>
14078 #ifdef HAVE_SYS_TYPES_H
14079 #include <sys/types.h>
14082 if test "x$ac_cv_type_uint8_t" = xyes; then :
14084 cat >>confdefs.h <<_ACEOF
14085 #define HAVE_UINT8_T 1
14090 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
14091 #include <stdint.h>
14092 #elif defined(HAVE_INTTYPES_H)
14093 #include <inttypes.h>
14095 #ifdef HAVE_SYS_TYPES_H
14096 #include <sys/types.h>
14099 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14101 cat >>confdefs.h <<_ACEOF
14102 #define HAVE_UINTPTR_T 1
14109 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
14110 #include <sys/types.h>
14112 #ifdef HAVE_SYS_SELECT_H
14113 #include <sys/select.h>
14116 if test "x$ac_cv_type_fd_mask" = xyes; then :
14118 cat >>confdefs.h <<_ACEOF
14119 #define HAVE_FD_MASK 1
14126 # The cast to long int works around a bug in the HP C Compiler
14127 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14128 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14129 # This bug is HP SR number 8606223364.
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
14131 $as_echo_n "checking size of long long... " >&6; }
14132 if ${ac_cv_sizeof_long_long+:} false; then :
14133 $as_echo_n "(cached) " >&6
14135 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
14138 if test "$ac_cv_type_long_long" = yes; then
14139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14141 as_fn_error 77 "cannot compute sizeof (long long)
14142 See \`config.log' for more details" "$LINENO" 5; }
14144 ac_cv_sizeof_long_long=0
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
14150 $as_echo "$ac_cv_sizeof_long_long" >&6; }
14154 cat >>confdefs.h <<_ACEOF
14155 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14159 # The cast to long int works around a bug in the HP C Compiler
14160 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14161 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14162 # This bug is HP SR number 8606223364.
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14164 $as_echo_n "checking size of long... " >&6; }
14165 if ${ac_cv_sizeof_long+:} false; then :
14166 $as_echo_n "(cached) " >&6
14168 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14171 if test "$ac_cv_type_long" = yes; then
14172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14174 as_fn_error 77 "cannot compute sizeof (long)
14175 See \`config.log' for more details" "$LINENO" 5; }
14177 ac_cv_sizeof_long=0
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14183 $as_echo "$ac_cv_sizeof_long" >&6; }
14187 cat >>confdefs.h <<_ACEOF
14188 #define SIZEOF_LONG $ac_cv_sizeof_long
14192 # The cast to long int works around a bug in the HP C Compiler
14193 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14194 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14195 # This bug is HP SR number 8606223364.
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14197 $as_echo_n "checking size of int... " >&6; }
14198 if ${ac_cv_sizeof_int+:} false; then :
14199 $as_echo_n "(cached) " >&6
14201 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14204 if test "$ac_cv_type_int" = yes; then
14205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14207 as_fn_error 77 "cannot compute sizeof (int)
14208 See \`config.log' for more details" "$LINENO" 5; }
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14216 $as_echo "$ac_cv_sizeof_int" >&6; }
14220 cat >>confdefs.h <<_ACEOF
14221 #define SIZEOF_INT $ac_cv_sizeof_int
14225 # The cast to long int works around a bug in the HP C Compiler
14226 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14227 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14228 # This bug is HP SR number 8606223364.
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14230 $as_echo_n "checking size of short... " >&6; }
14231 if ${ac_cv_sizeof_short+:} false; then :
14232 $as_echo_n "(cached) " >&6
14234 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14237 if test "$ac_cv_type_short" = yes; then
14238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14240 as_fn_error 77 "cannot compute sizeof (short)
14241 See \`config.log' for more details" "$LINENO" 5; }
14243 ac_cv_sizeof_short=0
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14249 $as_echo "$ac_cv_sizeof_short" >&6; }
14253 cat >>confdefs.h <<_ACEOF
14254 #define SIZEOF_SHORT $ac_cv_sizeof_short
14258 # The cast to long int works around a bug in the HP C Compiler
14259 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14260 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14261 # This bug is HP SR number 8606223364.
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14263 $as_echo_n "checking size of size_t... " >&6; }
14264 if ${ac_cv_sizeof_size_t+:} false; then :
14265 $as_echo_n "(cached) " >&6
14267 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14270 if test "$ac_cv_type_size_t" = yes; then
14271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14273 as_fn_error 77 "cannot compute sizeof (size_t)
14274 See \`config.log' for more details" "$LINENO" 5; }
14276 ac_cv_sizeof_size_t=0
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14282 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14286 cat >>confdefs.h <<_ACEOF
14287 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14291 # The cast to long int works around a bug in the HP C Compiler
14292 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14293 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14294 # This bug is HP SR number 8606223364.
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14296 $as_echo_n "checking size of void *... " >&6; }
14297 if ${ac_cv_sizeof_void_p+:} false; then :
14298 $as_echo_n "(cached) " >&6
14300 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14303 if test "$ac_cv_type_void_p" = yes; then
14304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14306 as_fn_error 77 "cannot compute sizeof (void *)
14307 See \`config.log' for more details" "$LINENO" 5; }
14309 ac_cv_sizeof_void_p=0
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14315 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14319 cat >>confdefs.h <<_ACEOF
14320 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14324 # The cast to long int works around a bug in the HP C Compiler
14325 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14326 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14327 # This bug is HP SR number 8606223364.
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14329 $as_echo_n "checking size of off_t... " >&6; }
14330 if ${ac_cv_sizeof_off_t+:} false; then :
14331 $as_echo_n "(cached) " >&6
14333 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
14336 if test "$ac_cv_type_off_t" = yes; then
14337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14339 as_fn_error 77 "cannot compute sizeof (off_t)
14340 See \`config.log' for more details" "$LINENO" 5; }
14342 ac_cv_sizeof_off_t=0
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14348 $as_echo "$ac_cv_sizeof_off_t" >&6; }
14352 cat >>confdefs.h <<_ACEOF
14353 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14358 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
14359 #include <sys/types.h>
14360 #ifdef HAVE_NETINET_IN_H
14361 #include <netinet/in.h>
14363 #ifdef HAVE_NETINET_IN6_H
14364 #include <netinet/in6.h>
14366 #ifdef HAVE_SYS_SOCKET_H
14367 #include <sys/socket.h>
14369 #ifdef HAVE_NETDB_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_type_struct_in6_addr" = xyes; then :
14387 cat >>confdefs.h <<_ACEOF
14388 #define HAVE_STRUCT_IN6_ADDR 1
14393 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
14394 #include <sys/types.h>
14395 #ifdef HAVE_NETINET_IN_H
14396 #include <netinet/in.h>
14398 #ifdef HAVE_NETINET_IN6_H
14399 #include <netinet/in6.h>
14401 #ifdef HAVE_SYS_SOCKET_H
14402 #include <sys/socket.h>
14404 #ifdef HAVE_NETDB_H
14408 #define WIN32_WINNT 0x400
14409 #define _WIN32_WINNT 0x400
14410 #define WIN32_LEAN_AND_MEAN
14411 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14412 #include <winsock.h>
14414 #include <winsock2.h>
14415 #include <ws2tcpip.h>
14420 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
14422 cat >>confdefs.h <<_ACEOF
14423 #define HAVE_STRUCT_SOCKADDR_IN6 1
14428 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
14429 #include <sys/types.h>
14430 #ifdef HAVE_NETINET_IN_H
14431 #include <netinet/in.h>
14433 #ifdef HAVE_NETINET_IN6_H
14434 #include <netinet/in6.h>
14436 #ifdef HAVE_SYS_SOCKET_H
14437 #include <sys/socket.h>
14439 #ifdef HAVE_NETDB_H
14443 #define WIN32_WINNT 0x400
14444 #define _WIN32_WINNT 0x400
14445 #define WIN32_LEAN_AND_MEAN
14446 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14447 #include <winsock.h>
14449 #include <winsock2.h>
14450 #include <ws2tcpip.h>
14455 if test "x$ac_cv_type_sa_family_t" = xyes; then :
14457 cat >>confdefs.h <<_ACEOF
14458 #define HAVE_SA_FAMILY_T 1
14463 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
14464 #include <sys/types.h>
14465 #ifdef HAVE_NETINET_IN_H
14466 #include <netinet/in.h>
14468 #ifdef HAVE_NETINET_IN6_H
14469 #include <netinet/in6.h>
14471 #ifdef HAVE_SYS_SOCKET_H
14472 #include <sys/socket.h>
14474 #ifdef HAVE_NETDB_H
14478 #define WIN32_WINNT 0x400
14479 #define _WIN32_WINNT 0x400
14480 #define WIN32_LEAN_AND_MEAN
14481 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14482 #include <winsock.h>
14484 #include <winsock2.h>
14485 #include <ws2tcpip.h>
14490 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14492 cat >>confdefs.h <<_ACEOF
14493 #define HAVE_STRUCT_ADDRINFO 1
14498 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
14499 #include <sys/types.h>
14500 #ifdef HAVE_NETINET_IN_H
14501 #include <netinet/in.h>
14503 #ifdef HAVE_NETINET_IN6_H
14504 #include <netinet/in6.h>
14506 #ifdef HAVE_SYS_SOCKET_H
14507 #include <sys/socket.h>
14509 #ifdef HAVE_NETDB_H
14513 #define WIN32_WINNT 0x400
14514 #define _WIN32_WINNT 0x400
14515 #define WIN32_LEAN_AND_MEAN
14516 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14517 #include <winsock.h>
14519 #include <winsock2.h>
14520 #include <ws2tcpip.h>
14525 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
14527 cat >>confdefs.h <<_ACEOF
14528 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14534 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
14535 #ifdef HAVE_NETINET_IN_H
14536 #include <netinet/in.h>
14538 #ifdef HAVE_NETINET_IN6_H
14539 #include <netinet/in6.h>
14541 #ifdef HAVE_SYS_SOCKET_H
14542 #include <sys/socket.h>
14545 #define WIN32_WINNT 0x400
14546 #define _WIN32_WINNT 0x400
14547 #define WIN32_LEAN_AND_MEAN
14548 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14549 #include <winsock.h>
14551 #include <winsock2.h>
14552 #include <ws2tcpip.h>
14557 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
14559 cat >>confdefs.h <<_ACEOF
14560 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
14565 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
14566 #ifdef HAVE_NETINET_IN_H
14567 #include <netinet/in.h>
14569 #ifdef HAVE_NETINET_IN6_H
14570 #include <netinet/in6.h>
14572 #ifdef HAVE_SYS_SOCKET_H
14573 #include <sys/socket.h>
14576 #define WIN32_WINNT 0x400
14577 #define _WIN32_WINNT 0x400
14578 #define WIN32_LEAN_AND_MEAN
14579 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14580 #include <winsock.h>
14582 #include <winsock2.h>
14583 #include <ws2tcpip.h>
14588 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
14590 cat >>confdefs.h <<_ACEOF
14591 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
14596 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
14597 #ifdef HAVE_NETINET_IN_H
14598 #include <netinet/in.h>
14600 #ifdef HAVE_NETINET_IN6_H
14601 #include <netinet/in6.h>
14603 #ifdef HAVE_SYS_SOCKET_H
14604 #include <sys/socket.h>
14607 #define WIN32_WINNT 0x400
14608 #define _WIN32_WINNT 0x400
14609 #define WIN32_LEAN_AND_MEAN
14610 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14611 #include <winsock.h>
14613 #include <winsock2.h>
14614 #include <ws2tcpip.h>
14619 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
14621 cat >>confdefs.h <<_ACEOF
14622 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
14627 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
14628 #ifdef HAVE_NETINET_IN_H
14629 #include <netinet/in.h>
14631 #ifdef HAVE_NETINET_IN6_H
14632 #include <netinet/in6.h>
14634 #ifdef HAVE_SYS_SOCKET_H
14635 #include <sys/socket.h>
14638 #define WIN32_WINNT 0x400
14639 #define _WIN32_WINNT 0x400
14640 #define WIN32_LEAN_AND_MEAN
14641 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14642 #include <winsock.h>
14644 #include <winsock2.h>
14645 #include <ws2tcpip.h>
14650 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
14652 cat >>confdefs.h <<_ACEOF
14653 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
14658 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14659 #ifdef HAVE_NETINET_IN_H
14660 #include <netinet/in.h>
14662 #ifdef HAVE_NETINET_IN6_H
14663 #include <netinet/in6.h>
14665 #ifdef HAVE_SYS_SOCKET_H
14666 #include <sys/socket.h>
14669 #define WIN32_WINNT 0x400
14670 #define _WIN32_WINNT 0x400
14671 #define WIN32_LEAN_AND_MEAN
14672 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14673 #include <winsock.h>
14675 #include <winsock2.h>
14676 #include <ws2tcpip.h>
14681 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
14683 cat >>confdefs.h <<_ACEOF
14684 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14689 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14690 #ifdef HAVE_NETINET_IN_H
14691 #include <netinet/in.h>
14693 #ifdef HAVE_NETINET_IN6_H
14694 #include <netinet/in6.h>
14696 #ifdef HAVE_SYS_SOCKET_H
14697 #include <sys/socket.h>
14700 #define WIN32_WINNT 0x400
14701 #define _WIN32_WINNT 0x400
14702 #define WIN32_LEAN_AND_MEAN
14703 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14704 #include <winsock.h>
14706 #include <winsock2.h>
14707 #include <ws2tcpip.h>
14712 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
14714 cat >>confdefs.h <<_ACEOF
14715 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14722 ac_fn_c_check_type "$LINENO" "struct so_linger" "ac_cv_type_struct_so_linger" "
14723 #ifdef HAVE_SYS_SOCKET_H
14724 #include <sys/socket.h>
14728 if test "x$ac_cv_type_struct_so_linger" = xyes; then :
14730 cat >>confdefs.h <<_ACEOF
14731 #define HAVE_STRUCT_SO_LINGER 1
14734 #define HAVE_SO_LINGER
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
14739 $as_echo_n "checking for socklen_t... " >&6; }
14740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14741 /* end confdefs.h. */
14743 #include <sys/types.h>
14744 #include <sys/socket.h>
14753 if ac_fn_c_try_compile "$LINENO"; then :
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14755 $as_echo "yes" >&6; }
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758 $as_echo "no" >&6; }
14760 $as_echo "#define socklen_t unsigned int" >>confdefs.h
14764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
14767 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h. */
14774 const char *cp = __func__;
14779 if ac_fn_c_try_compile "$LINENO"; then :
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14781 $as_echo "yes" >&6; }
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14784 $as_echo "no" >&6; }
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
14786 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
14787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h. */
14793 const char *cp = __FUNCTION__;
14798 if ac_fn_c_try_compile "$LINENO"; then :
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14800 $as_echo "yes" >&6; }
14802 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14806 $as_echo "no" >&6; }
14808 $as_echo "#define __func__ __FILE__" >>confdefs.h
14811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14816 # check if we can compile with pthreads
14818 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
14823 ac_cpp='$CPP $CPPFLAGS'
14824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14828 # OpenLDAP --with-threads
14830 # Check whether --with-threads was given.
14831 if test "${with_threads+set}" = set; then :
14832 withval=$with_threads;
14834 for ol_val in auto nt posix mach pth lwp yes no manual ; do
14835 if test "$withval" = "$ol_val" ; then
14839 if test "$ol_arg" = "invalid" ; then
14840 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
14842 ol_with_threads="$ol_arg"
14845 ol_with_threads="auto"
14847 # end --with-threads
14850 case "$ol_with_threads$host" in
14851 auto*-*-solaris2.[0-6])
14859 *-*-aix*) if test -z "$CC" ; then
14860 case "$ol_with_threads" in
14861 auto | yes | posix) ol_aix_threads=yes ;;
14867 if test $ol_aix_threads = yes ; then
14868 if test -z "${CC}" ; then
14869 for ac_prog in cc_r xlc_r cc
14871 # Extract the first word of "$ac_prog", so it can be a program name with args.
14872 set dummy $ac_prog; ac_word=$2
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14874 $as_echo_n "checking for $ac_word... " >&6; }
14875 if ${ac_cv_prog_CC+:} false; then :
14876 $as_echo_n "(cached) " >&6
14878 if test -n "$CC"; then
14879 ac_cv_prog_CC="$CC" # Let the user override the test.
14881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14882 for as_dir in $PATH
14885 test -z "$as_dir" && as_dir=.
14886 for ac_exec_ext in '' $ac_executable_extensions; do
14887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14888 ac_cv_prog_CC="$ac_prog"
14889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14899 if test -n "$CC"; then
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14901 $as_echo "$CC" >&6; }
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14904 $as_echo "no" >&6; }
14908 test -n "$CC" && break
14912 if test "$CC" = cc ; then
14913 if test $ol_with_threads != auto ; then
14914 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
14917 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
14923 case ${CC} in cc_r | xlc_r)
14924 ol_with_threads=posix
14925 ol_cv_pthread_create=yes
14931 # OpenLDAP --with-yielding_select
14933 # Check whether --with-yielding_select was given.
14934 if test "${with_yielding_select+set}" = set; then :
14935 withval=$with_yielding_select;
14937 for ol_val in auto yes no manual ; do
14938 if test "$withval" = "$ol_val" ; then
14942 if test "$ol_arg" = "invalid" ; then
14943 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
14945 ol_with_yielding_select="$ol_arg"
14948 ol_with_yielding_select="auto"
14950 # end --with-yielding_select
14953 case $ol_with_threads in auto | yes | nt)
14956 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
14957 if test "x$ac_cv_func__beginthread" = xyes; then :
14962 if test $ac_cv_func__beginthread = yes ; then
14964 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
14966 ol_cv_nt_threads=yes
14970 if test "$ol_cv_nt_threads" = yes ; then
14972 ol_with_threads=found
14973 ol_with_yielding_select=yes
14976 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
14979 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
14983 if test $ol_with_threads = nt ; then
14984 as_fn_error $? "could not locate NT Threads" "$LINENO" 5
14989 case $ol_with_threads in auto | yes | posix)
14991 for ac_header in pthread.h
14993 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14994 if test "x$ac_cv_header_pthread_h" = xyes; then :
14995 cat >>confdefs.h <<_ACEOF
14996 #define HAVE_PTHREAD_H 1
15004 if test $ac_cv_header_pthread_h = yes ; then
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
15006 $as_echo_n "checking POSIX thread version... " >&6; }
15007 if ${ol_cv_pthread_version+:} false; then :
15008 $as_echo_n "(cached) " >&6
15011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15012 /* end confdefs.h. */
15014 # include <pthread.h>
15020 int i = PTHREAD_CREATE_JOINABLE;
15026 if ac_fn_c_try_compile "$LINENO"; then :
15028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029 /* end confdefs.h. */
15030 #include <pthread.h>
15033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15034 $EGREP "pthread_detach" >/dev/null 2>&1; then :
15035 ol_cv_pthread_version=10
15037 ol_cv_pthread_version=8
15043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h. */
15046 # include <pthread.h>
15047 # ifdef PTHREAD_CREATE_UNDETACHED
15052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15053 $EGREP "draft7" >/dev/null 2>&1; then :
15054 ol_cv_pthread_version=7
15057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15058 /* end confdefs.h. */
15059 #include <pthread.h>
15062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15063 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
15064 ol_cv_pthread_version=6
15067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15068 /* end confdefs.h. */
15070 # include <pthread.h>
15071 #ifdef PTHREAD_MUTEX_INITIALIZER
15076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15077 $EGREP "draft5" >/dev/null 2>&1; then :
15078 ol_cv_pthread_version=5
15080 ol_cv_pthread_version=4
15091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
15095 $as_echo "$ol_cv_pthread_version" >&6; }
15098 if test $ol_cv_pthread_version != 0 ; then
15100 cat >>confdefs.h <<_ACEOF
15101 #define HAVE_PTHREADS $ol_cv_pthread_version
15105 as_fn_error $? "unknown pthread version" "$LINENO" 5
15108 # consider threads found
15109 ol_with_threads=found
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
15113 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
15114 if ${ol_cv_header_linux_threads+:} false; then :
15115 $as_echo_n "(cached) " >&6
15117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118 /* end confdefs.h. */
15119 #include <pthread.h>
15121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15122 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
15123 ol_cv_header_linux_threads=yes
15125 ol_cv_header_linux_threads=no
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
15132 $as_echo "$ol_cv_header_linux_threads" >&6; }
15133 if test $ol_cv_header_linux_threads = yes; then
15135 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
15141 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
15142 if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
15143 $as_echo_n "(cached) " >&6
15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146 /* end confdefs.h. */
15147 #include <pthread.h>
15148 #ifdef _POSIX_THREAD_IS_GNU_PTH
15153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15154 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
15155 ol_cv_header_gnu_pth_pthread_h=yes
15157 ol_cv_header_gnu_pth_pthread_h=no
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
15164 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
15167 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
15168 for ac_header in sched.h
15170 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
15171 if test "x$ac_cv_header_sched_h" = xyes; then :
15172 cat >>confdefs.h <<_ACEOF
15173 #define HAVE_SCHED_H 1
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
15184 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
15185 if ${ol_cv_pthread_create+:} false; then :
15186 $as_echo_n "(cached) " >&6
15189 if test "$cross_compiling" = yes; then :
15190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15191 /* end confdefs.h. */
15193 /* pthread test headers */
15194 #include <pthread.h>
15195 #if HAVE_PTHREADS < 7
15199 #define NULL (void*)0
15202 static void *task(p)
15205 return (void *) (p == NULL);
15212 /* pthread test function */
15213 #ifndef PTHREAD_CREATE_DETACHED
15214 #define PTHREAD_CREATE_DETACHED 1
15218 int detach = PTHREAD_CREATE_DETACHED;
15220 #if HAVE_PTHREADS > 4
15221 /* Final pthreads */
15222 pthread_attr_t attr;
15224 status = pthread_attr_init(&attr);
15225 if( status ) return status;
15227 #if HAVE_PTHREADS < 7
15228 status = pthread_attr_setdetachstate(&attr, &detach);
15229 if( status < 0 ) status = errno;
15231 status = pthread_attr_setdetachstate(&attr, detach);
15233 if( status ) return status;
15234 status = pthread_create( &t, &attr, task, NULL );
15235 #if HAVE_PTHREADS < 7
15236 if( status < 0 ) status = errno;
15238 if( status ) return status;
15240 /* Draft 4 pthreads */
15241 status = pthread_create( &t, pthread_attr_default, task, NULL );
15242 if( status ) return errno;
15244 /* give thread a chance to complete */
15245 /* it should remain joinable and hence detachable */
15248 status = pthread_detach( &t );
15249 if( status ) return errno;
15252 #ifdef HAVE_LINUX_THREADS
15253 pthread_kill_other_threads_np();
15262 if ac_fn_c_try_link "$LINENO"; then :
15263 ol_cv_pthread_create=yes
15265 ol_cv_pthread_create=no
15267 rm -f core conftest.err conftest.$ac_objext \
15268 conftest$ac_exeext conftest.$ac_ext
15270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15271 /* end confdefs.h. */
15274 /* pthread test headers */
15275 #include <pthread.h>
15276 #if HAVE_PTHREADS < 7
15280 #define NULL (void*)0
15283 static void *task(p)
15286 return (void *) (p == NULL);
15290 int main(argc, argv)
15295 /* pthread test function */
15296 #ifndef PTHREAD_CREATE_DETACHED
15297 #define PTHREAD_CREATE_DETACHED 1
15301 int detach = PTHREAD_CREATE_DETACHED;
15303 #if HAVE_PTHREADS > 4
15304 /* Final pthreads */
15305 pthread_attr_t attr;
15307 status = pthread_attr_init(&attr);
15308 if( status ) return status;
15310 #if HAVE_PTHREADS < 7
15311 status = pthread_attr_setdetachstate(&attr, &detach);
15312 if( status < 0 ) status = errno;
15314 status = pthread_attr_setdetachstate(&attr, detach);
15316 if( status ) return status;
15317 status = pthread_create( &t, &attr, task, NULL );
15318 #if HAVE_PTHREADS < 7
15319 if( status < 0 ) status = errno;
15321 if( status ) return status;
15323 /* Draft 4 pthreads */
15324 status = pthread_create( &t, pthread_attr_default, task, NULL );
15325 if( status ) return errno;
15327 /* give thread a chance to complete */
15328 /* it should remain joinable and hence detachable */
15331 status = pthread_detach( &t );
15332 if( status ) return errno;
15335 #ifdef HAVE_LINUX_THREADS
15336 pthread_kill_other_threads_np();
15344 if ac_fn_c_try_run "$LINENO"; then :
15345 ol_cv_pthread_create=yes
15347 ol_cv_pthread_create=no
15349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15350 conftest.$ac_objext conftest.beam conftest.$ac_ext
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
15355 $as_echo "$ol_cv_pthread_create" >&6; }
15357 if test $ol_cv_pthread_create != no ; then
15358 ol_link_threads=posix
15359 ol_link_pthreads=""
15362 # Pthread try link: -kthread (ol_cv_pthread_kthread)
15363 if test "$ol_link_threads" = no ; then
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
15366 $as_echo_n "checking for pthread link with -kthread... " >&6; }
15367 if ${ol_cv_pthread_kthread+:} false; then :
15368 $as_echo_n "(cached) " >&6
15373 LIBS="-kthread $LIBS"
15375 if test "$cross_compiling" = yes; then :
15376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h. */
15379 /* pthread test headers */
15380 #include <pthread.h>
15381 #if HAVE_PTHREADS < 7
15385 #define NULL (void*)0
15388 static void *task(p)
15391 return (void *) (p == NULL);
15398 /* pthread test function */
15399 #ifndef PTHREAD_CREATE_DETACHED
15400 #define PTHREAD_CREATE_DETACHED 1
15404 int detach = PTHREAD_CREATE_DETACHED;
15406 #if HAVE_PTHREADS > 4
15407 /* Final pthreads */
15408 pthread_attr_t attr;
15410 status = pthread_attr_init(&attr);
15411 if( status ) return status;
15413 #if HAVE_PTHREADS < 7
15414 status = pthread_attr_setdetachstate(&attr, &detach);
15415 if( status < 0 ) status = errno;
15417 status = pthread_attr_setdetachstate(&attr, detach);
15419 if( status ) return status;
15420 status = pthread_create( &t, &attr, task, NULL );
15421 #if HAVE_PTHREADS < 7
15422 if( status < 0 ) status = errno;
15424 if( status ) return status;
15426 /* Draft 4 pthreads */
15427 status = pthread_create( &t, pthread_attr_default, task, NULL );
15428 if( status ) return errno;
15430 /* give thread a chance to complete */
15431 /* it should remain joinable and hence detachable */
15434 status = pthread_detach( &t );
15435 if( status ) return errno;
15438 #ifdef HAVE_LINUX_THREADS
15439 pthread_kill_other_threads_np();
15448 if ac_fn_c_try_link "$LINENO"; then :
15449 ol_cv_pthread_kthread=yes
15451 ol_cv_pthread_kthread=no
15453 rm -f core conftest.err conftest.$ac_objext \
15454 conftest$ac_exeext conftest.$ac_ext
15456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h. */
15460 /* pthread test headers */
15461 #include <pthread.h>
15462 #if HAVE_PTHREADS < 7
15466 #define NULL (void*)0
15469 static void *task(p)
15472 return (void *) (p == NULL);
15476 int main(argc, argv)
15481 /* pthread test function */
15482 #ifndef PTHREAD_CREATE_DETACHED
15483 #define PTHREAD_CREATE_DETACHED 1
15487 int detach = PTHREAD_CREATE_DETACHED;
15489 #if HAVE_PTHREADS > 4
15490 /* Final pthreads */
15491 pthread_attr_t attr;
15493 status = pthread_attr_init(&attr);
15494 if( status ) return status;
15496 #if HAVE_PTHREADS < 7
15497 status = pthread_attr_setdetachstate(&attr, &detach);
15498 if( status < 0 ) status = errno;
15500 status = pthread_attr_setdetachstate(&attr, detach);
15502 if( status ) return status;
15503 status = pthread_create( &t, &attr, task, NULL );
15504 #if HAVE_PTHREADS < 7
15505 if( status < 0 ) status = errno;
15507 if( status ) return status;
15509 /* Draft 4 pthreads */
15510 status = pthread_create( &t, pthread_attr_default, task, NULL );
15511 if( status ) return errno;
15513 /* give thread a chance to complete */
15514 /* it should remain joinable and hence detachable */
15517 status = pthread_detach( &t );
15518 if( status ) return errno;
15521 #ifdef HAVE_LINUX_THREADS
15522 pthread_kill_other_threads_np();
15530 if ac_fn_c_try_run "$LINENO"; then :
15531 ol_cv_pthread_kthread=yes
15533 ol_cv_pthread_kthread=no
15535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15536 conftest.$ac_objext conftest.beam conftest.$ac_ext
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
15545 $as_echo "$ol_cv_pthread_kthread" >&6; }
15547 if test $ol_cv_pthread_kthread = yes ; then
15548 ol_link_pthreads="-kthread"
15549 ol_link_threads=posix
15553 # Pthread try link: -pthread (ol_cv_pthread_pthread)
15554 if test "$ol_link_threads" = no ; then
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
15557 $as_echo_n "checking for pthread link with -pthread... " >&6; }
15558 if ${ol_cv_pthread_pthread+:} false; then :
15559 $as_echo_n "(cached) " >&6
15564 LIBS="-pthread $LIBS"
15566 if test "$cross_compiling" = yes; then :
15567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15568 /* end confdefs.h. */
15570 /* pthread test headers */
15571 #include <pthread.h>
15572 #if HAVE_PTHREADS < 7
15576 #define NULL (void*)0
15579 static void *task(p)
15582 return (void *) (p == NULL);
15589 /* pthread test function */
15590 #ifndef PTHREAD_CREATE_DETACHED
15591 #define PTHREAD_CREATE_DETACHED 1
15595 int detach = PTHREAD_CREATE_DETACHED;
15597 #if HAVE_PTHREADS > 4
15598 /* Final pthreads */
15599 pthread_attr_t attr;
15601 status = pthread_attr_init(&attr);
15602 if( status ) return status;
15604 #if HAVE_PTHREADS < 7
15605 status = pthread_attr_setdetachstate(&attr, &detach);
15606 if( status < 0 ) status = errno;
15608 status = pthread_attr_setdetachstate(&attr, detach);
15610 if( status ) return status;
15611 status = pthread_create( &t, &attr, task, NULL );
15612 #if HAVE_PTHREADS < 7
15613 if( status < 0 ) status = errno;
15615 if( status ) return status;
15617 /* Draft 4 pthreads */
15618 status = pthread_create( &t, pthread_attr_default, task, NULL );
15619 if( status ) return errno;
15621 /* give thread a chance to complete */
15622 /* it should remain joinable and hence detachable */
15625 status = pthread_detach( &t );
15626 if( status ) return errno;
15629 #ifdef HAVE_LINUX_THREADS
15630 pthread_kill_other_threads_np();
15639 if ac_fn_c_try_link "$LINENO"; then :
15640 ol_cv_pthread_pthread=yes
15642 ol_cv_pthread_pthread=no
15644 rm -f core conftest.err conftest.$ac_objext \
15645 conftest$ac_exeext conftest.$ac_ext
15647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15648 /* end confdefs.h. */
15651 /* pthread test headers */
15652 #include <pthread.h>
15653 #if HAVE_PTHREADS < 7
15657 #define NULL (void*)0
15660 static void *task(p)
15663 return (void *) (p == NULL);
15667 int main(argc, argv)
15672 /* pthread test function */
15673 #ifndef PTHREAD_CREATE_DETACHED
15674 #define PTHREAD_CREATE_DETACHED 1
15678 int detach = PTHREAD_CREATE_DETACHED;
15680 #if HAVE_PTHREADS > 4
15681 /* Final pthreads */
15682 pthread_attr_t attr;
15684 status = pthread_attr_init(&attr);
15685 if( status ) return status;
15687 #if HAVE_PTHREADS < 7
15688 status = pthread_attr_setdetachstate(&attr, &detach);
15689 if( status < 0 ) status = errno;
15691 status = pthread_attr_setdetachstate(&attr, detach);
15693 if( status ) return status;
15694 status = pthread_create( &t, &attr, task, NULL );
15695 #if HAVE_PTHREADS < 7
15696 if( status < 0 ) status = errno;
15698 if( status ) return status;
15700 /* Draft 4 pthreads */
15701 status = pthread_create( &t, pthread_attr_default, task, NULL );
15702 if( status ) return errno;
15704 /* give thread a chance to complete */
15705 /* it should remain joinable and hence detachable */
15708 status = pthread_detach( &t );
15709 if( status ) return errno;
15712 #ifdef HAVE_LINUX_THREADS
15713 pthread_kill_other_threads_np();
15721 if ac_fn_c_try_run "$LINENO"; then :
15722 ol_cv_pthread_pthread=yes
15724 ol_cv_pthread_pthread=no
15726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15727 conftest.$ac_objext conftest.beam conftest.$ac_ext
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
15736 $as_echo "$ol_cv_pthread_pthread" >&6; }
15738 if test $ol_cv_pthread_pthread = yes ; then
15739 ol_link_pthreads="-pthread"
15740 ol_link_threads=posix
15744 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
15745 if test "$ol_link_threads" = no ; then
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
15748 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
15749 if ${ol_cv_pthread_pthreads+:} false; then :
15750 $as_echo_n "(cached) " >&6
15755 LIBS="-pthreads $LIBS"
15757 if test "$cross_compiling" = yes; then :
15758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15759 /* end confdefs.h. */
15761 /* pthread test headers */
15762 #include <pthread.h>
15763 #if HAVE_PTHREADS < 7
15767 #define NULL (void*)0
15770 static void *task(p)
15773 return (void *) (p == NULL);
15780 /* pthread test function */
15781 #ifndef PTHREAD_CREATE_DETACHED
15782 #define PTHREAD_CREATE_DETACHED 1
15786 int detach = PTHREAD_CREATE_DETACHED;
15788 #if HAVE_PTHREADS > 4
15789 /* Final pthreads */
15790 pthread_attr_t attr;
15792 status = pthread_attr_init(&attr);
15793 if( status ) return status;
15795 #if HAVE_PTHREADS < 7
15796 status = pthread_attr_setdetachstate(&attr, &detach);
15797 if( status < 0 ) status = errno;
15799 status = pthread_attr_setdetachstate(&attr, detach);
15801 if( status ) return status;
15802 status = pthread_create( &t, &attr, task, NULL );
15803 #if HAVE_PTHREADS < 7
15804 if( status < 0 ) status = errno;
15806 if( status ) return status;
15808 /* Draft 4 pthreads */
15809 status = pthread_create( &t, pthread_attr_default, task, NULL );
15810 if( status ) return errno;
15812 /* give thread a chance to complete */
15813 /* it should remain joinable and hence detachable */
15816 status = pthread_detach( &t );
15817 if( status ) return errno;
15820 #ifdef HAVE_LINUX_THREADS
15821 pthread_kill_other_threads_np();
15830 if ac_fn_c_try_link "$LINENO"; then :
15831 ol_cv_pthread_pthreads=yes
15833 ol_cv_pthread_pthreads=no
15835 rm -f core conftest.err conftest.$ac_objext \
15836 conftest$ac_exeext conftest.$ac_ext
15838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15839 /* end confdefs.h. */
15842 /* pthread test headers */
15843 #include <pthread.h>
15844 #if HAVE_PTHREADS < 7
15848 #define NULL (void*)0
15851 static void *task(p)
15854 return (void *) (p == NULL);
15858 int main(argc, argv)
15863 /* pthread test function */
15864 #ifndef PTHREAD_CREATE_DETACHED
15865 #define PTHREAD_CREATE_DETACHED 1
15869 int detach = PTHREAD_CREATE_DETACHED;
15871 #if HAVE_PTHREADS > 4
15872 /* Final pthreads */
15873 pthread_attr_t attr;
15875 status = pthread_attr_init(&attr);
15876 if( status ) return status;
15878 #if HAVE_PTHREADS < 7
15879 status = pthread_attr_setdetachstate(&attr, &detach);
15880 if( status < 0 ) status = errno;
15882 status = pthread_attr_setdetachstate(&attr, detach);
15884 if( status ) return status;
15885 status = pthread_create( &t, &attr, task, NULL );
15886 #if HAVE_PTHREADS < 7
15887 if( status < 0 ) status = errno;
15889 if( status ) return status;
15891 /* Draft 4 pthreads */
15892 status = pthread_create( &t, pthread_attr_default, task, NULL );
15893 if( status ) return errno;
15895 /* give thread a chance to complete */
15896 /* it should remain joinable and hence detachable */
15899 status = pthread_detach( &t );
15900 if( status ) return errno;
15903 #ifdef HAVE_LINUX_THREADS
15904 pthread_kill_other_threads_np();
15912 if ac_fn_c_try_run "$LINENO"; then :
15913 ol_cv_pthread_pthreads=yes
15915 ol_cv_pthread_pthreads=no
15917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15918 conftest.$ac_objext conftest.beam conftest.$ac_ext
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
15927 $as_echo "$ol_cv_pthread_pthreads" >&6; }
15929 if test $ol_cv_pthread_pthreads = yes ; then
15930 ol_link_pthreads="-pthreads"
15931 ol_link_threads=posix
15935 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
15936 if test "$ol_link_threads" = no ; then
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
15939 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
15940 if ${ol_cv_pthread_mthreads+:} false; then :
15941 $as_echo_n "(cached) " >&6
15946 LIBS="-mthreads $LIBS"
15948 if test "$cross_compiling" = yes; then :
15949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950 /* end confdefs.h. */
15952 /* pthread test headers */
15953 #include <pthread.h>
15954 #if HAVE_PTHREADS < 7
15958 #define NULL (void*)0
15961 static void *task(p)
15964 return (void *) (p == NULL);
15971 /* pthread test function */
15972 #ifndef PTHREAD_CREATE_DETACHED
15973 #define PTHREAD_CREATE_DETACHED 1
15977 int detach = PTHREAD_CREATE_DETACHED;
15979 #if HAVE_PTHREADS > 4
15980 /* Final pthreads */
15981 pthread_attr_t attr;
15983 status = pthread_attr_init(&attr);
15984 if( status ) return status;
15986 #if HAVE_PTHREADS < 7
15987 status = pthread_attr_setdetachstate(&attr, &detach);
15988 if( status < 0 ) status = errno;
15990 status = pthread_attr_setdetachstate(&attr, detach);
15992 if( status ) return status;
15993 status = pthread_create( &t, &attr, task, NULL );
15994 #if HAVE_PTHREADS < 7
15995 if( status < 0 ) status = errno;
15997 if( status ) return status;
15999 /* Draft 4 pthreads */
16000 status = pthread_create( &t, pthread_attr_default, task, NULL );
16001 if( status ) return errno;
16003 /* give thread a chance to complete */
16004 /* it should remain joinable and hence detachable */
16007 status = pthread_detach( &t );
16008 if( status ) return errno;
16011 #ifdef HAVE_LINUX_THREADS
16012 pthread_kill_other_threads_np();
16021 if ac_fn_c_try_link "$LINENO"; then :
16022 ol_cv_pthread_mthreads=yes
16024 ol_cv_pthread_mthreads=no
16026 rm -f core conftest.err conftest.$ac_objext \
16027 conftest$ac_exeext conftest.$ac_ext
16029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16030 /* end confdefs.h. */
16033 /* pthread test headers */
16034 #include <pthread.h>
16035 #if HAVE_PTHREADS < 7
16039 #define NULL (void*)0
16042 static void *task(p)
16045 return (void *) (p == NULL);
16049 int main(argc, argv)
16054 /* pthread test function */
16055 #ifndef PTHREAD_CREATE_DETACHED
16056 #define PTHREAD_CREATE_DETACHED 1
16060 int detach = PTHREAD_CREATE_DETACHED;
16062 #if HAVE_PTHREADS > 4
16063 /* Final pthreads */
16064 pthread_attr_t attr;
16066 status = pthread_attr_init(&attr);
16067 if( status ) return status;
16069 #if HAVE_PTHREADS < 7
16070 status = pthread_attr_setdetachstate(&attr, &detach);
16071 if( status < 0 ) status = errno;
16073 status = pthread_attr_setdetachstate(&attr, detach);
16075 if( status ) return status;
16076 status = pthread_create( &t, &attr, task, NULL );
16077 #if HAVE_PTHREADS < 7
16078 if( status < 0 ) status = errno;
16080 if( status ) return status;
16082 /* Draft 4 pthreads */
16083 status = pthread_create( &t, pthread_attr_default, task, NULL );
16084 if( status ) return errno;
16086 /* give thread a chance to complete */
16087 /* it should remain joinable and hence detachable */
16090 status = pthread_detach( &t );
16091 if( status ) return errno;
16094 #ifdef HAVE_LINUX_THREADS
16095 pthread_kill_other_threads_np();
16103 if ac_fn_c_try_run "$LINENO"; then :
16104 ol_cv_pthread_mthreads=yes
16106 ol_cv_pthread_mthreads=no
16108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16109 conftest.$ac_objext conftest.beam conftest.$ac_ext
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
16118 $as_echo "$ol_cv_pthread_mthreads" >&6; }
16120 if test $ol_cv_pthread_mthreads = yes ; then
16121 ol_link_pthreads="-mthreads"
16122 ol_link_threads=posix
16126 # Pthread try link: -thread (ol_cv_pthread_thread)
16127 if test "$ol_link_threads" = no ; then
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
16130 $as_echo_n "checking for pthread link with -thread... " >&6; }
16131 if ${ol_cv_pthread_thread+:} false; then :
16132 $as_echo_n "(cached) " >&6
16137 LIBS="-thread $LIBS"
16139 if test "$cross_compiling" = yes; then :
16140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16141 /* end confdefs.h. */
16143 /* pthread test headers */
16144 #include <pthread.h>
16145 #if HAVE_PTHREADS < 7
16149 #define NULL (void*)0
16152 static void *task(p)
16155 return (void *) (p == NULL);
16162 /* pthread test function */
16163 #ifndef PTHREAD_CREATE_DETACHED
16164 #define PTHREAD_CREATE_DETACHED 1
16168 int detach = PTHREAD_CREATE_DETACHED;
16170 #if HAVE_PTHREADS > 4
16171 /* Final pthreads */
16172 pthread_attr_t attr;
16174 status = pthread_attr_init(&attr);
16175 if( status ) return status;
16177 #if HAVE_PTHREADS < 7
16178 status = pthread_attr_setdetachstate(&attr, &detach);
16179 if( status < 0 ) status = errno;
16181 status = pthread_attr_setdetachstate(&attr, detach);
16183 if( status ) return status;
16184 status = pthread_create( &t, &attr, task, NULL );
16185 #if HAVE_PTHREADS < 7
16186 if( status < 0 ) status = errno;
16188 if( status ) return status;
16190 /* Draft 4 pthreads */
16191 status = pthread_create( &t, pthread_attr_default, task, NULL );
16192 if( status ) return errno;
16194 /* give thread a chance to complete */
16195 /* it should remain joinable and hence detachable */
16198 status = pthread_detach( &t );
16199 if( status ) return errno;
16202 #ifdef HAVE_LINUX_THREADS
16203 pthread_kill_other_threads_np();
16212 if ac_fn_c_try_link "$LINENO"; then :
16213 ol_cv_pthread_thread=yes
16215 ol_cv_pthread_thread=no
16217 rm -f core conftest.err conftest.$ac_objext \
16218 conftest$ac_exeext conftest.$ac_ext
16220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16221 /* end confdefs.h. */
16224 /* pthread test headers */
16225 #include <pthread.h>
16226 #if HAVE_PTHREADS < 7
16230 #define NULL (void*)0
16233 static void *task(p)
16236 return (void *) (p == NULL);
16240 int main(argc, argv)
16245 /* pthread test function */
16246 #ifndef PTHREAD_CREATE_DETACHED
16247 #define PTHREAD_CREATE_DETACHED 1
16251 int detach = PTHREAD_CREATE_DETACHED;
16253 #if HAVE_PTHREADS > 4
16254 /* Final pthreads */
16255 pthread_attr_t attr;
16257 status = pthread_attr_init(&attr);
16258 if( status ) return status;
16260 #if HAVE_PTHREADS < 7
16261 status = pthread_attr_setdetachstate(&attr, &detach);
16262 if( status < 0 ) status = errno;
16264 status = pthread_attr_setdetachstate(&attr, detach);
16266 if( status ) return status;
16267 status = pthread_create( &t, &attr, task, NULL );
16268 #if HAVE_PTHREADS < 7
16269 if( status < 0 ) status = errno;
16271 if( status ) return status;
16273 /* Draft 4 pthreads */
16274 status = pthread_create( &t, pthread_attr_default, task, NULL );
16275 if( status ) return errno;
16277 /* give thread a chance to complete */
16278 /* it should remain joinable and hence detachable */
16281 status = pthread_detach( &t );
16282 if( status ) return errno;
16285 #ifdef HAVE_LINUX_THREADS
16286 pthread_kill_other_threads_np();
16294 if ac_fn_c_try_run "$LINENO"; then :
16295 ol_cv_pthread_thread=yes
16297 ol_cv_pthread_thread=no
16299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16300 conftest.$ac_objext conftest.beam conftest.$ac_ext
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
16309 $as_echo "$ol_cv_pthread_thread" >&6; }
16311 if test $ol_cv_pthread_thread = yes ; then
16312 ol_link_pthreads="-thread"
16313 ol_link_threads=posix
16318 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
16319 if test "$ol_link_threads" = no ; then
16320 # try -lpthread -lmach -lexc -lc_r
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
16322 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
16323 if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
16324 $as_echo_n "(cached) " >&6
16329 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
16331 if test "$cross_compiling" = yes; then :
16332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h. */
16335 /* pthread test headers */
16336 #include <pthread.h>
16337 #if HAVE_PTHREADS < 7
16341 #define NULL (void*)0
16344 static void *task(p)
16347 return (void *) (p == NULL);
16354 /* pthread test function */
16355 #ifndef PTHREAD_CREATE_DETACHED
16356 #define PTHREAD_CREATE_DETACHED 1
16360 int detach = PTHREAD_CREATE_DETACHED;
16362 #if HAVE_PTHREADS > 4
16363 /* Final pthreads */
16364 pthread_attr_t attr;
16366 status = pthread_attr_init(&attr);
16367 if( status ) return status;
16369 #if HAVE_PTHREADS < 7
16370 status = pthread_attr_setdetachstate(&attr, &detach);
16371 if( status < 0 ) status = errno;
16373 status = pthread_attr_setdetachstate(&attr, detach);
16375 if( status ) return status;
16376 status = pthread_create( &t, &attr, task, NULL );
16377 #if HAVE_PTHREADS < 7
16378 if( status < 0 ) status = errno;
16380 if( status ) return status;
16382 /* Draft 4 pthreads */
16383 status = pthread_create( &t, pthread_attr_default, task, NULL );
16384 if( status ) return errno;
16386 /* give thread a chance to complete */
16387 /* it should remain joinable and hence detachable */
16390 status = pthread_detach( &t );
16391 if( status ) return errno;
16394 #ifdef HAVE_LINUX_THREADS
16395 pthread_kill_other_threads_np();
16404 if ac_fn_c_try_link "$LINENO"; then :
16405 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
16407 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
16409 rm -f core conftest.err conftest.$ac_objext \
16410 conftest$ac_exeext conftest.$ac_ext
16412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16413 /* end confdefs.h. */
16416 /* pthread test headers */
16417 #include <pthread.h>
16418 #if HAVE_PTHREADS < 7
16422 #define NULL (void*)0
16425 static void *task(p)
16428 return (void *) (p == NULL);
16432 int main(argc, argv)
16437 /* pthread test function */
16438 #ifndef PTHREAD_CREATE_DETACHED
16439 #define PTHREAD_CREATE_DETACHED 1
16443 int detach = PTHREAD_CREATE_DETACHED;
16445 #if HAVE_PTHREADS > 4
16446 /* Final pthreads */
16447 pthread_attr_t attr;
16449 status = pthread_attr_init(&attr);
16450 if( status ) return status;
16452 #if HAVE_PTHREADS < 7
16453 status = pthread_attr_setdetachstate(&attr, &detach);
16454 if( status < 0 ) status = errno;
16456 status = pthread_attr_setdetachstate(&attr, detach);
16458 if( status ) return status;
16459 status = pthread_create( &t, &attr, task, NULL );
16460 #if HAVE_PTHREADS < 7
16461 if( status < 0 ) status = errno;
16463 if( status ) return status;
16465 /* Draft 4 pthreads */
16466 status = pthread_create( &t, pthread_attr_default, task, NULL );
16467 if( status ) return errno;
16469 /* give thread a chance to complete */
16470 /* it should remain joinable and hence detachable */
16473 status = pthread_detach( &t );
16474 if( status ) return errno;
16477 #ifdef HAVE_LINUX_THREADS
16478 pthread_kill_other_threads_np();
16486 if ac_fn_c_try_run "$LINENO"; then :
16487 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
16489 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
16491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16492 conftest.$ac_objext conftest.beam conftest.$ac_ext
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
16501 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
16503 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
16504 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
16505 ol_link_threads=posix
16509 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
16510 if test "$ol_link_threads" = no ; then
16511 # try -lpthread -lmach -lexc
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
16513 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
16514 if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
16515 $as_echo_n "(cached) " >&6
16520 LIBS="-lpthread -lmach -lexc $LIBS"
16522 if test "$cross_compiling" = yes; then :
16523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16524 /* end confdefs.h. */
16526 /* pthread test headers */
16527 #include <pthread.h>
16528 #if HAVE_PTHREADS < 7
16532 #define NULL (void*)0
16535 static void *task(p)
16538 return (void *) (p == NULL);
16545 /* pthread test function */
16546 #ifndef PTHREAD_CREATE_DETACHED
16547 #define PTHREAD_CREATE_DETACHED 1
16551 int detach = PTHREAD_CREATE_DETACHED;
16553 #if HAVE_PTHREADS > 4
16554 /* Final pthreads */
16555 pthread_attr_t attr;
16557 status = pthread_attr_init(&attr);
16558 if( status ) return status;
16560 #if HAVE_PTHREADS < 7
16561 status = pthread_attr_setdetachstate(&attr, &detach);
16562 if( status < 0 ) status = errno;
16564 status = pthread_attr_setdetachstate(&attr, detach);
16566 if( status ) return status;
16567 status = pthread_create( &t, &attr, task, NULL );
16568 #if HAVE_PTHREADS < 7
16569 if( status < 0 ) status = errno;
16571 if( status ) return status;
16573 /* Draft 4 pthreads */
16574 status = pthread_create( &t, pthread_attr_default, task, NULL );
16575 if( status ) return errno;
16577 /* give thread a chance to complete */
16578 /* it should remain joinable and hence detachable */
16581 status = pthread_detach( &t );
16582 if( status ) return errno;
16585 #ifdef HAVE_LINUX_THREADS
16586 pthread_kill_other_threads_np();
16595 if ac_fn_c_try_link "$LINENO"; then :
16596 ol_cv_pthread_lpthread_lmach_lexc=yes
16598 ol_cv_pthread_lpthread_lmach_lexc=no
16600 rm -f core conftest.err conftest.$ac_objext \
16601 conftest$ac_exeext conftest.$ac_ext
16603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16604 /* end confdefs.h. */
16607 /* pthread test headers */
16608 #include <pthread.h>
16609 #if HAVE_PTHREADS < 7
16613 #define NULL (void*)0
16616 static void *task(p)
16619 return (void *) (p == NULL);
16623 int main(argc, argv)
16628 /* pthread test function */
16629 #ifndef PTHREAD_CREATE_DETACHED
16630 #define PTHREAD_CREATE_DETACHED 1
16634 int detach = PTHREAD_CREATE_DETACHED;
16636 #if HAVE_PTHREADS > 4
16637 /* Final pthreads */
16638 pthread_attr_t attr;
16640 status = pthread_attr_init(&attr);
16641 if( status ) return status;
16643 #if HAVE_PTHREADS < 7
16644 status = pthread_attr_setdetachstate(&attr, &detach);
16645 if( status < 0 ) status = errno;
16647 status = pthread_attr_setdetachstate(&attr, detach);
16649 if( status ) return status;
16650 status = pthread_create( &t, &attr, task, NULL );
16651 #if HAVE_PTHREADS < 7
16652 if( status < 0 ) status = errno;
16654 if( status ) return status;
16656 /* Draft 4 pthreads */
16657 status = pthread_create( &t, pthread_attr_default, task, NULL );
16658 if( status ) return errno;
16660 /* give thread a chance to complete */
16661 /* it should remain joinable and hence detachable */
16664 status = pthread_detach( &t );
16665 if( status ) return errno;
16668 #ifdef HAVE_LINUX_THREADS
16669 pthread_kill_other_threads_np();
16677 if ac_fn_c_try_run "$LINENO"; then :
16678 ol_cv_pthread_lpthread_lmach_lexc=yes
16680 ol_cv_pthread_lpthread_lmach_lexc=no
16682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16683 conftest.$ac_objext conftest.beam conftest.$ac_ext
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
16692 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
16694 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
16695 ol_link_pthreads="-lpthread -lmach -lexc"
16696 ol_link_threads=posix
16701 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
16702 if test "$ol_link_threads" = no ; then
16703 # try -lpthread -Wl,-woff,85
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
16705 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
16706 if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
16707 $as_echo_n "(cached) " >&6
16712 LIBS="-lpthread -Wl,-woff,85 $LIBS"
16714 if test "$cross_compiling" = yes; then :
16715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16716 /* end confdefs.h. */
16718 /* pthread test headers */
16719 #include <pthread.h>
16720 #if HAVE_PTHREADS < 7
16724 #define NULL (void*)0
16727 static void *task(p)
16730 return (void *) (p == NULL);
16737 /* pthread test function */
16738 #ifndef PTHREAD_CREATE_DETACHED
16739 #define PTHREAD_CREATE_DETACHED 1
16743 int detach = PTHREAD_CREATE_DETACHED;
16745 #if HAVE_PTHREADS > 4
16746 /* Final pthreads */
16747 pthread_attr_t attr;
16749 status = pthread_attr_init(&attr);
16750 if( status ) return status;
16752 #if HAVE_PTHREADS < 7
16753 status = pthread_attr_setdetachstate(&attr, &detach);
16754 if( status < 0 ) status = errno;
16756 status = pthread_attr_setdetachstate(&attr, detach);
16758 if( status ) return status;
16759 status = pthread_create( &t, &attr, task, NULL );
16760 #if HAVE_PTHREADS < 7
16761 if( status < 0 ) status = errno;
16763 if( status ) return status;
16765 /* Draft 4 pthreads */
16766 status = pthread_create( &t, pthread_attr_default, task, NULL );
16767 if( status ) return errno;
16769 /* give thread a chance to complete */
16770 /* it should remain joinable and hence detachable */
16773 status = pthread_detach( &t );
16774 if( status ) return errno;
16777 #ifdef HAVE_LINUX_THREADS
16778 pthread_kill_other_threads_np();
16787 if ac_fn_c_try_link "$LINENO"; then :
16788 ol_cv_pthread_lib_lpthread_woff=yes
16790 ol_cv_pthread_lib_lpthread_woff=no
16792 rm -f core conftest.err conftest.$ac_objext \
16793 conftest$ac_exeext conftest.$ac_ext
16795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16796 /* end confdefs.h. */
16799 /* pthread test headers */
16800 #include <pthread.h>
16801 #if HAVE_PTHREADS < 7
16805 #define NULL (void*)0
16808 static void *task(p)
16811 return (void *) (p == NULL);
16815 int main(argc, argv)
16820 /* pthread test function */
16821 #ifndef PTHREAD_CREATE_DETACHED
16822 #define PTHREAD_CREATE_DETACHED 1
16826 int detach = PTHREAD_CREATE_DETACHED;
16828 #if HAVE_PTHREADS > 4
16829 /* Final pthreads */
16830 pthread_attr_t attr;
16832 status = pthread_attr_init(&attr);
16833 if( status ) return status;
16835 #if HAVE_PTHREADS < 7
16836 status = pthread_attr_setdetachstate(&attr, &detach);
16837 if( status < 0 ) status = errno;
16839 status = pthread_attr_setdetachstate(&attr, detach);
16841 if( status ) return status;
16842 status = pthread_create( &t, &attr, task, NULL );
16843 #if HAVE_PTHREADS < 7
16844 if( status < 0 ) status = errno;
16846 if( status ) return status;
16848 /* Draft 4 pthreads */
16849 status = pthread_create( &t, pthread_attr_default, task, NULL );
16850 if( status ) return errno;
16852 /* give thread a chance to complete */
16853 /* it should remain joinable and hence detachable */
16856 status = pthread_detach( &t );
16857 if( status ) return errno;
16860 #ifdef HAVE_LINUX_THREADS
16861 pthread_kill_other_threads_np();
16869 if ac_fn_c_try_run "$LINENO"; then :
16870 ol_cv_pthread_lib_lpthread_woff=yes
16872 ol_cv_pthread_lib_lpthread_woff=no
16874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16875 conftest.$ac_objext conftest.beam conftest.$ac_ext
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
16884 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
16886 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
16887 ol_link_pthreads="-lpthread -Wl,-woff,85"
16888 ol_link_threads=posix
16893 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
16894 if test "$ol_link_threads" = no ; then
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
16897 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
16898 if ${ol_cv_pthread_lpthread+:} false; then :
16899 $as_echo_n "(cached) " >&6
16904 LIBS="-lpthread $LIBS"
16906 if test "$cross_compiling" = yes; then :
16907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16908 /* end confdefs.h. */
16910 /* pthread test headers */
16911 #include <pthread.h>
16912 #if HAVE_PTHREADS < 7
16916 #define NULL (void*)0
16919 static void *task(p)
16922 return (void *) (p == NULL);
16929 /* pthread test function */
16930 #ifndef PTHREAD_CREATE_DETACHED
16931 #define PTHREAD_CREATE_DETACHED 1
16935 int detach = PTHREAD_CREATE_DETACHED;
16937 #if HAVE_PTHREADS > 4
16938 /* Final pthreads */
16939 pthread_attr_t attr;
16941 status = pthread_attr_init(&attr);
16942 if( status ) return status;
16944 #if HAVE_PTHREADS < 7
16945 status = pthread_attr_setdetachstate(&attr, &detach);
16946 if( status < 0 ) status = errno;
16948 status = pthread_attr_setdetachstate(&attr, detach);
16950 if( status ) return status;
16951 status = pthread_create( &t, &attr, task, NULL );
16952 #if HAVE_PTHREADS < 7
16953 if( status < 0 ) status = errno;
16955 if( status ) return status;
16957 /* Draft 4 pthreads */
16958 status = pthread_create( &t, pthread_attr_default, task, NULL );
16959 if( status ) return errno;
16961 /* give thread a chance to complete */
16962 /* it should remain joinable and hence detachable */
16965 status = pthread_detach( &t );
16966 if( status ) return errno;
16969 #ifdef HAVE_LINUX_THREADS
16970 pthread_kill_other_threads_np();
16979 if ac_fn_c_try_link "$LINENO"; then :
16980 ol_cv_pthread_lpthread=yes
16982 ol_cv_pthread_lpthread=no
16984 rm -f core conftest.err conftest.$ac_objext \
16985 conftest$ac_exeext conftest.$ac_ext
16987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16988 /* end confdefs.h. */
16991 /* pthread test headers */
16992 #include <pthread.h>
16993 #if HAVE_PTHREADS < 7
16997 #define NULL (void*)0
17000 static void *task(p)
17003 return (void *) (p == NULL);
17007 int main(argc, argv)
17012 /* pthread test function */
17013 #ifndef PTHREAD_CREATE_DETACHED
17014 #define PTHREAD_CREATE_DETACHED 1
17018 int detach = PTHREAD_CREATE_DETACHED;
17020 #if HAVE_PTHREADS > 4
17021 /* Final pthreads */
17022 pthread_attr_t attr;
17024 status = pthread_attr_init(&attr);
17025 if( status ) return status;
17027 #if HAVE_PTHREADS < 7
17028 status = pthread_attr_setdetachstate(&attr, &detach);
17029 if( status < 0 ) status = errno;
17031 status = pthread_attr_setdetachstate(&attr, detach);
17033 if( status ) return status;
17034 status = pthread_create( &t, &attr, task, NULL );
17035 #if HAVE_PTHREADS < 7
17036 if( status < 0 ) status = errno;
17038 if( status ) return status;
17040 /* Draft 4 pthreads */
17041 status = pthread_create( &t, pthread_attr_default, task, NULL );
17042 if( status ) return errno;
17044 /* give thread a chance to complete */
17045 /* it should remain joinable and hence detachable */
17048 status = pthread_detach( &t );
17049 if( status ) return errno;
17052 #ifdef HAVE_LINUX_THREADS
17053 pthread_kill_other_threads_np();
17061 if ac_fn_c_try_run "$LINENO"; then :
17062 ol_cv_pthread_lpthread=yes
17064 ol_cv_pthread_lpthread=no
17066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17067 conftest.$ac_objext conftest.beam conftest.$ac_ext
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
17076 $as_echo "$ol_cv_pthread_lpthread" >&6; }
17078 if test $ol_cv_pthread_lpthread = yes ; then
17079 ol_link_pthreads="-lpthread"
17080 ol_link_threads=posix
17084 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
17085 if test "$ol_link_threads" = no ; then
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
17088 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
17089 if ${ol_cv_pthread_lc_r+:} false; then :
17090 $as_echo_n "(cached) " >&6
17097 if test "$cross_compiling" = yes; then :
17098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17099 /* end confdefs.h. */
17101 /* pthread test headers */
17102 #include <pthread.h>
17103 #if HAVE_PTHREADS < 7
17107 #define NULL (void*)0
17110 static void *task(p)
17113 return (void *) (p == NULL);
17120 /* pthread test function */
17121 #ifndef PTHREAD_CREATE_DETACHED
17122 #define PTHREAD_CREATE_DETACHED 1
17126 int detach = PTHREAD_CREATE_DETACHED;
17128 #if HAVE_PTHREADS > 4
17129 /* Final pthreads */
17130 pthread_attr_t attr;
17132 status = pthread_attr_init(&attr);
17133 if( status ) return status;
17135 #if HAVE_PTHREADS < 7
17136 status = pthread_attr_setdetachstate(&attr, &detach);
17137 if( status < 0 ) status = errno;
17139 status = pthread_attr_setdetachstate(&attr, detach);
17141 if( status ) return status;
17142 status = pthread_create( &t, &attr, task, NULL );
17143 #if HAVE_PTHREADS < 7
17144 if( status < 0 ) status = errno;
17146 if( status ) return status;
17148 /* Draft 4 pthreads */
17149 status = pthread_create( &t, pthread_attr_default, task, NULL );
17150 if( status ) return errno;
17152 /* give thread a chance to complete */
17153 /* it should remain joinable and hence detachable */
17156 status = pthread_detach( &t );
17157 if( status ) return errno;
17160 #ifdef HAVE_LINUX_THREADS
17161 pthread_kill_other_threads_np();
17170 if ac_fn_c_try_link "$LINENO"; then :
17171 ol_cv_pthread_lc_r=yes
17173 ol_cv_pthread_lc_r=no
17175 rm -f core conftest.err conftest.$ac_objext \
17176 conftest$ac_exeext conftest.$ac_ext
17178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17179 /* end confdefs.h. */
17182 /* pthread test headers */
17183 #include <pthread.h>
17184 #if HAVE_PTHREADS < 7
17188 #define NULL (void*)0
17191 static void *task(p)
17194 return (void *) (p == NULL);
17198 int main(argc, argv)
17203 /* pthread test function */
17204 #ifndef PTHREAD_CREATE_DETACHED
17205 #define PTHREAD_CREATE_DETACHED 1
17209 int detach = PTHREAD_CREATE_DETACHED;
17211 #if HAVE_PTHREADS > 4
17212 /* Final pthreads */
17213 pthread_attr_t attr;
17215 status = pthread_attr_init(&attr);
17216 if( status ) return status;
17218 #if HAVE_PTHREADS < 7
17219 status = pthread_attr_setdetachstate(&attr, &detach);
17220 if( status < 0 ) status = errno;
17222 status = pthread_attr_setdetachstate(&attr, detach);
17224 if( status ) return status;
17225 status = pthread_create( &t, &attr, task, NULL );
17226 #if HAVE_PTHREADS < 7
17227 if( status < 0 ) status = errno;
17229 if( status ) return status;
17231 /* Draft 4 pthreads */
17232 status = pthread_create( &t, pthread_attr_default, task, NULL );
17233 if( status ) return errno;
17235 /* give thread a chance to complete */
17236 /* it should remain joinable and hence detachable */
17239 status = pthread_detach( &t );
17240 if( status ) return errno;
17243 #ifdef HAVE_LINUX_THREADS
17244 pthread_kill_other_threads_np();
17252 if ac_fn_c_try_run "$LINENO"; then :
17253 ol_cv_pthread_lc_r=yes
17255 ol_cv_pthread_lc_r=no
17257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17258 conftest.$ac_objext conftest.beam conftest.$ac_ext
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
17267 $as_echo "$ol_cv_pthread_lc_r" >&6; }
17269 if test $ol_cv_pthread_lc_r = yes ; then
17270 ol_link_pthreads="-lc_r"
17271 ol_link_threads=posix
17276 # Pthread try link: -threads (ol_cv_pthread_threads)
17277 if test "$ol_link_threads" = no ; then
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
17280 $as_echo_n "checking for pthread link with -threads... " >&6; }
17281 if ${ol_cv_pthread_threads+:} false; then :
17282 $as_echo_n "(cached) " >&6
17287 LIBS="-threads $LIBS"
17289 if test "$cross_compiling" = yes; then :
17290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17291 /* end confdefs.h. */
17293 /* pthread test headers */
17294 #include <pthread.h>
17295 #if HAVE_PTHREADS < 7
17299 #define NULL (void*)0
17302 static void *task(p)
17305 return (void *) (p == NULL);
17312 /* pthread test function */
17313 #ifndef PTHREAD_CREATE_DETACHED
17314 #define PTHREAD_CREATE_DETACHED 1
17318 int detach = PTHREAD_CREATE_DETACHED;
17320 #if HAVE_PTHREADS > 4
17321 /* Final pthreads */
17322 pthread_attr_t attr;
17324 status = pthread_attr_init(&attr);
17325 if( status ) return status;
17327 #if HAVE_PTHREADS < 7
17328 status = pthread_attr_setdetachstate(&attr, &detach);
17329 if( status < 0 ) status = errno;
17331 status = pthread_attr_setdetachstate(&attr, detach);
17333 if( status ) return status;
17334 status = pthread_create( &t, &attr, task, NULL );
17335 #if HAVE_PTHREADS < 7
17336 if( status < 0 ) status = errno;
17338 if( status ) return status;
17340 /* Draft 4 pthreads */
17341 status = pthread_create( &t, pthread_attr_default, task, NULL );
17342 if( status ) return errno;
17344 /* give thread a chance to complete */
17345 /* it should remain joinable and hence detachable */
17348 status = pthread_detach( &t );
17349 if( status ) return errno;
17352 #ifdef HAVE_LINUX_THREADS
17353 pthread_kill_other_threads_np();
17362 if ac_fn_c_try_link "$LINENO"; then :
17363 ol_cv_pthread_threads=yes
17365 ol_cv_pthread_threads=no
17367 rm -f core conftest.err conftest.$ac_objext \
17368 conftest$ac_exeext conftest.$ac_ext
17370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17371 /* end confdefs.h. */
17374 /* pthread test headers */
17375 #include <pthread.h>
17376 #if HAVE_PTHREADS < 7
17380 #define NULL (void*)0
17383 static void *task(p)
17386 return (void *) (p == NULL);
17390 int main(argc, argv)
17395 /* pthread test function */
17396 #ifndef PTHREAD_CREATE_DETACHED
17397 #define PTHREAD_CREATE_DETACHED 1
17401 int detach = PTHREAD_CREATE_DETACHED;
17403 #if HAVE_PTHREADS > 4
17404 /* Final pthreads */
17405 pthread_attr_t attr;
17407 status = pthread_attr_init(&attr);
17408 if( status ) return status;
17410 #if HAVE_PTHREADS < 7
17411 status = pthread_attr_setdetachstate(&attr, &detach);
17412 if( status < 0 ) status = errno;
17414 status = pthread_attr_setdetachstate(&attr, detach);
17416 if( status ) return status;
17417 status = pthread_create( &t, &attr, task, NULL );
17418 #if HAVE_PTHREADS < 7
17419 if( status < 0 ) status = errno;
17421 if( status ) return status;
17423 /* Draft 4 pthreads */
17424 status = pthread_create( &t, pthread_attr_default, task, NULL );
17425 if( status ) return errno;
17427 /* give thread a chance to complete */
17428 /* it should remain joinable and hence detachable */
17431 status = pthread_detach( &t );
17432 if( status ) return errno;
17435 #ifdef HAVE_LINUX_THREADS
17436 pthread_kill_other_threads_np();
17444 if ac_fn_c_try_run "$LINENO"; then :
17445 ol_cv_pthread_threads=yes
17447 ol_cv_pthread_threads=no
17449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17450 conftest.$ac_objext conftest.beam conftest.$ac_ext
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
17459 $as_echo "$ol_cv_pthread_threads" >&6; }
17461 if test $ol_cv_pthread_threads = yes ; then
17462 ol_link_pthreads="-threads"
17463 ol_link_threads=posix
17468 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
17469 if test "$ol_link_threads" = no ; then
17470 # try -lpthreads -lmach -lexc -lc_r
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
17472 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
17473 if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
17474 $as_echo_n "(cached) " >&6
17479 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
17481 if test "$cross_compiling" = yes; then :
17482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17483 /* end confdefs.h. */
17485 /* pthread test headers */
17486 #include <pthread.h>
17487 #if HAVE_PTHREADS < 7
17491 #define NULL (void*)0
17494 static void *task(p)
17497 return (void *) (p == NULL);
17504 /* pthread test function */
17505 #ifndef PTHREAD_CREATE_DETACHED
17506 #define PTHREAD_CREATE_DETACHED 1
17510 int detach = PTHREAD_CREATE_DETACHED;
17512 #if HAVE_PTHREADS > 4
17513 /* Final pthreads */
17514 pthread_attr_t attr;
17516 status = pthread_attr_init(&attr);
17517 if( status ) return status;
17519 #if HAVE_PTHREADS < 7
17520 status = pthread_attr_setdetachstate(&attr, &detach);
17521 if( status < 0 ) status = errno;
17523 status = pthread_attr_setdetachstate(&attr, detach);
17525 if( status ) return status;
17526 status = pthread_create( &t, &attr, task, NULL );
17527 #if HAVE_PTHREADS < 7
17528 if( status < 0 ) status = errno;
17530 if( status ) return status;
17532 /* Draft 4 pthreads */
17533 status = pthread_create( &t, pthread_attr_default, task, NULL );
17534 if( status ) return errno;
17536 /* give thread a chance to complete */
17537 /* it should remain joinable and hence detachable */
17540 status = pthread_detach( &t );
17541 if( status ) return errno;
17544 #ifdef HAVE_LINUX_THREADS
17545 pthread_kill_other_threads_np();
17554 if ac_fn_c_try_link "$LINENO"; then :
17555 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
17557 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
17559 rm -f core conftest.err conftest.$ac_objext \
17560 conftest$ac_exeext conftest.$ac_ext
17562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17563 /* end confdefs.h. */
17566 /* pthread test headers */
17567 #include <pthread.h>
17568 #if HAVE_PTHREADS < 7
17572 #define NULL (void*)0
17575 static void *task(p)
17578 return (void *) (p == NULL);
17582 int main(argc, argv)
17587 /* pthread test function */
17588 #ifndef PTHREAD_CREATE_DETACHED
17589 #define PTHREAD_CREATE_DETACHED 1
17593 int detach = PTHREAD_CREATE_DETACHED;
17595 #if HAVE_PTHREADS > 4
17596 /* Final pthreads */
17597 pthread_attr_t attr;
17599 status = pthread_attr_init(&attr);
17600 if( status ) return status;
17602 #if HAVE_PTHREADS < 7
17603 status = pthread_attr_setdetachstate(&attr, &detach);
17604 if( status < 0 ) status = errno;
17606 status = pthread_attr_setdetachstate(&attr, detach);
17608 if( status ) return status;
17609 status = pthread_create( &t, &attr, task, NULL );
17610 #if HAVE_PTHREADS < 7
17611 if( status < 0 ) status = errno;
17613 if( status ) return status;
17615 /* Draft 4 pthreads */
17616 status = pthread_create( &t, pthread_attr_default, task, NULL );
17617 if( status ) return errno;
17619 /* give thread a chance to complete */
17620 /* it should remain joinable and hence detachable */
17623 status = pthread_detach( &t );
17624 if( status ) return errno;
17627 #ifdef HAVE_LINUX_THREADS
17628 pthread_kill_other_threads_np();
17636 if ac_fn_c_try_run "$LINENO"; then :
17637 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
17639 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
17641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17642 conftest.$ac_objext conftest.beam conftest.$ac_ext
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
17651 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
17653 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
17654 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
17655 ol_link_threads=posix
17659 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
17660 if test "$ol_link_threads" = no ; then
17661 # try -lpthreads -lmach -lexc
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
17663 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
17664 if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
17665 $as_echo_n "(cached) " >&6
17670 LIBS="-lpthreads -lmach -lexc $LIBS"
17672 if test "$cross_compiling" = yes; then :
17673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17674 /* end confdefs.h. */
17676 /* pthread test headers */
17677 #include <pthread.h>
17678 #if HAVE_PTHREADS < 7
17682 #define NULL (void*)0
17685 static void *task(p)
17688 return (void *) (p == NULL);
17695 /* pthread test function */
17696 #ifndef PTHREAD_CREATE_DETACHED
17697 #define PTHREAD_CREATE_DETACHED 1
17701 int detach = PTHREAD_CREATE_DETACHED;
17703 #if HAVE_PTHREADS > 4
17704 /* Final pthreads */
17705 pthread_attr_t attr;
17707 status = pthread_attr_init(&attr);
17708 if( status ) return status;
17710 #if HAVE_PTHREADS < 7
17711 status = pthread_attr_setdetachstate(&attr, &detach);
17712 if( status < 0 ) status = errno;
17714 status = pthread_attr_setdetachstate(&attr, detach);
17716 if( status ) return status;
17717 status = pthread_create( &t, &attr, task, NULL );
17718 #if HAVE_PTHREADS < 7
17719 if( status < 0 ) status = errno;
17721 if( status ) return status;
17723 /* Draft 4 pthreads */
17724 status = pthread_create( &t, pthread_attr_default, task, NULL );
17725 if( status ) return errno;
17727 /* give thread a chance to complete */
17728 /* it should remain joinable and hence detachable */
17731 status = pthread_detach( &t );
17732 if( status ) return errno;
17735 #ifdef HAVE_LINUX_THREADS
17736 pthread_kill_other_threads_np();
17745 if ac_fn_c_try_link "$LINENO"; then :
17746 ol_cv_pthread_lpthreads_lmach_lexc=yes
17748 ol_cv_pthread_lpthreads_lmach_lexc=no
17750 rm -f core conftest.err conftest.$ac_objext \
17751 conftest$ac_exeext conftest.$ac_ext
17753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17754 /* end confdefs.h. */
17757 /* pthread test headers */
17758 #include <pthread.h>
17759 #if HAVE_PTHREADS < 7
17763 #define NULL (void*)0
17766 static void *task(p)
17769 return (void *) (p == NULL);
17773 int main(argc, argv)
17778 /* pthread test function */
17779 #ifndef PTHREAD_CREATE_DETACHED
17780 #define PTHREAD_CREATE_DETACHED 1
17784 int detach = PTHREAD_CREATE_DETACHED;
17786 #if HAVE_PTHREADS > 4
17787 /* Final pthreads */
17788 pthread_attr_t attr;
17790 status = pthread_attr_init(&attr);
17791 if( status ) return status;
17793 #if HAVE_PTHREADS < 7
17794 status = pthread_attr_setdetachstate(&attr, &detach);
17795 if( status < 0 ) status = errno;
17797 status = pthread_attr_setdetachstate(&attr, detach);
17799 if( status ) return status;
17800 status = pthread_create( &t, &attr, task, NULL );
17801 #if HAVE_PTHREADS < 7
17802 if( status < 0 ) status = errno;
17804 if( status ) return status;
17806 /* Draft 4 pthreads */
17807 status = pthread_create( &t, pthread_attr_default, task, NULL );
17808 if( status ) return errno;
17810 /* give thread a chance to complete */
17811 /* it should remain joinable and hence detachable */
17814 status = pthread_detach( &t );
17815 if( status ) return errno;
17818 #ifdef HAVE_LINUX_THREADS
17819 pthread_kill_other_threads_np();
17827 if ac_fn_c_try_run "$LINENO"; then :
17828 ol_cv_pthread_lpthreads_lmach_lexc=yes
17830 ol_cv_pthread_lpthreads_lmach_lexc=no
17832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17833 conftest.$ac_objext conftest.beam conftest.$ac_ext
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
17842 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
17844 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
17845 ol_link_pthreads="-lpthreads -lmach -lexc"
17846 ol_link_threads=posix
17850 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
17851 if test "$ol_link_threads" = no ; then
17852 # try -lpthreads -lexc
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
17854 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
17855 if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
17856 $as_echo_n "(cached) " >&6
17861 LIBS="-lpthreads -lexc $LIBS"
17863 if test "$cross_compiling" = yes; then :
17864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17865 /* end confdefs.h. */
17867 /* pthread test headers */
17868 #include <pthread.h>
17869 #if HAVE_PTHREADS < 7
17873 #define NULL (void*)0
17876 static void *task(p)
17879 return (void *) (p == NULL);
17886 /* pthread test function */
17887 #ifndef PTHREAD_CREATE_DETACHED
17888 #define PTHREAD_CREATE_DETACHED 1
17892 int detach = PTHREAD_CREATE_DETACHED;
17894 #if HAVE_PTHREADS > 4
17895 /* Final pthreads */
17896 pthread_attr_t attr;
17898 status = pthread_attr_init(&attr);
17899 if( status ) return status;
17901 #if HAVE_PTHREADS < 7
17902 status = pthread_attr_setdetachstate(&attr, &detach);
17903 if( status < 0 ) status = errno;
17905 status = pthread_attr_setdetachstate(&attr, detach);
17907 if( status ) return status;
17908 status = pthread_create( &t, &attr, task, NULL );
17909 #if HAVE_PTHREADS < 7
17910 if( status < 0 ) status = errno;
17912 if( status ) return status;
17914 /* Draft 4 pthreads */
17915 status = pthread_create( &t, pthread_attr_default, task, NULL );
17916 if( status ) return errno;
17918 /* give thread a chance to complete */
17919 /* it should remain joinable and hence detachable */
17922 status = pthread_detach( &t );
17923 if( status ) return errno;
17926 #ifdef HAVE_LINUX_THREADS
17927 pthread_kill_other_threads_np();
17936 if ac_fn_c_try_link "$LINENO"; then :
17937 ol_cv_pthread_lpthreads_lexc=yes
17939 ol_cv_pthread_lpthreads_lexc=no
17941 rm -f core conftest.err conftest.$ac_objext \
17942 conftest$ac_exeext conftest.$ac_ext
17944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17945 /* end confdefs.h. */
17948 /* pthread test headers */
17949 #include <pthread.h>
17950 #if HAVE_PTHREADS < 7
17954 #define NULL (void*)0
17957 static void *task(p)
17960 return (void *) (p == NULL);
17964 int main(argc, argv)
17969 /* pthread test function */
17970 #ifndef PTHREAD_CREATE_DETACHED
17971 #define PTHREAD_CREATE_DETACHED 1
17975 int detach = PTHREAD_CREATE_DETACHED;
17977 #if HAVE_PTHREADS > 4
17978 /* Final pthreads */
17979 pthread_attr_t attr;
17981 status = pthread_attr_init(&attr);
17982 if( status ) return status;
17984 #if HAVE_PTHREADS < 7
17985 status = pthread_attr_setdetachstate(&attr, &detach);
17986 if( status < 0 ) status = errno;
17988 status = pthread_attr_setdetachstate(&attr, detach);
17990 if( status ) return status;
17991 status = pthread_create( &t, &attr, task, NULL );
17992 #if HAVE_PTHREADS < 7
17993 if( status < 0 ) status = errno;
17995 if( status ) return status;
17997 /* Draft 4 pthreads */
17998 status = pthread_create( &t, pthread_attr_default, task, NULL );
17999 if( status ) return errno;
18001 /* give thread a chance to complete */
18002 /* it should remain joinable and hence detachable */
18005 status = pthread_detach( &t );
18006 if( status ) return errno;
18009 #ifdef HAVE_LINUX_THREADS
18010 pthread_kill_other_threads_np();
18018 if ac_fn_c_try_run "$LINENO"; then :
18019 ol_cv_pthread_lpthreads_lexc=yes
18021 ol_cv_pthread_lpthreads_lexc=no
18023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18024 conftest.$ac_objext conftest.beam conftest.$ac_ext
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
18033 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
18035 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
18036 ol_link_pthreads="-lpthreads -lexc"
18037 ol_link_threads=posix
18042 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
18043 if test "$ol_link_threads" = no ; then
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
18046 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
18047 if ${ol_cv_pthread_lib_lpthreads+:} false; then :
18048 $as_echo_n "(cached) " >&6
18053 LIBS="-lpthreads $LIBS"
18055 if test "$cross_compiling" = yes; then :
18056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057 /* end confdefs.h. */
18059 /* pthread test headers */
18060 #include <pthread.h>
18061 #if HAVE_PTHREADS < 7
18065 #define NULL (void*)0
18068 static void *task(p)
18071 return (void *) (p == NULL);
18078 /* pthread test function */
18079 #ifndef PTHREAD_CREATE_DETACHED
18080 #define PTHREAD_CREATE_DETACHED 1
18084 int detach = PTHREAD_CREATE_DETACHED;
18086 #if HAVE_PTHREADS > 4
18087 /* Final pthreads */
18088 pthread_attr_t attr;
18090 status = pthread_attr_init(&attr);
18091 if( status ) return status;
18093 #if HAVE_PTHREADS < 7
18094 status = pthread_attr_setdetachstate(&attr, &detach);
18095 if( status < 0 ) status = errno;
18097 status = pthread_attr_setdetachstate(&attr, detach);
18099 if( status ) return status;
18100 status = pthread_create( &t, &attr, task, NULL );
18101 #if HAVE_PTHREADS < 7
18102 if( status < 0 ) status = errno;
18104 if( status ) return status;
18106 /* Draft 4 pthreads */
18107 status = pthread_create( &t, pthread_attr_default, task, NULL );
18108 if( status ) return errno;
18110 /* give thread a chance to complete */
18111 /* it should remain joinable and hence detachable */
18114 status = pthread_detach( &t );
18115 if( status ) return errno;
18118 #ifdef HAVE_LINUX_THREADS
18119 pthread_kill_other_threads_np();
18128 if ac_fn_c_try_link "$LINENO"; then :
18129 ol_cv_pthread_lib_lpthreads=yes
18131 ol_cv_pthread_lib_lpthreads=no
18133 rm -f core conftest.err conftest.$ac_objext \
18134 conftest$ac_exeext conftest.$ac_ext
18136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137 /* end confdefs.h. */
18140 /* pthread test headers */
18141 #include <pthread.h>
18142 #if HAVE_PTHREADS < 7
18146 #define NULL (void*)0
18149 static void *task(p)
18152 return (void *) (p == NULL);
18156 int main(argc, argv)
18161 /* pthread test function */
18162 #ifndef PTHREAD_CREATE_DETACHED
18163 #define PTHREAD_CREATE_DETACHED 1
18167 int detach = PTHREAD_CREATE_DETACHED;
18169 #if HAVE_PTHREADS > 4
18170 /* Final pthreads */
18171 pthread_attr_t attr;
18173 status = pthread_attr_init(&attr);
18174 if( status ) return status;
18176 #if HAVE_PTHREADS < 7
18177 status = pthread_attr_setdetachstate(&attr, &detach);
18178 if( status < 0 ) status = errno;
18180 status = pthread_attr_setdetachstate(&attr, detach);
18182 if( status ) return status;
18183 status = pthread_create( &t, &attr, task, NULL );
18184 #if HAVE_PTHREADS < 7
18185 if( status < 0 ) status = errno;
18187 if( status ) return status;
18189 /* Draft 4 pthreads */
18190 status = pthread_create( &t, pthread_attr_default, task, NULL );
18191 if( status ) return errno;
18193 /* give thread a chance to complete */
18194 /* it should remain joinable and hence detachable */
18197 status = pthread_detach( &t );
18198 if( status ) return errno;
18201 #ifdef HAVE_LINUX_THREADS
18202 pthread_kill_other_threads_np();
18210 if ac_fn_c_try_run "$LINENO"; then :
18211 ol_cv_pthread_lib_lpthreads=yes
18213 ol_cv_pthread_lib_lpthreads=no
18215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18216 conftest.$ac_objext conftest.beam conftest.$ac_ext
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
18225 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
18227 if test $ol_cv_pthread_lib_lpthreads = yes ; then
18228 ol_link_pthreads="-lpthreads"
18229 ol_link_threads=posix
18234 if test $ol_link_threads != no ; then
18235 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
18237 save_CPPFLAGS="$CPPFLAGS"
18239 LIBS="$LTHREAD_LIBS $LIBS"
18241 for ac_func in sched_yield pthread_yield thr_yield
18243 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18244 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18245 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18246 cat >>confdefs.h <<_ACEOF
18247 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18254 if test $ac_cv_func_sched_yield = no &&
18255 test $ac_cv_func_pthread_yield = no &&
18256 test $ac_cv_func_thr_yield = no ; then
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
18258 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
18259 if ${ac_cv_lib_rt_sched_yield+:} false; then :
18260 $as_echo_n "(cached) " >&6
18262 ac_check_lib_save_LIBS=$LIBS
18264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h. */
18267 /* Override any GCC internal prototype to avoid an error.
18268 Use char because int might match the return type of a GCC
18269 builtin and then its argument prototype would still apply. */
18273 char sched_yield ();
18277 return sched_yield ();
18282 if ac_fn_c_try_link "$LINENO"; then :
18283 ac_cv_lib_rt_sched_yield=yes
18285 ac_cv_lib_rt_sched_yield=no
18287 rm -f core conftest.err conftest.$ac_objext \
18288 conftest$ac_exeext conftest.$ac_ext
18289 LIBS=$ac_check_lib_save_LIBS
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
18292 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
18293 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
18294 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
18296 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
18298 ac_cv_func_sched_yield=yes
18300 ac_cv_func_sched_yield=no
18304 if test $ac_cv_func_sched_yield = no &&
18305 test $ac_cv_func_pthread_yield = no &&
18306 test "$ac_cv_func_thr_yield" = no ; then
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
18308 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
18311 for ac_func in pthread_kill
18313 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
18314 if test "x$ac_cv_func_pthread_kill" = xyes; then :
18315 cat >>confdefs.h <<_ACEOF
18316 #define HAVE_PTHREAD_KILL 1
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
18324 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
18325 if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
18326 $as_echo_n "(cached) " >&6
18329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18330 /* end confdefs.h. */
18332 #include <pthread.h>
18333 pthread_rwlock_t rwlock;
18338 pthread_rwlock_destroy(&rwlock);
18343 if ac_fn_c_try_link "$LINENO"; then :
18344 ol_cv_func_pthread_rwlock_destroy=yes
18346 ol_cv_func_pthread_rwlock_destroy=no
18348 rm -f core conftest.err conftest.$ac_objext \
18349 conftest$ac_exeext conftest.$ac_ext
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
18353 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
18354 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
18356 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
18361 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
18362 if ${ol_cv_func_pthread_detach+:} false; then :
18363 $as_echo_n "(cached) " >&6
18366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367 /* end confdefs.h. */
18369 #include <pthread.h>
18371 #define NULL (void*)0
18377 pthread_detach(NULL);
18382 if ac_fn_c_try_link "$LINENO"; then :
18383 ol_cv_func_pthread_detach=yes
18385 ol_cv_func_pthread_detach=no
18387 rm -f core conftest.err conftest.$ac_objext \
18388 conftest$ac_exeext conftest.$ac_ext
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
18392 $as_echo "$ol_cv_func_pthread_detach" >&6; }
18394 if test $ol_cv_func_pthread_detach = no ; then
18395 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
18399 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
18403 pthread_setconcurrency \
18404 pthread_getconcurrency \
18405 thr_setconcurrency \
18406 thr_getconcurrency \
18409 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18410 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18411 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18412 cat >>confdefs.h <<_ACEOF
18413 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18421 for ac_func in pthread_kill_other_threads_np
18423 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
18424 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
18425 cat >>confdefs.h <<_ACEOF
18426 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
18433 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
18434 if ${ol_cv_sys_linux_threads+:} false; then :
18435 $as_echo_n "(cached) " >&6
18437 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
18440 $as_echo "$ol_cv_sys_linux_threads" >&6; }
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
18446 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
18447 if ${ol_cv_linux_threads+:} false; then :
18448 $as_echo_n "(cached) " >&6
18451 if test $ol_cv_header_linux_threads = yes &&
18452 test $ol_cv_sys_linux_threads = yes; then
18453 ol_cv_linux_threads=yes
18454 elif test $ol_cv_header_linux_threads = no &&
18455 test $ol_cv_sys_linux_threads = no; then
18456 ol_cv_linux_threads=no
18458 ol_cv_linux_threads=error
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
18463 $as_echo "$ol_cv_linux_threads" >&6; }
18466 if test $ol_cv_linux_threads = error; then
18467 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
18471 $as_echo_n "checking if pthread_create() works... " >&6; }
18472 if ${ol_cv_pthread_create_works+:} false; then :
18473 $as_echo_n "(cached) " >&6
18476 if test "$cross_compiling" = yes; then :
18477 ol_cv_pthread_create_works=yes
18479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18480 /* end confdefs.h. */
18483 /* pthread test headers */
18484 #include <pthread.h>
18485 #if HAVE_PTHREADS < 7
18489 #define NULL (void*)0
18492 static void *task(p)
18495 return (void *) (p == NULL);
18499 int main(argc, argv)
18504 /* pthread test function */
18505 #ifndef PTHREAD_CREATE_DETACHED
18506 #define PTHREAD_CREATE_DETACHED 1
18510 int detach = PTHREAD_CREATE_DETACHED;
18512 #if HAVE_PTHREADS > 4
18513 /* Final pthreads */
18514 pthread_attr_t attr;
18516 status = pthread_attr_init(&attr);
18517 if( status ) return status;
18519 #if HAVE_PTHREADS < 7
18520 status = pthread_attr_setdetachstate(&attr, &detach);
18521 if( status < 0 ) status = errno;
18523 status = pthread_attr_setdetachstate(&attr, detach);
18525 if( status ) return status;
18526 status = pthread_create( &t, &attr, task, NULL );
18527 #if HAVE_PTHREADS < 7
18528 if( status < 0 ) status = errno;
18530 if( status ) return status;
18532 /* Draft 4 pthreads */
18533 status = pthread_create( &t, pthread_attr_default, task, NULL );
18534 if( status ) return errno;
18536 /* give thread a chance to complete */
18537 /* it should remain joinable and hence detachable */
18540 status = pthread_detach( &t );
18541 if( status ) return errno;
18544 #ifdef HAVE_LINUX_THREADS
18545 pthread_kill_other_threads_np();
18553 if ac_fn_c_try_run "$LINENO"; then :
18554 ol_cv_pthread_create_works=yes
18556 ol_cv_pthread_create_works=no
18558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18559 conftest.$ac_objext conftest.beam conftest.$ac_ext
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
18564 $as_echo "$ol_cv_pthread_create_works" >&6; }
18566 if test $ol_cv_pthread_create_works = no ; then
18567 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
18570 ol_replace_broken_yield=no
18572 if test $ol_replace_broken_yield = yes ; then
18574 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
18578 if test x$ol_with_yielding_select = xauto ; then
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
18580 $as_echo_n "checking if select yields when using pthreads... " >&6; }
18581 if ${ol_cv_pthread_select_yields+:} false; then :
18582 $as_echo_n "(cached) " >&6
18585 if test "$cross_compiling" = yes; then :
18586 ol_cv_pthread_select_yields=cross
18588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18589 /* end confdefs.h. */
18591 #include <sys/types.h>
18592 #include <sys/time.h>
18593 #include <unistd.h>
18594 #include <pthread.h>
18596 #define NULL (void*) 0
18599 static int fildes[2];
18601 static void *task(p)
18613 FD_SET(fildes[0], &rfds);
18615 /* we're not interested in any fds */
18616 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
18623 exit(0); /* if we exit here, the select blocked the whole process */
18626 int main(argc, argv)
18632 /* create a pipe to select */
18633 if(pipe(&fildes[0])) {
18638 #ifdef HAVE_PTHREAD_SETCONCURRENCY
18639 (void) pthread_setconcurrency(2);
18641 #ifdef HAVE_THR_SETCONCURRENCY
18642 /* Set Solaris LWP concurrency to 2 */
18643 thr_setconcurrency(2);
18647 #if HAVE_PTHREADS < 6
18648 pthread_create(&t, pthread_attr_default, task, NULL);
18650 pthread_create(&t, NULL, task, NULL);
18653 /* make sure task runs first */
18654 #ifdef HAVE_THR_YIELD
18656 #elif defined( HAVE_SCHED_YIELD )
18658 #elif defined( HAVE_PTHREAD_YIELD )
18665 if ac_fn_c_try_run "$LINENO"; then :
18666 ol_cv_pthread_select_yields=no
18668 ol_cv_pthread_select_yields=yes
18670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18671 conftest.$ac_objext conftest.beam conftest.$ac_ext
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
18676 $as_echo "$ol_cv_pthread_select_yields" >&6; }
18678 if test $ol_cv_pthread_select_yields = cross ; then
18679 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
18682 if test $ol_cv_pthread_select_yields = yes ; then
18683 ol_with_yielding_select=yes
18687 CPPFLAGS="$save_CPPFLAGS"
18690 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
18694 if test $ol_with_threads = posix ; then
18695 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
18700 case $ol_with_threads in auto | yes | mach)
18702 for ac_header in mach/cthreads.h cthreads.h
18704 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18705 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18706 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18707 cat >>confdefs.h <<_ACEOF
18708 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18715 if test $ac_cv_header_mach_cthreads_h = yes ; then
18716 ol_with_threads=found
18718 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
18719 if test "x$ac_cv_func_cthread_fork" = xyes; then :
18720 ol_link_threads=yes
18724 if test $ol_link_threads = no ; then
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
18726 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
18727 if ${ol_cv_cthread_all_load+:} false; then :
18728 $as_echo_n "(cached) " >&6
18732 LIBS="-all_load $LIBS"
18733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18734 /* end confdefs.h. */
18735 #include <mach/cthreads.h>
18740 cthread_fork((void *)0, (void *)0);
18746 if ac_fn_c_try_link "$LINENO"; then :
18747 ol_cv_cthread_all_load=yes
18749 ol_cv_cthread_all_load=no
18751 rm -f core conftest.err conftest.$ac_objext \
18752 conftest$ac_exeext conftest.$ac_ext
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
18757 $as_echo "$ol_cv_cthread_all_load" >&6; }
18759 if test $ol_cv_cthread_all_load = yes ; then
18760 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
18761 ol_link_threads=mach
18762 ol_with_threads=found
18766 elif test $ac_cv_header_cthreads_h = yes ; then
18768 ol_with_threads=found
18771 LIBS="$LIBS -lthreads"
18772 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
18773 if test "x$ac_cv_func_cthread_fork" = xyes; then :
18774 ol_link_threads=yes
18779 if test $ol_link_threads = yes ; then
18780 LTHREAD_LIBS="-lthreads"
18781 ol_link_threads=mach
18782 ol_with_threads=found
18784 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
18787 elif test $ol_with_threads = mach ; then
18788 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
18791 if test $ol_link_threads = mach ; then
18793 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
18795 elif test $ol_with_threads = found ; then
18796 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
18801 case $ol_with_threads in auto | yes | pth)
18803 for ac_header in pth.h
18805 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
18806 if test "x$ac_cv_header_pth_h" = xyes; then :
18807 cat >>confdefs.h <<_ACEOF
18808 #define HAVE_PTH_H 1
18816 if test $ac_cv_header_pth_h = yes ; then
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
18818 $as_echo_n "checking for pth_version in -lpth... " >&6; }
18819 if ${ac_cv_lib_pth_pth_version+:} false; then :
18820 $as_echo_n "(cached) " >&6
18822 ac_check_lib_save_LIBS=$LIBS
18824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18825 /* end confdefs.h. */
18827 /* Override any GCC internal prototype to avoid an error.
18828 Use char because int might match the return type of a GCC
18829 builtin and then its argument prototype would still apply. */
18833 char pth_version ();
18837 return pth_version ();
18842 if ac_fn_c_try_link "$LINENO"; then :
18843 ac_cv_lib_pth_pth_version=yes
18845 ac_cv_lib_pth_pth_version=no
18847 rm -f core conftest.err conftest.$ac_objext \
18848 conftest$ac_exeext conftest.$ac_ext
18849 LIBS=$ac_check_lib_save_LIBS
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
18852 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
18853 if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
18860 if test $have_pth = yes ; then
18862 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
18864 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
18865 ol_link_threads=pth
18866 ol_with_threads=found
18868 if test x$ol_with_yielding_select = xauto ; then
18869 ol_with_yielding_select=yes
18876 case $ol_with_threads in auto | yes | lwp)
18878 for ac_header in thread.h synch.h
18880 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18881 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18882 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18883 cat >>confdefs.h <<_ACEOF
18884 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18891 if test $ac_cv_header_thread_h = yes &&
18892 test $ac_cv_header_synch_h = yes ; then
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
18894 $as_echo_n "checking for thr_create in -lthread... " >&6; }
18895 if ${ac_cv_lib_thread_thr_create+:} false; then :
18896 $as_echo_n "(cached) " >&6
18898 ac_check_lib_save_LIBS=$LIBS
18899 LIBS="-lthread $LIBS"
18900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18901 /* end confdefs.h. */
18903 /* Override any GCC internal prototype to avoid an error.
18904 Use char because int might match the return type of a GCC
18905 builtin and then its argument prototype would still apply. */
18909 char thr_create ();
18913 return thr_create ();
18918 if ac_fn_c_try_link "$LINENO"; then :
18919 ac_cv_lib_thread_thr_create=yes
18921 ac_cv_lib_thread_thr_create=no
18923 rm -f core conftest.err conftest.$ac_objext \
18924 conftest$ac_exeext conftest.$ac_ext
18925 LIBS=$ac_check_lib_save_LIBS
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
18928 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
18929 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
18936 if test $have_thr = yes ; then
18938 $as_echo "#define HAVE_THR 1" >>confdefs.h
18940 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
18941 ol_link_threads=thr
18943 if test x$ol_with_yielding_select = xauto ; then
18944 ol_with_yielding_select=yes
18948 thr_setconcurrency \
18949 thr_getconcurrency \
18952 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18953 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18954 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18955 cat >>confdefs.h <<_ACEOF
18956 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18965 for ac_header in lwp/lwp.h
18967 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
18968 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
18969 cat >>confdefs.h <<_ACEOF
18970 #define HAVE_LWP_LWP_H 1
18977 if test $ac_cv_header_lwp_lwp_h = yes ; then
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
18979 $as_echo_n "checking for lwp_create in -llwp... " >&6; }
18980 if ${ac_cv_lib_lwp_lwp_create+:} false; then :
18981 $as_echo_n "(cached) " >&6
18983 ac_check_lib_save_LIBS=$LIBS
18985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18986 /* end confdefs.h. */
18988 /* Override any GCC internal prototype to avoid an error.
18989 Use char because int might match the return type of a GCC
18990 builtin and then its argument prototype would still apply. */
18994 char lwp_create ();
18998 return lwp_create ();
19003 if ac_fn_c_try_link "$LINENO"; then :
19004 ac_cv_lib_lwp_lwp_create=yes
19006 ac_cv_lib_lwp_lwp_create=no
19008 rm -f core conftest.err conftest.$ac_objext \
19009 conftest$ac_exeext conftest.$ac_ext
19010 LIBS=$ac_check_lib_save_LIBS
19012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
19013 $as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
19014 if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
19021 if test $have_lwp = yes ; then
19023 $as_echo "#define HAVE_LWP 1" >>confdefs.h
19025 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
19026 ol_link_threads=lwp
19028 if test x$ol_with_yielding_select = xauto ; then
19029 ol_with_yielding_select=no
19036 if test $ol_with_yielding_select = yes ; then
19038 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
19042 if test $ol_with_threads = manual ; then
19043 ol_link_threads=yes
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
19046 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
19048 for ac_header in pthread.h sched.h
19050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19051 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19052 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19053 cat >>confdefs.h <<_ACEOF
19054 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19061 for ac_func in sched_yield pthread_yield
19063 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19064 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19065 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19066 cat >>confdefs.h <<_ACEOF
19067 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
19075 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
19076 if ${ol_cv_header_linux_threads+:} false; then :
19077 $as_echo_n "(cached) " >&6
19079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19080 /* end confdefs.h. */
19081 #include <pthread.h>
19083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19084 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
19085 ol_cv_header_linux_threads=yes
19087 ol_cv_header_linux_threads=no
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
19094 $as_echo "$ol_cv_header_linux_threads" >&6; }
19095 if test $ol_cv_header_linux_threads = yes; then
19097 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
19102 for ac_header in mach/cthreads.h
19104 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
19105 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
19106 cat >>confdefs.h <<_ACEOF
19107 #define HAVE_MACH_CTHREADS_H 1
19114 for ac_header in lwp/lwp.h
19116 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
19117 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
19118 cat >>confdefs.h <<_ACEOF
19119 #define HAVE_LWP_LWP_H 1
19126 for ac_header in thread.h synch.h
19128 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19129 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19130 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19131 cat >>confdefs.h <<_ACEOF
19132 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19141 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
19143 $as_echo "#define REENTRANT 1" >>confdefs.h
19146 $as_echo "#define _REENTRANT 1" >>confdefs.h
19149 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
19152 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
19155 $as_echo "#define THREADSAFE 1" >>confdefs.h
19158 $as_echo "#define _THREADSAFE 1" >>confdefs.h
19161 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
19165 $as_echo_n "checking for thread specific errno... " >&6; }
19166 if ${ol_cv_errno_thread_specific+:} false; then :
19167 $as_echo_n "(cached) " >&6
19170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19171 /* end confdefs.h. */
19181 if ac_fn_c_try_link "$LINENO"; then :
19182 ol_cv_errno_thread_specific=yes
19184 ol_cv_errno_thread_specific=no
19186 rm -f core conftest.err conftest.$ac_objext \
19187 conftest$ac_exeext conftest.$ac_ext
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
19191 $as_echo "$ol_cv_errno_thread_specific" >&6; }
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
19194 $as_echo_n "checking for thread specific h_errno... " >&6; }
19195 if ${ol_cv_h_errno_thread_specific+:} false; then :
19196 $as_echo_n "(cached) " >&6
19199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19200 /* end confdefs.h. */
19210 if ac_fn_c_try_link "$LINENO"; then :
19211 ol_cv_h_errno_thread_specific=yes
19213 ol_cv_h_errno_thread_specific=no
19215 rm -f core conftest.err conftest.$ac_objext \
19216 conftest$ac_exeext conftest.$ac_ext
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
19220 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
19222 if test $ol_cv_errno_thread_specific != yes ||
19223 test $ol_cv_h_errno_thread_specific != yes ; then
19224 LIBS="$LTHREAD_LIBS $LIBS"
19230 if test $ol_link_threads = no ; then
19231 if test $ol_with_threads = yes ; then
19232 as_fn_error $? "no suitable thread support" "$LINENO" 5
19235 if test $ol_with_threads = auto ; then
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
19237 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
19242 $as_echo "#define NO_THREADS 1" >>confdefs.h
19250 if test $ol_link_threads != no ; then
19252 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
19256 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19257 case "$ol_with_threads" in
19265 PTHREAD_LIBS="$LTHREAD_LIBS"
19266 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19267 # The cast to long int works around a bug in the HP C Compiler
19268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19270 # This bug is HP SR number 8606223364.
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
19272 $as_echo_n "checking size of pthread_t... " >&6; }
19273 if ${ac_cv_sizeof_pthread_t+:} false; then :
19274 $as_echo_n "(cached) " >&6
19276 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
19277 $ac_includes_default
19278 #include <pthread.h>
19284 if test "$ac_cv_type_pthread_t" = yes; then
19285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19287 as_fn_error 77 "cannot compute sizeof (pthread_t)
19288 See \`config.log' for more details" "$LINENO" 5; }
19290 ac_cv_sizeof_pthread_t=0
19295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
19296 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
19300 cat >>confdefs.h <<_ACEOF
19301 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
19310 ac_cpp='$CPP $CPPFLAGS'
19311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19319 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
19328 # check if we should compile locking into the library
19329 if test x$enable_thread_support = xno; then
19331 $as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
19335 # check if we should hard-code the mm functions.
19336 if test x$enable_malloc_replacement = xno; then
19338 $as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
19342 # check if we should hard-code debugging out
19343 if test x$enable_debug_mode = xno; then
19345 $as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
19349 # check if we should enable verbose debugging
19350 if test x$enable_verbose_debug = xyes; then
19351 CFLAGS="$CFLAGS -DUSE_DEBUG"
19354 # check if we have and should use openssl
19355 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
19364 # Add some more warnings which we use in development but not in the
19365 # released versions. (Some relevant gcc versions can't handle these.)
19366 if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then
19368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19369 /* end confdefs.h. */
19375 #if !defined(__GNUC__) || (__GNUC__ < 4)
19382 if ac_fn_c_try_compile "$LINENO"; then :
19387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19390 /* end confdefs.h. */
19396 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
19403 if ac_fn_c_try_compile "$LINENO"; then :
19408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19411 /* end confdefs.h. */
19417 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
19424 if ac_fn_c_try_compile "$LINENO"; then :
19429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19432 /* end confdefs.h. */
19438 #if !defined(__clang__)
19445 if ac_fn_c_try_compile "$LINENO"; then :
19450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19452 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"
19453 if test x$enable_gcc_warnings = xyes; then
19454 CFLAGS="$CFLAGS -Werror"
19457 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
19459 if test x$have_gcc4 = xyes ; then
19460 # These warnings break gcc 3.3.5 and work on gcc 4.0.2
19461 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
19462 #CFLAGS="$CFLAGS -Wold-style-definition"
19465 if test x$have_gcc42 = xyes ; then
19466 # These warnings break gcc 4.0.2 and work on gcc 4.2
19467 CFLAGS="$CFLAGS -Waddress"
19470 if test x$have_gcc42 = xyes && test x$have_clang = xno; then
19471 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
19472 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
19475 if test x$have_gcc45 = xyes ; then
19476 # These warnings work on gcc 4.5
19477 CFLAGS="$CFLAGS -Wlogical-op"
19480 if test x$have_clang = xyes; then
19481 # Disable the unused-function warnings, because these trigger
19482 # for minheap-internal.h related code.
19483 CFLAGS="$CFLAGS -Wno-unused-function"
19485 # clang on macosx emits warnigns for each directory specified which
19486 # isn't "used" generating a lot of build noise (typically 3 warnings
19490 CFLAGS="$CFLAGS -Qunused-arguments"
19495 ##This will break the world on some 64-bit architectures
19496 # CFLAGS="$CFLAGS -Winline"
19500 LIBEVENT_GC_SECTIONS=
19501 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
19503 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
19504 if ${libevent_cv_gc_sections_runs+:} false; then :
19505 $as_echo_n "(cached) " >&6
19508 origCFLAGS="$CFLAGS"
19509 CFLAGS="$CFLAGS -Wl,--gc-sections"
19510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19511 /* end confdefs.h. */
19513 #include <stdlib.h>
19523 int read_success_once;
19525 fpC = fopen("conftest.c", "r");
19529 cch = fread(buf, sizeof(buf), 1, fpC);
19530 read_success_once |= (0 != cch);
19531 } while (0 != cch);
19532 if (!read_success_once)
19536 if (0 != fclose(fpC))
19539 exit(EXIT_SUCCESS);
19546 if ac_fn_c_try_link "$LINENO"; then :
19548 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
19549 libevent_cv_gc_sections_runs=no
19551 libevent_cv_gc_sections_runs=no
19552 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
19556 libevent_cv_gc_sections_runs=no
19559 rm -f core conftest.err conftest.$ac_objext \
19560 conftest$ac_exeext conftest.$ac_ext
19561 CFLAGS="$origCFLAGS"
19562 { origCFLAGS=; unset origCFLAGS;}
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
19567 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
19568 case "$libevent_cv_gc_sections_runs" in
19570 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
19571 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
19577 if test "$enable_libevent_install" = "yes"; then
19578 INSTALL_LIBEVENT_TRUE=
19579 INSTALL_LIBEVENT_FALSE='#'
19581 INSTALL_LIBEVENT_TRUE='#'
19582 INSTALL_LIBEVENT_FALSE=
19586 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
19588 ac_config_files="$ac_config_files Makefile"
19590 cat >confcache <<\_ACEOF
19591 # This file is a shell script that caches the results of configure
19592 # tests run on this system so they can be shared between configure
19593 # scripts and configure runs, see configure's option --config-cache.
19594 # It is not useful on other systems. If it contains results you don't
19595 # want to keep, you may remove or edit it.
19597 # config.status only pays attention to the cache file if you give it
19598 # the --recheck option to rerun configure.
19600 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19601 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19602 # following values.
19606 # The following way of writing the cache mishandles newlines in values,
19607 # but we know of no workaround that is simple, portable, and efficient.
19608 # So, we kill variables containing newlines.
19609 # Ultrix sh set writes to stderr and can't be redirected directly,
19610 # and sets the high bit in the cache file unless we assign to the vars.
19612 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19613 eval ac_val=\$$ac_var
19617 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19618 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19621 _ | IFS | as_nl) ;; #(
19622 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19623 *) { eval $ac_var=; unset $ac_var;} ;;
19629 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19630 *${as_nl}ac_space=\ *)
19631 # `set' does not quote correctly, so add quotes: double-quote
19632 # substitution turns \\\\ into \\, and sed turns \\ into \.
19635 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19638 # `set' quotes correctly as required by POSIX, so do not add quotes.
19639 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19648 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19650 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19652 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19653 if test -w "$cache_file"; then
19654 if test "x$cache_file" != "x/dev/null"; then
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19656 $as_echo "$as_me: updating cache $cache_file" >&6;}
19657 if test ! -f "$cache_file" || test -h "$cache_file"; then
19658 cat confcache >"$cache_file"
19660 case $cache_file in #(
19662 mv -f confcache "$cache_file"$$ &&
19663 mv -f "$cache_file"$$ "$cache_file" ;; #(
19665 mv -f confcache "$cache_file" ;;
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19671 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19676 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19677 # Let make expand exec_prefix.
19678 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19680 DEFS=-DHAVE_CONFIG_H
19685 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19686 # 1. Remove the extension, and $U if already installed.
19687 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19688 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19689 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19690 # will be set to the directory where LIBOBJS objects are built.
19691 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19692 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19694 LIBOBJS=$ac_libobjs
19696 LTLIBOBJS=$ac_ltlibobjs
19699 if test -n "$EXEEXT"; then
19701 am__EXEEXT_FALSE='#'
19703 am__EXEEXT_TRUE='#'
19707 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19708 as_fn_error $? "conditional \"AMDEP\" was never defined.
19709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19711 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19712 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19715 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
19716 as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
19717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19719 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
19720 as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
19721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19723 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
19724 as_fn_error $? "conditional \"OPENSSL\" was never defined.
19725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19727 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
19728 as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
19729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19731 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
19732 as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
19733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19735 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
19736 as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
19737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19739 if test -z "${STRLCPY_IMPL_TRUE}" && test -z "${STRLCPY_IMPL_FALSE}"; then
19740 as_fn_error $? "conditional \"STRLCPY_IMPL\" was never defined.
19741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19743 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
19744 as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
19745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19747 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
19748 as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
19749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19751 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
19752 as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
19753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19755 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
19756 as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
19757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19759 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
19760 as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
19761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19763 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
19764 as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
19765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19767 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
19768 as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
19769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19771 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
19772 as_fn_error $? "conditional \"PTHREADS\" was never defined.
19773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19775 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
19776 as_fn_error $? "conditional \"OPENSSL\" was never defined.
19777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19779 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
19780 as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
19781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19784 : "${CONFIG_STATUS=./config.status}"
19786 ac_clean_files_save=$ac_clean_files
19787 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19788 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19789 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19791 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19793 # Generated by $as_me.
19794 # Run this file to recreate the current configuration.
19795 # Compiler output produced by configure, useful for debugging
19796 # configure, is in config.log if it exists.
19799 ac_cs_recheck=false
19802 SHELL=\${CONFIG_SHELL-$SHELL}
19805 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19806 ## -------------------- ##
19807 ## M4sh Initialization. ##
19808 ## -------------------- ##
19810 # Be more Bourne compatible
19811 DUALCASE=1; export DUALCASE # for MKS sh
19812 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19815 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19816 # is contrary to our usage. Disable this feature.
19817 alias -g '${1+"$@"}'='"$@"'
19818 setopt NO_GLOB_SUBST
19820 case `(set -o) 2>/dev/null` in #(
19832 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19833 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19834 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19835 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19836 # Prefer a ksh shell builtin over an external printf program on Solaris,
19837 # but without wasting forks for bash or zsh.
19838 if test -z "$BASH_VERSION$ZSH_VERSION" \
19839 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19840 as_echo='print -r --'
19841 as_echo_n='print -rn --'
19842 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19843 as_echo='printf %s\n'
19844 as_echo_n='printf %s'
19846 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19847 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19848 as_echo_n='/usr/ucb/echo -n'
19850 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19851 as_echo_n_body='eval
19855 expr "X$arg" : "X\\(.*\\)$as_nl";
19856 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19858 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19860 export as_echo_n_body
19861 as_echo_n='sh -c $as_echo_n_body as_echo'
19863 export as_echo_body
19864 as_echo='sh -c $as_echo_body as_echo'
19867 # The user is always right.
19868 if test "${PATH_SEPARATOR+set}" != set; then
19870 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19871 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19878 # We need space, tab and new line, in precisely that order. Quoting is
19879 # there to prevent editors from complaining about space-tab.
19880 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19881 # splitting by setting IFS to empty value.)
19884 # Find who we are. Look in the path if we contain no directory separator.
19887 *[\\/]* ) as_myself=$0 ;;
19888 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19889 for as_dir in $PATH
19892 test -z "$as_dir" && as_dir=.
19893 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19899 # We did not find ourselves, most probably we were run as `sh COMMAND'
19900 # in which case we are not to be found in the path.
19901 if test "x$as_myself" = x; then
19904 if test ! -f "$as_myself"; then
19905 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19909 # Unset variables that we do not need and which cause bugs (e.g. in
19910 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19911 # suppresses any "Segmentation fault" message there. '((' could
19912 # trigger a bug in pdksh 5.2.14.
19913 for as_var in BASH_ENV ENV MAIL MAILPATH
19914 do eval test x\${$as_var+set} = xset \
19915 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19928 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19931 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19932 # ----------------------------------------
19933 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19934 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19935 # script with STATUS, using 1 if that was 0.
19938 as_status=$1; test $as_status -eq 0 && as_status=1
19940 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19941 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19943 $as_echo "$as_me: error: $2" >&2
19944 as_fn_exit $as_status
19948 # as_fn_set_status STATUS
19949 # -----------------------
19950 # Set $? to STATUS, without forking.
19951 as_fn_set_status ()
19954 } # as_fn_set_status
19956 # as_fn_exit STATUS
19957 # -----------------
19958 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19962 as_fn_set_status $1
19968 # Portably unset VAR.
19971 { eval $1=; unset $1;}
19973 as_unset=as_fn_unset
19974 # as_fn_append VAR VALUE
19975 # ----------------------
19976 # Append the text in VALUE to the end of the definition contained in VAR. Take
19977 # advantage of any shell optimizations that allow amortized linear growth over
19978 # repeated appends, instead of the typical quadratic growth present in naive
19980 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19981 eval 'as_fn_append ()
19992 # as_fn_arith ARG...
19993 # ------------------
19994 # Perform arithmetic evaluation on the ARGs, and store the result in the
19995 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19996 # must be portable across $(()) and expr.
19997 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19998 eval 'as_fn_arith ()
20005 as_val=`expr "$@" || test $? -eq 1`
20010 if expr a : '\(a\)' >/dev/null 2>&1 &&
20011 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20017 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20018 as_basename=basename
20023 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20029 as_me=`$as_basename -- "$0" ||
20030 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20031 X"$0" : 'X\(//\)$' \| \
20032 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20034 sed '/^.*\/\([^/][^/]*\)\/*$/{
20048 # Avoid depending upon Character Ranges.
20049 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20050 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20051 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20052 as_cr_digits='0123456789'
20053 as_cr_alnum=$as_cr_Letters$as_cr_digits
20055 ECHO_C= ECHO_N= ECHO_T=
20056 case `echo -n x` in #(((((
20058 case `echo 'xy\c'` in
20059 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20061 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20068 rm -f conf$$ conf$$.exe conf$$.file
20069 if test -d conf$$.dir; then
20070 rm -f conf$$.dir/conf$$.file
20073 mkdir conf$$.dir 2>/dev/null
20075 if (echo >conf$$.file) 2>/dev/null; then
20076 if ln -s conf$$.file conf$$ 2>/dev/null; then
20078 # ... but there are two gotchas:
20079 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20080 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20081 # In both cases, we have to default to `cp -p'.
20082 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20084 elif ln conf$$.file conf$$ 2>/dev/null; then
20092 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20093 rmdir conf$$.dir 2>/dev/null
20098 # Create "$as_dir" as a directory, including parents if necessary.
20103 -*) as_dir=./$as_dir;;
20105 test -d "$as_dir" || eval $as_mkdir_p || {
20109 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20110 *) as_qdir=$as_dir;;
20112 as_dirs="'$as_qdir' $as_dirs"
20113 as_dir=`$as_dirname -- "$as_dir" ||
20114 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20115 X"$as_dir" : 'X\(//\)[^/]' \| \
20116 X"$as_dir" : 'X\(//\)$' \| \
20117 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20118 $as_echo X"$as_dir" |
20119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20123 /^X\(\/\/\)[^/].*/{
20136 test -d "$as_dir" && break
20138 test -z "$as_dirs" || eval "mkdir $as_dirs"
20139 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20143 if mkdir -p . 2>/dev/null; then
20144 as_mkdir_p='mkdir -p "$as_dir"'
20146 test -d ./-p && rmdir ./-p
20150 if test -x / >/dev/null 2>&1; then
20151 as_test_x='test -x'
20153 if ls -dL / >/dev/null 2>&1; then
20160 if test -d "$1"; then
20166 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20167 ???[sx]*):;;*)false;;esac;fi
20171 as_executable_p=$as_test_x
20173 # Sed expression to map a string onto a valid CPP name.
20174 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20176 # Sed expression to map a string onto a valid variable name.
20177 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20181 ## ----------------------------------- ##
20182 ## Main body of $CONFIG_STATUS script. ##
20183 ## ----------------------------------- ##
20185 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20188 # Save the log message, to keep $0 and so on meaningful, and to
20189 # report actual input values of CONFIG_FILES etc. instead of their
20190 # values after options handling.
20192 This file was extended by libevent $as_me 2.1.3-alpha-dev, which was
20193 generated by GNU Autoconf 2.68. Invocation command line was
20195 CONFIG_FILES = $CONFIG_FILES
20196 CONFIG_HEADERS = $CONFIG_HEADERS
20197 CONFIG_LINKS = $CONFIG_LINKS
20198 CONFIG_COMMANDS = $CONFIG_COMMANDS
20201 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20206 case $ac_config_files in *"
20207 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20210 case $ac_config_headers in *"
20211 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20216 # Files that config.status was made for.
20217 config_files="$ac_config_files"
20218 config_headers="$ac_config_headers"
20219 config_commands="$ac_config_commands"
20223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20225 \`$as_me' instantiates files and other configuration actions
20226 from templates according to the current configuration. Unless the files
20227 and actions are specified as TAGs, all are instantiated by default.
20229 Usage: $0 [OPTION]... [TAG]...
20231 -h, --help print this help, then exit
20232 -V, --version print version number and configuration settings, then exit
20233 --config print configuration, then exit
20234 -q, --quiet, --silent
20235 do not print progress messages
20236 -d, --debug don't remove temporary files
20237 --recheck update $as_me by reconfiguring in the same conditions
20238 --file=FILE[:TEMPLATE]
20239 instantiate the configuration file FILE
20240 --header=FILE[:TEMPLATE]
20241 instantiate the configuration header FILE
20243 Configuration files:
20246 Configuration headers:
20249 Configuration commands:
20252 Report bugs to the package provider."
20255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20256 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20258 libevent config.status 2.1.3-alpha-dev
20259 configured by $0, generated by GNU Autoconf 2.68,
20260 with options \\"\$ac_cs_config\\"
20262 Copyright (C) 2010 Free Software Foundation, Inc.
20263 This config.status script is free software; the Free Software Foundation
20264 gives unlimited permission to copy, distribute and modify it."
20271 test -n "\$AWK" || AWK=awk
20274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20275 # The default lists apply if the user does not specify any file.
20281 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20282 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20286 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20298 # Handling of the options.
20299 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20301 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20302 $as_echo "$ac_cs_version"; exit ;;
20303 --config | --confi | --conf | --con | --co | --c )
20304 $as_echo "$ac_cs_config"; exit ;;
20305 --debug | --debu | --deb | --de | --d | -d )
20307 --file | --fil | --fi | --f )
20310 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20311 '') as_fn_error $? "missing file argument" ;;
20313 as_fn_append CONFIG_FILES " '$ac_optarg'"
20314 ac_need_defaults=false;;
20315 --header | --heade | --head | --hea )
20318 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20320 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20321 ac_need_defaults=false;;
20323 # Conflict between --help and --header
20324 as_fn_error $? "ambiguous option: \`$1'
20325 Try \`$0 --help' for more information.";;
20326 --help | --hel | -h )
20327 $as_echo "$ac_cs_usage"; exit ;;
20328 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20329 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20332 # This is an error.
20333 -*) as_fn_error $? "unrecognized option: \`$1'
20334 Try \`$0 --help' for more information." ;;
20336 *) as_fn_append ac_config_targets " $1"
20337 ac_need_defaults=false ;;
20343 ac_configure_extra_args=
20345 if $ac_cs_silent; then
20347 ac_configure_extra_args="$ac_configure_extra_args --silent"
20351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20352 if \$ac_cs_recheck; then
20353 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20355 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20356 CONFIG_SHELL='$SHELL'
20357 export CONFIG_SHELL
20362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20366 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20367 ## Running $as_me. ##
20373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20377 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20380 # The HP-UX ksh and POSIX shell print the target directory to stdout
20381 # if CDPATH is set.
20382 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20384 sed_quote_subst='$sed_quote_subst'
20385 double_quote_subst='$double_quote_subst'
20386 delay_variable_subst='$delay_variable_subst'
20387 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20388 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20389 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20390 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20391 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20392 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20393 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20394 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20395 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20396 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20397 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20398 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20399 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20400 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20401 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20402 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20403 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20404 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20405 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20406 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20407 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20408 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20409 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20410 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20411 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20412 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20413 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20414 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20415 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20416 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20417 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20418 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20419 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20420 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20421 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20422 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20423 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20424 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20425 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20426 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20427 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20428 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20429 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20430 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20431 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20432 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20433 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20434 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20435 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20436 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20437 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20438 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20439 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20440 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20441 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20442 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"`'
20443 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20444 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20445 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20446 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20447 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20448 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20449 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20450 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20451 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20452 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20453 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20454 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20455 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20456 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20457 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20458 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20459 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20460 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20461 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20462 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20463 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20464 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20465 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20466 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20467 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20468 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20469 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20470 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20471 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20472 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20473 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20474 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20475 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20476 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20477 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20478 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20479 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20480 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20481 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20482 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20483 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20484 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20485 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20486 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20487 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20488 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20489 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20490 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20491 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20492 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20493 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20494 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20495 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20496 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20497 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20498 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20499 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20500 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20501 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20502 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20503 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20504 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20505 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20506 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20507 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20508 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20509 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20510 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20511 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20512 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20513 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20514 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20515 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20516 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20519 LTCFLAGS='$LTCFLAGS'
20520 compiler='$compiler_DEFAULT'
20522 # A function that is used when there is no print builtin or printf.
20523 func_fallback_echo ()
20525 eval 'cat <<_LTECHO_EOF
20530 # Quote evaled strings.
20544 deplibs_check_method \
20549 sharedlib_from_linklib_cmd \
20552 archiver_list_spec \
20558 lt_cv_sys_global_symbol_pipe \
20559 lt_cv_sys_global_symbol_to_cdecl \
20560 lt_cv_sys_global_symbol_to_c_name_address \
20561 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20562 nm_file_list_spec \
20563 lt_prog_compiler_no_builtin_flag \
20564 lt_prog_compiler_pic \
20565 lt_prog_compiler_wl \
20566 lt_prog_compiler_static \
20567 lt_cv_prog_compiler_c_o \
20576 export_dynamic_flag_spec \
20577 whole_archive_flag_spec \
20578 compiler_needs_object \
20580 allow_undefined_flag \
20581 no_undefined_flag \
20582 hardcode_libdir_flag_spec \
20583 hardcode_libdir_flag_spec_ld \
20584 hardcode_libdir_separator \
20588 variables_saved_for_relink \
20590 library_names_spec \
20592 install_override_mode \
20596 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20597 *[\\\\\\\`\\"\\\$]*)
20598 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20601 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20606 # Double-quote double-evaled strings.
20607 for var in reload_cmds \
20608 old_postinstall_cmds \
20609 old_postuninstall_cmds \
20611 extract_expsyms_cmds \
20612 old_archive_from_new_cmds \
20613 old_archive_from_expsyms_cmds \
20615 archive_expsym_cmds \
20617 module_expsym_cmds \
20618 export_symbols_cmds \
20622 postuninstall_cmds \
20624 sys_lib_search_path_spec \
20625 sys_lib_dlsearch_path_spec; do
20626 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20627 *[\\\\\\\`\\"\\\$]*)
20628 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20631 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20636 ac_aux_dir='$ac_aux_dir'
20637 xsi_shell='$xsi_shell'
20638 lt_shell_append='$lt_shell_append'
20640 # See if we are running on zsh, and set the options which allow our
20641 # commands through without removal of \ escapes INIT.
20642 if test -n "\${ZSH_VERSION+set}" ; then
20643 setopt NO_GLOB_SUBST
20649 TIMESTAMP='$TIMESTAMP'
20658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20660 # Handling of arguments.
20661 for ac_config_target in $ac_config_targets
20663 case $ac_config_target in
20664 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20665 "evconfig-private.h") CONFIG_HEADERS="$CONFIG_HEADERS evconfig-private.h:evconfig-private.h.in" ;;
20666 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20667 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20668 "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
20669 "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
20670 "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
20671 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20673 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20678 # If the user did not use the arguments to specify the items to instantiate,
20679 # then the envvar interface is used. Set only those that are not.
20680 # We use the long form for the default assignment because of an extremely
20681 # bizarre bug on SunOS 4.1.3.
20682 if $ac_need_defaults; then
20683 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20684 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20685 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20688 # Have a temporary directory for convenience. Make it in the build tree
20689 # simply because there is no reason against having it here, and in addition,
20690 # creating and moving files from /tmp can sometimes cause problems.
20691 # Hook for its removal unless debugging.
20692 # Note that there is a small window in which the directory will not be cleaned:
20693 # after its creation but before its name has been assigned to `$tmp'.
20697 trap 'exit_status=$?
20698 : "${ac_tmp:=$tmp}"
20699 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20701 trap 'as_fn_exit 1' 1 2 13 15
20703 # Create a (secure) tmp directory for tmp files.
20706 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20710 tmp=./conf$$-$RANDOM
20711 (umask 077 && mkdir "$tmp")
20712 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20715 # Set up the scripts for CONFIG_FILES section.
20716 # No need to generate them if there are no CONFIG_FILES.
20717 # This happens for instance with `./config.status config.h'.
20718 if test -n "$CONFIG_FILES"; then
20721 ac_cr=`echo X | tr X '\015'`
20722 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20723 # But we know of no other shell where ac_cr would be empty at this
20724 # point, so we can use a bashism as a fallback.
20725 if test "x$ac_cr" = x; then
20726 eval ac_cr=\$\'\\r\'
20728 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20729 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20732 ac_cs_awk_cr=$ac_cr
20735 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20740 echo "cat >conf$$subs.awk <<_ACEOF" &&
20741 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20743 } >conf$$subs.sh ||
20744 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20745 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20747 for ac_last_try in false false false false false :; do
20748 . ./conf$$subs.sh ||
20749 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20751 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20752 if test $ac_delim_n = $ac_delim_num; then
20754 elif $ac_last_try; then
20755 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20757 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20760 rm -f conf$$subs.sh
20762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20763 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20767 s/^/S["/; s/!.*/"]=/
20777 s/\(.\{148\}\)..*/\1/
20779 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20784 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20791 s/\(.\{148\}\)..*/\1/
20793 s/["\\]/\\&/g; s/^/"/; s/$/"/
20797 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20802 ' <conf$$subs.awk | sed '
20807 ' >>$CONFIG_STATUS || ac_write_fail=1
20808 rm -f conf$$subs.awk
20809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20811 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20812 for (key in S) S_is_set[key] = 1
20818 nfields = split(line, field, "@")
20820 len = length(field[1])
20821 for (i = 2; i < nfields; i++) {
20823 keylen = length(key)
20824 if (S_is_set[key]) {
20826 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20827 len += length(value) + length(field[++i])
20838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20839 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20840 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20843 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20844 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20847 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20848 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20849 # trailing colons and then remove the whole line if VPATH becomes empty
20850 # (actually we leave an empty line to preserve line numbers).
20851 if test "x$srcdir" = x.; then
20852 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20871 fi # test -n "$CONFIG_FILES"
20873 # Set up the scripts for CONFIG_HEADERS section.
20874 # No need to generate them if there are no CONFIG_HEADERS.
20875 # This happens for instance with `./config.status Makefile'.
20876 if test -n "$CONFIG_HEADERS"; then
20877 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20881 # Transform confdefs.h into an awk script `defines.awk', embedded as
20882 # here-document in config.status, that substitutes the proper values into
20883 # config.h.in to produce config.h.
20885 # Create a delimiter string that does not exist in confdefs.h, to ease
20886 # handling of long lines.
20888 for ac_last_try in false false :; do
20889 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20890 if test -z "$ac_tt"; then
20892 elif $ac_last_try; then
20893 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20895 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20899 # For the awk script, D is an array of macro values keyed by name,
20900 # likewise P contains macro parameters if any. Preserve backslash
20901 # newline sequences.
20903 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20905 s/.\{148\}/&'"$ac_delim"'/g
20908 s/^[ ]*#[ ]*define[ ][ ]*/ /
20915 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20917 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20921 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20922 D["\1"]=" \3\\\\\\n"\\/p
20924 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20929 s/.\{148\}/&'"$ac_delim"'/g
20934 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20937 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20939 ' <confdefs.h | sed '
20940 s/'"$ac_delim"'/"\\\
20941 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20944 for (key in D) D_is_set[key] = 1
20947 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20949 split(line, arg, " ")
20950 if (arg[1] == "#") {
20954 defundef = substr(arg[1], 2)
20957 split(mac1, mac2, "(") #)
20959 prefix = substr(line, 1, index(line, defundef) - 1)
20960 if (D_is_set[macro]) {
20961 # Preserve the white space surrounding the "#".
20962 print prefix "define", macro P[macro] D[macro]
20965 # Replace #undef with comments. This is necessary, for example,
20966 # in the case of _POSIX_SOURCE, which is predefined and required
20967 # on some systems where configure will not decide to define it.
20968 if (defundef == "undef") {
20969 print "/*", prefix defundef, macro, "*/"
20977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20978 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20979 fi # test -n "$CONFIG_HEADERS"
20982 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20987 :[FHLC]) ac_mode=$ac_tag; continue;;
20989 case $ac_mode$ac_tag in
20991 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20992 :[FH]-) ac_tag=-:-;;
20993 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21010 -) ac_f="$ac_tmp/stdin";;
21011 *) # Look for the file first in the build tree, then in the source tree
21012 # (if the path is not absolute). The absolute path cannot be DOS-style,
21013 # because $ac_f cannot contain `:'.
21017 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21019 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21021 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21022 as_fn_append ac_file_inputs " '$ac_f'"
21025 # Let's still pretend it is `configure' which instantiates (i.e., don't
21026 # use $as_me), people would be surprised to read:
21027 # /* config.h. Generated by config.status. */
21028 configure_input='Generated from '`
21029 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21031 if test x"$ac_file" != x-; then
21032 configure_input="$ac_file. $configure_input"
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21034 $as_echo "$as_me: creating $ac_file" >&6;}
21036 # Neutralize special characters interpreted by sed in replacement strings.
21037 case $configure_input in #(
21038 *\&* | *\|* | *\\* )
21039 ac_sed_conf_input=`$as_echo "$configure_input" |
21040 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21041 *) ac_sed_conf_input=$configure_input;;
21045 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21046 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21051 ac_dir=`$as_dirname -- "$ac_file" ||
21052 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21053 X"$ac_file" : 'X\(//\)[^/]' \| \
21054 X"$ac_file" : 'X\(//\)$' \| \
21055 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21056 $as_echo X"$ac_file" |
21057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21061 /^X\(\/\/\)[^/].*/{
21074 as_dir="$ac_dir"; as_fn_mkdir_p
21078 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21080 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21081 # A ".." for each directory in $ac_dir_suffix.
21082 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21083 case $ac_top_builddir_sub in
21084 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21085 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21088 ac_abs_top_builddir=$ac_pwd
21089 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21090 # for backward compatibility:
21091 ac_top_builddir=$ac_top_build_prefix
21094 .) # We are building in place.
21096 ac_top_srcdir=$ac_top_builddir_sub
21097 ac_abs_top_srcdir=$ac_pwd ;;
21098 [\\/]* | ?:[\\/]* ) # Absolute name.
21099 ac_srcdir=$srcdir$ac_dir_suffix;
21100 ac_top_srcdir=$srcdir
21101 ac_abs_top_srcdir=$srcdir ;;
21102 *) # Relative name.
21103 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21104 ac_top_srcdir=$ac_top_build_prefix$srcdir
21105 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21107 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21117 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21118 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21120 ac_MKDIR_P=$MKDIR_P
21122 [\\/$]* | ?:[\\/]* ) ;;
21123 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21128 # If the template does not know about datarootdir, expand it.
21129 # FIXME: This hack should be removed a few years after 2.60.
21130 ac_datarootdir_hack=; ac_datarootdir_seen=
21141 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21142 *datarootdir*) ac_datarootdir_seen=yes;;
21143 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21145 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21148 ac_datarootdir_hack='
21149 s&@datadir@&$datadir&g
21150 s&@docdir@&$docdir&g
21151 s&@infodir@&$infodir&g
21152 s&@localedir@&$localedir&g
21153 s&@mandir@&$mandir&g
21154 s&\\\${datarootdir}&$datarootdir&g' ;;
21158 # Neutralize VPATH when `$srcdir' = `.'.
21159 # Shell code in configure.ac might set extrasub.
21160 # FIXME: do we really want to maintain this feature?
21161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21162 ac_sed_extra="$ac_vpsub
21165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21167 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21168 s|@configure_input@|$ac_sed_conf_input|;t t
21169 s&@top_builddir@&$ac_top_builddir_sub&;t t
21170 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21171 s&@srcdir@&$ac_srcdir&;t t
21172 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21173 s&@top_srcdir@&$ac_top_srcdir&;t t
21174 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21175 s&@builddir@&$ac_builddir&;t t
21176 s&@abs_builddir@&$ac_abs_builddir&;t t
21177 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21178 s&@INSTALL@&$ac_INSTALL&;t t
21179 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21180 $ac_datarootdir_hack
21182 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21183 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21185 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21186 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21187 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21188 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21190 which seems to be undefined. Please make sure it is defined" >&5
21191 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21192 which seems to be undefined. Please make sure it is defined" >&2;}
21194 rm -f "$ac_tmp/stdin"
21196 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21197 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21199 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21205 if test x"$ac_file" != x-; then
21207 $as_echo "/* $configure_input */" \
21208 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21209 } >"$ac_tmp/config.h" \
21210 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21211 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21213 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21216 mv "$ac_tmp/config.h" "$ac_file" \
21217 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21220 $as_echo "/* $configure_input */" \
21221 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21222 || as_fn_error $? "could not create -" "$LINENO" 5
21224 # Compute "$ac_file"'s index in $config_headers.
21227 for _am_header in $config_headers :; do
21228 case $_am_header in
21229 $_am_arg | $_am_arg:* )
21232 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21235 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21236 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21237 X"$_am_arg" : 'X\(//\)[^/]' \| \
21238 X"$_am_arg" : 'X\(//\)$' \| \
21239 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21240 $as_echo X"$_am_arg" |
21241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21245 /^X\(\/\/\)[^/].*/{
21257 s/.*/./; q'`/stamp-h$_am_stamp_count
21260 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21261 $as_echo "$as_me: executing $ac_file commands" >&6;}
21266 case $ac_file$ac_mode in
21267 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21268 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21269 # are listed without --file. Let's play safe and only enable the eval
21270 # if we detect the quoting.
21271 case $CONFIG_FILES in
21272 *\'*) eval set x "$CONFIG_FILES" ;;
21273 *) set x $CONFIG_FILES ;;
21278 # Strip MF so we end up with the name of the file.
21279 mf=`echo "$mf" | sed -e 's/:.*$//'`
21280 # Check whether this is an Automake generated Makefile or not.
21281 # We used to match only the files named `Makefile.in', but
21282 # some people rename them; so instead we look at the file content.
21283 # Grep'ing the first line is not enough: some people post-process
21284 # each Makefile.in and add a new line on top of each file to say so.
21285 # Grep'ing the whole file is not good either: AIX grep has a line
21286 # limit of 2048, but all sed's we know have understand at least 4000.
21287 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21288 dirpart=`$as_dirname -- "$mf" ||
21289 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21290 X"$mf" : 'X\(//\)[^/]' \| \
21291 X"$mf" : 'X\(//\)$' \| \
21292 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21298 /^X\(\/\/\)[^/].*/{
21314 # Extract the definition of DEPDIR, am__include, and am__quote
21315 # from the Makefile without running `make'.
21316 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21317 test -z "$DEPDIR" && continue
21318 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21319 test -z "am__include" && continue
21320 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21321 # When using ansi2knr, U may be empty or an underscore; expand it
21322 U=`sed -n 's/^U = //p' < "$mf"`
21323 # Find all dependency output files, they are included files with
21324 # $(DEPDIR) in their names. We invoke sed twice because it is the
21325 # simplest approach to changing $(DEPDIR) to its actual value in the
21327 for file in `sed -n "
21328 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21329 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21330 # Make sure the directory exists.
21331 test -f "$dirpart/$file" && continue
21332 fdir=`$as_dirname -- "$file" ||
21333 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21334 X"$file" : 'X\(//\)[^/]' \| \
21335 X"$file" : 'X\(//\)$' \| \
21336 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21337 $as_echo X"$file" |
21338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21342 /^X\(\/\/\)[^/].*/{
21355 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21356 # echo "creating $dirpart/$file"
21357 echo '# dummy' > "$dirpart/$file"
21364 # See if we are running on zsh, and set the options which allow our
21365 # commands through without removal of \ escapes.
21366 if test -n "${ZSH_VERSION+set}" ; then
21367 setopt NO_GLOB_SUBST
21370 cfgfile="${ofile}T"
21371 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21374 cat <<_LT_EOF >> "$cfgfile"
21377 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21378 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21379 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21380 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21382 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21383 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
21385 # Written by Gordon Matzigkeit, 1996
21387 # This file is part of GNU Libtool.
21389 # GNU Libtool is free software; you can redistribute it and/or
21390 # modify it under the terms of the GNU General Public License as
21391 # published by the Free Software Foundation; either version 2 of
21392 # the License, or (at your option) any later version.
21394 # As a special exception to the GNU General Public License,
21395 # if you distribute this file as part of a program or library that
21396 # is built using GNU Libtool, you may include this file under the
21397 # same distribution terms that you use for the rest of that program.
21399 # GNU Libtool is distributed in the hope that it will be useful,
21400 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21401 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21402 # GNU General Public License for more details.
21404 # You should have received a copy of the GNU General Public License
21405 # along with GNU Libtool; see the file COPYING. If not, a copy
21406 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21407 # obtained by writing to the Free Software Foundation, Inc.,
21408 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21411 # The names of the tagged configurations supported by this script.
21414 # ### BEGIN LIBTOOL CONFIG
21416 # Which release of libtool.m4 was used?
21417 macro_version=$macro_version
21418 macro_revision=$macro_revision
21420 # Whether or not to build shared libraries.
21421 build_libtool_libs=$enable_shared
21423 # Whether or not to build static libraries.
21424 build_old_libs=$enable_static
21426 # What type of objects to build.
21429 # Whether or not to optimize for fast installation.
21430 fast_install=$enable_fast_install
21432 # Shell to use when invoking shell scripts.
21435 # An echo program that protects backslashes.
21439 host_alias=$host_alias
21443 # The build system.
21444 build_alias=$build_alias
21448 # A sed program that does not truncate output.
21451 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21452 Xsed="\$SED -e 1s/^X//"
21454 # A grep program that handles long lines.
21460 # A literal string matcher.
21463 # A BSD- or MS-compatible name lister.
21466 # Whether we need soft or hard links.
21469 # What is the maximum length of a command?
21470 max_cmd_len=$max_cmd_len
21472 # Object file suffix (normally "o").
21475 # Executable file suffix (normally "").
21478 # whether the shell understands "unset".
21481 # turn spaces into newlines.
21484 # turn newlines into spaces.
21487 # convert \$build file names to \$host format.
21488 to_host_file_cmd=$lt_cv_to_host_file_cmd
21490 # convert \$build files to toolchain format.
21491 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21493 # An object symbol dumper.
21494 OBJDUMP=$lt_OBJDUMP
21496 # Method to check whether dependent libraries are shared objects.
21497 deplibs_check_method=$lt_deplibs_check_method
21499 # Command to use when deplibs_check_method = "file_magic".
21500 file_magic_cmd=$lt_file_magic_cmd
21502 # How to find potential files when deplibs_check_method = "file_magic".
21503 file_magic_glob=$lt_file_magic_glob
21505 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21506 want_nocaseglob=$lt_want_nocaseglob
21508 # DLL creation program.
21509 DLLTOOL=$lt_DLLTOOL
21511 # Command to associate shared and link libraries.
21512 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21517 # Flags to create an archive.
21518 AR_FLAGS=$lt_AR_FLAGS
21520 # How to feed a file listing to the archiver.
21521 archiver_list_spec=$lt_archiver_list_spec
21523 # A symbol stripping program.
21526 # Commands used to install an old-style archive.
21528 old_postinstall_cmds=$lt_old_postinstall_cmds
21529 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21531 # Whether to use a lock for old archive extraction.
21532 lock_old_archive_extraction=$lock_old_archive_extraction
21537 # LTCC compiler flags.
21538 LTCFLAGS=$lt_CFLAGS
21540 # Take the output of nm and produce a listing of raw symbols and C names.
21541 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21543 # Transform the output of nm in a proper C declaration.
21544 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21546 # Transform the output of nm in a C name address pair.
21547 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21549 # Transform the output of nm in a C name address pair when lib prefix is needed.
21550 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21552 # Specify filename containing input files for \$NM.
21553 nm_file_list_spec=$lt_nm_file_list_spec
21555 # The root where to search for dependent libraries,and in which our libraries should be installed.
21556 lt_sysroot=$lt_sysroot
21558 # The name of the directory that contains temporary libtool files.
21561 # Used to examine libraries when file_magic_cmd begins with "file".
21562 MAGIC_CMD=$MAGIC_CMD
21564 # Must we lock files when doing compilation?
21565 need_locks=$lt_need_locks
21568 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21570 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21571 DSYMUTIL=$lt_DSYMUTIL
21573 # Tool to change global to local symbols on Mac OS X.
21576 # Tool to manipulate fat objects and archives on Mac OS X.
21579 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21582 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21583 OTOOL64=$lt_OTOOL64
21585 # Old archive suffix (normally "a").
21588 # Shared library suffix (normally ".so").
21589 shrext_cmds=$lt_shrext_cmds
21591 # The commands to extract the exported symbol list from a shared archive.
21592 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21594 # Variables whose values should be saved in libtool wrapper scripts and
21595 # restored at link time.
21596 variables_saved_for_relink=$lt_variables_saved_for_relink
21598 # Do we need the "lib" prefix for modules?
21599 need_lib_prefix=$need_lib_prefix
21601 # Do we need a version for libraries?
21602 need_version=$need_version
21604 # Library versioning type.
21605 version_type=$version_type
21607 # Shared library runtime path variable.
21608 runpath_var=$runpath_var
21610 # Shared library path variable.
21611 shlibpath_var=$shlibpath_var
21613 # Is shlibpath searched before the hard-coded library search path?
21614 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21616 # Format of library name prefix.
21617 libname_spec=$lt_libname_spec
21619 # List of archive names. First name is the real one, the rest are links.
21620 # The last name is the one that the linker finds with -lNAME
21621 library_names_spec=$lt_library_names_spec
21623 # The coded name of the library, if different from the real name.
21624 soname_spec=$lt_soname_spec
21626 # Permission mode override for installation of shared libraries.
21627 install_override_mode=$lt_install_override_mode
21629 # Command to use after installation of a shared archive.
21630 postinstall_cmds=$lt_postinstall_cmds
21632 # Command to use after uninstallation of a shared archive.
21633 postuninstall_cmds=$lt_postuninstall_cmds
21635 # Commands used to finish a libtool library installation in a directory.
21636 finish_cmds=$lt_finish_cmds
21638 # As "finish_cmds", except a single script fragment to be evaled but
21640 finish_eval=$lt_finish_eval
21642 # Whether we should hardcode library paths into libraries.
21643 hardcode_into_libs=$hardcode_into_libs
21645 # Compile-time system search path for libraries.
21646 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21648 # Run-time system search path for libraries.
21649 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21651 # Whether dlopen is supported.
21652 dlopen_support=$enable_dlopen
21654 # Whether dlopen of programs is supported.
21655 dlopen_self=$enable_dlopen_self
21657 # Whether dlopen of statically linked programs is supported.
21658 dlopen_self_static=$enable_dlopen_self_static
21660 # Commands to strip libraries.
21661 old_striplib=$lt_old_striplib
21662 striplib=$lt_striplib
21665 # The linker used to build libraries.
21668 # How to create reloadable object files.
21669 reload_flag=$lt_reload_flag
21670 reload_cmds=$lt_reload_cmds
21672 # Commands used to build an old-style archive.
21673 old_archive_cmds=$lt_old_archive_cmds
21675 # A language specific compiler.
21678 # Is the compiler the GNU compiler?
21681 # Compiler flag to turn off builtin functions.
21682 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21684 # Additional compiler flags for building library objects.
21685 pic_flag=$lt_lt_prog_compiler_pic
21687 # How to pass a linker flag through the compiler.
21688 wl=$lt_lt_prog_compiler_wl
21690 # Compiler flag to prevent dynamic linking.
21691 link_static_flag=$lt_lt_prog_compiler_static
21693 # Does compiler simultaneously support -c and -o options?
21694 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21696 # Whether or not to add -lc for building shared libraries.
21697 build_libtool_need_lc=$archive_cmds_need_lc
21699 # Whether or not to disallow shared libs when runtime libs are static.
21700 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21702 # Compiler flag to allow reflexive dlopens.
21703 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21705 # Compiler flag to generate shared objects directly from archives.
21706 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21708 # Whether the compiler copes with passing no objects directly.
21709 compiler_needs_object=$lt_compiler_needs_object
21711 # Create an old-style archive from a shared archive.
21712 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21714 # Create a temporary old-style archive to link instead of a shared archive.
21715 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21717 # Commands used to build a shared archive.
21718 archive_cmds=$lt_archive_cmds
21719 archive_expsym_cmds=$lt_archive_expsym_cmds
21721 # Commands used to build a loadable module if different from building
21722 # a shared archive.
21723 module_cmds=$lt_module_cmds
21724 module_expsym_cmds=$lt_module_expsym_cmds
21726 # Whether we are building with GNU ld or not.
21727 with_gnu_ld=$lt_with_gnu_ld
21729 # Flag that allows shared libraries with undefined symbols to be built.
21730 allow_undefined_flag=$lt_allow_undefined_flag
21732 # Flag that enforces no undefined symbols.
21733 no_undefined_flag=$lt_no_undefined_flag
21735 # Flag to hardcode \$libdir into a binary during linking.
21736 # This must work even if \$libdir does not exist
21737 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21739 # If ld is used when linking, flag to hardcode \$libdir into a binary
21740 # during linking. This must work even if \$libdir does not exist.
21741 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21743 # Whether we need a single "-rpath" flag with a separated argument.
21744 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21746 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21747 # DIR into the resulting binary.
21748 hardcode_direct=$hardcode_direct
21750 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21751 # DIR into the resulting binary and the resulting library dependency is
21752 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21753 # library is relocated.
21754 hardcode_direct_absolute=$hardcode_direct_absolute
21756 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21757 # into the resulting binary.
21758 hardcode_minus_L=$hardcode_minus_L
21760 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21761 # into the resulting binary.
21762 hardcode_shlibpath_var=$hardcode_shlibpath_var
21764 # Set to "yes" if building a shared library automatically hardcodes DIR
21765 # into the library and all subsequent libraries and executables linked
21767 hardcode_automatic=$hardcode_automatic
21769 # Set to yes if linker adds runtime paths of dependent libraries
21770 # to runtime path list.
21771 inherit_rpath=$inherit_rpath
21773 # Whether libtool must link a program against all its dependency libraries.
21774 link_all_deplibs=$link_all_deplibs
21776 # Set to "yes" if exported symbols are required.
21777 always_export_symbols=$always_export_symbols
21779 # The commands to list exported symbols.
21780 export_symbols_cmds=$lt_export_symbols_cmds
21782 # Symbols that should not be listed in the preloaded symbols.
21783 exclude_expsyms=$lt_exclude_expsyms
21785 # Symbols that must always be exported.
21786 include_expsyms=$lt_include_expsyms
21788 # Commands necessary for linking programs (against libraries) with templates.
21789 prelink_cmds=$lt_prelink_cmds
21791 # Commands necessary for finishing linking programs.
21792 postlink_cmds=$lt_postlink_cmds
21794 # Specify filename containing input files.
21795 file_list_spec=$lt_file_list_spec
21797 # How to hardcode a shared library path into an executable.
21798 hardcode_action=$hardcode_action
21800 # ### END LIBTOOL CONFIG
21806 cat <<\_LT_EOF >> "$cfgfile"
21807 # AIX sometimes has problems with the GCC collect2 program. For some
21808 # reason, if we set the COLLECT_NAMES environment variable, the problems
21809 # vanish in a puff of smoke.
21810 if test "X${COLLECT_NAMES+set}" != Xset; then
21812 export COLLECT_NAMES
21819 ltmain="$ac_aux_dir/ltmain.sh"
21822 # We use sed instead of cat because bash on DJGPP gets confused if
21823 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21824 # text mode, it properly converts lines to CR/LF. This bash problem
21825 # is reportedly fixed, but why not run on old versions too?
21826 sed '$q' "$ltmain" >> "$cfgfile" \
21827 || (rm -f "$cfgfile"; exit 1)
21829 if test x"$xsi_shell" = xyes; then
21830 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21834 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21835 \ * ) func_dirname_result="${3}" ;;\
21837 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21838 && mv -f "$cfgfile.tmp" "$cfgfile" \
21839 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21840 test 0 -eq $? || _lt_function_replace_fail=:
21843 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21846 \ func_basename_result="${1##*/}"\
21847 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21848 && mv -f "$cfgfile.tmp" "$cfgfile" \
21849 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21850 test 0 -eq $? || _lt_function_replace_fail=:
21853 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21854 func_dirname_and_basename ()\
21857 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21858 \ * ) func_dirname_result="${3}" ;;\
21860 \ func_basename_result="${1##*/}"\
21861 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21862 && mv -f "$cfgfile.tmp" "$cfgfile" \
21863 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21864 test 0 -eq $? || _lt_function_replace_fail=:
21867 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21870 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21871 \ # positional parameters, so assign one to ordinary parameter first.\
21872 \ func_stripname_result=${3}\
21873 \ func_stripname_result=${func_stripname_result#"${1}"}\
21874 \ func_stripname_result=${func_stripname_result%"${2}"}\
21875 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21876 && mv -f "$cfgfile.tmp" "$cfgfile" \
21877 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21878 test 0 -eq $? || _lt_function_replace_fail=:
21881 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21882 func_split_long_opt ()\
21884 \ func_split_long_opt_name=${1%%=*}\
21885 \ func_split_long_opt_arg=${1#*=}\
21886 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21887 && mv -f "$cfgfile.tmp" "$cfgfile" \
21888 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21889 test 0 -eq $? || _lt_function_replace_fail=:
21892 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21893 func_split_short_opt ()\
21895 \ func_split_short_opt_arg=${1#??}\
21896 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21897 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21898 && mv -f "$cfgfile.tmp" "$cfgfile" \
21899 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21900 test 0 -eq $? || _lt_function_replace_fail=:
21903 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21907 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21908 \ *) func_lo2o_result=${1} ;;\
21910 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21911 && mv -f "$cfgfile.tmp" "$cfgfile" \
21912 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21913 test 0 -eq $? || _lt_function_replace_fail=:
21916 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21919 func_xform_result=${1%.*}.lo\
21920 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21921 && mv -f "$cfgfile.tmp" "$cfgfile" \
21922 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21923 test 0 -eq $? || _lt_function_replace_fail=:
21926 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21929 func_arith_result=$(( $* ))\
21930 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21931 && mv -f "$cfgfile.tmp" "$cfgfile" \
21932 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21933 test 0 -eq $? || _lt_function_replace_fail=:
21936 sed -e '/^func_len ()$/,/^} # func_len /c\
21939 func_len_result=${#1}\
21940 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21941 && mv -f "$cfgfile.tmp" "$cfgfile" \
21942 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21943 test 0 -eq $? || _lt_function_replace_fail=:
21947 if test x"$lt_shell_append" = xyes; then
21948 sed -e '/^func_append ()$/,/^} # func_append /c\
21951 eval "${1}+=\\${2}"\
21952 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21953 && mv -f "$cfgfile.tmp" "$cfgfile" \
21954 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21955 test 0 -eq $? || _lt_function_replace_fail=:
21958 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21959 func_append_quoted ()\
21961 \ func_quote_for_eval "${2}"\
21962 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21963 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21964 && mv -f "$cfgfile.tmp" "$cfgfile" \
21965 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21966 test 0 -eq $? || _lt_function_replace_fail=:
21969 # Save a `func_append' function call where possible by direct use of '+='
21970 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21971 && mv -f "$cfgfile.tmp" "$cfgfile" \
21972 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21973 test 0 -eq $? || _lt_function_replace_fail=:
21975 # Save a `func_append' function call even when '+=' is not available
21976 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21977 && mv -f "$cfgfile.tmp" "$cfgfile" \
21978 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21979 test 0 -eq $? || _lt_function_replace_fail=:
21982 if test x"$_lt_function_replace_fail" = x":"; then
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21984 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21988 mv -f "$cfgfile" "$ofile" ||
21989 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22000 ac_clean_files=$ac_clean_files_save
22002 test $ac_write_fail = 0 ||
22003 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22006 # configure is writing to config.log, and then calls config.status.
22007 # config.status does its own redirection, appending to config.log.
22008 # Unfortunately, on DOS this fails, as config.log is still kept open
22009 # by configure, so config.status won't be able to write to it; its
22010 # output is simply discarded. So we exec the FD to /dev/null,
22011 # effectively closing config.log, so it can be properly (re)opened and
22012 # appended to by config.status. When coming back to configure, we
22013 # need to make the FD available again.
22014 if test "$no_create" != yes; then
22016 ac_config_status_args=
22017 test "$silent" = yes &&
22018 ac_config_status_args="$ac_config_status_args --quiet"
22020 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22022 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22023 # would make configure fail if this is the last instruction.
22024 $ac_cs_success || as_fn_exit 1
22026 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22028 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}