2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
595 ac_unique_file
="event.c"
596 # Factoring default headers for most tests.
597 ac_includes_default
="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars
='am__EXEEXT_FALSE
635 INSTALL_LIBEVENT_FALSE
636 INSTALL_LIBEVENT_TRUE
655 DEVPOLL_BACKEND_FALSE
661 BUILD_WITH_NO_UNDEFINED_FALSE
662 BUILD_WITH_NO_UNDEFINED_TRUE
732 INSTALL_STRIP_PROGRAM
774 program_transform_name
787 enable_option_checking
788 enable_dependency_tracking
790 enable_thread_support
791 enable_malloc_replacement
794 enable_libevent_install
795 enable_libevent_regress
796 enable_function_sections
805 ac_precious_vars
='build_alias
816 # Initialize some variables set by options.
818 ac_init_version
=false
819 ac_unrecognized_opts
=
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
830 program_transform_name
=s
,x
,x
,
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir
='${exec_prefix}/bin'
845 sbindir
='${exec_prefix}/sbin'
846 libexecdir
='${exec_prefix}/libexec'
847 datarootdir
='${prefix}/share'
848 datadir
='${datarootdir}'
849 sysconfdir
='${prefix}/etc'
850 sharedstatedir
='${prefix}/com'
851 localstatedir
='${prefix}/var'
852 includedir
='${prefix}/include'
853 oldincludedir
='/usr/include'
854 docdir
='${datarootdir}/doc/${PACKAGE}'
855 infodir
='${datarootdir}/info'
860 libdir
='${exec_prefix}/lib'
861 localedir
='${datarootdir}/locale'
862 mandir
='${datarootdir}/man'
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\
$ac_option
876 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 # Accept the important Cygnus configure options, so we can diagnose typos.
883 case $ac_dashdash$ac_option in
887 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
889 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
892 -build |
--build |
--buil |
--bui |
--bu)
893 ac_prev
=build_alias
;;
894 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
895 build_alias
=$ac_optarg ;;
897 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
898 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
899 ac_prev
=cache_file
;;
900 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
901 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
902 cache_file
=$ac_optarg ;;
905 cache_file
=config.cache
;;
907 -datadir |
--datadir |
--datadi |
--datad)
909 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
910 datadir
=$ac_optarg ;;
912 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
913 |
--dataroo |
--dataro |
--datar)
914 ac_prev
=datarootdir
;;
915 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
916 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
917 datarootdir
=$ac_optarg ;;
919 -disable-* |
--disable-*)
920 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
923 as_fn_error $?
"invalid feature name: $ac_useropt"
924 ac_useropt_orig
=$ac_useropt
925 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
930 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931 ac_unrecognized_sep
=', ';;
933 eval enable_
$ac_useropt=no
;;
935 -docdir |
--docdir |
--docdi |
--doc |
--do)
937 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
940 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
942 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
945 -enable-* |
--enable-*)
946 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
949 as_fn_error $?
"invalid feature name: $ac_useropt"
950 ac_useropt_orig
=$ac_useropt
951 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
956 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957 ac_unrecognized_sep
=', ';;
959 eval enable_
$ac_useropt=\
$ac_optarg ;;
961 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
962 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
963 |
--exec |
--exe |
--ex)
964 ac_prev
=exec_prefix
;;
965 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
966 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
967 |
--exec=* |
--exe=* |
--ex=*)
968 exec_prefix
=$ac_optarg ;;
970 -gas |
--gas |
--ga |
--g)
971 # Obsolete; use --with-gas.
974 -help |
--help |
--hel |
--he |
-h)
976 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
977 ac_init_help
=recursive
;;
978 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
979 ac_init_help
=short
;;
981 -host |
--host |
--hos |
--ho)
982 ac_prev
=host_alias
;;
983 -host=* |
--host=* |
--hos=* |
--ho=*)
984 host_alias
=$ac_optarg ;;
986 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
988 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
990 htmldir
=$ac_optarg ;;
992 -includedir |
--includedir |
--includedi |
--included |
--include \
993 |
--includ |
--inclu |
--incl |
--inc)
994 ac_prev
=includedir
;;
995 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
996 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
997 includedir
=$ac_optarg ;;
999 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1001 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1002 infodir
=$ac_optarg ;;
1004 -libdir |
--libdir |
--libdi |
--libd)
1006 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1007 libdir
=$ac_optarg ;;
1009 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1010 |
--libexe |
--libex |
--libe)
1011 ac_prev
=libexecdir
;;
1012 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1013 |
--libexe=* |
--libex=* |
--libe=*)
1014 libexecdir
=$ac_optarg ;;
1016 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1017 ac_prev
=localedir
;;
1018 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1019 localedir
=$ac_optarg ;;
1021 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1022 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1023 ac_prev
=localstatedir
;;
1024 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1025 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1026 localstatedir
=$ac_optarg ;;
1028 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1030 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1031 mandir
=$ac_optarg ;;
1033 -nfp |
--nfp |
--nf)
1034 # Obsolete; use --without-fp.
1037 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1038 |
--no-cr |
--no-c |
-n)
1041 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1042 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1045 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1046 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1047 |
--oldin |
--oldi |
--old |
--ol |
--o)
1048 ac_prev
=oldincludedir
;;
1049 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1050 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1051 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1052 oldincludedir
=$ac_optarg ;;
1054 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1056 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1057 prefix
=$ac_optarg ;;
1059 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1060 |
--program-pre |
--program-pr |
--program-p)
1061 ac_prev
=program_prefix
;;
1062 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1063 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1064 program_prefix
=$ac_optarg ;;
1066 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1067 |
--program-suf |
--program-su |
--program-s)
1068 ac_prev
=program_suffix
;;
1069 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1070 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1071 program_suffix
=$ac_optarg ;;
1073 -program-transform-name |
--program-transform-name \
1074 |
--program-transform-nam |
--program-transform-na \
1075 |
--program-transform-n |
--program-transform- \
1076 |
--program-transform |
--program-transfor \
1077 |
--program-transfo |
--program-transf \
1078 |
--program-trans |
--program-tran \
1079 |
--progr-tra |
--program-tr |
--program-t)
1080 ac_prev
=program_transform_name
;;
1081 -program-transform-name=* |
--program-transform-name=* \
1082 |
--program-transform-nam=* |
--program-transform-na=* \
1083 |
--program-transform-n=* |
--program-transform-=* \
1084 |
--program-transform=* |
--program-transfor=* \
1085 |
--program-transfo=* |
--program-transf=* \
1086 |
--program-trans=* |
--program-tran=* \
1087 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1088 program_transform_name
=$ac_optarg ;;
1090 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1092 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1093 pdfdir
=$ac_optarg ;;
1095 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1097 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1100 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1101 |
-silent |
--silent |
--silen |
--sile |
--sil)
1104 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1106 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1108 sbindir
=$ac_optarg ;;
1110 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1111 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1112 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1114 ac_prev
=sharedstatedir
;;
1115 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1116 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1117 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1119 sharedstatedir
=$ac_optarg ;;
1121 -site |
--site |
--sit)
1123 -site=* |
--site=* |
--sit=*)
1126 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1128 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1129 srcdir
=$ac_optarg ;;
1131 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1132 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1133 ac_prev
=sysconfdir
;;
1134 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1135 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1136 sysconfdir
=$ac_optarg ;;
1138 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1139 ac_prev
=target_alias
;;
1140 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1141 target_alias
=$ac_optarg ;;
1143 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1146 -version |
--version |
--versio |
--versi |
--vers |
-V)
1147 ac_init_version
=: ;;
1150 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1153 as_fn_error $?
"invalid package name: $ac_useropt"
1154 ac_useropt_orig
=$ac_useropt
1155 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1160 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep
=', ';;
1163 eval with_
$ac_useropt=\
$ac_optarg ;;
1165 -without-* |
--without-*)
1166 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1169 as_fn_error $?
"invalid package name: $ac_useropt"
1170 ac_useropt_orig
=$ac_useropt
1171 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1176 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 ac_unrecognized_sep
=', ';;
1179 eval with_
$ac_useropt=no
;;
1182 # Obsolete; use --with-x.
1185 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1186 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1187 ac_prev
=x_includes
;;
1188 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1189 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1190 x_includes
=$ac_optarg ;;
1192 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1193 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1194 ac_prev
=x_libraries
;;
1195 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1196 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1197 x_libraries
=$ac_optarg ;;
1199 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1200 Try \`$0 --help' for more information"
1204 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
1206 case $ac_envvar in #(
1207 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1208 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1210 eval $ac_envvar=\
$ac_optarg
1211 export $ac_envvar ;;
1214 # FIXME: should be removed in autoconf 3.0.
1215 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1217 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224 if test -n "$ac_prev"; then
1225 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1226 as_fn_error $?
"missing argument to $ac_option"
1229 if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1232 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237 # Check all directory arguments for consistency.
1238 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir
1243 eval ac_val
=\$
$ac_var
1244 # Remove trailing slashes.
1247 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\
$ac_val;;
1250 # Be sure to have absolute directory names.
1252 [\\/$
]* | ?
:[\\/]* ) continue;;
1253 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1255 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1258 # There might be people who depend on the old broken behavior: `$host'
1259 # used to hold the argument of --host etc.
1260 # FIXME: To remove some day.
1263 target
=$target_alias
1265 # FIXME: To remove some day.
1266 if test "x$host_alias" != x
; then
1267 if test "x$build_alias" = x
; then
1268 cross_compiling
=maybe
1269 elif test "x$build_alias" != "x$host_alias"; then
1275 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1277 test "$silent" = yes && exec 6>/dev
/null
1280 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1281 ac_ls_di
=`ls -di .` &&
1282 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1283 as_fn_error $?
"working directory cannot be determined"
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 as_fn_error $?
"pwd does not report name of working directory"
1288 # Find the source files, if location was not specified.
1289 if test -z "$srcdir"; then
1290 ac_srcdir_defaulted
=yes
1291 # Try the directory containing this script, then the parent directory.
1292 ac_confdir
=`$as_dirname -- "$as_myself" ||
1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297 $as_echo X"$as_myself" |
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1320 ac_srcdir_defaulted
=no
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1324 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1326 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1338 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340 for ac_var
in $ac_precious_vars; do
1341 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1342 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1343 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1344 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1348 # Report the --help message.
1350 if test "$ac_init_help" = "long"; then
1351 # Omit some internal or obsolete options to make the list less imposing.
1352 # This message is too long to be a string in the A/UX 3.1 sh.
1354 \`configure' configures this package to adapt to many kinds of systems.
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE. See below for descriptions of some of the useful variables.
1361 Defaults for the options are specified in brackets.
1364 -h, --help display this help and exit
1365 --help=short display options specific to this package
1366 --help=recursive display the short help of all the included packages
1367 -V, --version display version information and exit
1368 -q, --quiet, --silent do not print \`checking ...' messages
1369 --cache-file=FILE cache test results in FILE [disabled]
1370 -C, --config-cache alias for \`--cache-file=config.cache'
1371 -n, --no-create do not create output files
1372 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1374 Installation directories:
1375 --prefix=PREFIX install architecture-independent files in PREFIX
1376 [$ac_default_prefix]
1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 By default, \`make install' will install all the files in
1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 for instance \`--prefix=\$HOME'.
1385 For better control, use the options below.
1387 Fine tuning of the installation directories:
1388 --bindir=DIR user executables [EPREFIX/bin]
1389 --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 --libexecdir=DIR program executables [EPREFIX/libexec]
1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 --libdir=DIR object code libraries [EPREFIX/lib]
1395 --includedir=DIR C header files [PREFIX/include]
1396 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399 --infodir=DIR info documentation [DATAROOTDIR/info]
1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401 --mandir=DIR man documentation [DATAROOTDIR/man]
1402 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1403 --htmldir=DIR html documentation [DOCDIR]
1404 --dvidir=DIR dvi documentation [DOCDIR]
1405 --pdfdir=DIR pdf documentation [DOCDIR]
1406 --psdir=DIR ps documentation [DOCDIR]
1412 --program-prefix=PREFIX prepend PREFIX to installed program names
1413 --program-suffix=SUFFIX append SUFFIX to installed program names
1414 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1417 --build=BUILD configure
for building on BUILD
[guessed
]
1418 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1422 if test -n "$ac_init_help"; then
1427 --disable-option-checking ignore unrecognized
--enable/--with options
1428 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1429 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1430 --enable-dependency-tracking
1431 do not reject slow dependency extractors
1432 --disable-dependency-tracking
1433 speeds up one-time build
1434 --enable-gcc-warnings enable verbose warnings with GCC
1435 --disable-thread-support
1436 disable support
for threading
1437 --disable-malloc-replacement
1438 disable support
for replacing the memory mgt
1440 --disable-openssl disable support
for openssl encryption
1441 --disable-debug-mode disable support
for running
in debug mode
1442 --disable-libevent-install, disable installation of libevent
1444 --disable-libevent-regress, skip regress
in make check
1446 --enable-function-sections, make static library allow smaller binaries with
--gc-sections
1448 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1449 --enable-static[=PKGS
] build static libraries
[default
=yes]
1450 --enable-fast-install[=PKGS
]
1451 optimize
for fast installation
[default
=yes]
1452 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1455 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1456 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1457 --with-pic[=PKGS
] try to use only PIC
/non-PIC objects
[default
=use
1459 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1460 --with-sysroot=DIR Search
for dependent libraries within DIR
1461 (or the compiler
's sysroot if not specified).
1463 Some influential environment variables:
1464 CC C compiler command
1465 CFLAGS C compiler flags
1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1467 nonstandard directory <lib dir>
1468 LIBS libraries to pass to the linker, e.g. -l<library>
1469 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1470 you have headers in a nonstandard directory <include dir>
1473 Use these variables to override the choices made by `configure' or to
help
1474 it to
find libraries and programs with nonstandard names
/locations.
1476 Report bugs to the package provider.
1481 if test "$ac_init_help" = "recursive"; then
1482 # If there are subdirs, report their specific --help.
1483 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1484 test -d "$ac_dir" ||
1485 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1490 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1492 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1493 # A ".." for each directory in $ac_dir_suffix.
1494 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1495 case $ac_top_builddir_sub in
1496 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1497 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1500 ac_abs_top_builddir
=$ac_pwd
1501 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1502 # for backward compatibility:
1503 ac_top_builddir
=$ac_top_build_prefix
1506 .
) # We are building in place.
1508 ac_top_srcdir
=$ac_top_builddir_sub
1509 ac_abs_top_srcdir
=$ac_pwd ;;
1510 [\\/]* | ?
:[\\/]* ) # Absolute name.
1511 ac_srcdir
=$srcdir$ac_dir_suffix;
1512 ac_top_srcdir
=$srcdir
1513 ac_abs_top_srcdir
=$srcdir ;;
1515 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1516 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1517 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1519 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1521 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1522 # Check for guested configure.
1523 if test -f "$ac_srcdir/configure.gnu"; then
1525 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526 elif test -f "$ac_srcdir/configure"; then
1528 $SHELL "$ac_srcdir/configure" --help=recursive
1530 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1536 test -n "$ac_init_help" && exit $ac_status
1537 if $ac_init_version; then
1540 generated by GNU Autoconf
2.69
1542 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1543 This configure
script is free software
; the Free Software Foundation
1544 gives unlimited permission to copy
, distribute and modify it.
1549 ## ------------------------ ##
1550 ## Autoconf initialization. ##
1551 ## ------------------------ ##
1553 # ac_fn_c_try_compile LINENO
1554 # --------------------------
1555 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_compile
()
1558 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1559 rm -f conftest.
$ac_objext
1560 if { { ac_try
="$ac_compile"
1562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_compile") 2>conftest.err
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && {
1576 test -z "$ac_c_werror_flag" ||
1577 test ! -s conftest.err
1578 } && test -s conftest.$ac_objext; then :
1581 $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587 as_fn_set_status $ac_retval
1589 } # ac_fn_c_try_compile
1591 # ac_fn_c_try_cpp LINENO
1592 # ----------------------
1593 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 if { { ac_try="$ac_cpp conftest.$ac_ext"
1599 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1600 *) ac_try_echo
=$ac_try;;
1602 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1606 if test -s conftest.err
; then
1607 grep -v '^ *+' conftest.err
>conftest.er1
1608 cat conftest.er1
>&5
1609 mv -f conftest.er1 conftest.err
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } > conftest.i
&& {
1613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.
$ac_ext >&5
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status
$ac_retval
1628 # ac_fn_c_try_link LINENO
1629 # -----------------------
1630 # Try to link conftest.$ac_ext, and return whether this succeeded.
1633 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1634 rm -f conftest.
$ac_objext conftest
$ac_exeext
1635 if { { ac_try
="$ac_link"
1637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_link") 2>conftest.err
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && {
1651 test -z "$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 } && test -s conftest$ac_exeext && {
1654 test "$cross_compiling" = yes ||
1655 test -x conftest$ac_exeext
1659 $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1664 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1665 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1666 # interfere with the next link command; also delete a directory that is
1667 # left behind by Apple's compiler. We do this before executing the actions.
1668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1672 } # ac_fn_c_try_link
1674 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1675 # -------------------------------------------------------
1676 # Tests whether HEADER exists and can be compiled using the include files in
1677 # INCLUDES, setting the cache variable VAR accordingly.
1678 ac_fn_c_check_header_compile ()
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1682 $as_echo_n "checking for $2... " >&6; }
1683 if eval \${$3+:} false; then :
1684 $as_echo_n "(cached) " >&6
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1691 if ac_fn_c_try_compile "$LINENO"; then :
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700 $as_echo "$ac_res" >&6; }
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 } # ac_fn_c_check_header_compile
1705 # ac_fn_c_try_run LINENO
1706 # ----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1708 # that executables *can* be run.
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_link"
1714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1715 *) ac_try_echo
=$ac_try;;
1717 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>&5
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1723 { { case "(($ac_try" in
1724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_try") 2>&5
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; }; }; then :
1735 $as_echo "$as_me: program exited with status $ac_status" >&5
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1739 ac_retval=$ac_status
1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1747 # ac_fn_c_check_func LINENO FUNC VAR
1748 # ----------------------------------
1749 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1750 ac_fn_c_check_func ()
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if eval \${$3+:} false; then :
1756 $as_echo_n "(cached) " >&6
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1760 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1762 #define $2 innocuous_$2
1764 /* System header to define __stub macros and hopefully few prototypes,
1765 which can conflict with char $2 (); below.
1766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1767 <limits.h> exists even on freestanding compilers. */
1770 # include <limits.h>
1772 # include <assert.h>
1777 /* Override any GCC internal prototype to avoid an error.
1778 Use char because int might match the return type of a GCC
1779 builtin and then its argument prototype would still apply. */
1784 /* The GNU C library defines this for functions which it implements
1785 to always fail with ENOSYS. Some functions are actually named
1786 something starting with __ and the normal name is an alias. */
1787 #if defined __stub_$2 || defined __stub___$2
1799 if ac_fn_c_try_link "$LINENO"; then :
1804 rm -f core conftest.err conftest.$ac_objext \
1805 conftest$ac_exeext conftest.$ac_ext
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 } # ac_fn_c_check_func
1814 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1815 # -------------------------------------------------------
1816 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1817 # the include files in INCLUDES and setting the cache variable VAR
1819 ac_fn_c_check_header_mongrel ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if eval \${$3+:} false; then :
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1832 # Is the header compilable?
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1834 $as_echo_n "checking $2 usability... " >&6; }
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1840 if ac_fn_c_try_compile "$LINENO"; then :
1841 ac_header_compiler=yes
1843 ac_header_compiler=no
1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1847 $as_echo "$ac_header_compiler" >&6; }
1849 # Is the header present?
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1851 $as_echo_n "checking $2 presence... " >&6; }
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1856 if ac_fn_c_try_cpp "$LINENO"; then :
1857 ac_header_preproc=yes
1859 ac_header_preproc=no
1861 rm -f conftest.err conftest.i conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1863 $as_echo "$ac_header_preproc" >&6; }
1865 # So? What about this header?
1866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1869 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1871 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1875 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1877 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1879 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1881 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1883 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1891 eval "$3=\$ac_header_compiler"
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 } # ac_fn_c_check_header_mongrel
1901 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1902 # ---------------------------------------------
1903 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1905 ac_fn_c_check_decl ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1909 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1911 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1912 if eval \${$3+:} false; then :
1913 $as_echo_n "(cached) " >&6
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1921 #ifndef $as_decl_name
1923 (void) $as_decl_use;
1925 (void) $as_decl_name;
1933 if ac_fn_c_try_compile "$LINENO"; then :
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 } # ac_fn_c_check_decl
1947 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1948 # --------------------------------------------
1949 # Tries to find the compile-time value of EXPR in a program that includes
1950 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1952 ac_fn_c_compute_int ()
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 if test "$cross_compiling" = yes; then
1956 # Depending upon the size, compute the lo and hi bounds.
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1963 static int test_array [1 - 2 * !(($2) >= 0)];
1965 return test_array [0];
1971 if ac_fn_c_try_compile "$LINENO"; then :
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1980 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1982 return test_array [0];
1988 if ac_fn_c_try_compile "$LINENO"; then :
1989 ac_hi=$ac_mid; break
1991 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1992 if test $ac_lo -le $ac_mid; then
1996 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2007 static int test_array [1 - 2 * !(($2) < 0)];
2009 return test_array [0];
2015 if ac_fn_c_try_compile "$LINENO"; then :
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2024 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2026 return test_array [0];
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 ac_lo=$ac_mid; break
2035 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2036 if test $ac_mid -le $ac_hi; then
2040 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 # Binary search between lo and hi bounds.
2051 while test "x$ac_lo" != "x$ac_hi"; do
2052 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2059 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2061 return test_array [0];
2067 if ac_fn_c_try_compile "$LINENO"; then :
2070 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2082 static long int longval () { return $2; }
2083 static unsigned long int ulongval () { return $2; }
2090 FILE *f = fopen ("conftest.val", "w");
2095 long int i = longval ();
2098 fprintf (f, "%ld", i);
2102 unsigned long int i = ulongval ();
2105 fprintf (f, "%lu", i);
2107 /* Do not output a trailing newline, as this causes \r\n confusion
2108 on some platforms. */
2109 return ferror (f) || fclose (f) != 0;
2115 if ac_fn_c_try_run "$LINENO"; then :
2116 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2121 conftest.$ac_objext conftest.beam conftest.$ac_ext
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 as_fn_set_status $ac_retval
2128 } # ac_fn_c_compute_int
2130 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2131 # -------------------------------------------
2132 # Tests whether TYPE exists after having included INCLUDES, setting cache
2133 # variable VAR accordingly.
2134 ac_fn_c_check_type ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138 $as_echo_n "checking for $2... " >&6; }
2139 if eval \${$3+:} false; then :
2140 $as_echo_n "(cached) " >&6
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2168 if ac_fn_c_try_compile "$LINENO"; then :
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179 $as_echo "$ac_res" >&6; }
2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182 } # ac_fn_c_check_type
2184 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2185 # ----------------------------------------------------
2186 # Tries to find if the field MEMBER exists in type AGGR, after including
2187 # INCLUDES, setting cache variable VAR accordingly.
2188 ac_fn_c_check_member ()
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2192 $as_echo_n "checking for $2.$3... " >&6; }
2193 if eval \${$4+:} false; then :
2194 $as_echo_n "(cached) " >&6
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2209 if ac_fn_c_try_compile "$LINENO"; then :
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2219 if (sizeof ac_aggr.$3)
2225 if ac_fn_c_try_compile "$LINENO"; then :
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236 $as_echo "$ac_res" >&6; }
2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2239 } # ac_fn_c_check_member
2240 cat >config.log <<_ACEOF
2241 This file contains any messages produced by compilers while
2242 running configure, to aid debugging if configure makes a mistake.
2244 It was created by $as_me, which was
2245 generated by GNU Autoconf 2.69. Invocation command line was
2257 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2258 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2259 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2260 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2261 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2263 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2264 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2266 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2267 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2268 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2269 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2270 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2271 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2272 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 test -z "$as_dir" && as_dir=.
2281 $as_echo "PATH: $as_dir"
2297 # Keep a trace of the command line.
2298 # Strip out --no-create and --no-recursion so they do not pile up.
2299 # Strip out --silent because we don't want to record it for future runs.
2300 # Also quote any args containing shell meta-characters.
2301 # Make two passes to allow for proper duplicate-argument suppression.
2305 ac_must_keep_next=false
2311 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2313 | -silent | --silent | --silen | --sile | --sil)
2316 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2319 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2321 as_fn_append ac_configure_args1 " '$ac_arg'"
2322 if test $ac_must_keep_next = true; then
2323 ac_must_keep_next=false # Got value, back to normal.
2326 *=* | --config-cache | -C | -disable-* | --disable-* \
2327 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2328 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2329 | -with-* | --with-* | -without-* | --without-* | --x)
2330 case "$ac_configure_args0 " in
2331 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2334 -* ) ac_must_keep_next=true ;;
2337 as_fn_append ac_configure_args " '$ac_arg'"
2342 { ac_configure_args0=; unset ac_configure_args0;}
2343 { ac_configure_args1=; unset ac_configure_args1;}
2345 # When interrupted or exit'd, cleanup temporary files, and complete
2346 # config.log. We remove comments because anyway the quotes in there
2347 # would cause problems or look ugly.
2348 # WARNING: Use '\'' to represent an apostrophe within the trap.
2349 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2350 trap 'exit_status=$?
2351 # Save into config.log some information that might help in debugging.
2355 $as_echo "## ---------------- ##
2356 ## Cache variables. ##
2357 ## ---------------- ##"
2359 # The following way of writing the cache mishandles newlines in values,
2361 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2362 eval ac_val=\$$ac_var
2366 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2367 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2370 _ | IFS | as_nl) ;; #(
2371 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2372 *) { eval $ac_var=; unset $ac_var;} ;;
2377 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2378 *${as_nl}ac_space=\ *)
2380 "s/'\''/'\''\\\\'\'''\''/g;
2381 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2384 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2391 $as_echo "## ----------------- ##
2392 ## Output variables. ##
2393 ## ----------------- ##"
2395 for ac_var in $ac_subst_vars
2397 eval ac_val=\$$ac_var
2399 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2401 $as_echo "$ac_var='\''$ac_val'\''"
2405 if test -n "$ac_subst_files"; then
2406 $as_echo "## ------------------- ##
2407 ## File substitutions. ##
2408 ## ------------------- ##"
2410 for ac_var in $ac_subst_files
2412 eval ac_val=\$$ac_var
2414 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2416 $as_echo "$ac_var='\''$ac_val'\''"
2421 if test -s confdefs.h; then
2422 $as_echo "## ----------- ##
2429 test "$ac_signal" != 0 &&
2430 $as_echo "$as_me: caught signal $ac_signal"
2431 $as_echo "$as_me: exit $exit_status"
2433 rm -f core *.core core.conftest.* &&
2434 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2437 for ac_signal in 1 2 13 15; do
2438 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2442 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2443 rm -f -r conftest* confdefs.h
2445 $as_echo "/* confdefs.h */" > confdefs.h
2447 # Predefined preprocessor variables.
2449 cat >>confdefs.h <<_ACEOF
2450 #define PACKAGE_NAME "$PACKAGE_NAME"
2453 cat >>confdefs.h <<_ACEOF
2454 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2457 cat >>confdefs.h <<_ACEOF
2458 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_STRING "$PACKAGE_STRING"
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_URL "$PACKAGE_URL"
2474 # Let the site file select an alternate cache file if it wants to.
2475 # Prefer an explicitly selected file to automatically selected ones.
2478 if test -n "$CONFIG_SITE"; then
2479 # We do not want a PATH search for config.site.
2480 case $CONFIG_SITE in #((
2481 -*) ac_site_file1=./$CONFIG_SITE;;
2482 */*) ac_site_file1=$CONFIG_SITE;;
2483 *) ac_site_file1=./$CONFIG_SITE;;
2485 elif test "x$prefix" != xNONE; then
2486 ac_site_file1=$prefix/share/config.site
2487 ac_site_file2=$prefix/etc/config.site
2489 ac_site_file1=$ac_default_prefix/share/config.site
2490 ac_site_file2=$ac_default_prefix/etc/config.site
2492 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2494 test "x$ac_site_file" = xNONE && continue
2495 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2497 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2498 sed 's/^/| /' "$ac_site_file" >&5
2500 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2502 as_fn_error $? "failed to load site
script $ac_site_file
2503 See \
`config.log' for more details" "$LINENO" 5; }
2507 if test -r "$cache_file"; then
2508 # Some versions of bash will fail to source /dev/null (special files
2509 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2510 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2512 $as_echo "$as_me: loading cache $cache_file" >&6;}
2514 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2515 *) . "./$cache_file";;
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2520 $as_echo "$as_me: creating cache $cache_file" >&6;}
2524 # Check that the precious variables saved in the cache have kept the same
2526 ac_cache_corrupted=false
2527 for ac_var in $ac_precious_vars; do
2528 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2529 eval ac_new_set=\$ac_env_${ac_var}_set
2530 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2531 eval ac_new_val=\$ac_env_${ac_var}_value
2532 case $ac_old_set,$ac_new_set in
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2535 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2536 ac_cache_corrupted=: ;;
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2539 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2540 ac_cache_corrupted=: ;;
2543 if test "x$ac_old_val" != "x$ac_new_val"; then
2544 # differences in whitespace do not lead to failure.
2545 ac_old_val_w=`echo x
$ac_old_val`
2546 ac_new_val_w=`echo x
$ac_new_val`
2547 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2549 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2550 ac_cache_corrupted=:
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2553 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2554 eval $ac_var=\$ac_old_val
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2557 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2559 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2562 # Pass precious variables to config.status.
2563 if test "$ac_new_set" = set; then
2565 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2566 *) ac_arg=$ac_var=$ac_new_val ;;
2568 case " $ac_configure_args " in
2569 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2570 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2574 if $ac_cache_corrupted; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2578 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2579 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2581 ## -------------------- ##
2582 ## Main body of script. ##
2583 ## -------------------- ##
2586 ac_cpp='$CPP $CPPFLAGS'
2587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2595 am__api_version='1.12'
2598 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2599 if test -f "$ac_dir/install-sh"; then
2601 ac_install_sh="$ac_aux_dir/install-sh -c"
2603 elif test -f "$ac_dir/install.sh"; then
2605 ac_install_sh="$ac_aux_dir/install.sh -c"
2607 elif test -f "$ac_dir/shtool"; then
2609 ac_install_sh="$ac_aux_dir/shtool install -c"
2613 if test -z "$ac_aux_dir"; then
2614 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2617 # These three variables are undocumented and unsupported,
2618 # and are intended to be withdrawn in a future Autoconf release.
2619 # They can cause serious problems if a builder's source tree is in a directory
2620 # whose full name contains unusual characters.
2621 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2622 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2623 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2626 # Find a good install program. We prefer a C program (faster),
2627 # so one script is as good as another. But avoid the broken or
2628 # incompatible versions:
2629 # SysV /etc/install, /usr/sbin/install
2630 # SunOS /usr/etc/install
2631 # IRIX /sbin/install
2633 # AmigaOS /C/install, which installs bootblocks on floppy discs
2634 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2635 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2636 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2637 # OS/2's system install, which has a completely different semantic
2638 # ./install, which can be erroneously created by make from ./install.sh.
2639 # Reject install programs that cannot install multiple files.
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2641 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2642 if test -z "$INSTALL"; then
2643 if ${ac_cv_path_install+:} false; then :
2644 $as_echo_n "(cached) " >&6
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 test -z "$as_dir" && as_dir=.
2651 # Account for people who put trailing slashes in PATH elements.
2652 case $as_dir/ in #((
2653 ./ | .// | /[cC]/* | \
2654 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2655 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2658 # OSF1 and SCO ODT 3.0 have their own names for install.
2659 # Don't use installbsd from OSF since it installs stuff as root
2661 for ac_prog in ginstall scoinst install; do
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2664 if test $ac_prog = install &&
2665 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2666 # AIX install. It has an incompatible calling convention.
2668 elif test $ac_prog = install &&
2669 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2670 # program-specific install script used by HP pwplus--don't use.
2673 rm -rf conftest.one conftest.two conftest.dir
2674 echo one > conftest.one
2675 echo two > conftest.two
2677 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2678 test -s conftest.one && test -s conftest.two &&
2679 test -s conftest.dir/conftest.one &&
2680 test -s conftest.dir/conftest.two
2682 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2695 rm -rf conftest.one conftest.two conftest.dir
2698 if test "${ac_cv_path_install+set}" = set; then
2699 INSTALL=$ac_cv_path_install
2701 # As a last resort, use the slow shell script. Don't cache a
2702 # value for INSTALL within a source directory, because that will
2703 # break other packages using the cache if that directory is
2704 # removed, or if the value is a relative name.
2705 INSTALL=$ac_install_sh
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2709 $as_echo "$INSTALL" >&6; }
2711 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2712 # It thinks the first close brace ends the variable substitution.
2713 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2715 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2717 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2720 $as_echo_n "checking whether build environment is sane... " >&6; }
2721 # Reject unsafe characters in $srcdir or the absolute working directory
2722 # name. Accept space and tab only in the latter.
2726 *[\\\"\#\$\&\'\`$am_lf]*)
2727 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2730 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2731 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2734 # Do 'set' in a subshell so we don't clobber the current shell's
2735 # arguments. Must try -L first in case configure is actually a
2736 # symlink; some systems play weird games with the mod time of symlinks
2737 # (eg FreeBSD returns the mod time of the symlink's containing
2741 for am_try
in 1 2; do
2742 echo "timestamp, slept: $am_has_slept" > conftest.
file
2743 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2744 if test "$*" = "X"; then
2746 set X
`ls -t "$srcdir/configure" conftest.file`
2748 if test "$*" != "X $srcdir/configure conftest.file" \
2749 && test "$*" != "X conftest.file $srcdir/configure"; then
2751 # If neither matched, then we have a broken ls. This can happen
2752 # if, for instance, CONFIG_SHELL is bash and it inherits a
2753 # broken ls alias from the environment. This has actually
2754 # happened. Such a system could not be considered "sane".
2755 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2756 alias in your environment" "$LINENO" 5
2758 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2765 test "$2" = conftest.
file
2771 as_fn_error $?
"newly created file is older than distributed files!
2772 Check your system clock" "$LINENO" 5
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2775 $as_echo "yes" >&6; }
2776 # If we didn't sleep, we still need to ensure time stamps of config.status and
2777 # generated files are strictly newer.
2779 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2786 test "$program_prefix" != NONE
&&
2787 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2788 # Use a double $ so make ignores it.
2789 test "$program_suffix" != NONE
&&
2790 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2791 # Double any \ or $.
2792 # By default was `s,x,x', remove it if useless.
2793 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2794 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2796 # expand $ac_aux_dir to an absolute path
2797 am_aux_dir
=`cd $ac_aux_dir && pwd`
2799 if test x
"${MISSING+set}" != xset
; then
2802 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2804 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2807 # Use eval to expand $SHELL
2808 if eval "$MISSING --run true"; then
2809 am_missing_run
="$MISSING --run "
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2813 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2816 if test x
"${install_sh}" != xset
; then
2819 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2821 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2825 # Installed binaries are usually stripped using 'strip' when the user
2826 # run "make install-strip". However 'strip' might not be the right
2827 # tool to use in cross-compilation environments, therefore Automake
2828 # will honor the 'STRIP' environment variable to overrule this program.
2829 if test "$cross_compiling" != no
; then
2830 if test -n "$ac_tool_prefix"; then
2831 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2832 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if ${ac_cv_prog_STRIP+:} false
; then :
2836 $as_echo_n "(cached) " >&6
2838 if test -n "$STRIP"; then
2839 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2845 test -z "$as_dir" && as_dir
=.
2846 for ac_exec_ext
in '' $ac_executable_extensions; do
2847 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 STRIP
=$ac_cv_prog_STRIP
2859 if test -n "$STRIP"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2861 $as_echo "$STRIP" >&6; }
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2869 if test -z "$ac_cv_prog_STRIP"; then
2871 # Extract the first word of "strip", so it can be a program name with args.
2872 set dummy strip
; ac_word
=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2876 $as_echo_n "(cached) " >&6
2878 if test -n "$ac_ct_STRIP"; then
2879 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2885 test -z "$as_dir" && as_dir
=.
2886 for ac_exec_ext
in '' $ac_executable_extensions; do
2887 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_ac_ct_STRIP
="strip"
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2899 if test -n "$ac_ct_STRIP"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2901 $as_echo "$ac_ct_STRIP" >&6; }
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2907 if test "x$ac_ct_STRIP" = x
; then
2910 case $cross_compiling:$ac_tool_warned in
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2914 ac_tool_warned
=yes ;;
2919 STRIP
="$ac_cv_prog_STRIP"
2923 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2926 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2927 if test -z "$MKDIR_P"; then
2928 if ${ac_cv_path_mkdir+:} false
; then :
2929 $as_echo_n "(cached) " >&6
2931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2932 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2935 test -z "$as_dir" && as_dir
=.
2936 for ac_prog
in mkdir gmkdir
; do
2937 for ac_exec_ext
in '' $ac_executable_extensions; do
2938 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
2939 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2940 'mkdir (GNU coreutils) '* | \
2941 'mkdir (coreutils) '* | \
2942 'mkdir (fileutils) '4.1*)
2943 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2953 test -d .
/--version && rmdir .
/--version
2954 if test "${ac_cv_path_mkdir+set}" = set; then
2955 MKDIR_P
="$ac_cv_path_mkdir -p"
2957 # As a last resort, use the slow shell script. Don't cache a
2958 # value for MKDIR_P within a source directory, because that will
2959 # break other packages using the cache if that directory is
2960 # removed, or if the value is a relative name.
2961 MKDIR_P
="$ac_install_sh -d"
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2965 $as_echo "$MKDIR_P" >&6; }
2967 for ac_prog
in gawk mawk nawk
awk
2969 # Extract the first word of "$ac_prog", so it can be a program name with args.
2970 set dummy
$ac_prog; ac_word
=$2
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if ${ac_cv_prog_AWK+:} false
; then :
2974 $as_echo_n "(cached) " >&6
2976 if test -n "$AWK"; then
2977 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2983 test -z "$as_dir" && as_dir
=.
2984 for ac_exec_ext
in '' $ac_executable_extensions; do
2985 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2986 ac_cv_prog_AWK
="$ac_prog"
2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 if test -n "$AWK"; then
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2999 $as_echo "$AWK" >&6; }
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002 $as_echo "no" >&6; }
3006 test -n "$AWK" && break
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3010 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3012 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3013 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3014 $as_echo_n "(cached) " >&6
3016 cat >conftest.
make <<\_ACEOF
3019 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3021 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3022 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3024 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3026 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3030 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3032 $as_echo "yes" >&6; }
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3037 SET_MAKE
="MAKE=${MAKE-make}"
3040 rm -rf .tst
2>/dev
/null
3041 mkdir .tst
2>/dev
/null
3042 if test -d .tst
; then
3047 rmdir .tst
2>/dev
/null
3049 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3050 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3051 # is not polluted with repeated "-I."
3052 am__isrc
=' -I$(srcdir)'
3053 # test to see if srcdir already configured
3054 if test -f $srcdir/config.status
; then
3055 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3059 # test whether we have cygpath
3060 if test -z "$CYGPATH_W"; then
3061 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3062 CYGPATH_W
='cygpath -w'
3069 # Define the identity of the package.
3072 VERSION
=2.0.22-stable
3075 cat >>confdefs.h
<<_ACEOF
3076 #define PACKAGE "$PACKAGE"
3080 cat >>confdefs.h
<<_ACEOF
3081 #define VERSION "$VERSION"
3084 # Some tools Automake needs.
3086 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3089 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3092 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3095 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3098 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3100 # For better backward compatibility. To be removed once Automake 1.9.x
3101 # dies out for good. For more background, see:
3102 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3103 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3104 mkdir_p
='$(MKDIR_P)'
3106 # We need awk for the "check" target. The system "awk" is bad on
3108 # Always define AMTAR for backward compatibility. Yes, it's still used
3109 # in the wild :-( We should find a proper way to deprecate it ...
3112 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3118 ac_config_headers
="$ac_config_headers config.h"
3121 $as_echo "#define NUMERIC_VERSION 0x02001600" >>confdefs.h
3124 if test "$prefix" = "NONE"; then
3128 # Make sure we can run config.sub.
3129 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3130 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3133 $as_echo_n "checking build system type... " >&6; }
3134 if ${ac_cv_build+:} false
; then :
3135 $as_echo_n "(cached) " >&6
3137 ac_build_alias
=$build_alias
3138 test "x$ac_build_alias" = x
&&
3139 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3140 test "x$ac_build_alias" = x
&&
3141 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3142 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3143 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3147 $as_echo "$ac_cv_build" >&6; }
3148 case $ac_cv_build in
3150 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3153 ac_save_IFS
=$IFS; IFS
='-'
3159 # Remember, the first character of IFS is used to create $*,
3160 # except with old shells:
3163 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3167 $as_echo_n "checking host system type... " >&6; }
3168 if ${ac_cv_host+:} false
; then :
3169 $as_echo_n "(cached) " >&6
3171 if test "x$host_alias" = x
; then
3172 ac_cv_host
=$ac_cv_build
3174 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3175 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3180 $as_echo "$ac_cv_host" >&6; }
3183 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3186 ac_save_IFS
=$IFS; IFS
='-'
3192 # Remember, the first character of IFS is used to create $*,
3193 # except with old shells:
3196 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3203 CFLAGS
="$CFLAGS -D_OSF_SOURCE"
3208 ac_cpp
='$CPP $CPPFLAGS'
3209 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3212 if test -n "$ac_tool_prefix"; then
3213 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3214 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 $as_echo_n "checking for $ac_word... " >&6; }
3217 if ${ac_cv_prog_CC+:} false
; then :
3218 $as_echo_n "(cached) " >&6
3220 if test -n "$CC"; then
3221 ac_cv_prog_CC
="$CC" # Let the user override the test.
3223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3227 test -z "$as_dir" && as_dir
=.
3228 for ac_exec_ext
in '' $ac_executable_extensions; do
3229 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3230 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 if test -n "$CC"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243 $as_echo "$CC" >&6; }
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3251 if test -z "$ac_cv_prog_CC"; then
3253 # Extract the first word of "gcc", so it can be a program name with args.
3254 set dummy gcc
; ac_word
=$2
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 $as_echo_n "checking for $ac_word... " >&6; }
3257 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3258 $as_echo_n "(cached) " >&6
3260 if test -n "$ac_ct_CC"; then
3261 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3267 test -z "$as_dir" && as_dir
=.
3268 for ac_exec_ext
in '' $ac_executable_extensions; do
3269 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3270 ac_cv_prog_ac_ct_CC
="gcc"
3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3281 if test -n "$ac_ct_CC"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3283 $as_echo "$ac_ct_CC" >&6; }
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3289 if test "x$ac_ct_CC" = x
; then
3292 case $cross_compiling:$ac_tool_warned in
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3296 ac_tool_warned
=yes ;;
3304 if test -z "$CC"; then
3305 if test -n "$ac_tool_prefix"; then
3306 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3307 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if ${ac_cv_prog_CC+:} false
; then :
3311 $as_echo_n "(cached) " >&6
3313 if test -n "$CC"; then
3314 ac_cv_prog_CC
="$CC" # Let the user override the test.
3316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir
=.
3321 for ac_exec_ext
in '' $ac_executable_extensions; do
3322 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 if test -n "$CC"; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3336 $as_echo "$CC" >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3345 if test -z "$CC"; then
3346 # Extract the first word of "cc", so it can be a program name with args.
3347 set dummy cc
; ac_word
=$2
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349 $as_echo_n "checking for $ac_word... " >&6; }
3350 if ${ac_cv_prog_CC+:} false
; then :
3351 $as_echo_n "(cached) " >&6
3353 if test -n "$CC"; then
3354 ac_cv_prog_CC
="$CC" # Let the user override the test.
3357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3361 test -z "$as_dir" && as_dir
=.
3362 for ac_exec_ext
in '' $ac_executable_extensions; do
3363 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3364 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3365 ac_prog_rejected
=yes
3369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 if test $ac_prog_rejected = yes; then
3377 # We found a bogon in the path, so make sure we never use it.
3378 set dummy
$ac_cv_prog_CC
3380 if test $# != 0; then
3381 # We chose a different compiler from the bogus one.
3382 # However, it has the same basename, so the bogon will be chosen
3383 # first if we set CC to just the basename; use the full file name.
3385 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3391 if test -n "$CC"; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3393 $as_echo "$CC" >&6; }
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 $as_echo "no" >&6; }
3401 if test -z "$CC"; then
3402 if test -n "$ac_tool_prefix"; then
3403 for ac_prog
in cl.exe
3405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3406 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408 $as_echo_n "checking for $ac_word... " >&6; }
3409 if ${ac_cv_prog_CC+:} false
; then :
3410 $as_echo_n "(cached) " >&6
3412 if test -n "$CC"; then
3413 ac_cv_prog_CC
="$CC" # Let the user override the test.
3415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3419 test -z "$as_dir" && as_dir
=.
3420 for ac_exec_ext
in '' $ac_executable_extensions; do
3421 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3422 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 if test -n "$CC"; then
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3435 $as_echo "$CC" >&6; }
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438 $as_echo "no" >&6; }
3442 test -n "$CC" && break
3445 if test -z "$CC"; then
3447 for ac_prog
in cl.exe
3449 # Extract the first word of "$ac_prog", so it can be a program name with args.
3450 set dummy
$ac_prog; ac_word
=$2
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452 $as_echo_n "checking for $ac_word... " >&6; }
3453 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3454 $as_echo_n "(cached) " >&6
3456 if test -n "$ac_ct_CC"; then
3457 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3463 test -z "$as_dir" && as_dir
=.
3464 for ac_exec_ext
in '' $ac_executable_extensions; do
3465 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3466 ac_cv_prog_ac_ct_CC
="$ac_prog"
3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3476 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3477 if test -n "$ac_ct_CC"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3479 $as_echo "$ac_ct_CC" >&6; }
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3486 test -n "$ac_ct_CC" && break
3489 if test "x$ac_ct_CC" = x
; then
3492 case $cross_compiling:$ac_tool_warned in
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3496 ac_tool_warned
=yes ;;
3505 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3507 as_fn_error $?
"no acceptable C compiler found in \$PATH
3508 See \`config.log' for more details" "$LINENO" 5; }
3510 # Provide some information about the compiler.
3511 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3514 for ac_option
in --version -v -V -qversion; do
3515 { { ac_try
="$ac_compiler $ac_option >&5"
3517 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521 $as_echo "$ac_try_echo"; } >&5
3522 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3524 if test -s conftest.err; then
3526 ... rest of stderr output deleted ...
3527 10q' conftest.err >conftest.er1
3528 cat conftest.er1 >&5
3530 rm -f conftest.er1 conftest.err
3531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532 test $ac_status = 0; }
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3546 ac_clean_files_save=$ac_clean_files
3547 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3548 # Try to create an executable without -o first, disregard a.out.
3549 # It will help us diagnose broken compilers, and finding out an intuition
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3552 $as_echo_n "checking whether the C compiler works... " >&6; }
3553 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3555 # The possible output files:
3556 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3559 for ac_file in $ac_files
3562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3563 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3568 if { { ac_try="$ac_link_default"
3570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3571 *) ac_try_echo
=$ac_try;;
3573 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575 (eval "$ac_link_default") 2>&5
3577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578 test $ac_status = 0; }; then :
3579 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3580 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3581 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3582 # so that the user can short-circuit this test for compilers unknown to
3584 for ac_file
in $ac_files ''
3586 test -f "$ac_file" ||
continue
3588 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3591 # We found the default executable, but exeext='' is most
3595 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3597 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3599 # We set ac_cv_exeext here because the later test for it is not
3600 # safe: cross compilers may not add the suffix if given an `-o'
3601 # argument, so we may need to know it at that point already.
3602 # Even if this section looks crufty: it has the advantage of
3609 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3614 if test -z "$ac_file"; then :
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3617 $as_echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.
$ac_ext >&5
3620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622 as_fn_error
77 "C compiler cannot create executables
3623 See \`config.log' for more details" "$LINENO" 5; }
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3626 $as_echo "yes" >&6; }
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3629 $as_echo_n "checking for C compiler default output file name... " >&6; }
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3631 $as_echo "$ac_file" >&6; }
3632 ac_exeext
=$ac_cv_exeext
3634 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3635 ac_clean_files
=$ac_clean_files_save
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3637 $as_echo_n "checking for suffix of executables... " >&6; }
3638 if { { ac_try
="$ac_link"
3640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644 $as_echo "$ac_try_echo"; } >&5
3645 (eval "$ac_link") 2>&5
3647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648 test $ac_status = 0; }; then :
3649 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3650 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3651 # work properly (i.e., refer to `conftest.exe'), while it won't with
3653 for ac_file
in conftest.exe conftest conftest.
*; do
3654 test -f "$ac_file" ||
continue
3656 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3657 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3666 See \`config.log' for more details" "$LINENO" 5; }
3668 rm -f conftest conftest
$ac_cv_exeext
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3670 $as_echo "$ac_cv_exeext" >&6; }
3672 rm -f conftest.
$ac_ext
3673 EXEEXT
=$ac_cv_exeext
3675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3681 FILE *f = fopen ("conftest.out", "w");
3682 return ferror (f) || fclose (f) != 0;
3688 ac_clean_files
="$ac_clean_files conftest.out"
3689 # Check that the compiler produces executables we can run. If not, either
3690 # the compiler is broken, or we cross compile.
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3692 $as_echo_n "checking whether we are cross compiling... " >&6; }
3693 if test "$cross_compiling" != yes; then
3694 { { ac_try
="$ac_link"
3696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700 $as_echo "$ac_try_echo"; } >&5
3701 (eval "$ac_link") 2>&5
3703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704 test $ac_status = 0; }
3705 if { ac_try='./conftest$ac_cv_exeext'
3706 { { case "(($ac_try" in
3707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3708 *) ac_try_echo
=$ac_try;;
3710 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3711 $as_echo "$ac_try_echo"; } >&5
3712 (eval "$ac_try") 2>&5
3714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715 test $ac_status = 0; }; }; then
3718 if test "$cross_compiling" = maybe
; then
3721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 as_fn_error $?
"cannot run C compiled programs.
3724 If you meant to cross compile, use \`--host'.
3725 See \`config.log' for more details" "$LINENO" 5; }
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3730 $as_echo "$cross_compiling" >&6; }
3732 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3733 ac_clean_files
=$ac_clean_files_save
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3735 $as_echo_n "checking for suffix of object files... " >&6; }
3736 if ${ac_cv_objext+:} false
; then :
3737 $as_echo_n "(cached) " >&6
3739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3750 rm -f conftest.o conftest.obj
3751 if { { ac_try
="$ac_compile"
3753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3757 $as_echo "$ac_try_echo"; } >&5
3758 (eval "$ac_compile") 2>&5
3760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761 test $ac_status = 0; }; then :
3762 for ac_file in conftest.o conftest.obj conftest.*; do
3763 test -f "$ac_file" || continue;
3765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3766 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3771 $as_echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3776 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3777 See \
`config.log' for more details" "$LINENO" 5; }
3779 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3782 $as_echo "$ac_cv_objext" >&6; }
3783 OBJEXT=$ac_cv_objext
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3786 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3787 if ${ac_cv_c_compiler_gnu+:} false; then :
3788 $as_echo_n "(cached) " >&6
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3804 if ac_fn_c_try_compile "$LINENO"; then :
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3814 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3815 if test $ac_compiler_gnu = yes; then
3820 ac_test_CFLAGS=${CFLAGS+set}
3821 ac_save_CFLAGS=$CFLAGS
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3823 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3824 if ${ac_cv_prog_cc_g+:} false; then :
3825 $as_echo_n "(cached) " >&6
3827 ac_save_c_werror_flag=$ac_c_werror_flag
3828 ac_c_werror_flag=yes
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3842 if ac_fn_c_try_compile "$LINENO"; then :
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3857 if ac_fn_c_try_compile "$LINENO"; then :
3860 ac_c_werror_flag=$ac_save_c_werror_flag
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3873 if ac_fn_c_try_compile "$LINENO"; then :
3876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881 ac_c_werror_flag=$ac_save_c_werror_flag
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3884 $as_echo "$ac_cv_prog_cc_g" >&6; }
3885 if test "$ac_test_CFLAGS" = set; then
3886 CFLAGS=$ac_save_CFLAGS
3887 elif test $ac_cv_prog_cc_g = yes; then
3888 if test "$GCC" = yes; then
3894 if test "$GCC" = yes; then
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3901 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3902 if ${ac_cv_prog_cc_c89+:} false; then :
3903 $as_echo_n "(cached) " >&6
3905 ac_cv_prog_cc_c89=no
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3912 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3913 struct buf { int x; };
3914 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3915 static char *e (p, i)
3921 static char *f (char * (*g) (char **, int), char **p, ...)
3926 s = g (p, va_arg (v,int));
3931 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3932 function prototypes and stuff, but not '\xHH' hex character constants.
3933 These don't provoke an error unfortunately, instead are silently treated
3934 as 'x'. The following induces an error, until -std is added to get
3935 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3936 array size at least. It's necessary to write '\x00'==0 to get something
3937 that's true only with -std. */
3938 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3940 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3941 inside strings and character constants. */
3943 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3945 int test (int i, double x);
3946 struct s1 {int (*f) (int a);};
3947 struct s2 {int (*f) (double a);};
3948 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3954 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3959 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3960 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3962 CC="$ac_save_CC $ac_arg"
3963 if ac_fn_c_try_compile "$LINENO"; then :
3964 ac_cv_prog_cc_c89=$ac_arg
3966 rm -f core conftest.err conftest.$ac_objext
3967 test "x$ac_cv_prog_cc_c89" != "xno" && break
3969 rm -f conftest.$ac_ext
3974 case "x$ac_cv_prog_cc_c89" in
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3977 $as_echo "none needed" >&6; } ;;
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3980 $as_echo "unsupported" >&6; } ;;
3982 CC="$CC $ac_cv_prog_cc_c89"
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3984 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3986 if test "x$ac_cv_prog_cc_c89" != xno; then :
3991 ac_cpp='$CPP $CPPFLAGS'
3992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995 DEPDIR="${am__leading_dot}deps"
3997 ac_config_commands="$ac_config_commands depfiles"
4000 am_make=${MAKE-make}
4001 cat > confinc << 'END'
4003 @echo this is the am__doit target
4006 # If we don't find an include directive, just comment out the code.
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4008 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4012 # First try GNU make style include.
4013 echo "include confinc" > confmf
4014 # Ignore all kinds of additional output from 'make'.
4015 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4016 *the\ am__doit\ target*)
4022 # Now try BSD make style include.
4023 if test "$am__include" = "#"; then
4024 echo '.include "confinc"' > confmf
4025 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4026 *the\ am__doit\ target*)
4027 am__include=.include
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4036 $as_echo "$_am_result" >&6; }
4037 rm -f confinc confmf
4039 # Check whether --enable-dependency-tracking was given.
4040 if test "${enable_dependency_tracking+set}" = set; then :
4041 enableval=$enable_dependency_tracking;
4044 if test "x$enable_dependency_tracking" != xno; then
4045 am_depcomp="$ac_aux_dir/depcomp"
4049 if test "x$enable_dependency_tracking" != xno; then
4059 depcc="$CC" am_compiler_list=
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4062 $as_echo_n "checking dependency style of $depcc... " >&6; }
4063 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4064 $as_echo_n "(cached) " >&6
4066 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4067 # We make a subdir and do the tests there. Otherwise we can end up
4068 # making bogus files that we don't know about and never remove. For
4069 # instance it was reported that on HP-UX the gcc test will end up
4070 # making a dummy file named 'D' -- because '-MD' means "put the output
4074 # Copy depcomp to subdir because otherwise we won't find it if we're
4075 # using a relative directory.
4076 cp "$am_depcomp" conftest.dir
4078 # We will build objects and dependencies in a subdirectory because
4079 # it helps to detect inapplicable dependency modes. For instance
4080 # both Tru64's cc and ICC support -MD to output dependencies as a
4081 # side effect of compilation, but ICC will put the dependencies in
4082 # the current directory while Tru64 will put them in the object
4086 am_cv_CC_dependencies_compiler_type=none
4087 if test "$am_compiler_list" = ""; then
4088 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4091 case " $depcc " in #(
4092 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4095 for depmode in $am_compiler_list; do
4096 # Setup a source with many dependencies, because some compilers
4097 # like to wrap large dependency lists on column 80 (with \), and
4098 # we should not choose a depcomp mode which is confused by this.
4100 # We need to recreate these files for each test, as the compiler may
4101 # overwrite some of them when testing with obscure command lines.
4102 # This happens at least with the AIX C compiler.
4104 for i in 1 2 3 4 5 6; do
4105 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4106 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4107 # Solaris 10 /bin/sh.
4108 echo '/* dummy */' > sub/conftst$i.h
4110 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4112 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4113 # mode. It turns out that the SunPro C++ compiler does not properly
4114 # handle '-M -o', and we need to detect this. Also, some Intel
4115 # versions had trouble with output in subdirs.
4116 am__obj=sub/conftest.${OBJEXT-o}
4117 am__minus_obj="-o $am__obj"
4120 # This depmode causes a compiler race in universal mode.
4121 test "$am__universal" = false || continue
4124 # After this tag, mechanisms are not by side-effect, so they'll
4125 # only be used when explicitly requested.
4126 if test "x$enable_dependency_tracking" = xyes; then
4132 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4133 # This compiler won't grok '-c -o', but also, the minuso test has
4134 # not run yet. These depmodes are late enough in the game, and
4135 # so weak that their functioning should not be impacted.
4136 am__obj=conftest.${OBJEXT-o}
4141 if depmode=$depmode \
4142 source=sub/conftest.c object=$am__obj \
4143 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4144 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4145 >/dev/null 2>conftest.err &&
4146 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4147 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4148 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4149 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4150 # icc doesn't choke on unknown options, it will just issue warnings
4151 # or remarks (even with -Werror). So we grep stderr for any message
4152 # that says an option was ignored or not supported.
4153 # When given -MP, icc 7.0 and 7.1 complain thusly:
4154 # icc: Command line warning: ignoring option '-M'; no argument required
4155 # The diagnosis changed in icc 8.0:
4156 # icc: Command line remark: option '-MP' not supported
4157 if (grep 'ignoring option' conftest.err ||
4158 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4159 am_cv_CC_dependencies_compiler_type=$depmode
4168 am_cv_CC_dependencies_compiler_type=none
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4173 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4174 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4177 test "x$enable_dependency_tracking" != xno \
4178 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4180 am__fastdepCC_FALSE='#'
4182 am__fastdepCC_TRUE='#'
4183 am__fastdepCC_FALSE=
4187 if test "x$CC" != xcc; then
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4189 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4192 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4194 set dummy $CC; ac_cc=`$as_echo "$2" |
4195 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4196 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4197 $as_echo_n "(cached) " >&6
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4210 # Make sure it works both with $CC and with simple cc.
4211 # We do the test twice because some compilers refuse to overwrite an
4212 # existing .o file with -o, though they will create one.
4213 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4215 if { { case "(($ac_try" in
4216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4217 *) ac_try_echo
=$ac_try;;
4219 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4220 $as_echo "$ac_try_echo"; } >&5
4221 (eval "$ac_try") 2>&5
4223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4224 test $ac_status = 0; } &&
4225 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4230 $as_echo "$ac_try_echo"; } >&5
4231 (eval "$ac_try") 2>&5
4233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4234 test $ac_status = 0; };
4236 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4237 if test "x$CC" != xcc; then
4238 # Test first that cc exists at all.
4239 if { ac_try='cc -c conftest.$ac_ext >&5'
4240 { { case "(($ac_try" in
4241 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4242 *) ac_try_echo
=$ac_try;;
4244 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4245 $as_echo "$ac_try_echo"; } >&5
4246 (eval "$ac_try") 2>&5
4248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4249 test $ac_status = 0; }; }; then
4250 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4252 if { { case "(($ac_try" in
4253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4257 $as_echo "$ac_try_echo"; } >&5
4258 (eval "$ac_try") 2>&5
4260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4261 test $ac_status = 0; } &&
4262 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4264 *) ac_try_echo
=$ac_try;;
4266 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4267 $as_echo "$ac_try_echo"; } >&5
4268 (eval "$ac_try") 2>&5
4270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4271 test $ac_status = 0; };
4276 # cc exists but doesn't like -o.
4277 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4282 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4284 rm -f core conftest
*
4287 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4289 $as_echo "yes" >&6; }
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4294 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4298 # FIXME: we rely on the cache variable name because
4299 # there is no other way.
4301 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4302 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4303 if test "$am_t" != yes; then
4304 # Losing compiler, so override with the script.
4305 # FIXME: It is wrong to rewrite CC.
4306 # But if we don't then we get into trouble of one sort or another.
4307 # A longer-term fix would be to have automake use am__CC in this case,
4308 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4309 CC
="$am_aux_dir/compile $CC"
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4315 $as_echo_n "checking whether ln -s works... " >&6; }
4317 if test "$LN_S" = "ln -s"; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4319 $as_echo "yes" >&6; }
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4322 $as_echo "no, using $LN_S" >&6; }
4325 # AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
4327 # AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4330 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4331 if ${ac_cv_path_SED+:} false
; then :
4332 $as_echo_n "(cached) " >&6
4334 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4335 for ac_i
in 1 2 3 4 5 6 7; do
4336 ac_script
="$ac_script$as_nl$ac_script"
4338 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4339 { ac_script
=; unset ac_script
;}
4340 if test -z "$SED"; then
4341 ac_path_SED_found
=false
4342 # Loop through the user's path and test for each of PROGNAME-LIST
4343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4347 test -z "$as_dir" && as_dir
=.
4348 for ac_prog
in sed gsed
; do
4349 for ac_exec_ext
in '' $ac_executable_extensions; do
4350 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4351 as_fn_executable_p
"$ac_path_SED" ||
continue
4352 # Check for GNU ac_path_SED and select it if it is found.
4353 # Check for GNU $ac_path_SED
4354 case `"$ac_path_SED" --version 2>&1` in
4356 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4359 $as_echo_n 0123456789 >"conftest.in"
4362 cat "conftest.in" "conftest.in" >"conftest.tmp"
4363 mv "conftest.tmp" "conftest.in"
4364 cp "conftest.in" "conftest.nl"
4365 $as_echo '' >> "conftest.nl"
4366 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4367 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4368 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4369 if test $ac_count -gt ${ac_path_SED_max-0}; then
4370 # Best one so far, save it but keep looking for a better one
4371 ac_cv_path_SED
="$ac_path_SED"
4372 ac_path_SED_max
=$ac_count
4374 # 10*(2^10) chars as input seems more than enough
4375 test $ac_count -gt 10 && break
4377 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4380 $ac_path_SED_found && break 3
4385 if test -z "$ac_cv_path_SED"; then
4386 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4394 $as_echo "$ac_cv_path_SED" >&6; }
4395 SED
="$ac_cv_path_SED"
4401 ac_cpp
='$CPP $CPPFLAGS'
4402 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4403 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4404 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4406 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4407 # On Suns, sometimes $CPP names a directory.
4408 if test -n "$CPP" && test -d "$CPP"; then
4411 if test -z "$CPP"; then
4412 if ${ac_cv_prog_CPP+:} false
; then :
4413 $as_echo_n "(cached) " >&6
4415 # Double quotes because CPP needs to be expanded
4416 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4419 for ac_c_preproc_warn_flag
in '' yes
4421 # Use a header file that comes with gcc, so configuring glibc
4422 # with a fresh cross-compiler works.
4423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4424 # <limits.h> exists even on freestanding compilers.
4425 # On the NeXT, cc -E runs the code through the compiler's parser,
4426 # not just through cpp. "Syntax error" is here to catch this case.
4427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4430 # include <limits.h>
4432 # include <assert.h>
4436 if ac_fn_c_try_cpp
"$LINENO"; then :
4439 # Broken: fails on valid input.
4442 rm -f conftest.err conftest.i conftest.
$ac_ext
4444 # OK, works on sane cases. Now check whether nonexistent headers
4445 # can be detected and how.
4446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4448 #include <ac_nonexistent.h>
4450 if ac_fn_c_try_cpp
"$LINENO"; then :
4451 # Broken: success on invalid input.
4454 # Passes both tests.
4458 rm -f conftest.err conftest.i conftest.
$ac_ext
4461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4462 rm -f conftest.i conftest.err conftest.
$ac_ext
4463 if $ac_preproc_ok; then :
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4476 $as_echo "$CPP" >&6; }
4478 for ac_c_preproc_warn_flag
in '' yes
4480 # Use a header file that comes with gcc, so configuring glibc
4481 # with a fresh cross-compiler works.
4482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4483 # <limits.h> exists even on freestanding compilers.
4484 # On the NeXT, cc -E runs the code through the compiler's parser,
4485 # not just through cpp. "Syntax error" is here to catch this case.
4486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4489 # include <limits.h>
4491 # include <assert.h>
4495 if ac_fn_c_try_cpp
"$LINENO"; then :
4498 # Broken: fails on valid input.
4501 rm -f conftest.err conftest.i conftest.
$ac_ext
4503 # OK, works on sane cases. Now check whether nonexistent headers
4504 # can be detected and how.
4505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4507 #include <ac_nonexistent.h>
4509 if ac_fn_c_try_cpp
"$LINENO"; then :
4510 # Broken: success on invalid input.
4513 # Passes both tests.
4517 rm -f conftest.err conftest.i conftest.
$ac_ext
4520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4521 rm -f conftest.i conftest.err conftest.
$ac_ext
4522 if $ac_preproc_ok; then :
4525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4527 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4528 See \`config.log' for more details" "$LINENO" 5; }
4532 ac_cpp
='$CPP $CPPFLAGS'
4533 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4539 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4540 if ${ac_cv_path_GREP+:} false
; then :
4541 $as_echo_n "(cached) " >&6
4543 if test -z "$GREP"; then
4544 ac_path_GREP_found
=false
4545 # Loop through the user's path and test for each of PROGNAME-LIST
4546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4547 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4550 test -z "$as_dir" && as_dir
=.
4551 for ac_prog
in grep ggrep
; do
4552 for ac_exec_ext
in '' $ac_executable_extensions; do
4553 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4554 as_fn_executable_p
"$ac_path_GREP" ||
continue
4555 # Check for GNU ac_path_GREP and select it if it is found.
4556 # Check for GNU $ac_path_GREP
4557 case `"$ac_path_GREP" --version 2>&1` in
4559 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4562 $as_echo_n 0123456789 >"conftest.in"
4565 cat "conftest.in" "conftest.in" >"conftest.tmp"
4566 mv "conftest.tmp" "conftest.in"
4567 cp "conftest.in" "conftest.nl"
4568 $as_echo 'GREP' >> "conftest.nl"
4569 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4570 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4571 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4572 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4573 # Best one so far, save it but keep looking for a better one
4574 ac_cv_path_GREP
="$ac_path_GREP"
4575 ac_path_GREP_max
=$ac_count
4577 # 10*(2^10) chars as input seems more than enough
4578 test $ac_count -gt 10 && break
4580 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4583 $ac_path_GREP_found && break 3
4588 if test -z "$ac_cv_path_GREP"; then
4589 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4592 ac_cv_path_GREP
=$GREP
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4597 $as_echo "$ac_cv_path_GREP" >&6; }
4598 GREP
="$ac_cv_path_GREP"
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4602 $as_echo_n "checking for egrep... " >&6; }
4603 if ${ac_cv_path_EGREP+:} false
; then :
4604 $as_echo_n "(cached) " >&6
4606 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4607 then ac_cv_path_EGREP
="$GREP -E"
4609 if test -z "$EGREP"; then
4610 ac_path_EGREP_found
=false
4611 # Loop through the user's path and test for each of PROGNAME-LIST
4612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4613 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4616 test -z "$as_dir" && as_dir
=.
4617 for ac_prog
in egrep; do
4618 for ac_exec_ext
in '' $ac_executable_extensions; do
4619 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4620 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4621 # Check for GNU ac_path_EGREP and select it if it is found.
4622 # Check for GNU $ac_path_EGREP
4623 case `"$ac_path_EGREP" --version 2>&1` in
4625 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4628 $as_echo_n 0123456789 >"conftest.in"
4631 cat "conftest.in" "conftest.in" >"conftest.tmp"
4632 mv "conftest.tmp" "conftest.in"
4633 cp "conftest.in" "conftest.nl"
4634 $as_echo 'EGREP' >> "conftest.nl"
4635 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4636 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4637 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4638 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4639 # Best one so far, save it but keep looking for a better one
4640 ac_cv_path_EGREP
="$ac_path_EGREP"
4641 ac_path_EGREP_max
=$ac_count
4643 # 10*(2^10) chars as input seems more than enough
4644 test $ac_count -gt 10 && break
4646 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4649 $ac_path_EGREP_found && break 3
4654 if test -z "$ac_cv_path_EGREP"; then
4655 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4658 ac_cv_path_EGREP
=$EGREP
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4664 $as_echo "$ac_cv_path_EGREP" >&6; }
4665 EGREP
="$ac_cv_path_EGREP"
4668 if test $ac_cv_c_compiler_gnu = yes; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4670 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4671 if ${ac_cv_prog_gcc_traditional+:} false
; then :
4672 $as_echo_n "(cached) " >&6
4674 ac_pattern
="Autoconf.*'x'"
4675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4681 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
4682 ac_cv_prog_gcc_traditional
=yes
4684 ac_cv_prog_gcc_traditional
=no
4689 if test $ac_cv_prog_gcc_traditional = no
; then
4690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4696 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
4697 ac_cv_prog_gcc_traditional
=yes
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4704 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4705 if test $ac_cv_prog_gcc_traditional = yes; then
4706 CC
="$CC -traditional"
4711 # We need to test for at least gcc 2.95 here, because older versions don't
4712 # have -fno-strict-aliasing
4713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4714 /* end confdefs.h. */
4720 #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
4727 if ac_fn_c_try_compile
"$LINENO"; then :
4732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4734 if test "$GCC" = "yes" ; then
4735 # Enable many gcc warnings by default...
4736 CFLAGS
="$CFLAGS -Wall"
4737 # And disable the strict-aliasing optimization, since it breaks
4738 # our sockaddr-handling code in strange ways.
4739 if test x
$have_gcc295 = xyes
; then
4740 CFLAGS
="$CFLAGS -fno-strict-aliasing"
4744 # OS X Lion started deprecating the system openssl. Let's just disable
4745 # all deprecation warnings on OS X.
4749 CFLAGS
="$CFLAGS -Wno-deprecated-declarations"
4753 # Check whether --enable-gcc-warnings was given.
4754 if test "${enable_gcc_warnings+set}" = set; then :
4755 enableval
=$enable_gcc_warnings;
4758 # Check whether --enable-thread-support was given.
4759 if test "${enable_thread_support+set}" = set; then :
4760 enableval
=$enable_thread_support;
4762 enable_thread_support
=yes
4765 # Check whether --enable-malloc-replacement was given.
4766 if test "${enable_malloc_replacement+set}" = set; then :
4767 enableval
=$enable_malloc_replacement;
4769 enable_malloc_replacement
=yes
4772 # Check whether --enable-openssl was given.
4773 if test "${enable_openssl+set}" = set; then :
4774 enableval
=$enable_openssl;
4779 # Check whether --enable-debug-mode was given.
4780 if test "${enable_debug_mode+set}" = set; then :
4781 enableval
=$enable_debug_mode;
4783 enable_debug_mode
=yes
4786 # Check whether --enable-libevent-install was given.
4787 if test "${enable_libevent_install+set}" = set; then :
4788 enableval
=$enable_libevent_install;
4790 enable_libevent_install
=yes
4793 # Check whether --enable-libevent-regress was given.
4794 if test "${enable_libevent_regress+set}" = set; then :
4795 enableval
=$enable_libevent_regress;
4797 enable_libevent_regress
=yes
4800 # Check whether --enable-function-sections was given.
4801 if test "${enable_function_sections+set}" = set; then :
4802 enableval
=$enable_function_sections;
4804 enable_function_sections
=no
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4812 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4817 macro_version
='2.4.2'
4818 macro_revision
='1.3337'
4832 ltmain
="$ac_aux_dir/ltmain.sh"
4834 # Backslashify metacharacters that are still active within
4835 # double-quoted strings.
4836 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
4838 # Same as above, but do not quote variable references.
4839 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
4841 # Sed substitution to delay expansion of an escaped shell variable in a
4842 # double_quote_subst'ed string.
4843 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
4845 # Sed substitution to delay expansion of an escaped single quote.
4846 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
4848 # Sed substitution to avoid accidental globbing in evaled expressions
4849 no_glob_subst
='s/\*/\\\*/g'
4851 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4852 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4853 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4856 $as_echo_n "checking how to print strings... " >&6; }
4857 # Test print first, because it will be a builtin if present.
4858 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4859 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4861 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4864 # Use this function as a fallback that always works.
4865 func_fallback_echo ()
4867 eval 'cat <<_LTECHO_EOF
4871 ECHO='func_fallback_echo
'
4874 # func_echo_all arg...
4875 # Invoke $ECHO with all args, space-separated.
4882 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4883 $as_echo "printf" >&6; } ;;
4884 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4885 $as_echo "print -r" >&6; } ;;
4886 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4887 $as_echo "cat" >&6; } ;;
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4904 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4905 if ${ac_cv_path_SED+:} false; then :
4906 $as_echo_n "(cached) " >&6
4908 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4909 for ac_i in 1 2 3 4 5 6 7; do
4910 ac_script="$ac_script$as_nl$ac_script"
4912 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4913 { ac_script=; unset ac_script;}
4914 if test -z "$SED"; then
4915 ac_path_SED_found=false
4916 # Loop through the user's path and
test for each of PROGNAME-LIST
4917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4921 test -z "$as_dir" && as_dir
=.
4922 for ac_prog
in sed gsed
; do
4923 for ac_exec_ext
in '' $ac_executable_extensions; do
4924 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4925 as_fn_executable_p
"$ac_path_SED" ||
continue
4926 # Check for GNU ac_path_SED and select it if it is found.
4927 # Check for GNU $ac_path_SED
4928 case `"$ac_path_SED" --version 2>&1` in
4930 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4933 $as_echo_n 0123456789 >"conftest.in"
4936 cat "conftest.in" "conftest.in" >"conftest.tmp"
4937 mv "conftest.tmp" "conftest.in"
4938 cp "conftest.in" "conftest.nl"
4939 $as_echo '' >> "conftest.nl"
4940 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4941 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4942 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4943 if test $ac_count -gt ${ac_path_SED_max-0}; then
4944 # Best one so far, save it but keep looking for a better one
4945 ac_cv_path_SED
="$ac_path_SED"
4946 ac_path_SED_max
=$ac_count
4948 # 10*(2^10) chars as input seems more than enough
4949 test $ac_count -gt 10 && break
4951 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4954 $ac_path_SED_found && break 3
4959 if test -z "$ac_cv_path_SED"; then
4960 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4968 $as_echo "$ac_cv_path_SED" >&6; }
4969 SED
="$ac_cv_path_SED"
4972 test -z "$SED" && SED
=sed
4973 Xsed
="$SED -e 1s/^X//"
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4986 $as_echo_n "checking for fgrep... " >&6; }
4987 if ${ac_cv_path_FGREP+:} false
; then :
4988 $as_echo_n "(cached) " >&6
4990 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4991 then ac_cv_path_FGREP
="$GREP -F"
4993 if test -z "$FGREP"; then
4994 ac_path_FGREP_found
=false
4995 # Loop through the user's path and test for each of PROGNAME-LIST
4996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4997 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5000 test -z "$as_dir" && as_dir
=.
5001 for ac_prog
in fgrep
; do
5002 for ac_exec_ext
in '' $ac_executable_extensions; do
5003 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5004 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5005 # Check for GNU ac_path_FGREP and select it if it is found.
5006 # Check for GNU $ac_path_FGREP
5007 case `"$ac_path_FGREP" --version 2>&1` in
5009 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5012 $as_echo_n 0123456789 >"conftest.in"
5015 cat "conftest.in" "conftest.in" >"conftest.tmp"
5016 mv "conftest.tmp" "conftest.in"
5017 cp "conftest.in" "conftest.nl"
5018 $as_echo 'FGREP' >> "conftest.nl"
5019 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5020 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5021 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5022 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5023 # Best one so far, save it but keep looking for a better one
5024 ac_cv_path_FGREP
="$ac_path_FGREP"
5025 ac_path_FGREP_max
=$ac_count
5027 # 10*(2^10) chars as input seems more than enough
5028 test $ac_count -gt 10 && break
5030 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5033 $ac_path_FGREP_found && break 3
5038 if test -z "$ac_cv_path_FGREP"; then
5039 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5042 ac_cv_path_FGREP
=$FGREP
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5048 $as_echo "$ac_cv_path_FGREP" >&6; }
5049 FGREP
="$ac_cv_path_FGREP"
5052 test -z "$GREP" && GREP
=grep
5072 # Check whether --with-gnu-ld was given.
5073 if test "${with_gnu_ld+set}" = set; then :
5074 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5080 if test "$GCC" = yes; then
5081 # Check if gcc -print-prog-name=ld gives a path.
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5083 $as_echo_n "checking for ld used by $CC... " >&6; }
5086 # gcc leaves a trailing carriage return which upsets mingw
5087 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5089 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5092 # Accept absolute paths.
5094 re_direlt
='/[^/][^/]*/\.\./'
5095 # Canonicalize the pathname of ld
5096 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5097 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5098 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5100 test -z "$LD" && LD
="$ac_prog"
5103 # If it fails, then pretend we aren't using GCC.
5107 # If it is relative, then search for the first ld in PATH.
5111 elif test "$with_gnu_ld" = yes; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5113 $as_echo_n "checking for GNU ld... " >&6; }
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5116 $as_echo_n "checking for non-GNU ld... " >&6; }
5118 if ${lt_cv_path_LD+:} false
; then :
5119 $as_echo_n "(cached) " >&6
5121 if test -z "$LD"; then
5122 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5123 for ac_dir
in $PATH; do
5125 test -z "$ac_dir" && ac_dir
=.
5126 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5127 lt_cv_path_LD
="$ac_dir/$ac_prog"
5128 # Check to see if the program is GNU ld. I'd rather use --version,
5129 # but apparently some variants of GNU ld only accept -v.
5130 # Break only if it was the GNU/non-GNU ld that we prefer.
5131 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5132 *GNU
* |
*'with BFD'*)
5133 test "$with_gnu_ld" != no
&& break
5136 test "$with_gnu_ld" != yes && break
5143 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5148 if test -n "$LD"; then
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5150 $as_echo "$LD" >&6; }
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 $as_echo "no" >&6; }
5155 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5157 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5158 if ${lt_cv_prog_gnu_ld+:} false
; then :
5159 $as_echo_n "(cached) " >&6
5161 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5162 case `$LD -v 2>&1 </dev/null` in
5163 *GNU
* |
*'with BFD'*)
5164 lt_cv_prog_gnu_ld
=yes
5167 lt_cv_prog_gnu_ld
=no
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5172 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5173 with_gnu_ld
=$lt_cv_prog_gnu_ld
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5184 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5185 if ${lt_cv_path_NM+:} false
; then :
5186 $as_echo_n "(cached) " >&6
5188 if test -n "$NM"; then
5189 # Let the user override the test.
5192 lt_nm_to_check
="${ac_tool_prefix}nm"
5193 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5194 lt_nm_to_check
="$lt_nm_to_check nm"
5196 for lt_tmp_nm
in $lt_nm_to_check; do
5197 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5198 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5200 test -z "$ac_dir" && ac_dir
=.
5201 tmp_nm
="$ac_dir/$lt_tmp_nm"
5202 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
5203 # Check to see if the nm accepts a BSD-compat flag.
5204 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5205 # nm: unknown option "B" ignored
5206 # Tru64's nm complains that /dev/null is an invalid object file
5207 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5208 */dev
/null
* |
*'Invalid file or object type'*)
5209 lt_cv_path_NM
="$tmp_nm -B"
5213 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5215 lt_cv_path_NM
="$tmp_nm -p"
5219 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5220 continue # so that we can try to find one that supports BSD flags
5229 : ${lt_cv_path_NM=no}
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5233 $as_echo "$lt_cv_path_NM" >&6; }
5234 if test "$lt_cv_path_NM" != "no"; then
5237 # Didn't find any BSD compatible name lister, look for dumpbin.
5238 if test -n "$DUMPBIN"; then :
5239 # Let the user override the test.
5241 if test -n "$ac_tool_prefix"; then
5242 for ac_prog
in dumpbin
"link -dump"
5244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5245 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if ${ac_cv_prog_DUMPBIN+:} false
; then :
5249 $as_echo_n "(cached) " >&6
5251 if test -n "$DUMPBIN"; then
5252 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5258 test -z "$as_dir" && as_dir
=.
5259 for ac_exec_ext
in '' $ac_executable_extensions; do
5260 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5261 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 DUMPBIN
=$ac_cv_prog_DUMPBIN
5272 if test -n "$DUMPBIN"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5274 $as_echo "$DUMPBIN" >&6; }
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5281 test -n "$DUMPBIN" && break
5284 if test -z "$DUMPBIN"; then
5285 ac_ct_DUMPBIN
=$DUMPBIN
5286 for ac_prog
in dumpbin
"link -dump"
5288 # Extract the first word of "$ac_prog", so it can be a program name with args.
5289 set dummy
$ac_prog; ac_word
=$2
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 $as_echo_n "checking for $ac_word... " >&6; }
5292 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
5293 $as_echo_n "(cached) " >&6
5295 if test -n "$ac_ct_DUMPBIN"; then
5296 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5302 test -z "$as_dir" && as_dir
=.
5303 for ac_exec_ext
in '' $ac_executable_extensions; do
5304 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5305 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5316 if test -n "$ac_ct_DUMPBIN"; then
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5318 $as_echo "$ac_ct_DUMPBIN" >&6; }
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 $as_echo "no" >&6; }
5325 test -n "$ac_ct_DUMPBIN" && break
5328 if test "x$ac_ct_DUMPBIN" = x
; then
5331 case $cross_compiling:$ac_tool_warned in
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5335 ac_tool_warned
=yes ;;
5337 DUMPBIN
=$ac_ct_DUMPBIN
5341 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5343 DUMPBIN
="$DUMPBIN -symbols"
5351 if test "$DUMPBIN" != ":"; then
5355 test -z "$NM" && NM
=nm
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5363 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5364 if ${lt_cv_nm_interface+:} false
; then :
5365 $as_echo_n "(cached) " >&6
5367 lt_cv_nm_interface
="BSD nm"
5368 echo "int some_variable = 0;" > conftest.
$ac_ext
5369 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5370 (eval "$ac_compile" 2>conftest.err
)
5371 cat conftest.err
>&5
5372 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5373 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5374 cat conftest.err
>&5
5375 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5376 cat conftest.out
>&5
5377 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5378 lt_cv_nm_interface
="MS dumpbin"
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5383 $as_echo "$lt_cv_nm_interface" >&6; }
5385 # find the maximum length of command line arguments
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5387 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5388 if ${lt_cv_sys_max_cmd_len+:} false
; then :
5389 $as_echo_n "(cached) " >&6
5396 # On DJGPP, this test can blow up pretty badly due to problems in libc
5397 # (any single argument exceeding 2000 bytes causes a buffer overrun
5398 # during glob expansion). Even if it were fixed, the result of this
5399 # check would be larger than it should be.
5400 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5404 # Under GNU Hurd, this test is not required because there is
5405 # no limit to the length of command line arguments.
5406 # Libtool will interpret -1 as no limit whatsoever
5407 lt_cv_sys_max_cmd_len
=-1;
5410 cygwin
* | mingw
* | cegcc
*)
5411 # On Win9x/ME, this test blows up -- it succeeds, but takes
5412 # about 5 minutes as the teststring grows exponentially.
5413 # Worse, since 9x/ME are not pre-emptively multitasking,
5414 # you end up with a "frozen" computer, even though with patience
5415 # the test eventually succeeds (with a max line length of 256k).
5416 # Instead, let's just punt: use the minimum linelength reported by
5417 # all of the supported platforms: 8192 (on NT/2K/XP).
5418 lt_cv_sys_max_cmd_len
=8192;
5422 # On MiNT this can take a long time and run out of memory.
5423 lt_cv_sys_max_cmd_len
=8192;
5427 # On AmigaOS with pdksh, this test takes hours, literally.
5428 # So we just punt and use a minimum line length of 8192.
5429 lt_cv_sys_max_cmd_len
=8192;
5432 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5433 # This has been around since 386BSD, at least. Likely further.
5434 if test -x /sbin
/sysctl
; then
5435 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5436 elif test -x /usr
/sbin
/sysctl
; then
5437 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5439 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5441 # And add a safety zone
5442 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5443 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5447 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5448 lt_cv_sys_max_cmd_len
=196608
5452 # The test takes a long time on OS/2.
5453 lt_cv_sys_max_cmd_len
=8192
5457 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5458 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5459 # nice to cause kernel panics so lets avoid the loop below.
5460 # First set a reasonable default.
5461 lt_cv_sys_max_cmd_len
=16384
5463 if test -x /sbin
/sysconfig
; then
5464 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5465 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5470 lt_cv_sys_max_cmd_len
=102400
5472 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5473 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5474 if test -n "$kargmax"; then
5475 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5477 lt_cv_sys_max_cmd_len
=32768
5481 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5482 if test -n "$lt_cv_sys_max_cmd_len"; then
5483 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5484 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5486 # Make teststring a little bigger before we do anything with it.
5487 # a 1K string should be a reasonable start.
5488 for i
in 1 2 3 4 5 6 7 8 ; do
5489 teststring
=$teststring$teststring
5491 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5492 # If test is not a shell built-in, we'll probably end up computing a
5493 # maximum length that is only half of the actual maximum length, but
5495 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5496 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
5497 test $i != 17 # 1/2 MB should be enough
5500 teststring
=$teststring$teststring
5502 # Only check the string length outside the loop.
5503 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
5505 # Add a significant safety factor because C++ compilers can tack on
5506 # massive amounts of additional arguments before passing them to the
5507 # linker. It appears as though 1/2 is a usable value.
5508 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5515 if test -n $lt_cv_sys_max_cmd_len ; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5517 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5520 $as_echo "none" >&6; }
5522 max_cmd_len
=$lt_cv_sys_max_cmd_len
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5534 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5535 # Try some XSI features
5538 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5540 && eval 'test $(( 1 + 1 )) -eq 2 \
5541 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
5544 $as_echo "$xsi_shell" >&6; }
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
5548 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5550 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5552 && lt_shell_append=yes
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
5554 $as_echo "$lt_shell_append" >&6; }
5557 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5567 # test EBCDIC or ASCII
5568 case `echo X|tr X '\101'` in
5569 A) # ASCII based system
5570 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5571 lt_SP2NL='tr \040 \012'
5572 lt_NL2SP='tr \015\012 \040\040'
5574 *) # EBCDIC based system
5575 lt_SP2NL='tr \100 \n'
5576 lt_NL2SP='tr \r\n \100\100'
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to
$host format
" >&5
5589 $as_echo_n "checking how to convert
$build file names to
$host format...
" >&6; }
5590 if ${lt_cv_to_host_file_cmd+:} false; then :
5591 $as_echo_n "(cached
) " >&6
5596 *-*-mingw* ) # actually msys
5597 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5600 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5602 * ) # otherwise, assume *nix
5603 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5609 *-*-mingw* ) # actually msys
5610 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5613 lt_cv_to_host_file_cmd=func_convert_file_noop
5615 * ) # otherwise, assume *nix
5616 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5620 * ) # unhandled hosts (and "normal
" native builds)
5621 lt_cv_to_host_file_cmd=func_convert_file_noop
5627 to_host_file_cmd=$lt_cv_to_host_file_cmd
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_host_file_cmd" >&5
5629 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to toolchain format
" >&5
5636 $as_echo_n "checking how to convert
$build file names to toolchain format...
" >&6; }
5637 if ${lt_cv_to_tool_file_cmd+:} false; then :
5638 $as_echo_n "(cached
) " >&6
5640 #assume ordinary cross tools, or native build.
5641 lt_cv_to_tool_file_cmd=func_convert_file_noop
5645 *-*-mingw* ) # actually msys
5646 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5654 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_tool_file_cmd" >&5
5656 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5663 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5664 if ${lt_cv_ld_reload_flag+:} false; then :
5665 $as_echo_n "(cached
) " >&6
5667 lt_cv_ld_reload_flag='-r'
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5670 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5671 reload_flag=$lt_cv_ld_reload_flag
5672 case $reload_flag in
5674 *) reload_flag=" $reload_flag" ;;
5676 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5678 cygwin* | mingw* | pw32* | cegcc*)
5679 if test "$GCC" != yes; then
5684 if test "$GCC" = yes; then
5685 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5687 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5700 if test -n "$ac_tool_prefix"; then
5701 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5702 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5704 $as_echo_n "checking
for $ac_word...
" >&6; }
5705 if ${ac_cv_prog_OBJDUMP+:} false; then :
5706 $as_echo_n "(cached
) " >&6
5708 if test -n "$OBJDUMP"; then
5709 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5728 OBJDUMP=$ac_cv_prog_OBJDUMP
5729 if test -n "$OBJDUMP"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5731 $as_echo "$OBJDUMP" >&6; }
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5734 $as_echo "no
" >&6; }
5739 if test -z "$ac_cv_prog_OBJDUMP"; then
5740 ac_ct_OBJDUMP=$OBJDUMP
5741 # Extract the first word of "objdump
", so it can be a program name with args.
5742 set dummy objdump; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5744 $as_echo_n "checking
for $ac_word...
" >&6; }
5745 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5746 $as_echo_n "(cached
) " >&6
5748 if test -n "$ac_ct_OBJDUMP"; then
5749 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5759 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5768 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5769 if test -n "$ac_ct_OBJDUMP"; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5771 $as_echo "$ac_ct_OBJDUMP" >&6; }
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5774 $as_echo "no
" >&6; }
5777 if test "x
$ac_ct_OBJDUMP" = x; then
5780 case $cross_compiling:$ac_tool_warned in
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5783 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5784 ac_tool_warned=yes ;;
5786 OBJDUMP=$ac_ct_OBJDUMP
5789 OBJDUMP="$ac_cv_prog_OBJDUMP"
5792 test -z "$OBJDUMP" && OBJDUMP=objdump
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5803 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5804 if ${lt_cv_deplibs_check_method+:} false; then :
5805 $as_echo_n "(cached
) " >&6
5807 lt_cv_file_magic_cmd='$MAGIC_CMD'
5808 lt_cv_file_magic_test_file=
5809 lt_cv_deplibs_check_method='unknown'
5810 # Need to set the preceding variable on all platforms that support
5811 # interlibrary dependencies.
5812 # 'none' -- dependencies not supported.
5813 # `unknown' -- same as none, but documents that we really don't know.
5814 # 'pass_all' -- all dependencies passed with no checks.
5815 # 'test_compile' -- check by making test program.
5816 # 'file_magic [[regex]]' -- check by looking for files in library path
5817 # which responds to the $file_magic_cmd with a given extended regex.
5818 # If you have `file' or equivalent on your system and you're not sure
5819 # whether `pass_all' will *always* work, you probably want this one.
5823 lt_cv_deplibs_check_method=pass_all
5827 lt_cv_deplibs_check_method=pass_all
5831 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5832 lt_cv_file_magic_cmd='/usr/bin/file -L'
5833 lt_cv_file_magic_test_file=/shlib/libc.so
5837 # func_win32_libid is a shell function defined in ltmain.sh
5838 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5839 lt_cv_file_magic_cmd='func_win32_libid'
5843 # Base MSYS/MinGW do not provide the 'file' command needed by
5844 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5845 # unless we find 'file', for example because we are cross-compiling.
5846 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5847 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
5848 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5849 lt_cv_file_magic_cmd='func_win32_libid'
5851 # Keep this pattern in sync with the one in func_win32_libid.
5852 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5853 lt_cv_file_magic_cmd='$OBJDUMP -f'
5858 # use the weaker test based on 'objdump'. See mingw*.
5859 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5860 lt_cv_file_magic_cmd='$OBJDUMP -f'
5863 darwin* | rhapsody*)
5864 lt_cv_deplibs_check_method=pass_all
5867 freebsd* | dragonfly*)
5868 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5871 # Not sure whether the presence of OpenBSD here was a mistake.
5872 # Let's accept both of them until this is cleared up.
5873 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5874 lt_cv_file_magic_cmd=/usr/bin/file
5875 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5879 lt_cv_deplibs_check_method=pass_all
5884 lt_cv_deplibs_check_method=pass_all
5888 lt_cv_deplibs_check_method=pass_all
5891 hpux10.20* | hpux11*)
5892 lt_cv_file_magic_cmd=/usr/bin/file
5895 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5896 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5899 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]'
5900 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5903 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5904 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5910 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5911 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5914 irix5* | irix6* | nonstopux*)
5916 *-32|*"-32 ") libmagic=32-bit;;
5917 *-n32|*"-n32 ") libmagic=N32;;
5918 *-64|*"-64 ") libmagic=64-bit;;
5919 *) libmagic=never-match;;
5921 lt_cv_deplibs_check_method=pass_all
5924 # This must be glibc/ELF.
5925 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5926 lt_cv_deplibs_check_method=pass_all
5930 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5931 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5933 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5938 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5939 lt_cv_file_magic_cmd=/usr/bin/file
5940 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5944 lt_cv_deplibs_check_method=pass_all
5948 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5949 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5951 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5955 osf3* | osf4* | osf5*)
5956 lt_cv_deplibs_check_method=pass_all
5960 lt_cv_deplibs_check_method=pass_all
5964 lt_cv_deplibs_check_method=pass_all
5967 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5968 lt_cv_deplibs_check_method=pass_all
5972 case $host_vendor in
5974 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]'
5975 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5978 lt_cv_deplibs_check_method=pass_all
5981 lt_cv_file_magic_cmd='/bin/file'
5982 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5985 lt_cv_file_magic_cmd='/bin/file'
5986 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5987 lt_cv_file_magic_test_file=/lib/libc.so
5990 lt_cv_deplibs_check_method=pass_all
5993 lt_cv_deplibs_check_method=pass_all
5999 lt_cv_deplibs_check_method=pass_all
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6005 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6009 if test "$build" = "$host"; then
6012 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6015 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s
/\
(..\
)/s\
/[\
1]\
/[\
1]\
/g
;/g
"`
6021 file_magic_cmd=$lt_cv_file_magic_cmd
6022 deplibs_check_method=$lt_cv_deplibs_check_method
6023 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6046 if test -n "$ac_tool_prefix"; then
6047 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
6048 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6050 $as_echo_n "checking
for $ac_word...
" >&6; }
6051 if ${ac_cv_prog_DLLTOOL+:} false; then :
6052 $as_echo_n "(cached
) " >&6
6054 if test -n "$DLLTOOL"; then
6055 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6064 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
6065 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6074 DLLTOOL=$ac_cv_prog_DLLTOOL
6075 if test -n "$DLLTOOL"; then
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
6077 $as_echo "$DLLTOOL" >&6; }
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6080 $as_echo "no
" >&6; }
6085 if test -z "$ac_cv_prog_DLLTOOL"; then
6086 ac_ct_DLLTOOL=$DLLTOOL
6087 # Extract the first word of "dlltool
", so it can be a program name with args.
6088 set dummy dlltool; ac_word=$2
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6090 $as_echo_n "checking
for $ac_word...
" >&6; }
6091 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6092 $as_echo_n "(cached
) " >&6
6094 if test -n "$ac_ct_DLLTOOL"; then
6095 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6104 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
6105 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6114 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6115 if test -n "$ac_ct_DLLTOOL"; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
6117 $as_echo "$ac_ct_DLLTOOL" >&6; }
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6120 $as_echo "no
" >&6; }
6123 if test "x
$ac_ct_DLLTOOL" = x; then
6126 case $cross_compiling:$ac_tool_warned in
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6129 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6130 ac_tool_warned=yes ;;
6132 DLLTOOL=$ac_ct_DLLTOOL
6135 DLLTOOL="$ac_cv_prog_DLLTOOL"
6138 test -z "$DLLTOOL" && DLLTOOL=dlltool
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries
" >&5
6150 $as_echo_n "checking how to associate runtime and link libraries...
" >&6; }
6151 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6152 $as_echo_n "(cached
) " >&6
6154 lt_cv_sharedlib_from_linklib_cmd='unknown'
6157 cygwin* | mingw* | pw32* | cegcc*)
6158 # two different shell functions defined in ltmain.sh
6159 # decide which to use based on capabilities of $DLLTOOL
6160 case `$DLLTOOL --help 2>&1` in
6161 *--identify-strict*)
6162 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6165 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6170 # fallback: assume linklib IS sharedlib
6171 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sharedlib_from_linklib_cmd" >&5
6177 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6178 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6179 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6187 if test -n "$ac_tool_prefix"; then
6190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6191 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6193 $as_echo_n "checking
for $ac_word...
" >&6; }
6194 if ${ac_cv_prog_AR+:} false; then :
6195 $as_echo_n "(cached
) " >&6
6197 if test -n "$AR"; then
6198 ac_cv_prog_AR="$AR" # Let the user override the test.
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6207 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6208 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6218 if test -n "$AR"; then
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6220 $as_echo "$AR" >&6; }
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6223 $as_echo "no
" >&6; }
6227 test -n "$AR" && break
6230 if test -z "$AR"; then
6234 # Extract the first word of "$ac_prog", so it can be a program name with args.
6235 set dummy $ac_prog; ac_word=$2
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6237 $as_echo_n "checking
for $ac_word...
" >&6; }
6238 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6239 $as_echo_n "(cached
) " >&6
6241 if test -n "$ac_ct_AR"; then
6242 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 test -z "$as_dir" && as_dir=.
6249 for ac_exec_ext in '' $ac_executable_extensions; do
6250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6251 ac_cv_prog_ac_ct_AR="$ac_prog"
6252 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6261 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6262 if test -n "$ac_ct_AR"; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6264 $as_echo "$ac_ct_AR" >&6; }
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6267 $as_echo "no
" >&6; }
6271 test -n "$ac_ct_AR" && break
6274 if test "x
$ac_ct_AR" = x; then
6277 case $cross_compiling:$ac_tool_warned in
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6280 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6281 ac_tool_warned=yes ;;
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for archiver @FILE support
" >&5
6301 $as_echo_n "checking
for archiver @FILE support...
" >&6; }
6302 if ${lt_cv_ar_at_file+:} false; then :
6303 $as_echo_n "(cached
) " >&6
6306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6317 if ac_fn_c_try_compile "$LINENO"; then :
6318 echo conftest.$ac_objext > conftest.lst
6319 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6320 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6321 (eval $lt_ar_try) 2>&5
6323 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6324 test $ac_status = 0; }
6325 if test "$ac_status" -eq 0; then
6326 # Ensure the archiver fails upon bogus file names.
6327 rm -f conftest.$ac_objext libconftest.a
6328 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6329 (eval $lt_ar_try) 2>&5
6331 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6332 test $ac_status = 0; }
6333 if test "$ac_status" -ne 0; then
6337 rm -f conftest.* libconftest.a
6340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ar_at_file" >&5
6344 $as_echo "$lt_cv_ar_at_file" >&6; }
6346 if test "x
$lt_cv_ar_at_file" = xno; then
6349 archiver_list_spec=$lt_cv_ar_at_file
6358 if test -n "$ac_tool_prefix"; then
6359 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6360 set dummy ${ac_tool_prefix}strip; ac_word=$2
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6362 $as_echo_n "checking
for $ac_word...
" >&6; }
6363 if ${ac_cv_prog_STRIP+:} false; then :
6364 $as_echo_n "(cached
) " >&6
6366 if test -n "$STRIP"; then
6367 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 test -z "$as_dir" && as_dir=.
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6376 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6377 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6386 STRIP=$ac_cv_prog_STRIP
6387 if test -n "$STRIP"; then
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6389 $as_echo "$STRIP" >&6; }
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6392 $as_echo "no
" >&6; }
6397 if test -z "$ac_cv_prog_STRIP"; then
6399 # Extract the first word of "strip
", so it can be a program name with args.
6400 set dummy strip; 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_ac_ct_STRIP+:} false; then :
6404 $as_echo_n "(cached
) " >&6
6406 if test -n "$ac_ct_STRIP"; then
6407 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6416 ac_cv_prog_ac_ct_STRIP="strip
"
6417 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6426 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6427 if test -n "$ac_ct_STRIP"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6429 $as_echo "$ac_ct_STRIP" >&6; }
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6432 $as_echo "no
" >&6; }
6435 if test "x
$ac_ct_STRIP" = x; then
6438 case $cross_compiling:$ac_tool_warned in
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6441 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6442 ac_tool_warned=yes ;;
6447 STRIP="$ac_cv_prog_STRIP"
6450 test -z "$STRIP" && STRIP=:
6457 if test -n "$ac_tool_prefix"; then
6458 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6459 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6461 $as_echo_n "checking
for $ac_word...
" >&6; }
6462 if ${ac_cv_prog_RANLIB+:} false; then :
6463 $as_echo_n "(cached
) " >&6
6465 if test -n "$RANLIB"; then
6466 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6476 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6485 RANLIB=$ac_cv_prog_RANLIB
6486 if test -n "$RANLIB"; then
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6488 $as_echo "$RANLIB" >&6; }
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6491 $as_echo "no
" >&6; }
6496 if test -z "$ac_cv_prog_RANLIB"; then
6497 ac_ct_RANLIB=$RANLIB
6498 # Extract the first word of "ranlib
", so it can be a program name with args.
6499 set dummy ranlib; ac_word=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6501 $as_echo_n "checking
for $ac_word...
" >&6; }
6502 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6503 $as_echo_n "(cached
) " >&6
6505 if test -n "$ac_ct_RANLIB"; then
6506 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6516 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6525 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6526 if test -n "$ac_ct_RANLIB"; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6528 $as_echo "$ac_ct_RANLIB" >&6; }
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6531 $as_echo "no
" >&6; }
6534 if test "x
$ac_ct_RANLIB" = x; then
6537 case $cross_compiling:$ac_tool_warned in
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6540 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6541 ac_tool_warned=yes ;;
6543 RANLIB=$ac_ct_RANLIB
6546 RANLIB="$ac_cv_prog_RANLIB"
6549 test -z "$RANLIB" && RANLIB=:
6556 # Determine commands to create old-style static archives.
6557 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6558 old_postinstall_cmds='chmod 644 $oldlib'
6559 old_postuninstall_cmds=
6561 if test -n "$RANLIB"; then
6564 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$tool_oldlib"
6567 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$tool_oldlib"
6570 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$tool_oldlib"
6575 lock_old_archive_extraction=yes ;;
6577 lock_old_archive_extraction=no ;;
6618 # If no C compiler was specified, use CC.
6621 # If no C compiler flags were specified, use CFLAGS.
6622 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6624 # Allow CC to be a program name with arguments.
6628 # Check for command to grab the raw symbol name followed by C symbol from nm.
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6630 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6631 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6632 $as_echo_n "(cached
) " >&6
6635 # These are sane defaults that work on at least a few old systems.
6636 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6638 # Character class describing NM global symbol codes.
6639 symcode='[BCDEGRST]'
6641 # Regexp to match symbols that can be accessed directly from C.
6642 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6644 # Define system-specific variables.
6649 cygwin* | mingw* | pw32* | cegcc*)
6650 symcode='[ABCDGISTW]'
6653 if test "$host_cpu" = ia64; then
6654 symcode='[ABCDEGRST]'
6658 symcode='[BCDEGRST]'
6661 symcode='[BCDEGQRST]'
6672 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6680 # If we're using GNU nm, then use its standard symbol codes.
6681 case `$NM -V 2>&1` in
6682 *GNU* | *'with BFD'*)
6683 symcode='[ABCDGIRSTW]' ;;
6686 # Transform an extracted symbol line into a proper C declaration.
6687 # Some systems (esp. on ia64) link data and code symbols differently,
6688 # so use this general approach.
6689 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6691 # Transform an extracted symbol line into symbol name and symbol address
6692 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6693 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'"
6695 # Handle CRLF in mingw tool chain
6699 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6703 # Try without a prefix underscore, then with it.
6704 for ac_symprfx in "" "_
"; do
6706 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6707 symxfrm="\\1 $ac_symprfx\\2 \\2"
6709 # Write the raw and C identifiers.
6710 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6711 # Fake it for dumpbin and say T for any non-static function
6712 # and D for any global variable.
6713 # Also find C++ and __fastcall symbols from MSVC++,
6714 # which start with @ or ?.
6715 lt_cv_sys_global_symbol_pipe="$AWK '"\
6716 " {last_section=section; section=\$ 3};"\
6717 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6718 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6719 " \$ 0!~/External *\|/{next};"\
6720 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6721 " {if(hide[section]) next};"\
6722 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6723 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6724 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6725 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6726 " ' prfx
=^
$ac_symprfx"
6728 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6730 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe |
sed '/ __gnu_lto/d'"
6732 # Check to see that the pipe works correctly.
6736 cat > conftest.$ac_ext <<_LT_EOF
6741 void nm_test_func(void);
6742 void nm_test_func(void){}
6746 int main(){nm_test_var='a';nm_test_func();return(0);}
6749 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6750 (eval $ac_compile) 2>&5
6752 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6753 test $ac_status = 0; }; then
6754 # Now try to grab the symbols.
6756 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6757 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6759 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6760 test $ac_status = 0; } && test -s "$nlist"; then
6761 # Try sorting and uniquifying the output.
6762 if sort "$nlist" | uniq > "$nlist"T; then
6763 mv -f "$nlist"T "$nlist"
6768 # Make sure that we snagged all the symbols we need.
6769 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6770 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6771 cat <<_LT_EOF > conftest.$ac_ext
6772 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6773 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6774 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6775 relocations are performed -- see ld's documentation on pseudo-relocs. */
6776 # define LT_DLSYM_CONST
6777 #elif defined(__osf__)
6778 /* This system does not cope well with relocations in const data. */
6779 # define LT_DLSYM_CONST
6781 # define LT_DLSYM_CONST const
6789 # Now generate the symbol file.
6790 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6792 cat <<_LT_EOF >> conftest.$ac_ext
6794 /* The mapping between symbol names and symbols. */
6795 LT_DLSYM_CONST struct {
6799 lt__PROGRAM__LTX_preloaded_symbols[] =
6801 { "@PROGRAM@
", (void *) 0 },
6803 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6804 cat <<\_LT_EOF >> conftest.$ac_ext
6808 /* This works around a problem in FreeBSD linker */
6809 #ifdef FREEBSD_WORKAROUND
6810 static const void *lt_preloaded_setup() {
6811 return lt__PROGRAM__LTX_preloaded_symbols;
6819 # Now try linking the two files.
6820 mv conftest.$ac_objext conftstm.$ac_objext
6821 lt_globsym_save_LIBS=$LIBS
6822 lt_globsym_save_CFLAGS=$CFLAGS
6823 LIBS="conftstm.
$ac_objext"
6824 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6825 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6826 (eval $ac_link) 2>&5
6828 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6829 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6832 LIBS=$lt_globsym_save_LIBS
6833 CFLAGS=$lt_globsym_save_CFLAGS
6835 echo "cannot
find nm_test_func
in $nlist" >&5
6838 echo "cannot
find nm_test_var
in $nlist" >&5
6841 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6844 echo "$progname: failed program was
:" >&5
6845 cat conftest.$ac_ext >&5
6847 rm -rf conftest* conftst*
6849 # Do not use the global_symbol_pipe unless it works.
6850 if test "$pipe_works" = yes; then
6853 lt_cv_sys_global_symbol_pipe=
6859 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6860 lt_cv_sys_global_symbol_to_cdecl=
6862 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6864 $as_echo "failed
" >&6; }
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6867 $as_echo "ok
" >&6; }
6870 # Response file support.
6871 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6872 nm_file_list_spec='@'
6873 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6874 nm_file_list_spec='@'
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for sysroot
" >&5
6904 $as_echo_n "checking
for sysroot...
" >&6; }
6906 # Check whether --with-sysroot was given.
6907 if test "${with_sysroot+set}" = set; then :
6908 withval=$with_sysroot;
6915 case ${with_sysroot} in #(
6917 if test "$GCC" = yes; then
6918 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6922 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${with_sysroot}" >&5
6928 $as_echo "${with_sysroot}" >&6; }
6929 as_fn_error $? "The sysroot must be an absolute path.
" "$LINENO" 5
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${lt_sysroot:-no}" >&5
6934 $as_echo "${lt_sysroot:-no}" >&6; }
6940 # Check whether --enable-libtool-lock was given.
6941 if test "${enable_libtool_lock+set}" = set; then :
6942 enableval=$enable_libtool_lock;
6945 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6947 # Some flags need to be propagated to the compiler or linker for good
6951 # Find out which ABI we are using.
6952 echo 'int i;' > conftest.$ac_ext
6953 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6954 (eval $ac_compile) 2>&5
6956 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6957 test $ac_status = 0; }; then
6958 case `/usr/bin/file conftest.$ac_objext` in
6970 # Find out which ABI we are using.
6971 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6972 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6973 (eval $ac_compile) 2>&5
6975 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6976 test $ac_status = 0; }; then
6977 if test "$lt_cv_prog_gnu_ld" = yes; then
6978 case `/usr/bin/file conftest.$ac_objext` in
6980 LD="${LD-ld} -melf32bsmip"
6983 LD="${LD-ld} -melf32bmipn32"
6986 LD="${LD-ld} -melf64bmip"
6990 case `/usr/bin/file conftest.$ac_objext` in
7006 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7007 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7008 # Find out which ABI we are using.
7009 echo 'int i;' > conftest.$ac_ext
7010 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7011 (eval $ac_compile) 2>&5
7013 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7014 test $ac_status = 0; }; then
7015 case `/usr/bin/file conftest.o` in
7018 x86_64-*kfreebsd*-gnu)
7019 LD="${LD-ld} -m elf_i386_fbsd
"
7022 LD="${LD-ld} -m elf_i386
"
7024 ppc64-*linux*|powerpc64-*linux*)
7025 LD="${LD-ld} -m elf32ppclinux
"
7028 LD="${LD-ld} -m elf_s390
"
7031 LD="${LD-ld} -m elf32_sparc
"
7037 x86_64-*kfreebsd*-gnu)
7038 LD="${LD-ld} -m elf_x86_64_fbsd
"
7041 LD="${LD-ld} -m elf_x86_64
"
7043 ppc*-*linux*|powerpc*-*linux*)
7044 LD="${LD-ld} -m elf64ppc
"
7046 s390*-*linux*|s390*-*tpf*)
7047 LD="${LD-ld} -m elf64_s390
"
7050 LD="${LD-ld} -m elf64_sparc
"
7060 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7061 SAVE_CFLAGS="$CFLAGS"
7062 CFLAGS="$CFLAGS -belf"
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7064 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7065 if ${lt_cv_cc_needs_belf+:} false; then :
7066 $as_echo_n "(cached
) " >&6
7069 ac_cpp='$CPP $CPPFLAGS'
7070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7085 if ac_fn_c_try_link "$LINENO"; then :
7086 lt_cv_cc_needs_belf=yes
7088 lt_cv_cc_needs_belf=no
7090 rm -f core conftest.err conftest.$ac_objext \
7091 conftest$ac_exeext conftest.$ac_ext
7093 ac_cpp='$CPP $CPPFLAGS'
7094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7100 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7101 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7102 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7103 CFLAGS="$SAVE_CFLAGS"
7107 # Find out which ABI we are using.
7108 echo 'int i;' > conftest.$ac_ext
7109 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7110 (eval $ac_compile) 2>&5
7112 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7113 test $ac_status = 0; }; then
7114 case `/usr/bin/file conftest.o` in
7116 case $lt_cv_prog_gnu_ld in
7120 LD="${LD-ld} -m elf_x86_64
"
7123 LD="${LD-ld} -m elf64_sparc
"
7126 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7127 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7132 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7144 need_locks="$enable_libtool_lock"
7146 if test -n "$ac_tool_prefix"; then
7147 # Extract the first word of "${ac_tool_prefix}mt
", so it can be a program name with args.
7148 set dummy ${ac_tool_prefix}mt; ac_word=$2
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7150 $as_echo_n "checking
for $ac_word...
" >&6; }
7151 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7152 $as_echo_n "(cached
) " >&6
7154 if test -n "$MANIFEST_TOOL"; then
7155 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 test -z "$as_dir" && as_dir=.
7162 for ac_exec_ext in '' $ac_executable_extensions; do
7163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7164 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt
"
7165 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7174 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7175 if test -n "$MANIFEST_TOOL"; then
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MANIFEST_TOOL" >&5
7177 $as_echo "$MANIFEST_TOOL" >&6; }
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7180 $as_echo "no
" >&6; }
7185 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7186 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7187 # Extract the first word of "mt
", so it can be a program name with args.
7188 set dummy mt; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7190 $as_echo_n "checking
for $ac_word...
" >&6; }
7191 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7192 $as_echo_n "(cached
) " >&6
7194 if test -n "$ac_ct_MANIFEST_TOOL"; then
7195 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt
"
7205 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7214 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7215 if test -n "$ac_ct_MANIFEST_TOOL"; then
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_MANIFEST_TOOL" >&5
7217 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7220 $as_echo "no
" >&6; }
7223 if test "x
$ac_ct_MANIFEST_TOOL" = x; then
7226 case $cross_compiling:$ac_tool_warned in
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7229 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7230 ac_tool_warned=yes ;;
7232 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7235 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7238 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $MANIFEST_TOOL is a manifest tool
" >&5
7240 $as_echo_n "checking
if $MANIFEST_TOOL is a manifest tool...
" >&6; }
7241 if ${lt_cv_path_mainfest_tool+:} false; then :
7242 $as_echo_n "(cached
) " >&6
7244 lt_cv_path_mainfest_tool=no
7245 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7246 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7247 cat conftest.err >&5
7248 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7249 lt_cv_path_mainfest_tool=yes
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_mainfest_tool" >&5
7254 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7255 if test "x
$lt_cv_path_mainfest_tool" != xyes; then
7265 rhapsody* | darwin*)
7266 if test -n "$ac_tool_prefix"; then
7267 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7268 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7270 $as_echo_n "checking
for $ac_word...
" >&6; }
7271 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7272 $as_echo_n "(cached
) " >&6
7274 if test -n "$DSYMUTIL"; then
7275 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7285 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7294 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7295 if test -n "$DSYMUTIL"; then
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7297 $as_echo "$DSYMUTIL" >&6; }
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7300 $as_echo "no
" >&6; }
7305 if test -z "$ac_cv_prog_DSYMUTIL"; then
7306 ac_ct_DSYMUTIL=$DSYMUTIL
7307 # Extract the first word of "dsymutil
", so it can be a program name with args.
7308 set dummy dsymutil; ac_word=$2
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7310 $as_echo_n "checking
for $ac_word...
" >&6; }
7311 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7312 $as_echo_n "(cached
) " >&6
7314 if test -n "$ac_ct_DSYMUTIL"; then
7315 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7325 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7334 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7335 if test -n "$ac_ct_DSYMUTIL"; then
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7337 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7340 $as_echo "no
" >&6; }
7343 if test "x
$ac_ct_DSYMUTIL" = x; then
7346 case $cross_compiling:$ac_tool_warned in
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7349 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7350 ac_tool_warned=yes ;;
7352 DSYMUTIL=$ac_ct_DSYMUTIL
7355 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7358 if test -n "$ac_tool_prefix"; then
7359 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7360 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7362 $as_echo_n "checking
for $ac_word...
" >&6; }
7363 if ${ac_cv_prog_NMEDIT+:} false; then :
7364 $as_echo_n "(cached
) " >&6
7366 if test -n "$NMEDIT"; then
7367 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7377 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7386 NMEDIT=$ac_cv_prog_NMEDIT
7387 if test -n "$NMEDIT"; then
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7389 $as_echo "$NMEDIT" >&6; }
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7392 $as_echo "no
" >&6; }
7397 if test -z "$ac_cv_prog_NMEDIT"; then
7398 ac_ct_NMEDIT=$NMEDIT
7399 # Extract the first word of "nmedit
", so it can be a program name with args.
7400 set dummy nmedit; ac_word=$2
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7402 $as_echo_n "checking
for $ac_word...
" >&6; }
7403 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7404 $as_echo_n "(cached
) " >&6
7406 if test -n "$ac_ct_NMEDIT"; then
7407 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 test -z "$as_dir" && as_dir=.
7414 for ac_exec_ext in '' $ac_executable_extensions; do
7415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7416 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7417 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7426 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7427 if test -n "$ac_ct_NMEDIT"; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7429 $as_echo "$ac_ct_NMEDIT" >&6; }
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7432 $as_echo "no
" >&6; }
7435 if test "x
$ac_ct_NMEDIT" = x; then
7438 case $cross_compiling:$ac_tool_warned in
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7441 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7442 ac_tool_warned=yes ;;
7444 NMEDIT=$ac_ct_NMEDIT
7447 NMEDIT="$ac_cv_prog_NMEDIT"
7450 if test -n "$ac_tool_prefix"; then
7451 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7452 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7454 $as_echo_n "checking
for $ac_word...
" >&6; }
7455 if ${ac_cv_prog_LIPO+:} false; then :
7456 $as_echo_n "(cached
) " >&6
7458 if test -n "$LIPO"; then
7459 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7469 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7478 LIPO=$ac_cv_prog_LIPO
7479 if test -n "$LIPO"; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7481 $as_echo "$LIPO" >&6; }
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7484 $as_echo "no
" >&6; }
7489 if test -z "$ac_cv_prog_LIPO"; then
7491 # Extract the first word of "lipo
", so it can be a program name with args.
7492 set dummy lipo; ac_word=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7494 $as_echo_n "checking
for $ac_word...
" >&6; }
7495 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7496 $as_echo_n "(cached
) " >&6
7498 if test -n "$ac_ct_LIPO"; then
7499 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7508 ac_cv_prog_ac_ct_LIPO="lipo
"
7509 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7518 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7519 if test -n "$ac_ct_LIPO"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7521 $as_echo "$ac_ct_LIPO" >&6; }
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7524 $as_echo "no
" >&6; }
7527 if test "x
$ac_ct_LIPO" = x; then
7530 case $cross_compiling:$ac_tool_warned in
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7533 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7534 ac_tool_warned=yes ;;
7539 LIPO="$ac_cv_prog_LIPO"
7542 if test -n "$ac_tool_prefix"; then
7543 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7544 set dummy ${ac_tool_prefix}otool; ac_word=$2
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7546 $as_echo_n "checking
for $ac_word...
" >&6; }
7547 if ${ac_cv_prog_OTOOL+:} false; then :
7548 $as_echo_n "(cached
) " >&6
7550 if test -n "$OTOOL"; then
7551 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7561 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7570 OTOOL=$ac_cv_prog_OTOOL
7571 if test -n "$OTOOL"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7573 $as_echo "$OTOOL" >&6; }
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7576 $as_echo "no
" >&6; }
7581 if test -z "$ac_cv_prog_OTOOL"; then
7583 # Extract the first word of "otool
", so it can be a program name with args.
7584 set dummy otool; ac_word=$2
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7586 $as_echo_n "checking
for $ac_word...
" >&6; }
7587 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7588 $as_echo_n "(cached
) " >&6
7590 if test -n "$ac_ct_OTOOL"; then
7591 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7600 ac_cv_prog_ac_ct_OTOOL="otool
"
7601 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7610 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7611 if test -n "$ac_ct_OTOOL"; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7613 $as_echo "$ac_ct_OTOOL" >&6; }
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7616 $as_echo "no
" >&6; }
7619 if test "x
$ac_ct_OTOOL" = x; then
7622 case $cross_compiling:$ac_tool_warned in
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7625 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7626 ac_tool_warned=yes ;;
7631 OTOOL="$ac_cv_prog_OTOOL"
7634 if test -n "$ac_tool_prefix"; then
7635 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7636 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7638 $as_echo_n "checking
for $ac_word...
" >&6; }
7639 if ${ac_cv_prog_OTOOL64+:} false; then :
7640 $as_echo_n "(cached
) " >&6
7642 if test -n "$OTOOL64"; then
7643 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7653 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7662 OTOOL64=$ac_cv_prog_OTOOL64
7663 if test -n "$OTOOL64"; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7665 $as_echo "$OTOOL64" >&6; }
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7668 $as_echo "no
" >&6; }
7673 if test -z "$ac_cv_prog_OTOOL64"; then
7674 ac_ct_OTOOL64=$OTOOL64
7675 # Extract the first word of "otool64
", so it can be a program name with args.
7676 set dummy otool64; ac_word=$2
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7678 $as_echo_n "checking
for $ac_word...
" >&6; }
7679 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7680 $as_echo_n "(cached
) " >&6
7682 if test -n "$ac_ct_OTOOL64"; then
7683 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7693 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7702 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7703 if test -n "$ac_ct_OTOOL64"; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7705 $as_echo "$ac_ct_OTOOL64" >&6; }
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7708 $as_echo "no
" >&6; }
7711 if test "x
$ac_ct_OTOOL64" = x; then
7714 case $cross_compiling:$ac_tool_warned in
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7717 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7718 ac_tool_warned=yes ;;
7720 OTOOL64=$ac_ct_OTOOL64
7723 OTOOL64="$ac_cv_prog_OTOOL64"
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7753 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7754 if ${lt_cv_apple_cc_single_mod+:} false; then :
7755 $as_echo_n "(cached
) " >&6
7757 lt_cv_apple_cc_single_mod=no
7758 if test -z "${LT_MULTI_MODULE}"; then
7759 # By default we will add the -single_module flag. You can override
7760 # by either setting the environment variable LT_MULTI_MODULE
7761 # non-empty at configure time, or by adding -multi_module to the
7763 rm -rf libconftest.dylib*
7764 echo "int foo
(void
){return 1;}" > conftest.c
7765 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7766 -dynamiclib -Wl,-single_module conftest.c
" >&5
7767 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7768 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7770 # If there is a non-empty error log, and "single_module
"
7771 # appears in it, assume the flag caused a linker warning
7772 if test -s conftest.err && $GREP single_module conftest.err; then
7773 cat conftest.err >&5
7774 # Otherwise, if the output was created with a 0 exit code from
7775 # the compiler, it worked.
7776 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7777 lt_cv_apple_cc_single_mod=yes
7779 cat conftest.err >&5
7781 rm -rf libconftest.dylib*
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7786 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7789 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7790 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7791 $as_echo_n "(cached
) " >&6
7793 lt_cv_ld_exported_symbols_list=no
7794 save_LDFLAGS=$LDFLAGS
7795 echo "_main
" > conftest.sym
7796 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h. */
7808 if ac_fn_c_try_link "$LINENO"; then :
7809 lt_cv_ld_exported_symbols_list=yes
7811 lt_cv_ld_exported_symbols_list=no
7813 rm -f core conftest.err conftest.$ac_objext \
7814 conftest$ac_exeext conftest.$ac_ext
7815 LDFLAGS="$save_LDFLAGS"
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7819 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7822 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7823 if ${lt_cv_ld_force_load+:} false; then :
7824 $as_echo_n "(cached
) " >&6
7826 lt_cv_ld_force_load=no
7827 cat > conftest.c << _LT_EOF
7828 int forced_loaded() { return 2;}
7830 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7831 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7832 echo "$AR cru libconftest.a conftest.o
" >&5
7833 $AR cru libconftest.a conftest.o 2>&5
7834 echo "$RANLIB libconftest.a
" >&5
7835 $RANLIB libconftest.a 2>&5
7836 cat > conftest.c << _LT_EOF
7837 int main() { return 0;}
7839 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7840 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7842 if test -s conftest.err && $GREP force_load conftest.err; then
7843 cat conftest.err >&5
7844 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7845 lt_cv_ld_force_load=yes
7847 cat conftest.err >&5
7849 rm -f conftest.err libconftest.a conftest conftest.c
7850 rm -rf conftest.dSYM
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7854 $as_echo "$lt_cv_ld_force_load" >&6; }
7856 rhapsody* | darwin1.[012])
7857 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7859 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7860 darwin*) # darwin 5.x on
7861 # if running on 10.5 or later, the deployment target defaults
7862 # to the OS version, if on x86, and 10.4, the deployment
7863 # target defaults to 10.4. Don't you love it?
7864 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7865 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7866 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7868 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7870 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7874 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7875 _lt_dar_single_mod='$single_module'
7877 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7878 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7880 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7882 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7883 _lt_dsymutil='~$DSYMUTIL $lib || :'
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7891 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7892 if ${ac_cv_header_stdc+:} false; then :
7893 $as_echo_n "(cached
) " >&6
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7910 if ac_fn_c_try_compile "$LINENO"; then :
7911 ac_cv_header_stdc=yes
7913 ac_cv_header_stdc=no
7915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7917 if test $ac_cv_header_stdc = yes; then
7918 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7924 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7925 $EGREP "memchr
" >/dev/null 2>&1; then :
7928 ac_cv_header_stdc=no
7934 if test $ac_cv_header_stdc = yes; then
7935 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937 /* end confdefs.h. */
7941 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7942 $EGREP "free
" >/dev/null 2>&1; then :
7945 ac_cv_header_stdc=no
7951 if test $ac_cv_header_stdc = yes; then
7952 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7953 if test "$cross_compiling" = yes; then :
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7960 #if ((' ' & 0x0FF) == 0x020)
7961 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7962 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7964 # define ISLOWER(c) \
7965 (('a' <= (c) && (c) <= 'i') \
7966 || ('j' <= (c) && (c) <= 'r') \
7967 || ('s' <= (c) && (c) <= 'z'))
7968 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7971 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7976 for (i = 0; i < 256; i++)
7977 if (XOR (islower (i), ISLOWER (i))
7978 || toupper (i) != TOUPPER (i))
7983 if ac_fn_c_try_run "$LINENO"; then :
7986 ac_cv_header_stdc=no
7988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7989 conftest.$ac_objext conftest.beam conftest.$ac_ext
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7995 $as_echo "$ac_cv_header_stdc" >&6; }
7996 if test $ac_cv_header_stdc = yes; then
7998 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8002 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8003 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
8004 inttypes.h stdint.h unistd.h
8006 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8007 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8009 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8010 cat >>confdefs.h
<<_ACEOF
8011 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8019 for ac_header
in dlfcn.h
8021 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8023 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8024 cat >>confdefs.h
<<_ACEOF
8025 #define HAVE_DLFCN_H 1
8046 # Check whether --enable-shared was given.
8047 if test "${enable_shared+set}" = set; then :
8048 enableval
=$enable_shared; p
=${PACKAGE-default}
8050 yes) enable_shared
=yes ;;
8051 no
) enable_shared
=no
;;
8054 # Look at the argument we got. We use all the common list separators.
8055 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8056 for pkg
in $enableval; do
8058 if test "X$pkg" = "X$p"; then
8077 # Check whether --enable-static was given.
8078 if test "${enable_static+set}" = set; then :
8079 enableval
=$enable_static; p
=${PACKAGE-default}
8081 yes) enable_static
=yes ;;
8082 no
) enable_static
=no
;;
8085 # Look at the argument we got. We use all the common list separators.
8086 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8087 for pkg
in $enableval; do
8089 if test "X$pkg" = "X$p"; then
8109 # Check whether --with-pic was given.
8110 if test "${with_pic+set}" = set; then :
8111 withval
=$with_pic; lt_p
=${PACKAGE-default}
8113 yes|no
) pic_mode
=$withval ;;
8116 # Look at the argument we got. We use all the common list separators.
8117 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8118 for lt_pkg
in $withval; do
8120 if test "X$lt_pkg" = "X$lt_p"; then
8132 test -z "$pic_mode" && pic_mode
=default
8140 # Check whether --enable-fast-install was given.
8141 if test "${enable_fast_install+set}" = set; then :
8142 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8144 yes) enable_fast_install
=yes ;;
8145 no
) enable_fast_install
=no
;;
8147 enable_fast_install
=no
8148 # Look at the argument we got. We use all the common list separators.
8149 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8150 for pkg
in $enableval; do
8152 if test "X$pkg" = "X$p"; then
8153 enable_fast_install
=yes
8160 enable_fast_install
=yes
8173 # This can be used to rebuild libtool when needed
8174 LIBTOOL_DEPS
="$ltmain"
8176 # Always use our own libtool.
8177 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8208 test -z "$LN_S" && LN_S
="ln -s"
8223 if test -n "${ZSH_VERSION+set}" ; then
8224 setopt NO_GLOB_SUBST
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8228 $as_echo_n "checking for objdir... " >&6; }
8229 if ${lt_cv_objdir+:} false
; then :
8230 $as_echo_n "(cached) " >&6
8232 rm -f .libs
2>/dev
/null
8233 mkdir .libs
2>/dev
/null
8234 if test -d .libs
; then
8237 # MS-DOS does not allow filenames that begin with a dot.
8240 rmdir .libs
2>/dev
/null
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8243 $as_echo "$lt_cv_objdir" >&6; }
8244 objdir
=$lt_cv_objdir
8250 cat >>confdefs.h
<<_ACEOF
8251 #define LT_OBJDIR "$lt_cv_objdir/"
8259 # AIX sometimes has problems with the GCC collect2 program. For some
8260 # reason, if we set the COLLECT_NAMES environment variable, the problems
8261 # vanish in a puff of smoke.
8262 if test "X${COLLECT_NAMES+set}" != Xset
; then
8264 export COLLECT_NAMES
8271 can_build_shared
=yes
8273 # All known linkers require a `.a' archive for static linking (except MSVC,
8274 # which needs '.lib').
8277 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8280 old_CFLAGS
="$CFLAGS"
8282 # Set sane defaults for various variables
8283 test -z "$CC" && CC
=cc
8284 test -z "$LTCC" && LTCC
=$CC
8285 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8286 test -z "$LD" && LD
=ld
8287 test -z "$ac_objext" && ac_objext
=o
8289 for cc_temp
in $compiler""; do
8291 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8292 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8297 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8300 # Only perform the check for file, if the check method requires it
8301 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8302 case $deplibs_check_method in
8304 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8306 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8307 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8308 $as_echo_n "(cached) " >&6
8312 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8315 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8316 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8317 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8318 for ac_dir
in $ac_dummy; do
8320 test -z "$ac_dir" && ac_dir
=.
8321 if test -f $ac_dir/${ac_tool_prefix}file; then
8322 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8323 if test -n "$file_magic_test_file"; then
8324 case $deplibs_check_method in
8326 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8327 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8328 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8329 $EGREP "$file_magic_regex" > /dev
/null
; then
8334 *** Warning: the command libtool uses to detect shared libraries,
8335 *** $file_magic_cmd, produces output that libtool cannot recognize.
8336 *** The result is that libtool may fail to recognize shared libraries
8337 *** as such. This will affect the creation of libtool libraries that
8338 *** depend on shared libraries, but programs linked with such libtool
8339 *** libraries will work regardless of this problem. Nevertheless, you
8340 *** may want to report the problem to your system manager and/or to
8341 *** bug-libtool@gnu.org
8351 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8356 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8357 if test -n "$MAGIC_CMD"; then
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8359 $as_echo "$MAGIC_CMD" >&6; }
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8362 $as_echo "no" >&6; }
8369 if test -z "$lt_cv_path_MAGIC_CMD"; then
8370 if test -n "$ac_tool_prefix"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8372 $as_echo_n "checking for file... " >&6; }
8373 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8374 $as_echo_n "(cached) " >&6
8378 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8381 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8382 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8383 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8384 for ac_dir
in $ac_dummy; do
8386 test -z "$ac_dir" && ac_dir
=.
8387 if test -f $ac_dir/file; then
8388 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8389 if test -n "$file_magic_test_file"; then
8390 case $deplibs_check_method in
8392 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8393 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8394 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8395 $EGREP "$file_magic_regex" > /dev
/null
; then
8400 *** Warning: the command libtool uses to detect shared libraries,
8401 *** $file_magic_cmd, produces output that libtool cannot recognize.
8402 *** The result is that libtool may fail to recognize shared libraries
8403 *** as such. This will affect the creation of libtool libraries that
8404 *** depend on shared libraries, but programs linked with such libtool
8405 *** libraries will work regardless of this problem. Nevertheless, you
8406 *** may want to report the problem to your system manager and/or to
8407 *** bug-libtool@gnu.org
8417 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8422 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8423 if test -n "$MAGIC_CMD"; then
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8425 $as_echo "$MAGIC_CMD" >&6; }
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8441 # Use C for the default configuration in the libtool script
8445 ac_cpp
='$CPP $CPPFLAGS'
8446 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8447 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8448 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8451 # Source file extension for C test sources.
8454 # Object file extension for compiled C test sources.
8458 # Code to be used in simple compile tests
8459 lt_simple_compile_test_code
="int some_variable = 0;"
8461 # Code to be used in simple link tests
8462 lt_simple_link_test_code
='int main(){return(0);}'
8470 # If no C compiler was specified, use CC.
8473 # If no C compiler flags were specified, use CFLAGS.
8474 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8476 # Allow CC to be a program name with arguments.
8479 # Save the default compiler, since it gets overwritten when the other
8480 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8481 compiler_DEFAULT
=$CC
8483 # save warnings/boilerplate of simple test code
8484 ac_outfile
=conftest.
$ac_objext
8485 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8486 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8487 _lt_compiler_boilerplate
=`cat conftest.err`
8490 ac_outfile
=conftest.
$ac_objext
8491 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8492 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8493 _lt_linker_boilerplate
=`cat conftest.err`
8498 ## There is no encapsulation within the following macros, do not change
8499 ## the running order or otherwise move them around unless you know exactly
8500 ## what you are doing...
8501 if test -n "$compiler"; then
8503 lt_prog_compiler_no_builtin_flag
=
8505 if test "$GCC" = yes; then
8506 case $cc_basename in
8508 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8510 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8514 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8515 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8516 $as_echo_n "(cached) " >&6
8518 lt_cv_prog_compiler_rtti_exceptions
=no
8519 ac_outfile
=conftest.
$ac_objext
8520 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8521 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8522 # Insert the option either (1) after the last *FLAGS variable, or
8523 # (2) before a word containing "conftest.", or (3) at the end.
8524 # Note that $ac_compile itself does not contain backslashes and begins
8525 # with a dollar sign (not a hyphen), so the echo should work correctly.
8526 # The option is referenced via a variable to avoid confusing sed.
8527 lt_compile
=`echo "$ac_compile" | $SED \
8528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8530 -e 's:$: $lt_compiler_flag:'`
8531 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8532 (eval "$lt_compile" 2>conftest.err
)
8534 cat conftest.err
>&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 if (exit $ac_status) && test -s "$ac_outfile"; then
8537 # The compiler can only warn and ignore the option if not recognized
8538 # So say no if there are warnings other than the usual output.
8539 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8540 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8541 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8542 lt_cv_prog_compiler_rtti_exceptions
=yes
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8549 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8551 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8552 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8564 lt_prog_compiler_wl
=
8565 lt_prog_compiler_pic
=
8566 lt_prog_compiler_static
=
8569 if test "$GCC" = yes; then
8570 lt_prog_compiler_wl
='-Wl,'
8571 lt_prog_compiler_static
='-static'
8575 # All AIX code is PIC.
8576 if test "$host_cpu" = ia64
; then
8577 # AIX 5 now supports IA64 processor
8578 lt_prog_compiler_static
='-Bstatic'
8585 # see comment about AmigaOS4 .so support
8586 lt_prog_compiler_pic
='-fPIC'
8589 # FIXME: we need at least 68020 code to build shared libraries, but
8590 # adding the `-m68020' flag to GCC prevents building anything better,
8592 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8597 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8598 # PIC is the default for these OSes.
8601 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8602 # This hack is so that the source file can tell whether it is being
8603 # built for inclusion in a dll (and should export symbols for example).
8604 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8605 # (--disable-auto-import) libraries
8606 lt_prog_compiler_pic
='-DDLL_EXPORT'
8609 darwin
* | rhapsody
*)
8610 # PIC is the default on this platform
8611 # Common symbols not allowed in MH_DYLIB files
8612 lt_prog_compiler_pic
='-fno-common'
8616 # PIC is the default for Haiku.
8617 # The "-static" flag exists, but is broken.
8618 lt_prog_compiler_static
=
8622 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8623 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8624 # sets the default TLS model and affects inlining.
8630 lt_prog_compiler_pic
='-fPIC'
8636 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8637 # Instead, we relocate shared libraries at runtime.
8641 # Just because we use GCC doesn't mean we suddenly get shared libraries
8642 # on systems that don't support them.
8643 lt_prog_compiler_can_build_shared
=no
8648 # QNX uses GNU C++, but need to define -shared option too, otherwise
8650 lt_prog_compiler_pic
='-fPIC -shared'
8654 if test -d /usr
/nec
; then
8655 lt_prog_compiler_pic
=-Kconform_pic
8660 lt_prog_compiler_pic
='-fPIC'
8664 case $cc_basename in
8665 nvcc
*) # Cuda Compiler Driver 2.2
8666 lt_prog_compiler_wl
='-Xlinker '
8667 if test -n "$lt_prog_compiler_pic"; then
8668 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
8673 # PORTME Check for flag to pass linker flags through the system compiler.
8676 lt_prog_compiler_wl
='-Wl,'
8677 if test "$host_cpu" = ia64
; then
8678 # AIX 5 now supports IA64 processor
8679 lt_prog_compiler_static
='-Bstatic'
8681 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8685 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8686 # This hack is so that the source file can tell whether it is being
8687 # built for inclusion in a dll (and should export symbols for example).
8688 lt_prog_compiler_pic
='-DDLL_EXPORT'
8691 hpux9
* | hpux10
* | hpux11
*)
8692 lt_prog_compiler_wl
='-Wl,'
8693 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8700 lt_prog_compiler_pic
='+Z'
8703 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8704 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8707 irix5
* | irix6
* | nonstopux
*)
8708 lt_prog_compiler_wl
='-Wl,'
8709 # PIC (with -KPIC) is the default.
8710 lt_prog_compiler_static
='-non_shared'
8713 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8714 case $cc_basename in
8715 # old Intel for x86_64 which still supported -KPIC.
8717 lt_prog_compiler_wl
='-Wl,'
8718 lt_prog_compiler_pic
='-KPIC'
8719 lt_prog_compiler_static
='-static'
8721 # icc used to be incompatible with GCC.
8722 # ICC 10 doesn't accept -KPIC any more.
8724 lt_prog_compiler_wl
='-Wl,'
8725 lt_prog_compiler_pic
='-fPIC'
8726 lt_prog_compiler_static
='-static'
8728 # Lahey Fortran 8.1.
8730 lt_prog_compiler_wl
='-Wl,'
8731 lt_prog_compiler_pic
='--shared'
8732 lt_prog_compiler_static
='--static'
8735 # NAG Fortran compiler
8736 lt_prog_compiler_wl
='-Wl,-Wl,,'
8737 lt_prog_compiler_pic
='-PIC'
8738 lt_prog_compiler_static
='-Bstatic'
8740 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8741 # Portland Group compilers (*not* the Pentium gcc compiler,
8742 # which looks to be a dead project)
8743 lt_prog_compiler_wl
='-Wl,'
8744 lt_prog_compiler_pic
='-fpic'
8745 lt_prog_compiler_static
='-Bstatic'
8748 lt_prog_compiler_wl
='-Wl,'
8749 # All Alpha code is PIC.
8750 lt_prog_compiler_static
='-non_shared'
8752 xl
* | bgxl
* | bgf
* | mpixl
*)
8753 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8754 lt_prog_compiler_wl
='-Wl,'
8755 lt_prog_compiler_pic
='-qpic'
8756 lt_prog_compiler_static
='-qstaticlink'
8759 case `$CC -V 2>&1 | sed 5q` in
8760 *Sun\ Ceres\ Fortran
* |
*Sun
*Fortran
*\
[1-7].
* |
*Sun
*Fortran
*\
8.
[0-3]*)
8761 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8762 lt_prog_compiler_pic
='-KPIC'
8763 lt_prog_compiler_static
='-Bstatic'
8764 lt_prog_compiler_wl
=''
8766 *Sun\ F
* |
*Sun
*Fortran
*)
8767 lt_prog_compiler_pic
='-KPIC'
8768 lt_prog_compiler_static
='-Bstatic'
8769 lt_prog_compiler_wl
='-Qoption ld '
8773 lt_prog_compiler_pic
='-KPIC'
8774 lt_prog_compiler_static
='-Bstatic'
8775 lt_prog_compiler_wl
='-Wl,'
8777 *Intel
*\
[CF
]*Compiler
*)
8778 lt_prog_compiler_wl
='-Wl,'
8779 lt_prog_compiler_pic
='-fPIC'
8780 lt_prog_compiler_static
='-static'
8783 lt_prog_compiler_wl
='-Wl,'
8784 lt_prog_compiler_pic
='-fpic'
8785 lt_prog_compiler_static
='-Bstatic'
8793 lt_prog_compiler_pic
='-KPIC'
8794 lt_prog_compiler_static
='-Bstatic'
8798 # QNX uses GNU C++, but need to define -shared option too, otherwise
8800 lt_prog_compiler_pic
='-fPIC -shared'
8803 osf3
* | osf4
* | osf5
*)
8804 lt_prog_compiler_wl
='-Wl,'
8805 # All OSF/1 code is PIC.
8806 lt_prog_compiler_static
='-non_shared'
8810 lt_prog_compiler_static
='-non_shared'
8814 lt_prog_compiler_pic
='-KPIC'
8815 lt_prog_compiler_static
='-Bstatic'
8816 case $cc_basename in
8817 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
8818 lt_prog_compiler_wl
='-Qoption ld ';;
8820 lt_prog_compiler_wl
='-Wl,';;
8825 lt_prog_compiler_wl
='-Qoption ld '
8826 lt_prog_compiler_pic
='-PIC'
8827 lt_prog_compiler_static
='-Bstatic'
8830 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8831 lt_prog_compiler_wl
='-Wl,'
8832 lt_prog_compiler_pic
='-KPIC'
8833 lt_prog_compiler_static
='-Bstatic'
8837 if test -d /usr
/nec
;then
8838 lt_prog_compiler_pic
='-Kconform_pic'
8839 lt_prog_compiler_static
='-Bstatic'
8843 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8844 lt_prog_compiler_wl
='-Wl,'
8845 lt_prog_compiler_pic
='-KPIC'
8846 lt_prog_compiler_static
='-Bstatic'
8850 lt_prog_compiler_wl
='-Wl,'
8851 lt_prog_compiler_can_build_shared
=no
8855 lt_prog_compiler_pic
='-pic'
8856 lt_prog_compiler_static
='-Bstatic'
8860 lt_prog_compiler_can_build_shared
=no
8866 # For platforms which do not support PIC, -DPIC is meaningless:
8868 lt_prog_compiler_pic
=
8871 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8876 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8877 if ${lt_cv_prog_compiler_pic+:} false
; then :
8878 $as_echo_n "(cached) " >&6
8880 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8883 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8884 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
8887 # Check to make sure the PIC flag actually works.
8889 if test -n "$lt_prog_compiler_pic"; then
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8891 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8892 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8893 $as_echo_n "(cached) " >&6
8895 lt_cv_prog_compiler_pic_works
=no
8896 ac_outfile
=conftest.
$ac_objext
8897 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8898 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8899 # Insert the option either (1) after the last *FLAGS variable, or
8900 # (2) before a word containing "conftest.", or (3) at the end.
8901 # Note that $ac_compile itself does not contain backslashes and begins
8902 # with a dollar sign (not a hyphen), so the echo should work correctly.
8903 # The option is referenced via a variable to avoid confusing sed.
8904 lt_compile
=`echo "$ac_compile" | $SED \
8905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8907 -e 's:$: $lt_compiler_flag:'`
8908 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8909 (eval "$lt_compile" 2>conftest.err
)
8911 cat conftest.err
>&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 if (exit $ac_status) && test -s "$ac_outfile"; then
8914 # The compiler can only warn and ignore the option if not recognized
8915 # So say no if there are warnings other than the usual output.
8916 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8917 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8918 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8919 lt_cv_prog_compiler_pic_works
=yes
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8926 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8928 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8929 case $lt_prog_compiler_pic in
8931 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8934 lt_prog_compiler_pic
=
8935 lt_prog_compiler_can_build_shared
=no
8951 # Check to make sure the static flag actually works.
8953 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8955 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8956 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8957 $as_echo_n "(cached) " >&6
8959 lt_cv_prog_compiler_static_works
=no
8960 save_LDFLAGS
="$LDFLAGS"
8961 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8962 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8963 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8964 # The linker can only warn and ignore the option if not recognized
8965 # So say no if there are warnings
8966 if test -s conftest.err
; then
8967 # Append any errors to the config.log.
8968 cat conftest.err
1>&5
8969 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8970 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8971 if diff conftest.exp conftest.er2
>/dev
/null
; then
8972 lt_cv_prog_compiler_static_works
=yes
8975 lt_cv_prog_compiler_static_works
=yes
8979 LDFLAGS
="$save_LDFLAGS"
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8983 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8985 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8988 lt_prog_compiler_static
=
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8998 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8999 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9000 $as_echo_n "(cached) " >&6
9002 lt_cv_prog_compiler_c_o
=no
9003 $RM -r conftest
2>/dev
/null
9007 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9009 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9010 # Insert the option either (1) after the last *FLAGS variable, or
9011 # (2) before a word containing "conftest.", or (3) at the end.
9012 # Note that $ac_compile itself does not contain backslashes and begins
9013 # with a dollar sign (not a hyphen), so the echo should work correctly.
9014 lt_compile
=`echo "$ac_compile" | $SED \
9015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9017 -e 's:$: $lt_compiler_flag:'`
9018 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9019 (eval "$lt_compile" 2>out
/conftest.err
)
9021 cat out
/conftest.err
>&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9025 # The compiler can only warn and ignore the option if not recognized
9026 # So say no if there are warnings
9027 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9028 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9029 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9030 lt_cv_prog_compiler_c_o
=yes
9035 # SGI C++ compiler will create directory out/ii_files/ for
9036 # template instantiation
9037 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9038 $RM out
/* && rmdir out
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9045 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9053 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9054 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9055 $as_echo_n "(cached) " >&6
9057 lt_cv_prog_compiler_c_o
=no
9058 $RM -r conftest
2>/dev
/null
9062 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9064 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9065 # Insert the option either (1) after the last *FLAGS variable, or
9066 # (2) before a word containing "conftest.", or (3) at the end.
9067 # Note that $ac_compile itself does not contain backslashes and begins
9068 # with a dollar sign (not a hyphen), so the echo should work correctly.
9069 lt_compile
=`echo "$ac_compile" | $SED \
9070 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9072 -e 's:$: $lt_compiler_flag:'`
9073 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9074 (eval "$lt_compile" 2>out
/conftest.err
)
9076 cat out
/conftest.err
>&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9080 # The compiler can only warn and ignore the option if not recognized
9081 # So say no if there are warnings
9082 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9083 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9084 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9085 lt_cv_prog_compiler_c_o
=yes
9090 # SGI C++ compiler will create directory out/ii_files/ for
9091 # template instantiation
9092 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9093 $RM out
/* && rmdir out
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9100 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9105 hard_links
="nottested"
9106 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
9107 # do not overwrite the value of need_locks provided by the user
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9109 $as_echo_n "checking if we can lock with hard links... " >&6; }
9112 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9114 ln conftest.a conftest.b
2>&5 || hard_links
=no
9115 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9117 $as_echo "$hard_links" >&6; }
9118 if test "$hard_links" = no
; then
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9120 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9133 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9136 allow_undefined_flag
=
9137 always_export_symbols
=no
9139 archive_expsym_cmds
=
9140 compiler_needs_object
=no
9141 enable_shared_with_static_runtimes
=no
9142 export_dynamic_flag_spec
=
9143 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9144 hardcode_automatic
=no
9146 hardcode_direct_absolute
=no
9147 hardcode_libdir_flag_spec
=
9148 hardcode_libdir_separator
=
9150 hardcode_shlibpath_var
=unsupported
9152 link_all_deplibs
=unknown
9155 old_archive_from_new_cmds
=
9156 old_archive_from_expsyms_cmds
=
9157 thread_safe_flag_spec
=
9158 whole_archive_flag_spec
=
9159 # include_expsyms should be a list of space-separated symbols to be *always*
9160 # included in the symbol list
9162 # exclude_expsyms can be an extended regexp of symbols to exclude
9163 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9164 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9165 # as well as any symbol that contains `d'.
9166 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9167 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9168 # platforms (ab)use it in PIC code, but their linkers get confused if
9169 # the symbol is explicitly referenced. Since portable code cannot
9170 # rely on this symbol name, it's probably fine to never include it in
9171 # preloaded symbol tables.
9172 # Exclude shared library initialization/finalization symbols.
9173 extract_expsyms_cmds
=
9176 cygwin
* | mingw
* | pw32
* | cegcc
*)
9177 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9178 # When not using gcc, we currently assume that we are using
9179 # Microsoft Visual C++.
9180 if test "$GCC" != yes; then
9185 # we just hope/assume this is gcc and not c89 (= MSVC++)
9195 # On some targets, GNU ld is compatible enough with the native linker
9196 # that we're better off using the native interface for both.
9197 lt_use_gnu_ld_interface
=no
9198 if test "$with_gnu_ld" = yes; then
9201 # The AIX port of GNU ld has always aspired to compatibility
9202 # with the native linker. However, as the warning in the GNU ld
9203 # block says, versions before 2.19.5* couldn't really create working
9204 # shared libraries, regardless of the interface used.
9205 case `$LD -v 2>&1` in
9206 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9207 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9208 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9210 lt_use_gnu_ld_interface
=yes
9215 lt_use_gnu_ld_interface
=yes
9220 if test "$lt_use_gnu_ld_interface" = yes; then
9221 # If archive_cmds runs LD, not CC, wlarc should be empty
9224 # Set some defaults for GNU ld with shared library support. These
9225 # are reset later if shared libraries are not supported. Putting them
9226 # here allows them to be overridden if necessary.
9227 runpath_var
=LD_RUN_PATH
9228 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9229 export_dynamic_flag_spec
='${wl}--export-dynamic'
9230 # ancient GNU ld didn't support --whole-archive et. al.
9231 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9232 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9234 whole_archive_flag_spec
=
9236 supports_anon_versioning
=no
9237 case `$LD -v 2>&1` in
9238 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9239 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9240 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9241 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9242 *\
2.11.
*) ;; # other 2.11 versions
9243 *) supports_anon_versioning
=yes ;;
9246 # See if GNU ld supports shared libraries.
9249 # On AIX/PPC, the GNU linker is very broken
9250 if test "$host_cpu" != ia64
; then
9254 *** Warning: the GNU linker, at least up to release 2.19, is reported
9255 *** to be unable to reliably create shared libraries on AIX.
9256 *** Therefore, libtool is disabling shared libraries support. If you
9257 *** really care for shared libraries, you may want to install binutils
9258 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9259 *** You will then need to restart the configuration process.
9268 # see comment about AmigaOS4 .so support
9269 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9270 archive_expsym_cmds
=''
9273 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)'
9274 hardcode_libdir_flag_spec
='-L$libdir'
9275 hardcode_minus_L
=yes
9281 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9282 allow_undefined_flag
=unsupported
9283 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9284 # support --undefined. This deserves some investigation. FIXME
9285 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9291 cygwin
* | mingw
* | pw32
* | cegcc
*)
9292 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9293 # as there is no search path for DLLs.
9294 hardcode_libdir_flag_spec
='-L$libdir'
9295 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9296 allow_undefined_flag
=unsupported
9297 always_export_symbols
=no
9298 enable_shared_with_static_runtimes
=yes
9299 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'
9300 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9302 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9303 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9304 # If the export-symbols file already is a .def file (1st line
9305 # is EXPORTS), use it as is; otherwise, prepend...
9306 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9307 cp $export_symbols $output_objdir/$soname.def;
9309 echo EXPORTS > $output_objdir/$soname.def;
9310 cat $export_symbols >> $output_objdir/$soname.def;
9312 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9319 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9320 link_all_deplibs
=yes
9325 hardcode_shlibpath_var
=no
9326 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9327 export_dynamic_flag_spec
='${wl}-E'
9328 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9329 # Instead, shared libraries are loaded at an image base (0x10000000 by
9330 # default) and relocated if they conflict, which is a slow very memory
9331 # consuming and fragmenting process. To avoid this, we pick a random,
9332 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9333 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9334 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9335 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'
9338 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9340 if test "$host_os" = linux-dietlibc
; then
9341 case $cc_basename in
9342 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9345 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9346 && test "$tmp_diet" = no
9348 tmp_addflag
=' $pic_flag'
9349 tmp_sharedflag
='-shared'
9350 case $cc_basename,$host_cpu in
9351 pgcc
*) # Portland Group C compiler
9352 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'
9353 tmp_addflag
=' $pic_flag'
9355 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9356 # Portland Group f77 and f90 compilers
9357 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'
9358 tmp_addflag
=' $pic_flag -Mnomain' ;;
9359 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9360 tmp_addflag
=' -i_dynamic' ;;
9361 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9362 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9363 ifc
* | ifort
*) # Intel Fortran compiler
9364 tmp_addflag
=' -nofor_main' ;;
9365 lf95
*) # Lahey Fortran 8.1
9366 whole_archive_flag_spec
=
9367 tmp_sharedflag
='--shared' ;;
9368 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9369 tmp_sharedflag
='-qmkshrobj'
9371 nvcc
*) # Cuda Compiler Driver 2.2
9372 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'
9373 compiler_needs_object
=yes
9376 case `$CC -V 2>&1 | sed 5q` in
9377 *Sun\ C
*) # Sun C 5.9
9378 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'
9379 compiler_needs_object
=yes
9380 tmp_sharedflag
='-G' ;;
9381 *Sun\ F
*) # Sun Fortran 8.3
9382 tmp_sharedflag
='-G' ;;
9384 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9386 if test "x$supports_anon_versioning" = xyes
; then
9387 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9388 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9389 echo "local: *; };" >> $output_objdir/$libname.ver~
9390 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9393 case $cc_basename in
9394 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9395 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9396 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9397 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9398 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9399 if test "x$supports_anon_versioning" = xyes
; then
9400 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9401 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9402 echo "local: *; };" >> $output_objdir/$libname.ver~
9403 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9413 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9414 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9417 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9418 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9423 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9427 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9428 *** create shared libraries on Solaris systems. Therefore, libtool
9429 *** is disabling shared libraries support. We urge you to upgrade GNU
9430 *** binutils to release 2.9.1 or newer. Another option is to modify
9431 *** your PATH or compiler configuration so that the native linker is
9432 *** used, and then restart.
9435 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9436 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9437 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9443 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9444 case `$LD -v 2>&1` in
9445 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9449 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9450 *** reliably create shared libraries on SCO systems. Therefore, libtool
9451 *** is disabling shared libraries support. We urge you to upgrade GNU
9452 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9453 *** your PATH or compiler configuration so that the native linker is
9454 *** used, and then restart.
9459 # For security reasons, it is highly recommended that you always
9460 # use absolute paths for naming shared libraries, and exclude the
9461 # DT_RUNPATH tag from executables and libraries. But doing so
9462 # requires that you compile everything twice, which is a pain.
9463 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9464 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9465 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9466 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9475 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9478 hardcode_shlibpath_var
=no
9482 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9483 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9484 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9491 if test "$ld_shlibs" = no
; then
9493 hardcode_libdir_flag_spec
=
9494 export_dynamic_flag_spec
=
9495 whole_archive_flag_spec
=
9498 # PORTME fill in a description of your system's linker (not GNU ld)
9501 allow_undefined_flag
=unsupported
9502 always_export_symbols
=yes
9503 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'
9504 # Note: this linker hardcodes the directories in LIBPATH if there
9505 # are no directories specified by -L.
9506 hardcode_minus_L
=yes
9507 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9508 # Neither direct hardcoding nor static linking is supported with a
9510 hardcode_direct
=unsupported
9515 if test "$host_cpu" = ia64
; then
9516 # On IA64, the linker does run time linking by default, so we don't
9517 # have to do anything special.
9518 aix_use_runtimelinking
=no
9519 exp_sym_flag
='-Bexport'
9522 # If we're using GNU nm, then we don't want the "-C" option.
9523 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9524 # Also, AIX nm treats weak defined symbols like other global
9525 # defined symbols, whereas GNU nm marks them as "W".
9526 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9527 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'
9529 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'
9531 aix_use_runtimelinking
=no
9533 # Test if we are trying to use run time linking or normal
9534 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9535 # need to do runtime linking.
9536 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9537 for ld_flag
in $LDFLAGS; do
9538 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9539 aix_use_runtimelinking
=yes
9546 exp_sym_flag
='-bexport'
9547 no_entry_flag
='-bnoentry'
9550 # When large executables or shared objects are built, AIX ld can
9551 # have problems creating the table of contents. If linking a library
9552 # or program results in "error TOC overflow" add -mminimal-toc to
9553 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9554 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9558 hardcode_direct_absolute
=yes
9559 hardcode_libdir_separator
=':'
9560 link_all_deplibs
=yes
9561 file_list_spec
='${wl}-f,'
9563 if test "$GCC" = yes; then
9564 case $host_os in aix4.
[012]|aix4.
[012].
*)
9565 # We only want to do this on AIX 4.2 and lower, the check
9566 # below for broken collect2 doesn't work under 4.3+
9567 collect2name
=`${CC} -print-prog-name=collect2`
9568 if test -f "$collect2name" &&
9569 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9571 # We have reworked collect2
9574 # We have old collect2
9575 hardcode_direct
=unsupported
9576 # It fails to find uninstalled libraries when the uninstalled
9577 # path is not listed in the libpath. Setting hardcode_minus_L
9578 # to unsupported forces relinking
9579 hardcode_minus_L
=yes
9580 hardcode_libdir_flag_spec
='-L$libdir'
9581 hardcode_libdir_separator
=
9585 shared_flag
='-shared'
9586 if test "$aix_use_runtimelinking" = yes; then
9587 shared_flag
="$shared_flag "'${wl}-G'
9591 if test "$host_cpu" = ia64
; then
9592 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9593 # chokes on -Wl,-G. The following line is correct:
9596 if test "$aix_use_runtimelinking" = yes; then
9597 shared_flag
='${wl}-G'
9599 shared_flag
='${wl}-bM:SRE'
9604 export_dynamic_flag_spec
='${wl}-bexpall'
9605 # It seems that -bexpall does not export symbols beginning with
9606 # underscore (_), so it is better to generate a list of symbols to export.
9607 always_export_symbols
=yes
9608 if test "$aix_use_runtimelinking" = yes; then
9609 # Warning - without using the other runtime loading flags (-brtl),
9610 # -berok will link without error, but may produce a broken library.
9611 allow_undefined_flag
='-berok'
9612 # Determine the default libpath from the value encoded in an
9614 if test "${lt_cv_aix_libpath+set}" = set; then
9615 aix_libpath
=$lt_cv_aix_libpath
9617 if ${lt_cv_aix_libpath_+:} false
; then :
9618 $as_echo_n "(cached) " >&6
9620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9631 if ac_fn_c_try_link
"$LINENO"; then :
9633 lt_aix_libpath_sed
='
9634 /Import File Strings/,/^$/ {
9636 s/^0 *\([^ ]*\) *$/\1/
9640 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9641 # Check for a 64-bit object if we didn't find anything.
9642 if test -z "$lt_cv_aix_libpath_"; then
9643 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9646 rm -f core conftest.err conftest.
$ac_objext \
9647 conftest
$ac_exeext conftest.
$ac_ext
9648 if test -z "$lt_cv_aix_libpath_"; then
9649 lt_cv_aix_libpath_
="/usr/lib:/lib"
9654 aix_libpath
=$lt_cv_aix_libpath_
9657 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9658 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"
9660 if test "$host_cpu" = ia64
; then
9661 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9662 allow_undefined_flag
="-z nodefs"
9663 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"
9665 # Determine the default libpath from the value encoded in an
9667 if test "${lt_cv_aix_libpath+set}" = set; then
9668 aix_libpath
=$lt_cv_aix_libpath
9670 if ${lt_cv_aix_libpath_+:} false
; then :
9671 $as_echo_n "(cached) " >&6
9673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9684 if ac_fn_c_try_link
"$LINENO"; then :
9686 lt_aix_libpath_sed
='
9687 /Import File Strings/,/^$/ {
9689 s/^0 *\([^ ]*\) *$/\1/
9693 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9694 # Check for a 64-bit object if we didn't find anything.
9695 if test -z "$lt_cv_aix_libpath_"; then
9696 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9699 rm -f core conftest.err conftest.
$ac_objext \
9700 conftest
$ac_exeext conftest.
$ac_ext
9701 if test -z "$lt_cv_aix_libpath_"; then
9702 lt_cv_aix_libpath_
="/usr/lib:/lib"
9707 aix_libpath
=$lt_cv_aix_libpath_
9710 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9711 # Warning - without using the other run time loading flags,
9712 # -berok will link without error, but may produce a broken library.
9713 no_undefined_flag
=' ${wl}-bernotok'
9714 allow_undefined_flag
=' ${wl}-berok'
9715 if test "$with_gnu_ld" = yes; then
9716 # We only use this code for GNU lds that support --whole-archive.
9717 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9719 # Exported symbols can be pulled into shared objects from archives
9720 whole_archive_flag_spec
='$convenience'
9722 archive_cmds_need_lc
=yes
9723 # This is similar to how AIX traditionally builds its shared libraries.
9724 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'
9732 # see comment about AmigaOS4 .so support
9733 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9734 archive_expsym_cmds
=''
9737 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)'
9738 hardcode_libdir_flag_spec
='-L$libdir'
9739 hardcode_minus_L
=yes
9745 export_dynamic_flag_spec
=-rdynamic
9748 cygwin
* | mingw
* | pw32
* | cegcc
*)
9749 # When not using gcc, we currently assume that we are using
9750 # Microsoft Visual C++.
9751 # hardcode_libdir_flag_spec is actually meaningless, as there is
9752 # no search path for DLLs.
9753 case $cc_basename in
9756 hardcode_libdir_flag_spec
=' '
9757 allow_undefined_flag
=unsupported
9758 always_export_symbols
=yes
9760 # Tell ltmain to make .lib files, not .a files.
9762 # Tell ltmain to make .dll files, not .so files.
9764 # FIXME: Setting linknames here is a bad hack.
9765 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9766 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9767 sed -n -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' -e '1\\\
!p
' < $export_symbols > $output_objdir/$soname.exp;
9769 sed -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' < $export_symbols > $output_objdir/$soname.exp;
9771 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9773 # The linker will not automatically build a static lib if we build a DLL.
9774 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9775 enable_shared_with_static_runtimes
=yes
9776 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9777 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9779 old_postinstall_cmds
='chmod 644 $oldlib'
9780 postlink_cmds
='lt_outputfile="@OUTPUT@"~
9781 lt_tool_outputfile="@TOOL_OUTPUT@"~
9782 case $lt_outputfile in
9785 lt_outputfile="$lt_outputfile.exe"
9786 lt_tool_outputfile="$lt_tool_outputfile.exe"
9789 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9790 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9791 $RM "$lt_outputfile.manifest";
9795 # Assume MSVC wrapper
9796 hardcode_libdir_flag_spec
=' '
9797 allow_undefined_flag
=unsupported
9798 # Tell ltmain to make .lib files, not .a files.
9800 # Tell ltmain to make .dll files, not .so files.
9802 # FIXME: Setting linknames here is a bad hack.
9803 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9804 # The linker will automatically build a .lib file if we build a DLL.
9805 old_archive_from_new_cmds
='true'
9806 # FIXME: Should let the user specify the lib program.
9807 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9808 enable_shared_with_static_runtimes
=yes
9813 darwin
* | rhapsody
*)
9816 archive_cmds_need_lc
=no
9818 hardcode_automatic
=yes
9819 hardcode_shlibpath_var
=unsupported
9820 if test "$lt_cv_ld_force_load" = "yes"; then
9821 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\"`'
9824 whole_archive_flag_spec
=''
9826 link_all_deplibs
=yes
9827 allow_undefined_flag
="$_lt_dar_allow_undefined"
9828 case $cc_basename in
9829 ifort
*) _lt_dar_can_shared
=yes ;;
9830 *) _lt_dar_can_shared
=$GCC ;;
9832 if test "$_lt_dar_can_shared" = "yes"; then
9833 output_verbose_link_cmd
=func_echo_all
9834 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9835 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9836 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}"
9837 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}"
9846 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9847 hardcode_libdir_flag_spec
='-L$libdir'
9848 hardcode_shlibpath_var
=no
9851 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9852 # support. Future versions do this automatically, but an explicit c++rt0.o
9853 # does not break anything, and helps significantly (at the cost of a little
9856 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9857 hardcode_libdir_flag_spec
='-R$libdir'
9859 hardcode_shlibpath_var
=no
9862 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9864 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9866 hardcode_minus_L
=yes
9867 hardcode_shlibpath_var
=no
9870 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9871 freebsd
* | dragonfly
*)
9872 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9873 hardcode_libdir_flag_spec
='-R$libdir'
9875 hardcode_shlibpath_var
=no
9879 if test "$GCC" = yes; then
9880 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'
9882 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'
9884 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9885 hardcode_libdir_separator
=:
9888 # hardcode_minus_L: Not really in the search PATH,
9889 # but as the default location of the library.
9890 hardcode_minus_L
=yes
9891 export_dynamic_flag_spec
='${wl}-E'
9895 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9896 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9898 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9900 if test "$with_gnu_ld" = no
; then
9901 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9902 hardcode_libdir_separator
=:
9904 hardcode_direct_absolute
=yes
9905 export_dynamic_flag_spec
='${wl}-E'
9906 # hardcode_minus_L: Not really in the search PATH,
9907 # but as the default location of the library.
9908 hardcode_minus_L
=yes
9913 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9916 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9919 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9922 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9928 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9931 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9935 # Older versions of the 11.00 compiler do not understand -b yet
9936 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9938 $as_echo_n "checking if $CC understands -b... " >&6; }
9939 if ${lt_cv_prog_compiler__b+:} false
; then :
9940 $as_echo_n "(cached) " >&6
9942 lt_cv_prog_compiler__b
=no
9943 save_LDFLAGS
="$LDFLAGS"
9944 LDFLAGS
="$LDFLAGS -b"
9945 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9946 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9947 # The linker can only warn and ignore the option if not recognized
9948 # So say no if there are warnings
9949 if test -s conftest.err
; then
9950 # Append any errors to the config.log.
9951 cat conftest.err
1>&5
9952 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9953 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9954 if diff conftest.exp conftest.er2
>/dev
/null
; then
9955 lt_cv_prog_compiler__b
=yes
9958 lt_cv_prog_compiler__b
=yes
9962 LDFLAGS
="$save_LDFLAGS"
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9966 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9968 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9969 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9971 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9977 if test "$with_gnu_ld" = no
; then
9978 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9979 hardcode_libdir_separator
=:
9984 hardcode_shlibpath_var
=no
9988 hardcode_direct_absolute
=yes
9989 export_dynamic_flag_spec
='${wl}-E'
9991 # hardcode_minus_L: Not really in the search PATH,
9992 # but as the default location of the library.
9993 hardcode_minus_L
=yes
9999 irix5
* | irix6
* | nonstopux
*)
10000 if test "$GCC" = yes; then
10001 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'
10002 # Try to use the -exported_symbol ld option, if it does not
10003 # work, assume that -exports_file does not work either and
10004 # implicitly export all symbols.
10005 # This should be the same for all languages, so no per-tag cache variable.
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10007 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10008 if ${lt_cv_irix_exported_symbol+:} false
; then :
10009 $as_echo_n "(cached) " >&6
10011 save_LDFLAGS
="$LDFLAGS"
10012 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h. */
10015 int foo (void) { return 0; }
10017 if ac_fn_c_try_link
"$LINENO"; then :
10018 lt_cv_irix_exported_symbol
=yes
10020 lt_cv_irix_exported_symbol
=no
10022 rm -f core conftest.err conftest.
$ac_objext \
10023 conftest
$ac_exeext conftest.
$ac_ext
10024 LDFLAGS
="$save_LDFLAGS"
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10027 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10028 if test "$lt_cv_irix_exported_symbol" = yes; then
10029 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'
10032 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'
10033 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'
10035 archive_cmds_need_lc
='no'
10036 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10037 hardcode_libdir_separator
=:
10039 link_all_deplibs
=yes
10043 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10044 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10046 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10048 hardcode_libdir_flag_spec
='-R$libdir'
10049 hardcode_direct
=yes
10050 hardcode_shlibpath_var
=no
10054 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10055 hardcode_direct
=yes
10056 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10057 hardcode_libdir_separator
=:
10058 hardcode_shlibpath_var
=no
10065 if test -f /usr
/libexec
/ld.so
; then
10066 hardcode_direct
=yes
10067 hardcode_shlibpath_var
=no
10068 hardcode_direct_absolute
=yes
10069 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10070 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10071 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10072 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10073 export_dynamic_flag_spec
='${wl}-E'
10076 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10077 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10078 hardcode_libdir_flag_spec
='-R$libdir'
10081 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10082 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10092 hardcode_libdir_flag_spec
='-L$libdir'
10093 hardcode_minus_L
=yes
10094 allow_undefined_flag
=unsupported
10095 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'
10096 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10100 if test "$GCC" = yes; then
10101 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10102 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'
10104 allow_undefined_flag
=' -expect_unresolved \*'
10105 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'
10107 archive_cmds_need_lc
='no'
10108 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10109 hardcode_libdir_separator
=:
10112 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10113 if test "$GCC" = yes; then
10114 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10115 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'
10116 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10118 allow_undefined_flag
=' -expect_unresolved \*'
10119 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'
10120 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~
10121 $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'
10123 # Both c and cxx compiler support -rpath directly
10124 hardcode_libdir_flag_spec
='-rpath $libdir'
10126 archive_cmds_need_lc
='no'
10127 hardcode_libdir_separator
=:
10131 no_undefined_flag
=' -z defs'
10132 if test "$GCC" = yes; then
10134 archive_cmds
='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10135 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10136 $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'
10138 case `$CC -V 2>&1` in
10141 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10142 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10143 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10147 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10148 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10149 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10153 hardcode_libdir_flag_spec
='-R$libdir'
10154 hardcode_shlibpath_var
=no
10156 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10158 # The compiler driver will combine and reorder linker options,
10159 # but understands `-z linker_flag'. GCC discards it without `$wl',
10160 # but is careful enough not to reorder.
10161 # Supported since Solaris 2.6 (maybe 2.5.1?)
10162 if test "$GCC" = yes; then
10163 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10165 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10169 link_all_deplibs
=yes
10173 if test "x$host_vendor" = xsequent
; then
10174 # Use $CC to link under sequent, because it throws in some extra .o
10175 # files that make .init and .fini sections work.
10176 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10178 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10180 hardcode_libdir_flag_spec
='-L$libdir'
10181 hardcode_direct
=yes
10182 hardcode_minus_L
=yes
10183 hardcode_shlibpath_var
=no
10187 case $host_vendor in
10189 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10190 hardcode_direct
=yes # is this really true???
10193 ## LD is ld it makes a PLAMLIB
10194 ## CC just makes a GrossModule.
10195 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10196 reload_cmds
='$CC -r -o $output$reload_objs'
10200 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10201 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10204 runpath_var
='LD_RUN_PATH'
10205 hardcode_shlibpath_var
=no
10209 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10210 hardcode_shlibpath_var
=no
10211 export_dynamic_flag_spec
='-Bexport'
10215 if test -d /usr
/nec
; then
10216 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10217 hardcode_shlibpath_var
=no
10218 runpath_var
=LD_RUN_PATH
10219 hardcode_runpath_var
=yes
10224 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10225 no_undefined_flag
='${wl}-z,text'
10226 archive_cmds_need_lc
=no
10227 hardcode_shlibpath_var
=no
10228 runpath_var
='LD_RUN_PATH'
10230 if test "$GCC" = yes; then
10231 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10232 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10234 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239 sysv5
* | sco3.2v5
* | sco5v6
*)
10240 # Note: We can NOT use -z defs as we might desire, because we do not
10241 # link with -lc, and that would cause any symbols used from libc to
10242 # always be unresolved, which means just about no library would
10243 # ever link correctly. If we're not using GNU ld we use -z text
10244 # though, which does catch some bad symbols but isn't as heavy-handed
10246 no_undefined_flag
='${wl}-z,text'
10247 allow_undefined_flag
='${wl}-z,nodefs'
10248 archive_cmds_need_lc
=no
10249 hardcode_shlibpath_var
=no
10250 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10251 hardcode_libdir_separator
=':'
10252 link_all_deplibs
=yes
10253 export_dynamic_flag_spec
='${wl}-Bexport'
10254 runpath_var
='LD_RUN_PATH'
10256 if test "$GCC" = yes; then
10257 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10258 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10260 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10266 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10267 hardcode_libdir_flag_spec
='-L$libdir'
10268 hardcode_shlibpath_var
=no
10276 if test x
$host_vendor = xsni
; then
10278 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10279 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10286 $as_echo "$ld_shlibs" >&6; }
10287 test "$ld_shlibs" = no
&& can_build_shared
=no
10289 with_gnu_ld
=$with_gnu_ld
10306 # Do we need to explicitly link libc?
10308 case "x$archive_cmds_need_lc" in
10310 # Assume -lc should be added
10311 archive_cmds_need_lc
=yes
10313 if test "$enable_shared" = yes && test "$GCC" = yes; then
10314 case $archive_cmds in
10316 # FIXME: we may have to deal with multi-command sequences.
10319 # Test whether the compiler implicitly links with -lc since on some
10320 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10321 # to ld, don't add -lc before -lgcc.
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10323 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10324 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10325 $as_echo_n "(cached) " >&6
10328 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10331 (eval $ac_compile) 2>&5
10333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10334 test $ac_status = 0; } 2>conftest.err
; then
10337 libobjs
=conftest.
$ac_objext
10339 wl
=$lt_prog_compiler_wl
10340 pic_flag
=$lt_prog_compiler_pic
10346 lt_save_allow_undefined_flag
=$allow_undefined_flag
10347 allow_undefined_flag
=
10348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10349 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10352 test $ac_status = 0; }
10354 lt_cv_archive_cmds_need_lc
=no
10356 lt_cv_archive_cmds_need_lc
=yes
10358 allow_undefined_flag
=$lt_save_allow_undefined_flag
10360 cat conftest.err
1>&5
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10366 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10367 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10526 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10528 if test "$GCC" = yes; then
10530 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10531 *) lt_awk_arg
="/^libraries:/" ;;
10534 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10535 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10537 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10538 case $lt_search_path_spec in
10540 # if the path contains ";" then we assume it to be the separator
10541 # otherwise default to the standard path separator (i.e. ":") - it is
10542 # assumed that no part of a normal pathname contains ";" but that should
10543 # okay in the real world where ";" in dirpaths is itself problematic.
10544 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10547 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10550 # Ok, now we have the path, separated by spaces, we can step through it
10551 # and add multilib dir if necessary.
10552 lt_tmp_lt_search_path_spec
=
10553 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10554 for lt_sys_path
in $lt_search_path_spec; do
10555 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10556 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10558 test -d "$lt_sys_path" && \
10559 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10562 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10563 BEGIN {RS=" "; FS="/|\n";} {
10566 for (lt_i = NF; lt_i > 0; lt_i--) {
10567 if ($lt_i != "" && $lt_i != ".") {
10568 if ($lt_i == "..") {
10571 if (lt_count == 0) {
10572 lt_foo="/" $lt_i lt_foo;
10579 if (lt_foo != "") { lt_freq[lt_foo]++; }
10580 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10582 # AWK program above erroneously prepends '/' to C:/dos/paths
10585 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10586 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10588 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10590 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10592 library_names_spec
=
10593 libname_spec
='lib$name'
10597 postuninstall_cmds
=
10601 shlibpath_overrides_runpath
=unknown
10603 dynamic_linker
="$host_os ld.so"
10604 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10605 need_lib_prefix
=unknown
10606 hardcode_into_libs
=no
10608 # when you set need_version to no, make sure it does not cause -set_version
10609 # flags to be left without arguments
10610 need_version
=unknown
10614 version_type
=linux
# correct to gnu/linux during the next big refactor
10615 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10616 shlibpath_var
=LIBPATH
10618 # AIX 3 has no versioning support, so we append a major version to the name.
10619 soname_spec
='${libname}${release}${shared_ext}$major'
10623 version_type
=linux
# correct to gnu/linux during the next big refactor
10626 hardcode_into_libs
=yes
10627 if test "$host_cpu" = ia64
; then
10628 # AIX 5 supports IA64
10629 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10630 shlibpath_var
=LD_LIBRARY_PATH
10632 # With GCC up to 2.95.x, collect2 would create an import file
10633 # for dependence libraries. The import file would start with
10634 # the line `#! .'. This would cause the generated library to
10635 # depend on `.', always an invalid library. This was fixed in
10636 # development snapshots of GCC prior to 3.0.
10638 aix4 | aix4.
[01] | aix4.
[01].
*)
10639 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10641 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10644 can_build_shared
=no
10648 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10649 # soname into executable. Probably we can add versioning support to
10650 # collect2, so additional links can be useful in future.
10651 if test "$aix_use_runtimelinking" = yes; then
10652 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10653 # instead of lib<name>.a to let people know that these are not
10654 # typical AIX shared libraries.
10655 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10657 # We preserve .a as extension for shared libraries through AIX4.2
10658 # and later when we are not doing run time linking.
10659 library_names_spec
='${libname}${release}.a $libname.a'
10660 soname_spec
='${libname}${release}${shared_ext}$major'
10662 shlibpath_var
=LIBPATH
10669 # Since July 2007 AmigaOS4 officially supports .so libraries.
10670 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10671 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10674 library_names_spec
='$libname.ixlibrary $libname.a'
10675 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10676 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'
10682 library_names_spec
='${libname}${shared_ext}'
10683 dynamic_linker
="$host_os ld.so"
10684 shlibpath_var
=LIBRARY_PATH
10688 version_type
=linux
# correct to gnu/linux during the next big refactor
10690 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691 soname_spec
='${libname}${release}${shared_ext}$major'
10692 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10693 shlibpath_var
=LD_LIBRARY_PATH
10694 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10695 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10696 # the default ld.so.conf also contains /usr/contrib/lib and
10697 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10698 # libtool to hard-code these into programs
10701 cygwin
* | mingw
* | pw32
* | cegcc
*)
10702 version_type
=windows
10707 case $GCC,$cc_basename in
10710 library_names_spec
='$libname.dll.a'
10711 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10712 postinstall_cmds
='base_file=`basename \${file}`~
10713 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10714 dldir=$destdir/`dirname \$dlpath`~
10715 test -d \$dldir || mkdir -p \$dldir~
10716 $install_prog $dir/$dlname \$dldir/$dlname~
10717 chmod a+x \$dldir/$dlname~
10718 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10719 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10721 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10722 dlpath=$dir/\$dldll~
10724 shlibpath_overrides_runpath
=yes
10728 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10729 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10731 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10734 # MinGW DLLs use traditional 'lib' prefix
10735 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10738 # pw32 DLLs use 'pw' prefix rather than 'lib'
10739 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10742 dynamic_linker
='Win32 ld.exe'
10747 libname_spec
='$name'
10748 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10749 library_names_spec
='${libname}.dll.lib'
10753 sys_lib_search_path_spec
=
10756 for lt_path
in $LIB
10759 # Let DOS variable expansion print the short 8.3 style file name.
10760 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10761 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
10764 # Convert to MSYS style.
10765 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10768 # Convert to unix form, then to dos form, then back to unix form
10769 # but this time dos style (no spaces!) so that the unix form looks
10770 # like /cygdrive/c/PROGRA~1:/cygdr...
10771 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
10772 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10773 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10776 sys_lib_search_path_spec
="$LIB"
10777 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
10778 # It is most probably a Windows format PATH.
10779 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10781 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10783 # FIXME: find the short name or the path components, as spaces are
10784 # common. (e.g. "Program Files" -> "PROGRA~1")
10788 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10789 postinstall_cmds
='base_file=`basename \${file}`~
10790 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10791 dldir=$destdir/`dirname \$dlpath`~
10792 test -d \$dldir || mkdir -p \$dldir~
10793 $install_prog $dir/$dlname \$dldir/$dlname'
10794 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10795 dlpath=$dir/\$dldll~
10797 shlibpath_overrides_runpath
=yes
10798 dynamic_linker
='Win32 link.exe'
10802 # Assume MSVC wrapper
10803 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10804 dynamic_linker
='Win32 ld.exe'
10807 # FIXME: first we should search . and the directory the executable is in
10811 darwin
* | rhapsody
*)
10812 dynamic_linker
="$host_os dyld"
10813 version_type
=darwin
10816 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10817 soname_spec
='${libname}${release}${major}$shared_ext'
10818 shlibpath_overrides_runpath
=yes
10819 shlibpath_var
=DYLD_LIBRARY_PATH
10820 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10822 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10823 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10827 version_type
=linux
# correct to gnu/linux during the next big refactor
10830 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10831 soname_spec
='${libname}${release}${shared_ext}$major'
10832 shlibpath_var
=LD_LIBRARY_PATH
10835 freebsd
* | dragonfly
*)
10836 # DragonFly does not have aout. When/if they implement a new
10837 # versioning mechanism, adjust this.
10838 if test -x /usr
/bin
/objformat
; then
10839 objformat
=`/usr/bin/objformat`
10842 freebsd
[23].
*) objformat
=aout
;;
10843 *) objformat
=elf
;;
10846 version_type
=freebsd-
$objformat
10847 case $version_type in
10849 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10854 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10858 shlibpath_var
=LD_LIBRARY_PATH
10861 shlibpath_overrides_runpath
=yes
10863 freebsd3.
[01]* | freebsdelf3.
[01]*)
10864 shlibpath_overrides_runpath
=yes
10865 hardcode_into_libs
=yes
10867 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10868 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10869 shlibpath_overrides_runpath
=no
10870 hardcode_into_libs
=yes
10872 *) # from 4.6 on, and DragonFly
10873 shlibpath_overrides_runpath
=yes
10874 hardcode_into_libs
=yes
10880 version_type
=linux
# correct to gnu/linux during the next big refactor
10883 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10884 soname_spec
='${libname}${release}${shared_ext}$major'
10885 shlibpath_var
=LD_LIBRARY_PATH
10886 shlibpath_overrides_runpath
=no
10887 hardcode_into_libs
=yes
10891 version_type
=linux
# correct to gnu/linux during the next big refactor
10894 dynamic_linker
="$host_os runtime_loader"
10895 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10896 soname_spec
='${libname}${release}${shared_ext}$major'
10897 shlibpath_var
=LIBRARY_PATH
10898 shlibpath_overrides_runpath
=yes
10899 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10900 hardcode_into_libs
=yes
10903 hpux9
* | hpux10
* | hpux11
*)
10904 # Give a soname corresponding to the major version so that dld.sl refuses to
10905 # link against other versions.
10912 hardcode_into_libs
=yes
10913 dynamic_linker
="$host_os dld.so"
10914 shlibpath_var
=LD_LIBRARY_PATH
10915 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10916 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10917 soname_spec
='${libname}${release}${shared_ext}$major'
10918 if test "X$HPUX_IA64_MODE" = X32
; then
10919 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10921 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10923 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10927 hardcode_into_libs
=yes
10928 dynamic_linker
="$host_os dld.sl"
10929 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10930 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10931 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10932 soname_spec
='${libname}${release}${shared_ext}$major'
10933 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10934 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10938 dynamic_linker
="$host_os dld.sl"
10939 shlibpath_var
=SHLIB_PATH
10940 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10941 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942 soname_spec
='${libname}${release}${shared_ext}$major'
10945 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10946 postinstall_cmds
='chmod 555 $lib'
10947 # or fails outright, so override atomically:
10948 install_override_mode
=555
10952 version_type
=linux
# correct to gnu/linux during the next big refactor
10955 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10956 soname_spec
='${libname}${release}${shared_ext}$major'
10957 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10958 shlibpath_var
=LD_LIBRARY_PATH
10959 shlibpath_overrides_runpath
=no
10960 hardcode_into_libs
=yes
10963 irix5
* | irix6
* | nonstopux
*)
10965 nonstopux
*) version_type
=nonstopux
;;
10967 if test "$lt_cv_prog_gnu_ld" = yes; then
10968 version_type
=linux
# correct to gnu/linux during the next big refactor
10975 soname_spec
='${libname}${release}${shared_ext}$major'
10976 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10978 irix5
* | nonstopux
*)
10979 libsuff
= shlibsuff
=
10982 case $LD in # libtool.m4 will add one of these switches to LD
10983 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10984 libsuff
= shlibsuff
= libmagic
=32-bit;;
10985 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10986 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10987 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10988 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10989 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10993 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10994 shlibpath_overrides_runpath
=no
10995 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10996 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10997 hardcode_into_libs
=yes
11000 # No shared lib support for Linux oldld, aout, or coff.
11001 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11005 # This must be glibc/ELF.
11006 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
11007 version_type
=linux
# correct to gnu/linux during the next big refactor
11010 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11011 soname_spec
='${libname}${release}${shared_ext}$major'
11012 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11013 shlibpath_var
=LD_LIBRARY_PATH
11014 shlibpath_overrides_runpath
=no
11016 # Some binutils ld are patched to set DT_RUNPATH
11017 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11018 $as_echo_n "(cached) " >&6
11020 lt_cv_shlibpath_overrides_runpath
=no
11021 save_LDFLAGS
=$LDFLAGS
11022 save_libdir
=$libdir
11023 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11024 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11036 if ac_fn_c_try_link
"$LINENO"; then :
11037 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11038 lt_cv_shlibpath_overrides_runpath
=yes
11041 rm -f core conftest.err conftest.
$ac_objext \
11042 conftest
$ac_exeext conftest.
$ac_ext
11043 LDFLAGS
=$save_LDFLAGS
11044 libdir
=$save_libdir
11048 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11050 # This implies no fast_install, which is unacceptable.
11051 # Some rework will be needed to allow for fast_install
11052 # before this can be enabled.
11053 hardcode_into_libs
=yes
11055 # Add ABI-specific directories to the system library path.
11056 sys_lib_dlsearch_path_spec
="/lib64 /usr/lib64 /lib /usr/lib"
11058 # Append ld.so.conf contents to the search path
11059 if test -f /etc
/ld.so.conf
; then
11060 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' ' '`
11061 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11065 # We used to test for /lib/ld.so.1 and disable shared libraries on
11066 # powerpc, because MkLinux only supported shared libraries with the
11067 # GNU dynamic linker. Since this was broken with cross compilers,
11068 # most powerpc-linux boxes support dynamic linking these days and
11069 # people can always --disable-shared, the test was removed, and we
11070 # assume the GNU/Linux dynamic linker is in use.
11071 dynamic_linker
='GNU/Linux ld.so'
11078 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11079 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11080 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11081 dynamic_linker
='NetBSD (a.out) ld.so'
11083 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11084 soname_spec
='${libname}${release}${shared_ext}$major'
11085 dynamic_linker
='NetBSD ld.elf_so'
11087 shlibpath_var
=LD_LIBRARY_PATH
11088 shlibpath_overrides_runpath
=yes
11089 hardcode_into_libs
=yes
11093 version_type
=linux
# correct to gnu/linux during the next big refactor
11094 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11095 shlibpath_var
=LD_LIBRARY_PATH
11096 shlibpath_overrides_runpath
=yes
11103 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104 soname_spec
='${libname}${release}${shared_ext}$major'
11105 shlibpath_var
=LD_LIBRARY_PATH
11106 shlibpath_overrides_runpath
=no
11107 hardcode_into_libs
=yes
11108 dynamic_linker
='ldqnx.so'
11113 sys_lib_dlsearch_path_spec
="/usr/lib"
11115 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11117 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
11118 *) need_version
=no
;;
11120 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11121 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11122 shlibpath_var
=LD_LIBRARY_PATH
11123 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11125 openbsd2.
[89] | openbsd2.
[89].
*)
11126 shlibpath_overrides_runpath
=no
11129 shlibpath_overrides_runpath
=yes
11133 shlibpath_overrides_runpath
=yes
11138 libname_spec
='$name'
11141 library_names_spec
='$libname${shared_ext} $libname.a'
11142 dynamic_linker
='OS/2 ld.exe'
11143 shlibpath_var
=LIBPATH
11146 osf3
* | osf4
* | osf5
*)
11150 soname_spec
='${libname}${release}${shared_ext}$major'
11151 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11152 shlibpath_var
=LD_LIBRARY_PATH
11153 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11154 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11162 version_type
=linux
# correct to gnu/linux during the next big refactor
11165 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11166 soname_spec
='${libname}${release}${shared_ext}$major'
11167 shlibpath_var
=LD_LIBRARY_PATH
11168 shlibpath_overrides_runpath
=yes
11169 hardcode_into_libs
=yes
11170 # ldd complains unless libraries are executable
11171 postinstall_cmds
='chmod +x $lib'
11176 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11177 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11178 shlibpath_var
=LD_LIBRARY_PATH
11179 shlibpath_overrides_runpath
=yes
11180 if test "$with_gnu_ld" = yes; then
11187 version_type
=linux
# correct to gnu/linux during the next big refactor
11188 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11189 soname_spec
='${libname}${release}${shared_ext}$major'
11190 shlibpath_var
=LD_LIBRARY_PATH
11191 case $host_vendor in
11193 shlibpath_overrides_runpath
=no
11195 runpath_var
=LD_RUN_PATH
11203 shlibpath_overrides_runpath
=no
11204 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11210 if test -d /usr
/nec
;then
11211 version_type
=linux
# correct to gnu/linux during the next big refactor
11212 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11213 soname_spec
='$libname${shared_ext}.$major'
11214 shlibpath_var
=LD_LIBRARY_PATH
11218 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11219 version_type
=freebsd-elf
11222 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11223 soname_spec
='${libname}${release}${shared_ext}$major'
11224 shlibpath_var
=LD_LIBRARY_PATH
11225 shlibpath_overrides_runpath
=yes
11226 hardcode_into_libs
=yes
11227 if test "$with_gnu_ld" = yes; then
11228 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11230 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11233 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11237 sys_lib_dlsearch_path_spec
='/usr/lib'
11241 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11242 version_type
=linux
# correct to gnu/linux during the next big refactor
11245 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11246 shlibpath_var
=LD_LIBRARY_PATH
11247 shlibpath_overrides_runpath
=no
11248 hardcode_into_libs
=yes
11252 version_type
=linux
# correct to gnu/linux during the next big refactor
11253 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11254 soname_spec
='${libname}${release}${shared_ext}$major'
11255 shlibpath_var
=LD_LIBRARY_PATH
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11263 $as_echo "$dynamic_linker" >&6; }
11264 test "$dynamic_linker" = no
&& can_build_shared
=no
11266 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11267 if test "$GCC" = yes; then
11268 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11271 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11272 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11274 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11275 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11370 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11372 if test -n "$hardcode_libdir_flag_spec" ||
11373 test -n "$runpath_var" ||
11374 test "X$hardcode_automatic" = "Xyes" ; then
11376 # We can hardcode non-existent directories.
11377 if test "$hardcode_direct" != no
&&
11378 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11379 # have to relink, otherwise we might link with an installed library
11380 # when we should be linking with a yet-to-be-installed one
11381 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11382 test "$hardcode_minus_L" != no
; then
11383 # Linking always hardcodes the temporary library directory.
11384 hardcode_action
=relink
11386 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11387 hardcode_action
=immediate
11390 # We cannot hardcode anything, or else we can only hardcode existing
11392 hardcode_action
=unsupported
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11395 $as_echo "$hardcode_action" >&6; }
11397 if test "$hardcode_action" = relink ||
11398 test "$inherit_rpath" = yes; then
11399 # Fast installation is not supported
11400 enable_fast_install
=no
11401 elif test "$shlibpath_overrides_runpath" = yes ||
11402 test "$enable_shared" = no
; then
11403 # Fast installation is not necessary
11404 enable_fast_install
=needless
11412 if test "x$enable_dlopen" != xyes
; then
11413 enable_dlopen
=unknown
11414 enable_dlopen_self
=unknown
11415 enable_dlopen_self_static
=unknown
11422 lt_cv_dlopen
="load_add_on"
11424 lt_cv_dlopen_self
=yes
11427 mingw
* | pw32
* | cegcc
*)
11428 lt_cv_dlopen
="LoadLibrary"
11433 lt_cv_dlopen
="dlopen"
11438 # if libdl is installed we need to link against it
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11440 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11441 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11442 $as_echo_n "(cached) " >&6
11444 ac_check_lib_save_LIBS
=$LIBS
11446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11447 /* end confdefs.h. */
11449 /* Override any GCC internal prototype to avoid an error.
11450 Use char because int might match the return type of a GCC
11451 builtin and then its argument prototype would still apply. */
11464 if ac_fn_c_try_link
"$LINENO"; then :
11465 ac_cv_lib_dl_dlopen
=yes
11467 ac_cv_lib_dl_dlopen
=no
11469 rm -f core conftest.err conftest.
$ac_objext \
11470 conftest
$ac_exeext conftest.
$ac_ext
11471 LIBS
=$ac_check_lib_save_LIBS
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11474 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11475 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11476 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11479 lt_cv_dlopen
="dyld"
11481 lt_cv_dlopen_self
=yes
11488 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11489 if test "x$ac_cv_func_shl_load" = xyes
; then :
11490 lt_cv_dlopen
="shl_load"
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11493 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11494 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11495 $as_echo_n "(cached) " >&6
11497 ac_check_lib_save_LIBS
=$LIBS
11499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11500 /* end confdefs.h. */
11502 /* Override any GCC internal prototype to avoid an error.
11503 Use char because int might match the return type of a GCC
11504 builtin and then its argument prototype would still apply. */
11512 return shl_load ();
11517 if ac_fn_c_try_link
"$LINENO"; then :
11518 ac_cv_lib_dld_shl_load
=yes
11520 ac_cv_lib_dld_shl_load
=no
11522 rm -f core conftest.err conftest.
$ac_objext \
11523 conftest
$ac_exeext conftest.
$ac_ext
11524 LIBS
=$ac_check_lib_save_LIBS
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11527 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11528 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11529 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11531 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11532 if test "x$ac_cv_func_dlopen" = xyes
; then :
11533 lt_cv_dlopen
="dlopen"
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11536 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11537 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11538 $as_echo_n "(cached) " >&6
11540 ac_check_lib_save_LIBS
=$LIBS
11542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11543 /* end confdefs.h. */
11545 /* Override any GCC internal prototype to avoid an error.
11546 Use char because int might match the return type of a GCC
11547 builtin and then its argument prototype would still apply. */
11560 if ac_fn_c_try_link
"$LINENO"; then :
11561 ac_cv_lib_dl_dlopen
=yes
11563 ac_cv_lib_dl_dlopen
=no
11565 rm -f core conftest.err conftest.
$ac_objext \
11566 conftest
$ac_exeext conftest.
$ac_ext
11567 LIBS
=$ac_check_lib_save_LIBS
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11570 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11571 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11572 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11575 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11576 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11577 $as_echo_n "(cached) " >&6
11579 ac_check_lib_save_LIBS
=$LIBS
11580 LIBS
="-lsvld $LIBS"
11581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11582 /* end confdefs.h. */
11584 /* Override any GCC internal prototype to avoid an error.
11585 Use char because int might match the return type of a GCC
11586 builtin and then its argument prototype would still apply. */
11599 if ac_fn_c_try_link
"$LINENO"; then :
11600 ac_cv_lib_svld_dlopen
=yes
11602 ac_cv_lib_svld_dlopen
=no
11604 rm -f core conftest.err conftest.
$ac_objext \
11605 conftest
$ac_exeext conftest.
$ac_ext
11606 LIBS
=$ac_check_lib_save_LIBS
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11609 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11610 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11611 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11614 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11615 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11616 $as_echo_n "(cached) " >&6
11618 ac_check_lib_save_LIBS
=$LIBS
11620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h. */
11623 /* Override any GCC internal prototype to avoid an error.
11624 Use char because int might match the return type of a GCC
11625 builtin and then its argument prototype would still apply. */
11633 return dld_link ();
11638 if ac_fn_c_try_link
"$LINENO"; then :
11639 ac_cv_lib_dld_dld_link
=yes
11641 ac_cv_lib_dld_dld_link
=no
11643 rm -f core conftest.err conftest.
$ac_objext \
11644 conftest
$ac_exeext conftest.
$ac_ext
11645 LIBS
=$ac_check_lib_save_LIBS
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11648 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11649 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11650 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11671 if test "x$lt_cv_dlopen" != xno
; then
11677 case $lt_cv_dlopen in
11679 save_CPPFLAGS
="$CPPFLAGS"
11680 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11682 save_LDFLAGS
="$LDFLAGS"
11683 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11686 LIBS
="$lt_cv_dlopen_libs $LIBS"
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11689 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11690 if ${lt_cv_dlopen_self+:} false
; then :
11691 $as_echo_n "(cached) " >&6
11693 if test "$cross_compiling" = yes; then :
11694 lt_cv_dlopen_self
=cross
11696 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11697 lt_status
=$lt_dlunknown
11698 cat > conftest.
$ac_ext <<_LT_EOF
11699 #line $LINENO "configure"
11700 #include "confdefs.h"
11709 # define LT_DLGLOBAL RTLD_GLOBAL
11712 # define LT_DLGLOBAL DL_GLOBAL
11714 # define LT_DLGLOBAL 0
11718 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11719 find out it does not work in some platform. */
11720 #ifndef LT_DLLAZY_OR_NOW
11722 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11725 # define LT_DLLAZY_OR_NOW DL_LAZY
11728 # define LT_DLLAZY_OR_NOW RTLD_NOW
11731 # define LT_DLLAZY_OR_NOW DL_NOW
11733 # define LT_DLLAZY_OR_NOW 0
11740 /* When -fvisbility=hidden is used, assume the code has been annotated
11741 correspondingly for the symbols needed. */
11742 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11743 int fnord () __attribute__((visibility("default")));
11746 int fnord () { return 42; }
11749 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11750 int status = $lt_dlunknown;
11754 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11757 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11758 else puts (dlerror ());
11760 /* dlclose (self); */
11768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11769 (eval $ac_link) 2>&5
11771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11772 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11773 (.
/conftest
; exit; ) >&5 2>/dev
/null
11775 case x
$lt_status in
11776 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11777 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11778 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11781 # compilation failed
11782 lt_cv_dlopen_self
=no
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11790 $as_echo "$lt_cv_dlopen_self" >&6; }
11792 if test "x$lt_cv_dlopen_self" = xyes
; then
11793 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11795 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11796 if ${lt_cv_dlopen_self_static+:} false
; then :
11797 $as_echo_n "(cached) " >&6
11799 if test "$cross_compiling" = yes; then :
11800 lt_cv_dlopen_self_static
=cross
11802 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11803 lt_status
=$lt_dlunknown
11804 cat > conftest.
$ac_ext <<_LT_EOF
11805 #line $LINENO "configure"
11806 #include "confdefs.h"
11815 # define LT_DLGLOBAL RTLD_GLOBAL
11818 # define LT_DLGLOBAL DL_GLOBAL
11820 # define LT_DLGLOBAL 0
11824 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11825 find out it does not work in some platform. */
11826 #ifndef LT_DLLAZY_OR_NOW
11828 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11831 # define LT_DLLAZY_OR_NOW DL_LAZY
11834 # define LT_DLLAZY_OR_NOW RTLD_NOW
11837 # define LT_DLLAZY_OR_NOW DL_NOW
11839 # define LT_DLLAZY_OR_NOW 0
11846 /* When -fvisbility=hidden is used, assume the code has been annotated
11847 correspondingly for the symbols needed. */
11848 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11849 int fnord () __attribute__((visibility("default")));
11852 int fnord () { return 42; }
11855 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11856 int status = $lt_dlunknown;
11860 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11863 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11864 else puts (dlerror ());
11866 /* dlclose (self); */
11874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11875 (eval $ac_link) 2>&5
11877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11878 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11879 (.
/conftest
; exit; ) >&5 2>/dev
/null
11881 case x
$lt_status in
11882 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11883 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11884 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11887 # compilation failed
11888 lt_cv_dlopen_self_static
=no
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11896 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11899 CPPFLAGS
="$save_CPPFLAGS"
11900 LDFLAGS
="$save_LDFLAGS"
11905 case $lt_cv_dlopen_self in
11906 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11907 *) enable_dlopen_self
=unknown
;;
11910 case $lt_cv_dlopen_self_static in
11911 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11912 *) enable_dlopen_self_static
=unknown
;;
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11935 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11936 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11937 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11938 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11940 $as_echo "yes" >&6; }
11942 # FIXME - insert some real tests, host_os isn't really good enough
11945 if test -n "$STRIP" ; then
11946 striplib
="$STRIP -x"
11947 old_striplib
="$STRIP -S"
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11949 $as_echo "yes" >&6; }
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11952 $as_echo "no" >&6; }
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11957 $as_echo "no" >&6; }
11973 # Report which library types will actually be built
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11975 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11977 $as_echo "$can_build_shared" >&6; }
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11980 $as_echo_n "checking whether to build shared libraries... " >&6; }
11981 test "$can_build_shared" = "no" && enable_shared
=no
11983 # On AIX, shared libraries and static libraries use the same namespace, and
11984 # are all built from PIC.
11987 test "$enable_shared" = yes && enable_static
=no
11988 if test -n "$RANLIB"; then
11989 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11990 postinstall_cmds
='$RANLIB $lib'
11995 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11996 test "$enable_shared" = yes && enable_static
=no
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12001 $as_echo "$enable_shared" >&6; }
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12004 $as_echo_n "checking whether to build static libraries... " >&6; }
12005 # Make sure either enable_shared or enable_static is yes.
12006 test "$enable_shared" = yes || enable_static
=yes
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12008 $as_echo "$enable_static" >&6; }
12015 ac_cpp
='$CPP $CPPFLAGS'
12016 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12017 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12018 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12036 ac_config_commands
="$ac_config_commands libtool"
12041 # Only expand once:
12047 if test "$enable_libevent_regress" = "yes"; then
12048 BUILD_REGRESS_TRUE
=
12049 BUILD_REGRESS_FALSE
='#'
12051 BUILD_REGRESS_TRUE
='#'
12052 BUILD_REGRESS_FALSE
=
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
12057 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
12058 if ${ac_cv_search_inet_ntoa+:} false
; then :
12059 $as_echo_n "(cached) " >&6
12061 ac_func_search_save_LIBS
=$LIBS
12062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12063 /* end confdefs.h. */
12065 /* Override any GCC internal prototype to avoid an error.
12066 Use char because int might match the return type of a GCC
12067 builtin and then its argument prototype would still apply. */
12075 return inet_ntoa ();
12080 for ac_lib
in '' nsl
; do
12081 if test -z "$ac_lib"; then
12082 ac_res
="none required"
12085 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12087 if ac_fn_c_try_link
"$LINENO"; then :
12088 ac_cv_search_inet_ntoa
=$ac_res
12090 rm -f core conftest.err conftest.
$ac_objext \
12092 if ${ac_cv_search_inet_ntoa+:} false
; then :
12096 if ${ac_cv_search_inet_ntoa+:} false
; then :
12099 ac_cv_search_inet_ntoa
=no
12101 rm conftest.
$ac_ext
12102 LIBS
=$ac_func_search_save_LIBS
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12105 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
12106 ac_res
=$ac_cv_search_inet_ntoa
12107 if test "$ac_res" != no
; then :
12108 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12113 $as_echo_n "checking for library containing socket... " >&6; }
12114 if ${ac_cv_search_socket+:} false
; then :
12115 $as_echo_n "(cached) " >&6
12117 ac_func_search_save_LIBS
=$LIBS
12118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h. */
12121 /* Override any GCC internal prototype to avoid an error.
12122 Use char because int might match the return type of a GCC
12123 builtin and then its argument prototype would still apply. */
12136 for ac_lib
in '' socket
; do
12137 if test -z "$ac_lib"; then
12138 ac_res
="none required"
12141 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12143 if ac_fn_c_try_link
"$LINENO"; then :
12144 ac_cv_search_socket
=$ac_res
12146 rm -f core conftest.err conftest.
$ac_objext \
12148 if ${ac_cv_search_socket+:} false
; then :
12152 if ${ac_cv_search_socket+:} false
; then :
12155 ac_cv_search_socket
=no
12157 rm conftest.
$ac_ext
12158 LIBS
=$ac_func_search_save_LIBS
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12161 $as_echo "$ac_cv_search_socket" >&6; }
12162 ac_res
=$ac_cv_search_socket
12163 if test "$ac_res" != no
; then :
12164 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12169 $as_echo_n "checking for library containing inet_aton... " >&6; }
12170 if ${ac_cv_search_inet_aton+:} false
; then :
12171 $as_echo_n "(cached) " >&6
12173 ac_func_search_save_LIBS
=$LIBS
12174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12177 /* Override any GCC internal prototype to avoid an error.
12178 Use char because int might match the return type of a GCC
12179 builtin and then its argument prototype would still apply. */
12187 return inet_aton ();
12192 for ac_lib
in '' resolv
; do
12193 if test -z "$ac_lib"; then
12194 ac_res
="none required"
12197 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12199 if ac_fn_c_try_link
"$LINENO"; then :
12200 ac_cv_search_inet_aton
=$ac_res
12202 rm -f core conftest.err conftest.
$ac_objext \
12204 if ${ac_cv_search_inet_aton+:} false
; then :
12208 if ${ac_cv_search_inet_aton+:} false
; then :
12211 ac_cv_search_inet_aton
=no
12213 rm conftest.
$ac_ext
12214 LIBS
=$ac_func_search_save_LIBS
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12217 $as_echo "$ac_cv_search_inet_aton" >&6; }
12218 ac_res
=$ac_cv_search_inet_aton
12219 if test "$ac_res" != no
; then :
12220 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12225 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12226 if ${ac_cv_search_clock_gettime+:} false
; then :
12227 $as_echo_n "(cached) " >&6
12229 ac_func_search_save_LIBS
=$LIBS
12230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h. */
12233 /* Override any GCC internal prototype to avoid an error.
12234 Use char because int might match the return type of a GCC
12235 builtin and then its argument prototype would still apply. */
12239 char clock_gettime ();
12243 return clock_gettime ();
12248 for ac_lib
in '' rt
; do
12249 if test -z "$ac_lib"; then
12250 ac_res
="none required"
12253 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12255 if ac_fn_c_try_link
"$LINENO"; then :
12256 ac_cv_search_clock_gettime
=$ac_res
12258 rm -f core conftest.err conftest.
$ac_objext \
12260 if ${ac_cv_search_clock_gettime+:} false
; then :
12264 if ${ac_cv_search_clock_gettime+:} false
; then :
12267 ac_cv_search_clock_gettime
=no
12269 rm conftest.
$ac_ext
12270 LIBS
=$ac_func_search_save_LIBS
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12273 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12274 ac_res
=$ac_cv_search_clock_gettime
12275 if test "$ac_res" != no
; then :
12276 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12281 $as_echo_n "checking for library containing sendfile... " >&6; }
12282 if ${ac_cv_search_sendfile+:} false
; then :
12283 $as_echo_n "(cached) " >&6
12285 ac_func_search_save_LIBS
=$LIBS
12286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12289 /* Override any GCC internal prototype to avoid an error.
12290 Use char because int might match the return type of a GCC
12291 builtin and then its argument prototype would still apply. */
12299 return sendfile ();
12304 for ac_lib
in '' sendfile
; do
12305 if test -z "$ac_lib"; then
12306 ac_res
="none required"
12309 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12311 if ac_fn_c_try_link
"$LINENO"; then :
12312 ac_cv_search_sendfile
=$ac_res
12314 rm -f core conftest.err conftest.
$ac_objext \
12316 if ${ac_cv_search_sendfile+:} false
; then :
12320 if ${ac_cv_search_sendfile+:} false
; then :
12323 ac_cv_search_sendfile
=no
12325 rm conftest.
$ac_ext
12326 LIBS
=$ac_func_search_save_LIBS
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
12329 $as_echo "$ac_cv_search_sendfile" >&6; }
12330 ac_res
=$ac_cv_search_sendfile
12331 if test "$ac_res" != no
; then :
12332 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
12338 $as_echo_n "checking for WIN32... " >&6; }
12339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h. */
12354 if ac_fn_c_try_compile
"$LINENO"; then :
12355 bwin32
=true
; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12356 $as_echo "yes" >&6; }
12358 bwin32
=false
; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12359 $as_echo "no" >&6; }
12361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
12364 $as_echo_n "checking for CYGWIN... " >&6; }
12365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12366 /* end confdefs.h. */
12380 if ac_fn_c_try_compile
"$LINENO"; then :
12381 cygwin
=true
; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12382 $as_echo "yes" >&6; }
12384 cygwin
=false
; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385 $as_echo "no" >&6; }
12387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12389 for ac_header
in zlib.h
12391 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12392 if test "x$ac_cv_header_zlib_h" = xyes
; then :
12393 cat >>confdefs.h
<<_ACEOF
12394 #define HAVE_ZLIB_H 1
12402 if test "x$ac_cv_header_zlib_h" = "xyes"; then
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
12408 $as_echo_n "checking for library containing inflateEnd... " >&6; }
12409 if ${ac_cv_search_inflateEnd+:} false
; then :
12410 $as_echo_n "(cached) " >&6
12412 ac_func_search_save_LIBS
=$LIBS
12413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12414 /* end confdefs.h. */
12416 /* Override any GCC internal prototype to avoid an error.
12417 Use char because int might match the return type of a GCC
12418 builtin and then its argument prototype would still apply. */
12422 char inflateEnd ();
12426 return inflateEnd ();
12431 for ac_lib
in '' z
; do
12432 if test -z "$ac_lib"; then
12433 ac_res
="none required"
12436 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12438 if ac_fn_c_try_link
"$LINENO"; then :
12439 ac_cv_search_inflateEnd
=$ac_res
12441 rm -f core conftest.err conftest.
$ac_objext \
12443 if ${ac_cv_search_inflateEnd+:} false
; then :
12447 if ${ac_cv_search_inflateEnd+:} false
; then :
12450 ac_cv_search_inflateEnd
=no
12452 rm conftest.
$ac_ext
12453 LIBS
=$ac_func_search_save_LIBS
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
12456 $as_echo "$ac_cv_search_inflateEnd" >&6; }
12457 ac_res
=$ac_cv_search_inflateEnd
12458 if test "$ac_res" != no
; then :
12459 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12463 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12470 if test "$have_zlib" = "yes"; then
12472 ZLIB_REGRESS_FALSE
='#'
12474 ZLIB_REGRESS_TRUE
='#'
12475 ZLIB_REGRESS_FALSE
=
12479 if test "$bwin32" = true
; then
12480 EV_LIB_WS32
=-lws2_32
12490 for ac_header
in openssl
/bio.h
12492 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
12493 if test "x$ac_cv_header_openssl_bio_h" = xyes
; then :
12494 cat >>confdefs.h
<<_ACEOF
12495 #define HAVE_OPENSSL_BIO_H 1
12503 if test "$enable_openssl" = "yes"; then
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12509 $as_echo_n "checking for library containing SSL_new... " >&6; }
12510 if ${ac_cv_search_SSL_new+:} false
; then :
12511 $as_echo_n "(cached) " >&6
12513 ac_func_search_save_LIBS
=$LIBS
12514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12515 /* end confdefs.h. */
12517 /* Override any GCC internal prototype to avoid an error.
12518 Use char because int might match the return type of a GCC
12519 builtin and then its argument prototype would still apply. */
12532 for ac_lib
in '' ssl
; do
12533 if test -z "$ac_lib"; then
12534 ac_res
="none required"
12537 LIBS
="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
12539 if ac_fn_c_try_link
"$LINENO"; then :
12540 ac_cv_search_SSL_new
=$ac_res
12542 rm -f core conftest.err conftest.
$ac_objext \
12544 if ${ac_cv_search_SSL_new+:} false
; then :
12548 if ${ac_cv_search_SSL_new+:} false
; then :
12551 ac_cv_search_SSL_new
=no
12553 rm conftest.
$ac_ext
12554 LIBS
=$ac_func_search_save_LIBS
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12557 $as_echo "$ac_cv_search_SSL_new" >&6; }
12558 ac_res
=$ac_cv_search_SSL_new
12559 if test "$ac_res" != no
; then :
12560 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12562 OPENSSL_LIBS
="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
12564 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12575 $as_echo_n "checking for ANSI C header files... " >&6; }
12576 if ${ac_cv_header_stdc+:} false
; then :
12577 $as_echo_n "(cached) " >&6
12579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h. */
12581 #include <stdlib.h>
12582 #include <stdarg.h>
12583 #include <string.h>
12594 if ac_fn_c_try_compile
"$LINENO"; then :
12595 ac_cv_header_stdc
=yes
12597 ac_cv_header_stdc
=no
12599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12601 if test $ac_cv_header_stdc = yes; then
12602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12604 /* end confdefs.h. */
12605 #include <string.h>
12608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12609 $EGREP "memchr" >/dev
/null
2>&1; then :
12612 ac_cv_header_stdc
=no
12618 if test $ac_cv_header_stdc = yes; then
12619 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12622 #include <stdlib.h>
12625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12626 $EGREP "free" >/dev
/null
2>&1; then :
12629 ac_cv_header_stdc
=no
12635 if test $ac_cv_header_stdc = yes; then
12636 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12637 if test "$cross_compiling" = yes; then :
12640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12641 /* end confdefs.h. */
12643 #include <stdlib.h>
12644 #if ((' ' & 0x0FF) == 0x020)
12645 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12646 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12648 # define ISLOWER(c) \
12649 (('a' <= (c) && (c) <= 'i') \
12650 || ('j' <= (c) && (c) <= 'r') \
12651 || ('s' <= (c) && (c) <= 'z'))
12652 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12655 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12660 for (i = 0; i < 256; i++)
12661 if (XOR (islower (i), ISLOWER (i))
12662 || toupper (i) != TOUPPER (i))
12667 if ac_fn_c_try_run
"$LINENO"; then :
12670 ac_cv_header_stdc
=no
12672 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12673 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12679 $as_echo "$ac_cv_header_stdc" >&6; }
12680 if test $ac_cv_header_stdc = yes; then
12682 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12686 for ac_header
in fcntl.h stdarg.h inttypes.h stdint.h stddef.h poll.h unistd.h sys
/epoll.h sys
/time.h sys
/queue.h sys
/event.h sys
/param.h sys
/ioctl.h sys
/select.h sys
/devpoll.h port.h netinet
/in.h netinet
/in6.h sys
/socket.h sys
/uio.h arpa
/inet.h sys
/eventfd.h sys
/mman.h sys
/sendfile.h sys
/wait.h netdb.h
12688 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12689 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12690 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12691 cat >>confdefs.h
<<_ACEOF
12692 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12699 for ac_header
in sys
/stat.h
12701 ac_fn_c_check_header_mongrel
"$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12702 if test "x$ac_cv_header_sys_stat_h" = xyes
; then :
12703 cat >>confdefs.h
<<_ACEOF
12704 #define HAVE_SYS_STAT_H 1
12711 for ac_header
in sys
/sysctl.h
12713 ac_fn_c_check_header_compile
"$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
12714 #ifdef HAVE_SYS_PARAM_H
12715 #include <sys/param.h>
12719 if test "x$ac_cv_header_sys_sysctl_h" = xyes
; then :
12720 cat >>confdefs.h
<<_ACEOF
12721 #define HAVE_SYS_SYSCTL_H 1
12728 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
12730 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
12731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12734 #include <sys/queue.h>
12735 #ifdef TAILQ_FOREACH
12740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12741 $EGREP "yes" >/dev
/null
2>&1; then :
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12743 $as_echo "yes" >&6; }
12745 $as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749 $as_echo "no" >&6; }
12756 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
12758 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
12759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12762 #include <sys/time.h>
12768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12769 $EGREP "yes" >/dev
/null
2>&1; then :
12771 $as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12774 $as_echo "yes" >&6; }
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12784 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
12786 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
12787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12788 /* end confdefs.h. */
12790 #include <sys/time.h>
12796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12797 $EGREP "yes" >/dev
/null
2>&1; then :
12799 $as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12802 $as_echo "yes" >&6; }
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805 $as_echo "no" >&6; }
12812 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
12814 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
12815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12816 /* end confdefs.h. */
12818 #include <sys/time.h>
12824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12825 $EGREP "yes" >/dev
/null
2>&1; then :
12827 $as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12830 $as_echo "yes" >&6; }
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833 $as_echo "no" >&6; }
12840 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
12842 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
12843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h. */
12846 #include <sys/time.h>
12852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12853 $EGREP "yes" >/dev
/null
2>&1; then :
12855 $as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12858 $as_echo "yes" >&6; }
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12861 $as_echo "no" >&6; }
12868 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
12869 ac_fn_c_check_decl
"$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
12870 #include <sys/sysctl.h>
12873 if test "x$ac_cv_have_decl_CTL_KERN" = xyes
; then :
12879 cat >>confdefs.h
<<_ACEOF
12880 #define HAVE_DECL_CTL_KERN $ac_have_decl
12882 ac_fn_c_check_decl
"$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
12883 #include <sys/sysctl.h>
12886 if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes
; then :
12892 cat >>confdefs.h
<<_ACEOF
12893 #define HAVE_DECL_KERN_RANDOM $ac_have_decl
12895 ac_fn_c_check_decl
"$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
12896 #include <sys/sysctl.h>
12899 if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes
; then :
12905 cat >>confdefs.h
<<_ACEOF
12906 #define HAVE_DECL_RANDOM_UUID $ac_have_decl
12908 ac_fn_c_check_decl
"$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
12909 #include <sys/sysctl.h>
12912 if test "x$ac_cv_have_decl_KERN_ARND" = xyes
; then :
12918 cat >>confdefs.h
<<_ACEOF
12919 #define HAVE_DECL_KERN_ARND $ac_have_decl
12924 if test x
$bwin32 = xtrue
; then
12926 BUILD_WIN32_FALSE
='#'
12928 BUILD_WIN32_TRUE
='#'
12932 if test x
$cygwin = xtrue
; then
12934 BUILD_CYGWIN_FALSE
='#'
12936 BUILD_CYGWIN_TRUE
='#'
12937 BUILD_CYGWIN_FALSE
=
12940 if test x
$bwin32 = xtrue ||
test x
$cygwin = xtrue
; then
12941 BUILD_WITH_NO_UNDEFINED_TRUE
=
12942 BUILD_WITH_NO_UNDEFINED_FALSE
='#'
12944 BUILD_WITH_NO_UNDEFINED_TRUE
='#'
12945 BUILD_WITH_NO_UNDEFINED_FALSE
=
12949 if test x
$bwin32 = xtrue
; then
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
12951 $as_echo_n "checking for library containing getservbyname... " >&6; }
12952 if ${ac_cv_search_getservbyname+:} false
; then :
12953 $as_echo_n "(cached) " >&6
12955 ac_func_search_save_LIBS
=$LIBS
12956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12957 /* end confdefs.h. */
12959 /* Override any GCC internal prototype to avoid an error.
12960 Use char because int might match the return type of a GCC
12961 builtin and then its argument prototype would still apply. */
12965 char getservbyname ();
12969 return getservbyname ();
12974 for ac_lib
in '' ws2_32
; do
12975 if test -z "$ac_lib"; then
12976 ac_res
="none required"
12979 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12981 if ac_fn_c_try_link
"$LINENO"; then :
12982 ac_cv_search_getservbyname
=$ac_res
12984 rm -f core conftest.err conftest.
$ac_objext \
12986 if ${ac_cv_search_getservbyname+:} false
; then :
12990 if ${ac_cv_search_getservbyname+:} false
; then :
12993 ac_cv_search_getservbyname
=no
12995 rm conftest.
$ac_ext
12996 LIBS
=$ac_func_search_save_LIBS
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
12999 $as_echo "$ac_cv_search_getservbyname" >&6; }
13000 ac_res
=$ac_cv_search_getservbyname
13001 if test "$ac_res" != no
; then :
13002 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13009 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13010 if ${ac_cv_c_const+:} false
; then :
13011 $as_echo_n "(cached) " >&6
13013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13014 /* end confdefs.h. */
13020 #ifndef __cplusplus
13021 /* Ultrix mips cc rejects this sort of thing. */
13022 typedef int charset[2];
13023 const charset cs = { 0, 0 };
13024 /* SunOS 4.1.1 cc rejects this. */
13025 char const *const *pcpcc;
13027 /* NEC SVR4.0.2 mips cc rejects this. */
13028 struct point {int x, y;};
13029 static struct point const zero = {0,0};
13030 /* AIX XL C 1.02.0.0 rejects this.
13031 It does not let you subtract one const X* pointer from another in
13032 an arm of an if-expression whose if-part is not a constant
13034 const char *g = "string";
13035 pcpcc = &g + (g ? g-g : 0);
13036 /* HPUX 7.0 cc rejects these. */
13038 ppc = (char**) pcpcc;
13039 pcpcc = (char const *const *) ppc;
13040 { /* SCO 3.2v4 cc rejects this sort of thing. */
13043 char const *s = 0 ? (char *) 0 : (char const *) 0;
13048 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13049 int x[] = {25, 17};
13050 const int *foo = &x[0];
13053 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13054 typedef const int *iptr;
13058 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13059 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13060 struct s { int j; const int *ap[3]; } bx;
13061 struct s *b = &bx; b->j = 5;
13063 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13064 const int foo = 10;
13065 if (!foo) return 0;
13067 return !cs[0] && !zero.x;
13074 if ac_fn_c_try_compile
"$LINENO"; then :
13079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13082 $as_echo "$ac_cv_c_const" >&6; }
13083 if test $ac_cv_c_const = no
; then
13085 $as_echo "#define const /**/" >>confdefs.h
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13090 $as_echo_n "checking for inline... " >&6; }
13091 if ${ac_cv_c_inline+:} false
; then :
13092 $as_echo_n "(cached) " >&6
13095 for ac_kw
in inline __inline__ __inline
; do
13096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13097 /* end confdefs.h. */
13098 #ifndef __cplusplus
13100 static $ac_kw foo_t static_foo () {return 0; }
13101 $ac_kw foo_t foo () {return 0; }
13105 if ac_fn_c_try_compile
"$LINENO"; then :
13106 ac_cv_c_inline
=$ac_kw
13108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13109 test "$ac_cv_c_inline" != no
&& break
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13114 $as_echo "$ac_cv_c_inline" >&6; }
13116 case $ac_cv_c_inline in
13119 case $ac_cv_c_inline in
13121 *) ac_val
=$ac_cv_c_inline;;
13123 cat >>confdefs.h
<<_ACEOF
13124 #ifndef __cplusplus
13125 #define inline $ac_val
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13132 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13133 if ${ac_cv_header_time+:} false
; then :
13134 $as_echo_n "(cached) " >&6
13136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13137 /* end confdefs.h. */
13138 #include <sys/types.h>
13139 #include <sys/time.h>
13145 if ((struct tm *) 0)
13151 if ac_fn_c_try_compile
"$LINENO"; then :
13152 ac_cv_header_time
=yes
13154 ac_cv_header_time
=no
13156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13159 $as_echo "$ac_cv_header_time" >&6; }
13160 if test $ac_cv_header_time = yes; then
13162 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13167 for ac_func
in gettimeofday vasprintf fcntl clock_gettime strtok_r strsep
13169 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13170 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13171 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13172 cat >>confdefs.h
<<_ACEOF
13173 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13179 for ac_func
in getnameinfo strlcpy inet_ntop inet_pton signal sigaction strtoll inet_aton pipe eventfd sendfile mmap splice arc4random arc4random_buf issetugid geteuid getegid getprotobynumber setenv unsetenv putenv sysctl
13181 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13182 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13183 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13184 cat >>confdefs.h
<<_ACEOF
13185 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13191 for ac_func
in umask
13193 ac_fn_c_check_func
"$LINENO" "umask" "ac_cv_func_umask"
13194 if test "x$ac_cv_func_umask" = xyes
; then :
13195 cat >>confdefs.h
<<_ACEOF
13196 #define HAVE_UMASK 1
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13204 $as_echo_n "checking for getaddrinfo... " >&6; }
13205 if ${libevent_cv_getaddrinfo+:} false
; then :
13206 $as_echo_n "(cached) " >&6
13208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13211 #ifdef HAVE_NETDB_H
13226 if ac_fn_c_try_link
"$LINENO"; then :
13227 libevent_cv_getaddrinfo
=yes
13229 libevent_cv_getaddrinfo
=no
13232 rm -f core conftest.err conftest.
$ac_objext \
13233 conftest
$ac_exeext conftest.
$ac_ext
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
13237 $as_echo "$libevent_cv_getaddrinfo" >&6; }
13238 if test "$libevent_cv_getaddrinfo" = "yes" ; then
13240 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13244 for ac_func
in getservbyname
13246 ac_fn_c_check_func
"$LINENO" "getservbyname" "ac_cv_func_getservbyname"
13247 if test "x$ac_cv_func_getservbyname" = xyes
; then :
13248 cat >>confdefs.h
<<_ACEOF
13249 #define HAVE_GETSERVBYNAME 1
13255 # Check for gethostbyname_r in all its glorious incompatible versions.
13256 # (This is cut-and-pasted from Tor, which based its logic on
13257 # Python's configure.in.)
13260 ac_fn_c_check_func
"$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13261 if test "x$ac_cv_func_gethostbyname_r" = xyes
; then :
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
13264 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
13266 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h. */
13277 struct hostent *h1, *h2;
13279 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13285 if ac_fn_c_try_compile
"$LINENO"; then :
13287 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13290 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
13293 $as_echo "6" >&6; }
13297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13298 /* end confdefs.h. */
13307 struct hostent *h1;
13309 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13315 if ac_fn_c_try_compile
"$LINENO"; then :
13317 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13320 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
13323 $as_echo "5" >&6; }
13327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13337 struct hostent *h1;
13338 struct hostent_data hd;
13339 (void) gethostbyname_r(cp1,h1,&hd);
13345 if ac_fn_c_try_compile
"$LINENO"; then :
13347 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13350 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
13353 $as_echo "3" >&6; }
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
13358 $as_echo "0" >&6; }
13361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13375 # The cast to long int works around a bug in the HP C Compiler
13376 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13377 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13378 # This bug is HP SR number 8606223364.
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13380 $as_echo_n "checking size of long... " >&6; }
13381 if ${ac_cv_sizeof_long+:} false
; then :
13382 $as_echo_n "(cached) " >&6
13384 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13387 if test "$ac_cv_type_long" = yes; then
13388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13390 as_fn_error
77 "cannot compute sizeof (long)
13391 See \`config.log' for more details" "$LINENO" 5; }
13393 ac_cv_sizeof_long
=0
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13399 $as_echo "$ac_cv_sizeof_long" >&6; }
13403 cat >>confdefs.h
<<_ACEOF
13404 #define SIZEOF_LONG $ac_cv_sizeof_long
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
13410 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
13411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13412 /* end confdefs.h. */
13414 #define _GNU_SOURCE
13421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13422 $EGREP "yes" >/dev
/null
2>&1; then :
13424 $as_echo "#define HAVE_SETFD 1" >>confdefs.h
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13427 $as_echo "yes" >&6; }
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13430 $as_echo "no" >&6; }
13437 if test x
$bwin32 != xtrue
; then
13438 for ac_func
in select
13440 ac_fn_c_check_func
"$LINENO" "select" "ac_cv_func_select"
13441 if test "x$ac_cv_func_select" = xyes
; then :
13442 cat >>confdefs.h
<<_ACEOF
13443 #define HAVE_SELECT 1
13449 if test "x$haveselect" = "xyes" ; then
13453 if test "x$haveselect" = "xyes"; then
13454 SELECT_BACKEND_TRUE
=
13455 SELECT_BACKEND_FALSE
='#'
13457 SELECT_BACKEND_TRUE
='#'
13458 SELECT_BACKEND_FALSE
=
13463 for ac_func
in poll
13465 ac_fn_c_check_func
"$LINENO" "poll" "ac_cv_func_poll"
13466 if test "x$ac_cv_func_poll" = xyes
; then :
13467 cat >>confdefs.h
<<_ACEOF
13468 #define HAVE_POLL 1
13474 if test "x$havepoll" = "xyes" ; then
13477 if test "x$havepoll" = "xyes"; then
13479 POLL_BACKEND_FALSE
='#'
13481 POLL_BACKEND_TRUE
='#'
13482 POLL_BACKEND_FALSE
=
13487 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13489 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
13492 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13493 DEVPOLL_BACKEND_TRUE
=
13494 DEVPOLL_BACKEND_FALSE
='#'
13496 DEVPOLL_BACKEND_TRUE
='#'
13497 DEVPOLL_BACKEND_FALSE
=
13502 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
13503 for ac_func
in kqueue
13505 ac_fn_c_check_func
"$LINENO" "kqueue" "ac_cv_func_kqueue"
13506 if test "x$ac_cv_func_kqueue" = xyes
; then :
13507 cat >>confdefs.h
<<_ACEOF
13508 #define HAVE_KQUEUE 1
13514 if test "x$havekqueue" = "xyes" ; then
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
13516 $as_echo_n "checking for working kqueue... " >&6; }
13517 if test "$cross_compiling" = yes; then :
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13519 $as_echo "no" >&6; }
13521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13522 /* end confdefs.h. */
13523 #include <sys/types.h>
13524 #include <sys/time.h>
13525 #include <sys/event.h>
13527 #include <unistd.h>
13531 main(int argc, char **argv)
13537 struct timespec ts;
13540 if (pipe(fd) == -1)
13542 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
13545 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
13548 if ((kq = kqueue()) == -1)
13551 memset(&ev, 0, sizeof(ev));
13553 ev.filter = EVFILT_WRITE;
13554 ev.flags = EV_ADD | EV_ENABLE;
13555 n = kevent(kq, &ev, 1, NULL, 0, NULL);
13559 read(fd[0], buf, sizeof(buf));
13563 n = kevent(kq, NULL, 0, &ev, 1, &ts);
13564 if (n == -1 || n == 0)
13570 if ac_fn_c_try_run
"$LINENO"; then :
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13572 $as_echo "yes" >&6; }
13574 $as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13580 $as_echo "no" >&6; }
13582 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13583 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13588 if test "x$havekqueue" = "xyes"; then
13589 KQUEUE_BACKEND_TRUE
=
13590 KQUEUE_BACKEND_FALSE
='#'
13592 KQUEUE_BACKEND_TRUE
='#'
13593 KQUEUE_BACKEND_FALSE
=
13597 haveepollsyscall
=no
13599 for ac_func
in epoll_ctl
13601 ac_fn_c_check_func
"$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
13602 if test "x$ac_cv_func_epoll_ctl" = xyes
; then :
13603 cat >>confdefs.h
<<_ACEOF
13604 #define HAVE_EPOLL_CTL 1
13610 if test "x$haveepoll" = "xyes" ; then
13612 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13616 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
13617 if test "x$haveepoll" = "xno" ; then
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
13619 $as_echo_n "checking for epoll system call... " >&6; }
13620 if test "$cross_compiling" = yes; then :
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13622 $as_echo "no" >&6; }
13624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13625 /* end confdefs.h. */
13626 #include <stdint.h>
13627 #include <sys/param.h>
13628 #include <sys/types.h>
13629 #include <sys/syscall.h>
13630 #include <sys/epoll.h>
13631 #include <unistd.h>
13634 epoll_create(int size)
13636 return (syscall(__NR_epoll_create, size));
13640 main(int argc, char **argv)
13644 epfd = epoll_create(256);
13645 exit (epfd == -1 ? 1 : 0);
13648 if ac_fn_c_try_run
"$LINENO"; then :
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13650 $as_echo "yes" >&6; }
13652 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13656 case " $LIBOBJS " in
13657 *" epoll_sub.$ac_objext "* ) ;;
13658 *) LIBOBJS
="$LIBOBJS epoll_sub.$ac_objext"
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13665 $as_echo "no" >&6; }
13667 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13668 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13673 if test "x$haveepoll" = "xyes"; then
13674 EPOLL_BACKEND_TRUE
=
13675 EPOLL_BACKEND_FALSE
='#'
13677 EPOLL_BACKEND_TRUE
='#'
13678 EPOLL_BACKEND_FALSE
=
13683 for ac_func
in port_create
13685 ac_fn_c_check_func
"$LINENO" "port_create" "ac_cv_func_port_create"
13686 if test "x$ac_cv_func_port_create" = xyes
; then :
13687 cat >>confdefs.h
<<_ACEOF
13688 #define HAVE_PORT_CREATE 1
13694 if test "x$haveeventports" = "xyes" ; then
13696 $as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
13700 if test "x$haveeventports" = "xyes"; then
13701 EVPORT_BACKEND_TRUE
=
13702 EVPORT_BACKEND_FALSE
='#'
13704 EVPORT_BACKEND_TRUE
='#'
13705 EVPORT_BACKEND_FALSE
=
13709 if test "x$bwin32" = "xtrue"; then
13713 if test "x$needsignal" = "xyes"; then
13714 SIGNAL_SUPPORT_TRUE
=
13715 SIGNAL_SUPPORT_FALSE
='#'
13717 SIGNAL_SUPPORT_TRUE
='#'
13718 SIGNAL_SUPPORT_FALSE
=
13722 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13723 if test "x$ac_cv_type_pid_t" = xyes
; then :
13727 cat >>confdefs.h
<<_ACEOF
13733 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13734 if test "x$ac_cv_type_size_t" = xyes
; then :
13738 cat >>confdefs.h
<<_ACEOF
13739 #define size_t unsigned int
13744 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13745 if test "x$ac_cv_type_ssize_t" = xyes
; then :
13749 cat >>confdefs.h
<<_ACEOF
13750 #define ssize_t int
13756 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
13757 #include <stdint.h>
13758 #elif defined(HAVE_INTTYPES_H)
13759 #include <inttypes.h>
13761 #ifdef HAVE_SYS_TYPES_H
13762 #include <sys/types.h>
13765 if test "x$ac_cv_type_uint64_t" = xyes
; then :
13767 cat >>confdefs.h
<<_ACEOF
13768 #define HAVE_UINT64_T 1
13773 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
13774 #include <stdint.h>
13775 #elif defined(HAVE_INTTYPES_H)
13776 #include <inttypes.h>
13778 #ifdef HAVE_SYS_TYPES_H
13779 #include <sys/types.h>
13782 if test "x$ac_cv_type_uint32_t" = xyes
; then :
13784 cat >>confdefs.h
<<_ACEOF
13785 #define HAVE_UINT32_T 1
13790 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
13791 #include <stdint.h>
13792 #elif defined(HAVE_INTTYPES_H)
13793 #include <inttypes.h>
13795 #ifdef HAVE_SYS_TYPES_H
13796 #include <sys/types.h>
13799 if test "x$ac_cv_type_uint16_t" = xyes
; then :
13801 cat >>confdefs.h
<<_ACEOF
13802 #define HAVE_UINT16_T 1
13807 ac_fn_c_check_type
"$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
13808 #include <stdint.h>
13809 #elif defined(HAVE_INTTYPES_H)
13810 #include <inttypes.h>
13812 #ifdef HAVE_SYS_TYPES_H
13813 #include <sys/types.h>
13816 if test "x$ac_cv_type_uint8_t" = xyes
; then :
13818 cat >>confdefs.h
<<_ACEOF
13819 #define HAVE_UINT8_T 1
13824 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
13825 #include <stdint.h>
13826 #elif defined(HAVE_INTTYPES_H)
13827 #include <inttypes.h>
13829 #ifdef HAVE_SYS_TYPES_H
13830 #include <sys/types.h>
13833 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
13835 cat >>confdefs.h
<<_ACEOF
13836 #define HAVE_UINTPTR_T 1
13843 ac_fn_c_check_type
"$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
13844 #include <sys/types.h>
13846 #ifdef HAVE_SYS_SELECT_H
13847 #include <sys/select.h>
13850 if test "x$ac_cv_type_fd_mask" = xyes
; then :
13852 cat >>confdefs.h
<<_ACEOF
13853 #define HAVE_FD_MASK 1
13860 # The cast to long int works around a bug in the HP C Compiler
13861 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13862 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13863 # This bug is HP SR number 8606223364.
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13865 $as_echo_n "checking size of long long... " >&6; }
13866 if ${ac_cv_sizeof_long_long+:} false
; then :
13867 $as_echo_n "(cached) " >&6
13869 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13872 if test "$ac_cv_type_long_long" = yes; then
13873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13875 as_fn_error
77 "cannot compute sizeof (long long)
13876 See \`config.log' for more details" "$LINENO" 5; }
13878 ac_cv_sizeof_long_long
=0
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13884 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13888 cat >>confdefs.h
<<_ACEOF
13889 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13893 # The cast to long int works around a bug in the HP C Compiler
13894 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13895 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13896 # This bug is HP SR number 8606223364.
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13898 $as_echo_n "checking size of long... " >&6; }
13899 if ${ac_cv_sizeof_long+:} false
; then :
13900 $as_echo_n "(cached) " >&6
13902 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13905 if test "$ac_cv_type_long" = yes; then
13906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13908 as_fn_error
77 "cannot compute sizeof (long)
13909 See \`config.log' for more details" "$LINENO" 5; }
13911 ac_cv_sizeof_long
=0
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13917 $as_echo "$ac_cv_sizeof_long" >&6; }
13921 cat >>confdefs.h
<<_ACEOF
13922 #define SIZEOF_LONG $ac_cv_sizeof_long
13926 # The cast to long int works around a bug in the HP C Compiler
13927 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13928 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13929 # This bug is HP SR number 8606223364.
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13931 $as_echo_n "checking size of int... " >&6; }
13932 if ${ac_cv_sizeof_int+:} false
; then :
13933 $as_echo_n "(cached) " >&6
13935 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13938 if test "$ac_cv_type_int" = yes; then
13939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13941 as_fn_error
77 "cannot compute sizeof (int)
13942 See \`config.log' for more details" "$LINENO" 5; }
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13950 $as_echo "$ac_cv_sizeof_int" >&6; }
13954 cat >>confdefs.h
<<_ACEOF
13955 #define SIZEOF_INT $ac_cv_sizeof_int
13959 # The cast to long int works around a bug in the HP C Compiler
13960 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13961 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13962 # This bug is HP SR number 8606223364.
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13964 $as_echo_n "checking size of short... " >&6; }
13965 if ${ac_cv_sizeof_short+:} false
; then :
13966 $as_echo_n "(cached) " >&6
13968 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13971 if test "$ac_cv_type_short" = yes; then
13972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13974 as_fn_error
77 "cannot compute sizeof (short)
13975 See \`config.log' for more details" "$LINENO" 5; }
13977 ac_cv_sizeof_short
=0
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13983 $as_echo "$ac_cv_sizeof_short" >&6; }
13987 cat >>confdefs.h
<<_ACEOF
13988 #define SIZEOF_SHORT $ac_cv_sizeof_short
13992 # The cast to long int works around a bug in the HP C Compiler
13993 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13994 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13995 # This bug is HP SR number 8606223364.
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13997 $as_echo_n "checking size of size_t... " >&6; }
13998 if ${ac_cv_sizeof_size_t+:} false
; then :
13999 $as_echo_n "(cached) " >&6
14001 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14004 if test "$ac_cv_type_size_t" = yes; then
14005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14007 as_fn_error
77 "cannot compute sizeof (size_t)
14008 See \`config.log' for more details" "$LINENO" 5; }
14010 ac_cv_sizeof_size_t
=0
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14016 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14020 cat >>confdefs.h
<<_ACEOF
14021 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14025 # The cast to long int works around a bug in the HP C Compiler
14026 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14027 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14028 # This bug is HP SR number 8606223364.
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14030 $as_echo_n "checking size of void *... " >&6; }
14031 if ${ac_cv_sizeof_void_p+:} false
; then :
14032 $as_echo_n "(cached) " >&6
14034 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14037 if test "$ac_cv_type_void_p" = yes; then
14038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14040 as_fn_error
77 "cannot compute sizeof (void *)
14041 See \`config.log' for more details" "$LINENO" 5; }
14043 ac_cv_sizeof_void_p
=0
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14049 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14053 cat >>confdefs.h
<<_ACEOF
14054 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14058 # The cast to long int works around a bug in the HP C Compiler
14059 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14060 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14061 # This bug is HP SR number 8606223364.
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14063 $as_echo_n "checking size of off_t... " >&6; }
14064 if ${ac_cv_sizeof_off_t+:} false
; then :
14065 $as_echo_n "(cached) " >&6
14067 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
14070 if test "$ac_cv_type_off_t" = yes; then
14071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14073 as_fn_error
77 "cannot compute sizeof (off_t)
14074 See \`config.log' for more details" "$LINENO" 5; }
14076 ac_cv_sizeof_off_t
=0
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14082 $as_echo "$ac_cv_sizeof_off_t" >&6; }
14086 cat >>confdefs.h
<<_ACEOF
14087 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14092 ac_fn_c_check_type
"$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
14093 #include <sys/types.h>
14094 #ifdef HAVE_NETINET_IN_H
14095 #include <netinet/in.h>
14097 #ifdef HAVE_NETINET_IN6_H
14098 #include <netinet/in6.h>
14100 #ifdef HAVE_SYS_SOCKET_H
14101 #include <sys/socket.h>
14103 #ifdef HAVE_NETDB_H
14107 #define WIN32_WINNT 0x400
14108 #define _WIN32_WINNT 0x400
14109 #define WIN32_LEAN_AND_MEAN
14110 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14111 #include <winsock.h>
14113 #include <winsock2.h>
14114 #include <ws2tcpip.h>
14119 if test "x$ac_cv_type_struct_in6_addr" = xyes
; then :
14121 cat >>confdefs.h
<<_ACEOF
14122 #define HAVE_STRUCT_IN6_ADDR 1
14127 ac_fn_c_check_type
"$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
14128 #include <sys/types.h>
14129 #ifdef HAVE_NETINET_IN_H
14130 #include <netinet/in.h>
14132 #ifdef HAVE_NETINET_IN6_H
14133 #include <netinet/in6.h>
14135 #ifdef HAVE_SYS_SOCKET_H
14136 #include <sys/socket.h>
14138 #ifdef HAVE_NETDB_H
14142 #define WIN32_WINNT 0x400
14143 #define _WIN32_WINNT 0x400
14144 #define WIN32_LEAN_AND_MEAN
14145 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14146 #include <winsock.h>
14148 #include <winsock2.h>
14149 #include <ws2tcpip.h>
14154 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes
; then :
14156 cat >>confdefs.h
<<_ACEOF
14157 #define HAVE_STRUCT_SOCKADDR_IN6 1
14162 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
14163 #include <sys/types.h>
14164 #ifdef HAVE_NETINET_IN_H
14165 #include <netinet/in.h>
14167 #ifdef HAVE_NETINET_IN6_H
14168 #include <netinet/in6.h>
14170 #ifdef HAVE_SYS_SOCKET_H
14171 #include <sys/socket.h>
14173 #ifdef HAVE_NETDB_H
14177 #define WIN32_WINNT 0x400
14178 #define _WIN32_WINNT 0x400
14179 #define WIN32_LEAN_AND_MEAN
14180 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14181 #include <winsock.h>
14183 #include <winsock2.h>
14184 #include <ws2tcpip.h>
14189 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
14191 cat >>confdefs.h
<<_ACEOF
14192 #define HAVE_SA_FAMILY_T 1
14197 ac_fn_c_check_type
"$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
14198 #include <sys/types.h>
14199 #ifdef HAVE_NETINET_IN_H
14200 #include <netinet/in.h>
14202 #ifdef HAVE_NETINET_IN6_H
14203 #include <netinet/in6.h>
14205 #ifdef HAVE_SYS_SOCKET_H
14206 #include <sys/socket.h>
14208 #ifdef HAVE_NETDB_H
14212 #define WIN32_WINNT 0x400
14213 #define _WIN32_WINNT 0x400
14214 #define WIN32_LEAN_AND_MEAN
14215 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14216 #include <winsock.h>
14218 #include <winsock2.h>
14219 #include <ws2tcpip.h>
14224 if test "x$ac_cv_type_struct_addrinfo" = xyes
; then :
14226 cat >>confdefs.h
<<_ACEOF
14227 #define HAVE_STRUCT_ADDRINFO 1
14232 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
14233 #include <sys/types.h>
14234 #ifdef HAVE_NETINET_IN_H
14235 #include <netinet/in.h>
14237 #ifdef HAVE_NETINET_IN6_H
14238 #include <netinet/in6.h>
14240 #ifdef HAVE_SYS_SOCKET_H
14241 #include <sys/socket.h>
14243 #ifdef HAVE_NETDB_H
14247 #define WIN32_WINNT 0x400
14248 #define _WIN32_WINNT 0x400
14249 #define WIN32_LEAN_AND_MEAN
14250 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14251 #include <winsock.h>
14253 #include <winsock2.h>
14254 #include <ws2tcpip.h>
14259 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
14261 cat >>confdefs.h
<<_ACEOF
14262 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14268 ac_fn_c_check_member
"$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
14269 #ifdef HAVE_NETINET_IN_H
14270 #include <netinet/in.h>
14272 #ifdef HAVE_NETINET_IN6_H
14273 #include <netinet/in6.h>
14275 #ifdef HAVE_SYS_SOCKET_H
14276 #include <sys/socket.h>
14279 #define WIN32_WINNT 0x400
14280 #define _WIN32_WINNT 0x400
14281 #define WIN32_LEAN_AND_MEAN
14282 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14283 #include <winsock.h>
14285 #include <winsock2.h>
14286 #include <ws2tcpip.h>
14291 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes
; then :
14293 cat >>confdefs.h
<<_ACEOF
14294 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
14299 ac_fn_c_check_member
"$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
14300 #ifdef HAVE_NETINET_IN_H
14301 #include <netinet/in.h>
14303 #ifdef HAVE_NETINET_IN6_H
14304 #include <netinet/in6.h>
14306 #ifdef HAVE_SYS_SOCKET_H
14307 #include <sys/socket.h>
14310 #define WIN32_WINNT 0x400
14311 #define _WIN32_WINNT 0x400
14312 #define WIN32_LEAN_AND_MEAN
14313 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14314 #include <winsock.h>
14316 #include <winsock2.h>
14317 #include <ws2tcpip.h>
14322 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes
; then :
14324 cat >>confdefs.h
<<_ACEOF
14325 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
14330 ac_fn_c_check_member
"$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
14331 #ifdef HAVE_NETINET_IN_H
14332 #include <netinet/in.h>
14334 #ifdef HAVE_NETINET_IN6_H
14335 #include <netinet/in6.h>
14337 #ifdef HAVE_SYS_SOCKET_H
14338 #include <sys/socket.h>
14341 #define WIN32_WINNT 0x400
14342 #define _WIN32_WINNT 0x400
14343 #define WIN32_LEAN_AND_MEAN
14344 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14345 #include <winsock.h>
14347 #include <winsock2.h>
14348 #include <ws2tcpip.h>
14353 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
; then :
14355 cat >>confdefs.h
<<_ACEOF
14356 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
14361 ac_fn_c_check_member
"$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
14362 #ifdef HAVE_NETINET_IN_H
14363 #include <netinet/in.h>
14365 #ifdef HAVE_NETINET_IN6_H
14366 #include <netinet/in6.h>
14368 #ifdef HAVE_SYS_SOCKET_H
14369 #include <sys/socket.h>
14372 #define WIN32_WINNT 0x400
14373 #define _WIN32_WINNT 0x400
14374 #define WIN32_LEAN_AND_MEAN
14375 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14376 #include <winsock.h>
14378 #include <winsock2.h>
14379 #include <ws2tcpip.h>
14384 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes
; then :
14386 cat >>confdefs.h
<<_ACEOF
14387 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
14392 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14393 #ifdef HAVE_NETINET_IN_H
14394 #include <netinet/in.h>
14396 #ifdef HAVE_NETINET_IN6_H
14397 #include <netinet/in6.h>
14399 #ifdef HAVE_SYS_SOCKET_H
14400 #include <sys/socket.h>
14403 #define WIN32_WINNT 0x400
14404 #define _WIN32_WINNT 0x400
14405 #define WIN32_LEAN_AND_MEAN
14406 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14407 #include <winsock.h>
14409 #include <winsock2.h>
14410 #include <ws2tcpip.h>
14415 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
14417 cat >>confdefs.h
<<_ACEOF
14418 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14423 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14424 #ifdef HAVE_NETINET_IN_H
14425 #include <netinet/in.h>
14427 #ifdef HAVE_NETINET_IN6_H
14428 #include <netinet/in6.h>
14430 #ifdef HAVE_SYS_SOCKET_H
14431 #include <sys/socket.h>
14434 #define WIN32_WINNT 0x400
14435 #define _WIN32_WINNT 0x400
14436 #define WIN32_LEAN_AND_MEAN
14437 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14438 #include <winsock.h>
14440 #include <winsock2.h>
14441 #include <ws2tcpip.h>
14446 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes
; then :
14448 cat >>confdefs.h
<<_ACEOF
14449 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
14457 $as_echo_n "checking for socklen_t... " >&6; }
14458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14459 /* end confdefs.h. */
14461 #include <sys/types.h>
14462 #include <sys/socket.h>
14471 if ac_fn_c_try_compile
"$LINENO"; then :
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14473 $as_echo "yes" >&6; }
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14476 $as_echo "no" >&6; }
14478 $as_echo "#define socklen_t unsigned int" >>confdefs.h
14482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
14485 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
14486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14487 /* end confdefs.h. */
14492 const char *cp = __func__;
14497 if ac_fn_c_try_compile
"$LINENO"; then :
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14499 $as_echo "yes" >&6; }
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14502 $as_echo "no" >&6; }
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
14504 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
14505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14506 /* end confdefs.h. */
14511 const char *cp = __FUNCTION__;
14516 if ac_fn_c_try_compile
"$LINENO"; then :
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14518 $as_echo "yes" >&6; }
14520 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14524 $as_echo "no" >&6; }
14526 $as_echo "#define __func__ __FILE__" >>confdefs.h
14529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14534 # check if we can compile with pthreads
14536 if test x
$bwin32 != xtrue
&& test "$enable_thread_support" != "no"; then
14541 ac_cpp
='$CPP $CPPFLAGS'
14542 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14543 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14544 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14548 # We used to check for pthread.h first, but this fails if pthread.h
14549 # requires special compiler flags (e.g. on True64 or Sequent).
14550 # It gets checked for in the link test anyway.
14552 # First of all, check if the user has set any of the PTHREAD_LIBS,
14553 # etcetera environment variables, and if threads linking works using
14555 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
14556 save_CFLAGS
="$CFLAGS"
14557 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14559 LIBS
="$PTHREAD_LIBS $LIBS"
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14561 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14563 /* end confdefs.h. */
14565 /* Override any GCC internal prototype to avoid an error.
14566 Use char because int might match the return type of a GCC
14567 builtin and then its argument prototype would still apply. */
14571 char pthread_join ();
14575 return pthread_join ();
14580 if ac_fn_c_try_link
"$LINENO"; then :
14583 rm -f core conftest.err conftest.
$ac_objext \
14584 conftest
$ac_exeext conftest.
$ac_ext
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14586 $as_echo "$acx_pthread_ok" >&6; }
14587 if test x
"$acx_pthread_ok" = xno
; then
14592 CFLAGS
="$save_CFLAGS"
14595 # We must check for the threads library under a number of different
14596 # names; the ordering is very important because some systems
14597 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14598 # libraries is broken (non-POSIX).
14600 # Create a list of thread flags to try. Items starting with a "-" are
14601 # C compiler flags, and other items are library names, except for "none"
14602 # which indicates that we try without any flags at all, and "pthread-config"
14603 # which is a program returning the flags for the Pth emulation library.
14605 acx_pthread_flags
="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14607 # The ordering *is* (sometimes) important. Some notes on the
14608 # individual items follow:
14610 # pthreads: AIX (must check this before -lpthread)
14611 # none: in case threads are in libc; should be tried before -Kthread and
14612 # other compiler flags to prevent continual compiler warnings
14613 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14614 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14615 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14616 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14617 # -pthreads: Solaris/gcc
14618 # -mthreads: Mingw32/gcc, Lynx/gcc
14619 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14620 # doesn't hurt to check since this sometimes defines pthreads too;
14621 # also defines -D_REENTRANT)
14622 # ... -mt is also the pthreads flag for HP/aCC
14623 # pthread: Linux, etcetera
14624 # --thread-safe: KAI C++
14625 # pthread-config: use pthread-config program (for GNU Pth library)
14627 case "${host_cpu}-${host_os}" in
14630 # On Solaris (at least, for some versions), libc contains stubbed
14631 # (non-functional) versions of the pthreads routines, so link-based
14632 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
14633 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
14634 # a function called by this macro, so we could check for that, but
14635 # who knows whether they'll stub that too in a future libc.) So,
14636 # we'll just look for -pthreads and -lpthread first:
14638 acx_pthread_flags
="-pthreads pthread -mt -pthread $acx_pthread_flags"
14642 if test x
"$acx_pthread_ok" = xno
; then
14643 for flag
in $acx_pthread_flags; do
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14648 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14653 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
14654 PTHREAD_CFLAGS
="$flag"
14658 # Extract the first word of "pthread-config", so it can be a program name with args.
14659 set dummy pthread-config
; ac_word
=$2
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14661 $as_echo_n "checking for $ac_word... " >&6; }
14662 if ${ac_cv_prog_acx_pthread_config+:} false
; then :
14663 $as_echo_n "(cached) " >&6
14665 if test -n "$acx_pthread_config"; then
14666 ac_cv_prog_acx_pthread_config
="$acx_pthread_config" # Let the user override the test.
14668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14669 for as_dir
in $PATH
14672 test -z "$as_dir" && as_dir
=.
14673 for ac_exec_ext
in '' $ac_executable_extensions; do
14674 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14675 ac_cv_prog_acx_pthread_config
="yes"
14676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14683 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config
="no"
14686 acx_pthread_config
=$ac_cv_prog_acx_pthread_config
14687 if test -n "$acx_pthread_config"; then
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14689 $as_echo "$acx_pthread_config" >&6; }
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14692 $as_echo "no" >&6; }
14696 if test x
"$acx_pthread_config" = xno
; then continue; fi
14697 PTHREAD_CFLAGS
="`pthread-config --cflags`"
14698 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14703 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14704 PTHREAD_LIBS
="-l$flag"
14709 save_CFLAGS
="$CFLAGS"
14710 LIBS
="$PTHREAD_LIBS $LIBS"
14711 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14713 # Check for various functions. We must include pthread.h,
14714 # since some functions may be macros. (On the Sequent, we
14715 # need a special flag -Kthread to make this header compile.)
14716 # We check for pthread_join because it is in -lpthread on IRIX
14717 # while pthread_create is in libc. We check for pthread_attr_init
14718 # due to DEC craziness with -lpthreads. We check for
14719 # pthread_cleanup_push because it is one of the few pthread
14720 # functions on Solaris that doesn't have a non-functional libc stub.
14721 # We try pthread_create on general principles.
14722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14723 /* end confdefs.h. */
14724 #include <pthread.h>
14728 pthread_t th; pthread_join(th, 0);
14729 pthread_attr_init(0); pthread_cleanup_push(0, 0);
14730 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14735 if ac_fn_c_try_link
"$LINENO"; then :
14738 rm -f core conftest.err conftest.
$ac_objext \
14739 conftest
$ac_exeext conftest.
$ac_ext
14742 CFLAGS
="$save_CFLAGS"
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14745 $as_echo "$acx_pthread_ok" >&6; }
14746 if test "x$acx_pthread_ok" = xyes
; then
14755 # Various other checks:
14756 if test "x$acx_pthread_ok" = xyes
; then
14758 LIBS
="$PTHREAD_LIBS $LIBS"
14759 save_CFLAGS
="$CFLAGS"
14760 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14762 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14764 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14766 for attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
14767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14768 /* end confdefs.h. */
14769 #include <pthread.h>
14773 int attr=$attr; return attr;
14778 if ac_fn_c_try_link
"$LINENO"; then :
14779 attr_name
=$attr; break
14781 rm -f core conftest.err conftest.
$ac_objext \
14782 conftest
$ac_exeext conftest.
$ac_ext
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14785 $as_echo "$attr_name" >&6; }
14786 if test "$attr_name" != PTHREAD_CREATE_JOINABLE
; then
14788 cat >>confdefs.h
<<_ACEOF
14789 #define PTHREAD_CREATE_JOINABLE $attr_name
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14795 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14797 case "${host_cpu}-${host_os}" in
14798 *-aix* |
*-freebsd* |
*-darwin*) flag
="-D_THREAD_SAFE";;
14799 *solaris
* |
*-osf* |
*-hpux*) flag
="-D_REENTRANT";;
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14802 $as_echo "${flag}" >&6; }
14803 if test "x$flag" != xno
; then
14804 PTHREAD_CFLAGS
="$flag $PTHREAD_CFLAGS"
14808 CFLAGS
="$save_CFLAGS"
14810 # More AIX lossage: must compile with xlc_r or cc_r
14811 if test x
"$GCC" != xyes
; then
14812 for ac_prog
in xlc_r cc_r
14814 # Extract the first word of "$ac_prog", so it can be a program name with args.
14815 set dummy
$ac_prog; ac_word
=$2
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14817 $as_echo_n "checking for $ac_word... " >&6; }
14818 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
14819 $as_echo_n "(cached) " >&6
14821 if test -n "$PTHREAD_CC"; then
14822 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
14824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14825 for as_dir
in $PATH
14828 test -z "$as_dir" && as_dir
=.
14829 for ac_exec_ext
in '' $ac_executable_extensions; do
14830 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14831 ac_cv_prog_PTHREAD_CC
="$ac_prog"
14832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14841 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
14842 if test -n "$PTHREAD_CC"; then
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14844 $as_echo "$PTHREAD_CC" >&6; }
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14847 $as_echo "no" >&6; }
14851 test -n "$PTHREAD_CC" && break
14853 test -n "$PTHREAD_CC" || PTHREAD_CC
="${CC}"
14866 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14867 if test x
"$acx_pthread_ok" = xyes
; then
14870 $as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
14879 ac_cpp
='$CPP $CPPFLAGS'
14880 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14881 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14882 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14885 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14886 # The cast to long int works around a bug in the HP C Compiler
14887 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14888 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14889 # This bug is HP SR number 8606223364.
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
14891 $as_echo_n "checking size of pthread_t... " >&6; }
14892 if ${ac_cv_sizeof_pthread_t+:} false
; then :
14893 $as_echo_n "(cached) " >&6
14895 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default
14896 #include <pthread.h>
14901 if test "$ac_cv_type_pthread_t" = yes; then
14902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14904 as_fn_error
77 "cannot compute sizeof (pthread_t)
14905 See \`config.log' for more details" "$LINENO" 5; }
14907 ac_cv_sizeof_pthread_t
=0
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
14913 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
14917 cat >>confdefs.h
<<_ACEOF
14918 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14923 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
14932 # check if we should compile locking into the library
14933 if test x
$enable_thread_support = xno
; then
14935 $as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
14939 # check if we should hard-code the mm functions.
14940 if test x
$enable_malloc_replacement = xno
; then
14942 $as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
14946 # check if we should hard-code debugging out
14947 if test x
$enable_debug_mode = xno
; then
14949 $as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
14953 # check if we have and should use openssl
14954 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
14963 # Add some more warnings which we use in development but not in the
14964 # released versions. (Some relevant gcc versions can't handle these.)
14965 if test x
$enable_gcc_warnings = xyes
&& test "$GCC" = "yes"; then
14967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h. */
14974 #if !defined(__GNUC__) || (__GNUC__ < 4)
14981 if ac_fn_c_try_compile
"$LINENO"; then :
14986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14989 /* end confdefs.h. */
14995 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
15002 if ac_fn_c_try_compile
"$LINENO"; then :
15007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15010 /* end confdefs.h. */
15016 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
15023 if ac_fn_c_try_compile
"$LINENO"; then :
15028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15031 /* end confdefs.h. */
15037 #if !defined(__clang__)
15044 if ac_fn_c_try_compile
"$LINENO"; then :
15049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15051 CFLAGS
="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror"
15052 CFLAGS
="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
15054 if test x
$have_gcc4 = xyes
; then
15055 # These warnings break gcc 3.3.5 and work on gcc 4.0.2
15056 CFLAGS
="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
15057 #CFLAGS="$CFLAGS -Wold-style-definition"
15060 if test x
$have_gcc42 = xyes
; then
15061 # These warnings break gcc 4.0.2 and work on gcc 4.2
15062 CFLAGS
="$CFLAGS -Waddress"
15065 if test x
$have_gcc42 = xyes
&& test x
$have_clang = xno
; then
15066 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
15067 CFLAGS
="$CFLAGS -Wnormalized=id -Woverride-init"
15070 if test x
$have_gcc45 = xyes
; then
15071 # These warnings work on gcc 4.5
15072 CFLAGS
="$CFLAGS -Wlogical-op"
15075 if test x
$have_clang = xyes
; then
15076 # Disable the unused-function warnings, because these trigger
15077 # for minheap-internal.h related code.
15078 CFLAGS
="$CFLAGS -Wno-unused-function"
15080 # clang on macosx emits warnigns for each directory specified which
15081 # isn't "used" generating a lot of build noise (typically 3 warnings
15085 CFLAGS
="$CFLAGS -Qunused-arguments"
15090 ##This will break the world on some 64-bit architectures
15091 # CFLAGS="$CFLAGS -Winline"
15095 LIBEVENT_GC_SECTIONS
=
15096 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
15098 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
15099 if ${libevent_cv_gc_sections_runs+:} false
; then :
15100 $as_echo_n "(cached) " >&6
15103 origCFLAGS
="$CFLAGS"
15104 CFLAGS
="$CFLAGS -Wl,--gc-sections"
15105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15106 /* end confdefs.h. */
15108 #include <stdlib.h>
15118 int read_success_once;
15120 fpC = fopen("conftest.c", "r");
15124 cch = fread(buf, sizeof(buf), 1, fpC);
15125 read_success_once |= (0 != cch);
15126 } while (0 != cch);
15127 if (!read_success_once)
15131 if (0 != fclose(fpC))
15134 exit(EXIT_SUCCESS);
15141 if ac_fn_c_try_link
"$LINENO"; then :
15143 if test "X$cross_compiling" = "Xyes" ||
grep gc-sections conftest.err
; then
15144 libevent_cv_gc_sections_runs
=no
15146 libevent_cv_gc_sections_runs
=no
15147 .
/conftest
>/dev
/null
2>&1 && libevent_cv_gc_sections_runs
=yes
15151 libevent_cv_gc_sections_runs
=no
15154 rm -f core conftest.err conftest.
$ac_objext \
15155 conftest
$ac_exeext conftest.
$ac_ext
15156 CFLAGS
="$origCFLAGS"
15157 { origCFLAGS
=; unset origCFLAGS
;}
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
15162 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
15163 case "$libevent_cv_gc_sections_runs" in
15165 CFLAGS
="-ffunction-sections -fdata-sections $CFLAGS"
15166 LIBEVENT_GC_SECTIONS
="-Wl,--gc-sections"
15172 if test "$enable_libevent_install" = "yes"; then
15173 INSTALL_LIBEVENT_TRUE
=
15174 INSTALL_LIBEVENT_FALSE
='#'
15176 INSTALL_LIBEVENT_TRUE
='#'
15177 INSTALL_LIBEVENT_FALSE
=
15181 ac_config_files
="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
15183 ac_config_files
="$ac_config_files Makefile include/Makefile test/Makefile sample/Makefile"
15185 cat >confcache
<<\_ACEOF
15186 # This file is a shell script that caches the results of configure
15187 # tests run on this system so they can be shared between configure
15188 # scripts and configure runs, see configure's option --config-cache.
15189 # It is not useful on other systems. If it contains results you don't
15190 # want to keep, you may remove or edit it.
15192 # config.status only pays attention to the cache file if you give it
15193 # the --recheck option to rerun configure.
15195 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15196 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15197 # following values.
15201 # The following way of writing the cache mishandles newlines in values,
15202 # but we know of no workaround that is simple, portable, and efficient.
15203 # So, we kill variables containing newlines.
15204 # Ultrix sh set writes to stderr and can't be redirected directly,
15205 # and sets the high bit in the cache file unless we assign to the vars.
15207 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15208 eval ac_val
=\$
$ac_var
15212 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15213 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15216 _ | IFS | as_nl
) ;; #(
15217 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15218 *) { eval $ac_var=; unset $ac_var;} ;;
15224 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15225 *${as_nl}ac_space
=\
*)
15226 # `set' does not quote correctly, so add quotes: double-quote
15227 # substitution turns \\\\ into \\, and sed turns \\ into \.
15230 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15233 # `set' quotes correctly as required by POSIX, so do not add quotes.
15234 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15243 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15245 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15247 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15248 if test -w "$cache_file"; then
15249 if test "x$cache_file" != "x/dev/null"; then
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15251 $as_echo "$as_me: updating cache $cache_file" >&6;}
15252 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15253 cat confcache
>"$cache_file"
15255 case $cache_file in #(
15257 mv -f confcache
"$cache_file"$$
&&
15258 mv -f "$cache_file"$$
"$cache_file" ;; #(
15260 mv -f confcache
"$cache_file" ;;
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15266 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15271 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15272 # Let make expand exec_prefix.
15273 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15275 DEFS
=-DHAVE_CONFIG_H
15280 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15281 # 1. Remove the extension, and $U if already installed.
15282 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15283 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15284 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15285 # will be set to the directory where LIBOBJS objects are built.
15286 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15287 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15289 LIBOBJS
=$ac_libobjs
15291 LTLIBOBJS
=$ac_ltlibobjs
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15295 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15296 if test -n "$am_sleep_pid"; then
15297 # Hide warnings about reused PIDs.
15298 wait $am_sleep_pid 2>/dev
/null
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15301 $as_echo "done" >&6; }
15302 if test -n "$EXEEXT"; then
15304 am__EXEEXT_FALSE
='#'
15306 am__EXEEXT_TRUE
='#'
15310 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15311 as_fn_error $?
"conditional \"AMDEP\" was never defined.
15312 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15314 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15315 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
15316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15318 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
15319 as_fn_error $?
"conditional \"BUILD_REGRESS\" was never defined.
15320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15322 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
15323 as_fn_error $?
"conditional \"ZLIB_REGRESS\" was never defined.
15324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15326 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
15327 as_fn_error $?
"conditional \"BUILD_WIN32\" was never defined.
15328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15330 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
15331 as_fn_error $?
"conditional \"BUILD_CYGWIN\" was never defined.
15332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15334 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
15335 as_fn_error $?
"conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
15336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15338 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
15339 as_fn_error $?
"conditional \"SELECT_BACKEND\" was never defined.
15340 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15342 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
15343 as_fn_error $?
"conditional \"POLL_BACKEND\" was never defined.
15344 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15346 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
15347 as_fn_error $?
"conditional \"DEVPOLL_BACKEND\" was never defined.
15348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15350 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
15351 as_fn_error $?
"conditional \"KQUEUE_BACKEND\" was never defined.
15352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15354 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
15355 as_fn_error $?
"conditional \"EPOLL_BACKEND\" was never defined.
15356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15358 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
15359 as_fn_error $?
"conditional \"EVPORT_BACKEND\" was never defined.
15360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15362 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
15363 as_fn_error $?
"conditional \"SIGNAL_SUPPORT\" was never defined.
15364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15366 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
15367 as_fn_error $?
"conditional \"PTHREADS\" was never defined.
15368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15370 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
15371 as_fn_error $?
"conditional \"OPENSSL\" was never defined.
15372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15374 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
15375 as_fn_error $?
"conditional \"INSTALL_LIBEVENT\" was never defined.
15376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15379 : "${CONFIG_STATUS=./config.status}"
15381 ac_clean_files_save
=$ac_clean_files
15382 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15384 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15386 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15388 # Generated by $as_me.
15389 # Run this file to recreate the current configuration.
15390 # Compiler output produced by configure, useful for debugging
15391 # configure, is in config.log if it exists.
15394 ac_cs_recheck=false
15397 SHELL=\${CONFIG_SHELL-$SHELL}
15400 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15401 ## -------------------- ##
15402 ## M4sh Initialization. ##
15403 ## -------------------- ##
15405 # Be more Bourne compatible
15406 DUALCASE
=1; export DUALCASE
# for MKS sh
15407 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15410 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15411 # is contrary to our usage. Disable this feature.
15412 alias -g '${1+"$@"}'='"$@"'
15413 setopt NO_GLOB_SUBST
15415 case `(set -o) 2>/dev/null` in #(
15427 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15428 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15429 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15430 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15431 # Prefer a ksh shell builtin over an external printf program on Solaris,
15432 # but without wasting forks for bash or zsh.
15433 if test -z "$BASH_VERSION$ZSH_VERSION" \
15434 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15435 as_echo='print
-r --'
15436 as_echo_n='print
-rn --'
15437 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15438 as_echo='printf %s
\n'
15439 as_echo_n='printf %s
'
15441 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15442 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15443 as_echo_n='/usr
/ucb
/echo -n'
15445 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15446 as_echo_n_body='eval
15450 expr "X$arg" : "X\\(.*\\)$as_nl";
15451 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15453 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15455 export as_echo_n_body
15456 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15458 export as_echo_body
15459 as_echo='sh
-c $as_echo_body as_echo
'
15462 # The user is always right.
15463 if test "${PATH_SEPARATOR+set}" != set; then
15465 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15466 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15473 # We need space, tab and new line, in precisely that order. Quoting is
15474 # there to prevent editors from complaining about space-tab.
15475 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15476 # splitting by setting IFS to empty value.)
15479 # Find who we are. Look in the path if we contain no directory separator.
15482 *[\\/]* ) as_myself=$0 ;;
15483 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15484 for as_dir in $PATH
15487 test -z "$as_dir" && as_dir=.
15488 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15494 # We did not find ourselves, most probably we were run as `sh COMMAND'
15495 # in which case we are not to be found in the path.
15496 if test "x$as_myself" = x
; then
15499 if test ! -f "$as_myself"; then
15500 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15504 # Unset variables that we do not need and which cause bugs (e.g. in
15505 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15506 # suppresses any "Segmentation fault" message there. '((' could
15507 # trigger a bug in pdksh 5.2.14.
15508 for as_var
in BASH_ENV ENV MAIL MAILPATH
15509 do eval test x\
${$as_var+set} = xset \
15510 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15523 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15526 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15527 # ----------------------------------------
15528 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15529 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15530 # script with STATUS, using 1 if that was 0.
15533 as_status
=$1; test $as_status -eq 0 && as_status
=1
15535 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15536 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15538 $as_echo "$as_me: error: $2" >&2
15539 as_fn_exit
$as_status
15543 # as_fn_set_status STATUS
15544 # -----------------------
15545 # Set $? to STATUS, without forking.
15546 as_fn_set_status
()
15549 } # as_fn_set_status
15551 # as_fn_exit STATUS
15552 # -----------------
15553 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15557 as_fn_set_status
$1
15563 # Portably unset VAR.
15566 { eval $1=; unset $1;}
15568 as_unset
=as_fn_unset
15569 # as_fn_append VAR VALUE
15570 # ----------------------
15571 # Append the text in VALUE to the end of the definition contained in VAR. Take
15572 # advantage of any shell optimizations that allow amortized linear growth over
15573 # repeated appends, instead of the typical quadratic growth present in naive
15575 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15576 eval 'as_fn_append ()
15587 # as_fn_arith ARG...
15588 # ------------------
15589 # Perform arithmetic evaluation on the ARGs, and store the result in the
15590 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15591 # must be portable across $(()) and expr.
15592 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15593 eval 'as_fn_arith ()
15600 as_val
=`expr "$@" || test $? -eq 1`
15605 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15606 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15612 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15613 as_basename
=basename
15618 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15624 as_me
=`$as_basename -- "$0" ||
15625 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15626 X"$0" : 'X\(//\)$' \| \
15627 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15629 sed '/^.*\/\([^/][^/]*\)\/*$/{
15643 # Avoid depending upon Character Ranges.
15644 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15645 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15646 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15647 as_cr_digits
='0123456789'
15648 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15650 ECHO_C
= ECHO_N
= ECHO_T
=
15651 case `echo -n x` in #(((((
15653 case `echo 'xy\c'` in
15654 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15656 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15663 rm -f conf$$ conf$$.exe conf$$.
file
15664 if test -d conf$$.dir
; then
15665 rm -f conf$$.dir
/conf$$.
file
15668 mkdir conf$$.dir
2>/dev
/null
15670 if (echo >conf$$.
file) 2>/dev
/null
; then
15671 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15673 # ... but there are two gotchas:
15674 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15675 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15676 # In both cases, we have to default to `cp -pR'.
15677 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15679 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15687 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15688 rmdir conf$$.dir
2>/dev
/null
15693 # Create "$as_dir" as a directory, including parents if necessary.
15698 -*) as_dir
=.
/$as_dir;;
15700 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15704 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15705 *) as_qdir
=$as_dir;;
15707 as_dirs
="'$as_qdir' $as_dirs"
15708 as_dir
=`$as_dirname -- "$as_dir" ||
15709 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15710 X"$as_dir" : 'X\(//\)[^/]' \| \
15711 X"$as_dir" : 'X\(//\)$' \| \
15712 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15713 $as_echo X"$as_dir" |
15714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15718 /^X\(\/\/\)[^/].*/{
15731 test -d "$as_dir" && break
15733 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15734 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15738 if mkdir
-p .
2>/dev
/null
; then
15739 as_mkdir_p
='mkdir -p "$as_dir"'
15741 test -d .
/-p && rmdir .
/-p
15746 # as_fn_executable_p FILE
15747 # -----------------------
15748 # Test if FILE is an executable regular file.
15749 as_fn_executable_p
()
15751 test -f "$1" && test -x "$1"
15752 } # as_fn_executable_p
15753 as_test_x
='test -x'
15754 as_executable_p
=as_fn_executable_p
15756 # Sed expression to map a string onto a valid CPP name.
15757 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15759 # Sed expression to map a string onto a valid variable name.
15760 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15764 ## ----------------------------------- ##
15765 ## Main body of $CONFIG_STATUS script. ##
15766 ## ----------------------------------- ##
15768 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15771 # Save the log message, to keep $0 and so on meaningful, and to
15772 # report actual input values of CONFIG_FILES etc. instead of their
15773 # values after options handling.
15775 This file was extended by $as_me, which was
15776 generated by GNU Autoconf 2.69. Invocation command line was
15778 CONFIG_FILES = $CONFIG_FILES
15779 CONFIG_HEADERS = $CONFIG_HEADERS
15780 CONFIG_LINKS = $CONFIG_LINKS
15781 CONFIG_COMMANDS = $CONFIG_COMMANDS
15784 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15789 case $ac_config_files in *"
15790 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15793 case $ac_config_headers in *"
15794 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15799 # Files that config.status was made for.
15800 config_files="$ac_config_files"
15801 config_headers="$ac_config_headers"
15802 config_commands="$ac_config_commands"
15806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15808 \`$as_me' instantiates files and other configuration actions
15809 from templates according to the current configuration. Unless the files
15810 and actions are specified as TAGs, all are instantiated by default.
15812 Usage: $0 [OPTION]... [TAG]...
15814 -h, --help print this help, then exit
15815 -V, --version print version number and configuration settings, then exit
15816 --config print configuration, then exit
15817 -q, --quiet, --silent
15818 do not print progress messages
15819 -d, --debug don't remove temporary files
15820 --recheck update $as_me by reconfiguring in the same conditions
15821 --file=FILE[:TEMPLATE]
15822 instantiate the configuration file FILE
15823 --header=FILE[:TEMPLATE]
15824 instantiate the configuration header FILE
15826 Configuration files:
15829 Configuration headers:
15832 Configuration commands:
15835 Report bugs to the package provider."
15838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15839 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15842 configured by $0, generated by GNU Autoconf 2.69,
15843 with options \\"\$ac_cs_config\\"
15845 Copyright (C) 2012 Free Software Foundation, Inc.
15846 This config.status script is free software; the Free Software Foundation
15847 gives unlimited permission to copy, distribute and modify it."
15854 test -n "\$AWK" || AWK=awk
15857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15858 # The default lists apply if the user does not specify any file.
15864 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15865 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15869 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15881 # Handling of the options.
15882 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15884 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15885 $as_echo "$ac_cs_version"; exit ;;
15886 --config |
--confi |
--conf |
--con |
--co |
--c )
15887 $as_echo "$ac_cs_config"; exit ;;
15888 --debug |
--debu |
--deb |
--de |
--d |
-d )
15890 --file |
--fil |
--fi |
--f )
15893 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15894 '') as_fn_error $?
"missing file argument" ;;
15896 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15897 ac_need_defaults
=false
;;
15898 --header |
--heade |
--head |
--hea )
15901 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15903 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15904 ac_need_defaults
=false
;;
15906 # Conflict between --help and --header
15907 as_fn_error $?
"ambiguous option: \`$1'
15908 Try \`$0 --help' for more information.";;
15909 --help |
--hel |
-h )
15910 $as_echo "$ac_cs_usage"; exit ;;
15911 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15912 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15915 # This is an error.
15916 -*) as_fn_error $?
"unrecognized option: \`$1'
15917 Try \`$0 --help' for more information." ;;
15919 *) as_fn_append ac_config_targets
" $1"
15920 ac_need_defaults
=false
;;
15926 ac_configure_extra_args
=
15928 if $ac_cs_silent; then
15930 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15935 if \$ac_cs_recheck; then
15936 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15938 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15939 CONFIG_SHELL='$SHELL'
15940 export CONFIG_SHELL
15945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15949 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15950 ## Running $as_me. ##
15956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15960 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15963 # The HP-UX ksh and POSIX shell print the target directory to stdout
15964 # if CDPATH is set.
15965 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15967 sed_quote_subst='$sed_quote_subst'
15968 double_quote_subst='$double_quote_subst'
15969 delay_variable_subst='$delay_variable_subst'
15970 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15971 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15972 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15973 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15974 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15975 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15976 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15977 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15978 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15979 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15980 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15981 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15982 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15983 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15984 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15985 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15986 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15987 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15988 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15989 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15990 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15991 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15992 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15993 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15994 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15995 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15996 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15997 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15998 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15999 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16000 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16001 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16002 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16003 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16004 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16005 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16006 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16007 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16008 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16009 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16010 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16011 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16012 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16013 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16014 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16015 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16016 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16017 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16018 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16019 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16020 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16021 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16022 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16023 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16024 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16025 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16026 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"`'
16027 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16028 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16029 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16030 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16031 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16032 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16033 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16034 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16035 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16036 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16037 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16038 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16039 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16040 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16041 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16042 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16043 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16044 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16045 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16046 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16047 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16048 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16049 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16050 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16051 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16052 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16053 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16054 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16055 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16056 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16057 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16058 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16059 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16060 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16061 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16062 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16063 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16064 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16065 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16066 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16067 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16068 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16069 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16070 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16071 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16072 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16073 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16074 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16075 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16076 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16077 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16078 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16079 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16080 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16081 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16082 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16083 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16084 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16085 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16086 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16087 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16088 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16089 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16090 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16091 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16092 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16093 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16094 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16095 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16096 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16097 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16098 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16099 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16102 LTCFLAGS='$LTCFLAGS'
16103 compiler='$compiler_DEFAULT'
16105 # A function that is used when there is no print builtin or printf.
16106 func_fallback_echo ()
16108 eval 'cat <<_LTECHO_EOF
16113 # Quote evaled strings.
16128 deplibs_check_method \
16133 sharedlib_from_linklib_cmd \
16136 archiver_list_spec \
16142 lt_cv_sys_global_symbol_pipe \
16143 lt_cv_sys_global_symbol_to_cdecl \
16144 lt_cv_sys_global_symbol_to_c_name_address \
16145 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16146 nm_file_list_spec \
16147 lt_prog_compiler_no_builtin_flag \
16148 lt_prog_compiler_pic \
16149 lt_prog_compiler_wl \
16150 lt_prog_compiler_static \
16151 lt_cv_prog_compiler_c_o \
16160 export_dynamic_flag_spec \
16161 whole_archive_flag_spec \
16162 compiler_needs_object \
16164 allow_undefined_flag \
16165 no_undefined_flag \
16166 hardcode_libdir_flag_spec \
16167 hardcode_libdir_separator \
16171 variables_saved_for_relink \
16173 library_names_spec \
16175 install_override_mode \
16179 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16180 *[\\\\\\\`\\"\\\$]*)
16181 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16184 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16189 # Double-quote double-evaled strings.
16190 for var in reload_cmds \
16191 old_postinstall_cmds \
16192 old_postuninstall_cmds \
16194 extract_expsyms_cmds \
16195 old_archive_from_new_cmds \
16196 old_archive_from_expsyms_cmds \
16198 archive_expsym_cmds \
16200 module_expsym_cmds \
16201 export_symbols_cmds \
16205 postuninstall_cmds \
16207 sys_lib_search_path_spec \
16208 sys_lib_dlsearch_path_spec; do
16209 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16210 *[\\\\\\\`\\"\\\$]*)
16211 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16214 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16219 ac_aux_dir='$ac_aux_dir'
16220 xsi_shell='$xsi_shell'
16221 lt_shell_append='$lt_shell_append'
16223 # See if we are running on zsh, and set the options which allow our
16224 # commands through without removal of \ escapes INIT.
16225 if test -n "\${ZSH_VERSION+set}" ; then
16226 setopt NO_GLOB_SUBST
16232 TIMESTAMP='$TIMESTAMP'
16241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16243 # Handling of arguments.
16244 for ac_config_target
in $ac_config_targets
16246 case $ac_config_target in
16247 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
16248 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16249 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
16250 "libevent.pc") CONFIG_FILES
="$CONFIG_FILES libevent.pc" ;;
16251 "libevent_openssl.pc") CONFIG_FILES
="$CONFIG_FILES libevent_openssl.pc" ;;
16252 "libevent_pthreads.pc") CONFIG_FILES
="$CONFIG_FILES libevent_pthreads.pc" ;;
16253 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16254 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
16255 "test/Makefile") CONFIG_FILES
="$CONFIG_FILES test/Makefile" ;;
16256 "sample/Makefile") CONFIG_FILES
="$CONFIG_FILES sample/Makefile" ;;
16258 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16263 # If the user did not use the arguments to specify the items to instantiate,
16264 # then the envvar interface is used. Set only those that are not.
16265 # We use the long form for the default assignment because of an extremely
16266 # bizarre bug on SunOS 4.1.3.
16267 if $ac_need_defaults; then
16268 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16269 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16270 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16273 # Have a temporary directory for convenience. Make it in the build tree
16274 # simply because there is no reason against having it here, and in addition,
16275 # creating and moving files from /tmp can sometimes cause problems.
16276 # Hook for its removal unless debugging.
16277 # Note that there is a small window in which the directory will not be cleaned:
16278 # after its creation but before its name has been assigned to `$tmp'.
16282 trap 'exit_status=$?
16283 : "${ac_tmp:=$tmp}"
16284 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16286 trap 'as_fn_exit 1' 1 2 13 15
16288 # Create a (secure) tmp directory for tmp files.
16291 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16295 tmp
=.
/conf$$
-$RANDOM
16296 (umask 077 && mkdir
"$tmp")
16297 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16300 # Set up the scripts for CONFIG_FILES section.
16301 # No need to generate them if there are no CONFIG_FILES.
16302 # This happens for instance with `./config.status config.h'.
16303 if test -n "$CONFIG_FILES"; then
16306 ac_cr
=`echo X | tr X '\015'`
16307 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16308 # But we know of no other shell where ac_cr would be empty at this
16309 # point, so we can use a bashism as a fallback.
16310 if test "x$ac_cr" = x
; then
16311 eval ac_cr
=\$
\'\\r
\'
16313 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16314 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16317 ac_cs_awk_cr
=$ac_cr
16320 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16325 echo "cat >conf$$subs.awk <<_ACEOF" &&
16326 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16328 } >conf$$subs.sh ||
16329 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16330 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16332 for ac_last_try in false false false false false :; do
16333 . ./conf$$subs.sh ||
16334 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16336 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16337 if test $ac_delim_n = $ac_delim_num; then
16339 elif $ac_last_try; then
16340 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16342 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16345 rm -f conf$$subs.sh
16347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16348 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16352 s/^/S["/; s
/!.
*/"]=/
16362 s/\(.\{148\}\)..*/\1/
16364 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16369 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16376 s/\(.\{148\}\)..*/\1/
16378 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16382 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16387 ' <conf$$subs.awk | sed '
16392 ' >>$CONFIG_STATUS || ac_write_fail=1
16393 rm -f conf$$subs.awk
16394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16396 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16397 for (key in S) S_is_set[key] = 1
16403 nfields = split(line, field, "@
")
16405 len = length(field[1])
16406 for (i = 2; i < nfields; i++) {
16408 keylen = length(key)
16409 if (S_is_set[key]) {
16411 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16412 len += length(value) + length(field[++i])
16423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16424 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16425 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16428 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16429 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16432 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16433 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16434 # trailing colons and then remove the whole line if VPATH becomes empty
16435 # (actually we leave an empty line to preserve line numbers).
16436 if test "x
$srcdir" = x.; then
16437 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16456 fi # test -n "$CONFIG_FILES"
16458 # Set up the scripts for CONFIG_HEADERS section.
16459 # No need to generate them if there are no CONFIG_HEADERS.
16460 # This happens for instance with `./config.status Makefile'.
16461 if test -n "$CONFIG_HEADERS"; then
16462 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16466 # Transform confdefs.h into an awk script `defines.awk', embedded as
16467 # here-document in config.status, that substitutes the proper values into
16468 # config.h.in to produce config.h.
16470 # Create a delimiter string that does not exist in confdefs.h, to ease
16471 # handling of long lines.
16473 for ac_last_try in false false :; do
16474 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16475 if test -z "$ac_tt"; then
16477 elif $ac_last_try; then
16478 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16480 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16484 # For the awk script, D is an array of macro values keyed by name,
16485 # likewise P contains macro parameters if any. Preserve backslash
16486 # newline sequences.
16488 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16490 s/.\{148\}/&'"$ac_delim"'/g
16493 s/^[ ]*#[ ]*define[ ][ ]*/ /
16500 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16502 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16506 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16507 D["\
1"]=" \
3\\\\\\n
"\\/p
16509 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16514 s/.\{148\}/&'"$ac_delim"'/g
16519 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16522 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16524 ' <confdefs.h | sed '
16525 s/'"$ac_delim"'/"\\\
16526 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16529 for (key in D) D_is_set[key] = 1
16532 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16534 split(line, arg, " ")
16535 if (arg[1] == "#") {
16539 defundef
= substr
(arg
[1], 2)
16542 split(mac1
, mac2
, "(") #)
16544 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16545 if (D_is_set
[macro
]) {
16546 # Preserve the white space surrounding the "#".
16547 print prefix
"define", macro P
[macro
] D
[macro
]
16550 # Replace #undef with comments. This is necessary, for example,
16551 # in the case of _POSIX_SOURCE, which is predefined and required
16552 # on some systems where configure will not decide to define it.
16553 if (defundef
== "undef") {
16554 print
"/*", prefix defundef
, macro
, "*/"
16562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16563 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16564 fi # test -n "$CONFIG_HEADERS"
16567 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16572 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16574 case $ac_mode$ac_tag in
16576 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16577 :[FH
]-) ac_tag
=-:-;;
16578 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16595 -) ac_f
="$ac_tmp/stdin";;
16596 *) # Look for the file first in the build tree, then in the source tree
16597 # (if the path is not absolute). The absolute path cannot be DOS-style,
16598 # because $ac_f cannot contain `:'.
16602 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16604 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16606 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16607 as_fn_append ac_file_inputs
" '$ac_f'"
16610 # Let's still pretend it is `configure' which instantiates (i.e., don't
16611 # use $as_me), people would be surprised to read:
16612 # /* config.h. Generated by config.status. */
16613 configure_input
='Generated from '`
16614 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16616 if test x
"$ac_file" != x-
; then
16617 configure_input
="$ac_file. $configure_input"
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16619 $as_echo "$as_me: creating $ac_file" >&6;}
16621 # Neutralize special characters interpreted by sed in replacement strings.
16622 case $configure_input in #(
16623 *\
&* |
*\|
* |
*\\* )
16624 ac_sed_conf_input
=`$as_echo "$configure_input" |
16625 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16626 *) ac_sed_conf_input
=$configure_input;;
16630 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16631 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16636 ac_dir
=`$as_dirname -- "$ac_file" ||
16637 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16638 X"$ac_file" : 'X\(//\)[^/]' \| \
16639 X"$ac_file" : 'X\(//\)$' \| \
16640 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16641 $as_echo X"$ac_file" |
16642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16646 /^X\(\/\/\)[^/].*/{
16659 as_dir
="$ac_dir"; as_fn_mkdir_p
16663 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16665 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16666 # A ".." for each directory in $ac_dir_suffix.
16667 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16668 case $ac_top_builddir_sub in
16669 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16670 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16673 ac_abs_top_builddir
=$ac_pwd
16674 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16675 # for backward compatibility:
16676 ac_top_builddir
=$ac_top_build_prefix
16679 .
) # We are building in place.
16681 ac_top_srcdir
=$ac_top_builddir_sub
16682 ac_abs_top_srcdir
=$ac_pwd ;;
16683 [\\/]* | ?
:[\\/]* ) # Absolute name.
16684 ac_srcdir
=$srcdir$ac_dir_suffix;
16685 ac_top_srcdir
=$srcdir
16686 ac_abs_top_srcdir
=$srcdir ;;
16687 *) # Relative name.
16688 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16689 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16690 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16692 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16702 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16703 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16705 ac_MKDIR_P
=$MKDIR_P
16707 [\\/$
]* | ?
:[\\/]* ) ;;
16708 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
16712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16713 # If the template does not know about datarootdir, expand it.
16714 # FIXME: This hack should be removed a few years after 2.60.
16715 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16726 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16727 *datarootdir
*) ac_datarootdir_seen
=yes;;
16728 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16730 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16733 ac_datarootdir_hack='
16734 s&@datadir@&$datadir&g
16735 s&@docdir@&$docdir&g
16736 s&@infodir@&$infodir&g
16737 s&@localedir@&$localedir&g
16738 s&@mandir@&$mandir&g
16739 s&\\\${datarootdir}&$datarootdir&g' ;;
16743 # Neutralize VPATH when `$srcdir' = `.'.
16744 # Shell code in configure.ac might set extrasub.
16745 # FIXME: do we really want to maintain this feature?
16746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16747 ac_sed_extra="$ac_vpsub
16750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16752 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16753 s|@configure_input@|
$ac_sed_conf_input|
;t t
16754 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16755 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16756 s
&@srcdir@
&$ac_srcdir&;t t
16757 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16758 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16759 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16760 s
&@builddir@
&$ac_builddir&;t t
16761 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16762 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16763 s
&@INSTALL@
&$ac_INSTALL&;t t
16764 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
16765 $ac_datarootdir_hack
16767 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16768 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16770 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16771 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16772 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16773 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16775 which seems to be undefined. Please make sure it is defined" >&5
16776 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16777 which seems to be undefined. Please make sure it is defined" >&2;}
16779 rm -f "$ac_tmp/stdin"
16781 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16782 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16790 if test x"$ac_file" != x-; then
16792 $as_echo "/* $configure_input */" \
16793 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16794 } >"$ac_tmp/config.h" \
16795 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16796 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16798 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16801 mv "$ac_tmp/config.h" "$ac_file" \
16802 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16805 $as_echo "/* $configure_input */" \
16806 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16807 || as_fn_error $? "could not create -" "$LINENO" 5
16809 # Compute "$ac_file"'s index
in $config_headers.
16812 for _am_header
in $config_headers :; do
16813 case $_am_header in
16814 $_am_arg |
$_am_arg:* )
16817 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
16820 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16821 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16822 X"$_am_arg" : 'X\(//\)[^/]' \| \
16823 X"$_am_arg" : 'X\(//\)$' \| \
16824 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16825 $as_echo X"$_am_arg" |
16826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16830 /^X\(\/\/\)[^/].*/{
16842 s/.*/./; q'`/stamp-h
$_am_stamp_count
16845 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16846 $as_echo "$as_me: executing $ac_file commands" >&6;}
16851 case $ac_file$ac_mode in
16852 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
16853 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16854 # are listed without --file. Let's play safe and only enable the eval
16855 # if we detect the quoting.
16856 case $CONFIG_FILES in
16857 *\'*) eval set x
"$CONFIG_FILES" ;;
16858 *) set x
$CONFIG_FILES ;;
16863 # Strip MF so we end up with the name of the file.
16864 mf
=`echo "$mf" | sed -e 's/:.*$//'`
16865 # Check whether this is an Automake generated Makefile or not.
16866 # We used to match only the files named 'Makefile.in', but
16867 # some people rename them; so instead we look at the file content.
16868 # Grep'ing the first line is not enough: some people post-process
16869 # each Makefile.in and add a new line on top of each file to say so.
16870 # Grep'ing the whole file is not good either: AIX grep has a line
16871 # limit of 2048, but all sed's we know have understand at least 4000.
16872 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
16873 dirpart
=`$as_dirname -- "$mf" ||
16874 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16875 X"$mf" : 'X\(//\)[^/]' \| \
16876 X"$mf" : 'X\(//\)$' \| \
16877 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16883 /^X\(\/\/\)[^/].*/{
16899 # Extract the definition of DEPDIR, am__include, and am__quote
16900 # from the Makefile without running 'make'.
16901 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
16902 test -z "$DEPDIR" && continue
16903 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
16904 test -z "am__include" && continue
16905 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
16906 # Find all dependency output files, they are included files with
16907 # $(DEPDIR) in their names. We invoke sed twice because it is the
16908 # simplest approach to changing $(DEPDIR) to its actual value in the
16910 for file in `sed -n "
16911 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16912 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16913 # Make sure the directory exists.
16914 test -f "$dirpart/$file" && continue
16915 fdir
=`$as_dirname -- "$file" ||
16916 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16917 X"$file" : 'X\(//\)[^/]' \| \
16918 X"$file" : 'X\(//\)$' \| \
16919 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16920 $as_echo X"$file" |
16921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16925 /^X\(\/\/\)[^/].*/{
16938 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
16939 # echo "creating $dirpart/$file"
16940 echo '# dummy' > "$dirpart/$file"
16947 # See if we are running on zsh, and set the options which allow our
16948 # commands through without removal of \ escapes.
16949 if test -n "${ZSH_VERSION+set}" ; then
16950 setopt NO_GLOB_SUBST
16953 cfgfile
="${ofile}T"
16954 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16957 cat <<_LT_EOF >> "$cfgfile"
16960 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16961 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16962 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16963 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16965 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16966 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16968 # Written by Gordon Matzigkeit, 1996
16970 # This file is part of GNU Libtool.
16972 # GNU Libtool is free software; you can redistribute it and/or
16973 # modify it under the terms of the GNU General Public License as
16974 # published by the Free Software Foundation; either version 2 of
16975 # the License, or (at your option) any later version.
16977 # As a special exception to the GNU General Public License,
16978 # if you distribute this file as part of a program or library that
16979 # is built using GNU Libtool, you may include this file under the
16980 # same distribution terms that you use for the rest of that program.
16982 # GNU Libtool is distributed in the hope that it will be useful,
16983 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16984 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16985 # GNU General Public License for more details.
16987 # You should have received a copy of the GNU General Public License
16988 # along with GNU Libtool; see the file COPYING. If not, a copy
16989 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16990 # obtained by writing to the Free Software Foundation, Inc.,
16991 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16994 # The names of the tagged configurations supported by this script.
16997 # ### BEGIN LIBTOOL CONFIG
16999 # Which release of libtool.m4 was used?
17000 macro_version=$macro_version
17001 macro_revision=$macro_revision
17003 # Whether or not to build shared libraries.
17004 build_libtool_libs=$enable_shared
17006 # Whether or not to build static libraries.
17007 build_old_libs=$enable_static
17009 # What type of objects to build.
17012 # Whether or not to optimize for fast installation.
17013 fast_install=$enable_fast_install
17015 # Shell to use when invoking shell scripts.
17018 # An echo program that protects backslashes.
17021 # The PATH separator for the build system.
17022 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17025 host_alias=$host_alias
17029 # The build system.
17030 build_alias=$build_alias
17034 # A sed program that does not truncate output.
17037 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17038 Xsed="\$SED -e 1s/^X//"
17040 # A grep program that handles long lines.
17046 # A literal string matcher.
17049 # A BSD- or MS-compatible name lister.
17052 # Whether we need soft or hard links.
17055 # What is the maximum length of a command?
17056 max_cmd_len=$max_cmd_len
17058 # Object file suffix (normally "o").
17061 # Executable file suffix (normally "").
17064 # whether the shell understands "unset".
17067 # turn spaces into newlines.
17070 # turn newlines into spaces.
17073 # convert \$build file names to \$host format.
17074 to_host_file_cmd=$lt_cv_to_host_file_cmd
17076 # convert \$build files to toolchain format.
17077 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17079 # An object symbol dumper.
17080 OBJDUMP=$lt_OBJDUMP
17082 # Method to check whether dependent libraries are shared objects.
17083 deplibs_check_method=$lt_deplibs_check_method
17085 # Command to use when deplibs_check_method = "file_magic".
17086 file_magic_cmd=$lt_file_magic_cmd
17088 # How to find potential files when deplibs_check_method = "file_magic".
17089 file_magic_glob=$lt_file_magic_glob
17091 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17092 want_nocaseglob=$lt_want_nocaseglob
17094 # DLL creation program.
17095 DLLTOOL=$lt_DLLTOOL
17097 # Command to associate shared and link libraries.
17098 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17103 # Flags to create an archive.
17104 AR_FLAGS=$lt_AR_FLAGS
17106 # How to feed a file listing to the archiver.
17107 archiver_list_spec=$lt_archiver_list_spec
17109 # A symbol stripping program.
17112 # Commands used to install an old-style archive.
17114 old_postinstall_cmds=$lt_old_postinstall_cmds
17115 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17117 # Whether to use a lock for old archive extraction.
17118 lock_old_archive_extraction=$lock_old_archive_extraction
17123 # LTCC compiler flags.
17124 LTCFLAGS=$lt_CFLAGS
17126 # Take the output of nm and produce a listing of raw symbols and C names.
17127 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17129 # Transform the output of nm in a proper C declaration.
17130 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17132 # Transform the output of nm in a C name address pair.
17133 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17135 # Transform the output of nm in a C name address pair when lib prefix is needed.
17136 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17138 # Specify filename containing input files for \$NM.
17139 nm_file_list_spec=$lt_nm_file_list_spec
17141 # The root where to search for dependent libraries,and in which our libraries should be installed.
17142 lt_sysroot=$lt_sysroot
17144 # The name of the directory that contains temporary libtool files.
17147 # Used to examine libraries when file_magic_cmd begins with "file".
17148 MAGIC_CMD=$MAGIC_CMD
17150 # Must we lock files when doing compilation?
17151 need_locks=$lt_need_locks
17154 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17156 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17157 DSYMUTIL=$lt_DSYMUTIL
17159 # Tool to change global to local symbols on Mac OS X.
17162 # Tool to manipulate fat objects and archives on Mac OS X.
17165 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17168 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17169 OTOOL64=$lt_OTOOL64
17171 # Old archive suffix (normally "a").
17174 # Shared library suffix (normally ".so").
17175 shrext_cmds=$lt_shrext_cmds
17177 # The commands to extract the exported symbol list from a shared archive.
17178 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17180 # Variables whose values should be saved in libtool wrapper scripts and
17181 # restored at link time.
17182 variables_saved_for_relink=$lt_variables_saved_for_relink
17184 # Do we need the "lib" prefix for modules?
17185 need_lib_prefix=$need_lib_prefix
17187 # Do we need a version for libraries?
17188 need_version=$need_version
17190 # Library versioning type.
17191 version_type=$version_type
17193 # Shared library runtime path variable.
17194 runpath_var=$runpath_var
17196 # Shared library path variable.
17197 shlibpath_var=$shlibpath_var
17199 # Is shlibpath searched before the hard-coded library search path?
17200 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17202 # Format of library name prefix.
17203 libname_spec=$lt_libname_spec
17205 # List of archive names. First name is the real one, the rest are links.
17206 # The last name is the one that the linker finds with -lNAME
17207 library_names_spec=$lt_library_names_spec
17209 # The coded name of the library, if different from the real name.
17210 soname_spec=$lt_soname_spec
17212 # Permission mode override for installation of shared libraries.
17213 install_override_mode=$lt_install_override_mode
17215 # Command to use after installation of a shared archive.
17216 postinstall_cmds=$lt_postinstall_cmds
17218 # Command to use after uninstallation of a shared archive.
17219 postuninstall_cmds=$lt_postuninstall_cmds
17221 # Commands used to finish a libtool library installation in a directory.
17222 finish_cmds=$lt_finish_cmds
17224 # As "finish_cmds", except a single script fragment to be evaled but
17226 finish_eval=$lt_finish_eval
17228 # Whether we should hardcode library paths into libraries.
17229 hardcode_into_libs=$hardcode_into_libs
17231 # Compile-time system search path for libraries.
17232 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17234 # Run-time system search path for libraries.
17235 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17237 # Whether dlopen is supported.
17238 dlopen_support=$enable_dlopen
17240 # Whether dlopen of programs is supported.
17241 dlopen_self=$enable_dlopen_self
17243 # Whether dlopen of statically linked programs is supported.
17244 dlopen_self_static=$enable_dlopen_self_static
17246 # Commands to strip libraries.
17247 old_striplib=$lt_old_striplib
17248 striplib=$lt_striplib
17251 # The linker used to build libraries.
17254 # How to create reloadable object files.
17255 reload_flag=$lt_reload_flag
17256 reload_cmds=$lt_reload_cmds
17258 # Commands used to build an old-style archive.
17259 old_archive_cmds=$lt_old_archive_cmds
17261 # A language specific compiler.
17264 # Is the compiler the GNU compiler?
17267 # Compiler flag to turn off builtin functions.
17268 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17270 # Additional compiler flags for building library objects.
17271 pic_flag=$lt_lt_prog_compiler_pic
17273 # How to pass a linker flag through the compiler.
17274 wl=$lt_lt_prog_compiler_wl
17276 # Compiler flag to prevent dynamic linking.
17277 link_static_flag=$lt_lt_prog_compiler_static
17279 # Does compiler simultaneously support -c and -o options?
17280 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17282 # Whether or not to add -lc for building shared libraries.
17283 build_libtool_need_lc=$archive_cmds_need_lc
17285 # Whether or not to disallow shared libs when runtime libs are static.
17286 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17288 # Compiler flag to allow reflexive dlopens.
17289 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17291 # Compiler flag to generate shared objects directly from archives.
17292 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17294 # Whether the compiler copes with passing no objects directly.
17295 compiler_needs_object=$lt_compiler_needs_object
17297 # Create an old-style archive from a shared archive.
17298 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17300 # Create a temporary old-style archive to link instead of a shared archive.
17301 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17303 # Commands used to build a shared archive.
17304 archive_cmds=$lt_archive_cmds
17305 archive_expsym_cmds=$lt_archive_expsym_cmds
17307 # Commands used to build a loadable module if different from building
17308 # a shared archive.
17309 module_cmds=$lt_module_cmds
17310 module_expsym_cmds=$lt_module_expsym_cmds
17312 # Whether we are building with GNU ld or not.
17313 with_gnu_ld=$lt_with_gnu_ld
17315 # Flag that allows shared libraries with undefined symbols to be built.
17316 allow_undefined_flag=$lt_allow_undefined_flag
17318 # Flag that enforces no undefined symbols.
17319 no_undefined_flag=$lt_no_undefined_flag
17321 # Flag to hardcode \$libdir into a binary during linking.
17322 # This must work even if \$libdir does not exist
17323 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17325 # Whether we need a single "-rpath" flag with a separated argument.
17326 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17328 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17329 # DIR into the resulting binary.
17330 hardcode_direct=$hardcode_direct
17332 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17333 # DIR into the resulting binary and the resulting library dependency is
17334 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17335 # library is relocated.
17336 hardcode_direct_absolute=$hardcode_direct_absolute
17338 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17339 # into the resulting binary.
17340 hardcode_minus_L=$hardcode_minus_L
17342 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17343 # into the resulting binary.
17344 hardcode_shlibpath_var=$hardcode_shlibpath_var
17346 # Set to "yes" if building a shared library automatically hardcodes DIR
17347 # into the library and all subsequent libraries and executables linked
17349 hardcode_automatic=$hardcode_automatic
17351 # Set to yes if linker adds runtime paths of dependent libraries
17352 # to runtime path list.
17353 inherit_rpath=$inherit_rpath
17355 # Whether libtool must link a program against all its dependency libraries.
17356 link_all_deplibs=$link_all_deplibs
17358 # Set to "yes" if exported symbols are required.
17359 always_export_symbols=$always_export_symbols
17361 # The commands to list exported symbols.
17362 export_symbols_cmds=$lt_export_symbols_cmds
17364 # Symbols that should not be listed in the preloaded symbols.
17365 exclude_expsyms=$lt_exclude_expsyms
17367 # Symbols that must always be exported.
17368 include_expsyms=$lt_include_expsyms
17370 # Commands necessary for linking programs (against libraries) with templates.
17371 prelink_cmds=$lt_prelink_cmds
17373 # Commands necessary for finishing linking programs.
17374 postlink_cmds=$lt_postlink_cmds
17376 # Specify filename containing input files.
17377 file_list_spec=$lt_file_list_spec
17379 # How to hardcode a shared library path into an executable.
17380 hardcode_action=$hardcode_action
17382 # ### END LIBTOOL CONFIG
17388 cat <<\_LT_EOF
>> "$cfgfile"
17389 # AIX sometimes has problems with the GCC collect2 program. For some
17390 # reason, if we set the COLLECT_NAMES environment variable, the problems
17391 # vanish in a puff of smoke.
17392 if test "X${COLLECT_NAMES+set}" != Xset
; then
17394 export COLLECT_NAMES
17401 ltmain
="$ac_aux_dir/ltmain.sh"
17404 # We use sed instead of cat because bash on DJGPP gets confused if
17405 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17406 # text mode, it properly converts lines to CR/LF. This bash problem
17407 # is reportedly fixed, but why not run on old versions too?
17408 sed '$q' "$ltmain" >> "$cfgfile" \
17409 ||
(rm -f "$cfgfile"; exit 1)
17411 if test x
"$xsi_shell" = xyes
; then
17412 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17416 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17417 \ * ) func_dirname_result="${3}" ;;\
17419 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17420 && mv -f "$cfgfile.tmp" "$cfgfile" \
17421 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17422 test 0 -eq $? || _lt_function_replace_fail
=:
17425 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17428 \ func_basename_result="${1##*/}"\
17429 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17430 && mv -f "$cfgfile.tmp" "$cfgfile" \
17431 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17432 test 0 -eq $? || _lt_function_replace_fail
=:
17435 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17436 func_dirname_and_basename ()\
17439 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17440 \ * ) func_dirname_result="${3}" ;;\
17442 \ func_basename_result="${1##*/}"\
17443 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17444 && mv -f "$cfgfile.tmp" "$cfgfile" \
17445 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17446 test 0 -eq $? || _lt_function_replace_fail
=:
17449 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17452 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17453 \ # positional parameters, so assign one to ordinary parameter first.\
17454 \ func_stripname_result=${3}\
17455 \ func_stripname_result=${func_stripname_result#"${1}"}\
17456 \ func_stripname_result=${func_stripname_result%"${2}"}\
17457 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17458 && mv -f "$cfgfile.tmp" "$cfgfile" \
17459 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17460 test 0 -eq $? || _lt_function_replace_fail
=:
17463 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17464 func_split_long_opt ()\
17466 \ func_split_long_opt_name=${1%%=*}\
17467 \ func_split_long_opt_arg=${1#*=}\
17468 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17469 && mv -f "$cfgfile.tmp" "$cfgfile" \
17470 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17471 test 0 -eq $? || _lt_function_replace_fail
=:
17474 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17475 func_split_short_opt ()\
17477 \ func_split_short_opt_arg=${1#??}\
17478 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17479 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17480 && mv -f "$cfgfile.tmp" "$cfgfile" \
17481 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17482 test 0 -eq $? || _lt_function_replace_fail
=:
17485 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17489 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17490 \ *) func_lo2o_result=${1} ;;\
17492 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17493 && mv -f "$cfgfile.tmp" "$cfgfile" \
17494 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17495 test 0 -eq $? || _lt_function_replace_fail
=:
17498 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17501 func_xform_result=${1%.*}.lo\
17502 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17503 && mv -f "$cfgfile.tmp" "$cfgfile" \
17504 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17505 test 0 -eq $? || _lt_function_replace_fail
=:
17508 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17511 func_arith_result=$(( $* ))\
17512 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17513 && mv -f "$cfgfile.tmp" "$cfgfile" \
17514 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17515 test 0 -eq $? || _lt_function_replace_fail
=:
17518 sed -e '/^func_len ()$/,/^} # func_len /c\
17521 func_len_result=${#1}\
17522 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17523 && mv -f "$cfgfile.tmp" "$cfgfile" \
17524 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17525 test 0 -eq $? || _lt_function_replace_fail
=:
17529 if test x
"$lt_shell_append" = xyes
; then
17530 sed -e '/^func_append ()$/,/^} # func_append /c\
17533 eval "${1}+=\\${2}"\
17534 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17535 && mv -f "$cfgfile.tmp" "$cfgfile" \
17536 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17537 test 0 -eq $? || _lt_function_replace_fail
=:
17540 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17541 func_append_quoted ()\
17543 \ func_quote_for_eval "${2}"\
17544 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17545 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17546 && mv -f "$cfgfile.tmp" "$cfgfile" \
17547 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17548 test 0 -eq $? || _lt_function_replace_fail
=:
17551 # Save a `func_append' function call where possible by direct use of '+='
17552 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17553 && mv -f "$cfgfile.tmp" "$cfgfile" \
17554 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17555 test 0 -eq $? || _lt_function_replace_fail
=:
17557 # Save a `func_append' function call even when '+=' is not available
17558 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17559 && mv -f "$cfgfile.tmp" "$cfgfile" \
17560 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17561 test 0 -eq $? || _lt_function_replace_fail
=:
17564 if test x
"$_lt_function_replace_fail" = x
":"; then
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17566 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17570 mv -f "$cfgfile" "$ofile" ||
17571 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17582 ac_clean_files
=$ac_clean_files_save
17584 test $ac_write_fail = 0 ||
17585 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17588 # configure is writing to config.log, and then calls config.status.
17589 # config.status does its own redirection, appending to config.log.
17590 # Unfortunately, on DOS this fails, as config.log is still kept open
17591 # by configure, so config.status won't be able to write to it; its
17592 # output is simply discarded. So we exec the FD to /dev/null,
17593 # effectively closing config.log, so it can be properly (re)opened and
17594 # appended to by config.status. When coming back to configure, we
17595 # need to make the FD available again.
17596 if test "$no_create" != yes; then
17598 ac_config_status_args
=
17599 test "$silent" = yes &&
17600 ac_config_status_args
="$ac_config_status_args --quiet"
17602 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17604 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17605 # would make configure fail if this is the last instruction.
17606 $ac_cs_success || as_fn_exit
1
17608 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17610 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}