2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.68.
6 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 @%:@ This configure script is free software; the Free Software Foundation
12 @%:@ gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in @%:@(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in @%:@(
148 set -o posix ;; @%:@(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
199 case $as_dir in @%:@(
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 @%:@ Portably unset VAR.
270 { eval $1=; unset $1;}
274 @%:@ as_fn_set_status STATUS
275 @%:@ -----------------------
276 @%:@ Set @S|@? to STATUS, without forking.
280 } @%:@ as_fn_set_status
282 @%:@ as_fn_exit STATUS
283 @%:@ -----------------
284 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 @%:@ as_fn_append VAR VALUE
340 @%:@ ----------------------
341 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
342 @%:@ advantage of any shell optimizations that allow amortized linear growth over
343 @%:@ repeated appends, instead of the typical quadratic growth present in naive
344 @%:@ implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
357 @%:@ as_fn_arith ARG...
358 @%:@ ------------------
359 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
360 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
361 @%:@ must be portable across @S|@(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
376 @%:@ ----------------------------------------
377 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 @%:@ script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in @%:@(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
575 ac_unique_file="event.c"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
589 # ifdef HAVE_STDLIB_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
612 ac_subst_vars='am__EXEEXT_FALSE
615 INSTALL_LIBEVENT_FALSE
616 INSTALL_LIBEVENT_TRUE
635 DEVPOLL_BACKEND_FALSE
641 BUILD_WITH_NO_UNDEFINED_FALSE
642 BUILD_WITH_NO_UNDEFINED_TRUE
712 INSTALL_STRIP_PROGRAM
754 program_transform_name
767 enable_option_checking
768 enable_dependency_tracking
770 enable_thread_support
771 enable_malloc_replacement
774 enable_libevent_install
775 enable_libevent_regress
776 enable_function_sections
785 ac_precious_vars='build_alias
796 # Initialize some variables set by options.
798 ac_init_version=false
799 ac_unrecognized_opts=
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
810 program_transform_name=s,x,x,
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 includedir='${prefix}/include'
833 oldincludedir='/usr/include'
834 docdir='${datarootdir}/doc/${PACKAGE}'
835 infodir='${datarootdir}/info'
840 libdir='${exec_prefix}/lib'
841 localedir='${datarootdir}/locale'
842 mandir='${datarootdir}/man'
848 # If the previous option needs an argument, assign it.
849 if test -n "$ac_prev"; then
850 eval $ac_prev=\$ac_option
856 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861 # Accept the important Cygnus configure options, so we can diagnose typos.
863 case $ac_dashdash$ac_option in
867 -bindir | --bindir | --bindi | --bind | --bin | --bi)
869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872 -build | --build | --buil | --bui | --bu)
873 ac_prev=build_alias ;;
874 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875 build_alias=$ac_optarg ;;
877 -cache-file | --cache-file | --cache-fil | --cache-fi \
878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879 ac_prev=cache_file ;;
880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882 cache_file=$ac_optarg ;;
885 cache_file=config.cache ;;
887 -datadir | --datadir | --datadi | --datad)
889 -datadir=* | --datadir=* | --datadi=* | --datad=*)
890 datadir=$ac_optarg ;;
892 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893 | --dataroo | --dataro | --datar)
894 ac_prev=datarootdir ;;
895 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897 datarootdir=$ac_optarg ;;
899 -disable-* | --disable-*)
900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903 as_fn_error $? "invalid feature name: $ac_useropt"
904 ac_useropt_orig=$ac_useropt
905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911 ac_unrecognized_sep=', ';;
913 eval enable_$ac_useropt=no ;;
915 -docdir | --docdir | --docdi | --doc | --do)
917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925 -enable-* | --enable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
939 eval enable_$ac_useropt=\$ac_optarg ;;
941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943 | --exec | --exe | --ex)
944 ac_prev=exec_prefix ;;
945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947 | --exec=* | --exe=* | --ex=*)
948 exec_prefix=$ac_optarg ;;
950 -gas | --gas | --ga | --g)
951 # Obsolete; use --with-gas.
954 -help | --help | --hel | --he | -h)
956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957 ac_init_help=recursive ;;
958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959 ac_init_help=short ;;
961 -host | --host | --hos | --ho)
962 ac_prev=host_alias ;;
963 -host=* | --host=* | --hos=* | --ho=*)
964 host_alias=$ac_optarg ;;
966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970 htmldir=$ac_optarg ;;
972 -includedir | --includedir | --includedi | --included | --include \
973 | --includ | --inclu | --incl | --inc)
974 ac_prev=includedir ;;
975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976 | --includ=* | --inclu=* | --incl=* | --inc=*)
977 includedir=$ac_optarg ;;
979 -infodir | --infodir | --infodi | --infod | --info | --inf)
981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982 infodir=$ac_optarg ;;
984 -libdir | --libdir | --libdi | --libd)
986 -libdir=* | --libdir=* | --libdi=* | --libd=*)
989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990 | --libexe | --libex | --libe)
991 ac_prev=libexecdir ;;
992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993 | --libexe=* | --libex=* | --libe=*)
994 libexecdir=$ac_optarg ;;
996 -localedir | --localedir | --localedi | --localed | --locale)
998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999 localedir=$ac_optarg ;;
1001 -localstatedir | --localstatedir | --localstatedi | --localstated \
1002 | --localstate | --localstat | --localsta | --localst | --locals)
1003 ac_prev=localstatedir ;;
1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006 localstatedir=$ac_optarg ;;
1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011 mandir=$ac_optarg ;;
1013 -nfp | --nfp | --nf)
1014 # Obsolete; use --without-fp.
1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018 | --no-cr | --no-c | -n)
1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027 | --oldin | --oldi | --old | --ol | --o)
1028 ac_prev=oldincludedir ;;
1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032 oldincludedir=$ac_optarg ;;
1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037 prefix=$ac_optarg ;;
1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040 | --program-pre | --program-pr | --program-p)
1041 ac_prev=program_prefix ;;
1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044 program_prefix=$ac_optarg ;;
1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047 | --program-suf | --program-su | --program-s)
1048 ac_prev=program_suffix ;;
1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051 program_suffix=$ac_optarg ;;
1053 -program-transform-name | --program-transform-name \
1054 | --program-transform-nam | --program-transform-na \
1055 | --program-transform-n | --program-transform- \
1056 | --program-transform | --program-transfor \
1057 | --program-transfo | --program-transf \
1058 | --program-trans | --program-tran \
1059 | --progr-tra | --program-tr | --program-t)
1060 ac_prev=program_transform_name ;;
1061 -program-transform-name=* | --program-transform-name=* \
1062 | --program-transform-nam=* | --program-transform-na=* \
1063 | --program-transform-n=* | --program-transform-=* \
1064 | --program-transform=* | --program-transfor=* \
1065 | --program-transfo=* | --program-transf=* \
1066 | --program-trans=* | --program-tran=* \
1067 | --progr-tra=* | --program-tr=* | --program-t=*)
1068 program_transform_name=$ac_optarg ;;
1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073 pdfdir=$ac_optarg ;;
1075 -psdir | --psdir | --psdi | --psd | --ps)
1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088 sbindir=$ac_optarg ;;
1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092 | --sharedst | --shareds | --shared | --share | --shar \
1094 ac_prev=sharedstatedir ;;
1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099 sharedstatedir=$ac_optarg ;;
1101 -site | --site | --sit)
1103 -site=* | --site=* | --sit=*)
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109 srcdir=$ac_optarg ;;
1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112 | --syscon | --sysco | --sysc | --sys | --sy)
1113 ac_prev=sysconfdir ;;
1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116 sysconfdir=$ac_optarg ;;
1118 -target | --target | --targe | --targ | --tar | --ta | --t)
1119 ac_prev=target_alias ;;
1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121 target_alias=$ac_optarg ;;
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version=: ;;
1130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1143 eval with_$ac_useropt=\$ac_optarg ;;
1145 -without-* | --without-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1159 eval with_$ac_useropt=no ;;
1162 # Obsolete; use --with-x.
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes=$ac_optarg ;;
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries=$ac_optarg ;;
1179 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180 Try \`$0 --help' for more information"
1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
1186 case $ac_envvar in #(
1187 '' | [0-9]* | *[!_$as_cr_alnum]* )
1188 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1190 eval $ac_envvar=\$ac_optarg
1191 export $ac_envvar ;;
1194 # FIXME: should be removed in autoconf 3.0.
1195 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1204 if test -n "$ac_prev"; then
1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206 as_fn_error $? "missing argument to $ac_option"
1209 if test -n "$ac_unrecognized_opts"; then
1210 case $enable_option_checking in
1212 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1217 # Check all directory arguments for consistency.
1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
1223 eval ac_val=\$$ac_var
1224 # Remove trailing slashes.
1227 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228 eval $ac_var=\$ac_val;;
1230 # Be sure to have absolute directory names.
1232 [\\/$]* | ?:[\\/]* ) continue;;
1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1238 # There might be people who depend on the old broken behavior: `$host'
1239 # used to hold the argument of --host etc.
1240 # FIXME: To remove some day.
1243 target=$target_alias
1245 # FIXME: To remove some day.
1246 if test "x$host_alias" != x; then
1247 if test "x$build_alias" = x; then
1248 cross_compiling=maybe
1249 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1250 If a cross compiler is detected then cross compile mode will be used" >&2
1251 elif test "x$build_alias" != "x$host_alias"; then
1257 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259 test "$silent" = yes && exec 6>/dev/null
1262 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263 ac_ls_di=`ls -di .` &&
1264 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265 as_fn_error $? "working directory cannot be determined"
1266 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267 as_fn_error $? "pwd does not report name of working directory"
1270 # Find the source files, if location was not specified.
1271 if test -z "$srcdir"; then
1272 ac_srcdir_defaulted=yes
1273 # Try the directory containing this script, then the parent directory.
1274 ac_confdir=`$as_dirname -- "$as_myself" ||
1275 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276 X"$as_myself" : 'X\(//\)[^/]' \| \
1277 X"$as_myself" : 'X\(//\)$' \| \
1278 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279 $as_echo X"$as_myself" |
1280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1302 ac_srcdir_defaulted=no
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1308 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322 for ac_var in $ac_precious_vars; do
1323 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_env_${ac_var}_value=\$${ac_var}
1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330 # Report the --help message.
1332 if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh.
1336 \`configure' configures this package to adapt to many kinds of systems.
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE. See below for descriptions of some of the useful variables.
1343 Defaults for the options are specified in brackets.
1346 -h, --help display this help and exit
1347 --help=short display options specific to this package
1348 --help=recursive display the short help of all the included packages
1349 -V, --version display version information and exit
1350 -q, --quiet, --silent do not print \`checking ...' messages
1351 --cache-file=FILE cache test results in FILE [disabled]
1352 -C, --config-cache alias for \`--cache-file=config.cache'
1353 -n, --no-create do not create output files
1354 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1356 Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
1358 @<:@@S|@ac_default_prefix@:>@
1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1367 For better control, use the options below.
1369 Fine tuning of the installation directories:
1370 --bindir=DIR user executables [EPREFIX/bin]
1371 --sbindir=DIR system admin executables [EPREFIX/sbin]
1372 --libexecdir=DIR program executables [EPREFIX/libexec]
1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376 --libdir=DIR object code libraries [EPREFIX/lib]
1377 --includedir=DIR C header files [PREFIX/include]
1378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381 --infodir=DIR info documentation [DATAROOTDIR/info]
1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383 --mandir=DIR man documentation [DATAROOTDIR/man]
1384 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1385 --htmldir=DIR html documentation [DOCDIR]
1386 --dvidir=DIR dvi documentation [DOCDIR]
1387 --pdfdir=DIR pdf documentation [DOCDIR]
1388 --psdir=DIR ps documentation [DOCDIR]
1394 --program-prefix=PREFIX prepend PREFIX to installed program names
1395 --program-suffix=SUFFIX append SUFFIX to installed program names
1396 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1399 --build=BUILD configure for building on BUILD [guessed]
1400 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1404 if test -n "$ac_init_help"; then
1409 --disable-option-checking ignore unrecognized --enable/--with options
1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1412 --disable-dependency-tracking speeds up one-time build
1413 --enable-dependency-tracking do not reject slow dependency extractors
1414 --enable-gcc-warnings enable verbose warnings with GCC
1415 --disable-thread-support
1416 disable support for threading
1417 --disable-malloc-replacement
1418 disable support for replacing the memory mgt
1420 --disable-openssl disable support for openssl encryption
1421 --disable-debug-mode disable support for running in debug mode
1422 --disable-libevent-install, disable installation of libevent
1424 --disable-libevent-regress, skip regress in make check
1426 --enable-function-sections, make static library allow smaller binaries with --gc-sections
1428 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1429 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1430 --enable-fast-install@<:@=PKGS@:>@
1431 optimize for fast installation @<:@default=yes@:>@
1432 --disable-libtool-lock avoid locking (might break parallel builds)
1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1437 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
1439 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1440 --with-sysroot=DIR Search for dependent libraries within DIR
1441 (or the compiler's sysroot if not specified).
1443 Some influential environment variables:
1444 CC C compiler command
1445 CFLAGS C compiler flags
1446 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1447 nonstandard directory <lib dir>
1448 LIBS libraries to pass to the linker, e.g. -l<library>
1449 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1450 you have headers in a nonstandard directory <include dir>
1453 Use these variables to override the choices made by `configure' or to help
1454 it to find libraries and programs with nonstandard names/locations.
1456 Report bugs to the package provider.
1461 if test "$ac_init_help" = "recursive"; then
1462 # If there are subdirs, report their specific --help.
1463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464 test -d "$ac_dir" ||
1465 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473 # A ".." for each directory in $ac_dir_suffix.
1474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480 ac_abs_top_builddir=$ac_pwd
1481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482 # for backward compatibility:
1483 ac_top_builddir=$ac_top_build_prefix
1486 .) # We are building in place.
1488 ac_top_srcdir=$ac_top_builddir_sub
1489 ac_abs_top_srcdir=$ac_pwd ;;
1490 [\\/]* | ?:[\\/]* ) # Absolute name.
1491 ac_srcdir=$srcdir$ac_dir_suffix;
1492 ac_top_srcdir=$srcdir
1493 ac_abs_top_srcdir=$srcdir ;;
1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501 cd "$ac_dir" || { ac_status=$?; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1508 $SHELL "$ac_srcdir/configure" --help=recursive
1510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512 cd "$ac_pwd" || { ac_status=$?; break; }
1516 test -n "$ac_init_help" && exit $ac_status
1517 if $ac_init_version; then
1520 generated by GNU Autoconf 2.68
1522 Copyright (C) 2010 Free Software Foundation, Inc.
1523 This configure script is free software; the Free Software Foundation
1524 gives unlimited permission to copy, distribute and modify it.
1529 ## ------------------------ ##
1530 ## Autoconf initialization. ##
1531 ## ------------------------ ##
1533 @%:@ ac_fn_c_try_compile LINENO
1534 @%:@ --------------------------
1535 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_compile ()
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext
1540 if { { ac_try="$ac_compile"
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.$ac_objext; then :
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567 as_fn_set_status $ac_retval
1569 } @%:@ ac_fn_c_try_compile
1571 @%:@ ac_fn_c_try_cpp LINENO
1572 @%:@ ----------------------
1573 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 if { { ac_try="$ac_cpp conftest.$ac_ext"
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } > conftest.i && {
1593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1598 $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1606 } @%:@ ac_fn_c_try_cpp
1608 @%:@ ac_fn_c_try_link LINENO
1609 @%:@ -----------------------
1610 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 rm -f conftest.$ac_objext conftest$ac_exeext
1615 if { { ac_try="$ac_link"
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_link") 2>conftest.err
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && {
1631 test -z "$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 } && test -s conftest$ac_exeext && {
1634 test "$cross_compiling" = yes ||
1635 $as_test_x conftest$ac_exeext
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1644 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1645 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1646 # interfere with the next link command; also delete a directory that is
1647 # left behind by Apple's compiler. We do this before executing the actions.
1648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1652 } @%:@ ac_fn_c_try_link
1654 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1655 @%:@ -------------------------------------------------------
1656 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1657 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1658 ac_fn_c_check_header_compile ()
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if eval \${$3+:} false; then :
1664 $as_echo_n "(cached) " >&6
1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667 /* end confdefs.h. */
1671 if ac_fn_c_try_compile "$LINENO"; then :
1676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 $as_echo "$ac_res" >&6; }
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 } @%:@ ac_fn_c_check_header_compile
1685 @%:@ ac_fn_c_try_run LINENO
1686 @%:@ ----------------------
1687 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1688 @%:@ that executables *can* be run.
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_link"
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>&5
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703 { { case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_try") 2>&5
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; }; }; then :
1715 $as_echo "$as_me: program exited with status $ac_status" >&5
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1719 ac_retval=$ac_status
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1725 } @%:@ ac_fn_c_try_run
1727 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1728 @%:@ ----------------------------------
1729 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1730 ac_fn_c_check_func ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \${$3+:} false; then :
1736 $as_echo_n "(cached) " >&6
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1740 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1742 #define $2 innocuous_$2
1744 /* System header to define __stub macros and hopefully few prototypes,
1745 which can conflict with char $2 (); below.
1746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1747 <limits.h> exists even on freestanding compilers. */
1750 # include <limits.h>
1752 # include <assert.h>
1757 /* Override any GCC internal prototype to avoid an error.
1758 Use char because int might match the return type of a GCC
1759 builtin and then its argument prototype would still apply. */
1764 /* The GNU C library defines this for functions which it implements
1765 to always fail with ENOSYS. Some functions are actually named
1766 something starting with __ and the normal name is an alias. */
1767 #if defined __stub_$2 || defined __stub___$2
1779 if ac_fn_c_try_link "$LINENO"; then :
1784 rm -f core conftest.err conftest.$ac_objext \
1785 conftest$ac_exeext conftest.$ac_ext
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 } @%:@ ac_fn_c_check_func
1794 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1795 @%:@ -------------------------------------------------------
1796 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1797 @%:@ the include files in INCLUDES and setting the cache variable VAR
1799 ac_fn_c_check_header_mongrel ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 if eval \${$3+:} false; then :
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1812 # Is the header compilable?
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1814 $as_echo_n "checking $2 usability... " >&6; }
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1820 if ac_fn_c_try_compile "$LINENO"; then :
1821 ac_header_compiler=yes
1823 ac_header_compiler=no
1825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1827 $as_echo "$ac_header_compiler" >&6; }
1829 # Is the header present?
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1831 $as_echo_n "checking $2 presence... " >&6; }
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1836 if ac_fn_c_try_cpp "$LINENO"; then :
1837 ac_header_preproc=yes
1839 ac_header_preproc=no
1841 rm -f conftest.err conftest.i conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1843 $as_echo "$ac_header_preproc" >&6; }
1845 # So? What about this header?
1846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1849 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1855 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1857 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1859 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1861 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867 $as_echo_n "checking for $2... " >&6; }
1868 if eval \${$3+:} false; then :
1869 $as_echo_n "(cached) " >&6
1871 eval "$3=\$ac_header_compiler"
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 } @%:@ ac_fn_c_check_header_mongrel
1881 @%:@ ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1882 @%:@ ---------------------------------------------
1883 @%:@ Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1885 ac_fn_c_check_decl ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 as_decl_name=`echo $2|sed 's/ *(.*//'`
1889 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1891 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1892 if eval \${$3+:} false; then :
1893 $as_echo_n "(cached) " >&6
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1901 @%:@ifndef $as_decl_name
1902 @%:@ifdef __cplusplus
1903 (void) $as_decl_use;
1905 (void) $as_decl_name;
1913 if ac_fn_c_try_compile "$LINENO"; then :
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 } @%:@ ac_fn_c_check_decl
1927 @%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1928 @%:@ --------------------------------------------
1929 @%:@ Tries to find the compile-time value of EXPR in a program that includes
1930 @%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
1932 ac_fn_c_compute_int ()
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 if test "$cross_compiling" = yes; then
1936 # Depending upon the size, compute the lo and hi bounds.
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1943 static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
1944 test_array @<:@0@:>@ = 0
1950 if ac_fn_c_try_compile "$LINENO"; then :
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1959 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
1960 test_array @<:@0@:>@ = 0
1966 if ac_fn_c_try_compile "$LINENO"; then :
1967 ac_hi=$ac_mid; break
1969 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1970 if test $ac_lo -le $ac_mid; then
1974 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1985 static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
1986 test_array @<:@0@:>@ = 0
1992 if ac_fn_c_try_compile "$LINENO"; then :
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
2001 static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
2002 test_array @<:@0@:>@ = 0
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009 ac_lo=$ac_mid; break
2011 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2012 if test $ac_mid -le $ac_hi; then
2016 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 # Binary search between lo and hi bounds.
2027 while test "x$ac_lo" != "x$ac_hi"; do
2028 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2035 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2036 test_array @<:@0@:>@ = 0
2042 if ac_fn_c_try_compile "$LINENO"; then :
2045 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 case $ac_lo in @%:@((
2050 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2057 static long int longval () { return $2; }
2058 static unsigned long int ulongval () { return $2; }
2059 @%:@include <stdio.h>
2060 @%:@include <stdlib.h>
2065 FILE *f = fopen ("conftest.val", "w");
2070 long int i = longval ();
2073 fprintf (f, "%ld", i);
2077 unsigned long int i = ulongval ();
2080 fprintf (f, "%lu", i);
2082 /* Do not output a trailing newline, as this causes \r\n confusion
2083 on some platforms. */
2084 return ferror (f) || fclose (f) != 0;
2090 if ac_fn_c_try_run "$LINENO"; then :
2091 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2096 conftest.$ac_objext conftest.beam conftest.$ac_ext
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101 as_fn_set_status $ac_retval
2103 } @%:@ ac_fn_c_compute_int
2105 @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2106 @%:@ -------------------------------------------
2107 @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
2108 @%:@ variable VAR accordingly.
2109 ac_fn_c_check_type ()
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2113 $as_echo_n "checking for $2... " >&6; }
2114 if eval \${$3+:} false; then :
2115 $as_echo_n "(cached) " >&6
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2130 if ac_fn_c_try_compile "$LINENO"; then :
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2143 if ac_fn_c_try_compile "$LINENO"; then :
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154 $as_echo "$ac_res" >&6; }
2155 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157 } @%:@ ac_fn_c_check_type
2159 @%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2160 @%:@ ----------------------------------------------------
2161 @%:@ Tries to find if the field MEMBER exists in type AGGR, after including
2162 @%:@ INCLUDES, setting cache variable VAR accordingly.
2163 ac_fn_c_check_member ()
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2167 $as_echo_n "checking for $2.$3... " >&6; }
2168 if eval \${$4+:} false; then :
2169 $as_echo_n "(cached) " >&6
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2184 if ac_fn_c_try_compile "$LINENO"; then :
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2194 if (sizeof ac_aggr.$3)
2200 if ac_fn_c_try_compile "$LINENO"; then :
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2211 $as_echo "$ac_res" >&6; }
2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214 } @%:@ ac_fn_c_check_member
2215 cat >config.log <<_ACEOF
2216 This file contains any messages produced by compilers while
2217 running configure, to aid debugging if configure makes a mistake.
2219 It was created by $as_me, which was
2220 generated by GNU Autoconf 2.68. Invocation command line was
2232 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2233 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2234 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2235 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2236 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2238 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2239 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2241 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2242 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2243 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2244 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2245 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2246 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2247 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 test -z "$as_dir" && as_dir=.
2256 $as_echo "PATH: $as_dir"
2272 # Keep a trace of the command line.
2273 # Strip out --no-create and --no-recursion so they do not pile up.
2274 # Strip out --silent because we don't want to record it for future runs.
2275 # Also quote any args containing shell meta-characters.
2276 # Make two passes to allow for proper duplicate-argument suppression.
2280 ac_must_keep_next=false
2286 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2288 | -silent | --silent | --silen | --sile | --sil)
2291 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2294 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2296 as_fn_append ac_configure_args1 " '$ac_arg'"
2297 if test $ac_must_keep_next = true; then
2298 ac_must_keep_next=false # Got value, back to normal.
2301 *=* | --config-cache | -C | -disable-* | --disable-* \
2302 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2303 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2304 | -with-* | --with-* | -without-* | --without-* | --x)
2305 case "$ac_configure_args0 " in
2306 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2309 -* ) ac_must_keep_next=true ;;
2312 as_fn_append ac_configure_args " '$ac_arg'"
2317 { ac_configure_args0=; unset ac_configure_args0;}
2318 { ac_configure_args1=; unset ac_configure_args1;}
2320 # When interrupted or exit'd, cleanup temporary files, and complete
2321 # config.log. We remove comments because anyway the quotes in there
2322 # would cause problems or look ugly.
2323 # WARNING: Use '\'' to represent an apostrophe within the trap.
2324 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2325 trap 'exit_status=$?
2326 # Save into config.log some information that might help in debugging.
2330 $as_echo "## ---------------- ##
2331 ## Cache variables. ##
2332 ## ---------------- ##"
2334 # The following way of writing the cache mishandles newlines in values,
2336 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2337 eval ac_val=\$$ac_var
2341 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2342 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2345 _ | IFS | as_nl) ;; #(
2346 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2347 *) { eval $ac_var=; unset $ac_var;} ;;
2352 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2353 *${as_nl}ac_space=\ *)
2355 "s/'\''/'\''\\\\'\'''\''/g;
2356 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2359 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2366 $as_echo "## ----------------- ##
2367 ## Output variables. ##
2368 ## ----------------- ##"
2370 for ac_var in $ac_subst_vars
2372 eval ac_val=\$$ac_var
2374 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2376 $as_echo "$ac_var='\''$ac_val'\''"
2380 if test -n "$ac_subst_files"; then
2381 $as_echo "## ------------------- ##
2382 ## File substitutions. ##
2383 ## ------------------- ##"
2385 for ac_var in $ac_subst_files
2387 eval ac_val=\$$ac_var
2389 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2391 $as_echo "$ac_var='\''$ac_val'\''"
2396 if test -s confdefs.h; then
2397 $as_echo "## ----------- ##
2404 test "$ac_signal" != 0 &&
2405 $as_echo "$as_me: caught signal $ac_signal"
2406 $as_echo "$as_me: exit $exit_status"
2408 rm -f core *.core core.conftest.* &&
2409 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2412 for ac_signal in 1 2 13 15; do
2413 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2417 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2418 rm -f -r conftest* confdefs.h
2420 $as_echo "/* confdefs.h */" > confdefs.h
2422 # Predefined preprocessor variables.
2424 cat >>confdefs.h <<_ACEOF
2425 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2428 cat >>confdefs.h <<_ACEOF
2429 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2432 cat >>confdefs.h <<_ACEOF
2433 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2436 cat >>confdefs.h <<_ACEOF
2437 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2440 cat >>confdefs.h <<_ACEOF
2441 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2444 cat >>confdefs.h <<_ACEOF
2445 @%:@define PACKAGE_URL "$PACKAGE_URL"
2449 # Let the site file select an alternate cache file if it wants to.
2450 # Prefer an explicitly selected file to automatically selected ones.
2453 if test -n "$CONFIG_SITE"; then
2454 # We do not want a PATH search for config.site.
2455 case $CONFIG_SITE in @%:@((
2456 -*) ac_site_file1=./$CONFIG_SITE;;
2457 */*) ac_site_file1=$CONFIG_SITE;;
2458 *) ac_site_file1=./$CONFIG_SITE;;
2460 elif test "x$prefix" != xNONE; then
2461 ac_site_file1=$prefix/share/config.site
2462 ac_site_file2=$prefix/etc/config.site
2464 ac_site_file1=$ac_default_prefix/share/config.site
2465 ac_site_file2=$ac_default_prefix/etc/config.site
2467 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2469 test "x$ac_site_file" = xNONE && continue
2470 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2472 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2473 sed 's/^/| /' "$ac_site_file" >&5
2475 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2477 as_fn_error $? "failed to load site script $ac_site_file
2478 See \`config.log' for more details" "$LINENO" 5; }
2482 if test -r "$cache_file"; then
2483 # Some versions of bash will fail to source /dev/null (special files
2484 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2485 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2487 $as_echo "$as_me: loading cache $cache_file" >&6;}
2489 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2490 *) . "./$cache_file";;
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2495 $as_echo "$as_me: creating cache $cache_file" >&6;}
2499 # Check that the precious variables saved in the cache have kept the same
2501 ac_cache_corrupted=false
2502 for ac_var in $ac_precious_vars; do
2503 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2504 eval ac_new_set=\$ac_env_${ac_var}_set
2505 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2506 eval ac_new_val=\$ac_env_${ac_var}_value
2507 case $ac_old_set,$ac_new_set in
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2510 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2511 ac_cache_corrupted=: ;;
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2514 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2515 ac_cache_corrupted=: ;;
2518 if test "x$ac_old_val" != "x$ac_new_val"; then
2519 # differences in whitespace do not lead to failure.
2520 ac_old_val_w=`echo x $ac_old_val`
2521 ac_new_val_w=`echo x $ac_new_val`
2522 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2524 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2525 ac_cache_corrupted=:
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2528 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2529 eval $ac_var=\$ac_old_val
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2532 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2534 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2537 # Pass precious variables to config.status.
2538 if test "$ac_new_set" = set; then
2540 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2541 *) ac_arg=$ac_var=$ac_new_val ;;
2543 case " $ac_configure_args " in
2544 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2545 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2549 if $ac_cache_corrupted; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2553 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2554 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2556 ## -------------------- ##
2557 ## Main body of script. ##
2558 ## -------------------- ##
2561 ac_cpp='$CPP $CPPFLAGS'
2562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2570 am__api_version='1.11'
2573 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2574 if test -f "$ac_dir/install-sh"; then
2576 ac_install_sh="$ac_aux_dir/install-sh -c"
2578 elif test -f "$ac_dir/install.sh"; then
2580 ac_install_sh="$ac_aux_dir/install.sh -c"
2582 elif test -f "$ac_dir/shtool"; then
2584 ac_install_sh="$ac_aux_dir/shtool install -c"
2588 if test -z "$ac_aux_dir"; then
2589 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2592 # These three variables are undocumented and unsupported,
2593 # and are intended to be withdrawn in a future Autoconf release.
2594 # They can cause serious problems if a builder's source tree is in a directory
2595 # whose full name contains unusual characters.
2596 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2597 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2598 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2601 # Find a good install program. We prefer a C program (faster),
2602 # so one script is as good as another. But avoid the broken or
2603 # incompatible versions:
2604 # SysV /etc/install, /usr/sbin/install
2605 # SunOS /usr/etc/install
2606 # IRIX /sbin/install
2608 # AmigaOS /C/install, which installs bootblocks on floppy discs
2609 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2610 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2611 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2612 # OS/2's system install, which has a completely different semantic
2613 # ./install, which can be erroneously created by make from ./install.sh.
2614 # Reject install programs that cannot install multiple files.
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2616 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2617 if test -z "$INSTALL"; then
2618 if ${ac_cv_path_install+:} false; then :
2619 $as_echo_n "(cached) " >&6
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 test -z "$as_dir" && as_dir=.
2626 # Account for people who put trailing slashes in PATH elements.
2627 case $as_dir/ in @%:@((
2628 ./ | .// | /[cC]/* | \
2629 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2630 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2633 # OSF1 and SCO ODT 3.0 have their own names for install.
2634 # Don't use installbsd from OSF since it installs stuff as root
2636 for ac_prog in ginstall scoinst install; do
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2639 if test $ac_prog = install &&
2640 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2641 # AIX install. It has an incompatible calling convention.
2643 elif test $ac_prog = install &&
2644 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2645 # program-specific install script used by HP pwplus--don't use.
2648 rm -rf conftest.one conftest.two conftest.dir
2649 echo one > conftest.one
2650 echo two > conftest.two
2652 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2653 test -s conftest.one && test -s conftest.two &&
2654 test -s conftest.dir/conftest.one &&
2655 test -s conftest.dir/conftest.two
2657 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2670 rm -rf conftest.one conftest.two conftest.dir
2673 if test "${ac_cv_path_install+set}" = set; then
2674 INSTALL=$ac_cv_path_install
2676 # As a last resort, use the slow shell script. Don't cache a
2677 # value for INSTALL within a source directory, because that will
2678 # break other packages using the cache if that directory is
2679 # removed, or if the value is a relative name.
2680 INSTALL=$ac_install_sh
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2684 $as_echo "$INSTALL" >&6; }
2686 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2687 # It thinks the first close brace ends the variable substitution.
2688 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2690 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2692 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2695 $as_echo_n "checking whether build environment is sane... " >&6; }
2698 echo timestamp > conftest.file
2699 # Reject unsafe characters in $srcdir or the absolute working directory
2700 # name. Accept space and tab only in the latter.
2704 *[\\\"\#\$\&\'\`$am_lf]*)
2705 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2708 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2709 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2712 # Do `set' in a subshell so we don't clobber the current shell's
2713 # arguments. Must try -L first in case configure is actually a
2714 # symlink; some systems play weird games with the mod time of symlinks
2715 # (eg FreeBSD returns the mod time of the symlink's containing
2718 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2719 if test "$*" = "X"; then
2721 set X `ls -t "$srcdir/configure" conftest.file`
2724 if test "$*" != "X $srcdir/configure conftest.file" \
2725 && test "$*" != "X conftest.file $srcdir/configure"; then
2727 # If neither matched, then we have a broken ls. This can happen
2728 # if, for instance, CONFIG_SHELL is bash and it inherits a
2729 # broken ls alias from the environment. This has actually
2730 # happened. Such a system could not be considered "sane".
2731 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2732 alias in your environment" "$LINENO" 5
2735 test "$2" = conftest.file
2741 as_fn_error $? "newly created file is older than distributed files!
2742 Check your system clock" "$LINENO" 5
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2745 $as_echo "yes" >&6; }
2746 test "$program_prefix" != NONE &&
2747 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2748 # Use a double $ so make ignores it.
2749 test "$program_suffix" != NONE &&
2750 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2751 # Double any \ or $.
2752 # By default was `s,x,x', remove it if useless.
2753 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2754 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2756 # expand $ac_aux_dir to an absolute path
2757 am_aux_dir=`cd $ac_aux_dir && pwd`
2759 if test x"${MISSING+set}" != xset; then
2762 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2764 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2767 # Use eval to expand $SHELL
2768 if eval "$MISSING --run true"; then
2769 am_missing_run="$MISSING --run "
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2773 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2776 if test x"${install_sh}" != xset; then
2779 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2781 install_sh="\${SHELL} $am_aux_dir/install-sh"
2785 # Installed binaries are usually stripped using `strip' when the user
2786 # run `make install-strip'. However `strip' might not be the right
2787 # tool to use in cross-compilation environments, therefore Automake
2788 # will honor the `STRIP' environment variable to overrule this program.
2789 if test "$cross_compiling" != no; then
2790 if test -n "$ac_tool_prefix"; then
2791 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2792 set dummy ${ac_tool_prefix}strip; ac_word=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if ${ac_cv_prog_STRIP+:} false; then :
2796 $as_echo_n "(cached) " >&6
2798 if test -n "$STRIP"; then
2799 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 STRIP=$ac_cv_prog_STRIP
2819 if test -n "$STRIP"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2821 $as_echo "$STRIP" >&6; }
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 $as_echo "no" >&6; }
2829 if test -z "$ac_cv_prog_STRIP"; then
2831 # Extract the first word of "strip", so it can be a program name with args.
2832 set dummy 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_ac_ct_STRIP+:} false; then :
2836 $as_echo_n "(cached) " >&6
2838 if test -n "$ac_ct_STRIP"; then
2839 ac_cv_prog_ac_ct_STRIP="$ac_ct_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2848 ac_cv_prog_ac_ct_STRIP="strip"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2859 if test -n "$ac_ct_STRIP"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2861 $as_echo "$ac_ct_STRIP" >&6; }
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2867 if test "x$ac_ct_STRIP" = x; then
2870 case $cross_compiling:$ac_tool_warned in
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2874 ac_tool_warned=yes ;;
2879 STRIP="$ac_cv_prog_STRIP"
2883 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2886 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2887 if test -z "$MKDIR_P"; then
2888 if ${ac_cv_path_mkdir+:} false; then :
2889 $as_echo_n "(cached) " >&6
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2895 test -z "$as_dir" && as_dir=.
2896 for ac_prog in mkdir gmkdir; do
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2899 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2900 'mkdir (GNU coreutils) '* | \
2901 'mkdir (coreutils) '* | \
2902 'mkdir (fileutils) '4.1*)
2903 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2913 test -d ./--version && rmdir ./--version
2914 if test "${ac_cv_path_mkdir+set}" = set; then
2915 MKDIR_P="$ac_cv_path_mkdir -p"
2917 # As a last resort, use the slow shell script. Don't cache a
2918 # value for MKDIR_P within a source directory, because that will
2919 # break other packages using the cache if that directory is
2920 # removed, or if the value is a relative name.
2921 MKDIR_P="$ac_install_sh -d"
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2925 $as_echo "$MKDIR_P" >&6; }
2929 [\\/$]* | ?:[\\/]*) ;;
2930 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2933 for ac_prog in gawk mawk nawk awk
2935 # Extract the first word of "$ac_prog", so it can be a program name with args.
2936 set dummy $ac_prog; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if ${ac_cv_prog_AWK+:} false; then :
2940 $as_echo_n "(cached) " >&6
2942 if test -n "$AWK"; then
2943 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 ac_cv_prog_AWK="$ac_prog"
2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 if test -n "$AWK"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2965 $as_echo "$AWK" >&6; }
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2972 test -n "$AWK" && break
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2976 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2978 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2979 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2980 $as_echo_n "(cached) " >&6
2982 cat >conftest.make <<\_ACEOF
2985 @echo '@@@%%%=$(MAKE)=@@@%%%'
2987 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2988 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2990 eval ac_cv_prog_make_${ac_make}_set=yes;;
2992 eval ac_cv_prog_make_${ac_make}_set=no;;
2996 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2998 $as_echo "yes" >&6; }
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002 $as_echo "no" >&6; }
3003 SET_MAKE="MAKE=${MAKE-make}"
3006 rm -rf .tst 2>/dev/null
3007 mkdir .tst 2>/dev/null
3008 if test -d .tst; then
3013 rmdir .tst 2>/dev/null
3015 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3016 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3017 # is not polluted with repeated "-I."
3018 am__isrc=' -I$(srcdir)'
3019 # test to see if srcdir already configured
3020 if test -f $srcdir/config.status; then
3021 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3025 # test whether we have cygpath
3026 if test -z "$CYGPATH_W"; then
3027 if (cygpath --version) >/dev/null 2>/dev/null; then
3028 CYGPATH_W='cygpath -w'
3035 # Define the identity of the package.
3037 VERSION=2.0.18-stable
3040 cat >>confdefs.h <<_ACEOF
3041 @%:@define PACKAGE "$PACKAGE"
3045 cat >>confdefs.h <<_ACEOF
3046 @%:@define VERSION "$VERSION"
3049 # Some tools Automake needs.
3051 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3054 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3057 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3060 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3063 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3065 # We need awk for the "check" target. The system "awk" is bad on
3067 # Always define AMTAR for backward compatibility. Yes, it's still used
3068 # in the wild :-( We should find a proper way to deprecate it ...
3071 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3077 ac_config_headers="$ac_config_headers config.h"
3080 $as_echo "@%:@define NUMERIC_VERSION 0x02001200" >>confdefs.h
3083 if test "$prefix" = "NONE"; then
3087 # Make sure we can run config.sub.
3088 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3089 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3092 $as_echo_n "checking build system type... " >&6; }
3093 if ${ac_cv_build+:} false; then :
3094 $as_echo_n "(cached) " >&6
3096 ac_build_alias=$build_alias
3097 test "x$ac_build_alias" = x &&
3098 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3099 test "x$ac_build_alias" = x &&
3100 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3101 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3102 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3106 $as_echo "$ac_cv_build" >&6; }
3107 case $ac_cv_build in
3109 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3112 ac_save_IFS=$IFS; IFS='-'
3118 # Remember, the first character of IFS is used to create $*,
3119 # except with old shells:
3122 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3126 $as_echo_n "checking host system type... " >&6; }
3127 if ${ac_cv_host+:} false; then :
3128 $as_echo_n "(cached) " >&6
3130 if test "x$host_alias" = x; then
3131 ac_cv_host=$ac_cv_build
3133 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3134 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3139 $as_echo "$ac_cv_host" >&6; }
3142 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3145 ac_save_IFS=$IFS; IFS='-'
3151 # Remember, the first character of IFS is used to create $*,
3152 # except with old shells:
3155 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3162 CFLAGS="$CFLAGS -D_OSF_SOURCE"
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171 if test -n "$ac_tool_prefix"; then
3172 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3173 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 $as_echo_n "checking for $ac_word... " >&6; }
3176 if ${ac_cv_prog_CC+:} false; then :
3177 $as_echo_n "(cached) " >&6
3179 if test -n "$CC"; then
3180 ac_cv_prog_CC="$CC" # Let the user override the test.
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3189 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 if test -n "$CC"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3202 $as_echo "$CC" >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3210 if test -z "$ac_cv_prog_CC"; then
3212 # Extract the first word of "gcc", so it can be a program name with args.
3213 set dummy gcc; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3217 $as_echo_n "(cached) " >&6
3219 if test -n "$ac_ct_CC"; then
3220 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 test -z "$as_dir" && as_dir=.
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3229 ac_cv_prog_ac_ct_CC="gcc"
3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3240 if test -n "$ac_ct_CC"; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3242 $as_echo "$ac_ct_CC" >&6; }
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3248 if test "x$ac_ct_CC" = x; then
3251 case $cross_compiling:$ac_tool_warned in
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3255 ac_tool_warned=yes ;;
3263 if test -z "$CC"; then
3264 if test -n "$ac_tool_prefix"; then
3265 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3266 set dummy ${ac_tool_prefix}cc; ac_word=$2
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268 $as_echo_n "checking for $ac_word... " >&6; }
3269 if ${ac_cv_prog_CC+:} false; then :
3270 $as_echo_n "(cached) " >&6
3272 if test -n "$CC"; then
3273 ac_cv_prog_CC="$CC" # Let the user override the test.
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 test -z "$as_dir" && as_dir=.
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3282 ac_cv_prog_CC="${ac_tool_prefix}cc"
3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 if test -n "$CC"; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3295 $as_echo "$CC" >&6; }
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3304 if test -z "$CC"; then
3305 # Extract the first word of "cc", so it can be a program name with args.
3306 set dummy cc; ac_word=$2
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308 $as_echo_n "checking for $ac_word... " >&6; }
3309 if ${ac_cv_prog_CC+:} false; then :
3310 $as_echo_n "(cached) " >&6
3312 if test -n "$CC"; then
3313 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3324 ac_prog_rejected=yes
3328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 if test $ac_prog_rejected = yes; then
3336 # We found a bogon in the path, so make sure we never use it.
3337 set dummy $ac_cv_prog_CC
3339 if test $@%:@ != 0; then
3340 # We chose a different compiler from the bogus one.
3341 # However, it has the same basename, so the bogon will be chosen
3342 # first if we set CC to just the basename; use the full file name.
3344 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3350 if test -n "$CC"; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3352 $as_echo "$CC" >&6; }
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355 $as_echo "no" >&6; }
3360 if test -z "$CC"; then
3361 if test -n "$ac_tool_prefix"; then
3362 for ac_prog in cl.exe
3364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3365 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 $as_echo_n "checking for $ac_word... " >&6; }
3368 if ${ac_cv_prog_CC+:} false; then :
3369 $as_echo_n "(cached) " >&6
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC="$CC" # Let the user override the test.
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 if test -n "$CC"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394 $as_echo "$CC" >&6; }
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 $as_echo "no" >&6; }
3401 test -n "$CC" && break
3404 if test -z "$CC"; then
3406 for ac_prog in cl.exe
3408 # Extract the first word of "$ac_prog", so it can be a program name with args.
3409 set dummy $ac_prog; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3413 $as_echo_n "(cached) " >&6
3415 if test -n "$ac_ct_CC"; then
3416 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 ac_cv_prog_ac_ct_CC="$ac_prog"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3436 if test -n "$ac_ct_CC"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3438 $as_echo "$ac_ct_CC" >&6; }
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3445 test -n "$ac_ct_CC" && break
3448 if test "x$ac_ct_CC" = x; then
3451 case $cross_compiling:$ac_tool_warned in
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3455 ac_tool_warned=yes ;;
3464 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error $? "no acceptable C compiler found in \$PATH
3467 See \`config.log' for more details" "$LINENO" 5; }
3469 # Provide some information about the compiler.
3470 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3473 for ac_option in --version -v -V -qversion; do
3474 { { ac_try="$ac_compiler $ac_option >&5"
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480 $as_echo "$ac_try_echo"; } >&5
3481 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3483 if test -s conftest.err; then
3485 ... rest of stderr output deleted ...
3486 10q' conftest.err >conftest.er1
3487 cat conftest.er1 >&5
3489 rm -f conftest.er1 conftest.err
3490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491 test $ac_status = 0; }
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3505 ac_clean_files_save=$ac_clean_files
3506 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3507 # Try to create an executable without -o first, disregard a.out.
3508 # It will help us diagnose broken compilers, and finding out an intuition
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3511 $as_echo_n "checking whether the C compiler works... " >&6; }
3512 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3514 # The possible output files:
3515 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3518 for ac_file in $ac_files
3521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3522 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3527 if { { ac_try="$ac_link_default"
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533 $as_echo "$ac_try_echo"; } >&5
3534 (eval "$ac_link_default") 2>&5
3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537 test $ac_status = 0; }; then :
3538 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3539 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3540 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3541 # so that the user can short-circuit this test for compilers unknown to
3543 for ac_file in $ac_files ''
3545 test -f "$ac_file" || continue
3547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3550 # We found the default executable, but exeext='' is most
3554 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3556 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3558 # We set ac_cv_exeext here because the later test for it is not
3559 # safe: cross compilers may not add the suffix if given an `-o'
3560 # argument, so we may need to know it at that point already.
3561 # Even if this section looks crufty: it has the advantage of
3568 test "$ac_cv_exeext" = no && ac_cv_exeext=
3573 if test -z "$ac_file"; then :
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3576 $as_echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 as_fn_error 77 "C compiler cannot create executables
3582 See \`config.log' for more details" "$LINENO" 5; }
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3585 $as_echo "yes" >&6; }
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3588 $as_echo_n "checking for C compiler default output file name... " >&6; }
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3590 $as_echo "$ac_file" >&6; }
3591 ac_exeext=$ac_cv_exeext
3593 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3594 ac_clean_files=$ac_clean_files_save
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3596 $as_echo_n "checking for suffix of executables... " >&6; }
3597 if { { ac_try="$ac_link"
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603 $as_echo "$ac_try_echo"; } >&5
3604 (eval "$ac_link") 2>&5
3606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3607 test $ac_status = 0; }; then :
3608 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3609 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3610 # work properly (i.e., refer to `conftest.exe'), while it won't with
3612 for ac_file in conftest.exe conftest conftest.*; do
3613 test -f "$ac_file" || continue
3615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3616 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3625 See \`config.log' for more details" "$LINENO" 5; }
3627 rm -f conftest conftest$ac_cv_exeext
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3629 $as_echo "$ac_cv_exeext" >&6; }
3631 rm -f conftest.$ac_ext
3632 EXEEXT=$ac_cv_exeext
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3636 @%:@include <stdio.h>
3640 FILE *f = fopen ("conftest.out", "w");
3641 return ferror (f) || fclose (f) != 0;
3647 ac_clean_files="$ac_clean_files conftest.out"
3648 # Check that the compiler produces executables we can run. If not, either
3649 # the compiler is broken, or we cross compile.
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3651 $as_echo_n "checking whether we are cross compiling... " >&6; }
3652 if test "$cross_compiling" != yes; then
3653 { { ac_try="$ac_link"
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 $as_echo "$ac_try_echo"; } >&5
3660 (eval "$ac_link") 2>&5
3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }
3664 if { ac_try='./conftest$ac_cv_exeext'
3665 { { case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671 (eval "$ac_try") 2>&5
3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }; }; then
3677 if test "$cross_compiling" = maybe; then
3680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682 as_fn_error $? "cannot run C compiled programs.
3683 If you meant to cross compile, use \`--host'.
3684 See \`config.log' for more details" "$LINENO" 5; }
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3689 $as_echo "$cross_compiling" >&6; }
3691 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3692 ac_clean_files=$ac_clean_files_save
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3694 $as_echo_n "checking for suffix of object files... " >&6; }
3695 if ${ac_cv_objext+:} false; then :
3696 $as_echo_n "(cached) " >&6
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3709 rm -f conftest.o conftest.obj
3710 if { { ac_try="$ac_compile"
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716 $as_echo "$ac_try_echo"; } >&5
3717 (eval "$ac_compile") 2>&5
3719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3720 test $ac_status = 0; }; then :
3721 for ac_file in conftest.o conftest.obj conftest.*; do
3722 test -f "$ac_file" || continue;
3724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3725 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3730 $as_echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3735 as_fn_error $? "cannot compute suffix of object files: cannot compile
3736 See \`config.log' for more details" "$LINENO" 5; }
3738 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3741 $as_echo "$ac_cv_objext" >&6; }
3742 OBJEXT=$ac_cv_objext
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3745 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3746 if ${ac_cv_c_compiler_gnu+:} false; then :
3747 $as_echo_n "(cached) " >&6
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3763 if ac_fn_c_try_compile "$LINENO"; then :
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3773 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3774 if test $ac_compiler_gnu = yes; then
3779 ac_test_CFLAGS=${CFLAGS+set}
3780 ac_save_CFLAGS=$CFLAGS
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3782 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3783 if ${ac_cv_prog_cc_g+:} false; then :
3784 $as_echo_n "(cached) " >&6
3786 ac_save_c_werror_flag=$ac_c_werror_flag
3787 ac_c_werror_flag=yes
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3801 if ac_fn_c_try_compile "$LINENO"; then :
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3816 if ac_fn_c_try_compile "$LINENO"; then :
3819 ac_c_werror_flag=$ac_save_c_werror_flag
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3832 if ac_fn_c_try_compile "$LINENO"; then :
3835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3840 ac_c_werror_flag=$ac_save_c_werror_flag
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3843 $as_echo "$ac_cv_prog_cc_g" >&6; }
3844 if test "$ac_test_CFLAGS" = set; then
3845 CFLAGS=$ac_save_CFLAGS
3846 elif test $ac_cv_prog_cc_g = yes; then
3847 if test "$GCC" = yes; then
3853 if test "$GCC" = yes; then
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3860 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3861 if ${ac_cv_prog_cc_c89+:} false; then :
3862 $as_echo_n "(cached) " >&6
3864 ac_cv_prog_cc_c89=no
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3870 #include <sys/types.h>
3871 #include <sys/stat.h>
3872 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3873 struct buf { int x; };
3874 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3875 static char *e (p, i)
3881 static char *f (char * (*g) (char **, int), char **p, ...)
3886 s = g (p, va_arg (v,int));
3891 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3892 function prototypes and stuff, but not '\xHH' hex character constants.
3893 These don't provoke an error unfortunately, instead are silently treated
3894 as 'x'. The following induces an error, until -std is added to get
3895 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3896 array size at least. It's necessary to write '\x00'==0 to get something
3897 that's true only with -std. */
3898 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3900 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3901 inside strings and character constants. */
3903 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3905 int test (int i, double x);
3906 struct s1 {int (*f) (int a);};
3907 struct s2 {int (*f) (double a);};
3908 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3914 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3919 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3920 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3922 CC="$ac_save_CC $ac_arg"
3923 if ac_fn_c_try_compile "$LINENO"; then :
3924 ac_cv_prog_cc_c89=$ac_arg
3926 rm -f core conftest.err conftest.$ac_objext
3927 test "x$ac_cv_prog_cc_c89" != "xno" && break
3929 rm -f conftest.$ac_ext
3934 case "x$ac_cv_prog_cc_c89" in
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3937 $as_echo "none needed" >&6; } ;;
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3940 $as_echo "unsupported" >&6; } ;;
3942 CC="$CC $ac_cv_prog_cc_c89"
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3944 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3946 if test "x$ac_cv_prog_cc_c89" != xno; then :
3951 ac_cpp='$CPP $CPPFLAGS'
3952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955 DEPDIR="${am__leading_dot}deps"
3957 ac_config_commands="$ac_config_commands depfiles"
3960 am_make=${MAKE-make}
3961 cat > confinc << 'END'
3963 @echo this is the am__doit target
3966 # If we don't find an include directive, just comment out the code.
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3968 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3972 # First try GNU make style include.
3973 echo "include confinc" > confmf
3974 # Ignore all kinds of additional output from `make'.
3975 case `$am_make -s -f confmf 2> /dev/null` in #(
3976 *the\ am__doit\ target*)
3982 # Now try BSD make style include.
3983 if test "$am__include" = "#"; then
3984 echo '.include "confinc"' > confmf
3985 case `$am_make -s -f confmf 2> /dev/null` in #(
3986 *the\ am__doit\ target*)
3987 am__include=.include
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3996 $as_echo "$_am_result" >&6; }
3997 rm -f confinc confmf
3999 @%:@ Check whether --enable-dependency-tracking was given.
4000 if test "${enable_dependency_tracking+set}" = set; then :
4001 enableval=$enable_dependency_tracking;
4004 if test "x$enable_dependency_tracking" != xno; then
4005 am_depcomp="$ac_aux_dir/depcomp"
4009 if test "x$enable_dependency_tracking" != xno; then
4019 depcc="$CC" am_compiler_list=
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4022 $as_echo_n "checking dependency style of $depcc... " >&6; }
4023 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4024 $as_echo_n "(cached) " >&6
4026 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4027 # We make a subdir and do the tests there. Otherwise we can end up
4028 # making bogus files that we don't know about and never remove. For
4029 # instance it was reported that on HP-UX the gcc test will end up
4030 # making a dummy file named `D' -- because `-MD' means `put the output
4034 # Copy depcomp to subdir because otherwise we won't find it if we're
4035 # using a relative directory.
4036 cp "$am_depcomp" conftest.dir
4038 # We will build objects and dependencies in a subdirectory because
4039 # it helps to detect inapplicable dependency modes. For instance
4040 # both Tru64's cc and ICC support -MD to output dependencies as a
4041 # side effect of compilation, but ICC will put the dependencies in
4042 # the current directory while Tru64 will put them in the object
4046 am_cv_CC_dependencies_compiler_type=none
4047 if test "$am_compiler_list" = ""; then
4048 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4051 case " $depcc " in #(
4052 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4055 for depmode in $am_compiler_list; do
4056 # Setup a source with many dependencies, because some compilers
4057 # like to wrap large dependency lists on column 80 (with \), and
4058 # we should not choose a depcomp mode which is confused by this.
4060 # We need to recreate these files for each test, as the compiler may
4061 # overwrite some of them when testing with obscure command lines.
4062 # This happens at least with the AIX C compiler.
4064 for i in 1 2 3 4 5 6; do
4065 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4066 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4067 # Solaris 8's {/usr,}/bin/sh.
4068 touch sub/conftst$i.h
4070 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4072 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4073 # mode. It turns out that the SunPro C++ compiler does not properly
4074 # handle `-M -o', and we need to detect this. Also, some Intel
4075 # versions had trouble with output in subdirs
4076 am__obj=sub/conftest.${OBJEXT-o}
4077 am__minus_obj="-o $am__obj"
4080 # This depmode causes a compiler race in universal mode.
4081 test "$am__universal" = false || continue
4084 # after this tag, mechanisms are not by side-effect, so they'll
4085 # only be used when explicitly requested
4086 if test "x$enable_dependency_tracking" = xyes; then
4092 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4093 # This compiler won't grok `-c -o', but also, the minuso test has
4094 # not run yet. These depmodes are late enough in the game, and
4095 # so weak that their functioning should not be impacted.
4096 am__obj=conftest.${OBJEXT-o}
4101 if depmode=$depmode \
4102 source=sub/conftest.c object=$am__obj \
4103 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4104 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4105 >/dev/null 2>conftest.err &&
4106 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4107 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4108 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4109 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4110 # icc doesn't choke on unknown options, it will just issue warnings
4111 # or remarks (even with -Werror). So we grep stderr for any message
4112 # that says an option was ignored or not supported.
4113 # When given -MP, icc 7.0 and 7.1 complain thusly:
4114 # icc: Command line warning: ignoring option '-M'; no argument required
4115 # The diagnosis changed in icc 8.0:
4116 # icc: Command line remark: option '-MP' not supported
4117 if (grep 'ignoring option' conftest.err ||
4118 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4119 am_cv_CC_dependencies_compiler_type=$depmode
4128 am_cv_CC_dependencies_compiler_type=none
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4133 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4134 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4137 test "x$enable_dependency_tracking" != xno \
4138 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4140 am__fastdepCC_FALSE='#'
4142 am__fastdepCC_TRUE='#'
4143 am__fastdepCC_FALSE=
4147 if test "x$CC" != xcc; then
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4149 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4152 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4154 set dummy $CC; ac_cc=`$as_echo "$2" |
4155 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4156 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4157 $as_echo_n "(cached) " >&6
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4170 # Make sure it works both with $CC and with simple cc.
4171 # We do the test twice because some compilers refuse to overwrite an
4172 # existing .o file with -o, though they will create one.
4173 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4175 if { { case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4180 $as_echo "$ac_try_echo"; } >&5
4181 (eval "$ac_try") 2>&5
4183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4184 test $ac_status = 0; } &&
4185 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4190 $as_echo "$ac_try_echo"; } >&5
4191 (eval "$ac_try") 2>&5
4193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4194 test $ac_status = 0; };
4196 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4197 if test "x$CC" != xcc; then
4198 # Test first that cc exists at all.
4199 if { ac_try='cc -c conftest.$ac_ext >&5'
4200 { { case "(($ac_try" in
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 $as_echo "$ac_try_echo"; } >&5
4206 (eval "$ac_try") 2>&5
4208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4209 test $ac_status = 0; }; }; then
4210 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4212 if { { case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4217 $as_echo "$ac_try_echo"; } >&5
4218 (eval "$ac_try") 2>&5
4220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4221 test $ac_status = 0; } &&
4222 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227 $as_echo "$ac_try_echo"; } >&5
4228 (eval "$ac_try") 2>&5
4230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4231 test $ac_status = 0; };
4236 # cc exists but doesn't like -o.
4237 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4242 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4244 rm -f core conftest*
4247 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4249 $as_echo "yes" >&6; }
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4254 $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4258 # FIXME: we rely on the cache variable name because
4259 # there is no other way.
4261 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4262 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4263 if test "$am_t" != yes; then
4264 # Losing compiler, so override with the script.
4265 # FIXME: It is wrong to rewrite CC.
4266 # But if we don't then we get into trouble of one sort or another.
4267 # A longer-term fix would be to have automake use am__CC in this case,
4268 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4269 CC="$am_aux_dir/compile $CC"
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4275 $as_echo_n "checking whether ln -s works... " >&6; }
4277 if test "$LN_S" = "ln -s"; then
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4279 $as_echo "yes" >&6; }
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4282 $as_echo "no, using $LN_S" >&6; }
4289 ac_cpp='$CPP $CPPFLAGS'
4290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4294 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4295 # On Suns, sometimes $CPP names a directory.
4296 if test -n "$CPP" && test -d "$CPP"; then
4299 if test -z "$CPP"; then
4300 if ${ac_cv_prog_CPP+:} false; then :
4301 $as_echo_n "(cached) " >&6
4303 # Double quotes because CPP needs to be expanded
4304 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4307 for ac_c_preproc_warn_flag in '' yes
4309 # Use a header file that comes with gcc, so configuring glibc
4310 # with a fresh cross-compiler works.
4311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4312 # <limits.h> exists even on freestanding compilers.
4313 # On the NeXT, cc -E runs the code through the compiler's parser,
4314 # not just through cpp. "Syntax error" is here to catch this case.
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4318 @%:@ include <limits.h>
4320 @%:@ include <assert.h>
4324 if ac_fn_c_try_cpp "$LINENO"; then :
4327 # Broken: fails on valid input.
4330 rm -f conftest.err conftest.i conftest.$ac_ext
4332 # OK, works on sane cases. Now check whether nonexistent headers
4333 # can be detected and how.
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336 @%:@include <ac_nonexistent.h>
4338 if ac_fn_c_try_cpp "$LINENO"; then :
4339 # Broken: success on invalid input.
4342 # Passes both tests.
4346 rm -f conftest.err conftest.i conftest.$ac_ext
4349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4350 rm -f conftest.i conftest.err conftest.$ac_ext
4351 if $ac_preproc_ok; then :
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4364 $as_echo "$CPP" >&6; }
4366 for ac_c_preproc_warn_flag in '' yes
4368 # Use a header file that comes with gcc, so configuring glibc
4369 # with a fresh cross-compiler works.
4370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4371 # <limits.h> exists even on freestanding compilers.
4372 # On the NeXT, cc -E runs the code through the compiler's parser,
4373 # not just through cpp. "Syntax error" is here to catch this case.
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4377 @%:@ include <limits.h>
4379 @%:@ include <assert.h>
4383 if ac_fn_c_try_cpp "$LINENO"; then :
4386 # Broken: fails on valid input.
4389 rm -f conftest.err conftest.i conftest.$ac_ext
4391 # OK, works on sane cases. Now check whether nonexistent headers
4392 # can be detected and how.
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4395 @%:@include <ac_nonexistent.h>
4397 if ac_fn_c_try_cpp "$LINENO"; then :
4398 # Broken: success on invalid input.
4401 # Passes both tests.
4405 rm -f conftest.err conftest.i conftest.$ac_ext
4408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4409 rm -f conftest.i conftest.err conftest.$ac_ext
4410 if $ac_preproc_ok; then :
4413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4415 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4416 See \`config.log' for more details" "$LINENO" 5; }
4420 ac_cpp='$CPP $CPPFLAGS'
4421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4427 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4428 if ${ac_cv_path_GREP+:} false; then :
4429 $as_echo_n "(cached) " >&6
4431 if test -z "$GREP"; then
4432 ac_path_GREP_found=false
4433 # Loop through the user's path and test for each of PROGNAME-LIST
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4438 test -z "$as_dir" && as_dir=.
4439 for ac_prog in grep ggrep; do
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4442 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4443 # Check for GNU ac_path_GREP and select it if it is found.
4444 # Check for GNU $ac_path_GREP
4445 case `"$ac_path_GREP" --version 2>&1` in
4447 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4450 $as_echo_n 0123456789 >"conftest.in"
4453 cat "conftest.in" "conftest.in" >"conftest.tmp"
4454 mv "conftest.tmp" "conftest.in"
4455 cp "conftest.in" "conftest.nl"
4456 $as_echo 'GREP' >> "conftest.nl"
4457 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4459 as_fn_arith $ac_count + 1 && ac_count=$as_val
4460 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4461 # Best one so far, save it but keep looking for a better one
4462 ac_cv_path_GREP="$ac_path_GREP"
4463 ac_path_GREP_max=$ac_count
4465 # 10*(2^10) chars as input seems more than enough
4466 test $ac_count -gt 10 && break
4468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4471 $ac_path_GREP_found && break 3
4476 if test -z "$ac_cv_path_GREP"; then
4477 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4480 ac_cv_path_GREP=$GREP
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4485 $as_echo "$ac_cv_path_GREP" >&6; }
4486 GREP="$ac_cv_path_GREP"
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4490 $as_echo_n "checking for egrep... " >&6; }
4491 if ${ac_cv_path_EGREP+:} false; then :
4492 $as_echo_n "(cached) " >&6
4494 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4495 then ac_cv_path_EGREP="$GREP -E"
4497 if test -z "$EGREP"; then
4498 ac_path_EGREP_found=false
4499 # Loop through the user's path and test for each of PROGNAME-LIST
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4504 test -z "$as_dir" && as_dir=.
4505 for ac_prog in egrep; do
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4508 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4509 # Check for GNU ac_path_EGREP and select it if it is found.
4510 # Check for GNU $ac_path_EGREP
4511 case `"$ac_path_EGREP" --version 2>&1` in
4513 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4516 $as_echo_n 0123456789 >"conftest.in"
4519 cat "conftest.in" "conftest.in" >"conftest.tmp"
4520 mv "conftest.tmp" "conftest.in"
4521 cp "conftest.in" "conftest.nl"
4522 $as_echo 'EGREP' >> "conftest.nl"
4523 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4524 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4525 as_fn_arith $ac_count + 1 && ac_count=$as_val
4526 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4527 # Best one so far, save it but keep looking for a better one
4528 ac_cv_path_EGREP="$ac_path_EGREP"
4529 ac_path_EGREP_max=$ac_count
4531 # 10*(2^10) chars as input seems more than enough
4532 test $ac_count -gt 10 && break
4534 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4537 $ac_path_EGREP_found && break 3
4542 if test -z "$ac_cv_path_EGREP"; then
4543 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4546 ac_cv_path_EGREP=$EGREP
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4552 $as_echo "$ac_cv_path_EGREP" >&6; }
4553 EGREP="$ac_cv_path_EGREP"
4556 if test $ac_cv_c_compiler_gnu = yes; then
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4558 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4559 if ${ac_cv_prog_gcc_traditional+:} false; then :
4560 $as_echo_n "(cached) " >&6
4562 ac_pattern="Autoconf.*'x'"
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4569 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4570 ac_cv_prog_gcc_traditional=yes
4572 ac_cv_prog_gcc_traditional=no
4577 if test $ac_cv_prog_gcc_traditional = no; then
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4584 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4585 ac_cv_prog_gcc_traditional=yes
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4592 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4593 if test $ac_cv_prog_gcc_traditional = yes; then
4594 CC="$CC -traditional"
4599 if test "$GCC" = "yes" ; then
4600 # Enable many gcc warnings by default...
4601 CFLAGS="$CFLAGS -Wall"
4602 # And disable the strict-aliasing optimization, since it breaks
4603 # our sockaddr-handling code in strange ways.
4604 CFLAGS="$CFLAGS -fno-strict-aliasing"
4607 # OS X Lion started deprecating the system openssl. Let's just disable
4608 # all deprecation warnings on OS X.
4612 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
4616 @%:@ Check whether --enable-gcc-warnings was given.
4617 if test "${enable_gcc_warnings+set}" = set; then :
4618 enableval=$enable_gcc_warnings;
4621 @%:@ Check whether --enable-thread-support was given.
4622 if test "${enable_thread_support+set}" = set; then :
4623 enableval=$enable_thread_support;
4625 enable_thread_support=yes
4628 @%:@ Check whether --enable-malloc-replacement was given.
4629 if test "${enable_malloc_replacement+set}" = set; then :
4630 enableval=$enable_malloc_replacement;
4632 enable_malloc_replacement=yes
4635 @%:@ Check whether --enable-openssl was given.
4636 if test "${enable_openssl+set}" = set; then :
4637 enableval=$enable_openssl;
4642 @%:@ Check whether --enable-debug-mode was given.
4643 if test "${enable_debug_mode+set}" = set; then :
4644 enableval=$enable_debug_mode;
4646 enable_debug_mode=yes
4649 @%:@ Check whether --enable-libevent-install was given.
4650 if test "${enable_libevent_install+set}" = set; then :
4651 enableval=$enable_libevent_install;
4653 enable_libevent_install=yes
4656 @%:@ Check whether --enable-libevent-regress was given.
4657 if test "${enable_libevent_regress+set}" = set; then :
4658 enableval=$enable_libevent_regress;
4660 enable_libevent_regress=yes
4663 @%:@ Check whether --enable-function-sections was given.
4664 if test "${enable_function_sections+set}" = set; then :
4665 enableval=$enable_function_sections;
4667 enable_function_sections=no
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4675 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4680 macro_version='2.4.2'
4681 macro_revision='1.3337'
4695 ltmain="$ac_aux_dir/ltmain.sh"
4697 # Backslashify metacharacters that are still active within
4698 # double-quoted strings.
4699 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4701 # Same as above, but do not quote variable references.
4702 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4704 # Sed substitution to delay expansion of an escaped shell variable in a
4705 # double_quote_subst'ed string.
4706 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4708 # Sed substitution to delay expansion of an escaped single quote.
4709 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4711 # Sed substitution to avoid accidental globbing in evaled expressions
4712 no_glob_subst='s/\*/\\\*/g'
4714 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4715 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4716 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4719 $as_echo_n "checking how to print strings... " >&6; }
4720 # Test print first, because it will be a builtin if present.
4721 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4722 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4724 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4727 # Use this function as a fallback that always works.
4728 func_fallback_echo ()
4730 eval 'cat <<_LTECHO_EOF
4734 ECHO='func_fallback_echo'
4737 # func_echo_all arg...
4738 # Invoke $ECHO with all args, space-separated.
4745 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4746 $as_echo "printf" >&6; } ;;
4747 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4748 $as_echo "print -r" >&6; } ;;
4749 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4750 $as_echo "cat" >&6; } ;;
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4767 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4768 if ${ac_cv_path_SED+:} false; then :
4769 $as_echo_n "(cached) " >&6
4771 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4772 for ac_i in 1 2 3 4 5 6 7; do
4773 ac_script="$ac_script$as_nl$ac_script"
4775 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4776 { ac_script=; unset ac_script;}
4777 if test -z "$SED"; then
4778 ac_path_SED_found=false
4779 # Loop through the user's path and test for each of PROGNAME-LIST
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 test -z "$as_dir" && as_dir=.
4785 for ac_prog in sed gsed; do
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4788 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4789 # Check for GNU ac_path_SED and select it if it is found.
4790 # Check for GNU $ac_path_SED
4791 case `"$ac_path_SED" --version 2>&1` in
4793 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4796 $as_echo_n 0123456789 >"conftest.in"
4799 cat "conftest.in" "conftest.in" >"conftest.tmp"
4800 mv "conftest.tmp" "conftest.in"
4801 cp "conftest.in" "conftest.nl"
4802 $as_echo '' >> "conftest.nl"
4803 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4804 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4805 as_fn_arith $ac_count + 1 && ac_count=$as_val
4806 if test $ac_count -gt ${ac_path_SED_max-0}; then
4807 # Best one so far, save it but keep looking for a better one
4808 ac_cv_path_SED="$ac_path_SED"
4809 ac_path_SED_max=$ac_count
4811 # 10*(2^10) chars as input seems more than enough
4812 test $ac_count -gt 10 && break
4814 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4817 $ac_path_SED_found && break 3
4822 if test -z "$ac_cv_path_SED"; then
4823 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4831 $as_echo "$ac_cv_path_SED" >&6; }
4832 SED="$ac_cv_path_SED"
4835 test -z "$SED" && SED=sed
4836 Xsed="$SED -e 1s/^X//"
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4849 $as_echo_n "checking for fgrep... " >&6; }
4850 if ${ac_cv_path_FGREP+:} false; then :
4851 $as_echo_n "(cached) " >&6
4853 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4854 then ac_cv_path_FGREP="$GREP -F"
4856 if test -z "$FGREP"; then
4857 ac_path_FGREP_found=false
4858 # Loop through the user's path and test for each of PROGNAME-LIST
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4863 test -z "$as_dir" && as_dir=.
4864 for ac_prog in fgrep; do
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4867 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4868 # Check for GNU ac_path_FGREP and select it if it is found.
4869 # Check for GNU $ac_path_FGREP
4870 case `"$ac_path_FGREP" --version 2>&1` in
4872 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4875 $as_echo_n 0123456789 >"conftest.in"
4878 cat "conftest.in" "conftest.in" >"conftest.tmp"
4879 mv "conftest.tmp" "conftest.in"
4880 cp "conftest.in" "conftest.nl"
4881 $as_echo 'FGREP' >> "conftest.nl"
4882 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4883 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4884 as_fn_arith $ac_count + 1 && ac_count=$as_val
4885 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4886 # Best one so far, save it but keep looking for a better one
4887 ac_cv_path_FGREP="$ac_path_FGREP"
4888 ac_path_FGREP_max=$ac_count
4890 # 10*(2^10) chars as input seems more than enough
4891 test $ac_count -gt 10 && break
4893 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4896 $ac_path_FGREP_found && break 3
4901 if test -z "$ac_cv_path_FGREP"; then
4902 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4905 ac_cv_path_FGREP=$FGREP
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4911 $as_echo "$ac_cv_path_FGREP" >&6; }
4912 FGREP="$ac_cv_path_FGREP"
4915 test -z "$GREP" && GREP=grep
4935 @%:@ Check whether --with-gnu-ld was given.
4936 if test "${with_gnu_ld+set}" = set; then :
4937 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4943 if test "$GCC" = yes; then
4944 # Check if gcc -print-prog-name=ld gives a path.
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4946 $as_echo_n "checking for ld used by $CC... " >&6; }
4949 # gcc leaves a trailing carriage return which upsets mingw
4950 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4952 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4955 # Accept absolute paths.
4957 re_direlt='/[^/][^/]*/\.\./'
4958 # Canonicalize the pathname of ld
4959 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4960 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4961 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4963 test -z "$LD" && LD="$ac_prog"
4966 # If it fails, then pretend we aren't using GCC.
4970 # If it is relative, then search for the first ld in PATH.
4974 elif test "$with_gnu_ld" = yes; then
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4976 $as_echo_n "checking for GNU ld... " >&6; }
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4979 $as_echo_n "checking for non-GNU ld... " >&6; }
4981 if ${lt_cv_path_LD+:} false; then :
4982 $as_echo_n "(cached) " >&6
4984 if test -z "$LD"; then
4985 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4986 for ac_dir in $PATH; do
4988 test -z "$ac_dir" && ac_dir=.
4989 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4990 lt_cv_path_LD="$ac_dir/$ac_prog"
4991 # Check to see if the program is GNU ld. I'd rather use --version,
4992 # but apparently some variants of GNU ld only accept -v.
4993 # Break only if it was the GNU/non-GNU ld that we prefer.
4994 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4995 *GNU* | *'with BFD'*)
4996 test "$with_gnu_ld" != no && break
4999 test "$with_gnu_ld" != yes && break
5006 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5011 if test -n "$LD"; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5013 $as_echo "$LD" >&6; }
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 $as_echo "no" >&6; }
5018 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5020 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5021 if ${lt_cv_prog_gnu_ld+:} false; then :
5022 $as_echo_n "(cached) " >&6
5024 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5025 case `$LD -v 2>&1 </dev/null` in
5026 *GNU* | *'with BFD'*)
5027 lt_cv_prog_gnu_ld=yes
5030 lt_cv_prog_gnu_ld=no
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5035 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5036 with_gnu_ld=$lt_cv_prog_gnu_ld
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5047 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5048 if ${lt_cv_path_NM+:} false; then :
5049 $as_echo_n "(cached) " >&6
5051 if test -n "$NM"; then
5052 # Let the user override the test.
5055 lt_nm_to_check="${ac_tool_prefix}nm"
5056 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5057 lt_nm_to_check="$lt_nm_to_check nm"
5059 for lt_tmp_nm in $lt_nm_to_check; do
5060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5061 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5063 test -z "$ac_dir" && ac_dir=.
5064 tmp_nm="$ac_dir/$lt_tmp_nm"
5065 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5066 # Check to see if the nm accepts a BSD-compat flag.
5067 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5068 # nm: unknown option "B" ignored
5069 # Tru64's nm complains that /dev/null is an invalid object file
5070 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5071 */dev/null* | *'Invalid file or object type'*)
5072 lt_cv_path_NM="$tmp_nm -B"
5076 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5078 lt_cv_path_NM="$tmp_nm -p"
5082 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5083 continue # so that we can try to find one that supports BSD flags
5092 : ${lt_cv_path_NM=no}
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5096 $as_echo "$lt_cv_path_NM" >&6; }
5097 if test "$lt_cv_path_NM" != "no"; then
5100 # Didn't find any BSD compatible name lister, look for dumpbin.
5101 if test -n "$DUMPBIN"; then :
5102 # Let the user override the test.
5104 if test -n "$ac_tool_prefix"; then
5105 for ac_prog in dumpbin "link -dump"
5107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if ${ac_cv_prog_DUMPBIN+:} false; then :
5112 $as_echo_n "(cached) " >&6
5114 if test -n "$DUMPBIN"; then
5115 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134 DUMPBIN=$ac_cv_prog_DUMPBIN
5135 if test -n "$DUMPBIN"; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5137 $as_echo "$DUMPBIN" >&6; }
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }
5144 test -n "$DUMPBIN" && break
5147 if test -z "$DUMPBIN"; then
5148 ac_ct_DUMPBIN=$DUMPBIN
5149 for ac_prog in dumpbin "link -dump"
5151 # Extract the first word of "$ac_prog", so it can be a program name with args.
5152 set dummy $ac_prog; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5156 $as_echo_n "(cached) " >&6
5158 if test -n "$ac_ct_DUMPBIN"; then
5159 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5179 if test -n "$ac_ct_DUMPBIN"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5181 $as_echo "$ac_ct_DUMPBIN" >&6; }
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5188 test -n "$ac_ct_DUMPBIN" && break
5191 if test "x$ac_ct_DUMPBIN" = x; then
5194 case $cross_compiling:$ac_tool_warned in
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5198 ac_tool_warned=yes ;;
5200 DUMPBIN=$ac_ct_DUMPBIN
5204 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5206 DUMPBIN="$DUMPBIN -symbols"
5214 if test "$DUMPBIN" != ":"; then
5218 test -z "$NM" && NM=nm
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5226 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5227 if ${lt_cv_nm_interface+:} false; then :
5228 $as_echo_n "(cached) " >&6
5230 lt_cv_nm_interface="BSD nm"
5231 echo "int some_variable = 0;" > conftest.$ac_ext
5232 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5233 (eval "$ac_compile" 2>conftest.err)
5234 cat conftest.err >&5
5235 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5236 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5237 cat conftest.err >&5
5238 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5239 cat conftest.out >&5
5240 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5241 lt_cv_nm_interface="MS dumpbin"
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5246 $as_echo "$lt_cv_nm_interface" >&6; }
5248 # find the maximum length of command line arguments
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5250 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5251 if ${lt_cv_sys_max_cmd_len+:} false; then :
5252 $as_echo_n "(cached) " >&6
5259 # On DJGPP, this test can blow up pretty badly due to problems in libc
5260 # (any single argument exceeding 2000 bytes causes a buffer overrun
5261 # during glob expansion). Even if it were fixed, the result of this
5262 # check would be larger than it should be.
5263 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5267 # Under GNU Hurd, this test is not required because there is
5268 # no limit to the length of command line arguments.
5269 # Libtool will interpret -1 as no limit whatsoever
5270 lt_cv_sys_max_cmd_len=-1;
5273 cygwin* | mingw* | cegcc*)
5274 # On Win9x/ME, this test blows up -- it succeeds, but takes
5275 # about 5 minutes as the teststring grows exponentially.
5276 # Worse, since 9x/ME are not pre-emptively multitasking,
5277 # you end up with a "frozen" computer, even though with patience
5278 # the test eventually succeeds (with a max line length of 256k).
5279 # Instead, let's just punt: use the minimum linelength reported by
5280 # all of the supported platforms: 8192 (on NT/2K/XP).
5281 lt_cv_sys_max_cmd_len=8192;
5285 # On MiNT this can take a long time and run out of memory.
5286 lt_cv_sys_max_cmd_len=8192;
5290 # On AmigaOS with pdksh, this test takes hours, literally.
5291 # So we just punt and use a minimum line length of 8192.
5292 lt_cv_sys_max_cmd_len=8192;
5295 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5296 # This has been around since 386BSD, at least. Likely further.
5297 if test -x /sbin/sysctl; then
5298 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5299 elif test -x /usr/sbin/sysctl; then
5300 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5302 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5304 # And add a safety zone
5305 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5306 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5310 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5311 lt_cv_sys_max_cmd_len=196608
5315 # The test takes a long time on OS/2.
5316 lt_cv_sys_max_cmd_len=8192
5320 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5321 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5322 # nice to cause kernel panics so lets avoid the loop below.
5323 # First set a reasonable default.
5324 lt_cv_sys_max_cmd_len=16384
5326 if test -x /sbin/sysconfig; then
5327 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5328 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5333 lt_cv_sys_max_cmd_len=102400
5335 sysv5* | sco5v6* | sysv4.2uw2*)
5336 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5337 if test -n "$kargmax"; then
5338 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5340 lt_cv_sys_max_cmd_len=32768
5344 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5345 if test -n "$lt_cv_sys_max_cmd_len"; then
5346 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5347 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5349 # Make teststring a little bigger before we do anything with it.
5350 # a 1K string should be a reasonable start.
5351 for i in 1 2 3 4 5 6 7 8 ; do
5352 teststring=$teststring$teststring
5354 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5355 # If test is not a shell built-in, we'll probably end up computing a
5356 # maximum length that is only half of the actual maximum length, but
5358 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5359 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5360 test $i != 17 # 1/2 MB should be enough
5363 teststring=$teststring$teststring
5365 # Only check the string length outside the loop.
5366 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5368 # Add a significant safety factor because C++ compilers can tack on
5369 # massive amounts of additional arguments before passing them to the
5370 # linker. It appears as though 1/2 is a usable value.
5371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5378 if test -n $lt_cv_sys_max_cmd_len ; then
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5380 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5383 $as_echo "none" >&6; }
5385 max_cmd_len=$lt_cv_sys_max_cmd_len
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5397 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5398 # Try some XSI features
5401 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5403 && eval 'test $(( 1 + 1 )) -eq 2 \
5404 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5407 $as_echo "$xsi_shell" >&6; }
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5411 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5413 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5415 && lt_shell_append=yes
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5417 $as_echo "$lt_shell_append" >&6; }
5420 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5430 # test EBCDIC or ASCII
5431 case `echo X|tr X '\101'` in
5432 A) # ASCII based system
5433 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5434 lt_SP2NL='tr \040 \012'
5435 lt_NL2SP='tr \015\012 \040\040'
5437 *) # EBCDIC based system
5438 lt_SP2NL='tr \100 \n'
5439 lt_NL2SP='tr \r\n \100\100'
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5452 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5453 if ${lt_cv_to_host_file_cmd+:} false; then :
5454 $as_echo_n "(cached) " >&6
5459 *-*-mingw* ) # actually msys
5460 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5463 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5465 * ) # otherwise, assume *nix
5466 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5472 *-*-mingw* ) # actually msys
5473 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5476 lt_cv_to_host_file_cmd=func_convert_file_noop
5478 * ) # otherwise, assume *nix
5479 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5483 * ) # unhandled hosts (and "normal" native builds)
5484 lt_cv_to_host_file_cmd=func_convert_file_noop
5490 to_host_file_cmd=$lt_cv_to_host_file_cmd
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5492 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5499 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5500 if ${lt_cv_to_tool_file_cmd+:} false; then :
5501 $as_echo_n "(cached) " >&6
5503 #assume ordinary cross tools, or native build.
5504 lt_cv_to_tool_file_cmd=func_convert_file_noop
5508 *-*-mingw* ) # actually msys
5509 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5517 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5519 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5526 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5527 if ${lt_cv_ld_reload_flag+:} false; then :
5528 $as_echo_n "(cached) " >&6
5530 lt_cv_ld_reload_flag='-r'
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5533 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5534 reload_flag=$lt_cv_ld_reload_flag
5535 case $reload_flag in
5537 *) reload_flag=" $reload_flag" ;;
5539 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5541 cygwin* | mingw* | pw32* | cegcc*)
5542 if test "$GCC" != yes; then
5547 if test "$GCC" = yes; then
5548 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5550 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5563 if test -n "$ac_tool_prefix"; then
5564 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5565 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_prog_OBJDUMP+:} false; then :
5569 $as_echo_n "(cached) " >&6
5571 if test -n "$OBJDUMP"; then
5572 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5581 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 OBJDUMP=$ac_cv_prog_OBJDUMP
5592 if test -n "$OBJDUMP"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5594 $as_echo "$OBJDUMP" >&6; }
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5602 if test -z "$ac_cv_prog_OBJDUMP"; then
5603 ac_ct_OBJDUMP=$OBJDUMP
5604 # Extract the first word of "objdump", so it can be a program name with args.
5605 set dummy objdump; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5609 $as_echo_n "(cached) " >&6
5611 if test -n "$ac_ct_OBJDUMP"; then
5612 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5632 if test -n "$ac_ct_OBJDUMP"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5634 $as_echo "$ac_ct_OBJDUMP" >&6; }
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5640 if test "x$ac_ct_OBJDUMP" = x; then
5643 case $cross_compiling:$ac_tool_warned in
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5647 ac_tool_warned=yes ;;
5649 OBJDUMP=$ac_ct_OBJDUMP
5652 OBJDUMP="$ac_cv_prog_OBJDUMP"
5655 test -z "$OBJDUMP" && OBJDUMP=objdump
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5666 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5667 if ${lt_cv_deplibs_check_method+:} false; then :
5668 $as_echo_n "(cached) " >&6
5670 lt_cv_file_magic_cmd='$MAGIC_CMD'
5671 lt_cv_file_magic_test_file=
5672 lt_cv_deplibs_check_method='unknown'
5673 # Need to set the preceding variable on all platforms that support
5674 # interlibrary dependencies.
5675 # 'none' -- dependencies not supported.
5676 # `unknown' -- same as none, but documents that we really don't know.
5677 # 'pass_all' -- all dependencies passed with no checks.
5678 # 'test_compile' -- check by making test program.
5679 # 'file_magic [[regex]]' -- check by looking for files in library path
5680 # which responds to the $file_magic_cmd with a given extended regex.
5681 # If you have `file' or equivalent on your system and you're not sure
5682 # whether `pass_all' will *always* work, you probably want this one.
5686 lt_cv_deplibs_check_method=pass_all
5690 lt_cv_deplibs_check_method=pass_all
5694 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5695 lt_cv_file_magic_cmd='/usr/bin/file -L'
5696 lt_cv_file_magic_test_file=/shlib/libc.so
5700 # func_win32_libid is a shell function defined in ltmain.sh
5701 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5702 lt_cv_file_magic_cmd='func_win32_libid'
5706 # Base MSYS/MinGW do not provide the 'file' command needed by
5707 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5708 # unless we find 'file', for example because we are cross-compiling.
5709 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5710 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5711 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5712 lt_cv_file_magic_cmd='func_win32_libid'
5714 # Keep this pattern in sync with the one in func_win32_libid.
5715 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5716 lt_cv_file_magic_cmd='$OBJDUMP -f'
5721 # use the weaker test based on 'objdump'. See mingw*.
5722 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5723 lt_cv_file_magic_cmd='$OBJDUMP -f'
5726 darwin* | rhapsody*)
5727 lt_cv_deplibs_check_method=pass_all
5730 freebsd* | dragonfly*)
5731 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5734 # Not sure whether the presence of OpenBSD here was a mistake.
5735 # Let's accept both of them until this is cleared up.
5736 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5737 lt_cv_file_magic_cmd=/usr/bin/file
5738 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5742 lt_cv_deplibs_check_method=pass_all
5747 lt_cv_deplibs_check_method=pass_all
5751 lt_cv_deplibs_check_method=pass_all
5754 hpux10.20* | hpux11*)
5755 lt_cv_file_magic_cmd=/usr/bin/file
5758 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5759 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5762 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]'
5763 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5766 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5767 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5773 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5777 irix5* | irix6* | nonstopux*)
5779 *-32|*"-32 ") libmagic=32-bit;;
5780 *-n32|*"-n32 ") libmagic=N32;;
5781 *-64|*"-64 ") libmagic=64-bit;;
5782 *) libmagic=never-match;;
5784 lt_cv_deplibs_check_method=pass_all
5787 # This must be glibc/ELF.
5788 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5789 lt_cv_deplibs_check_method=pass_all
5792 netbsd* | netbsdelf*-gnu)
5793 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5796 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5801 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5802 lt_cv_file_magic_cmd=/usr/bin/file
5803 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5807 lt_cv_deplibs_check_method=pass_all
5811 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5818 osf3* | osf4* | osf5*)
5819 lt_cv_deplibs_check_method=pass_all
5823 lt_cv_deplibs_check_method=pass_all
5827 lt_cv_deplibs_check_method=pass_all
5830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5831 lt_cv_deplibs_check_method=pass_all
5835 case $host_vendor in
5837 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]'
5838 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5841 lt_cv_deplibs_check_method=pass_all
5844 lt_cv_file_magic_cmd='/bin/file'
5845 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5848 lt_cv_file_magic_cmd='/bin/file'
5849 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5850 lt_cv_file_magic_test_file=/lib/libc.so
5853 lt_cv_deplibs_check_method=pass_all
5856 lt_cv_deplibs_check_method=pass_all
5862 lt_cv_deplibs_check_method=pass_all
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5868 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5872 if test "$build" = "$host"; then
5875 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5878 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5884 file_magic_cmd=$lt_cv_file_magic_cmd
5885 deplibs_check_method=$lt_cv_deplibs_check_method
5886 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5909 if test -n "$ac_tool_prefix"; then
5910 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5911 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913 $as_echo_n "checking for $ac_word... " >&6; }
5914 if ${ac_cv_prog_DLLTOOL+:} false; then :
5915 $as_echo_n "(cached) " >&6
5917 if test -n "$DLLTOOL"; then
5918 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 DLLTOOL=$ac_cv_prog_DLLTOOL
5938 if test -n "$DLLTOOL"; then
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5940 $as_echo "$DLLTOOL" >&6; }
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943 $as_echo "no" >&6; }
5948 if test -z "$ac_cv_prog_DLLTOOL"; then
5949 ac_ct_DLLTOOL=$DLLTOOL
5950 # Extract the first word of "dlltool", so it can be a program name with args.
5951 set dummy dlltool; ac_word=$2
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953 $as_echo_n "checking for $ac_word... " >&6; }
5954 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5955 $as_echo_n "(cached) " >&6
5957 if test -n "$ac_ct_DLLTOOL"; then
5958 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5978 if test -n "$ac_ct_DLLTOOL"; then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5980 $as_echo "$ac_ct_DLLTOOL" >&6; }
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 $as_echo "no" >&6; }
5986 if test "x$ac_ct_DLLTOOL" = x; then
5989 case $cross_compiling:$ac_tool_warned in
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5993 ac_tool_warned=yes ;;
5995 DLLTOOL=$ac_ct_DLLTOOL
5998 DLLTOOL="$ac_cv_prog_DLLTOOL"
6001 test -z "$DLLTOOL" && DLLTOOL=dlltool
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6013 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6014 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6015 $as_echo_n "(cached) " >&6
6017 lt_cv_sharedlib_from_linklib_cmd='unknown'
6020 cygwin* | mingw* | pw32* | cegcc*)
6021 # two different shell functions defined in ltmain.sh
6022 # decide which to use based on capabilities of $DLLTOOL
6023 case `$DLLTOOL --help 2>&1` in
6024 *--identify-strict*)
6025 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6028 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6033 # fallback: assume linklib IS sharedlib
6034 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6040 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6041 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6042 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6050 if test -n "$ac_tool_prefix"; then
6053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if ${ac_cv_prog_AR+:} false; then :
6058 $as_echo_n "(cached) " >&6
6060 if test -n "$AR"; then
6061 ac_cv_prog_AR="$AR" # Let the user override the test.
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6070 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 if test -n "$AR"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6083 $as_echo "$AR" >&6; }
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6090 test -n "$AR" && break
6093 if test -z "$AR"; then
6097 # Extract the first word of "$ac_prog", so it can be a program name with args.
6098 set dummy $ac_prog; ac_word=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6102 $as_echo_n "(cached) " >&6
6104 if test -n "$ac_ct_AR"; then
6105 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6114 ac_cv_prog_ac_ct_AR="$ac_prog"
6115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6125 if test -n "$ac_ct_AR"; then
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6127 $as_echo "$ac_ct_AR" >&6; }
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130 $as_echo "no" >&6; }
6134 test -n "$ac_ct_AR" && break
6137 if test "x$ac_ct_AR" = x; then
6140 case $cross_compiling:$ac_tool_warned in
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6144 ac_tool_warned=yes ;;
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6164 $as_echo_n "checking for archiver @FILE support... " >&6; }
6165 if ${lt_cv_ar_at_file+:} false; then :
6166 $as_echo_n "(cached) " >&6
6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6180 if ac_fn_c_try_compile "$LINENO"; then :
6181 echo conftest.$ac_objext > conftest.lst
6182 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6184 (eval $lt_ar_try) 2>&5
6186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6187 test $ac_status = 0; }
6188 if test "$ac_status" -eq 0; then
6189 # Ensure the archiver fails upon bogus file names.
6190 rm -f conftest.$ac_objext libconftest.a
6191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6192 (eval $lt_ar_try) 2>&5
6194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6195 test $ac_status = 0; }
6196 if test "$ac_status" -ne 0; then
6200 rm -f conftest.* libconftest.a
6203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6207 $as_echo "$lt_cv_ar_at_file" >&6; }
6209 if test "x$lt_cv_ar_at_file" = xno; then
6212 archiver_list_spec=$lt_cv_ar_at_file
6221 if test -n "$ac_tool_prefix"; then
6222 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6223 set dummy ${ac_tool_prefix}strip; ac_word=$2
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225 $as_echo_n "checking for $ac_word... " >&6; }
6226 if ${ac_cv_prog_STRIP+:} false; then :
6227 $as_echo_n "(cached) " >&6
6229 if test -n "$STRIP"; then
6230 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 STRIP=$ac_cv_prog_STRIP
6250 if test -n "$STRIP"; then
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6252 $as_echo "$STRIP" >&6; }
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6260 if test -z "$ac_cv_prog_STRIP"; then
6262 # Extract the first word of "strip", so it can be a program name with args.
6263 set dummy strip; ac_word=$2
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6265 $as_echo_n "checking for $ac_word... " >&6; }
6266 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6267 $as_echo_n "(cached) " >&6
6269 if test -n "$ac_ct_STRIP"; then
6270 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6279 ac_cv_prog_ac_ct_STRIP="strip"
6280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6290 if test -n "$ac_ct_STRIP"; then
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6292 $as_echo "$ac_ct_STRIP" >&6; }
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295 $as_echo "no" >&6; }
6298 if test "x$ac_ct_STRIP" = x; then
6301 case $cross_compiling:$ac_tool_warned in
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6305 ac_tool_warned=yes ;;
6310 STRIP="$ac_cv_prog_STRIP"
6313 test -z "$STRIP" && STRIP=:
6320 if test -n "$ac_tool_prefix"; then
6321 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6322 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6324 $as_echo_n "checking for $ac_word... " >&6; }
6325 if ${ac_cv_prog_RANLIB+:} false; then :
6326 $as_echo_n "(cached) " >&6
6328 if test -n "$RANLIB"; then
6329 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6338 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 RANLIB=$ac_cv_prog_RANLIB
6349 if test -n "$RANLIB"; then
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6351 $as_echo "$RANLIB" >&6; }
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354 $as_echo "no" >&6; }
6359 if test -z "$ac_cv_prog_RANLIB"; then
6360 ac_ct_RANLIB=$RANLIB
6361 # Extract the first word of "ranlib", so it can be a program name with args.
6362 set dummy ranlib; ac_word=$2
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364 $as_echo_n "checking for $ac_word... " >&6; }
6365 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6366 $as_echo_n "(cached) " >&6
6368 if test -n "$ac_ct_RANLIB"; then
6369 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6378 ac_cv_prog_ac_ct_RANLIB="ranlib"
6379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6389 if test -n "$ac_ct_RANLIB"; then
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6391 $as_echo "$ac_ct_RANLIB" >&6; }
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 $as_echo "no" >&6; }
6397 if test "x$ac_ct_RANLIB" = x; then
6400 case $cross_compiling:$ac_tool_warned in
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6404 ac_tool_warned=yes ;;
6406 RANLIB=$ac_ct_RANLIB
6409 RANLIB="$ac_cv_prog_RANLIB"
6412 test -z "$RANLIB" && RANLIB=:
6419 # Determine commands to create old-style static archives.
6420 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6421 old_postinstall_cmds='chmod 644 $oldlib'
6422 old_postuninstall_cmds=
6424 if test -n "$RANLIB"; then
6427 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6430 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6433 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6438 lock_old_archive_extraction=yes ;;
6440 lock_old_archive_extraction=no ;;
6481 # If no C compiler was specified, use CC.
6484 # If no C compiler flags were specified, use CFLAGS.
6485 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6487 # Allow CC to be a program name with arguments.
6491 # Check for command to grab the raw symbol name followed by C symbol from nm.
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6493 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6494 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6495 $as_echo_n "(cached) " >&6
6498 # These are sane defaults that work on at least a few old systems.
6499 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6501 # Character class describing NM global symbol codes.
6502 symcode='[BCDEGRST]'
6504 # Regexp to match symbols that can be accessed directly from C.
6505 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6507 # Define system-specific variables.
6512 cygwin* | mingw* | pw32* | cegcc*)
6513 symcode='[ABCDGISTW]'
6516 if test "$host_cpu" = ia64; then
6517 symcode='[ABCDEGRST]'
6521 symcode='[BCDEGRST]'
6524 symcode='[BCDEGQRST]'
6535 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6543 # If we're using GNU nm, then use its standard symbol codes.
6544 case `$NM -V 2>&1` in
6545 *GNU* | *'with BFD'*)
6546 symcode='[ABCDGIRSTW]' ;;
6549 # Transform an extracted symbol line into a proper C declaration.
6550 # Some systems (esp. on ia64) link data and code symbols differently,
6551 # so use this general approach.
6552 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6554 # Transform an extracted symbol line into symbol name and symbol address
6555 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6556 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'"
6558 # Handle CRLF in mingw tool chain
6562 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6566 # Try without a prefix underscore, then with it.
6567 for ac_symprfx in "" "_"; do
6569 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6570 symxfrm="\\1 $ac_symprfx\\2 \\2"
6572 # Write the raw and C identifiers.
6573 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6574 # Fake it for dumpbin and say T for any non-static function
6575 # and D for any global variable.
6576 # Also find C++ and __fastcall symbols from MSVC++,
6577 # which start with @ or ?.
6578 lt_cv_sys_global_symbol_pipe="$AWK '"\
6579 " {last_section=section; section=\$ 3};"\
6580 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6581 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6582 " \$ 0!~/External *\|/{next};"\
6583 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6584 " {if(hide[section]) next};"\
6585 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6586 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6587 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6588 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6589 " ' prfx=^$ac_symprfx"
6591 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6593 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6595 # Check to see that the pipe works correctly.
6599 cat > conftest.$ac_ext <<_LT_EOF
6604 void nm_test_func(void);
6605 void nm_test_func(void){}
6609 int main(){nm_test_var='a';nm_test_func();return(0);}
6612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6613 (eval $ac_compile) 2>&5
6615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6616 test $ac_status = 0; }; then
6617 # Now try to grab the symbols.
6619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6620 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6623 test $ac_status = 0; } && test -s "$nlist"; then
6624 # Try sorting and uniquifying the output.
6625 if sort "$nlist" | uniq > "$nlist"T; then
6626 mv -f "$nlist"T "$nlist"
6631 # Make sure that we snagged all the symbols we need.
6632 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6633 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6634 cat <<_LT_EOF > conftest.$ac_ext
6635 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6636 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6637 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6638 relocations are performed -- see ld's documentation on pseudo-relocs. */
6639 # define LT@&t@_DLSYM_CONST
6640 #elif defined(__osf__)
6641 /* This system does not cope well with relocations in const data. */
6642 # define LT@&t@_DLSYM_CONST
6644 # define LT@&t@_DLSYM_CONST const
6652 # Now generate the symbol file.
6653 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6655 cat <<_LT_EOF >> conftest.$ac_ext
6657 /* The mapping between symbol names and symbols. */
6658 LT@&t@_DLSYM_CONST struct {
6662 lt__PROGRAM__LTX_preloaded_symbols[] =
6664 { "@PROGRAM@", (void *) 0 },
6666 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6667 cat <<\_LT_EOF >> conftest.$ac_ext
6671 /* This works around a problem in FreeBSD linker */
6672 #ifdef FREEBSD_WORKAROUND
6673 static const void *lt_preloaded_setup() {
6674 return lt__PROGRAM__LTX_preloaded_symbols;
6682 # Now try linking the two files.
6683 mv conftest.$ac_objext conftstm.$ac_objext
6684 lt_globsym_save_LIBS=$LIBS
6685 lt_globsym_save_CFLAGS=$CFLAGS
6686 LIBS="conftstm.$ac_objext"
6687 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6689 (eval $ac_link) 2>&5
6691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6692 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6695 LIBS=$lt_globsym_save_LIBS
6696 CFLAGS=$lt_globsym_save_CFLAGS
6698 echo "cannot find nm_test_func in $nlist" >&5
6701 echo "cannot find nm_test_var in $nlist" >&5
6704 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6707 echo "$progname: failed program was:" >&5
6708 cat conftest.$ac_ext >&5
6710 rm -rf conftest* conftst*
6712 # Do not use the global_symbol_pipe unless it works.
6713 if test "$pipe_works" = yes; then
6716 lt_cv_sys_global_symbol_pipe=
6722 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6723 lt_cv_sys_global_symbol_to_cdecl=
6725 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6727 $as_echo "failed" >&6; }
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6730 $as_echo "ok" >&6; }
6733 # Response file support.
6734 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6735 nm_file_list_spec='@'
6736 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6737 nm_file_list_spec='@'
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6767 $as_echo_n "checking for sysroot... " >&6; }
6769 @%:@ Check whether --with-sysroot was given.
6770 if test "${with_sysroot+set}" = set; then :
6771 withval=$with_sysroot;
6778 case ${with_sysroot} in #(
6780 if test "$GCC" = yes; then
6781 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6785 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6791 $as_echo "${with_sysroot}" >&6; }
6792 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6797 $as_echo "${lt_sysroot:-no}" >&6; }
6803 @%:@ Check whether --enable-libtool-lock was given.
6804 if test "${enable_libtool_lock+set}" = set; then :
6805 enableval=$enable_libtool_lock;
6808 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6810 # Some flags need to be propagated to the compiler or linker for good
6814 # Find out which ABI we are using.
6815 echo 'int i;' > conftest.$ac_ext
6816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6817 (eval $ac_compile) 2>&5
6819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6820 test $ac_status = 0; }; then
6821 case `/usr/bin/file conftest.$ac_objext` in
6833 # Find out which ABI we are using.
6834 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6836 (eval $ac_compile) 2>&5
6838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6839 test $ac_status = 0; }; then
6840 if test "$lt_cv_prog_gnu_ld" = yes; then
6841 case `/usr/bin/file conftest.$ac_objext` in
6843 LD="${LD-ld} -melf32bsmip"
6846 LD="${LD-ld} -melf32bmipn32"
6849 LD="${LD-ld} -melf64bmip"
6853 case `/usr/bin/file conftest.$ac_objext` in
6869 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6870 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6871 # Find out which ABI we are using.
6872 echo 'int i;' > conftest.$ac_ext
6873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6874 (eval $ac_compile) 2>&5
6876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6877 test $ac_status = 0; }; then
6878 case `/usr/bin/file conftest.o` in
6881 x86_64-*kfreebsd*-gnu)
6882 LD="${LD-ld} -m elf_i386_fbsd"
6885 LD="${LD-ld} -m elf_i386"
6887 ppc64-*linux*|powerpc64-*linux*)
6888 LD="${LD-ld} -m elf32ppclinux"
6891 LD="${LD-ld} -m elf_s390"
6894 LD="${LD-ld} -m elf32_sparc"
6900 x86_64-*kfreebsd*-gnu)
6901 LD="${LD-ld} -m elf_x86_64_fbsd"
6904 LD="${LD-ld} -m elf_x86_64"
6906 ppc*-*linux*|powerpc*-*linux*)
6907 LD="${LD-ld} -m elf64ppc"
6909 s390*-*linux*|s390*-*tpf*)
6910 LD="${LD-ld} -m elf64_s390"
6913 LD="${LD-ld} -m elf64_sparc"
6923 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6924 SAVE_CFLAGS="$CFLAGS"
6925 CFLAGS="$CFLAGS -belf"
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6927 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6928 if ${lt_cv_cc_needs_belf+:} false; then :
6929 $as_echo_n "(cached) " >&6
6932 ac_cpp='$CPP $CPPFLAGS'
6933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6948 if ac_fn_c_try_link "$LINENO"; then :
6949 lt_cv_cc_needs_belf=yes
6951 lt_cv_cc_needs_belf=no
6953 rm -f core conftest.err conftest.$ac_objext \
6954 conftest$ac_exeext conftest.$ac_ext
6956 ac_cpp='$CPP $CPPFLAGS'
6957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6963 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6964 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6965 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6966 CFLAGS="$SAVE_CFLAGS"
6970 # Find out which ABI we are using.
6971 echo 'int i;' > 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 case `/usr/bin/file conftest.o` in
6979 case $lt_cv_prog_gnu_ld in
6983 LD="${LD-ld} -m elf_x86_64"
6986 LD="${LD-ld} -m elf64_sparc"
6989 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6990 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6995 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7007 need_locks="$enable_libtool_lock"
7009 if test -n "$ac_tool_prefix"; then
7010 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7011 set dummy ${ac_tool_prefix}mt; ac_word=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7015 $as_echo_n "(cached) " >&6
7017 if test -n "$MANIFEST_TOOL"; then
7018 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7027 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7038 if test -n "$MANIFEST_TOOL"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7040 $as_echo "$MANIFEST_TOOL" >&6; }
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7048 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7049 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7050 # Extract the first word of "mt", so it can be a program name with args.
7051 set dummy mt; ac_word=$2
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053 $as_echo_n "checking for $ac_word... " >&6; }
7054 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7055 $as_echo_n "(cached) " >&6
7057 if test -n "$ac_ct_MANIFEST_TOOL"; then
7058 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
7066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7067 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7078 if test -n "$ac_ct_MANIFEST_TOOL"; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7080 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7086 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7089 case $cross_compiling:$ac_tool_warned in
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7093 ac_tool_warned=yes ;;
7095 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7098 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7101 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7103 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7104 if ${lt_cv_path_mainfest_tool+:} false; then :
7105 $as_echo_n "(cached) " >&6
7107 lt_cv_path_mainfest_tool=no
7108 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7109 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7110 cat conftest.err >&5
7111 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7112 lt_cv_path_mainfest_tool=yes
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7117 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7118 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7128 rhapsody* | darwin*)
7129 if test -n "$ac_tool_prefix"; then
7130 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7131 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133 $as_echo_n "checking for $ac_word... " >&6; }
7134 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7135 $as_echo_n "(cached) " >&6
7137 if test -n "$DSYMUTIL"; then
7138 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 test -z "$as_dir" && as_dir=.
7145 for ac_exec_ext in '' $ac_executable_extensions; do
7146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7147 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7158 if test -n "$DSYMUTIL"; then
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7160 $as_echo "$DSYMUTIL" >&6; }
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163 $as_echo "no" >&6; }
7168 if test -z "$ac_cv_prog_DSYMUTIL"; then
7169 ac_ct_DSYMUTIL=$DSYMUTIL
7170 # Extract the first word of "dsymutil", so it can be a program name with args.
7171 set dummy dsymutil; ac_word=$2
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173 $as_echo_n "checking for $ac_word... " >&6; }
7174 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7175 $as_echo_n "(cached) " >&6
7177 if test -n "$ac_ct_DSYMUTIL"; then
7178 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7187 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7198 if test -n "$ac_ct_DSYMUTIL"; then
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7200 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203 $as_echo "no" >&6; }
7206 if test "x$ac_ct_DSYMUTIL" = x; then
7209 case $cross_compiling:$ac_tool_warned in
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7213 ac_tool_warned=yes ;;
7215 DSYMUTIL=$ac_ct_DSYMUTIL
7218 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7221 if test -n "$ac_tool_prefix"; then
7222 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7223 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if ${ac_cv_prog_NMEDIT+:} false; then :
7227 $as_echo_n "(cached) " >&6
7229 if test -n "$NMEDIT"; then
7230 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7239 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 NMEDIT=$ac_cv_prog_NMEDIT
7250 if test -n "$NMEDIT"; then
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7252 $as_echo "$NMEDIT" >&6; }
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7260 if test -z "$ac_cv_prog_NMEDIT"; then
7261 ac_ct_NMEDIT=$NMEDIT
7262 # Extract the first word of "nmedit", so it can be a program name with args.
7263 set dummy nmedit; ac_word=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7267 $as_echo_n "(cached) " >&6
7269 if test -n "$ac_ct_NMEDIT"; then
7270 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7290 if test -n "$ac_ct_NMEDIT"; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7292 $as_echo "$ac_ct_NMEDIT" >&6; }
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7298 if test "x$ac_ct_NMEDIT" = x; then
7301 case $cross_compiling:$ac_tool_warned in
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7305 ac_tool_warned=yes ;;
7307 NMEDIT=$ac_ct_NMEDIT
7310 NMEDIT="$ac_cv_prog_NMEDIT"
7313 if test -n "$ac_tool_prefix"; then
7314 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7315 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7317 $as_echo_n "checking for $ac_word... " >&6; }
7318 if ${ac_cv_prog_LIPO+:} false; then :
7319 $as_echo_n "(cached) " >&6
7321 if test -n "$LIPO"; then
7322 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7331 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7341 LIPO=$ac_cv_prog_LIPO
7342 if test -n "$LIPO"; then
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7344 $as_echo "$LIPO" >&6; }
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 $as_echo "no" >&6; }
7352 if test -z "$ac_cv_prog_LIPO"; then
7354 # Extract the first word of "lipo", so it can be a program name with args.
7355 set dummy lipo; ac_word=$2
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7359 $as_echo_n "(cached) " >&6
7361 if test -n "$ac_ct_LIPO"; then
7362 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_prog_ac_ct_LIPO="lipo"
7372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7381 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7382 if test -n "$ac_ct_LIPO"; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7384 $as_echo "$ac_ct_LIPO" >&6; }
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387 $as_echo "no" >&6; }
7390 if test "x$ac_ct_LIPO" = x; then
7393 case $cross_compiling:$ac_tool_warned in
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7397 ac_tool_warned=yes ;;
7402 LIPO="$ac_cv_prog_LIPO"
7405 if test -n "$ac_tool_prefix"; then
7406 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7407 set dummy ${ac_tool_prefix}otool; ac_word=$2
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409 $as_echo_n "checking for $ac_word... " >&6; }
7410 if ${ac_cv_prog_OTOOL+:} false; then :
7411 $as_echo_n "(cached) " >&6
7413 if test -n "$OTOOL"; then
7414 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7423 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7433 OTOOL=$ac_cv_prog_OTOOL
7434 if test -n "$OTOOL"; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7436 $as_echo "$OTOOL" >&6; }
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439 $as_echo "no" >&6; }
7444 if test -z "$ac_cv_prog_OTOOL"; then
7446 # Extract the first word of "otool", so it can be a program name with args.
7447 set dummy otool; ac_word=$2
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449 $as_echo_n "checking for $ac_word... " >&6; }
7450 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7451 $as_echo_n "(cached) " >&6
7453 if test -n "$ac_ct_OTOOL"; then
7454 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7463 ac_cv_prog_ac_ct_OTOOL="otool"
7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7474 if test -n "$ac_ct_OTOOL"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7476 $as_echo "$ac_ct_OTOOL" >&6; }
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7482 if test "x$ac_ct_OTOOL" = x; then
7485 case $cross_compiling:$ac_tool_warned in
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7489 ac_tool_warned=yes ;;
7494 OTOOL="$ac_cv_prog_OTOOL"
7497 if test -n "$ac_tool_prefix"; then
7498 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7499 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if ${ac_cv_prog_OTOOL64+:} false; then :
7503 $as_echo_n "(cached) " >&6
7505 if test -n "$OTOOL64"; then
7506 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7515 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 OTOOL64=$ac_cv_prog_OTOOL64
7526 if test -n "$OTOOL64"; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7528 $as_echo "$OTOOL64" >&6; }
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7536 if test -z "$ac_cv_prog_OTOOL64"; then
7537 ac_ct_OTOOL64=$OTOOL64
7538 # Extract the first word of "otool64", so it can be a program name with args.
7539 set dummy otool64; ac_word=$2
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541 $as_echo_n "checking for $ac_word... " >&6; }
7542 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7543 $as_echo_n "(cached) " >&6
7545 if test -n "$ac_ct_OTOOL64"; then
7546 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_prog_ac_ct_OTOOL64="otool64"
7556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7566 if test -n "$ac_ct_OTOOL64"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7568 $as_echo "$ac_ct_OTOOL64" >&6; }
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7574 if test "x$ac_ct_OTOOL64" = x; then
7577 case $cross_compiling:$ac_tool_warned in
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7581 ac_tool_warned=yes ;;
7583 OTOOL64=$ac_ct_OTOOL64
7586 OTOOL64="$ac_cv_prog_OTOOL64"
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7616 $as_echo_n "checking for -single_module linker flag... " >&6; }
7617 if ${lt_cv_apple_cc_single_mod+:} false; then :
7618 $as_echo_n "(cached) " >&6
7620 lt_cv_apple_cc_single_mod=no
7621 if test -z "${LT_MULTI_MODULE}"; then
7622 # By default we will add the -single_module flag. You can override
7623 # by either setting the environment variable LT_MULTI_MODULE
7624 # non-empty at configure time, or by adding -multi_module to the
7626 rm -rf libconftest.dylib*
7627 echo "int foo(void){return 1;}" > conftest.c
7628 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7629 -dynamiclib -Wl,-single_module conftest.c" >&5
7630 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7631 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7633 # If there is a non-empty error log, and "single_module"
7634 # appears in it, assume the flag caused a linker warning
7635 if test -s conftest.err && $GREP single_module conftest.err; then
7636 cat conftest.err >&5
7637 # Otherwise, if the output was created with a 0 exit code from
7638 # the compiler, it worked.
7639 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7640 lt_cv_apple_cc_single_mod=yes
7642 cat conftest.err >&5
7644 rm -rf libconftest.dylib*
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7649 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7652 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7653 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7654 $as_echo_n "(cached) " >&6
7656 lt_cv_ld_exported_symbols_list=no
7657 save_LDFLAGS=$LDFLAGS
7658 echo "_main" > conftest.sym
7659 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h. */
7671 if ac_fn_c_try_link "$LINENO"; then :
7672 lt_cv_ld_exported_symbols_list=yes
7674 lt_cv_ld_exported_symbols_list=no
7676 rm -f core conftest.err conftest.$ac_objext \
7677 conftest$ac_exeext conftest.$ac_ext
7678 LDFLAGS="$save_LDFLAGS"
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7682 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7685 $as_echo_n "checking for -force_load linker flag... " >&6; }
7686 if ${lt_cv_ld_force_load+:} false; then :
7687 $as_echo_n "(cached) " >&6
7689 lt_cv_ld_force_load=no
7690 cat > conftest.c << _LT_EOF
7691 int forced_loaded() { return 2;}
7693 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7694 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7695 echo "$AR cru libconftest.a conftest.o" >&5
7696 $AR cru libconftest.a conftest.o 2>&5
7697 echo "$RANLIB libconftest.a" >&5
7698 $RANLIB libconftest.a 2>&5
7699 cat > conftest.c << _LT_EOF
7700 int main() { return 0;}
7702 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7703 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7705 if test -s conftest.err && $GREP force_load conftest.err; then
7706 cat conftest.err >&5
7707 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7708 lt_cv_ld_force_load=yes
7710 cat conftest.err >&5
7712 rm -f conftest.err libconftest.a conftest conftest.c
7713 rm -rf conftest.dSYM
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7717 $as_echo "$lt_cv_ld_force_load" >&6; }
7719 rhapsody* | darwin1.[012])
7720 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7722 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7723 darwin*) # darwin 5.x on
7724 # if running on 10.5 or later, the deployment target defaults
7725 # to the OS version, if on x86, and 10.4, the deployment
7726 # target defaults to 10.4. Don't you love it?
7727 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7728 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7729 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7731 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7733 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7737 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7738 _lt_dar_single_mod='$single_module'
7740 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7741 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7743 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7745 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7746 _lt_dsymutil='~$DSYMUTIL $lib || :'
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7754 $as_echo_n "checking for ANSI C header files... " >&6; }
7755 if ${ac_cv_header_stdc+:} false; then :
7756 $as_echo_n "(cached) " >&6
7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h. */
7773 if ac_fn_c_try_compile "$LINENO"; then :
7774 ac_cv_header_stdc=yes
7776 ac_cv_header_stdc=no
7778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780 if test $ac_cv_header_stdc = yes; then
7781 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783 /* end confdefs.h. */
7787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7788 $EGREP "memchr" >/dev/null 2>&1; then :
7791 ac_cv_header_stdc=no
7797 if test $ac_cv_header_stdc = yes; then
7798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800 /* end confdefs.h. */
7804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7805 $EGREP "free" >/dev/null 2>&1; then :
7808 ac_cv_header_stdc=no
7814 if test $ac_cv_header_stdc = yes; then
7815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7816 if test "$cross_compiling" = yes; then :
7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h. */
7823 #if ((' ' & 0x0FF) == 0x020)
7824 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7825 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7827 # define ISLOWER(c) \
7828 (('a' <= (c) && (c) <= 'i') \
7829 || ('j' <= (c) && (c) <= 'r') \
7830 || ('s' <= (c) && (c) <= 'z'))
7831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7839 for (i = 0; i < 256; i++)
7840 if (XOR (islower (i), ISLOWER (i))
7841 || toupper (i) != TOUPPER (i))
7846 if ac_fn_c_try_run "$LINENO"; then :
7849 ac_cv_header_stdc=no
7851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7852 conftest.$ac_objext conftest.beam conftest.$ac_ext
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7858 $as_echo "$ac_cv_header_stdc" >&6; }
7859 if test $ac_cv_header_stdc = yes; then
7861 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
7865 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7866 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7867 inttypes.h stdint.h unistd.h
7869 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7870 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7872 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7873 cat >>confdefs.h <<_ACEOF
7874 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7882 for ac_header in dlfcn.h
7884 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7886 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7887 cat >>confdefs.h <<_ACEOF
7888 @%:@define HAVE_DLFCN_H 1
7909 @%:@ Check whether --enable-shared was given.
7910 if test "${enable_shared+set}" = set; then :
7911 enableval=$enable_shared; p=${PACKAGE-default}
7913 yes) enable_shared=yes ;;
7914 no) enable_shared=no ;;
7917 # Look at the argument we got. We use all the common list separators.
7918 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7919 for pkg in $enableval; do
7921 if test "X$pkg" = "X$p"; then
7940 @%:@ Check whether --enable-static was given.
7941 if test "${enable_static+set}" = set; then :
7942 enableval=$enable_static; p=${PACKAGE-default}
7944 yes) enable_static=yes ;;
7945 no) enable_static=no ;;
7948 # Look at the argument we got. We use all the common list separators.
7949 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7950 for pkg in $enableval; do
7952 if test "X$pkg" = "X$p"; then
7972 @%:@ Check whether --with-pic was given.
7973 if test "${with_pic+set}" = set; then :
7974 withval=$with_pic; lt_p=${PACKAGE-default}
7976 yes|no) pic_mode=$withval ;;
7979 # Look at the argument we got. We use all the common list separators.
7980 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7981 for lt_pkg in $withval; do
7983 if test "X$lt_pkg" = "X$lt_p"; then
7995 test -z "$pic_mode" && pic_mode=default
8003 @%:@ Check whether --enable-fast-install was given.
8004 if test "${enable_fast_install+set}" = set; then :
8005 enableval=$enable_fast_install; p=${PACKAGE-default}
8007 yes) enable_fast_install=yes ;;
8008 no) enable_fast_install=no ;;
8010 enable_fast_install=no
8011 # Look at the argument we got. We use all the common list separators.
8012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8013 for pkg in $enableval; do
8015 if test "X$pkg" = "X$p"; then
8016 enable_fast_install=yes
8023 enable_fast_install=yes
8036 # This can be used to rebuild libtool when needed
8037 LIBTOOL_DEPS="$ltmain"
8039 # Always use our own libtool.
8040 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8071 test -z "$LN_S" && LN_S="ln -s"
8086 if test -n "${ZSH_VERSION+set}" ; then
8087 setopt NO_GLOB_SUBST
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8091 $as_echo_n "checking for objdir... " >&6; }
8092 if ${lt_cv_objdir+:} false; then :
8093 $as_echo_n "(cached) " >&6
8095 rm -f .libs 2>/dev/null
8096 mkdir .libs 2>/dev/null
8097 if test -d .libs; then
8100 # MS-DOS does not allow filenames that begin with a dot.
8103 rmdir .libs 2>/dev/null
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8106 $as_echo "$lt_cv_objdir" >&6; }
8107 objdir=$lt_cv_objdir
8113 cat >>confdefs.h <<_ACEOF
8114 @%:@define LT_OBJDIR "$lt_cv_objdir/"
8122 # AIX sometimes has problems with the GCC collect2 program. For some
8123 # reason, if we set the COLLECT_NAMES environment variable, the problems
8124 # vanish in a puff of smoke.
8125 if test "X${COLLECT_NAMES+set}" != Xset; then
8127 export COLLECT_NAMES
8134 can_build_shared=yes
8136 # All known linkers require a `.a' archive for static linking (except MSVC,
8137 # which needs '.lib').
8140 with_gnu_ld="$lt_cv_prog_gnu_ld"
8143 old_CFLAGS="$CFLAGS"
8145 # Set sane defaults for various variables
8146 test -z "$CC" && CC=cc
8147 test -z "$LTCC" && LTCC=$CC
8148 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8149 test -z "$LD" && LD=ld
8150 test -z "$ac_objext" && ac_objext=o
8152 for cc_temp in $compiler""; do
8154 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8155 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8160 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8163 # Only perform the check for file, if the check method requires it
8164 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8165 case $deplibs_check_method in
8167 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8169 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8170 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8171 $as_echo_n "(cached) " >&6
8175 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8178 lt_save_MAGIC_CMD="$MAGIC_CMD"
8179 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8180 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8181 for ac_dir in $ac_dummy; do
8183 test -z "$ac_dir" && ac_dir=.
8184 if test -f $ac_dir/${ac_tool_prefix}file; then
8185 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8186 if test -n "$file_magic_test_file"; then
8187 case $deplibs_check_method in
8189 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8190 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8191 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8192 $EGREP "$file_magic_regex" > /dev/null; then
8197 *** Warning: the command libtool uses to detect shared libraries,
8198 *** $file_magic_cmd, produces output that libtool cannot recognize.
8199 *** The result is that libtool may fail to recognize shared libraries
8200 *** as such. This will affect the creation of libtool libraries that
8201 *** depend on shared libraries, but programs linked with such libtool
8202 *** libraries will work regardless of this problem. Nevertheless, you
8203 *** may want to report the problem to your system manager and/or to
8204 *** bug-libtool@gnu.org
8214 MAGIC_CMD="$lt_save_MAGIC_CMD"
8219 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8220 if test -n "$MAGIC_CMD"; then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8222 $as_echo "$MAGIC_CMD" >&6; }
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225 $as_echo "no" >&6; }
8232 if test -z "$lt_cv_path_MAGIC_CMD"; then
8233 if test -n "$ac_tool_prefix"; then
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8235 $as_echo_n "checking for file... " >&6; }
8236 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8237 $as_echo_n "(cached) " >&6
8241 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8244 lt_save_MAGIC_CMD="$MAGIC_CMD"
8245 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8246 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8247 for ac_dir in $ac_dummy; do
8249 test -z "$ac_dir" && ac_dir=.
8250 if test -f $ac_dir/file; then
8251 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8252 if test -n "$file_magic_test_file"; then
8253 case $deplibs_check_method in
8255 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8256 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8257 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8258 $EGREP "$file_magic_regex" > /dev/null; then
8263 *** Warning: the command libtool uses to detect shared libraries,
8264 *** $file_magic_cmd, produces output that libtool cannot recognize.
8265 *** The result is that libtool may fail to recognize shared libraries
8266 *** as such. This will affect the creation of libtool libraries that
8267 *** depend on shared libraries, but programs linked with such libtool
8268 *** libraries will work regardless of this problem. Nevertheless, you
8269 *** may want to report the problem to your system manager and/or to
8270 *** bug-libtool@gnu.org
8280 MAGIC_CMD="$lt_save_MAGIC_CMD"
8285 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8286 if test -n "$MAGIC_CMD"; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8288 $as_echo "$MAGIC_CMD" >&6; }
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }
8304 # Use C for the default configuration in the libtool script
8308 ac_cpp='$CPP $CPPFLAGS'
8309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8314 # Source file extension for C test sources.
8317 # Object file extension for compiled C test sources.
8321 # Code to be used in simple compile tests
8322 lt_simple_compile_test_code="int some_variable = 0;"
8324 # Code to be used in simple link tests
8325 lt_simple_link_test_code='int main(){return(0);}'
8333 # If no C compiler was specified, use CC.
8336 # If no C compiler flags were specified, use CFLAGS.
8337 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8339 # Allow CC to be a program name with arguments.
8342 # Save the default compiler, since it gets overwritten when the other
8343 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8344 compiler_DEFAULT=$CC
8346 # save warnings/boilerplate of simple test code
8347 ac_outfile=conftest.$ac_objext
8348 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8349 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8350 _lt_compiler_boilerplate=`cat conftest.err`
8353 ac_outfile=conftest.$ac_objext
8354 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8355 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8356 _lt_linker_boilerplate=`cat conftest.err`
8361 ## There is no encapsulation within the following macros, do not change
8362 ## the running order or otherwise move them around unless you know exactly
8363 ## what you are doing...
8364 if test -n "$compiler"; then
8366 lt_prog_compiler_no_builtin_flag=
8368 if test "$GCC" = yes; then
8369 case $cc_basename in
8371 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8373 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8377 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8378 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8379 $as_echo_n "(cached) " >&6
8381 lt_cv_prog_compiler_rtti_exceptions=no
8382 ac_outfile=conftest.$ac_objext
8383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8384 lt_compiler_flag="-fno-rtti -fno-exceptions"
8385 # Insert the option either (1) after the last *FLAGS variable, or
8386 # (2) before a word containing "conftest.", or (3) at the end.
8387 # Note that $ac_compile itself does not contain backslashes and begins
8388 # with a dollar sign (not a hyphen), so the echo should work correctly.
8389 # The option is referenced via a variable to avoid confusing sed.
8390 lt_compile=`echo "$ac_compile" | $SED \
8391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8393 -e 's:$: $lt_compiler_flag:'`
8394 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8395 (eval "$lt_compile" 2>conftest.err)
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 if (exit $ac_status) && test -s "$ac_outfile"; then
8400 # The compiler can only warn and ignore the option if not recognized
8401 # So say no if there are warnings other than the usual output.
8402 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8404 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8405 lt_cv_prog_compiler_rtti_exceptions=yes
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8412 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8414 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8415 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8427 lt_prog_compiler_wl=
8428 lt_prog_compiler_pic=
8429 lt_prog_compiler_static=
8432 if test "$GCC" = yes; then
8433 lt_prog_compiler_wl='-Wl,'
8434 lt_prog_compiler_static='-static'
8438 # All AIX code is PIC.
8439 if test "$host_cpu" = ia64; then
8440 # AIX 5 now supports IA64 processor
8441 lt_prog_compiler_static='-Bstatic'
8448 # see comment about AmigaOS4 .so support
8449 lt_prog_compiler_pic='-fPIC'
8452 # FIXME: we need at least 68020 code to build shared libraries, but
8453 # adding the `-m68020' flag to GCC prevents building anything better,
8455 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8460 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8461 # PIC is the default for these OSes.
8464 mingw* | cygwin* | pw32* | os2* | cegcc*)
8465 # This hack is so that the source file can tell whether it is being
8466 # built for inclusion in a dll (and should export symbols for example).
8467 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8468 # (--disable-auto-import) libraries
8469 lt_prog_compiler_pic='-DDLL_EXPORT'
8472 darwin* | rhapsody*)
8473 # PIC is the default on this platform
8474 # Common symbols not allowed in MH_DYLIB files
8475 lt_prog_compiler_pic='-fno-common'
8479 # PIC is the default for Haiku.
8480 # The "-static" flag exists, but is broken.
8481 lt_prog_compiler_static=
8485 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8486 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8487 # sets the default TLS model and affects inlining.
8493 lt_prog_compiler_pic='-fPIC'
8499 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8500 # Instead, we relocate shared libraries at runtime.
8504 # Just because we use GCC doesn't mean we suddenly get shared libraries
8505 # on systems that don't support them.
8506 lt_prog_compiler_can_build_shared=no
8511 # QNX uses GNU C++, but need to define -shared option too, otherwise
8513 lt_prog_compiler_pic='-fPIC -shared'
8517 if test -d /usr/nec; then
8518 lt_prog_compiler_pic=-Kconform_pic
8523 lt_prog_compiler_pic='-fPIC'
8527 case $cc_basename in
8528 nvcc*) # Cuda Compiler Driver 2.2
8529 lt_prog_compiler_wl='-Xlinker '
8530 if test -n "$lt_prog_compiler_pic"; then
8531 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8536 # PORTME Check for flag to pass linker flags through the system compiler.
8539 lt_prog_compiler_wl='-Wl,'
8540 if test "$host_cpu" = ia64; then
8541 # AIX 5 now supports IA64 processor
8542 lt_prog_compiler_static='-Bstatic'
8544 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8548 mingw* | cygwin* | pw32* | os2* | cegcc*)
8549 # This hack is so that the source file can tell whether it is being
8550 # built for inclusion in a dll (and should export symbols for example).
8551 lt_prog_compiler_pic='-DDLL_EXPORT'
8554 hpux9* | hpux10* | hpux11*)
8555 lt_prog_compiler_wl='-Wl,'
8556 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8563 lt_prog_compiler_pic='+Z'
8566 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8567 lt_prog_compiler_static='${wl}-a ${wl}archive'
8570 irix5* | irix6* | nonstopux*)
8571 lt_prog_compiler_wl='-Wl,'
8572 # PIC (with -KPIC) is the default.
8573 lt_prog_compiler_static='-non_shared'
8576 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8577 case $cc_basename in
8578 # old Intel for x86_64 which still supported -KPIC.
8580 lt_prog_compiler_wl='-Wl,'
8581 lt_prog_compiler_pic='-KPIC'
8582 lt_prog_compiler_static='-static'
8584 # icc used to be incompatible with GCC.
8585 # ICC 10 doesn't accept -KPIC any more.
8587 lt_prog_compiler_wl='-Wl,'
8588 lt_prog_compiler_pic='-fPIC'
8589 lt_prog_compiler_static='-static'
8591 # Lahey Fortran 8.1.
8593 lt_prog_compiler_wl='-Wl,'
8594 lt_prog_compiler_pic='--shared'
8595 lt_prog_compiler_static='--static'
8598 # NAG Fortran compiler
8599 lt_prog_compiler_wl='-Wl,-Wl,,'
8600 lt_prog_compiler_pic='-PIC'
8601 lt_prog_compiler_static='-Bstatic'
8603 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8604 # Portland Group compilers (*not* the Pentium gcc compiler,
8605 # which looks to be a dead project)
8606 lt_prog_compiler_wl='-Wl,'
8607 lt_prog_compiler_pic='-fpic'
8608 lt_prog_compiler_static='-Bstatic'
8611 lt_prog_compiler_wl='-Wl,'
8612 # All Alpha code is PIC.
8613 lt_prog_compiler_static='-non_shared'
8615 xl* | bgxl* | bgf* | mpixl*)
8616 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8617 lt_prog_compiler_wl='-Wl,'
8618 lt_prog_compiler_pic='-qpic'
8619 lt_prog_compiler_static='-qstaticlink'
8622 case `$CC -V 2>&1 | sed 5q` in
8623 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8624 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8625 lt_prog_compiler_pic='-KPIC'
8626 lt_prog_compiler_static='-Bstatic'
8627 lt_prog_compiler_wl=''
8629 *Sun\ F* | *Sun*Fortran*)
8630 lt_prog_compiler_pic='-KPIC'
8631 lt_prog_compiler_static='-Bstatic'
8632 lt_prog_compiler_wl='-Qoption ld '
8636 lt_prog_compiler_pic='-KPIC'
8637 lt_prog_compiler_static='-Bstatic'
8638 lt_prog_compiler_wl='-Wl,'
8640 *Intel*\ [CF]*Compiler*)
8641 lt_prog_compiler_wl='-Wl,'
8642 lt_prog_compiler_pic='-fPIC'
8643 lt_prog_compiler_static='-static'
8646 lt_prog_compiler_wl='-Wl,'
8647 lt_prog_compiler_pic='-fpic'
8648 lt_prog_compiler_static='-Bstatic'
8656 lt_prog_compiler_pic='-KPIC'
8657 lt_prog_compiler_static='-Bstatic'
8661 # QNX uses GNU C++, but need to define -shared option too, otherwise
8663 lt_prog_compiler_pic='-fPIC -shared'
8666 osf3* | osf4* | osf5*)
8667 lt_prog_compiler_wl='-Wl,'
8668 # All OSF/1 code is PIC.
8669 lt_prog_compiler_static='-non_shared'
8673 lt_prog_compiler_static='-non_shared'
8677 lt_prog_compiler_pic='-KPIC'
8678 lt_prog_compiler_static='-Bstatic'
8679 case $cc_basename in
8680 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8681 lt_prog_compiler_wl='-Qoption ld ';;
8683 lt_prog_compiler_wl='-Wl,';;
8688 lt_prog_compiler_wl='-Qoption ld '
8689 lt_prog_compiler_pic='-PIC'
8690 lt_prog_compiler_static='-Bstatic'
8693 sysv4 | sysv4.2uw2* | sysv4.3*)
8694 lt_prog_compiler_wl='-Wl,'
8695 lt_prog_compiler_pic='-KPIC'
8696 lt_prog_compiler_static='-Bstatic'
8700 if test -d /usr/nec ;then
8701 lt_prog_compiler_pic='-Kconform_pic'
8702 lt_prog_compiler_static='-Bstatic'
8706 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8707 lt_prog_compiler_wl='-Wl,'
8708 lt_prog_compiler_pic='-KPIC'
8709 lt_prog_compiler_static='-Bstatic'
8713 lt_prog_compiler_wl='-Wl,'
8714 lt_prog_compiler_can_build_shared=no
8718 lt_prog_compiler_pic='-pic'
8719 lt_prog_compiler_static='-Bstatic'
8723 lt_prog_compiler_can_build_shared=no
8729 # For platforms which do not support PIC, -DPIC is meaningless:
8731 lt_prog_compiler_pic=
8734 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8739 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8740 if ${lt_cv_prog_compiler_pic+:} false; then :
8741 $as_echo_n "(cached) " >&6
8743 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8746 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8747 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8750 # Check to make sure the PIC flag actually works.
8752 if test -n "$lt_prog_compiler_pic"; then
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8754 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8755 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8756 $as_echo_n "(cached) " >&6
8758 lt_cv_prog_compiler_pic_works=no
8759 ac_outfile=conftest.$ac_objext
8760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8761 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8762 # Insert the option either (1) after the last *FLAGS variable, or
8763 # (2) before a word containing "conftest.", or (3) at the end.
8764 # Note that $ac_compile itself does not contain backslashes and begins
8765 # with a dollar sign (not a hyphen), so the echo should work correctly.
8766 # The option is referenced via a variable to avoid confusing sed.
8767 lt_compile=`echo "$ac_compile" | $SED \
8768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8770 -e 's:$: $lt_compiler_flag:'`
8771 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8772 (eval "$lt_compile" 2>conftest.err)
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 if (exit $ac_status) && test -s "$ac_outfile"; then
8777 # The compiler can only warn and ignore the option if not recognized
8778 # So say no if there are warnings other than the usual output.
8779 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8781 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8782 lt_cv_prog_compiler_pic_works=yes
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8789 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8791 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8792 case $lt_prog_compiler_pic in
8794 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8797 lt_prog_compiler_pic=
8798 lt_prog_compiler_can_build_shared=no
8814 # Check to make sure the static flag actually works.
8816 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8818 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8819 if ${lt_cv_prog_compiler_static_works+:} false; then :
8820 $as_echo_n "(cached) " >&6
8822 lt_cv_prog_compiler_static_works=no
8823 save_LDFLAGS="$LDFLAGS"
8824 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8825 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8826 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8827 # The linker can only warn and ignore the option if not recognized
8828 # So say no if there are warnings
8829 if test -s conftest.err; then
8830 # Append any errors to the config.log.
8831 cat conftest.err 1>&5
8832 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8834 if diff conftest.exp conftest.er2 >/dev/null; then
8835 lt_cv_prog_compiler_static_works=yes
8838 lt_cv_prog_compiler_static_works=yes
8842 LDFLAGS="$save_LDFLAGS"
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8846 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8848 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8851 lt_prog_compiler_static=
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8861 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8862 if ${lt_cv_prog_compiler_c_o+:} false; then :
8863 $as_echo_n "(cached) " >&6
8865 lt_cv_prog_compiler_c_o=no
8866 $RM -r conftest 2>/dev/null
8870 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8872 lt_compiler_flag="-o out/conftest2.$ac_objext"
8873 # Insert the option either (1) after the last *FLAGS variable, or
8874 # (2) before a word containing "conftest.", or (3) at the end.
8875 # Note that $ac_compile itself does not contain backslashes and begins
8876 # with a dollar sign (not a hyphen), so the echo should work correctly.
8877 lt_compile=`echo "$ac_compile" | $SED \
8878 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8880 -e 's:$: $lt_compiler_flag:'`
8881 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8882 (eval "$lt_compile" 2>out/conftest.err)
8884 cat out/conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8888 # The compiler can only warn and ignore the option if not recognized
8889 # So say no if there are warnings
8890 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8891 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8892 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8893 lt_cv_prog_compiler_c_o=yes
8898 # SGI C++ compiler will create directory out/ii_files/ for
8899 # template instantiation
8900 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8901 $RM out/* && rmdir out
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8908 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8916 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8917 if ${lt_cv_prog_compiler_c_o+:} false; then :
8918 $as_echo_n "(cached) " >&6
8920 lt_cv_prog_compiler_c_o=no
8921 $RM -r conftest 2>/dev/null
8925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8927 lt_compiler_flag="-o out/conftest2.$ac_objext"
8928 # Insert the option either (1) after the last *FLAGS variable, or
8929 # (2) before a word containing "conftest.", or (3) at the end.
8930 # Note that $ac_compile itself does not contain backslashes and begins
8931 # with a dollar sign (not a hyphen), so the echo should work correctly.
8932 lt_compile=`echo "$ac_compile" | $SED \
8933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8935 -e 's:$: $lt_compiler_flag:'`
8936 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8937 (eval "$lt_compile" 2>out/conftest.err)
8939 cat out/conftest.err >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8943 # The compiler can only warn and ignore the option if not recognized
8944 # So say no if there are warnings
8945 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8946 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8947 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8948 lt_cv_prog_compiler_c_o=yes
8953 # SGI C++ compiler will create directory out/ii_files/ for
8954 # template instantiation
8955 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8956 $RM out/* && rmdir out
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8963 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8968 hard_links="nottested"
8969 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8970 # do not overwrite the value of need_locks provided by the user
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8972 $as_echo_n "checking if we can lock with hard links... " >&6; }
8975 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8977 ln conftest.a conftest.b 2>&5 || hard_links=no
8978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8980 $as_echo "$hard_links" >&6; }
8981 if test "$hard_links" = no; then
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8983 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8996 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8999 allow_undefined_flag=
9000 always_export_symbols=no
9002 archive_expsym_cmds=
9003 compiler_needs_object=no
9004 enable_shared_with_static_runtimes=no
9005 export_dynamic_flag_spec=
9006 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9007 hardcode_automatic=no
9009 hardcode_direct_absolute=no
9010 hardcode_libdir_flag_spec=
9011 hardcode_libdir_separator=
9013 hardcode_shlibpath_var=unsupported
9015 link_all_deplibs=unknown
9018 old_archive_from_new_cmds=
9019 old_archive_from_expsyms_cmds=
9020 thread_safe_flag_spec=
9021 whole_archive_flag_spec=
9022 # include_expsyms should be a list of space-separated symbols to be *always*
9023 # included in the symbol list
9025 # exclude_expsyms can be an extended regexp of symbols to exclude
9026 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9027 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9028 # as well as any symbol that contains `d'.
9029 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9030 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9031 # platforms (ab)use it in PIC code, but their linkers get confused if
9032 # the symbol is explicitly referenced. Since portable code cannot
9033 # rely on this symbol name, it's probably fine to never include it in
9034 # preloaded symbol tables.
9035 # Exclude shared library initialization/finalization symbols.
9036 extract_expsyms_cmds=
9039 cygwin* | mingw* | pw32* | cegcc*)
9040 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9041 # When not using gcc, we currently assume that we are using
9042 # Microsoft Visual C++.
9043 if test "$GCC" != yes; then
9048 # we just hope/assume this is gcc and not c89 (= MSVC++)
9054 linux* | k*bsd*-gnu | gnu*)
9061 # On some targets, GNU ld is compatible enough with the native linker
9062 # that we're better off using the native interface for both.
9063 lt_use_gnu_ld_interface=no
9064 if test "$with_gnu_ld" = yes; then
9067 # The AIX port of GNU ld has always aspired to compatibility
9068 # with the native linker. However, as the warning in the GNU ld
9069 # block says, versions before 2.19.5* couldn't really create working
9070 # shared libraries, regardless of the interface used.
9071 case `$LD -v 2>&1` in
9072 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9073 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9074 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9076 lt_use_gnu_ld_interface=yes
9081 lt_use_gnu_ld_interface=yes
9086 if test "$lt_use_gnu_ld_interface" = yes; then
9087 # If archive_cmds runs LD, not CC, wlarc should be empty
9090 # Set some defaults for GNU ld with shared library support. These
9091 # are reset later if shared libraries are not supported. Putting them
9092 # here allows them to be overridden if necessary.
9093 runpath_var=LD_RUN_PATH
9094 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9095 export_dynamic_flag_spec='${wl}--export-dynamic'
9096 # ancient GNU ld didn't support --whole-archive et. al.
9097 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9098 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9100 whole_archive_flag_spec=
9102 supports_anon_versioning=no
9103 case `$LD -v 2>&1` in
9104 *GNU\ gold*) supports_anon_versioning=yes ;;
9105 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9106 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9107 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9108 *\ 2.11.*) ;; # other 2.11 versions
9109 *) supports_anon_versioning=yes ;;
9112 # See if GNU ld supports shared libraries.
9115 # On AIX/PPC, the GNU linker is very broken
9116 if test "$host_cpu" != ia64; then
9120 *** Warning: the GNU linker, at least up to release 2.19, is reported
9121 *** to be unable to reliably create shared libraries on AIX.
9122 *** Therefore, libtool is disabling shared libraries support. If you
9123 *** really care for shared libraries, you may want to install binutils
9124 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9125 *** You will then need to restart the configuration process.
9134 # see comment about AmigaOS4 .so support
9135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9136 archive_expsym_cmds=''
9139 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)'
9140 hardcode_libdir_flag_spec='-L$libdir'
9141 hardcode_minus_L=yes
9147 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9148 allow_undefined_flag=unsupported
9149 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9150 # support --undefined. This deserves some investigation. FIXME
9151 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9157 cygwin* | mingw* | pw32* | cegcc*)
9158 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9159 # as there is no search path for DLLs.
9160 hardcode_libdir_flag_spec='-L$libdir'
9161 export_dynamic_flag_spec='${wl}--export-all-symbols'
9162 allow_undefined_flag=unsupported
9163 always_export_symbols=no
9164 enable_shared_with_static_runtimes=yes
9165 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'
9166 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9168 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9169 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9170 # If the export-symbols file already is a .def file (1st line
9171 # is EXPORTS), use it as is; otherwise, prepend...
9172 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9173 cp $export_symbols $output_objdir/$soname.def;
9175 echo EXPORTS > $output_objdir/$soname.def;
9176 cat $export_symbols >> $output_objdir/$soname.def;
9178 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9186 link_all_deplibs=yes
9191 hardcode_shlibpath_var=no
9192 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9193 export_dynamic_flag_spec='${wl}-E'
9194 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9195 # Instead, shared libraries are loaded at an image base (0x10000000 by
9196 # default) and relocated if they conflict, which is a slow very memory
9197 # consuming and fragmenting process. To avoid this, we pick a random,
9198 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9199 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9200 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9201 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'
9204 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9206 if test "$host_os" = linux-dietlibc; then
9207 case $cc_basename in
9208 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9211 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9212 && test "$tmp_diet" = no
9214 tmp_addflag=' $pic_flag'
9215 tmp_sharedflag='-shared'
9216 case $cc_basename,$host_cpu in
9217 pgcc*) # Portland Group C compiler
9218 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'
9219 tmp_addflag=' $pic_flag'
9221 pgf77* | pgf90* | pgf95* | pgfortran*)
9222 # Portland Group f77 and f90 compilers
9223 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'
9224 tmp_addflag=' $pic_flag -Mnomain' ;;
9225 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9226 tmp_addflag=' -i_dynamic' ;;
9227 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9228 tmp_addflag=' -i_dynamic -nofor_main' ;;
9229 ifc* | ifort*) # Intel Fortran compiler
9230 tmp_addflag=' -nofor_main' ;;
9231 lf95*) # Lahey Fortran 8.1
9232 whole_archive_flag_spec=
9233 tmp_sharedflag='--shared' ;;
9234 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9235 tmp_sharedflag='-qmkshrobj'
9237 nvcc*) # Cuda Compiler Driver 2.2
9238 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'
9239 compiler_needs_object=yes
9242 case `$CC -V 2>&1 | sed 5q` in
9243 *Sun\ C*) # Sun C 5.9
9244 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'
9245 compiler_needs_object=yes
9246 tmp_sharedflag='-G' ;;
9247 *Sun\ F*) # Sun Fortran 8.3
9248 tmp_sharedflag='-G' ;;
9250 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9252 if test "x$supports_anon_versioning" = xyes; then
9253 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9254 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9255 echo "local: *; };" >> $output_objdir/$libname.ver~
9256 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9259 case $cc_basename in
9260 xlf* | bgf* | bgxlf* | mpixlf*)
9261 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9262 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9263 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9264 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9265 if test "x$supports_anon_versioning" = xyes; then
9266 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9267 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9268 echo "local: *; };" >> $output_objdir/$libname.ver~
9269 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9278 netbsd* | netbsdelf*-gnu)
9279 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9280 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9283 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9284 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9289 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9293 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9294 *** create shared libraries on Solaris systems. Therefore, libtool
9295 *** is disabling shared libraries support. We urge you to upgrade GNU
9296 *** binutils to release 2.9.1 or newer. Another option is to modify
9297 *** your PATH or compiler configuration so that the native linker is
9298 *** used, and then restart.
9301 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9302 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9303 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9309 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9310 case `$LD -v 2>&1` in
9311 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9315 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9316 *** reliably create shared libraries on SCO systems. Therefore, libtool
9317 *** is disabling shared libraries support. We urge you to upgrade GNU
9318 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9319 *** your PATH or compiler configuration so that the native linker is
9320 *** used, and then restart.
9325 # For security reasons, it is highly recommended that you always
9326 # use absolute paths for naming shared libraries, and exclude the
9327 # DT_RUNPATH tag from executables and libraries. But doing so
9328 # requires that you compile everything twice, which is a pain.
9329 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9330 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9332 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9341 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9344 hardcode_shlibpath_var=no
9348 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9349 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9357 if test "$ld_shlibs" = no; then
9359 hardcode_libdir_flag_spec=
9360 export_dynamic_flag_spec=
9361 whole_archive_flag_spec=
9364 # PORTME fill in a description of your system's linker (not GNU ld)
9367 allow_undefined_flag=unsupported
9368 always_export_symbols=yes
9369 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'
9370 # Note: this linker hardcodes the directories in LIBPATH if there
9371 # are no directories specified by -L.
9372 hardcode_minus_L=yes
9373 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9374 # Neither direct hardcoding nor static linking is supported with a
9376 hardcode_direct=unsupported
9381 if test "$host_cpu" = ia64; then
9382 # On IA64, the linker does run time linking by default, so we don't
9383 # have to do anything special.
9384 aix_use_runtimelinking=no
9385 exp_sym_flag='-Bexport'
9388 # If we're using GNU nm, then we don't want the "-C" option.
9389 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9390 # Also, AIX nm treats weak defined symbols like other global
9391 # defined symbols, whereas GNU nm marks them as "W".
9392 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9393 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'
9395 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'
9397 aix_use_runtimelinking=no
9399 # Test if we are trying to use run time linking or normal
9400 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9401 # need to do runtime linking.
9402 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9403 for ld_flag in $LDFLAGS; do
9404 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9405 aix_use_runtimelinking=yes
9412 exp_sym_flag='-bexport'
9413 no_entry_flag='-bnoentry'
9416 # When large executables or shared objects are built, AIX ld can
9417 # have problems creating the table of contents. If linking a library
9418 # or program results in "error TOC overflow" add -mminimal-toc to
9419 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9420 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9424 hardcode_direct_absolute=yes
9425 hardcode_libdir_separator=':'
9426 link_all_deplibs=yes
9427 file_list_spec='${wl}-f,'
9429 if test "$GCC" = yes; then
9430 case $host_os in aix4.[012]|aix4.[012].*)
9431 # We only want to do this on AIX 4.2 and lower, the check
9432 # below for broken collect2 doesn't work under 4.3+
9433 collect2name=`${CC} -print-prog-name=collect2`
9434 if test -f "$collect2name" &&
9435 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9437 # We have reworked collect2
9440 # We have old collect2
9441 hardcode_direct=unsupported
9442 # It fails to find uninstalled libraries when the uninstalled
9443 # path is not listed in the libpath. Setting hardcode_minus_L
9444 # to unsupported forces relinking
9445 hardcode_minus_L=yes
9446 hardcode_libdir_flag_spec='-L$libdir'
9447 hardcode_libdir_separator=
9451 shared_flag='-shared'
9452 if test "$aix_use_runtimelinking" = yes; then
9453 shared_flag="$shared_flag "'${wl}-G'
9458 if test "$host_cpu" = ia64; then
9459 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9460 # chokes on -Wl,-G. The following line is correct:
9463 if test "$aix_use_runtimelinking" = yes; then
9464 shared_flag='${wl}-G'
9466 shared_flag='${wl}-bM:SRE'
9471 export_dynamic_flag_spec='${wl}-bexpall'
9472 # It seems that -bexpall does not export symbols beginning with
9473 # underscore (_), so it is better to generate a list of symbols to export.
9474 always_export_symbols=yes
9475 if test "$aix_use_runtimelinking" = yes; then
9476 # Warning - without using the other runtime loading flags (-brtl),
9477 # -berok will link without error, but may produce a broken library.
9478 allow_undefined_flag='-berok'
9479 # Determine the default libpath from the value encoded in an
9481 if test "${lt_cv_aix_libpath+set}" = set; then
9482 aix_libpath=$lt_cv_aix_libpath
9484 if ${lt_cv_aix_libpath_+:} false; then :
9485 $as_echo_n "(cached) " >&6
9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488 /* end confdefs.h. */
9498 if ac_fn_c_try_link "$LINENO"; then :
9500 lt_aix_libpath_sed='
9501 /Import File Strings/,/^$/ {
9503 s/^0 *\([^ ]*\) *$/\1/
9507 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9508 # Check for a 64-bit object if we didn't find anything.
9509 if test -z "$lt_cv_aix_libpath_"; then
9510 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9513 rm -f core conftest.err conftest.$ac_objext \
9514 conftest$ac_exeext conftest.$ac_ext
9515 if test -z "$lt_cv_aix_libpath_"; then
9516 lt_cv_aix_libpath_="/usr/lib:/lib"
9521 aix_libpath=$lt_cv_aix_libpath_
9524 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9525 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"
9527 if test "$host_cpu" = ia64; then
9528 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9529 allow_undefined_flag="-z nodefs"
9530 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"
9532 # Determine the default libpath from the value encoded in an
9534 if test "${lt_cv_aix_libpath+set}" = set; then
9535 aix_libpath=$lt_cv_aix_libpath
9537 if ${lt_cv_aix_libpath_+:} false; then :
9538 $as_echo_n "(cached) " >&6
9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541 /* end confdefs.h. */
9551 if ac_fn_c_try_link "$LINENO"; then :
9553 lt_aix_libpath_sed='
9554 /Import File Strings/,/^$/ {
9556 s/^0 *\([^ ]*\) *$/\1/
9560 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9561 # Check for a 64-bit object if we didn't find anything.
9562 if test -z "$lt_cv_aix_libpath_"; then
9563 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9566 rm -f core conftest.err conftest.$ac_objext \
9567 conftest$ac_exeext conftest.$ac_ext
9568 if test -z "$lt_cv_aix_libpath_"; then
9569 lt_cv_aix_libpath_="/usr/lib:/lib"
9574 aix_libpath=$lt_cv_aix_libpath_
9577 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9578 # Warning - without using the other run time loading flags,
9579 # -berok will link without error, but may produce a broken library.
9580 no_undefined_flag=' ${wl}-bernotok'
9581 allow_undefined_flag=' ${wl}-berok'
9582 if test "$with_gnu_ld" = yes; then
9583 # We only use this code for GNU lds that support --whole-archive.
9584 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9586 # Exported symbols can be pulled into shared objects from archives
9587 whole_archive_flag_spec='$convenience'
9589 archive_cmds_need_lc=yes
9590 # This is similar to how AIX traditionally builds its shared libraries.
9591 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'
9599 # see comment about AmigaOS4 .so support
9600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9601 archive_expsym_cmds=''
9604 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)'
9605 hardcode_libdir_flag_spec='-L$libdir'
9606 hardcode_minus_L=yes
9612 export_dynamic_flag_spec=-rdynamic
9615 cygwin* | mingw* | pw32* | cegcc*)
9616 # When not using gcc, we currently assume that we are using
9617 # Microsoft Visual C++.
9618 # hardcode_libdir_flag_spec is actually meaningless, as there is
9619 # no search path for DLLs.
9620 case $cc_basename in
9623 hardcode_libdir_flag_spec=' '
9624 allow_undefined_flag=unsupported
9625 always_export_symbols=yes
9627 # Tell ltmain to make .lib files, not .a files.
9629 # Tell ltmain to make .dll files, not .so files.
9631 # FIXME: Setting linknames here is a bad hack.
9632 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9633 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9634 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9636 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9638 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9640 # The linker will not automatically build a static lib if we build a DLL.
9641 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9642 enable_shared_with_static_runtimes=yes
9643 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9644 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9646 old_postinstall_cmds='chmod 644 $oldlib'
9647 postlink_cmds='lt_outputfile="@OUTPUT@"~
9648 lt_tool_outputfile="@TOOL_OUTPUT@"~
9649 case $lt_outputfile in
9652 lt_outputfile="$lt_outputfile.exe"
9653 lt_tool_outputfile="$lt_tool_outputfile.exe"
9656 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9657 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9658 $RM "$lt_outputfile.manifest";
9662 # Assume MSVC wrapper
9663 hardcode_libdir_flag_spec=' '
9664 allow_undefined_flag=unsupported
9665 # Tell ltmain to make .lib files, not .a files.
9667 # Tell ltmain to make .dll files, not .so files.
9669 # FIXME: Setting linknames here is a bad hack.
9670 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9671 # The linker will automatically build a .lib file if we build a DLL.
9672 old_archive_from_new_cmds='true'
9673 # FIXME: Should let the user specify the lib program.
9674 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9675 enable_shared_with_static_runtimes=yes
9680 darwin* | rhapsody*)
9683 archive_cmds_need_lc=no
9685 hardcode_automatic=yes
9686 hardcode_shlibpath_var=unsupported
9687 if test "$lt_cv_ld_force_load" = "yes"; then
9688 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\"`'
9691 whole_archive_flag_spec=''
9693 link_all_deplibs=yes
9694 allow_undefined_flag="$_lt_dar_allow_undefined"
9695 case $cc_basename in
9696 ifort*) _lt_dar_can_shared=yes ;;
9697 *) _lt_dar_can_shared=$GCC ;;
9699 if test "$_lt_dar_can_shared" = "yes"; then
9700 output_verbose_link_cmd=func_echo_all
9701 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9702 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9703 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}"
9704 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}"
9713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9714 hardcode_libdir_flag_spec='-L$libdir'
9715 hardcode_shlibpath_var=no
9718 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9719 # support. Future versions do this automatically, but an explicit c++rt0.o
9720 # does not break anything, and helps significantly (at the cost of a little
9723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9724 hardcode_libdir_flag_spec='-R$libdir'
9726 hardcode_shlibpath_var=no
9729 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9733 hardcode_minus_L=yes
9734 hardcode_shlibpath_var=no
9737 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9738 freebsd* | dragonfly*)
9739 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9740 hardcode_libdir_flag_spec='-R$libdir'
9742 hardcode_shlibpath_var=no
9746 if test "$GCC" = yes; then
9747 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'
9749 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'
9751 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9752 hardcode_libdir_separator=:
9755 # hardcode_minus_L: Not really in the search PATH,
9756 # but as the default location of the library.
9757 hardcode_minus_L=yes
9758 export_dynamic_flag_spec='${wl}-E'
9762 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9763 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9765 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9767 if test "$with_gnu_ld" = no; then
9768 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9769 hardcode_libdir_separator=:
9771 hardcode_direct_absolute=yes
9772 export_dynamic_flag_spec='${wl}-E'
9773 # hardcode_minus_L: Not really in the search PATH,
9774 # but as the default location of the library.
9775 hardcode_minus_L=yes
9780 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9783 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9786 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9789 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9795 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9798 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9802 # Older versions of the 11.00 compiler do not understand -b yet
9803 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9805 $as_echo_n "checking if $CC understands -b... " >&6; }
9806 if ${lt_cv_prog_compiler__b+:} false; then :
9807 $as_echo_n "(cached) " >&6
9809 lt_cv_prog_compiler__b=no
9810 save_LDFLAGS="$LDFLAGS"
9811 LDFLAGS="$LDFLAGS -b"
9812 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9813 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9814 # The linker can only warn and ignore the option if not recognized
9815 # So say no if there are warnings
9816 if test -s conftest.err; then
9817 # Append any errors to the config.log.
9818 cat conftest.err 1>&5
9819 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9821 if diff conftest.exp conftest.er2 >/dev/null; then
9822 lt_cv_prog_compiler__b=yes
9825 lt_cv_prog_compiler__b=yes
9829 LDFLAGS="$save_LDFLAGS"
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9833 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9835 if test x"$lt_cv_prog_compiler__b" = xyes; then
9836 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9838 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9844 if test "$with_gnu_ld" = no; then
9845 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9846 hardcode_libdir_separator=:
9851 hardcode_shlibpath_var=no
9855 hardcode_direct_absolute=yes
9856 export_dynamic_flag_spec='${wl}-E'
9858 # hardcode_minus_L: Not really in the search PATH,
9859 # but as the default location of the library.
9860 hardcode_minus_L=yes
9866 irix5* | irix6* | nonstopux*)
9867 if test "$GCC" = yes; then
9868 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'
9869 # Try to use the -exported_symbol ld option, if it does not
9870 # work, assume that -exports_file does not work either and
9871 # implicitly export all symbols.
9872 # This should be the same for all languages, so no per-tag cache variable.
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9874 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9875 if ${lt_cv_irix_exported_symbol+:} false; then :
9876 $as_echo_n "(cached) " >&6
9878 save_LDFLAGS="$LDFLAGS"
9879 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9881 /* end confdefs.h. */
9882 int foo (void) { return 0; }
9884 if ac_fn_c_try_link "$LINENO"; then :
9885 lt_cv_irix_exported_symbol=yes
9887 lt_cv_irix_exported_symbol=no
9889 rm -f core conftest.err conftest.$ac_objext \
9890 conftest$ac_exeext conftest.$ac_ext
9891 LDFLAGS="$save_LDFLAGS"
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9894 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9895 if test "$lt_cv_irix_exported_symbol" = yes; then
9896 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'
9899 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'
9900 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'
9902 archive_cmds_need_lc='no'
9903 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9904 hardcode_libdir_separator=:
9906 link_all_deplibs=yes
9909 netbsd* | netbsdelf*-gnu)
9910 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9911 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9913 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9915 hardcode_libdir_flag_spec='-R$libdir'
9917 hardcode_shlibpath_var=no
9921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9923 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9924 hardcode_libdir_separator=:
9925 hardcode_shlibpath_var=no
9932 if test -f /usr/libexec/ld.so; then
9934 hardcode_shlibpath_var=no
9935 hardcode_direct_absolute=yes
9936 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9937 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9938 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9939 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9940 export_dynamic_flag_spec='${wl}-E'
9943 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9944 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9945 hardcode_libdir_flag_spec='-R$libdir'
9948 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9949 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9959 hardcode_libdir_flag_spec='-L$libdir'
9960 hardcode_minus_L=yes
9961 allow_undefined_flag=unsupported
9962 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'
9963 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9967 if test "$GCC" = yes; then
9968 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9969 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'
9971 allow_undefined_flag=' -expect_unresolved \*'
9972 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'
9974 archive_cmds_need_lc='no'
9975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9976 hardcode_libdir_separator=:
9979 osf4* | osf5*) # as osf3* with the addition of -msym flag
9980 if test "$GCC" = yes; then
9981 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9982 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'
9983 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9985 allow_undefined_flag=' -expect_unresolved \*'
9986 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'
9987 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~
9988 $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'
9990 # Both c and cxx compiler support -rpath directly
9991 hardcode_libdir_flag_spec='-rpath $libdir'
9993 archive_cmds_need_lc='no'
9994 hardcode_libdir_separator=:
9998 no_undefined_flag=' -z defs'
9999 if test "$GCC" = yes; then
10001 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10002 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10003 $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'
10005 case `$CC -V 2>&1` in
10008 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10009 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10010 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10014 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10015 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10016 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10020 hardcode_libdir_flag_spec='-R$libdir'
10021 hardcode_shlibpath_var=no
10023 solaris2.[0-5] | solaris2.[0-5].*) ;;
10025 # The compiler driver will combine and reorder linker options,
10026 # but understands `-z linker_flag'. GCC discards it without `$wl',
10027 # but is careful enough not to reorder.
10028 # Supported since Solaris 2.6 (maybe 2.5.1?)
10029 if test "$GCC" = yes; then
10030 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10032 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10036 link_all_deplibs=yes
10040 if test "x$host_vendor" = xsequent; then
10041 # Use $CC to link under sequent, because it throws in some extra .o
10042 # files that make .init and .fini sections work.
10043 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10045 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10047 hardcode_libdir_flag_spec='-L$libdir'
10048 hardcode_direct=yes
10049 hardcode_minus_L=yes
10050 hardcode_shlibpath_var=no
10054 case $host_vendor in
10056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057 hardcode_direct=yes # is this really true???
10060 ## LD is ld it makes a PLAMLIB
10061 ## CC just makes a GrossModule.
10062 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10063 reload_cmds='$CC -r -o $output$reload_objs'
10067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10068 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10071 runpath_var='LD_RUN_PATH'
10072 hardcode_shlibpath_var=no
10076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10077 hardcode_shlibpath_var=no
10078 export_dynamic_flag_spec='-Bexport'
10082 if test -d /usr/nec; then
10083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10084 hardcode_shlibpath_var=no
10085 runpath_var=LD_RUN_PATH
10086 hardcode_runpath_var=yes
10091 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10092 no_undefined_flag='${wl}-z,text'
10093 archive_cmds_need_lc=no
10094 hardcode_shlibpath_var=no
10095 runpath_var='LD_RUN_PATH'
10097 if test "$GCC" = yes; then
10098 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10099 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10101 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10102 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10106 sysv5* | sco3.2v5* | sco5v6*)
10107 # Note: We can NOT use -z defs as we might desire, because we do not
10108 # link with -lc, and that would cause any symbols used from libc to
10109 # always be unresolved, which means just about no library would
10110 # ever link correctly. If we're not using GNU ld we use -z text
10111 # though, which does catch some bad symbols but isn't as heavy-handed
10113 no_undefined_flag='${wl}-z,text'
10114 allow_undefined_flag='${wl}-z,nodefs'
10115 archive_cmds_need_lc=no
10116 hardcode_shlibpath_var=no
10117 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10118 hardcode_libdir_separator=':'
10119 link_all_deplibs=yes
10120 export_dynamic_flag_spec='${wl}-Bexport'
10121 runpath_var='LD_RUN_PATH'
10123 if test "$GCC" = yes; then
10124 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10125 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10127 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10128 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10134 hardcode_libdir_flag_spec='-L$libdir'
10135 hardcode_shlibpath_var=no
10143 if test x$host_vendor = xsni; then
10145 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10146 export_dynamic_flag_spec='${wl}-Blargedynsym'
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10153 $as_echo "$ld_shlibs" >&6; }
10154 test "$ld_shlibs" = no && can_build_shared=no
10156 with_gnu_ld=$with_gnu_ld
10173 # Do we need to explicitly link libc?
10175 case "x$archive_cmds_need_lc" in
10177 # Assume -lc should be added
10178 archive_cmds_need_lc=yes
10180 if test "$enable_shared" = yes && test "$GCC" = yes; then
10181 case $archive_cmds in
10183 # FIXME: we may have to deal with multi-command sequences.
10186 # Test whether the compiler implicitly links with -lc since on some
10187 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10188 # to ld, don't add -lc before -lgcc.
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10190 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10191 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10192 $as_echo_n "(cached) " >&6
10195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10198 (eval $ac_compile) 2>&5
10200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10201 test $ac_status = 0; } 2>conftest.err; then
10204 libobjs=conftest.$ac_objext
10206 wl=$lt_prog_compiler_wl
10207 pic_flag=$lt_prog_compiler_pic
10213 lt_save_allow_undefined_flag=$allow_undefined_flag
10214 allow_undefined_flag=
10215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10216 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10219 test $ac_status = 0; }
10221 lt_cv_archive_cmds_need_lc=no
10223 lt_cv_archive_cmds_need_lc=yes
10225 allow_undefined_flag=$lt_save_allow_undefined_flag
10227 cat conftest.err 1>&5
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10233 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10234 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10393 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10395 if test "$GCC" = yes; then
10397 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10398 *) lt_awk_arg="/^libraries:/" ;;
10401 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10402 *) lt_sed_strip_eq="s,=/,/,g" ;;
10404 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10405 case $lt_search_path_spec in
10407 # if the path contains ";" then we assume it to be the separator
10408 # otherwise default to the standard path separator (i.e. ":") - it is
10409 # assumed that no part of a normal pathname contains ";" but that should
10410 # okay in the real world where ";" in dirpaths is itself problematic.
10411 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10414 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10417 # Ok, now we have the path, separated by spaces, we can step through it
10418 # and add multilib dir if necessary.
10419 lt_tmp_lt_search_path_spec=
10420 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10421 for lt_sys_path in $lt_search_path_spec; do
10422 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10423 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10425 test -d "$lt_sys_path" && \
10426 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10429 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10430 BEGIN {RS=" "; FS="/|\n";} {
10433 for (lt_i = NF; lt_i > 0; lt_i--) {
10434 if ($lt_i != "" && $lt_i != ".") {
10435 if ($lt_i == "..") {
10438 if (lt_count == 0) {
10439 lt_foo="/" $lt_i lt_foo;
10446 if (lt_foo != "") { lt_freq[lt_foo]++; }
10447 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10449 # AWK program above erroneously prepends '/' to C:/dos/paths
10452 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10453 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10455 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10457 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10459 library_names_spec=
10460 libname_spec='lib$name'
10464 postuninstall_cmds=
10468 shlibpath_overrides_runpath=unknown
10470 dynamic_linker="$host_os ld.so"
10471 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10472 need_lib_prefix=unknown
10473 hardcode_into_libs=no
10475 # when you set need_version to no, make sure it does not cause -set_version
10476 # flags to be left without arguments
10477 need_version=unknown
10481 version_type=linux # correct to gnu/linux during the next big refactor
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10483 shlibpath_var=LIBPATH
10485 # AIX 3 has no versioning support, so we append a major version to the name.
10486 soname_spec='${libname}${release}${shared_ext}$major'
10490 version_type=linux # correct to gnu/linux during the next big refactor
10493 hardcode_into_libs=yes
10494 if test "$host_cpu" = ia64; then
10495 # AIX 5 supports IA64
10496 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10497 shlibpath_var=LD_LIBRARY_PATH
10499 # With GCC up to 2.95.x, collect2 would create an import file
10500 # for dependence libraries. The import file would start with
10501 # the line `#! .'. This would cause the generated library to
10502 # depend on `.', always an invalid library. This was fixed in
10503 # development snapshots of GCC prior to 3.0.
10505 aix4 | aix4.[01] | aix4.[01].*)
10506 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10508 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10511 can_build_shared=no
10515 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10516 # soname into executable. Probably we can add versioning support to
10517 # collect2, so additional links can be useful in future.
10518 if test "$aix_use_runtimelinking" = yes; then
10519 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10520 # instead of lib<name>.a to let people know that these are not
10521 # typical AIX shared libraries.
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10524 # We preserve .a as extension for shared libraries through AIX4.2
10525 # and later when we are not doing run time linking.
10526 library_names_spec='${libname}${release}.a $libname.a'
10527 soname_spec='${libname}${release}${shared_ext}$major'
10529 shlibpath_var=LIBPATH
10536 # Since July 2007 AmigaOS4 officially supports .so libraries.
10537 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541 library_names_spec='$libname.ixlibrary $libname.a'
10542 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10543 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'
10549 library_names_spec='${libname}${shared_ext}'
10550 dynamic_linker="$host_os ld.so"
10551 shlibpath_var=LIBRARY_PATH
10555 version_type=linux # correct to gnu/linux during the next big refactor
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10562 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10563 # the default ld.so.conf also contains /usr/contrib/lib and
10564 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10565 # libtool to hard-code these into programs
10568 cygwin* | mingw* | pw32* | cegcc*)
10569 version_type=windows
10574 case $GCC,$cc_basename in
10577 library_names_spec='$libname.dll.a'
10578 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10579 postinstall_cmds='base_file=`basename \${file}`~
10580 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10581 dldir=$destdir/`dirname \$dlpath`~
10582 test -d \$dldir || mkdir -p \$dldir~
10583 $install_prog $dir/$dlname \$dldir/$dlname~
10584 chmod a+x \$dldir/$dlname~
10585 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10586 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10588 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10589 dlpath=$dir/\$dldll~
10591 shlibpath_overrides_runpath=yes
10595 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10596 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10598 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10601 # MinGW DLLs use traditional 'lib' prefix
10602 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10605 # pw32 DLLs use 'pw' prefix rather than 'lib'
10606 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10609 dynamic_linker='Win32 ld.exe'
10614 libname_spec='$name'
10615 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10616 library_names_spec='${libname}.dll.lib'
10620 sys_lib_search_path_spec=
10623 for lt_path in $LIB
10626 # Let DOS variable expansion print the short 8.3 style file name.
10627 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10628 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10631 # Convert to MSYS style.
10632 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10635 # Convert to unix form, then to dos form, then back to unix form
10636 # but this time dos style (no spaces!) so that the unix form looks
10637 # like /cygdrive/c/PROGRA~1:/cygdr...
10638 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10639 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10640 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10643 sys_lib_search_path_spec="$LIB"
10644 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10645 # It is most probably a Windows format PATH.
10646 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10648 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10650 # FIXME: find the short name or the path components, as spaces are
10651 # common. (e.g. "Program Files" -> "PROGRA~1")
10655 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10656 postinstall_cmds='base_file=`basename \${file}`~
10657 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10658 dldir=$destdir/`dirname \$dlpath`~
10659 test -d \$dldir || mkdir -p \$dldir~
10660 $install_prog $dir/$dlname \$dldir/$dlname'
10661 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10662 dlpath=$dir/\$dldll~
10664 shlibpath_overrides_runpath=yes
10665 dynamic_linker='Win32 link.exe'
10669 # Assume MSVC wrapper
10670 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10671 dynamic_linker='Win32 ld.exe'
10674 # FIXME: first we should search . and the directory the executable is in
10678 darwin* | rhapsody*)
10679 dynamic_linker="$host_os dyld"
10680 version_type=darwin
10683 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10684 soname_spec='${libname}${release}${major}$shared_ext'
10685 shlibpath_overrides_runpath=yes
10686 shlibpath_var=DYLD_LIBRARY_PATH
10687 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10689 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10690 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10694 version_type=linux # correct to gnu/linux during the next big refactor
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10698 soname_spec='${libname}${release}${shared_ext}$major'
10699 shlibpath_var=LD_LIBRARY_PATH
10702 freebsd* | dragonfly*)
10703 # DragonFly does not have aout. When/if they implement a new
10704 # versioning mechanism, adjust this.
10705 if test -x /usr/bin/objformat; then
10706 objformat=`/usr/bin/objformat`
10709 freebsd[23].*) objformat=aout ;;
10710 *) objformat=elf ;;
10713 version_type=freebsd-$objformat
10714 case $version_type in
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10721 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10725 shlibpath_var=LD_LIBRARY_PATH
10728 shlibpath_overrides_runpath=yes
10730 freebsd3.[01]* | freebsdelf3.[01]*)
10731 shlibpath_overrides_runpath=yes
10732 hardcode_into_libs=yes
10734 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10735 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10736 shlibpath_overrides_runpath=no
10737 hardcode_into_libs=yes
10739 *) # from 4.6 on, and DragonFly
10740 shlibpath_overrides_runpath=yes
10741 hardcode_into_libs=yes
10747 version_type=linux # correct to gnu/linux during the next big refactor
10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10751 soname_spec='${libname}${release}${shared_ext}$major'
10752 shlibpath_var=LD_LIBRARY_PATH
10753 shlibpath_overrides_runpath=no
10754 hardcode_into_libs=yes
10758 version_type=linux # correct to gnu/linux during the next big refactor
10761 dynamic_linker="$host_os runtime_loader"
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10763 soname_spec='${libname}${release}${shared_ext}$major'
10764 shlibpath_var=LIBRARY_PATH
10765 shlibpath_overrides_runpath=yes
10766 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10767 hardcode_into_libs=yes
10770 hpux9* | hpux10* | hpux11*)
10771 # Give a soname corresponding to the major version so that dld.sl refuses to
10772 # link against other versions.
10779 hardcode_into_libs=yes
10780 dynamic_linker="$host_os dld.so"
10781 shlibpath_var=LD_LIBRARY_PATH
10782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10784 soname_spec='${libname}${release}${shared_ext}$major'
10785 if test "X$HPUX_IA64_MODE" = X32; then
10786 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10788 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10794 hardcode_into_libs=yes
10795 dynamic_linker="$host_os dld.sl"
10796 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10799 soname_spec='${libname}${release}${shared_ext}$major'
10800 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10805 dynamic_linker="$host_os dld.sl"
10806 shlibpath_var=SHLIB_PATH
10807 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10809 soname_spec='${libname}${release}${shared_ext}$major'
10812 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10813 postinstall_cmds='chmod 555 $lib'
10814 # or fails outright, so override atomically:
10815 install_override_mode=555
10819 version_type=linux # correct to gnu/linux during the next big refactor
10822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10823 soname_spec='${libname}${release}${shared_ext}$major'
10824 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10825 shlibpath_var=LD_LIBRARY_PATH
10826 shlibpath_overrides_runpath=no
10827 hardcode_into_libs=yes
10830 irix5* | irix6* | nonstopux*)
10832 nonstopux*) version_type=nonstopux ;;
10834 if test "$lt_cv_prog_gnu_ld" = yes; then
10835 version_type=linux # correct to gnu/linux during the next big refactor
10842 soname_spec='${libname}${release}${shared_ext}$major'
10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10845 irix5* | nonstopux*)
10846 libsuff= shlibsuff=
10849 case $LD in # libtool.m4 will add one of these switches to LD
10850 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10851 libsuff= shlibsuff= libmagic=32-bit;;
10852 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10853 libsuff=32 shlibsuff=N32 libmagic=N32;;
10854 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10855 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10856 *) libsuff= shlibsuff= libmagic=never-match;;
10860 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10861 shlibpath_overrides_runpath=no
10862 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10863 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10864 hardcode_into_libs=yes
10867 # No shared lib support for Linux oldld, aout, or coff.
10868 linux*oldld* | linux*aout* | linux*coff*)
10872 # This must be glibc/ELF.
10873 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10874 version_type=linux # correct to gnu/linux during the next big refactor
10877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10878 soname_spec='${libname}${release}${shared_ext}$major'
10879 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10880 shlibpath_var=LD_LIBRARY_PATH
10881 shlibpath_overrides_runpath=no
10883 # Some binutils ld are patched to set DT_RUNPATH
10884 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10885 $as_echo_n "(cached) " >&6
10887 lt_cv_shlibpath_overrides_runpath=no
10888 save_LDFLAGS=$LDFLAGS
10889 save_libdir=$libdir
10890 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10891 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10903 if ac_fn_c_try_link "$LINENO"; then :
10904 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10905 lt_cv_shlibpath_overrides_runpath=yes
10908 rm -f core conftest.err conftest.$ac_objext \
10909 conftest$ac_exeext conftest.$ac_ext
10910 LDFLAGS=$save_LDFLAGS
10911 libdir=$save_libdir
10915 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10917 # This implies no fast_install, which is unacceptable.
10918 # Some rework will be needed to allow for fast_install
10919 # before this can be enabled.
10920 hardcode_into_libs=yes
10922 # Append ld.so.conf contents to the search path
10923 if test -f /etc/ld.so.conf; then
10924 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' ' '`
10925 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10928 # We used to test for /lib/ld.so.1 and disable shared libraries on
10929 # powerpc, because MkLinux only supported shared libraries with the
10930 # GNU dynamic linker. Since this was broken with cross compilers,
10931 # most powerpc-linux boxes support dynamic linking these days and
10932 # people can always --disable-shared, the test was removed, and we
10933 # assume the GNU/Linux dynamic linker is in use.
10934 dynamic_linker='GNU/Linux ld.so'
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'
10943 shlibpath_var=LD_LIBRARY_PATH
10944 shlibpath_overrides_runpath=no
10945 hardcode_into_libs=yes
10946 dynamic_linker='NetBSD ld.elf_so'
10953 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10956 dynamic_linker='NetBSD (a.out) ld.so'
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10959 soname_spec='${libname}${release}${shared_ext}$major'
10960 dynamic_linker='NetBSD ld.elf_so'
10962 shlibpath_var=LD_LIBRARY_PATH
10963 shlibpath_overrides_runpath=yes
10964 hardcode_into_libs=yes
10968 version_type=linux # correct to gnu/linux during the next big refactor
10969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10970 shlibpath_var=LD_LIBRARY_PATH
10971 shlibpath_overrides_runpath=yes
10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10979 soname_spec='${libname}${release}${shared_ext}$major'
10980 shlibpath_var=LD_LIBRARY_PATH
10981 shlibpath_overrides_runpath=no
10982 hardcode_into_libs=yes
10983 dynamic_linker='ldqnx.so'
10988 sys_lib_dlsearch_path_spec="/usr/lib"
10990 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10992 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10993 *) need_version=no ;;
10995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10997 shlibpath_var=LD_LIBRARY_PATH
10998 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11000 openbsd2.[89] | openbsd2.[89].*)
11001 shlibpath_overrides_runpath=no
11004 shlibpath_overrides_runpath=yes
11008 shlibpath_overrides_runpath=yes
11013 libname_spec='$name'
11016 library_names_spec='$libname${shared_ext} $libname.a'
11017 dynamic_linker='OS/2 ld.exe'
11018 shlibpath_var=LIBPATH
11021 osf3* | osf4* | osf5*)
11025 soname_spec='${libname}${release}${shared_ext}$major'
11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11027 shlibpath_var=LD_LIBRARY_PATH
11028 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11029 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11037 version_type=linux # correct to gnu/linux during the next big refactor
11040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11041 soname_spec='${libname}${release}${shared_ext}$major'
11042 shlibpath_var=LD_LIBRARY_PATH
11043 shlibpath_overrides_runpath=yes
11044 hardcode_into_libs=yes
11045 # ldd complains unless libraries are executable
11046 postinstall_cmds='chmod +x $lib'
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11053 shlibpath_var=LD_LIBRARY_PATH
11054 shlibpath_overrides_runpath=yes
11055 if test "$with_gnu_ld" = yes; then
11062 version_type=linux # correct to gnu/linux during the next big refactor
11063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11064 soname_spec='${libname}${release}${shared_ext}$major'
11065 shlibpath_var=LD_LIBRARY_PATH
11066 case $host_vendor in
11068 shlibpath_overrides_runpath=no
11070 runpath_var=LD_RUN_PATH
11078 shlibpath_overrides_runpath=no
11079 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11085 if test -d /usr/nec ;then
11086 version_type=linux # correct to gnu/linux during the next big refactor
11087 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11088 soname_spec='$libname${shared_ext}.$major'
11089 shlibpath_var=LD_LIBRARY_PATH
11093 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11094 version_type=freebsd-elf
11097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11098 soname_spec='${libname}${release}${shared_ext}$major'
11099 shlibpath_var=LD_LIBRARY_PATH
11100 shlibpath_overrides_runpath=yes
11101 hardcode_into_libs=yes
11102 if test "$with_gnu_ld" = yes; then
11103 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11105 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11108 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11112 sys_lib_dlsearch_path_spec='/usr/lib'
11116 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11117 version_type=linux # correct to gnu/linux during the next big refactor
11120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11121 shlibpath_var=LD_LIBRARY_PATH
11122 shlibpath_overrides_runpath=no
11123 hardcode_into_libs=yes
11127 version_type=linux # correct to gnu/linux during the next big refactor
11128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11129 soname_spec='${libname}${release}${shared_ext}$major'
11130 shlibpath_var=LD_LIBRARY_PATH
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11138 $as_echo "$dynamic_linker" >&6; }
11139 test "$dynamic_linker" = no && can_build_shared=no
11141 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11142 if test "$GCC" = yes; then
11143 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11146 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11147 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11149 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11150 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11245 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11247 if test -n "$hardcode_libdir_flag_spec" ||
11248 test -n "$runpath_var" ||
11249 test "X$hardcode_automatic" = "Xyes" ; then
11251 # We can hardcode non-existent directories.
11252 if test "$hardcode_direct" != no &&
11253 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11254 # have to relink, otherwise we might link with an installed library
11255 # when we should be linking with a yet-to-be-installed one
11256 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11257 test "$hardcode_minus_L" != no; then
11258 # Linking always hardcodes the temporary library directory.
11259 hardcode_action=relink
11261 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11262 hardcode_action=immediate
11265 # We cannot hardcode anything, or else we can only hardcode existing
11267 hardcode_action=unsupported
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11270 $as_echo "$hardcode_action" >&6; }
11272 if test "$hardcode_action" = relink ||
11273 test "$inherit_rpath" = yes; then
11274 # Fast installation is not supported
11275 enable_fast_install=no
11276 elif test "$shlibpath_overrides_runpath" = yes ||
11277 test "$enable_shared" = no; then
11278 # Fast installation is not necessary
11279 enable_fast_install=needless
11287 if test "x$enable_dlopen" != xyes; then
11288 enable_dlopen=unknown
11289 enable_dlopen_self=unknown
11290 enable_dlopen_self_static=unknown
11297 lt_cv_dlopen="load_add_on"
11299 lt_cv_dlopen_self=yes
11302 mingw* | pw32* | cegcc*)
11303 lt_cv_dlopen="LoadLibrary"
11308 lt_cv_dlopen="dlopen"
11313 # if libdl is installed we need to link against it
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11315 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11316 if ${ac_cv_lib_dl_dlopen+:} false; then :
11317 $as_echo_n "(cached) " >&6
11319 ac_check_lib_save_LIBS=$LIBS
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11324 /* Override any GCC internal prototype to avoid an error.
11325 Use char because int might match the return type of a GCC
11326 builtin and then its argument prototype would still apply. */
11339 if ac_fn_c_try_link "$LINENO"; then :
11340 ac_cv_lib_dl_dlopen=yes
11342 ac_cv_lib_dl_dlopen=no
11344 rm -f core conftest.err conftest.$ac_objext \
11345 conftest$ac_exeext conftest.$ac_ext
11346 LIBS=$ac_check_lib_save_LIBS
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11349 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11350 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11351 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11354 lt_cv_dlopen="dyld"
11356 lt_cv_dlopen_self=yes
11363 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11364 if test "x$ac_cv_func_shl_load" = xyes; then :
11365 lt_cv_dlopen="shl_load"
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11368 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11369 if ${ac_cv_lib_dld_shl_load+:} false; then :
11370 $as_echo_n "(cached) " >&6
11372 ac_check_lib_save_LIBS=$LIBS
11374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375 /* end confdefs.h. */
11377 /* Override any GCC internal prototype to avoid an error.
11378 Use char because int might match the return type of a GCC
11379 builtin and then its argument prototype would still apply. */
11387 return shl_load ();
11392 if ac_fn_c_try_link "$LINENO"; then :
11393 ac_cv_lib_dld_shl_load=yes
11395 ac_cv_lib_dld_shl_load=no
11397 rm -f core conftest.err conftest.$ac_objext \
11398 conftest$ac_exeext conftest.$ac_ext
11399 LIBS=$ac_check_lib_save_LIBS
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11402 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11403 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11404 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11406 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11407 if test "x$ac_cv_func_dlopen" = xyes; then :
11408 lt_cv_dlopen="dlopen"
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11411 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11412 if ${ac_cv_lib_dl_dlopen+:} false; then :
11413 $as_echo_n "(cached) " >&6
11415 ac_check_lib_save_LIBS=$LIBS
11417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11418 /* end confdefs.h. */
11420 /* Override any GCC internal prototype to avoid an error.
11421 Use char because int might match the return type of a GCC
11422 builtin and then its argument prototype would still apply. */
11435 if ac_fn_c_try_link "$LINENO"; then :
11436 ac_cv_lib_dl_dlopen=yes
11438 ac_cv_lib_dl_dlopen=no
11440 rm -f core conftest.err conftest.$ac_objext \
11441 conftest$ac_exeext conftest.$ac_ext
11442 LIBS=$ac_check_lib_save_LIBS
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11445 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11446 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11447 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11450 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11451 if ${ac_cv_lib_svld_dlopen+:} false; then :
11452 $as_echo_n "(cached) " >&6
11454 ac_check_lib_save_LIBS=$LIBS
11455 LIBS="-lsvld $LIBS"
11456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11457 /* end confdefs.h. */
11459 /* Override any GCC internal prototype to avoid an error.
11460 Use char because int might match the return type of a GCC
11461 builtin and then its argument prototype would still apply. */
11474 if ac_fn_c_try_link "$LINENO"; then :
11475 ac_cv_lib_svld_dlopen=yes
11477 ac_cv_lib_svld_dlopen=no
11479 rm -f core conftest.err conftest.$ac_objext \
11480 conftest$ac_exeext conftest.$ac_ext
11481 LIBS=$ac_check_lib_save_LIBS
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11484 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11485 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11486 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11489 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11490 if ${ac_cv_lib_dld_dld_link+:} false; then :
11491 $as_echo_n "(cached) " >&6
11493 ac_check_lib_save_LIBS=$LIBS
11495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496 /* end confdefs.h. */
11498 /* Override any GCC internal prototype to avoid an error.
11499 Use char because int might match the return type of a GCC
11500 builtin and then its argument prototype would still apply. */
11508 return dld_link ();
11513 if ac_fn_c_try_link "$LINENO"; then :
11514 ac_cv_lib_dld_dld_link=yes
11516 ac_cv_lib_dld_dld_link=no
11518 rm -f core conftest.err conftest.$ac_objext \
11519 conftest$ac_exeext conftest.$ac_ext
11520 LIBS=$ac_check_lib_save_LIBS
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11523 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11524 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11525 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11546 if test "x$lt_cv_dlopen" != xno; then
11552 case $lt_cv_dlopen in
11554 save_CPPFLAGS="$CPPFLAGS"
11555 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11557 save_LDFLAGS="$LDFLAGS"
11558 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11561 LIBS="$lt_cv_dlopen_libs $LIBS"
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11564 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11565 if ${lt_cv_dlopen_self+:} false; then :
11566 $as_echo_n "(cached) " >&6
11568 if test "$cross_compiling" = yes; then :
11569 lt_cv_dlopen_self=cross
11571 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11572 lt_status=$lt_dlunknown
11573 cat > conftest.$ac_ext <<_LT_EOF
11574 #line $LINENO "configure"
11575 #include "confdefs.h"
11584 # define LT_DLGLOBAL RTLD_GLOBAL
11587 # define LT_DLGLOBAL DL_GLOBAL
11589 # define LT_DLGLOBAL 0
11593 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11594 find out it does not work in some platform. */
11595 #ifndef LT_DLLAZY_OR_NOW
11597 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11600 # define LT_DLLAZY_OR_NOW DL_LAZY
11603 # define LT_DLLAZY_OR_NOW RTLD_NOW
11606 # define LT_DLLAZY_OR_NOW DL_NOW
11608 # define LT_DLLAZY_OR_NOW 0
11615 /* When -fvisbility=hidden is used, assume the code has been annotated
11616 correspondingly for the symbols needed. */
11617 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11618 int fnord () __attribute__((visibility("default")));
11621 int fnord () { return 42; }
11624 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11625 int status = $lt_dlunknown;
11629 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11632 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11633 else puts (dlerror ());
11635 /* dlclose (self); */
11643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11644 (eval $ac_link) 2>&5
11646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11647 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11648 (./conftest; exit; ) >&5 2>/dev/null
11650 case x$lt_status in
11651 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11652 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11653 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11656 # compilation failed
11657 lt_cv_dlopen_self=no
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11665 $as_echo "$lt_cv_dlopen_self" >&6; }
11667 if test "x$lt_cv_dlopen_self" = xyes; then
11668 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11670 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11671 if ${lt_cv_dlopen_self_static+:} false; then :
11672 $as_echo_n "(cached) " >&6
11674 if test "$cross_compiling" = yes; then :
11675 lt_cv_dlopen_self_static=cross
11677 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11678 lt_status=$lt_dlunknown
11679 cat > conftest.$ac_ext <<_LT_EOF
11680 #line $LINENO "configure"
11681 #include "confdefs.h"
11690 # define LT_DLGLOBAL RTLD_GLOBAL
11693 # define LT_DLGLOBAL DL_GLOBAL
11695 # define LT_DLGLOBAL 0
11699 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11700 find out it does not work in some platform. */
11701 #ifndef LT_DLLAZY_OR_NOW
11703 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11706 # define LT_DLLAZY_OR_NOW DL_LAZY
11709 # define LT_DLLAZY_OR_NOW RTLD_NOW
11712 # define LT_DLLAZY_OR_NOW DL_NOW
11714 # define LT_DLLAZY_OR_NOW 0
11721 /* When -fvisbility=hidden is used, assume the code has been annotated
11722 correspondingly for the symbols needed. */
11723 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11724 int fnord () __attribute__((visibility("default")));
11727 int fnord () { return 42; }
11730 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11731 int status = $lt_dlunknown;
11735 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11738 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11739 else puts (dlerror ());
11741 /* dlclose (self); */
11749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11750 (eval $ac_link) 2>&5
11752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11753 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11754 (./conftest; exit; ) >&5 2>/dev/null
11756 case x$lt_status in
11757 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11758 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11759 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11762 # compilation failed
11763 lt_cv_dlopen_self_static=no
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11771 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11774 CPPFLAGS="$save_CPPFLAGS"
11775 LDFLAGS="$save_LDFLAGS"
11780 case $lt_cv_dlopen_self in
11781 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11782 *) enable_dlopen_self=unknown ;;
11785 case $lt_cv_dlopen_self_static in
11786 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11787 *) enable_dlopen_self_static=unknown ;;
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11810 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11811 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11812 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11813 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11815 $as_echo "yes" >&6; }
11817 # FIXME - insert some real tests, host_os isn't really good enough
11820 if test -n "$STRIP" ; then
11821 striplib="$STRIP -x"
11822 old_striplib="$STRIP -S"
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11824 $as_echo "yes" >&6; }
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827 $as_echo "no" >&6; }
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11832 $as_echo "no" >&6; }
11848 # Report which library types will actually be built
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11850 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11852 $as_echo "$can_build_shared" >&6; }
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11855 $as_echo_n "checking whether to build shared libraries... " >&6; }
11856 test "$can_build_shared" = "no" && enable_shared=no
11858 # On AIX, shared libraries and static libraries use the same namespace, and
11859 # are all built from PIC.
11862 test "$enable_shared" = yes && enable_static=no
11863 if test -n "$RANLIB"; then
11864 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11865 postinstall_cmds='$RANLIB $lib'
11870 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11871 test "$enable_shared" = yes && enable_static=no
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11876 $as_echo "$enable_shared" >&6; }
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11879 $as_echo_n "checking whether to build static libraries... " >&6; }
11880 # Make sure either enable_shared or enable_static is yes.
11881 test "$enable_shared" = yes || enable_static=yes
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11883 $as_echo "$enable_static" >&6; }
11890 ac_cpp='$CPP $CPPFLAGS'
11891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11911 ac_config_commands="$ac_config_commands libtool"
11916 # Only expand once:
11922 if test "$enable_libevent_regress" = "yes"; then
11923 BUILD_REGRESS_TRUE=
11924 BUILD_REGRESS_FALSE='#'
11926 BUILD_REGRESS_TRUE='#'
11927 BUILD_REGRESS_FALSE=
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
11932 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
11933 if ${ac_cv_search_inet_ntoa+:} false; then :
11934 $as_echo_n "(cached) " >&6
11936 ac_func_search_save_LIBS=$LIBS
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */
11940 /* Override any GCC internal prototype to avoid an error.
11941 Use char because int might match the return type of a GCC
11942 builtin and then its argument prototype would still apply. */
11950 return inet_ntoa ();
11955 for ac_lib in '' nsl; do
11956 if test -z "$ac_lib"; then
11957 ac_res="none required"
11960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11962 if ac_fn_c_try_link "$LINENO"; then :
11963 ac_cv_search_inet_ntoa=$ac_res
11965 rm -f core conftest.err conftest.$ac_objext \
11967 if ${ac_cv_search_inet_ntoa+:} false; then :
11971 if ${ac_cv_search_inet_ntoa+:} false; then :
11974 ac_cv_search_inet_ntoa=no
11976 rm conftest.$ac_ext
11977 LIBS=$ac_func_search_save_LIBS
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
11980 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
11981 ac_res=$ac_cv_search_inet_ntoa
11982 if test "$ac_res" != no; then :
11983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11988 $as_echo_n "checking for library containing socket... " >&6; }
11989 if ${ac_cv_search_socket+:} false; then :
11990 $as_echo_n "(cached) " >&6
11992 ac_func_search_save_LIBS=$LIBS
11993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994 /* end confdefs.h. */
11996 /* Override any GCC internal prototype to avoid an error.
11997 Use char because int might match the return type of a GCC
11998 builtin and then its argument prototype would still apply. */
12011 for ac_lib in '' socket; do
12012 if test -z "$ac_lib"; then
12013 ac_res="none required"
12016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12018 if ac_fn_c_try_link "$LINENO"; then :
12019 ac_cv_search_socket=$ac_res
12021 rm -f core conftest.err conftest.$ac_objext \
12023 if ${ac_cv_search_socket+:} false; then :
12027 if ${ac_cv_search_socket+:} false; then :
12030 ac_cv_search_socket=no
12032 rm conftest.$ac_ext
12033 LIBS=$ac_func_search_save_LIBS
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12036 $as_echo "$ac_cv_search_socket" >&6; }
12037 ac_res=$ac_cv_search_socket
12038 if test "$ac_res" != no; then :
12039 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12044 $as_echo_n "checking for library containing inet_aton... " >&6; }
12045 if ${ac_cv_search_inet_aton+:} false; then :
12046 $as_echo_n "(cached) " >&6
12048 ac_func_search_save_LIBS=$LIBS
12049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h. */
12052 /* Override any GCC internal prototype to avoid an error.
12053 Use char because int might match the return type of a GCC
12054 builtin and then its argument prototype would still apply. */
12062 return inet_aton ();
12067 for ac_lib in '' resolv; do
12068 if test -z "$ac_lib"; then
12069 ac_res="none required"
12072 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12074 if ac_fn_c_try_link "$LINENO"; then :
12075 ac_cv_search_inet_aton=$ac_res
12077 rm -f core conftest.err conftest.$ac_objext \
12079 if ${ac_cv_search_inet_aton+:} false; then :
12083 if ${ac_cv_search_inet_aton+:} false; then :
12086 ac_cv_search_inet_aton=no
12088 rm conftest.$ac_ext
12089 LIBS=$ac_func_search_save_LIBS
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12092 $as_echo "$ac_cv_search_inet_aton" >&6; }
12093 ac_res=$ac_cv_search_inet_aton
12094 if test "$ac_res" != no; then :
12095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12100 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12101 if ${ac_cv_search_clock_gettime+:} false; then :
12102 $as_echo_n "(cached) " >&6
12104 ac_func_search_save_LIBS=$LIBS
12105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106 /* end confdefs.h. */
12108 /* Override any GCC internal prototype to avoid an error.
12109 Use char because int might match the return type of a GCC
12110 builtin and then its argument prototype would still apply. */
12114 char clock_gettime ();
12118 return clock_gettime ();
12123 for ac_lib in '' rt; do
12124 if test -z "$ac_lib"; then
12125 ac_res="none required"
12128 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12130 if ac_fn_c_try_link "$LINENO"; then :
12131 ac_cv_search_clock_gettime=$ac_res
12133 rm -f core conftest.err conftest.$ac_objext \
12135 if ${ac_cv_search_clock_gettime+:} false; then :
12139 if ${ac_cv_search_clock_gettime+:} false; then :
12142 ac_cv_search_clock_gettime=no
12144 rm conftest.$ac_ext
12145 LIBS=$ac_func_search_save_LIBS
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12148 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12149 ac_res=$ac_cv_search_clock_gettime
12150 if test "$ac_res" != no; then :
12151 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12156 $as_echo_n "checking for library containing sendfile... " >&6; }
12157 if ${ac_cv_search_sendfile+:} false; then :
12158 $as_echo_n "(cached) " >&6
12160 ac_func_search_save_LIBS=$LIBS
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12164 /* Override any GCC internal prototype to avoid an error.
12165 Use char because int might match the return type of a GCC
12166 builtin and then its argument prototype would still apply. */
12174 return sendfile ();
12179 for ac_lib in '' sendfile; do
12180 if test -z "$ac_lib"; then
12181 ac_res="none required"
12184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12186 if ac_fn_c_try_link "$LINENO"; then :
12187 ac_cv_search_sendfile=$ac_res
12189 rm -f core conftest.err conftest.$ac_objext \
12191 if ${ac_cv_search_sendfile+:} false; then :
12195 if ${ac_cv_search_sendfile+:} false; then :
12198 ac_cv_search_sendfile=no
12200 rm conftest.$ac_ext
12201 LIBS=$ac_func_search_save_LIBS
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
12204 $as_echo "$ac_cv_search_sendfile" >&6; }
12205 ac_res=$ac_cv_search_sendfile
12206 if test "$ac_res" != no; then :
12207 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
12213 $as_echo_n "checking for WIN32... " >&6; }
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h. */
12229 if ac_fn_c_try_compile "$LINENO"; then :
12230 bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12231 $as_echo "yes" >&6; }
12233 bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
12239 $as_echo_n "checking for CYGWIN... " >&6; }
12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241 /* end confdefs.h. */
12255 if ac_fn_c_try_compile "$LINENO"; then :
12256 cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12257 $as_echo "yes" >&6; }
12259 cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260 $as_echo "no" >&6; }
12262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12264 for ac_header in zlib.h
12266 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12267 if test "x$ac_cv_header_zlib_h" = xyes; then :
12268 cat >>confdefs.h <<_ACEOF
12269 @%:@define HAVE_ZLIB_H 1
12277 if test "x$ac_cv_header_zlib_h" = "xyes"; then
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
12283 $as_echo_n "checking for library containing inflateEnd... " >&6; }
12284 if ${ac_cv_search_inflateEnd+:} false; then :
12285 $as_echo_n "(cached) " >&6
12287 ac_func_search_save_LIBS=$LIBS
12288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289 /* end confdefs.h. */
12291 /* Override any GCC internal prototype to avoid an error.
12292 Use char because int might match the return type of a GCC
12293 builtin and then its argument prototype would still apply. */
12297 char inflateEnd ();
12301 return inflateEnd ();
12306 for ac_lib in '' z; do
12307 if test -z "$ac_lib"; then
12308 ac_res="none required"
12311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12313 if ac_fn_c_try_link "$LINENO"; then :
12314 ac_cv_search_inflateEnd=$ac_res
12316 rm -f core conftest.err conftest.$ac_objext \
12318 if ${ac_cv_search_inflateEnd+:} false; then :
12322 if ${ac_cv_search_inflateEnd+:} false; then :
12325 ac_cv_search_inflateEnd=no
12327 rm conftest.$ac_ext
12328 LIBS=$ac_func_search_save_LIBS
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
12331 $as_echo "$ac_cv_search_inflateEnd" >&6; }
12332 ac_res=$ac_cv_search_inflateEnd
12333 if test "$ac_res" != no; then :
12334 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12338 $as_echo "@%:@define HAVE_LIBZ 1" >>confdefs.h
12345 if test "$have_zlib" = "yes"; then
12347 ZLIB_REGRESS_FALSE='#'
12349 ZLIB_REGRESS_TRUE='#'
12350 ZLIB_REGRESS_FALSE=
12354 if test "$bwin32" = true; then
12355 EV_LIB_WS32=-lws2_32
12365 for ac_header in openssl/bio.h
12367 ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
12368 if test "x$ac_cv_header_openssl_bio_h" = xyes; then :
12369 cat >>confdefs.h <<_ACEOF
12370 @%:@define HAVE_OPENSSL_BIO_H 1
12378 if test "$enable_openssl" = "yes"; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12384 $as_echo_n "checking for library containing SSL_new... " >&6; }
12385 if ${ac_cv_search_SSL_new+:} false; then :
12386 $as_echo_n "(cached) " >&6
12388 ac_func_search_save_LIBS=$LIBS
12389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h. */
12392 /* Override any GCC internal prototype to avoid an error.
12393 Use char because int might match the return type of a GCC
12394 builtin and then its argument prototype would still apply. */
12407 for ac_lib in '' ssl; do
12408 if test -z "$ac_lib"; then
12409 ac_res="none required"
12412 LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
12414 if ac_fn_c_try_link "$LINENO"; then :
12415 ac_cv_search_SSL_new=$ac_res
12417 rm -f core conftest.err conftest.$ac_objext \
12419 if ${ac_cv_search_SSL_new+:} false; then :
12423 if ${ac_cv_search_SSL_new+:} false; then :
12426 ac_cv_search_SSL_new=no
12428 rm conftest.$ac_ext
12429 LIBS=$ac_func_search_save_LIBS
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12432 $as_echo "$ac_cv_search_SSL_new" >&6; }
12433 ac_res=$ac_cv_search_SSL_new
12434 if test "$ac_res" != no; then :
12435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12437 OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
12439 $as_echo "@%:@define HAVE_OPENSSL 1" >>confdefs.h
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12450 $as_echo_n "checking for ANSI C header files... " >&6; }
12451 if ${ac_cv_header_stdc+:} false; then :
12452 $as_echo_n "(cached) " >&6
12454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12455 /* end confdefs.h. */
12456 #include <stdlib.h>
12457 #include <stdarg.h>
12458 #include <string.h>
12469 if ac_fn_c_try_compile "$LINENO"; then :
12470 ac_cv_header_stdc=yes
12472 ac_cv_header_stdc=no
12474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12476 if test $ac_cv_header_stdc = yes; then
12477 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h. */
12480 #include <string.h>
12483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12484 $EGREP "memchr" >/dev/null 2>&1; then :
12487 ac_cv_header_stdc=no
12493 if test $ac_cv_header_stdc = yes; then
12494 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12497 #include <stdlib.h>
12500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12501 $EGREP "free" >/dev/null 2>&1; then :
12504 ac_cv_header_stdc=no
12510 if test $ac_cv_header_stdc = yes; then
12511 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12512 if test "$cross_compiling" = yes; then :
12515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h. */
12518 #include <stdlib.h>
12519 #if ((' ' & 0x0FF) == 0x020)
12520 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12521 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12523 # define ISLOWER(c) \
12524 (('a' <= (c) && (c) <= 'i') \
12525 || ('j' <= (c) && (c) <= 'r') \
12526 || ('s' <= (c) && (c) <= 'z'))
12527 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12530 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12535 for (i = 0; i < 256; i++)
12536 if (XOR (islower (i), ISLOWER (i))
12537 || toupper (i) != TOUPPER (i))
12542 if ac_fn_c_try_run "$LINENO"; then :
12545 ac_cv_header_stdc=no
12547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12548 conftest.$ac_objext conftest.beam conftest.$ac_ext
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12554 $as_echo "$ac_cv_header_stdc" >&6; }
12555 if test $ac_cv_header_stdc = yes; then
12557 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
12561 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
12563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12564 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12565 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12566 cat >>confdefs.h <<_ACEOF
12567 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12574 for ac_header in sys/sysctl.h
12576 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
12577 #ifdef HAVE_SYS_PARAM_H
12578 #include <sys/param.h>
12582 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
12583 cat >>confdefs.h <<_ACEOF
12584 @%:@define HAVE_SYS_SYSCTL_H 1
12591 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
12593 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12597 #include <sys/queue.h>
12598 #ifdef TAILQ_FOREACH
12603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12604 $EGREP "yes" >/dev/null 2>&1; then :
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12606 $as_echo "yes" >&6; }
12608 $as_echo "@%:@define HAVE_TAILQFOREACH 1" >>confdefs.h
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612 $as_echo "no" >&6; }
12619 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
12621 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
12622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623 /* end confdefs.h. */
12625 #include <sys/time.h>
12631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12632 $EGREP "yes" >/dev/null 2>&1; then :
12634 $as_echo "@%:@define HAVE_TIMERADD 1" >>confdefs.h
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12637 $as_echo "yes" >&6; }
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12640 $as_echo "no" >&6; }
12647 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
12649 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
12650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12651 /* end confdefs.h. */
12653 #include <sys/time.h>
12659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12660 $EGREP "yes" >/dev/null 2>&1; then :
12662 $as_echo "@%:@define HAVE_TIMERCMP 1" >>confdefs.h
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12665 $as_echo "yes" >&6; }
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668 $as_echo "no" >&6; }
12675 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
12677 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12681 #include <sys/time.h>
12687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12688 $EGREP "yes" >/dev/null 2>&1; then :
12690 $as_echo "@%:@define HAVE_TIMERCLEAR 1" >>confdefs.h
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12693 $as_echo "yes" >&6; }
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12696 $as_echo "no" >&6; }
12703 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
12705 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12709 #include <sys/time.h>
12715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12716 $EGREP "yes" >/dev/null 2>&1; then :
12718 $as_echo "@%:@define HAVE_TIMERISSET 1" >>confdefs.h
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12721 $as_echo "yes" >&6; }
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12724 $as_echo "no" >&6; }
12731 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
12732 ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
12733 #include <sys/sysctl.h>
12736 if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
12742 cat >>confdefs.h <<_ACEOF
12743 @%:@define HAVE_DECL_CTL_KERN $ac_have_decl
12745 ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
12746 #include <sys/sysctl.h>
12749 if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
12755 cat >>confdefs.h <<_ACEOF
12756 @%:@define HAVE_DECL_KERN_RANDOM $ac_have_decl
12758 ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
12759 #include <sys/sysctl.h>
12762 if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
12768 cat >>confdefs.h <<_ACEOF
12769 @%:@define HAVE_DECL_RANDOM_UUID $ac_have_decl
12771 ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
12772 #include <sys/sysctl.h>
12775 if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
12781 cat >>confdefs.h <<_ACEOF
12782 @%:@define HAVE_DECL_KERN_ARND $ac_have_decl
12787 if test x$bwin32 = xtrue; then
12789 BUILD_WIN32_FALSE='#'
12791 BUILD_WIN32_TRUE='#'
12795 if test x$cygwin = xtrue; then
12797 BUILD_CYGWIN_FALSE='#'
12799 BUILD_CYGWIN_TRUE='#'
12800 BUILD_CYGWIN_FALSE=
12803 if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
12804 BUILD_WITH_NO_UNDEFINED_TRUE=
12805 BUILD_WITH_NO_UNDEFINED_FALSE='#'
12807 BUILD_WITH_NO_UNDEFINED_TRUE='#'
12808 BUILD_WITH_NO_UNDEFINED_FALSE=
12812 if test x$bwin32 = xtrue; then
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
12814 $as_echo_n "checking for library containing getservbyname... " >&6; }
12815 if ${ac_cv_search_getservbyname+:} false; then :
12816 $as_echo_n "(cached) " >&6
12818 ac_func_search_save_LIBS=$LIBS
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12822 /* Override any GCC internal prototype to avoid an error.
12823 Use char because int might match the return type of a GCC
12824 builtin and then its argument prototype would still apply. */
12828 char getservbyname ();
12832 return getservbyname ();
12837 for ac_lib in '' ws2_32; do
12838 if test -z "$ac_lib"; then
12839 ac_res="none required"
12842 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12844 if ac_fn_c_try_link "$LINENO"; then :
12845 ac_cv_search_getservbyname=$ac_res
12847 rm -f core conftest.err conftest.$ac_objext \
12849 if ${ac_cv_search_getservbyname+:} false; then :
12853 if ${ac_cv_search_getservbyname+:} false; then :
12856 ac_cv_search_getservbyname=no
12858 rm conftest.$ac_ext
12859 LIBS=$ac_func_search_save_LIBS
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
12862 $as_echo "$ac_cv_search_getservbyname" >&6; }
12863 ac_res=$ac_cv_search_getservbyname
12864 if test "$ac_res" != no; then :
12865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12872 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12873 if ${ac_cv_c_const+:} false; then :
12874 $as_echo_n "(cached) " >&6
12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12882 /* FIXME: Include the comments suggested by Paul. */
12883 #ifndef __cplusplus
12884 /* Ultrix mips cc rejects this. */
12885 typedef int charset[2];
12887 /* SunOS 4.1.1 cc rejects this. */
12888 char const *const *pcpcc;
12890 /* NEC SVR4.0.2 mips cc rejects this. */
12891 struct point {int x, y;};
12892 static struct point const zero = {0,0};
12893 /* AIX XL C 1.02.0.0 rejects this.
12894 It does not let you subtract one const X* pointer from another in
12895 an arm of an if-expression whose if-part is not a constant
12897 const char *g = "string";
12898 pcpcc = &g + (g ? g-g : 0);
12899 /* HPUX 7.0 cc rejects these. */
12901 ppc = (char**) pcpcc;
12902 pcpcc = (char const *const *) ppc;
12903 { /* SCO 3.2v4 cc rejects this. */
12905 char const *s = 0 ? (char *) 0 : (char const *) 0;
12910 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12911 int x[] = {25, 17};
12912 const int *foo = &x[0];
12915 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12916 typedef const int *iptr;
12920 { /* AIX XL C 1.02.0.0 rejects this saying
12921 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12922 struct s { int j; const int *ap[3]; };
12923 struct s *b; b->j = 5;
12925 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12926 const int foo = 10;
12927 if (!foo) return 0;
12929 return !cs[0] && !zero.x;
12936 if ac_fn_c_try_compile "$LINENO"; then :
12941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12944 $as_echo "$ac_cv_c_const" >&6; }
12945 if test $ac_cv_c_const = no; then
12947 $as_echo "@%:@define const /**/" >>confdefs.h
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12952 $as_echo_n "checking for inline... " >&6; }
12953 if ${ac_cv_c_inline+:} false; then :
12954 $as_echo_n "(cached) " >&6
12957 for ac_kw in inline __inline__ __inline; do
12958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12959 /* end confdefs.h. */
12960 #ifndef __cplusplus
12962 static $ac_kw foo_t static_foo () {return 0; }
12963 $ac_kw foo_t foo () {return 0; }
12967 if ac_fn_c_try_compile "$LINENO"; then :
12968 ac_cv_c_inline=$ac_kw
12970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12971 test "$ac_cv_c_inline" != no && break
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12976 $as_echo "$ac_cv_c_inline" >&6; }
12978 case $ac_cv_c_inline in
12981 case $ac_cv_c_inline in
12983 *) ac_val=$ac_cv_c_inline;;
12985 cat >>confdefs.h <<_ACEOF
12986 #ifndef __cplusplus
12987 #define inline $ac_val
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12994 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12995 if ${ac_cv_header_time+:} false; then :
12996 $as_echo_n "(cached) " >&6
12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13000 #include <sys/types.h>
13001 #include <sys/time.h>
13007 if ((struct tm *) 0)
13013 if ac_fn_c_try_compile "$LINENO"; then :
13014 ac_cv_header_time=yes
13016 ac_cv_header_time=no
13018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13021 $as_echo "$ac_cv_header_time" >&6; }
13022 if test $ac_cv_header_time = yes; then
13024 $as_echo "@%:@define TIME_WITH_SYS_TIME 1" >>confdefs.h
13029 for ac_func in gettimeofday vasprintf fcntl clock_gettime strtok_r strsep
13031 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13032 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13033 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13034 cat >>confdefs.h <<_ACEOF
13035 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13041 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
13043 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13044 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13045 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13046 cat >>confdefs.h <<_ACEOF
13047 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13055 $as_echo_n "checking for getaddrinfo... " >&6; }
13056 if ${libevent_cv_getaddrinfo+:} false; then :
13057 $as_echo_n "(cached) " >&6
13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060 /* end confdefs.h. */
13062 #ifdef HAVE_NETDB_H
13077 if ac_fn_c_try_link "$LINENO"; then :
13078 libevent_cv_getaddrinfo=yes
13080 libevent_cv_getaddrinfo=no
13083 rm -f core conftest.err conftest.$ac_objext \
13084 conftest$ac_exeext conftest.$ac_ext
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
13088 $as_echo "$libevent_cv_getaddrinfo" >&6; }
13089 if test "$libevent_cv_getaddrinfo" = "yes" ; then
13091 $as_echo "@%:@define HAVE_GETADDRINFO 1" >>confdefs.h
13095 for ac_func in getservbyname
13097 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
13098 if test "x$ac_cv_func_getservbyname" = xyes; then :
13099 cat >>confdefs.h <<_ACEOF
13100 @%:@define HAVE_GETSERVBYNAME 1
13106 # Check for gethostbyname_r in all its glorious incompatible versions.
13107 # (This is cut-and-pasted from Tor, which based its logic on
13108 # Python's configure.in.)
13111 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13112 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
13115 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
13117 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h. */
13128 struct hostent *h1, *h2;
13130 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13136 if ac_fn_c_try_compile "$LINENO"; then :
13138 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13141 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
13144 $as_echo "6" >&6; }
13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149 /* end confdefs.h. */
13158 struct hostent *h1;
13160 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13166 if ac_fn_c_try_compile "$LINENO"; then :
13168 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13171 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
13174 $as_echo "5" >&6; }
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13188 struct hostent *h1;
13189 struct hostent_data hd;
13190 (void) gethostbyname_r(cp1,h1,&hd);
13196 if ac_fn_c_try_compile "$LINENO"; then :
13198 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13201 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
13204 $as_echo "3" >&6; }
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
13209 $as_echo "0" >&6; }
13212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13226 # The cast to long int works around a bug in the HP C Compiler
13227 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13228 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13229 # This bug is HP SR number 8606223364.
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13231 $as_echo_n "checking size of long... " >&6; }
13232 if ${ac_cv_sizeof_long+:} false; then :
13233 $as_echo_n "(cached) " >&6
13235 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13238 if test "$ac_cv_type_long" = yes; then
13239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13241 as_fn_error 77 "cannot compute sizeof (long)
13242 See \`config.log' for more details" "$LINENO" 5; }
13244 ac_cv_sizeof_long=0
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13250 $as_echo "$ac_cv_sizeof_long" >&6; }
13254 cat >>confdefs.h <<_ACEOF
13255 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
13261 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h. */
13265 #define _GNU_SOURCE
13272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13273 $EGREP "yes" >/dev/null 2>&1; then :
13275 $as_echo "@%:@define HAVE_SETFD 1" >>confdefs.h
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13278 $as_echo "yes" >&6; }
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13281 $as_echo "no" >&6; }
13288 if test x$bwin32 != xtrue; then
13289 for ac_func in select
13291 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
13292 if test "x$ac_cv_func_select" = xyes; then :
13293 cat >>confdefs.h <<_ACEOF
13294 @%:@define HAVE_SELECT 1
13300 if test "x$haveselect" = "xyes" ; then
13304 if test "x$haveselect" = "xyes"; then
13305 SELECT_BACKEND_TRUE=
13306 SELECT_BACKEND_FALSE='#'
13308 SELECT_BACKEND_TRUE='#'
13309 SELECT_BACKEND_FALSE=
13314 for ac_func in poll
13316 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
13317 if test "x$ac_cv_func_poll" = xyes; then :
13318 cat >>confdefs.h <<_ACEOF
13319 @%:@define HAVE_POLL 1
13325 if test "x$havepoll" = "xyes" ; then
13328 if test "x$havepoll" = "xyes"; then
13330 POLL_BACKEND_FALSE='#'
13332 POLL_BACKEND_TRUE='#'
13333 POLL_BACKEND_FALSE=
13338 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13340 $as_echo "@%:@define HAVE_DEVPOLL 1" >>confdefs.h
13343 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13344 DEVPOLL_BACKEND_TRUE=
13345 DEVPOLL_BACKEND_FALSE='#'
13347 DEVPOLL_BACKEND_TRUE='#'
13348 DEVPOLL_BACKEND_FALSE=
13353 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
13354 for ac_func in kqueue
13356 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13357 if test "x$ac_cv_func_kqueue" = xyes; then :
13358 cat >>confdefs.h <<_ACEOF
13359 @%:@define HAVE_KQUEUE 1
13365 if test "x$havekqueue" = "xyes" ; then
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
13367 $as_echo_n "checking for working kqueue... " >&6; }
13368 if test "$cross_compiling" = yes; then :
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370 $as_echo "no" >&6; }
13372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373 /* end confdefs.h. */
13374 #include <sys/types.h>
13375 #include <sys/time.h>
13376 #include <sys/event.h>
13378 #include <unistd.h>
13382 main(int argc, char **argv)
13388 struct timespec ts;
13391 if (pipe(fd) == -1)
13393 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
13396 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
13399 if ((kq = kqueue()) == -1)
13402 memset(&ev, 0, sizeof(ev));
13404 ev.filter = EVFILT_WRITE;
13405 ev.flags = EV_ADD | EV_ENABLE;
13406 n = kevent(kq, &ev, 1, NULL, 0, NULL);
13410 read(fd[0], buf, sizeof(buf));
13414 n = kevent(kq, NULL, 0, &ev, 1, &ts);
13415 if (n == -1 || n == 0)
13421 if ac_fn_c_try_run "$LINENO"; then :
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13423 $as_echo "yes" >&6; }
13425 $as_echo "@%:@define HAVE_WORKING_KQUEUE 1" >>confdefs.h
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13431 $as_echo "no" >&6; }
13433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13434 conftest.$ac_objext conftest.beam conftest.$ac_ext
13439 if test "x$havekqueue" = "xyes"; then
13440 KQUEUE_BACKEND_TRUE=
13441 KQUEUE_BACKEND_FALSE='#'
13443 KQUEUE_BACKEND_TRUE='#'
13444 KQUEUE_BACKEND_FALSE=
13448 haveepollsyscall=no
13450 for ac_func in epoll_ctl
13452 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
13453 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
13454 cat >>confdefs.h <<_ACEOF
13455 @%:@define HAVE_EPOLL_CTL 1
13461 if test "x$haveepoll" = "xyes" ; then
13463 $as_echo "@%:@define HAVE_EPOLL 1" >>confdefs.h
13467 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
13468 if test "x$haveepoll" = "xno" ; then
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
13470 $as_echo_n "checking for epoll system call... " >&6; }
13471 if test "$cross_compiling" = yes; then :
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13473 $as_echo "no" >&6; }
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13477 #include <stdint.h>
13478 #include <sys/param.h>
13479 #include <sys/types.h>
13480 #include <sys/syscall.h>
13481 #include <sys/epoll.h>
13482 #include <unistd.h>
13485 epoll_create(int size)
13487 return (syscall(__NR_epoll_create, size));
13491 main(int argc, char **argv)
13495 epfd = epoll_create(256);
13496 exit (epfd == -1 ? 1 : 0);
13499 if ac_fn_c_try_run "$LINENO"; then :
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13501 $as_echo "yes" >&6; }
13503 $as_echo "@%:@define HAVE_EPOLL 1" >>confdefs.h
13507 case " $LIB@&t@OBJS " in
13508 *" epoll_sub.$ac_objext "* ) ;;
13509 *) LIB@&t@OBJS="$LIB@&t@OBJS epoll_sub.$ac_objext"
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13516 $as_echo "no" >&6; }
13518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13519 conftest.$ac_objext conftest.beam conftest.$ac_ext
13524 if test "x$haveepoll" = "xyes"; then
13525 EPOLL_BACKEND_TRUE=
13526 EPOLL_BACKEND_FALSE='#'
13528 EPOLL_BACKEND_TRUE='#'
13529 EPOLL_BACKEND_FALSE=
13534 for ac_func in port_create
13536 ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
13537 if test "x$ac_cv_func_port_create" = xyes; then :
13538 cat >>confdefs.h <<_ACEOF
13539 @%:@define HAVE_PORT_CREATE 1
13545 if test "x$haveeventports" = "xyes" ; then
13547 $as_echo "@%:@define HAVE_EVENT_PORTS 1" >>confdefs.h
13551 if test "x$haveeventports" = "xyes"; then
13552 EVPORT_BACKEND_TRUE=
13553 EVPORT_BACKEND_FALSE='#'
13555 EVPORT_BACKEND_TRUE='#'
13556 EVPORT_BACKEND_FALSE=
13560 if test "x$bwin32" = "xtrue"; then
13564 if test "x$needsignal" = "xyes"; then
13565 SIGNAL_SUPPORT_TRUE=
13566 SIGNAL_SUPPORT_FALSE='#'
13568 SIGNAL_SUPPORT_TRUE='#'
13569 SIGNAL_SUPPORT_FALSE=
13573 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13574 if test "x$ac_cv_type_pid_t" = xyes; then :
13578 cat >>confdefs.h <<_ACEOF
13579 @%:@define pid_t int
13584 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13585 if test "x$ac_cv_type_size_t" = xyes; then :
13589 cat >>confdefs.h <<_ACEOF
13590 @%:@define size_t unsigned int
13595 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13596 if test "x$ac_cv_type_ssize_t" = xyes; then :
13600 cat >>confdefs.h <<_ACEOF
13601 @%:@define ssize_t int
13607 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
13608 #include <stdint.h>
13609 #elif defined(HAVE_INTTYPES_H)
13610 #include <inttypes.h>
13612 #ifdef HAVE_SYS_TYPES_H
13613 #include <sys/types.h>
13616 if test "x$ac_cv_type_uint64_t" = xyes; then :
13618 cat >>confdefs.h <<_ACEOF
13619 @%:@define HAVE_UINT64_T 1
13624 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
13625 #include <stdint.h>
13626 #elif defined(HAVE_INTTYPES_H)
13627 #include <inttypes.h>
13629 #ifdef HAVE_SYS_TYPES_H
13630 #include <sys/types.h>
13633 if test "x$ac_cv_type_uint32_t" = xyes; then :
13635 cat >>confdefs.h <<_ACEOF
13636 @%:@define HAVE_UINT32_T 1
13641 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
13642 #include <stdint.h>
13643 #elif defined(HAVE_INTTYPES_H)
13644 #include <inttypes.h>
13646 #ifdef HAVE_SYS_TYPES_H
13647 #include <sys/types.h>
13650 if test "x$ac_cv_type_uint16_t" = xyes; then :
13652 cat >>confdefs.h <<_ACEOF
13653 @%:@define HAVE_UINT16_T 1
13658 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
13659 #include <stdint.h>
13660 #elif defined(HAVE_INTTYPES_H)
13661 #include <inttypes.h>
13663 #ifdef HAVE_SYS_TYPES_H
13664 #include <sys/types.h>
13667 if test "x$ac_cv_type_uint8_t" = xyes; then :
13669 cat >>confdefs.h <<_ACEOF
13670 @%:@define HAVE_UINT8_T 1
13675 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
13676 #include <stdint.h>
13677 #elif defined(HAVE_INTTYPES_H)
13678 #include <inttypes.h>
13680 #ifdef HAVE_SYS_TYPES_H
13681 #include <sys/types.h>
13684 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13686 cat >>confdefs.h <<_ACEOF
13687 @%:@define HAVE_UINTPTR_T 1
13694 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
13695 #include <sys/types.h>
13697 #ifdef HAVE_SYS_SELECT_H
13698 #include <sys/select.h>
13701 if test "x$ac_cv_type_fd_mask" = xyes; then :
13703 cat >>confdefs.h <<_ACEOF
13704 @%:@define HAVE_FD_MASK 1
13711 # The cast to long int works around a bug in the HP C Compiler
13712 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13713 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13714 # This bug is HP SR number 8606223364.
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13716 $as_echo_n "checking size of long long... " >&6; }
13717 if ${ac_cv_sizeof_long_long+:} false; then :
13718 $as_echo_n "(cached) " >&6
13720 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13723 if test "$ac_cv_type_long_long" = yes; then
13724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13726 as_fn_error 77 "cannot compute sizeof (long long)
13727 See \`config.log' for more details" "$LINENO" 5; }
13729 ac_cv_sizeof_long_long=0
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13735 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13739 cat >>confdefs.h <<_ACEOF
13740 @%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13744 # The cast to long int works around a bug in the HP C Compiler
13745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13747 # This bug is HP SR number 8606223364.
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13749 $as_echo_n "checking size of long... " >&6; }
13750 if ${ac_cv_sizeof_long+:} false; then :
13751 $as_echo_n "(cached) " >&6
13753 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13756 if test "$ac_cv_type_long" = yes; then
13757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13759 as_fn_error 77 "cannot compute sizeof (long)
13760 See \`config.log' for more details" "$LINENO" 5; }
13762 ac_cv_sizeof_long=0
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13768 $as_echo "$ac_cv_sizeof_long" >&6; }
13772 cat >>confdefs.h <<_ACEOF
13773 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
13777 # The cast to long int works around a bug in the HP C Compiler
13778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13780 # This bug is HP SR number 8606223364.
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13782 $as_echo_n "checking size of int... " >&6; }
13783 if ${ac_cv_sizeof_int+:} false; then :
13784 $as_echo_n "(cached) " >&6
13786 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13789 if test "$ac_cv_type_int" = yes; then
13790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13792 as_fn_error 77 "cannot compute sizeof (int)
13793 See \`config.log' for more details" "$LINENO" 5; }
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13801 $as_echo "$ac_cv_sizeof_int" >&6; }
13805 cat >>confdefs.h <<_ACEOF
13806 @%:@define SIZEOF_INT $ac_cv_sizeof_int
13810 # The cast to long int works around a bug in the HP C Compiler
13811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13813 # This bug is HP SR number 8606223364.
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13815 $as_echo_n "checking size of short... " >&6; }
13816 if ${ac_cv_sizeof_short+:} false; then :
13817 $as_echo_n "(cached) " >&6
13819 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13822 if test "$ac_cv_type_short" = yes; then
13823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13825 as_fn_error 77 "cannot compute sizeof (short)
13826 See \`config.log' for more details" "$LINENO" 5; }
13828 ac_cv_sizeof_short=0
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13834 $as_echo "$ac_cv_sizeof_short" >&6; }
13838 cat >>confdefs.h <<_ACEOF
13839 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
13843 # The cast to long int works around a bug in the HP C Compiler
13844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13846 # This bug is HP SR number 8606223364.
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13848 $as_echo_n "checking size of size_t... " >&6; }
13849 if ${ac_cv_sizeof_size_t+:} false; then :
13850 $as_echo_n "(cached) " >&6
13852 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
13855 if test "$ac_cv_type_size_t" = yes; then
13856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13858 as_fn_error 77 "cannot compute sizeof (size_t)
13859 See \`config.log' for more details" "$LINENO" 5; }
13861 ac_cv_sizeof_size_t=0
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13867 $as_echo "$ac_cv_sizeof_size_t" >&6; }
13871 cat >>confdefs.h <<_ACEOF
13872 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13876 # The cast to long int works around a bug in the HP C Compiler
13877 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13878 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13879 # This bug is HP SR number 8606223364.
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13881 $as_echo_n "checking size of void *... " >&6; }
13882 if ${ac_cv_sizeof_void_p+:} false; then :
13883 $as_echo_n "(cached) " >&6
13885 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13888 if test "$ac_cv_type_void_p" = yes; then
13889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13891 as_fn_error 77 "cannot compute sizeof (void *)
13892 See \`config.log' for more details" "$LINENO" 5; }
13894 ac_cv_sizeof_void_p=0
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13900 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13904 cat >>confdefs.h <<_ACEOF
13905 @%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13910 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
13911 #include <sys/types.h>
13912 #ifdef HAVE_NETINET_IN_H
13913 #include <netinet/in.h>
13915 #ifdef HAVE_NETINET_IN6_H
13916 #include <netinet/in6.h>
13918 #ifdef HAVE_SYS_SOCKET_H
13919 #include <sys/socket.h>
13921 #ifdef HAVE_NETDB_H
13925 #define WIN32_WINNT 0x400
13926 #define _WIN32_WINNT 0x400
13927 #define WIN32_LEAN_AND_MEAN
13928 #if defined(_MSC_VER) && (_MSC_VER < 1300)
13929 #include <winsock.h>
13931 #include <winsock2.h>
13932 #include <ws2tcpip.h>
13937 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
13939 cat >>confdefs.h <<_ACEOF
13940 @%:@define HAVE_STRUCT_IN6_ADDR 1
13945 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
13946 #include <sys/types.h>
13947 #ifdef HAVE_NETINET_IN_H
13948 #include <netinet/in.h>
13950 #ifdef HAVE_NETINET_IN6_H
13951 #include <netinet/in6.h>
13953 #ifdef HAVE_SYS_SOCKET_H
13954 #include <sys/socket.h>
13956 #ifdef HAVE_NETDB_H
13960 #define WIN32_WINNT 0x400
13961 #define _WIN32_WINNT 0x400
13962 #define WIN32_LEAN_AND_MEAN
13963 #if defined(_MSC_VER) && (_MSC_VER < 1300)
13964 #include <winsock.h>
13966 #include <winsock2.h>
13967 #include <ws2tcpip.h>
13972 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13974 cat >>confdefs.h <<_ACEOF
13975 @%:@define HAVE_STRUCT_SOCKADDR_IN6 1
13980 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
13981 #include <sys/types.h>
13982 #ifdef HAVE_NETINET_IN_H
13983 #include <netinet/in.h>
13985 #ifdef HAVE_NETINET_IN6_H
13986 #include <netinet/in6.h>
13988 #ifdef HAVE_SYS_SOCKET_H
13989 #include <sys/socket.h>
13991 #ifdef HAVE_NETDB_H
13995 #define WIN32_WINNT 0x400
13996 #define _WIN32_WINNT 0x400
13997 #define WIN32_LEAN_AND_MEAN
13998 #if defined(_MSC_VER) && (_MSC_VER < 1300)
13999 #include <winsock.h>
14001 #include <winsock2.h>
14002 #include <ws2tcpip.h>
14007 if test "x$ac_cv_type_sa_family_t" = xyes; then :
14009 cat >>confdefs.h <<_ACEOF
14010 @%:@define HAVE_SA_FAMILY_T 1
14015 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
14016 #include <sys/types.h>
14017 #ifdef HAVE_NETINET_IN_H
14018 #include <netinet/in.h>
14020 #ifdef HAVE_NETINET_IN6_H
14021 #include <netinet/in6.h>
14023 #ifdef HAVE_SYS_SOCKET_H
14024 #include <sys/socket.h>
14026 #ifdef HAVE_NETDB_H
14030 #define WIN32_WINNT 0x400
14031 #define _WIN32_WINNT 0x400
14032 #define WIN32_LEAN_AND_MEAN
14033 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14034 #include <winsock.h>
14036 #include <winsock2.h>
14037 #include <ws2tcpip.h>
14042 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14044 cat >>confdefs.h <<_ACEOF
14045 @%:@define HAVE_STRUCT_ADDRINFO 1
14050 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
14051 #include <sys/types.h>
14052 #ifdef HAVE_NETINET_IN_H
14053 #include <netinet/in.h>
14055 #ifdef HAVE_NETINET_IN6_H
14056 #include <netinet/in6.h>
14058 #ifdef HAVE_SYS_SOCKET_H
14059 #include <sys/socket.h>
14061 #ifdef HAVE_NETDB_H
14065 #define WIN32_WINNT 0x400
14066 #define _WIN32_WINNT 0x400
14067 #define WIN32_LEAN_AND_MEAN
14068 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14069 #include <winsock.h>
14071 #include <winsock2.h>
14072 #include <ws2tcpip.h>
14077 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
14079 cat >>confdefs.h <<_ACEOF
14080 @%:@define HAVE_STRUCT_SOCKADDR_STORAGE 1
14086 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
14087 #ifdef HAVE_NETINET_IN_H
14088 #include <netinet/in.h>
14090 #ifdef HAVE_NETINET_IN6_H
14091 #include <netinet/in6.h>
14093 #ifdef HAVE_SYS_SOCKET_H
14094 #include <sys/socket.h>
14097 #define WIN32_WINNT 0x400
14098 #define _WIN32_WINNT 0x400
14099 #define WIN32_LEAN_AND_MEAN
14100 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14101 #include <winsock.h>
14103 #include <winsock2.h>
14104 #include <ws2tcpip.h>
14109 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
14111 cat >>confdefs.h <<_ACEOF
14112 @%:@define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
14117 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
14118 #ifdef HAVE_NETINET_IN_H
14119 #include <netinet/in.h>
14121 #ifdef HAVE_NETINET_IN6_H
14122 #include <netinet/in6.h>
14124 #ifdef HAVE_SYS_SOCKET_H
14125 #include <sys/socket.h>
14128 #define WIN32_WINNT 0x400
14129 #define _WIN32_WINNT 0x400
14130 #define WIN32_LEAN_AND_MEAN
14131 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14132 #include <winsock.h>
14134 #include <winsock2.h>
14135 #include <ws2tcpip.h>
14140 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
14142 cat >>confdefs.h <<_ACEOF
14143 @%:@define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
14148 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
14149 #ifdef HAVE_NETINET_IN_H
14150 #include <netinet/in.h>
14152 #ifdef HAVE_NETINET_IN6_H
14153 #include <netinet/in6.h>
14155 #ifdef HAVE_SYS_SOCKET_H
14156 #include <sys/socket.h>
14159 #define WIN32_WINNT 0x400
14160 #define _WIN32_WINNT 0x400
14161 #define WIN32_LEAN_AND_MEAN
14162 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14163 #include <winsock.h>
14165 #include <winsock2.h>
14166 #include <ws2tcpip.h>
14171 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
14173 cat >>confdefs.h <<_ACEOF
14174 @%:@define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
14179 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
14180 #ifdef HAVE_NETINET_IN_H
14181 #include <netinet/in.h>
14183 #ifdef HAVE_NETINET_IN6_H
14184 #include <netinet/in6.h>
14186 #ifdef HAVE_SYS_SOCKET_H
14187 #include <sys/socket.h>
14190 #define WIN32_WINNT 0x400
14191 #define _WIN32_WINNT 0x400
14192 #define WIN32_LEAN_AND_MEAN
14193 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14194 #include <winsock.h>
14196 #include <winsock2.h>
14197 #include <ws2tcpip.h>
14202 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
14204 cat >>confdefs.h <<_ACEOF
14205 @%:@define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
14210 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14211 #ifdef HAVE_NETINET_IN_H
14212 #include <netinet/in.h>
14214 #ifdef HAVE_NETINET_IN6_H
14215 #include <netinet/in6.h>
14217 #ifdef HAVE_SYS_SOCKET_H
14218 #include <sys/socket.h>
14221 #define WIN32_WINNT 0x400
14222 #define _WIN32_WINNT 0x400
14223 #define WIN32_LEAN_AND_MEAN
14224 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14225 #include <winsock.h>
14227 #include <winsock2.h>
14228 #include <ws2tcpip.h>
14233 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
14235 cat >>confdefs.h <<_ACEOF
14236 @%:@define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14241 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14242 #ifdef HAVE_NETINET_IN_H
14243 #include <netinet/in.h>
14245 #ifdef HAVE_NETINET_IN6_H
14246 #include <netinet/in6.h>
14248 #ifdef HAVE_SYS_SOCKET_H
14249 #include <sys/socket.h>
14252 #define WIN32_WINNT 0x400
14253 #define _WIN32_WINNT 0x400
14254 #define WIN32_LEAN_AND_MEAN
14255 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14256 #include <winsock.h>
14258 #include <winsock2.h>
14259 #include <ws2tcpip.h>
14264 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
14266 cat >>confdefs.h <<_ACEOF
14267 @%:@define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
14275 $as_echo_n "checking for socklen_t... " >&6; }
14276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14277 /* end confdefs.h. */
14279 #include <sys/types.h>
14280 #include <sys/socket.h>
14289 if ac_fn_c_try_compile "$LINENO"; then :
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14291 $as_echo "yes" >&6; }
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14294 $as_echo "no" >&6; }
14296 $as_echo "@%:@define socklen_t unsigned int" >>confdefs.h
14300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
14303 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
14304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14305 /* end confdefs.h. */
14310 const char *cp = __func__;
14315 if ac_fn_c_try_compile "$LINENO"; then :
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14317 $as_echo "yes" >&6; }
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14320 $as_echo "no" >&6; }
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
14322 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14329 const char *cp = __FUNCTION__;
14334 if ac_fn_c_try_compile "$LINENO"; then :
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14336 $as_echo "yes" >&6; }
14338 $as_echo "@%:@define __func__ __FUNCTION__" >>confdefs.h
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14342 $as_echo "no" >&6; }
14344 $as_echo "@%:@define __func__ __FILE__" >>confdefs.h
14347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14352 # check if we can compile with pthreads
14354 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
14359 ac_cpp='$CPP $CPPFLAGS'
14360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14366 # We used to check for pthread.h first, but this fails if pthread.h
14367 # requires special compiler flags (e.g. on True64 or Sequent).
14368 # It gets checked for in the link test anyway.
14370 # First of all, check if the user has set any of the PTHREAD_LIBS,
14371 # etcetera environment variables, and if threads linking works using
14373 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14374 save_CFLAGS="$CFLAGS"
14375 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14377 LIBS="$PTHREAD_LIBS $LIBS"
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14379 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h. */
14383 /* Override any GCC internal prototype to avoid an error.
14384 Use char because int might match the return type of a GCC
14385 builtin and then its argument prototype would still apply. */
14389 char pthread_join ();
14393 return pthread_join ();
14398 if ac_fn_c_try_link "$LINENO"; then :
14401 rm -f core conftest.err conftest.$ac_objext \
14402 conftest$ac_exeext conftest.$ac_ext
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14404 $as_echo "$acx_pthread_ok" >&6; }
14405 if test x"$acx_pthread_ok" = xno; then
14410 CFLAGS="$save_CFLAGS"
14413 # We must check for the threads library under a number of different
14414 # names; the ordering is very important because some systems
14415 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14416 # libraries is broken (non-POSIX).
14418 # Create a list of thread flags to try. Items starting with a "-" are
14419 # C compiler flags, and other items are library names, except for "none"
14420 # which indicates that we try without any flags at all, and "pthread-config"
14421 # which is a program returning the flags for the Pth emulation library.
14423 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14425 # The ordering *is* (sometimes) important. Some notes on the
14426 # individual items follow:
14428 # pthreads: AIX (must check this before -lpthread)
14429 # none: in case threads are in libc; should be tried before -Kthread and
14430 # other compiler flags to prevent continual compiler warnings
14431 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14432 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14433 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14434 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14435 # -pthreads: Solaris/gcc
14436 # -mthreads: Mingw32/gcc, Lynx/gcc
14437 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14438 # doesn't hurt to check since this sometimes defines pthreads too;
14439 # also defines -D_REENTRANT)
14440 # ... -mt is also the pthreads flag for HP/aCC
14441 # pthread: Linux, etcetera
14442 # --thread-safe: KAI C++
14443 # pthread-config: use pthread-config program (for GNU Pth library)
14445 case "${host_cpu}-${host_os}" in
14448 # On Solaris (at least, for some versions), libc contains stubbed
14449 # (non-functional) versions of the pthreads routines, so link-based
14450 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
14451 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
14452 # a function called by this macro, so we could check for that, but
14453 # who knows whether they'll stub that too in a future libc.) So,
14454 # we'll just look for -pthreads and -lpthread first:
14456 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
14460 if test x"$acx_pthread_ok" = xno; then
14461 for flag in $acx_pthread_flags; do
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14466 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14471 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
14472 PTHREAD_CFLAGS="$flag"
14476 # Extract the first word of "pthread-config", so it can be a program name with args.
14477 set dummy pthread-config; ac_word=$2
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14479 $as_echo_n "checking for $ac_word... " >&6; }
14480 if ${ac_cv_prog_acx_pthread_config+:} false; then :
14481 $as_echo_n "(cached) " >&6
14483 if test -n "$acx_pthread_config"; then
14484 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14487 for as_dir in $PATH
14490 test -z "$as_dir" && as_dir=.
14491 for ac_exec_ext in '' $ac_executable_extensions; do
14492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14493 ac_cv_prog_acx_pthread_config="yes"
14494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14501 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14504 acx_pthread_config=$ac_cv_prog_acx_pthread_config
14505 if test -n "$acx_pthread_config"; then
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14507 $as_echo "$acx_pthread_config" >&6; }
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14510 $as_echo "no" >&6; }
14514 if test x"$acx_pthread_config" = xno; then continue; fi
14515 PTHREAD_CFLAGS="`pthread-config --cflags`"
14516 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14521 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14522 PTHREAD_LIBS="-l$flag"
14527 save_CFLAGS="$CFLAGS"
14528 LIBS="$PTHREAD_LIBS $LIBS"
14529 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14531 # Check for various functions. We must include pthread.h,
14532 # since some functions may be macros. (On the Sequent, we
14533 # need a special flag -Kthread to make this header compile.)
14534 # We check for pthread_join because it is in -lpthread on IRIX
14535 # while pthread_create is in libc. We check for pthread_attr_init
14536 # due to DEC craziness with -lpthreads. We check for
14537 # pthread_cleanup_push because it is one of the few pthread
14538 # functions on Solaris that doesn't have a non-functional libc stub.
14539 # We try pthread_create on general principles.
14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542 #include <pthread.h>
14546 pthread_t th; pthread_join(th, 0);
14547 pthread_attr_init(0); pthread_cleanup_push(0, 0);
14548 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14553 if ac_fn_c_try_link "$LINENO"; then :
14556 rm -f core conftest.err conftest.$ac_objext \
14557 conftest$ac_exeext conftest.$ac_ext
14560 CFLAGS="$save_CFLAGS"
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14563 $as_echo "$acx_pthread_ok" >&6; }
14564 if test "x$acx_pthread_ok" = xyes; then
14573 # Various other checks:
14574 if test "x$acx_pthread_ok" = xyes; then
14576 LIBS="$PTHREAD_LIBS $LIBS"
14577 save_CFLAGS="$CFLAGS"
14578 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14580 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14582 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14584 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14586 /* end confdefs.h. */
14587 #include <pthread.h>
14591 int attr=$attr; return attr;
14596 if ac_fn_c_try_link "$LINENO"; then :
14597 attr_name=$attr; break
14599 rm -f core conftest.err conftest.$ac_objext \
14600 conftest$ac_exeext conftest.$ac_ext
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14603 $as_echo "$attr_name" >&6; }
14604 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14606 cat >>confdefs.h <<_ACEOF
14607 @%:@define PTHREAD_CREATE_JOINABLE $attr_name
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14613 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14615 case "${host_cpu}-${host_os}" in
14616 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14617 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14620 $as_echo "${flag}" >&6; }
14621 if test "x$flag" != xno; then
14622 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14626 CFLAGS="$save_CFLAGS"
14628 # More AIX lossage: must compile with xlc_r or cc_r
14629 if test x"$GCC" != xyes; then
14630 for ac_prog in xlc_r cc_r
14632 # Extract the first word of "$ac_prog", so it can be a program name with args.
14633 set dummy $ac_prog; ac_word=$2
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14635 $as_echo_n "checking for $ac_word... " >&6; }
14636 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
14637 $as_echo_n "(cached) " >&6
14639 if test -n "$PTHREAD_CC"; then
14640 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14643 for as_dir in $PATH
14646 test -z "$as_dir" && as_dir=.
14647 for ac_exec_ext in '' $ac_executable_extensions; do
14648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14649 ac_cv_prog_PTHREAD_CC="$ac_prog"
14650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14659 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14660 if test -n "$PTHREAD_CC"; then
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14662 $as_echo "$PTHREAD_CC" >&6; }
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14665 $as_echo "no" >&6; }
14669 test -n "$PTHREAD_CC" && break
14671 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14684 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14685 if test x"$acx_pthread_ok" = xyes; then
14688 $as_echo "@%:@define HAVE_PTHREADS 1" >>confdefs.h
14697 ac_cpp='$CPP $CPPFLAGS'
14698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14703 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14704 # The cast to long int works around a bug in the HP C Compiler
14705 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14706 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14707 # This bug is HP SR number 8606223364.
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
14709 $as_echo_n "checking size of pthread_t... " >&6; }
14710 if ${ac_cv_sizeof_pthread_t+:} false; then :
14711 $as_echo_n "(cached) " >&6
14713 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default
14714 #include <pthread.h>
14719 if test "$ac_cv_type_pthread_t" = yes; then
14720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14722 as_fn_error 77 "cannot compute sizeof (pthread_t)
14723 See \`config.log' for more details" "$LINENO" 5; }
14725 ac_cv_sizeof_pthread_t=0
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
14731 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
14735 cat >>confdefs.h <<_ACEOF
14736 @%:@define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14741 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
14750 # check if we should compile locking into the library
14751 if test x$enable_thread_support = xno; then
14753 $as_echo "@%:@define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
14757 # check if we should hard-code the mm functions.
14758 if test x$enable_malloc_replacement = xno; then
14760 $as_echo "@%:@define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
14764 # check if we should hard-code debugging out
14765 if test x$enable_debug_mode = xno; then
14767 $as_echo "@%:@define DISABLE_DEBUG_MODE 1" >>confdefs.h
14771 # check if we have and should use openssl
14772 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
14781 # Add some more warnings which we use in development but not in the
14782 # released versions. (Some relevant gcc versions can't handle these.)
14783 if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then
14785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14786 /* end confdefs.h. */
14792 #if !defined(__GNUC__) || (__GNUC__ < 4)
14799 if ac_fn_c_try_compile "$LINENO"; then :
14804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14807 /* end confdefs.h. */
14813 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
14820 if ac_fn_c_try_compile "$LINENO"; then :
14825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14828 /* end confdefs.h. */
14834 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
14841 if ac_fn_c_try_compile "$LINENO"; then :
14846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14849 /* end confdefs.h. */
14855 #if !defined(__clang__)
14862 if ac_fn_c_try_compile "$LINENO"; then :
14867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14869 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"
14870 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
14872 if test x$have_gcc4 = xyes ; then
14873 # These warnings break gcc 3.3.5 and work on gcc 4.0.2
14874 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
14875 #CFLAGS="$CFLAGS -Wold-style-definition"
14878 if test x$have_gcc42 = xyes ; then
14879 # These warnings break gcc 4.0.2 and work on gcc 4.2
14880 CFLAGS="$CFLAGS -Waddress"
14883 if test x$have_gcc42 = xyes && test x$have_clang = xno; then
14884 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
14885 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
14888 if test x$have_gcc45 = xyes ; then
14889 # These warnings work on gcc 4.5
14890 CFLAGS="$CFLAGS -Wlogical-op"
14893 if test x$have_clang = xyes; then
14894 # Disable the unused-function warnings, because these trigger
14895 # for minheap-internal.h related code.
14896 CFLAGS="$CFLAGS -Wno-unused-function"
14899 ##This will break the world on some 64-bit architectures
14900 # CFLAGS="$CFLAGS -Winline"
14904 LIBEVENT_GC_SECTIONS=
14905 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
14907 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
14908 if ${libevent_cv_gc_sections_runs+:} false; then :
14909 $as_echo_n "(cached) " >&6
14912 origCFLAGS="$CFLAGS"
14913 CFLAGS="$CFLAGS -Wl,--gc-sections"
14914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915 /* end confdefs.h. */
14917 #include <stdlib.h>
14927 int read_success_once;
14929 fpC = fopen("conftest.c", "r");
14933 cch = fread(buf, sizeof(buf), 1, fpC);
14934 read_success_once |= (0 != cch);
14935 } while (0 != cch);
14936 if (!read_success_once)
14940 if (0 != fclose(fpC))
14943 exit(EXIT_SUCCESS);
14950 if ac_fn_c_try_link "$LINENO"; then :
14952 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
14953 libevent_cv_gc_sections_runs=no
14955 libevent_cv_gc_sections_runs=no
14956 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
14960 libevent_cv_gc_sections_runs=no
14963 rm -f core conftest.err conftest.$ac_objext \
14964 conftest$ac_exeext conftest.$ac_ext
14965 CFLAGS="$origCFLAGS"
14966 { origCFLAGS=; unset origCFLAGS;}
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
14971 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
14972 case "$libevent_cv_gc_sections_runs" in
14974 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
14975 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
14981 if test "$enable_libevent_install" = "yes"; then
14982 INSTALL_LIBEVENT_TRUE=
14983 INSTALL_LIBEVENT_FALSE='#'
14985 INSTALL_LIBEVENT_TRUE='#'
14986 INSTALL_LIBEVENT_FALSE=
14990 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
14992 ac_config_files="$ac_config_files Makefile include/Makefile test/Makefile sample/Makefile"
14994 cat >confcache <<\_ACEOF
14995 # This file is a shell script that caches the results of configure
14996 # tests run on this system so they can be shared between configure
14997 # scripts and configure runs, see configure's option --config-cache.
14998 # It is not useful on other systems. If it contains results you don't
14999 # want to keep, you may remove or edit it.
15001 # config.status only pays attention to the cache file if you give it
15002 # the --recheck option to rerun configure.
15004 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15005 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15006 # following values.
15010 # The following way of writing the cache mishandles newlines in values,
15011 # but we know of no workaround that is simple, portable, and efficient.
15012 # So, we kill variables containing newlines.
15013 # Ultrix sh set writes to stderr and can't be redirected directly,
15014 # and sets the high bit in the cache file unless we assign to the vars.
15016 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15017 eval ac_val=\$$ac_var
15021 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15022 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15025 _ | IFS | as_nl) ;; #(
15026 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15027 *) { eval $ac_var=; unset $ac_var;} ;;
15033 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15034 *${as_nl}ac_space=\ *)
15035 # `set' does not quote correctly, so add quotes: double-quote
15036 # substitution turns \\\\ into \\, and sed turns \\ into \.
15039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15042 # `set' quotes correctly as required by POSIX, so do not add quotes.
15043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15052 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15054 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15056 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15057 if test -w "$cache_file"; then
15058 if test "x$cache_file" != "x/dev/null"; then
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15060 $as_echo "$as_me: updating cache $cache_file" >&6;}
15061 if test ! -f "$cache_file" || test -h "$cache_file"; then
15062 cat confcache >"$cache_file"
15064 case $cache_file in #(
15066 mv -f confcache "$cache_file"$$ &&
15067 mv -f "$cache_file"$$ "$cache_file" ;; #(
15069 mv -f confcache "$cache_file" ;;
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15075 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15080 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15081 # Let make expand exec_prefix.
15082 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15084 DEFS=-DHAVE_CONFIG_H
15089 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
15090 # 1. Remove the extension, and $U if already installed.
15091 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15092 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15093 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15094 # will be set to the directory where LIBOBJS objects are built.
15095 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15096 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15098 LIB@&t@OBJS=$ac_libobjs
15100 LTLIBOBJS=$ac_ltlibobjs
15103 if test -n "$EXEEXT"; then
15105 am__EXEEXT_FALSE='#'
15107 am__EXEEXT_TRUE='#'
15111 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15112 as_fn_error $? "conditional \"AMDEP\" was never defined.
15113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15115 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15116 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15119 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
15120 as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
15121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15123 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
15124 as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
15125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15127 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
15128 as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
15129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15131 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
15132 as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
15133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15135 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
15136 as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
15137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15139 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
15140 as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
15141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15143 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
15144 as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
15145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15147 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
15148 as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
15149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15151 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
15152 as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
15153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15155 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
15156 as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
15157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15159 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
15160 as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
15161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15163 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
15164 as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
15165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15167 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
15168 as_fn_error $? "conditional \"PTHREADS\" was never defined.
15169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15171 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
15172 as_fn_error $? "conditional \"OPENSSL\" was never defined.
15173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15175 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
15176 as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
15177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15180 : "${CONFIG_STATUS=./config.status}"
15182 ac_clean_files_save=$ac_clean_files
15183 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15185 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15187 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15189 # Generated by $as_me.
15190 # Run this file to recreate the current configuration.
15191 # Compiler output produced by configure, useful for debugging
15192 # configure, is in config.log if it exists.
15195 ac_cs_recheck=false
15198 SHELL=\${CONFIG_SHELL-$SHELL}
15201 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15202 ## -------------------- ##
15203 ## M4sh Initialization. ##
15204 ## -------------------- ##
15206 # Be more Bourne compatible
15207 DUALCASE=1; export DUALCASE # for MKS sh
15208 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15211 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15212 # is contrary to our usage. Disable this feature.
15213 alias -g '${1+"$@"}'='"$@"'
15214 setopt NO_GLOB_SUBST
15216 case `(set -o) 2>/dev/null` in @%:@(
15218 set -o posix ;; @%:@(
15228 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15229 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15230 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15231 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15232 # Prefer a ksh shell builtin over an external printf program on Solaris,
15233 # but without wasting forks for bash or zsh.
15234 if test -z "$BASH_VERSION$ZSH_VERSION" \
15235 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15236 as_echo='print -r --'
15237 as_echo_n='print -rn --'
15238 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15239 as_echo='printf %s\n'
15240 as_echo_n='printf %s'
15242 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15243 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15244 as_echo_n='/usr/ucb/echo -n'
15246 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15247 as_echo_n_body='eval
15251 expr "X$arg" : "X\\(.*\\)$as_nl";
15252 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15254 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15256 export as_echo_n_body
15257 as_echo_n='sh -c $as_echo_n_body as_echo'
15259 export as_echo_body
15260 as_echo='sh -c $as_echo_body as_echo'
15263 # The user is always right.
15264 if test "${PATH_SEPARATOR+set}" != set; then
15266 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15267 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15274 # We need space, tab and new line, in precisely that order. Quoting is
15275 # there to prevent editors from complaining about space-tab.
15276 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15277 # splitting by setting IFS to empty value.)
15280 # Find who we are. Look in the path if we contain no directory separator.
15283 *[\\/]* ) as_myself=$0 ;;
15284 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15285 for as_dir in $PATH
15288 test -z "$as_dir" && as_dir=.
15289 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15295 # We did not find ourselves, most probably we were run as `sh COMMAND'
15296 # in which case we are not to be found in the path.
15297 if test "x$as_myself" = x; then
15300 if test ! -f "$as_myself"; then
15301 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15305 # Unset variables that we do not need and which cause bugs (e.g. in
15306 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15307 # suppresses any "Segmentation fault" message there. '((' could
15308 # trigger a bug in pdksh 5.2.14.
15309 for as_var in BASH_ENV ENV MAIL MAILPATH
15310 do eval test x\${$as_var+set} = xset \
15311 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15324 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15327 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
15328 @%:@ ----------------------------------------
15329 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15330 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15331 @%:@ script with STATUS, using 1 if that was 0.
15334 as_status=$1; test $as_status -eq 0 && as_status=1
15336 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15337 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15339 $as_echo "$as_me: error: $2" >&2
15340 as_fn_exit $as_status
15344 @%:@ as_fn_set_status STATUS
15345 @%:@ -----------------------
15346 @%:@ Set @S|@? to STATUS, without forking.
15347 as_fn_set_status ()
15350 } @%:@ as_fn_set_status
15352 @%:@ as_fn_exit STATUS
15353 @%:@ -----------------
15354 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15358 as_fn_set_status $1
15362 @%:@ as_fn_unset VAR
15363 @%:@ ---------------
15364 @%:@ Portably unset VAR.
15367 { eval $1=; unset $1;}
15369 as_unset=as_fn_unset
15370 @%:@ as_fn_append VAR VALUE
15371 @%:@ ----------------------
15372 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
15373 @%:@ advantage of any shell optimizations that allow amortized linear growth over
15374 @%:@ repeated appends, instead of the typical quadratic growth present in naive
15375 @%:@ implementations.
15376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15377 eval 'as_fn_append ()
15388 @%:@ as_fn_arith ARG...
15389 @%:@ ------------------
15390 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
15391 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
15392 @%:@ must be portable across @S|@(()) and expr.
15393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15394 eval 'as_fn_arith ()
15401 as_val=`expr "$@" || test $? -eq 1`
15406 if expr a : '\(a\)' >/dev/null 2>&1 &&
15407 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15413 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15414 as_basename=basename
15419 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15425 as_me=`$as_basename -- "$0" ||
15426 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15427 X"$0" : 'X\(//\)$' \| \
15428 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15430 sed '/^.*\/\([^/][^/]*\)\/*$/{
15444 # Avoid depending upon Character Ranges.
15445 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15446 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15447 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15448 as_cr_digits='0123456789'
15449 as_cr_alnum=$as_cr_Letters$as_cr_digits
15451 ECHO_C= ECHO_N= ECHO_T=
15452 case `echo -n x` in @%:@(((((
15454 case `echo 'xy\c'` in
15455 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15457 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15464 rm -f conf$$ conf$$.exe conf$$.file
15465 if test -d conf$$.dir; then
15466 rm -f conf$$.dir/conf$$.file
15469 mkdir conf$$.dir 2>/dev/null
15471 if (echo >conf$$.file) 2>/dev/null; then
15472 if ln -s conf$$.file conf$$ 2>/dev/null; then
15474 # ... but there are two gotchas:
15475 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15476 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15477 # In both cases, we have to default to `cp -p'.
15478 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15480 elif ln conf$$.file conf$$ 2>/dev/null; then
15488 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15489 rmdir conf$$.dir 2>/dev/null
15494 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
15499 -*) as_dir=./$as_dir;;
15501 test -d "$as_dir" || eval $as_mkdir_p || {
15505 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15506 *) as_qdir=$as_dir;;
15508 as_dirs="'$as_qdir' $as_dirs"
15509 as_dir=`$as_dirname -- "$as_dir" ||
15510 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15511 X"$as_dir" : 'X\(//\)[^/]' \| \
15512 X"$as_dir" : 'X\(//\)$' \| \
15513 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15514 $as_echo X"$as_dir" |
15515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15519 /^X\(\/\/\)[^/].*/{
15532 test -d "$as_dir" && break
15534 test -z "$as_dirs" || eval "mkdir $as_dirs"
15535 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15538 } @%:@ as_fn_mkdir_p
15539 if mkdir -p . 2>/dev/null; then
15540 as_mkdir_p='mkdir -p "$as_dir"'
15542 test -d ./-p && rmdir ./-p
15546 if test -x / >/dev/null 2>&1; then
15547 as_test_x='test -x'
15549 if ls -dL / >/dev/null 2>&1; then
15556 if test -d "$1"; then
15562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
15563 ???[sx]*):;;*)false;;esac;fi
15567 as_executable_p=$as_test_x
15569 # Sed expression to map a string onto a valid CPP name.
15570 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15572 # Sed expression to map a string onto a valid variable name.
15573 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15577 ## ----------------------------------- ##
15578 ## Main body of $CONFIG_STATUS script. ##
15579 ## ----------------------------------- ##
15581 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15584 # Save the log message, to keep $0 and so on meaningful, and to
15585 # report actual input values of CONFIG_FILES etc. instead of their
15586 # values after options handling.
15588 This file was extended by $as_me, which was
15589 generated by GNU Autoconf 2.68. Invocation command line was
15591 CONFIG_FILES = $CONFIG_FILES
15592 CONFIG_HEADERS = $CONFIG_HEADERS
15593 CONFIG_LINKS = $CONFIG_LINKS
15594 CONFIG_COMMANDS = $CONFIG_COMMANDS
15597 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15602 case $ac_config_files in *"
15603 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15606 case $ac_config_headers in *"
15607 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15612 # Files that config.status was made for.
15613 config_files="$ac_config_files"
15614 config_headers="$ac_config_headers"
15615 config_commands="$ac_config_commands"
15619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15621 \`$as_me' instantiates files and other configuration actions
15622 from templates according to the current configuration. Unless the files
15623 and actions are specified as TAGs, all are instantiated by default.
15625 Usage: $0 [OPTION]... [TAG]...
15627 -h, --help print this help, then exit
15628 -V, --version print version number and configuration settings, then exit
15629 --config print configuration, then exit
15630 -q, --quiet, --silent
15631 do not print progress messages
15632 -d, --debug don't remove temporary files
15633 --recheck update $as_me by reconfiguring in the same conditions
15634 --file=FILE[:TEMPLATE]
15635 instantiate the configuration file FILE
15636 --header=FILE[:TEMPLATE]
15637 instantiate the configuration header FILE
15639 Configuration files:
15642 Configuration headers:
15645 Configuration commands:
15648 Report bugs to the package provider."
15651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15652 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15655 configured by $0, generated by GNU Autoconf 2.68,
15656 with options \\"\$ac_cs_config\\"
15658 Copyright (C) 2010 Free Software Foundation, Inc.
15659 This config.status script is free software; the Free Software Foundation
15660 gives unlimited permission to copy, distribute and modify it."
15667 test -n "\$AWK" || AWK=awk
15670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15671 # The default lists apply if the user does not specify any file.
15677 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15678 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15682 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15694 # Handling of the options.
15695 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15697 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15698 $as_echo "$ac_cs_version"; exit ;;
15699 --config | --confi | --conf | --con | --co | --c )
15700 $as_echo "$ac_cs_config"; exit ;;
15701 --debug | --debu | --deb | --de | --d | -d )
15703 --file | --fil | --fi | --f )
15706 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15707 '') as_fn_error $? "missing file argument" ;;
15709 as_fn_append CONFIG_FILES " '$ac_optarg'"
15710 ac_need_defaults=false;;
15711 --header | --heade | --head | --hea )
15714 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15716 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15717 ac_need_defaults=false;;
15719 # Conflict between --help and --header
15720 as_fn_error $? "ambiguous option: \`$1'
15721 Try \`$0 --help' for more information.";;
15722 --help | --hel | -h )
15723 $as_echo "$ac_cs_usage"; exit ;;
15724 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15725 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15728 # This is an error.
15729 -*) as_fn_error $? "unrecognized option: \`$1'
15730 Try \`$0 --help' for more information." ;;
15732 *) as_fn_append ac_config_targets " $1"
15733 ac_need_defaults=false ;;
15739 ac_configure_extra_args=
15741 if $ac_cs_silent; then
15743 ac_configure_extra_args="$ac_configure_extra_args --silent"
15747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15748 if \$ac_cs_recheck; then
15749 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15751 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15752 CONFIG_SHELL='$SHELL'
15753 export CONFIG_SHELL
15758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15762 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
15763 @%:@@%:@ Running $as_me. @%:@@%:@
15769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15773 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15776 # The HP-UX ksh and POSIX shell print the target directory to stdout
15777 # if CDPATH is set.
15778 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15780 sed_quote_subst='$sed_quote_subst'
15781 double_quote_subst='$double_quote_subst'
15782 delay_variable_subst='$delay_variable_subst'
15783 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15784 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15785 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15786 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15787 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15788 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15789 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15790 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15791 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15792 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15793 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15794 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15795 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15796 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15797 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15798 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15799 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15800 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15801 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15802 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15803 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15804 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15805 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15806 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15807 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15808 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15809 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15810 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15811 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15812 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15813 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15814 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15815 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15816 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15817 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15818 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15819 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15820 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15821 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15822 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15823 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15824 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15825 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15826 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15827 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15828 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15829 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15830 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15831 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15832 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15833 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15834 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15835 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15836 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15837 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15838 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15839 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"`'
15840 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15841 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15842 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15843 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15844 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15845 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15846 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15847 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15848 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15849 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15850 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15851 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15852 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15853 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15854 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15855 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15856 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15857 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15858 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15859 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15860 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15861 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15862 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15863 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15864 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15865 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15866 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15867 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15868 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15869 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15870 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15871 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15872 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15873 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15874 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15875 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15876 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15877 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15878 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15879 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15880 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15881 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15882 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15883 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15884 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15885 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15886 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15887 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15888 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15889 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15890 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15891 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15892 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15893 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15894 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15895 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15896 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15897 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15898 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15899 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15900 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15901 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15902 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15903 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15904 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15905 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15906 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15907 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15908 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15909 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15910 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15911 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15912 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15915 LTCFLAGS='$LTCFLAGS'
15916 compiler='$compiler_DEFAULT'
15918 # A function that is used when there is no print builtin or printf.
15919 func_fallback_echo ()
15921 eval 'cat <<_LTECHO_EOF
15926 # Quote evaled strings.
15941 deplibs_check_method \
15946 sharedlib_from_linklib_cmd \
15949 archiver_list_spec \
15955 lt_cv_sys_global_symbol_pipe \
15956 lt_cv_sys_global_symbol_to_cdecl \
15957 lt_cv_sys_global_symbol_to_c_name_address \
15958 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15959 nm_file_list_spec \
15960 lt_prog_compiler_no_builtin_flag \
15961 lt_prog_compiler_pic \
15962 lt_prog_compiler_wl \
15963 lt_prog_compiler_static \
15964 lt_cv_prog_compiler_c_o \
15973 export_dynamic_flag_spec \
15974 whole_archive_flag_spec \
15975 compiler_needs_object \
15977 allow_undefined_flag \
15978 no_undefined_flag \
15979 hardcode_libdir_flag_spec \
15980 hardcode_libdir_separator \
15984 variables_saved_for_relink \
15986 library_names_spec \
15988 install_override_mode \
15992 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15993 *[\\\\\\\`\\"\\\$]*)
15994 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15997 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16002 # Double-quote double-evaled strings.
16003 for var in reload_cmds \
16004 old_postinstall_cmds \
16005 old_postuninstall_cmds \
16007 extract_expsyms_cmds \
16008 old_archive_from_new_cmds \
16009 old_archive_from_expsyms_cmds \
16011 archive_expsym_cmds \
16013 module_expsym_cmds \
16014 export_symbols_cmds \
16018 postuninstall_cmds \
16020 sys_lib_search_path_spec \
16021 sys_lib_dlsearch_path_spec; do
16022 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16023 *[\\\\\\\`\\"\\\$]*)
16024 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16027 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16032 ac_aux_dir='$ac_aux_dir'
16033 xsi_shell='$xsi_shell'
16034 lt_shell_append='$lt_shell_append'
16036 # See if we are running on zsh, and set the options which allow our
16037 # commands through without removal of \ escapes INIT.
16038 if test -n "\${ZSH_VERSION+set}" ; then
16039 setopt NO_GLOB_SUBST
16045 TIMESTAMP='$TIMESTAMP'
16054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16056 # Handling of arguments.
16057 for ac_config_target in $ac_config_targets
16059 case $ac_config_target in
16060 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16061 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16062 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16063 "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
16064 "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
16065 "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
16066 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16067 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16068 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16069 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
16071 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16076 # If the user did not use the arguments to specify the items to instantiate,
16077 # then the envvar interface is used. Set only those that are not.
16078 # We use the long form for the default assignment because of an extremely
16079 # bizarre bug on SunOS 4.1.3.
16080 if $ac_need_defaults; then
16081 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16082 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16083 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16086 # Have a temporary directory for convenience. Make it in the build tree
16087 # simply because there is no reason against having it here, and in addition,
16088 # creating and moving files from /tmp can sometimes cause problems.
16089 # Hook for its removal unless debugging.
16090 # Note that there is a small window in which the directory will not be cleaned:
16091 # after its creation but before its name has been assigned to `$tmp'.
16095 trap 'exit_status=$?
16096 : "${ac_tmp:=$tmp}"
16097 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16099 trap 'as_fn_exit 1' 1 2 13 15
16101 # Create a (secure) tmp directory for tmp files.
16104 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16108 tmp=./conf$$-$RANDOM
16109 (umask 077 && mkdir "$tmp")
16110 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16113 # Set up the scripts for CONFIG_FILES section.
16114 # No need to generate them if there are no CONFIG_FILES.
16115 # This happens for instance with `./config.status config.h'.
16116 if test -n "$CONFIG_FILES"; then
16119 ac_cr=`echo X | tr X '\015'`
16120 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16121 # But we know of no other shell where ac_cr would be empty at this
16122 # point, so we can use a bashism as a fallback.
16123 if test "x$ac_cr" = x; then
16124 eval ac_cr=\$\'\\r\'
16126 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16127 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16130 ac_cs_awk_cr=$ac_cr
16133 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16138 echo "cat >conf$$subs.awk <<_ACEOF" &&
16139 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16141 } >conf$$subs.sh ||
16142 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16143 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16145 for ac_last_try in false false false false false :; do
16146 . ./conf$$subs.sh ||
16147 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16149 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16150 if test $ac_delim_n = $ac_delim_num; then
16152 elif $ac_last_try; then
16153 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16155 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16158 rm -f conf$$subs.sh
16160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16161 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16165 s/^/S["/; s/!.*/"]=/
16175 s/\(.\{148\}\)..*/\1/
16177 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16182 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16189 s/\(.\{148\}\)..*/\1/
16191 s/["\\]/\\&/g; s/^/"/; s/$/"/
16195 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16200 ' <conf$$subs.awk | sed '
16205 ' >>$CONFIG_STATUS || ac_write_fail=1
16206 rm -f conf$$subs.awk
16207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16209 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16210 for (key in S) S_is_set[key] = 1
16216 nfields = split(line, field, "@")
16218 len = length(field[1])
16219 for (i = 2; i < nfields; i++) {
16221 keylen = length(key)
16222 if (S_is_set[key]) {
16224 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16225 len += length(value) + length(field[++i])
16236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16237 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16238 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16241 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16242 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16245 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16246 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16247 # trailing colons and then remove the whole line if VPATH becomes empty
16248 # (actually we leave an empty line to preserve line numbers).
16249 if test "x$srcdir" = x.; then
16250 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16269 fi # test -n "$CONFIG_FILES"
16271 # Set up the scripts for CONFIG_HEADERS section.
16272 # No need to generate them if there are no CONFIG_HEADERS.
16273 # This happens for instance with `./config.status Makefile'.
16274 if test -n "$CONFIG_HEADERS"; then
16275 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16279 # Transform confdefs.h into an awk script `defines.awk', embedded as
16280 # here-document in config.status, that substitutes the proper values into
16281 # config.h.in to produce config.h.
16283 # Create a delimiter string that does not exist in confdefs.h, to ease
16284 # handling of long lines.
16286 for ac_last_try in false false :; do
16287 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16288 if test -z "$ac_tt"; then
16290 elif $ac_last_try; then
16291 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16293 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16297 # For the awk script, D is an array of macro values keyed by name,
16298 # likewise P contains macro parameters if any. Preserve backslash
16299 # newline sequences.
16301 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16303 s/.\{148\}/&'"$ac_delim"'/g
16306 s/^[ ]*#[ ]*define[ ][ ]*/ /
16313 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16315 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16319 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16320 D["\1"]=" \3\\\\\\n"\\/p
16322 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16327 s/.\{148\}/&'"$ac_delim"'/g
16332 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16335 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16337 ' <confdefs.h | sed '
16338 s/'"$ac_delim"'/"\\\
16339 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16342 for (key in D) D_is_set[key] = 1
16345 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16347 split(line, arg, " ")
16348 if (arg[1] == "#") {
16352 defundef = substr(arg[1], 2)
16355 split(mac1, mac2, "(") #)
16357 prefix = substr(line, 1, index(line, defundef) - 1)
16358 if (D_is_set[macro]) {
16359 # Preserve the white space surrounding the "#".
16360 print prefix "define", macro P[macro] D[macro]
16363 # Replace #undef with comments. This is necessary, for example,
16364 # in the case of _POSIX_SOURCE, which is predefined and required
16365 # on some systems where configure will not decide to define it.
16366 if (defundef == "undef") {
16367 print "/*", prefix defundef, macro, "*/"
16375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16376 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16377 fi # test -n "$CONFIG_HEADERS"
16380 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16385 :[FHLC]) ac_mode=$ac_tag; continue;;
16387 case $ac_mode$ac_tag in
16389 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16390 :[FH]-) ac_tag=-:-;;
16391 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16408 -) ac_f="$ac_tmp/stdin";;
16409 *) # Look for the file first in the build tree, then in the source tree
16410 # (if the path is not absolute). The absolute path cannot be DOS-style,
16411 # because $ac_f cannot contain `:'.
16415 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16417 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16419 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16420 as_fn_append ac_file_inputs " '$ac_f'"
16423 # Let's still pretend it is `configure' which instantiates (i.e., don't
16424 # use $as_me), people would be surprised to read:
16425 # /* config.h. Generated by config.status. */
16426 configure_input='Generated from '`
16427 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16429 if test x"$ac_file" != x-; then
16430 configure_input="$ac_file. $configure_input"
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16432 $as_echo "$as_me: creating $ac_file" >&6;}
16434 # Neutralize special characters interpreted by sed in replacement strings.
16435 case $configure_input in #(
16436 *\&* | *\|* | *\\* )
16437 ac_sed_conf_input=`$as_echo "$configure_input" |
16438 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16439 *) ac_sed_conf_input=$configure_input;;
16443 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16444 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16449 ac_dir=`$as_dirname -- "$ac_file" ||
16450 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16451 X"$ac_file" : 'X\(//\)[^/]' \| \
16452 X"$ac_file" : 'X\(//\)$' \| \
16453 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16454 $as_echo X"$ac_file" |
16455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16459 /^X\(\/\/\)[^/].*/{
16472 as_dir="$ac_dir"; as_fn_mkdir_p
16476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16479 # A ".." for each directory in $ac_dir_suffix.
16480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16481 case $ac_top_builddir_sub in
16482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16486 ac_abs_top_builddir=$ac_pwd
16487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16488 # for backward compatibility:
16489 ac_top_builddir=$ac_top_build_prefix
16492 .) # We are building in place.
16494 ac_top_srcdir=$ac_top_builddir_sub
16495 ac_abs_top_srcdir=$ac_pwd ;;
16496 [\\/]* | ?:[\\/]* ) # Absolute name.
16497 ac_srcdir=$srcdir$ac_dir_suffix;
16498 ac_top_srcdir=$srcdir
16499 ac_abs_top_srcdir=$srcdir ;;
16500 *) # Relative name.
16501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16502 ac_top_srcdir=$ac_top_build_prefix$srcdir
16503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16515 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16516 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16518 ac_MKDIR_P=$MKDIR_P
16520 [\\/$]* | ?:[\\/]* ) ;;
16521 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16526 # If the template does not know about datarootdir, expand it.
16527 # FIXME: This hack should be removed a few years after 2.60.
16528 ac_datarootdir_hack=; ac_datarootdir_seen=
16539 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16540 *datarootdir*) ac_datarootdir_seen=yes;;
16541 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16543 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16546 ac_datarootdir_hack='
16547 s&@datadir@&$datadir&g
16548 s&@docdir@&$docdir&g
16549 s&@infodir@&$infodir&g
16550 s&@localedir@&$localedir&g
16551 s&@mandir@&$mandir&g
16552 s&\\\${datarootdir}&$datarootdir&g' ;;
16556 # Neutralize VPATH when `$srcdir' = `.'.
16557 # Shell code in configure.ac might set extrasub.
16558 # FIXME: do we really want to maintain this feature?
16559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16560 ac_sed_extra="$ac_vpsub
16563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16565 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16566 s|@configure_input@|$ac_sed_conf_input|;t t
16567 s&@top_builddir@&$ac_top_builddir_sub&;t t
16568 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16569 s&@srcdir@&$ac_srcdir&;t t
16570 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16571 s&@top_srcdir@&$ac_top_srcdir&;t t
16572 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16573 s&@builddir@&$ac_builddir&;t t
16574 s&@abs_builddir@&$ac_abs_builddir&;t t
16575 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16576 s&@INSTALL@&$ac_INSTALL&;t t
16577 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16578 $ac_datarootdir_hack
16580 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16581 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16583 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16584 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16585 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16586 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16588 which seems to be undefined. Please make sure it is defined" >&5
16589 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16590 which seems to be undefined. Please make sure it is defined" >&2;}
16592 rm -f "$ac_tmp/stdin"
16594 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16595 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16597 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16603 if test x"$ac_file" != x-; then
16605 $as_echo "/* $configure_input */" \
16606 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16607 } >"$ac_tmp/config.h" \
16608 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16609 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16611 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16614 mv "$ac_tmp/config.h" "$ac_file" \
16615 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16618 $as_echo "/* $configure_input */" \
16619 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16620 || as_fn_error $? "could not create -" "$LINENO" 5
16622 # Compute "$ac_file"'s index in $config_headers.
16625 for _am_header in $config_headers :; do
16626 case $_am_header in
16627 $_am_arg | $_am_arg:* )
16630 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16633 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16634 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16635 X"$_am_arg" : 'X\(//\)[^/]' \| \
16636 X"$_am_arg" : 'X\(//\)$' \| \
16637 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16638 $as_echo X"$_am_arg" |
16639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16643 /^X\(\/\/\)[^/].*/{
16655 s/.*/./; q'`/stamp-h$_am_stamp_count
16658 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16659 $as_echo "$as_me: executing $ac_file commands" >&6;}
16664 case $ac_file$ac_mode in
16665 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16666 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16667 # are listed without --file. Let's play safe and only enable the eval
16668 # if we detect the quoting.
16669 case $CONFIG_FILES in
16670 *\'*) eval set x "$CONFIG_FILES" ;;
16671 *) set x $CONFIG_FILES ;;
16676 # Strip MF so we end up with the name of the file.
16677 mf=`echo "$mf" | sed -e 's/:.*$//'`
16678 # Check whether this is an Automake generated Makefile or not.
16679 # We used to match only the files named `Makefile.in', but
16680 # some people rename them; so instead we look at the file content.
16681 # Grep'ing the first line is not enough: some people post-process
16682 # each Makefile.in and add a new line on top of each file to say so.
16683 # Grep'ing the whole file is not good either: AIX grep has a line
16684 # limit of 2048, but all sed's we know have understand at least 4000.
16685 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16686 dirpart=`$as_dirname -- "$mf" ||
16687 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16688 X"$mf" : 'X\(//\)[^/]' \| \
16689 X"$mf" : 'X\(//\)$' \| \
16690 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16696 /^X\(\/\/\)[^/].*/{
16712 # Extract the definition of DEPDIR, am__include, and am__quote
16713 # from the Makefile without running `make'.
16714 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16715 test -z "$DEPDIR" && continue
16716 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16717 test -z "am__include" && continue
16718 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16719 # When using ansi2knr, U may be empty or an underscore; expand it
16720 U=`sed -n 's/^U = //p' < "$mf"`
16721 # Find all dependency output files, they are included files with
16722 # $(DEPDIR) in their names. We invoke sed twice because it is the
16723 # simplest approach to changing $(DEPDIR) to its actual value in the
16725 for file in `sed -n "
16726 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16727 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16728 # Make sure the directory exists.
16729 test -f "$dirpart/$file" && continue
16730 fdir=`$as_dirname -- "$file" ||
16731 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16732 X"$file" : 'X\(//\)[^/]' \| \
16733 X"$file" : 'X\(//\)$' \| \
16734 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16735 $as_echo X"$file" |
16736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16740 /^X\(\/\/\)[^/].*/{
16753 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16754 # echo "creating $dirpart/$file"
16755 echo '# dummy' > "$dirpart/$file"
16762 # See if we are running on zsh, and set the options which allow our
16763 # commands through without removal of \ escapes.
16764 if test -n "${ZSH_VERSION+set}" ; then
16765 setopt NO_GLOB_SUBST
16768 cfgfile="${ofile}T"
16769 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16772 cat <<_LT_EOF >> "$cfgfile"
16775 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16776 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16777 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16778 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16780 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16781 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16783 # Written by Gordon Matzigkeit, 1996
16785 # This file is part of GNU Libtool.
16787 # GNU Libtool is free software; you can redistribute it and/or
16788 # modify it under the terms of the GNU General Public License as
16789 # published by the Free Software Foundation; either version 2 of
16790 # the License, or (at your option) any later version.
16792 # As a special exception to the GNU General Public License,
16793 # if you distribute this file as part of a program or library that
16794 # is built using GNU Libtool, you may include this file under the
16795 # same distribution terms that you use for the rest of that program.
16797 # GNU Libtool is distributed in the hope that it will be useful,
16798 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16799 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16800 # GNU General Public License for more details.
16802 # You should have received a copy of the GNU General Public License
16803 # along with GNU Libtool; see the file COPYING. If not, a copy
16804 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16805 # obtained by writing to the Free Software Foundation, Inc.,
16806 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16809 # The names of the tagged configurations supported by this script.
16812 # ### BEGIN LIBTOOL CONFIG
16814 # Which release of libtool.m4 was used?
16815 macro_version=$macro_version
16816 macro_revision=$macro_revision
16818 # Whether or not to build shared libraries.
16819 build_libtool_libs=$enable_shared
16821 # Whether or not to build static libraries.
16822 build_old_libs=$enable_static
16824 # What type of objects to build.
16827 # Whether or not to optimize for fast installation.
16828 fast_install=$enable_fast_install
16830 # Shell to use when invoking shell scripts.
16833 # An echo program that protects backslashes.
16836 # The PATH separator for the build system.
16837 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16840 host_alias=$host_alias
16844 # The build system.
16845 build_alias=$build_alias
16849 # A sed program that does not truncate output.
16852 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16853 Xsed="\$SED -e 1s/^X//"
16855 # A grep program that handles long lines.
16861 # A literal string matcher.
16864 # A BSD- or MS-compatible name lister.
16867 # Whether we need soft or hard links.
16870 # What is the maximum length of a command?
16871 max_cmd_len=$max_cmd_len
16873 # Object file suffix (normally "o").
16876 # Executable file suffix (normally "").
16879 # whether the shell understands "unset".
16882 # turn spaces into newlines.
16885 # turn newlines into spaces.
16888 # convert \$build file names to \$host format.
16889 to_host_file_cmd=$lt_cv_to_host_file_cmd
16891 # convert \$build files to toolchain format.
16892 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16894 # An object symbol dumper.
16895 OBJDUMP=$lt_OBJDUMP
16897 # Method to check whether dependent libraries are shared objects.
16898 deplibs_check_method=$lt_deplibs_check_method
16900 # Command to use when deplibs_check_method = "file_magic".
16901 file_magic_cmd=$lt_file_magic_cmd
16903 # How to find potential files when deplibs_check_method = "file_magic".
16904 file_magic_glob=$lt_file_magic_glob
16906 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16907 want_nocaseglob=$lt_want_nocaseglob
16909 # DLL creation program.
16910 DLLTOOL=$lt_DLLTOOL
16912 # Command to associate shared and link libraries.
16913 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16918 # Flags to create an archive.
16919 AR_FLAGS=$lt_AR_FLAGS
16921 # How to feed a file listing to the archiver.
16922 archiver_list_spec=$lt_archiver_list_spec
16924 # A symbol stripping program.
16927 # Commands used to install an old-style archive.
16929 old_postinstall_cmds=$lt_old_postinstall_cmds
16930 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16932 # Whether to use a lock for old archive extraction.
16933 lock_old_archive_extraction=$lock_old_archive_extraction
16938 # LTCC compiler flags.
16939 LTCFLAGS=$lt_CFLAGS
16941 # Take the output of nm and produce a listing of raw symbols and C names.
16942 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16944 # Transform the output of nm in a proper C declaration.
16945 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16947 # Transform the output of nm in a C name address pair.
16948 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16950 # Transform the output of nm in a C name address pair when lib prefix is needed.
16951 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16953 # Specify filename containing input files for \$NM.
16954 nm_file_list_spec=$lt_nm_file_list_spec
16956 # The root where to search for dependent libraries,and in which our libraries should be installed.
16957 lt_sysroot=$lt_sysroot
16959 # The name of the directory that contains temporary libtool files.
16962 # Used to examine libraries when file_magic_cmd begins with "file".
16963 MAGIC_CMD=$MAGIC_CMD
16965 # Must we lock files when doing compilation?
16966 need_locks=$lt_need_locks
16969 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16971 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16972 DSYMUTIL=$lt_DSYMUTIL
16974 # Tool to change global to local symbols on Mac OS X.
16977 # Tool to manipulate fat objects and archives on Mac OS X.
16980 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16983 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16984 OTOOL64=$lt_OTOOL64
16986 # Old archive suffix (normally "a").
16989 # Shared library suffix (normally ".so").
16990 shrext_cmds=$lt_shrext_cmds
16992 # The commands to extract the exported symbol list from a shared archive.
16993 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16995 # Variables whose values should be saved in libtool wrapper scripts and
16996 # restored at link time.
16997 variables_saved_for_relink=$lt_variables_saved_for_relink
16999 # Do we need the "lib" prefix for modules?
17000 need_lib_prefix=$need_lib_prefix
17002 # Do we need a version for libraries?
17003 need_version=$need_version
17005 # Library versioning type.
17006 version_type=$version_type
17008 # Shared library runtime path variable.
17009 runpath_var=$runpath_var
17011 # Shared library path variable.
17012 shlibpath_var=$shlibpath_var
17014 # Is shlibpath searched before the hard-coded library search path?
17015 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17017 # Format of library name prefix.
17018 libname_spec=$lt_libname_spec
17020 # List of archive names. First name is the real one, the rest are links.
17021 # The last name is the one that the linker finds with -lNAME
17022 library_names_spec=$lt_library_names_spec
17024 # The coded name of the library, if different from the real name.
17025 soname_spec=$lt_soname_spec
17027 # Permission mode override for installation of shared libraries.
17028 install_override_mode=$lt_install_override_mode
17030 # Command to use after installation of a shared archive.
17031 postinstall_cmds=$lt_postinstall_cmds
17033 # Command to use after uninstallation of a shared archive.
17034 postuninstall_cmds=$lt_postuninstall_cmds
17036 # Commands used to finish a libtool library installation in a directory.
17037 finish_cmds=$lt_finish_cmds
17039 # As "finish_cmds", except a single script fragment to be evaled but
17041 finish_eval=$lt_finish_eval
17043 # Whether we should hardcode library paths into libraries.
17044 hardcode_into_libs=$hardcode_into_libs
17046 # Compile-time system search path for libraries.
17047 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17049 # Run-time system search path for libraries.
17050 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17052 # Whether dlopen is supported.
17053 dlopen_support=$enable_dlopen
17055 # Whether dlopen of programs is supported.
17056 dlopen_self=$enable_dlopen_self
17058 # Whether dlopen of statically linked programs is supported.
17059 dlopen_self_static=$enable_dlopen_self_static
17061 # Commands to strip libraries.
17062 old_striplib=$lt_old_striplib
17063 striplib=$lt_striplib
17066 # The linker used to build libraries.
17069 # How to create reloadable object files.
17070 reload_flag=$lt_reload_flag
17071 reload_cmds=$lt_reload_cmds
17073 # Commands used to build an old-style archive.
17074 old_archive_cmds=$lt_old_archive_cmds
17076 # A language specific compiler.
17079 # Is the compiler the GNU compiler?
17082 # Compiler flag to turn off builtin functions.
17083 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17085 # Additional compiler flags for building library objects.
17086 pic_flag=$lt_lt_prog_compiler_pic
17088 # How to pass a linker flag through the compiler.
17089 wl=$lt_lt_prog_compiler_wl
17091 # Compiler flag to prevent dynamic linking.
17092 link_static_flag=$lt_lt_prog_compiler_static
17094 # Does compiler simultaneously support -c and -o options?
17095 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17097 # Whether or not to add -lc for building shared libraries.
17098 build_libtool_need_lc=$archive_cmds_need_lc
17100 # Whether or not to disallow shared libs when runtime libs are static.
17101 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17103 # Compiler flag to allow reflexive dlopens.
17104 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17106 # Compiler flag to generate shared objects directly from archives.
17107 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17109 # Whether the compiler copes with passing no objects directly.
17110 compiler_needs_object=$lt_compiler_needs_object
17112 # Create an old-style archive from a shared archive.
17113 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17115 # Create a temporary old-style archive to link instead of a shared archive.
17116 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17118 # Commands used to build a shared archive.
17119 archive_cmds=$lt_archive_cmds
17120 archive_expsym_cmds=$lt_archive_expsym_cmds
17122 # Commands used to build a loadable module if different from building
17123 # a shared archive.
17124 module_cmds=$lt_module_cmds
17125 module_expsym_cmds=$lt_module_expsym_cmds
17127 # Whether we are building with GNU ld or not.
17128 with_gnu_ld=$lt_with_gnu_ld
17130 # Flag that allows shared libraries with undefined symbols to be built.
17131 allow_undefined_flag=$lt_allow_undefined_flag
17133 # Flag that enforces no undefined symbols.
17134 no_undefined_flag=$lt_no_undefined_flag
17136 # Flag to hardcode \$libdir into a binary during linking.
17137 # This must work even if \$libdir does not exist
17138 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17140 # Whether we need a single "-rpath" flag with a separated argument.
17141 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17143 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17144 # DIR into the resulting binary.
17145 hardcode_direct=$hardcode_direct
17147 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17148 # DIR into the resulting binary and the resulting library dependency is
17149 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17150 # library is relocated.
17151 hardcode_direct_absolute=$hardcode_direct_absolute
17153 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17154 # into the resulting binary.
17155 hardcode_minus_L=$hardcode_minus_L
17157 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17158 # into the resulting binary.
17159 hardcode_shlibpath_var=$hardcode_shlibpath_var
17161 # Set to "yes" if building a shared library automatically hardcodes DIR
17162 # into the library and all subsequent libraries and executables linked
17164 hardcode_automatic=$hardcode_automatic
17166 # Set to yes if linker adds runtime paths of dependent libraries
17167 # to runtime path list.
17168 inherit_rpath=$inherit_rpath
17170 # Whether libtool must link a program against all its dependency libraries.
17171 link_all_deplibs=$link_all_deplibs
17173 # Set to "yes" if exported symbols are required.
17174 always_export_symbols=$always_export_symbols
17176 # The commands to list exported symbols.
17177 export_symbols_cmds=$lt_export_symbols_cmds
17179 # Symbols that should not be listed in the preloaded symbols.
17180 exclude_expsyms=$lt_exclude_expsyms
17182 # Symbols that must always be exported.
17183 include_expsyms=$lt_include_expsyms
17185 # Commands necessary for linking programs (against libraries) with templates.
17186 prelink_cmds=$lt_prelink_cmds
17188 # Commands necessary for finishing linking programs.
17189 postlink_cmds=$lt_postlink_cmds
17191 # Specify filename containing input files.
17192 file_list_spec=$lt_file_list_spec
17194 # How to hardcode a shared library path into an executable.
17195 hardcode_action=$hardcode_action
17197 # ### END LIBTOOL CONFIG
17203 cat <<\_LT_EOF >> "$cfgfile"
17204 # AIX sometimes has problems with the GCC collect2 program. For some
17205 # reason, if we set the COLLECT_NAMES environment variable, the problems
17206 # vanish in a puff of smoke.
17207 if test "X${COLLECT_NAMES+set}" != Xset; then
17209 export COLLECT_NAMES
17216 ltmain="$ac_aux_dir/ltmain.sh"
17219 # We use sed instead of cat because bash on DJGPP gets confused if
17220 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17221 # text mode, it properly converts lines to CR/LF. This bash problem
17222 # is reportedly fixed, but why not run on old versions too?
17223 sed '$q' "$ltmain" >> "$cfgfile" \
17224 || (rm -f "$cfgfile"; exit 1)
17226 if test x"$xsi_shell" = xyes; then
17227 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17231 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17232 \ * ) func_dirname_result="${3}" ;;\
17234 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17235 && mv -f "$cfgfile.tmp" "$cfgfile" \
17236 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17237 test 0 -eq $? || _lt_function_replace_fail=:
17240 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17243 \ func_basename_result="${1##*/}"\
17244 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17245 && mv -f "$cfgfile.tmp" "$cfgfile" \
17246 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17247 test 0 -eq $? || _lt_function_replace_fail=:
17250 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17251 func_dirname_and_basename ()\
17254 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17255 \ * ) func_dirname_result="${3}" ;;\
17257 \ func_basename_result="${1##*/}"\
17258 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17259 && mv -f "$cfgfile.tmp" "$cfgfile" \
17260 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17261 test 0 -eq $? || _lt_function_replace_fail=:
17264 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17267 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17268 \ # positional parameters, so assign one to ordinary parameter first.\
17269 \ func_stripname_result=${3}\
17270 \ func_stripname_result=${func_stripname_result#"${1}"}\
17271 \ func_stripname_result=${func_stripname_result%"${2}"}\
17272 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17273 && mv -f "$cfgfile.tmp" "$cfgfile" \
17274 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17275 test 0 -eq $? || _lt_function_replace_fail=:
17278 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17279 func_split_long_opt ()\
17281 \ func_split_long_opt_name=${1%%=*}\
17282 \ func_split_long_opt_arg=${1#*=}\
17283 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17284 && mv -f "$cfgfile.tmp" "$cfgfile" \
17285 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17286 test 0 -eq $? || _lt_function_replace_fail=:
17289 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17290 func_split_short_opt ()\
17292 \ func_split_short_opt_arg=${1#??}\
17293 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17294 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17295 && mv -f "$cfgfile.tmp" "$cfgfile" \
17296 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17297 test 0 -eq $? || _lt_function_replace_fail=:
17300 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17304 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17305 \ *) func_lo2o_result=${1} ;;\
17307 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17308 && mv -f "$cfgfile.tmp" "$cfgfile" \
17309 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17310 test 0 -eq $? || _lt_function_replace_fail=:
17313 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17316 func_xform_result=${1%.*}.lo\
17317 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17318 && mv -f "$cfgfile.tmp" "$cfgfile" \
17319 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17320 test 0 -eq $? || _lt_function_replace_fail=:
17323 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17326 func_arith_result=$(( $* ))\
17327 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17328 && mv -f "$cfgfile.tmp" "$cfgfile" \
17329 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17330 test 0 -eq $? || _lt_function_replace_fail=:
17333 sed -e '/^func_len ()$/,/^} # func_len /c\
17336 func_len_result=${#1}\
17337 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17338 && mv -f "$cfgfile.tmp" "$cfgfile" \
17339 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17340 test 0 -eq $? || _lt_function_replace_fail=:
17344 if test x"$lt_shell_append" = xyes; then
17345 sed -e '/^func_append ()$/,/^} # func_append /c\
17348 eval "${1}+=\\${2}"\
17349 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17350 && mv -f "$cfgfile.tmp" "$cfgfile" \
17351 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17352 test 0 -eq $? || _lt_function_replace_fail=:
17355 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17356 func_append_quoted ()\
17358 \ func_quote_for_eval "${2}"\
17359 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17360 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17361 && mv -f "$cfgfile.tmp" "$cfgfile" \
17362 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17363 test 0 -eq $? || _lt_function_replace_fail=:
17366 # Save a `func_append' function call where possible by direct use of '+='
17367 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17368 && mv -f "$cfgfile.tmp" "$cfgfile" \
17369 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17370 test 0 -eq $? || _lt_function_replace_fail=:
17372 # Save a `func_append' function call even when '+=' is not available
17373 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17374 && mv -f "$cfgfile.tmp" "$cfgfile" \
17375 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17376 test 0 -eq $? || _lt_function_replace_fail=:
17379 if test x"$_lt_function_replace_fail" = x":"; then
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17381 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17385 mv -f "$cfgfile" "$ofile" ||
17386 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17397 ac_clean_files=$ac_clean_files_save
17399 test $ac_write_fail = 0 ||
17400 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17403 # configure is writing to config.log, and then calls config.status.
17404 # config.status does its own redirection, appending to config.log.
17405 # Unfortunately, on DOS this fails, as config.log is still kept open
17406 # by configure, so config.status won't be able to write to it; its
17407 # output is simply discarded. So we exec the FD to /dev/null,
17408 # effectively closing config.log, so it can be properly (re)opened and
17409 # appended to by config.status. When coming back to configure, we
17410 # need to make the FD available again.
17411 if test "$no_create" != yes; then
17413 ac_config_status_args=
17414 test "$silent" = yes &&
17415 ac_config_status_args="$ac_config_status_args --quiet"
17417 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17419 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17420 # would make configure fail if this is the last instruction.
17421 $ac_cs_success || as_fn_exit 1
17423 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17425 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}