2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libwebsockets 0.3.
5 # Report bugs to <andy@warmcat.com>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and andy@warmcat.com
250 $0: about your system, including any error possibly output
251 $0: before this message. Then install a modern shell, or
252 $0: manually run the script under such a shell if you do
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
571 PACKAGE_NAME='libwebsockets'
572 PACKAGE_TARNAME='libwebsockets'
573 PACKAGE_VERSION='0.3'
574 PACKAGE_STRING='libwebsockets 0.3'
575 PACKAGE_BUGREPORT='andy@warmcat.com'
578 ac_unique_file="test-server/test-server.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
615 ac_subst_vars='am__EXEEXT_FALSE
678 INSTALL_STRIP_PROGRAM
720 program_transform_name
733 enable_option_checking
738 enable_dependency_tracking
748 ac_precious_vars='build_alias
764 # Initialize some variables set by options.
766 ac_init_version=false
767 ac_unrecognized_opts=
769 # The variables have the same names as the options, with
770 # dashes changed to underlines.
778 program_transform_name=s,x,x,
786 # Installation directory options.
787 # These are left unexpanded so users can "make install exec_prefix=/foo"
788 # and all the variables that are supposed to be based on exec_prefix
789 # by default will actually change.
790 # Use braces instead of parens because sh, perl, etc. also accept them.
791 # (The list follows the same order as the GNU Coding Standards.)
792 bindir='${exec_prefix}/bin'
793 sbindir='${exec_prefix}/sbin'
794 libexecdir='${exec_prefix}/libexec'
795 datarootdir='${prefix}/share'
796 datadir='${datarootdir}'
797 sysconfdir='${prefix}/etc'
798 sharedstatedir='${prefix}/com'
799 localstatedir='${prefix}/var'
800 includedir='${prefix}/include'
801 oldincludedir='/usr/include'
802 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
803 infodir='${datarootdir}/info'
808 libdir='${exec_prefix}/lib'
809 localedir='${datarootdir}/locale'
810 mandir='${datarootdir}/man'
816 # If the previous option needs an argument, assign it.
817 if test -n "$ac_prev"; then
818 eval $ac_prev=\$ac_option
824 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829 # Accept the important Cygnus configure options, so we can diagnose typos.
831 case $ac_dashdash$ac_option in
835 -bindir | --bindir | --bindi | --bind | --bin | --bi)
837 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840 -build | --build | --buil | --bui | --bu)
841 ac_prev=build_alias ;;
842 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
843 build_alias=$ac_optarg ;;
845 -cache-file | --cache-file | --cache-fil | --cache-fi \
846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
847 ac_prev=cache_file ;;
848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
850 cache_file=$ac_optarg ;;
853 cache_file=config.cache ;;
855 -datadir | --datadir | --datadi | --datad)
857 -datadir=* | --datadir=* | --datadi=* | --datad=*)
858 datadir=$ac_optarg ;;
860 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
861 | --dataroo | --dataro | --datar)
862 ac_prev=datarootdir ;;
863 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
864 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
865 datarootdir=$ac_optarg ;;
867 -disable-* | --disable-*)
868 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 as_fn_error $? "invalid feature name: $ac_useropt"
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
881 eval enable_$ac_useropt=no ;;
883 -docdir | --docdir | --docdi | --doc | --do)
885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
893 -enable-* | --enable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error $? "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
907 eval enable_$ac_useropt=\$ac_optarg ;;
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
922 -help | --help | --hel | --he | -h)
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
938 htmldir=$ac_optarg ;;
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
952 -libdir | --libdir | --libdi | --libd)
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
964 -localedir | --localedir | --localedi | --localed | --locale)
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982 # Obsolete; use --without-fp.
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1043 -psdir | --psdir | --psdi | --psd | --ps)
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1056 sbindir=$ac_optarg ;;
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1067 sharedstatedir=$ac_optarg ;;
1069 -site | --site | --sit)
1071 -site=* | --site=* | --sit=*)
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error $? "invalid package name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1111 eval with_$ac_useropt=\$ac_optarg ;;
1113 -without-* | --without-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1127 eval with_$ac_useropt=no ;;
1130 # Obsolete; use --with-x.
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1147 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1148 Try \`$0 --help' for more information"
1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153 # Reject names that are not valid shell variable names.
1154 case $ac_envvar in #(
1155 '' | [0-9]* | *[!_$as_cr_alnum]* )
1156 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1162 # FIXME: should be removed in autoconf 3.0.
1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 as_fn_error $? "missing argument to $ac_option"
1177 if test -n "$ac_unrecognized_opts"; then
1178 case $enable_option_checking in
1180 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1181 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1185 # Check all directory arguments for consistency.
1186 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187 datadir sysconfdir sharedstatedir localstatedir includedir \
1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189 libdir localedir mandir
1191 eval ac_val=\$$ac_var
1192 # Remove trailing slashes.
1195 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1196 eval $ac_var=\$ac_val;;
1198 # Be sure to have absolute directory names.
1200 [\\/$]* | ?:[\\/]* ) continue;;
1201 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1203 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1206 # There might be people who depend on the old broken behavior: `$host'
1207 # used to hold the argument of --host etc.
1208 # FIXME: To remove some day.
1211 target=$target_alias
1213 # FIXME: To remove some day.
1214 if test "x$host_alias" != x; then
1215 if test "x$build_alias" = x; then
1216 cross_compiling=maybe
1217 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1218 If a cross compiler is detected then cross compile mode will be used" >&2
1219 elif test "x$build_alias" != "x$host_alias"; then
1225 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1227 test "$silent" = yes && exec 6>/dev/null
1230 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231 ac_ls_di=`ls -di .` &&
1232 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233 as_fn_error $? "working directory cannot be determined"
1234 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 as_fn_error $? "pwd does not report name of working directory"
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240 ac_srcdir_defaulted=yes
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 $as_echo X"$as_myself" |
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1270 ac_srcdir_defaulted=no
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298 # Report the --help message.
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1304 \`configure' configures libwebsockets 0.3 to adapt to many kinds of systems.
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1311 Defaults for the options are specified in brackets.
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking ...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1335 For better control, use the options below.
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/libwebsockets]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
1362 --program-prefix=PREFIX prepend PREFIX to installed program names
1363 --program-suffix=SUFFIX append SUFFIX to installed program names
1364 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1367 --build=BUILD configure for building on BUILD [guessed]
1368 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1372 if test -n "$ac_init_help"; then
1373 case $ac_init_help in
1374 short | recursive ) echo "Configuration of libwebsockets 0.3:";;
1379 --disable-option-checking ignore unrecognized --enable/--with options
1380 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1381 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1382 --enable-shared[=PKGS] build shared libraries [default=yes]
1383 --enable-static[=PKGS] build static libraries [default=yes]
1384 --enable-fast-install[=PKGS]
1385 optimize for fast installation [default=yes]
1386 --disable-dependency-tracking speeds up one-time build
1387 --enable-dependency-tracking do not reject slow dependency extractors
1388 --disable-libtool-lock avoid locking (might break parallel builds)
1389 --enable-openssl Enables https support and needs openssl libs
1390 --enable-nofork Disables fork-related options
1391 --enable-libcrypto Use libcrypto MD5 and SHA1 implementations
1392 --enable-noping Do not build ping test app, which has some unixy stuff in sources
1395 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1396 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1397 --with-pic try to use only PIC/non-PIC objects [default=use
1399 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1400 --with-sysroot=DIR Search for dependent libraries within DIR
1401 (or the compiler's sysroot if not specified).
1402 --with-client-cert-dir directory containing client certs, defaults to
1405 Some influential environment variables:
1406 CC C compiler command
1407 CFLAGS C compiler flags
1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1409 nonstandard directory <lib dir>
1410 LIBS libraries to pass to the linker, e.g. -l<library>
1411 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1412 you have headers in a nonstandard directory <include dir>
1415 Use these variables to override the choices made by `configure' or to help
1416 it to find libraries and programs with nonstandard names/locations.
1418 Report bugs to <andy@warmcat.com>.
1423 if test "$ac_init_help" = "recursive"; then
1424 # If there are subdirs, report their specific --help.
1425 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1426 test -d "$ac_dir" ||
1427 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1435 # A ".." for each directory in $ac_dir_suffix.
1436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1437 case $ac_top_builddir_sub in
1438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1442 ac_abs_top_builddir=$ac_pwd
1443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1444 # for backward compatibility:
1445 ac_top_builddir=$ac_top_build_prefix
1448 .) # We are building in place.
1450 ac_top_srcdir=$ac_top_builddir_sub
1451 ac_abs_top_srcdir=$ac_pwd ;;
1452 [\\/]* | ?:[\\/]* ) # Absolute name.
1453 ac_srcdir=$srcdir$ac_dir_suffix;
1454 ac_top_srcdir=$srcdir
1455 ac_abs_top_srcdir=$srcdir ;;
1457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1458 ac_top_srcdir=$ac_top_build_prefix$srcdir
1459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1463 cd "$ac_dir" || { ac_status=$?; continue; }
1464 # Check for guested configure.
1465 if test -f "$ac_srcdir/configure.gnu"; then
1467 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1468 elif test -f "$ac_srcdir/configure"; then
1470 $SHELL "$ac_srcdir/configure" --help=recursive
1472 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1474 cd "$ac_pwd" || { ac_status=$?; break; }
1478 test -n "$ac_init_help" && exit $ac_status
1479 if $ac_init_version; then
1481 libwebsockets configure 0.3
1482 generated by GNU Autoconf 2.68
1484 Copyright (C) 2010 Free Software Foundation, Inc.
1485 This configure script is free software; the Free Software Foundation
1486 gives unlimited permission to copy, distribute and modify it.
1491 ## ------------------------ ##
1492 ## Autoconf initialization. ##
1493 ## ------------------------ ##
1495 # ac_fn_c_try_compile LINENO
1496 # --------------------------
1497 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1498 ac_fn_c_try_compile ()
1500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1501 rm -f conftest.$ac_objext
1502 if { { ac_try="$ac_compile"
1504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505 *) ac_try_echo=$ac_try;;
1507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508 $as_echo "$ac_try_echo"; } >&5
1509 (eval "$ac_compile") 2>conftest.err
1511 if test -s conftest.err; then
1512 grep -v '^ *+' conftest.err >conftest.er1
1513 cat conftest.er1 >&5
1514 mv -f conftest.er1 conftest.err
1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517 test $ac_status = 0; } && {
1518 test -z "$ac_c_werror_flag" ||
1519 test ! -s conftest.err
1520 } && test -s conftest.$ac_objext; then :
1523 $as_echo "$as_me: failed program was:" >&5
1524 sed 's/^/| /' conftest.$ac_ext >&5
1528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1529 as_fn_set_status $ac_retval
1531 } # ac_fn_c_try_compile
1533 # ac_fn_c_try_link LINENO
1534 # -----------------------
1535 # Try to link conftest.$ac_ext, and return whether this succeeded.
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext conftest$ac_exeext
1540 if { { ac_try="$ac_link"
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_link") 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_exeext && {
1559 test "$cross_compiling" = yes ||
1560 $as_test_x conftest$ac_exeext
1564 $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1569 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1570 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1571 # interfere with the next link command; also delete a directory that is
1572 # left behind by Apple's compiler. We do this before executing the actions.
1573 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575 as_fn_set_status $ac_retval
1577 } # ac_fn_c_try_link
1579 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1580 # -------------------------------------------------------
1581 # Tests whether HEADER exists and can be compiled using the include files in
1582 # INCLUDES, setting the cache variable VAR accordingly.
1583 ac_fn_c_check_header_compile ()
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1587 $as_echo_n "checking for $2... " >&6; }
1588 if eval \${$3+:} false; then :
1589 $as_echo_n "(cached) " >&6
1591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1592 /* end confdefs.h. */
1596 if ac_fn_c_try_compile "$LINENO"; then :
1601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1605 $as_echo "$ac_res" >&6; }
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 } # ac_fn_c_check_header_compile
1610 # ac_fn_c_try_cpp LINENO
1611 # ----------------------
1612 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 if { { ac_try="$ac_cpp conftest.$ac_ext"
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } > conftest.i && {
1632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1647 # ac_fn_c_try_run LINENO
1648 # ----------------------
1649 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1650 # that executables *can* be run.
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_link"
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_link") 2>&5
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1665 { { case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_try") 2>&5
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; }; }; then :
1677 $as_echo "$as_me: program exited with status $ac_status" >&5
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1681 ac_retval=$ac_status
1683 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1689 # ac_fn_c_check_func LINENO FUNC VAR
1690 # ----------------------------------
1691 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1692 ac_fn_c_check_func ()
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if eval \${$3+:} false; then :
1698 $as_echo_n "(cached) " >&6
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h. */
1702 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1704 #define $2 innocuous_$2
1706 /* System header to define __stub macros and hopefully few prototypes,
1707 which can conflict with char $2 (); below.
1708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1709 <limits.h> exists even on freestanding compilers. */
1712 # include <limits.h>
1714 # include <assert.h>
1719 /* Override any GCC internal prototype to avoid an error.
1720 Use char because int might match the return type of a GCC
1721 builtin and then its argument prototype would still apply. */
1726 /* The GNU C library defines this for functions which it implements
1727 to always fail with ENOSYS. Some functions are actually named
1728 something starting with __ and the normal name is an alias. */
1729 #if defined __stub_$2 || defined __stub___$2
1741 if ac_fn_c_try_link "$LINENO"; then :
1746 rm -f core conftest.err conftest.$ac_objext \
1747 conftest$ac_exeext conftest.$ac_ext
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 } # ac_fn_c_check_func
1756 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1757 # -------------------------------------------
1758 # Tests whether TYPE exists after having included INCLUDES, setting cache
1759 # variable VAR accordingly.
1760 ac_fn_c_check_type ()
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766 $as_echo_n "(cached) " >&6
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1781 if ac_fn_c_try_compile "$LINENO"; then :
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1794 if ac_fn_c_try_compile "$LINENO"; then :
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 } # ac_fn_c_check_type
1810 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1811 # -------------------------------------------------------
1812 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1813 # the include files in INCLUDES and setting the cache variable VAR
1815 ac_fn_c_check_header_mongrel ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if eval \${$3+:} false; then :
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1828 # Is the header compilable?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1830 $as_echo_n "checking $2 usability... " >&6; }
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1836 if ac_fn_c_try_compile "$LINENO"; then :
1837 ac_header_compiler=yes
1839 ac_header_compiler=no
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1843 $as_echo "$ac_header_compiler" >&6; }
1845 # Is the header present?
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1847 $as_echo_n "checking $2 presence... " >&6; }
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1852 if ac_fn_c_try_cpp "$LINENO"; then :
1853 ac_header_preproc=yes
1855 ac_header_preproc=no
1857 rm -f conftest.err conftest.i conftest.$ac_ext
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1859 $as_echo "$ac_header_preproc" >&6; }
1861 # So? What about this header?
1862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1865 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1871 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1873 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1875 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1877 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880 ( $as_echo "## ------------------------------- ##
1881 ## Report this to andy@warmcat.com ##
1882 ## ------------------------------- ##"
1883 ) | sed "s/^/$as_me: WARNING: /" >&2
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1891 eval "$3=\$ac_header_compiler"
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 } # ac_fn_c_check_header_mongrel
1900 cat >config.log <<_ACEOF
1901 This file contains any messages produced by compilers while
1902 running configure, to aid debugging if configure makes a mistake.
1904 It was created by libwebsockets $as_me 0.3, which was
1905 generated by GNU Autoconf 2.68. Invocation command line was
1917 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1918 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1919 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1920 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1921 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1923 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1924 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1926 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1927 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1928 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1929 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1930 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1931 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1932 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940 test -z "$as_dir" && as_dir=.
1941 $as_echo "PATH: $as_dir"
1957 # Keep a trace of the command line.
1958 # Strip out --no-create and --no-recursion so they do not pile up.
1959 # Strip out --silent because we don't want to record it for future runs.
1960 # Also quote any args containing shell meta-characters.
1961 # Make two passes to allow for proper duplicate-argument suppression.
1965 ac_must_keep_next=false
1971 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1972 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1973 | -silent | --silent | --silen | --sile | --sil)
1976 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1979 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1981 as_fn_append ac_configure_args1 " '$ac_arg'"
1982 if test $ac_must_keep_next = true; then
1983 ac_must_keep_next=false # Got value, back to normal.
1986 *=* | --config-cache | -C | -disable-* | --disable-* \
1987 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1988 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1989 | -with-* | --with-* | -without-* | --without-* | --x)
1990 case "$ac_configure_args0 " in
1991 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1994 -* ) ac_must_keep_next=true ;;
1997 as_fn_append ac_configure_args " '$ac_arg'"
2002 { ac_configure_args0=; unset ac_configure_args0;}
2003 { ac_configure_args1=; unset ac_configure_args1;}
2005 # When interrupted or exit'd, cleanup temporary files, and complete
2006 # config.log. We remove comments because anyway the quotes in there
2007 # would cause problems or look ugly.
2008 # WARNING: Use '\'' to represent an apostrophe within the trap.
2009 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2010 trap 'exit_status=$?
2011 # Save into config.log some information that might help in debugging.
2015 $as_echo "## ---------------- ##
2016 ## Cache variables. ##
2017 ## ---------------- ##"
2019 # The following way of writing the cache mishandles newlines in values,
2021 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2022 eval ac_val=\$$ac_var
2026 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2027 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2030 _ | IFS | as_nl) ;; #(
2031 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2032 *) { eval $ac_var=; unset $ac_var;} ;;
2037 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2038 *${as_nl}ac_space=\ *)
2040 "s/'\''/'\''\\\\'\'''\''/g;
2041 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2044 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2051 $as_echo "## ----------------- ##
2052 ## Output variables. ##
2053 ## ----------------- ##"
2055 for ac_var in $ac_subst_vars
2057 eval ac_val=\$$ac_var
2059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061 $as_echo "$ac_var='\''$ac_val'\''"
2065 if test -n "$ac_subst_files"; then
2066 $as_echo "## ------------------- ##
2067 ## File substitutions. ##
2068 ## ------------------- ##"
2070 for ac_var in $ac_subst_files
2072 eval ac_val=\$$ac_var
2074 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076 $as_echo "$ac_var='\''$ac_val'\''"
2081 if test -s confdefs.h; then
2082 $as_echo "## ----------- ##
2089 test "$ac_signal" != 0 &&
2090 $as_echo "$as_me: caught signal $ac_signal"
2091 $as_echo "$as_me: exit $exit_status"
2093 rm -f core *.core core.conftest.* &&
2094 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2097 for ac_signal in 1 2 13 15; do
2098 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2102 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2103 rm -f -r conftest* confdefs.h
2105 $as_echo "/* confdefs.h */" > confdefs.h
2107 # Predefined preprocessor variables.
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_NAME "$PACKAGE_NAME"
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_STRING "$PACKAGE_STRING"
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_URL "$PACKAGE_URL"
2134 # Let the site file select an alternate cache file if it wants to.
2135 # Prefer an explicitly selected file to automatically selected ones.
2138 if test -n "$CONFIG_SITE"; then
2139 # We do not want a PATH search for config.site.
2140 case $CONFIG_SITE in #((
2141 -*) ac_site_file1=./$CONFIG_SITE;;
2142 */*) ac_site_file1=$CONFIG_SITE;;
2143 *) ac_site_file1=./$CONFIG_SITE;;
2145 elif test "x$prefix" != xNONE; then
2146 ac_site_file1=$prefix/share/config.site
2147 ac_site_file2=$prefix/etc/config.site
2149 ac_site_file1=$ac_default_prefix/share/config.site
2150 ac_site_file2=$ac_default_prefix/etc/config.site
2152 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2154 test "x$ac_site_file" = xNONE && continue
2155 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2157 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2158 sed 's/^/| /' "$ac_site_file" >&5
2160 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2162 as_fn_error $? "failed to load site script $ac_site_file
2163 See \`config.log' for more details" "$LINENO" 5; }
2167 if test -r "$cache_file"; then
2168 # Some versions of bash will fail to source /dev/null (special files
2169 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2170 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2172 $as_echo "$as_me: loading cache $cache_file" >&6;}
2174 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2175 *) . "./$cache_file";;
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2180 $as_echo "$as_me: creating cache $cache_file" >&6;}
2184 # Check that the precious variables saved in the cache have kept the same
2186 ac_cache_corrupted=false
2187 for ac_var in $ac_precious_vars; do
2188 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2189 eval ac_new_set=\$ac_env_${ac_var}_set
2190 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2191 eval ac_new_val=\$ac_env_${ac_var}_value
2192 case $ac_old_set,$ac_new_set in
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2195 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2196 ac_cache_corrupted=: ;;
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2199 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2200 ac_cache_corrupted=: ;;
2203 if test "x$ac_old_val" != "x$ac_new_val"; then
2204 # differences in whitespace do not lead to failure.
2205 ac_old_val_w=`echo x $ac_old_val`
2206 ac_new_val_w=`echo x $ac_new_val`
2207 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2209 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2210 ac_cache_corrupted=:
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2213 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2214 eval $ac_var=\$ac_old_val
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2217 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2219 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2222 # Pass precious variables to config.status.
2223 if test "$ac_new_set" = set; then
2225 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2226 *) ac_arg=$ac_var=$ac_new_val ;;
2228 case " $ac_configure_args " in
2229 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2230 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2234 if $ac_cache_corrupted; then
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2238 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2239 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2241 ## -------------------- ##
2242 ## Main body of script. ##
2243 ## -------------------- ##
2246 ac_cpp='$CPP $CPPFLAGS'
2247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2253 ac_config_headers="$ac_config_headers config.h"
2256 am__api_version='1.11'
2259 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2260 if test -f "$ac_dir/install-sh"; then
2262 ac_install_sh="$ac_aux_dir/install-sh -c"
2264 elif test -f "$ac_dir/install.sh"; then
2266 ac_install_sh="$ac_aux_dir/install.sh -c"
2268 elif test -f "$ac_dir/shtool"; then
2270 ac_install_sh="$ac_aux_dir/shtool install -c"
2274 if test -z "$ac_aux_dir"; then
2275 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2278 # These three variables are undocumented and unsupported,
2279 # and are intended to be withdrawn in a future Autoconf release.
2280 # They can cause serious problems if a builder's source tree is in a directory
2281 # whose full name contains unusual characters.
2282 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2283 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2284 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2287 # Find a good install program. We prefer a C program (faster),
2288 # so one script is as good as another. But avoid the broken or
2289 # incompatible versions:
2290 # SysV /etc/install, /usr/sbin/install
2291 # SunOS /usr/etc/install
2292 # IRIX /sbin/install
2294 # AmigaOS /C/install, which installs bootblocks on floppy discs
2295 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2296 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2297 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2298 # OS/2's system install, which has a completely different semantic
2299 # ./install, which can be erroneously created by make from ./install.sh.
2300 # Reject install programs that cannot install multiple files.
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2302 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2303 if test -z "$INSTALL"; then
2304 if ${ac_cv_path_install+:} false; then :
2305 $as_echo_n "(cached) " >&6
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 test -z "$as_dir" && as_dir=.
2312 # Account for people who put trailing slashes in PATH elements.
2313 case $as_dir/ in #((
2314 ./ | .// | /[cC]/* | \
2315 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2316 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2319 # OSF1 and SCO ODT 3.0 have their own names for install.
2320 # Don't use installbsd from OSF since it installs stuff as root
2322 for ac_prog in ginstall scoinst install; do
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2325 if test $ac_prog = install &&
2326 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2327 # AIX install. It has an incompatible calling convention.
2329 elif test $ac_prog = install &&
2330 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2331 # program-specific install script used by HP pwplus--don't use.
2334 rm -rf conftest.one conftest.two conftest.dir
2335 echo one > conftest.one
2336 echo two > conftest.two
2338 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2339 test -s conftest.one && test -s conftest.two &&
2340 test -s conftest.dir/conftest.one &&
2341 test -s conftest.dir/conftest.two
2343 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2356 rm -rf conftest.one conftest.two conftest.dir
2359 if test "${ac_cv_path_install+set}" = set; then
2360 INSTALL=$ac_cv_path_install
2362 # As a last resort, use the slow shell script. Don't cache a
2363 # value for INSTALL within a source directory, because that will
2364 # break other packages using the cache if that directory is
2365 # removed, or if the value is a relative name.
2366 INSTALL=$ac_install_sh
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2370 $as_echo "$INSTALL" >&6; }
2372 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2373 # It thinks the first close brace ends the variable substitution.
2374 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2376 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2378 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2381 $as_echo_n "checking whether build environment is sane... " >&6; }
2384 echo timestamp > conftest.file
2385 # Reject unsafe characters in $srcdir or the absolute working directory
2386 # name. Accept space and tab only in the latter.
2390 *[\\\"\#\$\&\'\`$am_lf]*)
2391 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2394 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2395 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2398 # Do `set' in a subshell so we don't clobber the current shell's
2399 # arguments. Must try -L first in case configure is actually a
2400 # symlink; some systems play weird games with the mod time of symlinks
2401 # (eg FreeBSD returns the mod time of the symlink's containing
2404 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2405 if test "$*" = "X"; then
2407 set X `ls -t "$srcdir/configure" conftest.file`
2410 if test "$*" != "X $srcdir/configure conftest.file" \
2411 && test "$*" != "X conftest.file $srcdir/configure"; then
2413 # If neither matched, then we have a broken ls. This can happen
2414 # if, for instance, CONFIG_SHELL is bash and it inherits a
2415 # broken ls alias from the environment. This has actually
2416 # happened. Such a system could not be considered "sane".
2417 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2418 alias in your environment" "$LINENO" 5
2421 test "$2" = conftest.file
2427 as_fn_error $? "newly created file is older than distributed files!
2428 Check your system clock" "$LINENO" 5
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2431 $as_echo "yes" >&6; }
2432 test "$program_prefix" != NONE &&
2433 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2434 # Use a double $ so make ignores it.
2435 test "$program_suffix" != NONE &&
2436 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2437 # Double any \ or $.
2438 # By default was `s,x,x', remove it if useless.
2439 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2440 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2442 # expand $ac_aux_dir to an absolute path
2443 am_aux_dir=`cd $ac_aux_dir && pwd`
2445 if test x"${MISSING+set}" != xset; then
2448 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2450 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2453 # Use eval to expand $SHELL
2454 if eval "$MISSING --run true"; then
2455 am_missing_run="$MISSING --run "
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2459 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2462 if test x"${install_sh}" != xset; then
2465 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2467 install_sh="\${SHELL} $am_aux_dir/install-sh"
2471 # Installed binaries are usually stripped using `strip' when the user
2472 # run `make install-strip'. However `strip' might not be the right
2473 # tool to use in cross-compilation environments, therefore Automake
2474 # will honor the `STRIP' environment variable to overrule this program.
2475 if test "$cross_compiling" != no; then
2476 if test -n "$ac_tool_prefix"; then
2477 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2478 set dummy ${ac_tool_prefix}strip; ac_word=$2
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2480 $as_echo_n "checking for $ac_word... " >&6; }
2481 if ${ac_cv_prog_STRIP+:} false; then :
2482 $as_echo_n "(cached) " >&6
2484 if test -n "$STRIP"; then
2485 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 STRIP=$ac_cv_prog_STRIP
2505 if test -n "$STRIP"; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2507 $as_echo "$STRIP" >&6; }
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2510 $as_echo "no" >&6; }
2515 if test -z "$ac_cv_prog_STRIP"; then
2517 # Extract the first word of "strip", so it can be a program name with args.
2518 set dummy strip; ac_word=$2
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2520 $as_echo_n "checking for $ac_word... " >&6; }
2521 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2522 $as_echo_n "(cached) " >&6
2524 if test -n "$ac_ct_STRIP"; then
2525 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 test -z "$as_dir" && as_dir=.
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2534 ac_cv_prog_ac_ct_STRIP="strip"
2535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2545 if test -n "$ac_ct_STRIP"; then
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2547 $as_echo "$ac_ct_STRIP" >&6; }
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2550 $as_echo "no" >&6; }
2553 if test "x$ac_ct_STRIP" = x; then
2556 case $cross_compiling:$ac_tool_warned in
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2560 ac_tool_warned=yes ;;
2565 STRIP="$ac_cv_prog_STRIP"
2569 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2572 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2573 if test -z "$MKDIR_P"; then
2574 if ${ac_cv_path_mkdir+:} false; then :
2575 $as_echo_n "(cached) " >&6
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2581 test -z "$as_dir" && as_dir=.
2582 for ac_prog in mkdir gmkdir; do
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2585 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2586 'mkdir (GNU coreutils) '* | \
2587 'mkdir (coreutils) '* | \
2588 'mkdir (fileutils) '4.1*)
2589 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2599 test -d ./--version && rmdir ./--version
2600 if test "${ac_cv_path_mkdir+set}" = set; then
2601 MKDIR_P="$ac_cv_path_mkdir -p"
2603 # As a last resort, use the slow shell script. Don't cache a
2604 # value for MKDIR_P within a source directory, because that will
2605 # break other packages using the cache if that directory is
2606 # removed, or if the value is a relative name.
2607 MKDIR_P="$ac_install_sh -d"
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2611 $as_echo "$MKDIR_P" >&6; }
2615 [\\/$]* | ?:[\\/]*) ;;
2616 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2619 for ac_prog in gawk mawk nawk awk
2621 # Extract the first word of "$ac_prog", so it can be a program name with args.
2622 set dummy $ac_prog; ac_word=$2
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624 $as_echo_n "checking for $ac_word... " >&6; }
2625 if ${ac_cv_prog_AWK+:} false; then :
2626 $as_echo_n "(cached) " >&6
2628 if test -n "$AWK"; then
2629 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638 ac_cv_prog_AWK="$ac_prog"
2639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 if test -n "$AWK"; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2651 $as_echo "$AWK" >&6; }
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654 $as_echo "no" >&6; }
2658 test -n "$AWK" && break
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2662 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2664 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2665 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2666 $as_echo_n "(cached) " >&6
2668 cat >conftest.make <<\_ACEOF
2671 @echo '@@@%%%=$(MAKE)=@@@%%%'
2673 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2674 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2676 eval ac_cv_prog_make_${ac_make}_set=yes;;
2678 eval ac_cv_prog_make_${ac_make}_set=no;;
2682 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2684 $as_echo "yes" >&6; }
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 $as_echo "no" >&6; }
2689 SET_MAKE="MAKE=${MAKE-make}"
2692 rm -rf .tst 2>/dev/null
2693 mkdir .tst 2>/dev/null
2694 if test -d .tst; then
2699 rmdir .tst 2>/dev/null
2701 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2702 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2703 # is not polluted with repeated "-I."
2704 am__isrc=' -I$(srcdir)'
2705 # test to see if srcdir already configured
2706 if test -f $srcdir/config.status; then
2707 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2711 # test whether we have cygpath
2712 if test -z "$CYGPATH_W"; then
2713 if (cygpath --version) >/dev/null 2>/dev/null; then
2714 CYGPATH_W='cygpath -w'
2721 # Define the identity of the package.
2722 PACKAGE='libwebsockets'
2726 cat >>confdefs.h <<_ACEOF
2727 #define PACKAGE "$PACKAGE"
2731 cat >>confdefs.h <<_ACEOF
2732 #define VERSION "$VERSION"
2735 # Some tools Automake needs.
2737 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2740 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2743 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2746 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2749 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2751 # We need awk for the "check" target. The system "awk" is bad on
2753 # Always define AMTAR for backward compatibility.
2755 AMTAR=${AMTAR-"${am_missing_run}tar"}
2757 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2766 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2772 macro_revision='1.3293'
2786 ltmain="$ac_aux_dir/ltmain.sh"
2788 # Make sure we can run config.sub.
2789 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2790 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2793 $as_echo_n "checking build system type... " >&6; }
2794 if ${ac_cv_build+:} false; then :
2795 $as_echo_n "(cached) " >&6
2797 ac_build_alias=$build_alias
2798 test "x$ac_build_alias" = x &&
2799 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2800 test "x$ac_build_alias" = x &&
2801 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2802 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2803 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2807 $as_echo "$ac_cv_build" >&6; }
2808 case $ac_cv_build in
2810 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2813 ac_save_IFS=$IFS; IFS='-'
2819 # Remember, the first character of IFS is used to create $*,
2820 # except with old shells:
2823 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2827 $as_echo_n "checking host system type... " >&6; }
2828 if ${ac_cv_host+:} false; then :
2829 $as_echo_n "(cached) " >&6
2831 if test "x$host_alias" = x; then
2832 ac_cv_host=$ac_cv_build
2834 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2835 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2840 $as_echo "$ac_cv_host" >&6; }
2843 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2846 ac_save_IFS=$IFS; IFS='-'
2852 # Remember, the first character of IFS is used to create $*,
2853 # except with old shells:
2856 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2859 # Backslashify metacharacters that are still active within
2860 # double-quoted strings.
2861 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2863 # Same as above, but do not quote variable references.
2864 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2866 # Sed substitution to delay expansion of an escaped shell variable in a
2867 # double_quote_subst'ed string.
2868 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2870 # Sed substitution to delay expansion of an escaped single quote.
2871 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2873 # Sed substitution to avoid accidental globbing in evaled expressions
2874 no_glob_subst='s/\*/\\\*/g'
2876 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2877 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2878 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2881 $as_echo_n "checking how to print strings... " >&6; }
2882 # Test print first, because it will be a builtin if present.
2883 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2884 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2886 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2889 # Use this function as a fallback that always works.
2890 func_fallback_echo ()
2892 eval 'cat <<_LTECHO_EOF
2896 ECHO='func_fallback_echo'
2899 # func_echo_all arg...
2900 # Invoke $ECHO with all args, space-separated.
2907 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2908 $as_echo "printf" >&6; } ;;
2909 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2910 $as_echo "print -r" >&6; } ;;
2911 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2912 $as_echo "cat" >&6; } ;;
2928 DEPDIR="${am__leading_dot}deps"
2930 ac_config_commands="$ac_config_commands depfiles"
2933 am_make=${MAKE-make}
2934 cat > confinc << 'END'
2936 @echo this is the am__doit target
2939 # If we don't find an include directive, just comment out the code.
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2941 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2945 # First try GNU make style include.
2946 echo "include confinc" > confmf
2947 # Ignore all kinds of additional output from `make'.
2948 case `$am_make -s -f confmf 2> /dev/null` in #(
2949 *the\ am__doit\ target*)
2955 # Now try BSD make style include.
2956 if test "$am__include" = "#"; then
2957 echo '.include "confinc"' > confmf
2958 case `$am_make -s -f confmf 2> /dev/null` in #(
2959 *the\ am__doit\ target*)
2960 am__include=.include
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2969 $as_echo "$_am_result" >&6; }
2970 rm -f confinc confmf
2972 # Check whether --enable-dependency-tracking was given.
2973 if test "${enable_dependency_tracking+set}" = set; then :
2974 enableval=$enable_dependency_tracking;
2977 if test "x$enable_dependency_tracking" != xno; then
2978 am_depcomp="$ac_aux_dir/depcomp"
2981 if test "x$enable_dependency_tracking" != xno; then
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995 if test -n "$ac_tool_prefix"; then
2996 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2997 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_CC+:} false; then :
3001 $as_echo_n "(cached) " >&6
3003 if test -n "$CC"; then
3004 ac_cv_prog_CC="$CC" # Let the user override the test.
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 if test -n "$CC"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026 $as_echo "$CC" >&6; }
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3034 if test -z "$ac_cv_prog_CC"; then
3036 # Extract the first word of "gcc", so it can be a program name with args.
3037 set dummy gcc; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3041 $as_echo_n "(cached) " >&6
3043 if test -n "$ac_ct_CC"; then
3044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053 ac_cv_prog_ac_ct_CC="gcc"
3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3064 if test -n "$ac_ct_CC"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3066 $as_echo "$ac_ct_CC" >&6; }
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3072 if test "x$ac_ct_CC" = x; then
3075 case $cross_compiling:$ac_tool_warned in
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3079 ac_tool_warned=yes ;;
3087 if test -z "$CC"; then
3088 if test -n "$ac_tool_prefix"; then
3089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3090 set dummy ${ac_tool_prefix}cc; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if ${ac_cv_prog_CC+:} false; then :
3094 $as_echo_n "(cached) " >&6
3096 if test -n "$CC"; then
3097 ac_cv_prog_CC="$CC" # Let the user override the test.
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106 ac_cv_prog_CC="${ac_tool_prefix}cc"
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 if test -n "$CC"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119 $as_echo "$CC" >&6; }
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3128 if test -z "$CC"; then
3129 # Extract the first word of "cc", so it can be a program name with args.
3130 set dummy cc; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if ${ac_cv_prog_CC+:} false; then :
3134 $as_echo_n "(cached) " >&6
3136 if test -n "$CC"; then
3137 ac_cv_prog_CC="$CC" # Let the user override the test.
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3148 ac_prog_rejected=yes
3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 if test $ac_prog_rejected = yes; then
3160 # We found a bogon in the path, so make sure we never use it.
3161 set dummy $ac_cv_prog_CC
3163 if test $# != 0; then
3164 # We chose a different compiler from the bogus one.
3165 # However, it has the same basename, so the bogon will be chosen
3166 # first if we set CC to just the basename; use the full file name.
3168 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3174 if test -n "$CC"; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3176 $as_echo "$CC" >&6; }
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3184 if test -z "$CC"; then
3185 if test -n "$ac_tool_prefix"; then
3186 for ac_prog in cl.exe
3188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if ${ac_cv_prog_CC+:} false; then :
3193 $as_echo_n "(cached) " >&6
3195 if test -n "$CC"; then
3196 ac_cv_prog_CC="$CC" # Let the user override the test.
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 if test -n "$CC"; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3218 $as_echo "$CC" >&6; }
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3225 test -n "$CC" && break
3228 if test -z "$CC"; then
3230 for ac_prog in cl.exe
3232 # Extract the first word of "$ac_prog", so it can be a program name with args.
3233 set dummy $ac_prog; ac_word=$2
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235 $as_echo_n "checking for $ac_word... " >&6; }
3236 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3237 $as_echo_n "(cached) " >&6
3239 if test -n "$ac_ct_CC"; then
3240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3249 ac_cv_prog_ac_ct_CC="$ac_prog"
3250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3260 if test -n "$ac_ct_CC"; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3262 $as_echo "$ac_ct_CC" >&6; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3269 test -n "$ac_ct_CC" && break
3272 if test "x$ac_ct_CC" = x; then
3275 case $cross_compiling:$ac_tool_warned in
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3279 ac_tool_warned=yes ;;
3288 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 as_fn_error $? "no acceptable C compiler found in \$PATH
3291 See \`config.log' for more details" "$LINENO" 5; }
3293 # Provide some information about the compiler.
3294 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3297 for ac_option in --version -v -V -qversion; do
3298 { { ac_try="$ac_compiler $ac_option >&5"
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3304 $as_echo "$ac_try_echo"; } >&5
3305 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3307 if test -s conftest.err; then
3309 ... rest of stderr output deleted ...
3310 10q' conftest.err >conftest.er1
3311 cat conftest.er1 >&5
3313 rm -f conftest.er1 conftest.err
3314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3315 test $ac_status = 0; }
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3329 ac_clean_files_save=$ac_clean_files
3330 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3331 # Try to create an executable without -o first, disregard a.out.
3332 # It will help us diagnose broken compilers, and finding out an intuition
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3335 $as_echo_n "checking whether the C compiler works... " >&6; }
3336 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3338 # The possible output files:
3339 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3342 for ac_file in $ac_files
3345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3346 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3351 if { { ac_try="$ac_link_default"
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358 (eval "$ac_link_default") 2>&5
3360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361 test $ac_status = 0; }; then :
3362 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3363 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3364 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3365 # so that the user can short-circuit this test for compilers unknown to
3367 for ac_file in $ac_files ''
3369 test -f "$ac_file" || continue
3371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3374 # We found the default executable, but exeext='' is most
3378 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3380 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3382 # We set ac_cv_exeext here because the later test for it is not
3383 # safe: cross compilers may not add the suffix if given an `-o'
3384 # argument, so we may need to know it at that point already.
3385 # Even if this section looks crufty: it has the advantage of
3392 test "$ac_cv_exeext" = no && ac_cv_exeext=
3397 if test -z "$ac_file"; then :
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3400 $as_echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405 as_fn_error 77 "C compiler cannot create executables
3406 See \`config.log' for more details" "$LINENO" 5; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3409 $as_echo "yes" >&6; }
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3412 $as_echo_n "checking for C compiler default output file name... " >&6; }
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3414 $as_echo "$ac_file" >&6; }
3415 ac_exeext=$ac_cv_exeext
3417 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3418 ac_clean_files=$ac_clean_files_save
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3420 $as_echo_n "checking for suffix of executables... " >&6; }
3421 if { { ac_try="$ac_link"
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428 (eval "$ac_link") 2>&5
3430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431 test $ac_status = 0; }; then :
3432 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3433 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3434 # work properly (i.e., refer to `conftest.exe'), while it won't with
3436 for ac_file in conftest.exe conftest conftest.*; do
3437 test -f "$ac_file" || continue
3439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3440 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3449 See \`config.log' for more details" "$LINENO" 5; }
3451 rm -f conftest conftest$ac_cv_exeext
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3453 $as_echo "$ac_cv_exeext" >&6; }
3455 rm -f conftest.$ac_ext
3456 EXEEXT=$ac_cv_exeext
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3464 FILE *f = fopen ("conftest.out", "w");
3465 return ferror (f) || fclose (f) != 0;
3471 ac_clean_files="$ac_clean_files conftest.out"
3472 # Check that the compiler produces executables we can run. If not, either
3473 # the compiler is broken, or we cross compile.
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3475 $as_echo_n "checking whether we are cross compiling... " >&6; }
3476 if test "$cross_compiling" != yes; then
3477 { { ac_try="$ac_link"
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483 $as_echo "$ac_try_echo"; } >&5
3484 (eval "$ac_link") 2>&5
3486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487 test $ac_status = 0; }
3488 if { ac_try='./conftest$ac_cv_exeext'
3489 { { case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494 $as_echo "$ac_try_echo"; } >&5
3495 (eval "$ac_try") 2>&5
3497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498 test $ac_status = 0; }; }; then
3501 if test "$cross_compiling" = maybe; then
3504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506 as_fn_error $? "cannot run C compiled programs.
3507 If you meant to cross compile, use \`--host'.
3508 See \`config.log' for more details" "$LINENO" 5; }
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3513 $as_echo "$cross_compiling" >&6; }
3515 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3516 ac_clean_files=$ac_clean_files_save
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3518 $as_echo_n "checking for suffix of object files... " >&6; }
3519 if ${ac_cv_objext+:} false; then :
3520 $as_echo_n "(cached) " >&6
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3533 rm -f conftest.o conftest.obj
3534 if { { ac_try="$ac_compile"
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3540 $as_echo "$ac_try_echo"; } >&5
3541 (eval "$ac_compile") 2>&5
3543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3544 test $ac_status = 0; }; then :
3545 for ac_file in conftest.o conftest.obj conftest.*; do
3546 test -f "$ac_file" || continue;
3548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3549 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3554 $as_echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 as_fn_error $? "cannot compute suffix of object files: cannot compile
3560 See \`config.log' for more details" "$LINENO" 5; }
3562 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3565 $as_echo "$ac_cv_objext" >&6; }
3566 OBJEXT=$ac_cv_objext
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3569 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3570 if ${ac_cv_c_compiler_gnu+:} false; then :
3571 $as_echo_n "(cached) " >&6
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3587 if ac_fn_c_try_compile "$LINENO"; then :
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3597 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3598 if test $ac_compiler_gnu = yes; then
3603 ac_test_CFLAGS=${CFLAGS+set}
3604 ac_save_CFLAGS=$CFLAGS
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3606 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3607 if ${ac_cv_prog_cc_g+:} false; then :
3608 $as_echo_n "(cached) " >&6
3610 ac_save_c_werror_flag=$ac_c_werror_flag
3611 ac_c_werror_flag=yes
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3625 if ac_fn_c_try_compile "$LINENO"; then :
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3640 if ac_fn_c_try_compile "$LINENO"; then :
3643 ac_c_werror_flag=$ac_save_c_werror_flag
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3656 if ac_fn_c_try_compile "$LINENO"; then :
3659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664 ac_c_werror_flag=$ac_save_c_werror_flag
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3667 $as_echo "$ac_cv_prog_cc_g" >&6; }
3668 if test "$ac_test_CFLAGS" = set; then
3669 CFLAGS=$ac_save_CFLAGS
3670 elif test $ac_cv_prog_cc_g = yes; then
3671 if test "$GCC" = yes; then
3677 if test "$GCC" = yes; then
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3684 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3685 if ${ac_cv_prog_cc_c89+:} false; then :
3686 $as_echo_n "(cached) " >&6
3688 ac_cv_prog_cc_c89=no
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3694 #include <sys/types.h>
3695 #include <sys/stat.h>
3696 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3697 struct buf { int x; };
3698 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3699 static char *e (p, i)
3705 static char *f (char * (*g) (char **, int), char **p, ...)
3710 s = g (p, va_arg (v,int));
3715 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3716 function prototypes and stuff, but not '\xHH' hex character constants.
3717 These don't provoke an error unfortunately, instead are silently treated
3718 as 'x'. The following induces an error, until -std is added to get
3719 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3720 array size at least. It's necessary to write '\x00'==0 to get something
3721 that's true only with -std. */
3722 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3724 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3725 inside strings and character constants. */
3727 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3729 int test (int i, double x);
3730 struct s1 {int (*f) (int a);};
3731 struct s2 {int (*f) (double a);};
3732 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3738 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3743 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3744 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3746 CC="$ac_save_CC $ac_arg"
3747 if ac_fn_c_try_compile "$LINENO"; then :
3748 ac_cv_prog_cc_c89=$ac_arg
3750 rm -f core conftest.err conftest.$ac_objext
3751 test "x$ac_cv_prog_cc_c89" != "xno" && break
3753 rm -f conftest.$ac_ext
3758 case "x$ac_cv_prog_cc_c89" in
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3761 $as_echo "none needed" >&6; } ;;
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3764 $as_echo "unsupported" >&6; } ;;
3766 CC="$CC $ac_cv_prog_cc_c89"
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3768 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3770 if test "x$ac_cv_prog_cc_c89" != xno; then :
3775 ac_cpp='$CPP $CPPFLAGS'
3776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3780 depcc="$CC" am_compiler_list=
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3783 $as_echo_n "checking dependency style of $depcc... " >&6; }
3784 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3785 $as_echo_n "(cached) " >&6
3787 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3788 # We make a subdir and do the tests there. Otherwise we can end up
3789 # making bogus files that we don't know about and never remove. For
3790 # instance it was reported that on HP-UX the gcc test will end up
3791 # making a dummy file named `D' -- because `-MD' means `put the output
3794 # Copy depcomp to subdir because otherwise we won't find it if we're
3795 # using a relative directory.
3796 cp "$am_depcomp" conftest.dir
3798 # We will build objects and dependencies in a subdirectory because
3799 # it helps to detect inapplicable dependency modes. For instance
3800 # both Tru64's cc and ICC support -MD to output dependencies as a
3801 # side effect of compilation, but ICC will put the dependencies in
3802 # the current directory while Tru64 will put them in the object
3806 am_cv_CC_dependencies_compiler_type=none
3807 if test "$am_compiler_list" = ""; then
3808 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3811 case " $depcc " in #(
3812 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3815 for depmode in $am_compiler_list; do
3816 # Setup a source with many dependencies, because some compilers
3817 # like to wrap large dependency lists on column 80 (with \), and
3818 # we should not choose a depcomp mode which is confused by this.
3820 # We need to recreate these files for each test, as the compiler may
3821 # overwrite some of them when testing with obscure command lines.
3822 # This happens at least with the AIX C compiler.
3824 for i in 1 2 3 4 5 6; do
3825 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3826 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3827 # Solaris 8's {/usr,}/bin/sh.
3828 touch sub/conftst$i.h
3830 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3832 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3833 # mode. It turns out that the SunPro C++ compiler does not properly
3834 # handle `-M -o', and we need to detect this. Also, some Intel
3835 # versions had trouble with output in subdirs
3836 am__obj=sub/conftest.${OBJEXT-o}
3837 am__minus_obj="-o $am__obj"
3840 # This depmode causes a compiler race in universal mode.
3841 test "$am__universal" = false || continue
3844 # after this tag, mechanisms are not by side-effect, so they'll
3845 # only be used when explicitly requested
3846 if test "x$enable_dependency_tracking" = xyes; then
3852 msvisualcpp | msvcmsys)
3853 # This compiler won't grok `-c -o', but also, the minuso test has
3854 # not run yet. These depmodes are late enough in the game, and
3855 # so weak that their functioning should not be impacted.
3856 am__obj=conftest.${OBJEXT-o}
3861 if depmode=$depmode \
3862 source=sub/conftest.c object=$am__obj \
3863 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3864 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3865 >/dev/null 2>conftest.err &&
3866 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3867 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3868 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3869 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3870 # icc doesn't choke on unknown options, it will just issue warnings
3871 # or remarks (even with -Werror). So we grep stderr for any message
3872 # that says an option was ignored or not supported.
3873 # When given -MP, icc 7.0 and 7.1 complain thusly:
3874 # icc: Command line warning: ignoring option '-M'; no argument required
3875 # The diagnosis changed in icc 8.0:
3876 # icc: Command line remark: option '-MP' not supported
3877 if (grep 'ignoring option' conftest.err ||
3878 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3879 am_cv_CC_dependencies_compiler_type=$depmode
3888 am_cv_CC_dependencies_compiler_type=none
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3893 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3894 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3897 test "x$enable_dependency_tracking" != xno \
3898 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3900 am__fastdepCC_FALSE='#'
3902 am__fastdepCC_TRUE='#'
3903 am__fastdepCC_FALSE=
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3908 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3909 if ${ac_cv_path_SED+:} false; then :
3910 $as_echo_n "(cached) " >&6
3912 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3913 for ac_i in 1 2 3 4 5 6 7; do
3914 ac_script="$ac_script$as_nl$ac_script"
3916 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3917 { ac_script=; unset ac_script;}
3918 if test -z "$SED"; then
3919 ac_path_SED_found=false
3920 # Loop through the user's path and test for each of PROGNAME-LIST
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 test -z "$as_dir" && as_dir=.
3926 for ac_prog in sed gsed; do
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3929 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3930 # Check for GNU ac_path_SED and select it if it is found.
3931 # Check for GNU $ac_path_SED
3932 case `"$ac_path_SED" --version 2>&1` in
3934 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3937 $as_echo_n 0123456789 >"conftest.in"
3940 cat "conftest.in" "conftest.in" >"conftest.tmp"
3941 mv "conftest.tmp" "conftest.in"
3942 cp "conftest.in" "conftest.nl"
3943 $as_echo '' >> "conftest.nl"
3944 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3946 as_fn_arith $ac_count + 1 && ac_count=$as_val
3947 if test $ac_count -gt ${ac_path_SED_max-0}; then
3948 # Best one so far, save it but keep looking for a better one
3949 ac_cv_path_SED="$ac_path_SED"
3950 ac_path_SED_max=$ac_count
3952 # 10*(2^10) chars as input seems more than enough
3953 test $ac_count -gt 10 && break
3955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3958 $ac_path_SED_found && break 3
3963 if test -z "$ac_cv_path_SED"; then
3964 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3972 $as_echo "$ac_cv_path_SED" >&6; }
3973 SED="$ac_cv_path_SED"
3976 test -z "$SED" && SED=sed
3977 Xsed="$SED -e 1s/^X//"
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3990 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3991 if ${ac_cv_path_GREP+:} false; then :
3992 $as_echo_n "(cached) " >&6
3994 if test -z "$GREP"; then
3995 ac_path_GREP_found=false
3996 # Loop through the user's path and test for each of PROGNAME-LIST
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4001 test -z "$as_dir" && as_dir=.
4002 for ac_prog in grep ggrep; do
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4005 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4006 # Check for GNU ac_path_GREP and select it if it is found.
4007 # Check for GNU $ac_path_GREP
4008 case `"$ac_path_GREP" --version 2>&1` in
4010 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4013 $as_echo_n 0123456789 >"conftest.in"
4016 cat "conftest.in" "conftest.in" >"conftest.tmp"
4017 mv "conftest.tmp" "conftest.in"
4018 cp "conftest.in" "conftest.nl"
4019 $as_echo 'GREP' >> "conftest.nl"
4020 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4022 as_fn_arith $ac_count + 1 && ac_count=$as_val
4023 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4024 # Best one so far, save it but keep looking for a better one
4025 ac_cv_path_GREP="$ac_path_GREP"
4026 ac_path_GREP_max=$ac_count
4028 # 10*(2^10) chars as input seems more than enough
4029 test $ac_count -gt 10 && break
4031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4034 $ac_path_GREP_found && break 3
4039 if test -z "$ac_cv_path_GREP"; then
4040 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4043 ac_cv_path_GREP=$GREP
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4048 $as_echo "$ac_cv_path_GREP" >&6; }
4049 GREP="$ac_cv_path_GREP"
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4053 $as_echo_n "checking for egrep... " >&6; }
4054 if ${ac_cv_path_EGREP+:} false; then :
4055 $as_echo_n "(cached) " >&6
4057 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4058 then ac_cv_path_EGREP="$GREP -E"
4060 if test -z "$EGREP"; then
4061 ac_path_EGREP_found=false
4062 # Loop through the user's path and test for each of PROGNAME-LIST
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4067 test -z "$as_dir" && as_dir=.
4068 for ac_prog in egrep; do
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4071 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4072 # Check for GNU ac_path_EGREP and select it if it is found.
4073 # Check for GNU $ac_path_EGREP
4074 case `"$ac_path_EGREP" --version 2>&1` in
4076 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4079 $as_echo_n 0123456789 >"conftest.in"
4082 cat "conftest.in" "conftest.in" >"conftest.tmp"
4083 mv "conftest.tmp" "conftest.in"
4084 cp "conftest.in" "conftest.nl"
4085 $as_echo 'EGREP' >> "conftest.nl"
4086 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4088 as_fn_arith $ac_count + 1 && ac_count=$as_val
4089 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4090 # Best one so far, save it but keep looking for a better one
4091 ac_cv_path_EGREP="$ac_path_EGREP"
4092 ac_path_EGREP_max=$ac_count
4094 # 10*(2^10) chars as input seems more than enough
4095 test $ac_count -gt 10 && break
4097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4100 $ac_path_EGREP_found && break 3
4105 if test -z "$ac_cv_path_EGREP"; then
4106 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4109 ac_cv_path_EGREP=$EGREP
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4115 $as_echo "$ac_cv_path_EGREP" >&6; }
4116 EGREP="$ac_cv_path_EGREP"
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4120 $as_echo_n "checking for fgrep... " >&6; }
4121 if ${ac_cv_path_FGREP+:} false; then :
4122 $as_echo_n "(cached) " >&6
4124 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4125 then ac_cv_path_FGREP="$GREP -F"
4127 if test -z "$FGREP"; then
4128 ac_path_FGREP_found=false
4129 # Loop through the user's path and test for each of PROGNAME-LIST
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4134 test -z "$as_dir" && as_dir=.
4135 for ac_prog in fgrep; do
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4138 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4139 # Check for GNU ac_path_FGREP and select it if it is found.
4140 # Check for GNU $ac_path_FGREP
4141 case `"$ac_path_FGREP" --version 2>&1` in
4143 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4146 $as_echo_n 0123456789 >"conftest.in"
4149 cat "conftest.in" "conftest.in" >"conftest.tmp"
4150 mv "conftest.tmp" "conftest.in"
4151 cp "conftest.in" "conftest.nl"
4152 $as_echo 'FGREP' >> "conftest.nl"
4153 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4155 as_fn_arith $ac_count + 1 && ac_count=$as_val
4156 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4157 # Best one so far, save it but keep looking for a better one
4158 ac_cv_path_FGREP="$ac_path_FGREP"
4159 ac_path_FGREP_max=$ac_count
4161 # 10*(2^10) chars as input seems more than enough
4162 test $ac_count -gt 10 && break
4164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4167 $ac_path_FGREP_found && break 3
4172 if test -z "$ac_cv_path_FGREP"; then
4173 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4176 ac_cv_path_FGREP=$FGREP
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4182 $as_echo "$ac_cv_path_FGREP" >&6; }
4183 FGREP="$ac_cv_path_FGREP"
4186 test -z "$GREP" && GREP=grep
4206 # Check whether --with-gnu-ld was given.
4207 if test "${with_gnu_ld+set}" = set; then :
4208 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4214 if test "$GCC" = yes; then
4215 # Check if gcc -print-prog-name=ld gives a path.
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4217 $as_echo_n "checking for ld used by $CC... " >&6; }
4220 # gcc leaves a trailing carriage return which upsets mingw
4221 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4223 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4226 # Accept absolute paths.
4228 re_direlt='/[^/][^/]*/\.\./'
4229 # Canonicalize the pathname of ld
4230 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4231 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4232 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4234 test -z "$LD" && LD="$ac_prog"
4237 # If it fails, then pretend we aren't using GCC.
4241 # If it is relative, then search for the first ld in PATH.
4245 elif test "$with_gnu_ld" = yes; then
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4247 $as_echo_n "checking for GNU ld... " >&6; }
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4250 $as_echo_n "checking for non-GNU ld... " >&6; }
4252 if ${lt_cv_path_LD+:} false; then :
4253 $as_echo_n "(cached) " >&6
4255 if test -z "$LD"; then
4256 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4257 for ac_dir in $PATH; do
4259 test -z "$ac_dir" && ac_dir=.
4260 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4261 lt_cv_path_LD="$ac_dir/$ac_prog"
4262 # Check to see if the program is GNU ld. I'd rather use --version,
4263 # but apparently some variants of GNU ld only accept -v.
4264 # Break only if it was the GNU/non-GNU ld that we prefer.
4265 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4266 *GNU* | *'with BFD'*)
4267 test "$with_gnu_ld" != no && break
4270 test "$with_gnu_ld" != yes && break
4277 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4282 if test -n "$LD"; then
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4284 $as_echo "$LD" >&6; }
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4287 $as_echo "no" >&6; }
4289 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4291 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4292 if ${lt_cv_prog_gnu_ld+:} false; then :
4293 $as_echo_n "(cached) " >&6
4295 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4296 case `$LD -v 2>&1 </dev/null` in
4297 *GNU* | *'with BFD'*)
4298 lt_cv_prog_gnu_ld=yes
4301 lt_cv_prog_gnu_ld=no
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4306 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4307 with_gnu_ld=$lt_cv_prog_gnu_ld
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4318 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4319 if ${lt_cv_path_NM+:} false; then :
4320 $as_echo_n "(cached) " >&6
4322 if test -n "$NM"; then
4323 # Let the user override the test.
4326 lt_nm_to_check="${ac_tool_prefix}nm"
4327 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4328 lt_nm_to_check="$lt_nm_to_check nm"
4330 for lt_tmp_nm in $lt_nm_to_check; do
4331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4332 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4334 test -z "$ac_dir" && ac_dir=.
4335 tmp_nm="$ac_dir/$lt_tmp_nm"
4336 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4337 # Check to see if the nm accepts a BSD-compat flag.
4338 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4339 # nm: unknown option "B" ignored
4340 # Tru64's nm complains that /dev/null is an invalid object file
4341 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4342 */dev/null* | *'Invalid file or object type'*)
4343 lt_cv_path_NM="$tmp_nm -B"
4347 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4349 lt_cv_path_NM="$tmp_nm -p"
4353 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4354 continue # so that we can try to find one that supports BSD flags
4363 : ${lt_cv_path_NM=no}
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4367 $as_echo "$lt_cv_path_NM" >&6; }
4368 if test "$lt_cv_path_NM" != "no"; then
4371 # Didn't find any BSD compatible name lister, look for dumpbin.
4372 if test -n "$DUMPBIN"; then :
4373 # Let the user override the test.
4375 if test -n "$ac_tool_prefix"; then
4376 for ac_prog in dumpbin "link -dump"
4378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4379 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4381 $as_echo_n "checking for $ac_word... " >&6; }
4382 if ${ac_cv_prog_DUMPBIN+:} false; then :
4383 $as_echo_n "(cached) " >&6
4385 if test -n "$DUMPBIN"; then
4386 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4395 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 DUMPBIN=$ac_cv_prog_DUMPBIN
4406 if test -n "$DUMPBIN"; then
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4408 $as_echo "$DUMPBIN" >&6; }
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4411 $as_echo "no" >&6; }
4415 test -n "$DUMPBIN" && break
4418 if test -z "$DUMPBIN"; then
4419 ac_ct_DUMPBIN=$DUMPBIN
4420 for ac_prog in dumpbin "link -dump"
4422 # Extract the first word of "$ac_prog", so it can be a program name with args.
4423 set dummy $ac_prog; ac_word=$2
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425 $as_echo_n "checking for $ac_word... " >&6; }
4426 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4427 $as_echo_n "(cached) " >&6
4429 if test -n "$ac_ct_DUMPBIN"; then
4430 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4439 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4450 if test -n "$ac_ct_DUMPBIN"; then
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4452 $as_echo "$ac_ct_DUMPBIN" >&6; }
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455 $as_echo "no" >&6; }
4459 test -n "$ac_ct_DUMPBIN" && break
4462 if test "x$ac_ct_DUMPBIN" = x; then
4465 case $cross_compiling:$ac_tool_warned in
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4469 ac_tool_warned=yes ;;
4471 DUMPBIN=$ac_ct_DUMPBIN
4475 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4477 DUMPBIN="$DUMPBIN -symbols"
4485 if test "$DUMPBIN" != ":"; then
4489 test -z "$NM" && NM=nm
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4497 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4498 if ${lt_cv_nm_interface+:} false; then :
4499 $as_echo_n "(cached) " >&6
4501 lt_cv_nm_interface="BSD nm"
4502 echo "int some_variable = 0;" > conftest.$ac_ext
4503 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4504 (eval "$ac_compile" 2>conftest.err)
4505 cat conftest.err >&5
4506 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4507 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4508 cat conftest.err >&5
4509 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4510 cat conftest.out >&5
4511 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4512 lt_cv_nm_interface="MS dumpbin"
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4517 $as_echo "$lt_cv_nm_interface" >&6; }
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4520 $as_echo_n "checking whether ln -s works... " >&6; }
4522 if test "$LN_S" = "ln -s"; then
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4524 $as_echo "yes" >&6; }
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4527 $as_echo "no, using $LN_S" >&6; }
4530 # find the maximum length of command line arguments
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4532 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4533 if ${lt_cv_sys_max_cmd_len+:} false; then :
4534 $as_echo_n "(cached) " >&6
4541 # On DJGPP, this test can blow up pretty badly due to problems in libc
4542 # (any single argument exceeding 2000 bytes causes a buffer overrun
4543 # during glob expansion). Even if it were fixed, the result of this
4544 # check would be larger than it should be.
4545 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4549 # Under GNU Hurd, this test is not required because there is
4550 # no limit to the length of command line arguments.
4551 # Libtool will interpret -1 as no limit whatsoever
4552 lt_cv_sys_max_cmd_len=-1;
4555 cygwin* | mingw* | cegcc*)
4556 # On Win9x/ME, this test blows up -- it succeeds, but takes
4557 # about 5 minutes as the teststring grows exponentially.
4558 # Worse, since 9x/ME are not pre-emptively multitasking,
4559 # you end up with a "frozen" computer, even though with patience
4560 # the test eventually succeeds (with a max line length of 256k).
4561 # Instead, let's just punt: use the minimum linelength reported by
4562 # all of the supported platforms: 8192 (on NT/2K/XP).
4563 lt_cv_sys_max_cmd_len=8192;
4567 # On MiNT this can take a long time and run out of memory.
4568 lt_cv_sys_max_cmd_len=8192;
4572 # On AmigaOS with pdksh, this test takes hours, literally.
4573 # So we just punt and use a minimum line length of 8192.
4574 lt_cv_sys_max_cmd_len=8192;
4577 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4578 # This has been around since 386BSD, at least. Likely further.
4579 if test -x /sbin/sysctl; then
4580 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4581 elif test -x /usr/sbin/sysctl; then
4582 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4584 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4586 # And add a safety zone
4587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4592 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4593 lt_cv_sys_max_cmd_len=196608
4597 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4598 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4599 # nice to cause kernel panics so lets avoid the loop below.
4600 # First set a reasonable default.
4601 lt_cv_sys_max_cmd_len=16384
4603 if test -x /sbin/sysconfig; then
4604 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4605 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4610 lt_cv_sys_max_cmd_len=102400
4612 sysv5* | sco5v6* | sysv4.2uw2*)
4613 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4614 if test -n "$kargmax"; then
4615 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4617 lt_cv_sys_max_cmd_len=32768
4621 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4622 if test -n "$lt_cv_sys_max_cmd_len"; then
4623 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4624 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4626 # Make teststring a little bigger before we do anything with it.
4627 # a 1K string should be a reasonable start.
4628 for i in 1 2 3 4 5 6 7 8 ; do
4629 teststring=$teststring$teststring
4631 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4632 # If test is not a shell built-in, we'll probably end up computing a
4633 # maximum length that is only half of the actual maximum length, but
4635 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4636 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4637 test $i != 17 # 1/2 MB should be enough
4640 teststring=$teststring$teststring
4642 # Only check the string length outside the loop.
4643 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4645 # Add a significant safety factor because C++ compilers can tack on
4646 # massive amounts of additional arguments before passing them to the
4647 # linker. It appears as though 1/2 is a usable value.
4648 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4655 if test -n $lt_cv_sys_max_cmd_len ; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4657 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4660 $as_echo "none" >&6; }
4662 max_cmd_len=$lt_cv_sys_max_cmd_len
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4674 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4675 # Try some XSI features
4678 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4680 && eval 'test $(( 1 + 1 )) -eq 2 \
4681 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4684 $as_echo "$xsi_shell" >&6; }
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4688 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4690 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4692 && lt_shell_append=yes
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4694 $as_echo "$lt_shell_append" >&6; }
4697 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4707 # test EBCDIC or ASCII
4708 case `echo X|tr X '\101'` in
4709 A) # ASCII based system
4710 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4711 lt_SP2NL='tr \040 \012'
4712 lt_NL2SP='tr \015\012 \040\040'
4714 *) # EBCDIC based system
4715 lt_SP2NL='tr \100 \n'
4716 lt_NL2SP='tr \r\n \100\100'
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4729 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4730 if ${lt_cv_to_host_file_cmd+:} false; then :
4731 $as_echo_n "(cached) " >&6
4736 *-*-mingw* ) # actually msys
4737 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4740 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4742 * ) # otherwise, assume *nix
4743 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4749 *-*-mingw* ) # actually msys
4750 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4753 lt_cv_to_host_file_cmd=func_convert_file_noop
4755 * ) # otherwise, assume *nix
4756 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4760 * ) # unhandled hosts (and "normal" native builds)
4761 lt_cv_to_host_file_cmd=func_convert_file_noop
4767 to_host_file_cmd=$lt_cv_to_host_file_cmd
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4769 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4776 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4777 if ${lt_cv_to_tool_file_cmd+:} false; then :
4778 $as_echo_n "(cached) " >&6
4780 #assume ordinary cross tools, or native build.
4781 lt_cv_to_tool_file_cmd=func_convert_file_noop
4785 *-*-mingw* ) # actually msys
4786 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4794 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4796 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4803 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4804 if ${lt_cv_ld_reload_flag+:} false; then :
4805 $as_echo_n "(cached) " >&6
4807 lt_cv_ld_reload_flag='-r'
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4810 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4811 reload_flag=$lt_cv_ld_reload_flag
4812 case $reload_flag in
4814 *) reload_flag=" $reload_flag" ;;
4816 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4818 cygwin* | mingw* | pw32* | cegcc*)
4819 if test "$GCC" != yes; then
4824 if test "$GCC" = yes; then
4825 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4827 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4840 if test -n "$ac_tool_prefix"; then
4841 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4842 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_prog_OBJDUMP+:} false; then :
4846 $as_echo_n "(cached) " >&6
4848 if test -n "$OBJDUMP"; then
4849 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 OBJDUMP=$ac_cv_prog_OBJDUMP
4869 if test -n "$OBJDUMP"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4871 $as_echo "$OBJDUMP" >&6; }
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4879 if test -z "$ac_cv_prog_OBJDUMP"; then
4880 ac_ct_OBJDUMP=$OBJDUMP
4881 # Extract the first word of "objdump", so it can be a program name with args.
4882 set dummy objdump; ac_word=$2
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4884 $as_echo_n "checking for $ac_word... " >&6; }
4885 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4886 $as_echo_n "(cached) " >&6
4888 if test -n "$ac_ct_OBJDUMP"; then
4889 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4909 if test -n "$ac_ct_OBJDUMP"; then
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4911 $as_echo "$ac_ct_OBJDUMP" >&6; }
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914 $as_echo "no" >&6; }
4917 if test "x$ac_ct_OBJDUMP" = x; then
4920 case $cross_compiling:$ac_tool_warned in
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4924 ac_tool_warned=yes ;;
4926 OBJDUMP=$ac_ct_OBJDUMP
4929 OBJDUMP="$ac_cv_prog_OBJDUMP"
4932 test -z "$OBJDUMP" && OBJDUMP=objdump
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4943 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4944 if ${lt_cv_deplibs_check_method+:} false; then :
4945 $as_echo_n "(cached) " >&6
4947 lt_cv_file_magic_cmd='$MAGIC_CMD'
4948 lt_cv_file_magic_test_file=
4949 lt_cv_deplibs_check_method='unknown'
4950 # Need to set the preceding variable on all platforms that support
4951 # interlibrary dependencies.
4952 # 'none' -- dependencies not supported.
4953 # `unknown' -- same as none, but documents that we really don't know.
4954 # 'pass_all' -- all dependencies passed with no checks.
4955 # 'test_compile' -- check by making test program.
4956 # 'file_magic [[regex]]' -- check by looking for files in library path
4957 # which responds to the $file_magic_cmd with a given extended regex.
4958 # If you have `file' or equivalent on your system and you're not sure
4959 # whether `pass_all' will *always* work, you probably want this one.
4963 lt_cv_deplibs_check_method=pass_all
4967 lt_cv_deplibs_check_method=pass_all
4971 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4972 lt_cv_file_magic_cmd='/usr/bin/file -L'
4973 lt_cv_file_magic_test_file=/shlib/libc.so
4977 # func_win32_libid is a shell function defined in ltmain.sh
4978 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4979 lt_cv_file_magic_cmd='func_win32_libid'
4983 # Base MSYS/MinGW do not provide the 'file' command needed by
4984 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4985 # unless we find 'file', for example because we are cross-compiling.
4986 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4987 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4988 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4989 lt_cv_file_magic_cmd='func_win32_libid'
4991 # Keep this pattern in sync with the one in func_win32_libid.
4992 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4993 lt_cv_file_magic_cmd='$OBJDUMP -f'
4998 # use the weaker test based on 'objdump'. See mingw*.
4999 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5000 lt_cv_file_magic_cmd='$OBJDUMP -f'
5003 darwin* | rhapsody*)
5004 lt_cv_deplibs_check_method=pass_all
5007 freebsd* | dragonfly*)
5008 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5011 # Not sure whether the presence of OpenBSD here was a mistake.
5012 # Let's accept both of them until this is cleared up.
5013 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5014 lt_cv_file_magic_cmd=/usr/bin/file
5015 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5019 lt_cv_deplibs_check_method=pass_all
5024 lt_cv_deplibs_check_method=pass_all
5028 lt_cv_deplibs_check_method=pass_all
5031 hpux10.20* | hpux11*)
5032 lt_cv_file_magic_cmd=/usr/bin/file
5035 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5036 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5039 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]'
5040 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5043 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5044 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5050 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5054 irix5* | irix6* | nonstopux*)
5056 *-32|*"-32 ") libmagic=32-bit;;
5057 *-n32|*"-n32 ") libmagic=N32;;
5058 *-64|*"-64 ") libmagic=64-bit;;
5059 *) libmagic=never-match;;
5061 lt_cv_deplibs_check_method=pass_all
5064 # This must be Linux ELF.
5065 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5066 lt_cv_deplibs_check_method=pass_all
5070 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5078 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5079 lt_cv_file_magic_cmd=/usr/bin/file
5080 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5084 lt_cv_deplibs_check_method=pass_all
5088 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5095 osf3* | osf4* | osf5*)
5096 lt_cv_deplibs_check_method=pass_all
5100 lt_cv_deplibs_check_method=pass_all
5104 lt_cv_deplibs_check_method=pass_all
5107 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5108 lt_cv_deplibs_check_method=pass_all
5112 case $host_vendor in
5114 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]'
5115 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5118 lt_cv_deplibs_check_method=pass_all
5121 lt_cv_file_magic_cmd='/bin/file'
5122 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5125 lt_cv_file_magic_cmd='/bin/file'
5126 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5127 lt_cv_file_magic_test_file=/lib/libc.so
5130 lt_cv_deplibs_check_method=pass_all
5133 lt_cv_deplibs_check_method=pass_all
5139 lt_cv_deplibs_check_method=pass_all
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5145 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5149 if test "$build" = "$host"; then
5152 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5155 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5161 file_magic_cmd=$lt_cv_file_magic_cmd
5162 deplibs_check_method=$lt_cv_deplibs_check_method
5163 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5186 if test -n "$ac_tool_prefix"; then
5187 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5188 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190 $as_echo_n "checking for $ac_word... " >&6; }
5191 if ${ac_cv_prog_DLLTOOL+:} false; then :
5192 $as_echo_n "(cached) " >&6
5194 if test -n "$DLLTOOL"; then
5195 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5204 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 DLLTOOL=$ac_cv_prog_DLLTOOL
5215 if test -n "$DLLTOOL"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5217 $as_echo "$DLLTOOL" >&6; }
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5225 if test -z "$ac_cv_prog_DLLTOOL"; then
5226 ac_ct_DLLTOOL=$DLLTOOL
5227 # Extract the first word of "dlltool", so it can be a program name with args.
5228 set dummy dlltool; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5232 $as_echo_n "(cached) " >&6
5234 if test -n "$ac_ct_DLLTOOL"; then
5235 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5244 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5255 if test -n "$ac_ct_DLLTOOL"; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5257 $as_echo "$ac_ct_DLLTOOL" >&6; }
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5263 if test "x$ac_ct_DLLTOOL" = x; then
5266 case $cross_compiling:$ac_tool_warned in
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5270 ac_tool_warned=yes ;;
5272 DLLTOOL=$ac_ct_DLLTOOL
5275 DLLTOOL="$ac_cv_prog_DLLTOOL"
5278 test -z "$DLLTOOL" && DLLTOOL=dlltool
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5290 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5291 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5292 $as_echo_n "(cached) " >&6
5294 lt_cv_sharedlib_from_linklib_cmd='unknown'
5297 cygwin* | mingw* | pw32* | cegcc*)
5298 # two different shell functions defined in ltmain.sh
5299 # decide which to use based on capabilities of $DLLTOOL
5300 case `$DLLTOOL --help 2>&1` in
5301 *--identify-strict*)
5302 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5305 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5310 # fallback: assume linklib IS sharedlib
5311 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5317 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5318 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5319 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5328 if test -n "$ac_tool_prefix"; then
5331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if ${ac_cv_prog_AR+:} false; then :
5336 $as_echo_n "(cached) " >&6
5338 if test -n "$AR"; then
5339 ac_cv_prog_AR="$AR" # Let the user override the test.
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 if test -n "$AR"; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5361 $as_echo "$AR" >&6; }
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5368 test -n "$AR" && break
5371 if test -z "$AR"; then
5375 # Extract the first word of "$ac_prog", so it can be a program name with args.
5376 set dummy $ac_prog; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5380 $as_echo_n "(cached) " >&6
5382 if test -n "$ac_ct_AR"; then
5383 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5392 ac_cv_prog_ac_ct_AR="$ac_prog"
5393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5403 if test -n "$ac_ct_AR"; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5405 $as_echo "$ac_ct_AR" >&6; }
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5412 test -n "$ac_ct_AR" && break
5415 if test "x$ac_ct_AR" = x; then
5418 case $cross_compiling:$ac_tool_warned in
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5422 ac_tool_warned=yes ;;
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5442 $as_echo_n "checking for archiver @FILE support... " >&6; }
5443 if ${lt_cv_ar_at_file+:} false; then :
5444 $as_echo_n "(cached) " >&6
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5458 if ac_fn_c_try_compile "$LINENO"; then :
5459 echo conftest.$ac_objext > conftest.lst
5460 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5462 (eval $lt_ar_try) 2>&5
5464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5465 test $ac_status = 0; }
5466 if test "$ac_status" -eq 0; then
5467 # Ensure the archiver fails upon bogus file names.
5468 rm -f conftest.$ac_objext libconftest.a
5469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5470 (eval $lt_ar_try) 2>&5
5472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5473 test $ac_status = 0; }
5474 if test "$ac_status" -ne 0; then
5478 rm -f conftest.* libconftest.a
5481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5485 $as_echo "$lt_cv_ar_at_file" >&6; }
5487 if test "x$lt_cv_ar_at_file" = xno; then
5490 archiver_list_spec=$lt_cv_ar_at_file
5499 if test -n "$ac_tool_prefix"; then
5500 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5501 set dummy ${ac_tool_prefix}strip; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if ${ac_cv_prog_STRIP+:} false; then :
5505 $as_echo_n "(cached) " >&6
5507 if test -n "$STRIP"; then
5508 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 STRIP=$ac_cv_prog_STRIP
5528 if test -n "$STRIP"; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5530 $as_echo "$STRIP" >&6; }
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5538 if test -z "$ac_cv_prog_STRIP"; then
5540 # Extract the first word of "strip", so it can be a program name with args.
5541 set dummy strip; ac_word=$2
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5543 $as_echo_n "checking for $ac_word... " >&6; }
5544 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5545 $as_echo_n "(cached) " >&6
5547 if test -n "$ac_ct_STRIP"; then
5548 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 test -z "$as_dir" && as_dir=.
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5557 ac_cv_prog_ac_ct_STRIP="strip"
5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5568 if test -n "$ac_ct_STRIP"; then
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5570 $as_echo "$ac_ct_STRIP" >&6; }
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; }
5576 if test "x$ac_ct_STRIP" = x; then
5579 case $cross_compiling:$ac_tool_warned in
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5583 ac_tool_warned=yes ;;
5588 STRIP="$ac_cv_prog_STRIP"
5591 test -z "$STRIP" && STRIP=:
5598 if test -n "$ac_tool_prefix"; then
5599 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5600 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_RANLIB+:} false; then :
5604 $as_echo_n "(cached) " >&6
5606 if test -n "$RANLIB"; then
5607 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 RANLIB=$ac_cv_prog_RANLIB
5627 if test -n "$RANLIB"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5629 $as_echo "$RANLIB" >&6; }
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5637 if test -z "$ac_cv_prog_RANLIB"; then
5638 ac_ct_RANLIB=$RANLIB
5639 # Extract the first word of "ranlib", so it can be a program name with args.
5640 set dummy ranlib; ac_word=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5644 $as_echo_n "(cached) " >&6
5646 if test -n "$ac_ct_RANLIB"; then
5647 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5656 ac_cv_prog_ac_ct_RANLIB="ranlib"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5667 if test -n "$ac_ct_RANLIB"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5669 $as_echo "$ac_ct_RANLIB" >&6; }
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5675 if test "x$ac_ct_RANLIB" = x; then
5678 case $cross_compiling:$ac_tool_warned in
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5682 ac_tool_warned=yes ;;
5684 RANLIB=$ac_ct_RANLIB
5687 RANLIB="$ac_cv_prog_RANLIB"
5690 test -z "$RANLIB" && RANLIB=:
5697 # Determine commands to create old-style static archives.
5698 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5699 old_postinstall_cmds='chmod 644 $oldlib'
5700 old_postuninstall_cmds=
5702 if test -n "$RANLIB"; then
5705 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5708 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5711 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5716 lock_old_archive_extraction=yes ;;
5718 lock_old_archive_extraction=no ;;
5759 # If no C compiler was specified, use CC.
5762 # If no C compiler flags were specified, use CFLAGS.
5763 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5765 # Allow CC to be a program name with arguments.
5769 # Check for command to grab the raw symbol name followed by C symbol from nm.
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5771 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5772 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5773 $as_echo_n "(cached) " >&6
5776 # These are sane defaults that work on at least a few old systems.
5777 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5779 # Character class describing NM global symbol codes.
5780 symcode='[BCDEGRST]'
5782 # Regexp to match symbols that can be accessed directly from C.
5783 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5785 # Define system-specific variables.
5790 cygwin* | mingw* | pw32* | cegcc*)
5791 symcode='[ABCDGISTW]'
5794 if test "$host_cpu" = ia64; then
5795 symcode='[ABCDEGRST]'
5799 symcode='[BCDEGRST]'
5802 symcode='[BCDEGQRST]'
5813 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5821 # If we're using GNU nm, then use its standard symbol codes.
5822 case `$NM -V 2>&1` in
5823 *GNU* | *'with BFD'*)
5824 symcode='[ABCDGIRSTW]' ;;
5827 # Transform an extracted symbol line into a proper C declaration.
5828 # Some systems (esp. on ia64) link data and code symbols differently,
5829 # so use this general approach.
5830 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5832 # Transform an extracted symbol line into symbol name and symbol address
5833 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5834 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'"
5836 # Handle CRLF in mingw tool chain
5840 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5844 # Try without a prefix underscore, then with it.
5845 for ac_symprfx in "" "_"; do
5847 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5848 symxfrm="\\1 $ac_symprfx\\2 \\2"
5850 # Write the raw and C identifiers.
5851 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5852 # Fake it for dumpbin and say T for any non-static function
5853 # and D for any global variable.
5854 # Also find C++ and __fastcall symbols from MSVC++,
5855 # which start with @ or ?.
5856 lt_cv_sys_global_symbol_pipe="$AWK '"\
5857 " {last_section=section; section=\$ 3};"\
5858 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5859 " \$ 0!~/External *\|/{next};"\
5860 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5861 " {if(hide[section]) next};"\
5862 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5863 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5864 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5865 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5866 " ' prfx=^$ac_symprfx"
5868 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5870 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5872 # Check to see that the pipe works correctly.
5876 cat > conftest.$ac_ext <<_LT_EOF
5881 void nm_test_func(void);
5882 void nm_test_func(void){}
5886 int main(){nm_test_var='a';nm_test_func();return(0);}
5889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5890 (eval $ac_compile) 2>&5
5892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5893 test $ac_status = 0; }; then
5894 # Now try to grab the symbols.
5896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5897 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5900 test $ac_status = 0; } && test -s "$nlist"; then
5901 # Try sorting and uniquifying the output.
5902 if sort "$nlist" | uniq > "$nlist"T; then
5903 mv -f "$nlist"T "$nlist"
5908 # Make sure that we snagged all the symbols we need.
5909 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5910 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5911 cat <<_LT_EOF > conftest.$ac_ext
5912 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5913 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5914 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5915 relocations are performed -- see ld's documentation on pseudo-relocs. */
5916 # define LT_DLSYM_CONST
5917 #elif defined(__osf__)
5918 /* This system does not cope well with relocations in const data. */
5919 # define LT_DLSYM_CONST
5921 # define LT_DLSYM_CONST const
5929 # Now generate the symbol file.
5930 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5932 cat <<_LT_EOF >> conftest.$ac_ext
5934 /* The mapping between symbol names and symbols. */
5935 LT_DLSYM_CONST struct {
5939 lt__PROGRAM__LTX_preloaded_symbols[] =
5941 { "@PROGRAM@", (void *) 0 },
5943 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5944 cat <<\_LT_EOF >> conftest.$ac_ext
5948 /* This works around a problem in FreeBSD linker */
5949 #ifdef FREEBSD_WORKAROUND
5950 static const void *lt_preloaded_setup() {
5951 return lt__PROGRAM__LTX_preloaded_symbols;
5959 # Now try linking the two files.
5960 mv conftest.$ac_objext conftstm.$ac_objext
5961 lt_globsym_save_LIBS=$LIBS
5962 lt_globsym_save_CFLAGS=$CFLAGS
5963 LIBS="conftstm.$ac_objext"
5964 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5966 (eval $ac_link) 2>&5
5968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5969 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5972 LIBS=$lt_globsym_save_LIBS
5973 CFLAGS=$lt_globsym_save_CFLAGS
5975 echo "cannot find nm_test_func in $nlist" >&5
5978 echo "cannot find nm_test_var in $nlist" >&5
5981 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5984 echo "$progname: failed program was:" >&5
5985 cat conftest.$ac_ext >&5
5987 rm -rf conftest* conftst*
5989 # Do not use the global_symbol_pipe unless it works.
5990 if test "$pipe_works" = yes; then
5993 lt_cv_sys_global_symbol_pipe=
5999 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6000 lt_cv_sys_global_symbol_to_cdecl=
6002 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6004 $as_echo "failed" >&6; }
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6007 $as_echo "ok" >&6; }
6010 # Response file support.
6011 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6012 nm_file_list_spec='@'
6013 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6014 nm_file_list_spec='@'
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6044 $as_echo_n "checking for sysroot... " >&6; }
6046 # Check whether --with-sysroot was given.
6047 if test "${with_sysroot+set}" = set; then :
6048 withval=$with_sysroot;
6055 case ${with_sysroot} in #(
6057 if test "$GCC" = yes; then
6058 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6062 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6068 $as_echo "${with_sysroot}" >&6; }
6069 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6074 $as_echo "${lt_sysroot:-no}" >&6; }
6080 # Check whether --enable-libtool-lock was given.
6081 if test "${enable_libtool_lock+set}" = set; then :
6082 enableval=$enable_libtool_lock;
6085 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6087 # Some flags need to be propagated to the compiler or linker for good
6091 # Find out which ABI we are using.
6092 echo 'int i;' > conftest.$ac_ext
6093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6094 (eval $ac_compile) 2>&5
6096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6097 test $ac_status = 0; }; then
6098 case `/usr/bin/file conftest.$ac_objext` in
6110 # Find out which ABI we are using.
6111 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6113 (eval $ac_compile) 2>&5
6115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116 test $ac_status = 0; }; then
6117 if test "$lt_cv_prog_gnu_ld" = yes; then
6118 case `/usr/bin/file conftest.$ac_objext` in
6120 LD="${LD-ld} -melf32bsmip"
6123 LD="${LD-ld} -melf32bmipn32"
6126 LD="${LD-ld} -melf64bmip"
6130 case `/usr/bin/file conftest.$ac_objext` in
6146 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6147 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6148 # Find out which ABI we are using.
6149 echo 'int i;' > conftest.$ac_ext
6150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6151 (eval $ac_compile) 2>&5
6153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6154 test $ac_status = 0; }; then
6155 case `/usr/bin/file conftest.o` in
6158 x86_64-*kfreebsd*-gnu)
6159 LD="${LD-ld} -m elf_i386_fbsd"
6162 LD="${LD-ld} -m elf_i386"
6164 ppc64-*linux*|powerpc64-*linux*)
6165 LD="${LD-ld} -m elf32ppclinux"
6168 LD="${LD-ld} -m elf_s390"
6171 LD="${LD-ld} -m elf32_sparc"
6177 x86_64-*kfreebsd*-gnu)
6178 LD="${LD-ld} -m elf_x86_64_fbsd"
6181 LD="${LD-ld} -m elf_x86_64"
6183 ppc*-*linux*|powerpc*-*linux*)
6184 LD="${LD-ld} -m elf64ppc"
6186 s390*-*linux*|s390*-*tpf*)
6187 LD="${LD-ld} -m elf64_s390"
6190 LD="${LD-ld} -m elf64_sparc"
6200 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6201 SAVE_CFLAGS="$CFLAGS"
6202 CFLAGS="$CFLAGS -belf"
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6204 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6205 if ${lt_cv_cc_needs_belf+:} false; then :
6206 $as_echo_n "(cached) " >&6
6209 ac_cpp='$CPP $CPPFLAGS'
6210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h. */
6225 if ac_fn_c_try_link "$LINENO"; then :
6226 lt_cv_cc_needs_belf=yes
6228 lt_cv_cc_needs_belf=no
6230 rm -f core conftest.err conftest.$ac_objext \
6231 conftest$ac_exeext conftest.$ac_ext
6233 ac_cpp='$CPP $CPPFLAGS'
6234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6240 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6241 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6242 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6243 CFLAGS="$SAVE_CFLAGS"
6247 # Find out which ABI we are using.
6248 echo 'int i;' > conftest.$ac_ext
6249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6250 (eval $ac_compile) 2>&5
6252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6253 test $ac_status = 0; }; then
6254 case `/usr/bin/file conftest.o` in
6256 case $lt_cv_prog_gnu_ld in
6257 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6259 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6271 need_locks="$enable_libtool_lock"
6273 if test -n "$ac_tool_prefix"; then
6274 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6275 set dummy ${ac_tool_prefix}mt; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6279 $as_echo_n "(cached) " >&6
6281 if test -n "$MANIFEST_TOOL"; then
6282 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6302 if test -n "$MANIFEST_TOOL"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6304 $as_echo "$MANIFEST_TOOL" >&6; }
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6312 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6313 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6314 # Extract the first word of "mt", so it can be a program name with args.
6315 set dummy mt; ac_word=$2
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6319 $as_echo_n "(cached) " >&6
6321 if test -n "$ac_ct_MANIFEST_TOOL"; then
6322 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6342 if test -n "$ac_ct_MANIFEST_TOOL"; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6344 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6350 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6353 case $cross_compiling:$ac_tool_warned in
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6357 ac_tool_warned=yes ;;
6359 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6362 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6365 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6367 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6368 if ${lt_cv_path_mainfest_tool+:} false; then :
6369 $as_echo_n "(cached) " >&6
6371 lt_cv_path_mainfest_tool=no
6372 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6373 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6374 cat conftest.err >&5
6375 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6376 lt_cv_path_mainfest_tool=yes
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6381 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6382 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6392 rhapsody* | darwin*)
6393 if test -n "$ac_tool_prefix"; then
6394 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6395 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6397 $as_echo_n "checking for $ac_word... " >&6; }
6398 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6399 $as_echo_n "(cached) " >&6
6401 if test -n "$DSYMUTIL"; then
6402 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6411 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6422 if test -n "$DSYMUTIL"; then
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6424 $as_echo "$DSYMUTIL" >&6; }
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427 $as_echo "no" >&6; }
6432 if test -z "$ac_cv_prog_DSYMUTIL"; then
6433 ac_ct_DSYMUTIL=$DSYMUTIL
6434 # Extract the first word of "dsymutil", so it can be a program name with args.
6435 set dummy dsymutil; ac_word=$2
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6437 $as_echo_n "checking for $ac_word... " >&6; }
6438 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6439 $as_echo_n "(cached) " >&6
6441 if test -n "$ac_ct_DSYMUTIL"; then
6442 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 test -z "$as_dir" && as_dir=.
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6451 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6462 if test -n "$ac_ct_DSYMUTIL"; then
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6464 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 $as_echo "no" >&6; }
6470 if test "x$ac_ct_DSYMUTIL" = x; then
6473 case $cross_compiling:$ac_tool_warned in
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6477 ac_tool_warned=yes ;;
6479 DSYMUTIL=$ac_ct_DSYMUTIL
6482 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6485 if test -n "$ac_tool_prefix"; then
6486 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6487 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if ${ac_cv_prog_NMEDIT+:} false; then :
6491 $as_echo_n "(cached) " >&6
6493 if test -n "$NMEDIT"; then
6494 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6503 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 NMEDIT=$ac_cv_prog_NMEDIT
6514 if test -n "$NMEDIT"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6516 $as_echo "$NMEDIT" >&6; }
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6524 if test -z "$ac_cv_prog_NMEDIT"; then
6525 ac_ct_NMEDIT=$NMEDIT
6526 # Extract the first word of "nmedit", so it can be a program name with args.
6527 set dummy nmedit; ac_word=$2
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 $as_echo_n "checking for $ac_word... " >&6; }
6530 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6531 $as_echo_n "(cached) " >&6
6533 if test -n "$ac_ct_NMEDIT"; then
6534 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 test -z "$as_dir" && as_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6543 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6554 if test -n "$ac_ct_NMEDIT"; then
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6556 $as_echo "$ac_ct_NMEDIT" >&6; }
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6562 if test "x$ac_ct_NMEDIT" = x; then
6565 case $cross_compiling:$ac_tool_warned in
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6569 ac_tool_warned=yes ;;
6571 NMEDIT=$ac_ct_NMEDIT
6574 NMEDIT="$ac_cv_prog_NMEDIT"
6577 if test -n "$ac_tool_prefix"; then
6578 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6579 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if ${ac_cv_prog_LIPO+:} false; then :
6583 $as_echo_n "(cached) " >&6
6585 if test -n "$LIPO"; then
6586 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6595 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 LIPO=$ac_cv_prog_LIPO
6606 if test -n "$LIPO"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6608 $as_echo "$LIPO" >&6; }
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6616 if test -z "$ac_cv_prog_LIPO"; then
6618 # Extract the first word of "lipo", so it can be a program name with args.
6619 set dummy lipo; ac_word=$2
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 $as_echo_n "checking for $ac_word... " >&6; }
6622 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6623 $as_echo_n "(cached) " >&6
6625 if test -n "$ac_ct_LIPO"; then
6626 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6635 ac_cv_prog_ac_ct_LIPO="lipo"
6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6646 if test -n "$ac_ct_LIPO"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6648 $as_echo "$ac_ct_LIPO" >&6; }
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651 $as_echo "no" >&6; }
6654 if test "x$ac_ct_LIPO" = x; then
6657 case $cross_compiling:$ac_tool_warned in
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6661 ac_tool_warned=yes ;;
6666 LIPO="$ac_cv_prog_LIPO"
6669 if test -n "$ac_tool_prefix"; then
6670 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6671 set dummy ${ac_tool_prefix}otool; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if ${ac_cv_prog_OTOOL+:} false; then :
6675 $as_echo_n "(cached) " >&6
6677 if test -n "$OTOOL"; then
6678 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6687 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 OTOOL=$ac_cv_prog_OTOOL
6698 if test -n "$OTOOL"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6700 $as_echo "$OTOOL" >&6; }
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6708 if test -z "$ac_cv_prog_OTOOL"; then
6710 # Extract the first word of "otool", so it can be a program name with args.
6711 set dummy otool; ac_word=$2
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713 $as_echo_n "checking for $ac_word... " >&6; }
6714 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6715 $as_echo_n "(cached) " >&6
6717 if test -n "$ac_ct_OTOOL"; then
6718 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6727 ac_cv_prog_ac_ct_OTOOL="otool"
6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6738 if test -n "$ac_ct_OTOOL"; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6740 $as_echo "$ac_ct_OTOOL" >&6; }
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6746 if test "x$ac_ct_OTOOL" = x; then
6749 case $cross_compiling:$ac_tool_warned in
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6753 ac_tool_warned=yes ;;
6758 OTOOL="$ac_cv_prog_OTOOL"
6761 if test -n "$ac_tool_prefix"; then
6762 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6763 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if ${ac_cv_prog_OTOOL64+:} false; then :
6767 $as_echo_n "(cached) " >&6
6769 if test -n "$OTOOL64"; then
6770 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 OTOOL64=$ac_cv_prog_OTOOL64
6790 if test -n "$OTOOL64"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6792 $as_echo "$OTOOL64" >&6; }
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6800 if test -z "$ac_cv_prog_OTOOL64"; then
6801 ac_ct_OTOOL64=$OTOOL64
6802 # Extract the first word of "otool64", so it can be a program name with args.
6803 set dummy otool64; ac_word=$2
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805 $as_echo_n "checking for $ac_word... " >&6; }
6806 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6807 $as_echo_n "(cached) " >&6
6809 if test -n "$ac_ct_OTOOL64"; then
6810 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6819 ac_cv_prog_ac_ct_OTOOL64="otool64"
6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6830 if test -n "$ac_ct_OTOOL64"; then
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6832 $as_echo "$ac_ct_OTOOL64" >&6; }
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835 $as_echo "no" >&6; }
6838 if test "x$ac_ct_OTOOL64" = x; then
6841 case $cross_compiling:$ac_tool_warned in
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845 ac_tool_warned=yes ;;
6847 OTOOL64=$ac_ct_OTOOL64
6850 OTOOL64="$ac_cv_prog_OTOOL64"
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6880 $as_echo_n "checking for -single_module linker flag... " >&6; }
6881 if ${lt_cv_apple_cc_single_mod+:} false; then :
6882 $as_echo_n "(cached) " >&6
6884 lt_cv_apple_cc_single_mod=no
6885 if test -z "${LT_MULTI_MODULE}"; then
6886 # By default we will add the -single_module flag. You can override
6887 # by either setting the environment variable LT_MULTI_MODULE
6888 # non-empty at configure time, or by adding -multi_module to the
6890 rm -rf libconftest.dylib*
6891 echo "int foo(void){return 1;}" > conftest.c
6892 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6893 -dynamiclib -Wl,-single_module conftest.c" >&5
6894 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6895 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6897 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6898 lt_cv_apple_cc_single_mod=yes
6900 cat conftest.err >&5
6902 rm -rf libconftest.dylib*
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6907 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6909 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6910 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6911 $as_echo_n "(cached) " >&6
6913 lt_cv_ld_exported_symbols_list=no
6914 save_LDFLAGS=$LDFLAGS
6915 echo "_main" > conftest.sym
6916 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h. */
6928 if ac_fn_c_try_link "$LINENO"; then :
6929 lt_cv_ld_exported_symbols_list=yes
6931 lt_cv_ld_exported_symbols_list=no
6933 rm -f core conftest.err conftest.$ac_objext \
6934 conftest$ac_exeext conftest.$ac_ext
6935 LDFLAGS="$save_LDFLAGS"
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6939 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6941 $as_echo_n "checking for -force_load linker flag... " >&6; }
6942 if ${lt_cv_ld_force_load+:} false; then :
6943 $as_echo_n "(cached) " >&6
6945 lt_cv_ld_force_load=no
6946 cat > conftest.c << _LT_EOF
6947 int forced_loaded() { return 2;}
6949 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6950 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6951 echo "$AR cru libconftest.a conftest.o" >&5
6952 $AR cru libconftest.a conftest.o 2>&5
6953 echo "$RANLIB libconftest.a" >&5
6954 $RANLIB libconftest.a 2>&5
6955 cat > conftest.c << _LT_EOF
6956 int main() { return 0;}
6958 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6959 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6961 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6962 lt_cv_ld_force_load=yes
6964 cat conftest.err >&5
6966 rm -f conftest.err libconftest.a conftest conftest.c
6967 rm -rf conftest.dSYM
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6971 $as_echo "$lt_cv_ld_force_load" >&6; }
6973 rhapsody* | darwin1.[012])
6974 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6976 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6977 darwin*) # darwin 5.x on
6978 # if running on 10.5 or later, the deployment target defaults
6979 # to the OS version, if on x86, and 10.4, the deployment
6980 # target defaults to 10.4. Don't you love it?
6981 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6982 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6983 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6985 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6987 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6991 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6992 _lt_dar_single_mod='$single_module'
6994 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6995 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6997 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6999 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7000 _lt_dsymutil='~$DSYMUTIL $lib || :'
7008 ac_cpp='$CPP $CPPFLAGS'
7009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7013 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7014 # On Suns, sometimes $CPP names a directory.
7015 if test -n "$CPP" && test -d "$CPP"; then
7018 if test -z "$CPP"; then
7019 if ${ac_cv_prog_CPP+:} false; then :
7020 $as_echo_n "(cached) " >&6
7022 # Double quotes because CPP needs to be expanded
7023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7026 for ac_c_preproc_warn_flag in '' yes
7028 # Use a header file that comes with gcc, so configuring glibc
7029 # with a fresh cross-compiler works.
7030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7031 # <limits.h> exists even on freestanding compilers.
7032 # On the NeXT, cc -E runs the code through the compiler's parser,
7033 # not just through cpp. "Syntax error" is here to catch this case.
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7037 # include <limits.h>
7039 # include <assert.h>
7043 if ac_fn_c_try_cpp "$LINENO"; then :
7046 # Broken: fails on valid input.
7049 rm -f conftest.err conftest.i conftest.$ac_ext
7051 # OK, works on sane cases. Now check whether nonexistent headers
7052 # can be detected and how.
7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7055 #include <ac_nonexistent.h>
7057 if ac_fn_c_try_cpp "$LINENO"; then :
7058 # Broken: success on invalid input.
7061 # Passes both tests.
7065 rm -f conftest.err conftest.i conftest.$ac_ext
7068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7069 rm -f conftest.i conftest.err conftest.$ac_ext
7070 if $ac_preproc_ok; then :
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7083 $as_echo "$CPP" >&6; }
7085 for ac_c_preproc_warn_flag in '' yes
7087 # Use a header file that comes with gcc, so configuring glibc
7088 # with a fresh cross-compiler works.
7089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7090 # <limits.h> exists even on freestanding compilers.
7091 # On the NeXT, cc -E runs the code through the compiler's parser,
7092 # not just through cpp. "Syntax error" is here to catch this case.
7093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094 /* end confdefs.h. */
7096 # include <limits.h>
7098 # include <assert.h>
7102 if ac_fn_c_try_cpp "$LINENO"; then :
7105 # Broken: fails on valid input.
7108 rm -f conftest.err conftest.i conftest.$ac_ext
7110 # OK, works on sane cases. Now check whether nonexistent headers
7111 # can be detected and how.
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7114 #include <ac_nonexistent.h>
7116 if ac_fn_c_try_cpp "$LINENO"; then :
7117 # Broken: success on invalid input.
7120 # Passes both tests.
7124 rm -f conftest.err conftest.i conftest.$ac_ext
7127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7128 rm -f conftest.i conftest.err conftest.$ac_ext
7129 if $ac_preproc_ok; then :
7132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7134 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7135 See \`config.log' for more details" "$LINENO" 5; }
7139 ac_cpp='$CPP $CPPFLAGS'
7140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7146 $as_echo_n "checking for ANSI C header files... " >&6; }
7147 if ${ac_cv_header_stdc+:} false; then :
7148 $as_echo_n "(cached) " >&6
7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7165 if ac_fn_c_try_compile "$LINENO"; then :
7166 ac_cv_header_stdc=yes
7168 ac_cv_header_stdc=no
7170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172 if test $ac_cv_header_stdc = yes; then
7173 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7180 $EGREP "memchr" >/dev/null 2>&1; then :
7183 ac_cv_header_stdc=no
7189 if test $ac_cv_header_stdc = yes; then
7190 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7197 $EGREP "free" >/dev/null 2>&1; then :
7200 ac_cv_header_stdc=no
7206 if test $ac_cv_header_stdc = yes; then
7207 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7208 if test "$cross_compiling" = yes; then :
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7215 #if ((' ' & 0x0FF) == 0x020)
7216 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7217 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7219 # define ISLOWER(c) \
7220 (('a' <= (c) && (c) <= 'i') \
7221 || ('j' <= (c) && (c) <= 'r') \
7222 || ('s' <= (c) && (c) <= 'z'))
7223 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7226 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7231 for (i = 0; i < 256; i++)
7232 if (XOR (islower (i), ISLOWER (i))
7233 || toupper (i) != TOUPPER (i))
7238 if ac_fn_c_try_run "$LINENO"; then :
7241 ac_cv_header_stdc=no
7243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7244 conftest.$ac_objext conftest.beam conftest.$ac_ext
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7250 $as_echo "$ac_cv_header_stdc" >&6; }
7251 if test $ac_cv_header_stdc = yes; then
7253 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7257 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7258 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7259 inttypes.h stdint.h unistd.h
7261 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7262 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7264 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7265 cat >>confdefs.h <<_ACEOF
7266 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7274 for ac_header in dlfcn.h
7276 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7278 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7279 cat >>confdefs.h <<_ACEOF
7280 #define HAVE_DLFCN_H 1
7292 # Check whether --enable-shared was given.
7293 if test "${enable_shared+set}" = set; then :
7294 enableval=$enable_shared; p=${PACKAGE-default}
7296 yes) enable_shared=yes ;;
7297 no) enable_shared=no ;;
7300 # Look at the argument we got. We use all the common list separators.
7301 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7302 for pkg in $enableval; do
7304 if test "X$pkg" = "X$p"; then
7331 # Check whether --enable-static was given.
7332 if test "${enable_static+set}" = set; then :
7333 enableval=$enable_static; p=${PACKAGE-default}
7335 yes) enable_static=yes ;;
7336 no) enable_static=no ;;
7339 # Look at the argument we got. We use all the common list separators.
7340 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7341 for pkg in $enableval; do
7343 if test "X$pkg" = "X$p"; then
7363 # Check whether --with-pic was given.
7364 if test "${with_pic+set}" = set; then :
7365 withval=$with_pic; pic_mode="$withval"
7371 test -z "$pic_mode" && pic_mode=default
7379 # Check whether --enable-fast-install was given.
7380 if test "${enable_fast_install+set}" = set; then :
7381 enableval=$enable_fast_install; p=${PACKAGE-default}
7383 yes) enable_fast_install=yes ;;
7384 no) enable_fast_install=no ;;
7386 enable_fast_install=no
7387 # Look at the argument we got. We use all the common list separators.
7388 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7389 for pkg in $enableval; do
7391 if test "X$pkg" = "X$p"; then
7392 enable_fast_install=yes
7399 enable_fast_install=yes
7412 # This can be used to rebuild libtool when needed
7413 LIBTOOL_DEPS="$ltmain"
7415 # Always use our own libtool.
7416 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7443 test -z "$LN_S" && LN_S="ln -s"
7458 if test -n "${ZSH_VERSION+set}" ; then
7459 setopt NO_GLOB_SUBST
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7463 $as_echo_n "checking for objdir... " >&6; }
7464 if ${lt_cv_objdir+:} false; then :
7465 $as_echo_n "(cached) " >&6
7467 rm -f .libs 2>/dev/null
7468 mkdir .libs 2>/dev/null
7469 if test -d .libs; then
7472 # MS-DOS does not allow filenames that begin with a dot.
7475 rmdir .libs 2>/dev/null
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7478 $as_echo "$lt_cv_objdir" >&6; }
7479 objdir=$lt_cv_objdir
7485 cat >>confdefs.h <<_ACEOF
7486 #define LT_OBJDIR "$lt_cv_objdir/"
7494 # AIX sometimes has problems with the GCC collect2 program. For some
7495 # reason, if we set the COLLECT_NAMES environment variable, the problems
7496 # vanish in a puff of smoke.
7497 if test "X${COLLECT_NAMES+set}" != Xset; then
7499 export COLLECT_NAMES
7506 can_build_shared=yes
7508 # All known linkers require a `.a' archive for static linking (except MSVC,
7509 # which needs '.lib').
7512 with_gnu_ld="$lt_cv_prog_gnu_ld"
7515 old_CFLAGS="$CFLAGS"
7517 # Set sane defaults for various variables
7518 test -z "$CC" && CC=cc
7519 test -z "$LTCC" && LTCC=$CC
7520 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7521 test -z "$LD" && LD=ld
7522 test -z "$ac_objext" && ac_objext=o
7524 for cc_temp in $compiler""; do
7526 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7527 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7532 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7535 # Only perform the check for file, if the check method requires it
7536 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7537 case $deplibs_check_method in
7539 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7541 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7542 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7543 $as_echo_n "(cached) " >&6
7547 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7550 lt_save_MAGIC_CMD="$MAGIC_CMD"
7551 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7552 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7553 for ac_dir in $ac_dummy; do
7555 test -z "$ac_dir" && ac_dir=.
7556 if test -f $ac_dir/${ac_tool_prefix}file; then
7557 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7558 if test -n "$file_magic_test_file"; then
7559 case $deplibs_check_method in
7561 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7562 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7563 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7564 $EGREP "$file_magic_regex" > /dev/null; then
7569 *** Warning: the command libtool uses to detect shared libraries,
7570 *** $file_magic_cmd, produces output that libtool cannot recognize.
7571 *** The result is that libtool may fail to recognize shared libraries
7572 *** as such. This will affect the creation of libtool libraries that
7573 *** depend on shared libraries, but programs linked with such libtool
7574 *** libraries will work regardless of this problem. Nevertheless, you
7575 *** may want to report the problem to your system manager and/or to
7576 *** bug-libtool@gnu.org
7586 MAGIC_CMD="$lt_save_MAGIC_CMD"
7591 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7592 if test -n "$MAGIC_CMD"; then
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7594 $as_echo "$MAGIC_CMD" >&6; }
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7597 $as_echo "no" >&6; }
7604 if test -z "$lt_cv_path_MAGIC_CMD"; then
7605 if test -n "$ac_tool_prefix"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7607 $as_echo_n "checking for file... " >&6; }
7608 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7609 $as_echo_n "(cached) " >&6
7613 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7616 lt_save_MAGIC_CMD="$MAGIC_CMD"
7617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7618 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7619 for ac_dir in $ac_dummy; do
7621 test -z "$ac_dir" && ac_dir=.
7622 if test -f $ac_dir/file; then
7623 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7624 if test -n "$file_magic_test_file"; then
7625 case $deplibs_check_method in
7627 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7628 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7629 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7630 $EGREP "$file_magic_regex" > /dev/null; then
7635 *** Warning: the command libtool uses to detect shared libraries,
7636 *** $file_magic_cmd, produces output that libtool cannot recognize.
7637 *** The result is that libtool may fail to recognize shared libraries
7638 *** as such. This will affect the creation of libtool libraries that
7639 *** depend on shared libraries, but programs linked with such libtool
7640 *** libraries will work regardless of this problem. Nevertheless, you
7641 *** may want to report the problem to your system manager and/or to
7642 *** bug-libtool@gnu.org
7652 MAGIC_CMD="$lt_save_MAGIC_CMD"
7657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7658 if test -n "$MAGIC_CMD"; then
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7660 $as_echo "$MAGIC_CMD" >&6; }
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7676 # Use C for the default configuration in the libtool script
7680 ac_cpp='$CPP $CPPFLAGS'
7681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7686 # Source file extension for C test sources.
7689 # Object file extension for compiled C test sources.
7693 # Code to be used in simple compile tests
7694 lt_simple_compile_test_code="int some_variable = 0;"
7696 # Code to be used in simple link tests
7697 lt_simple_link_test_code='int main(){return(0);}'
7705 # If no C compiler was specified, use CC.
7708 # If no C compiler flags were specified, use CFLAGS.
7709 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7711 # Allow CC to be a program name with arguments.
7714 # Save the default compiler, since it gets overwritten when the other
7715 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7716 compiler_DEFAULT=$CC
7718 # save warnings/boilerplate of simple test code
7719 ac_outfile=conftest.$ac_objext
7720 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7721 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7722 _lt_compiler_boilerplate=`cat conftest.err`
7725 ac_outfile=conftest.$ac_objext
7726 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7727 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7728 _lt_linker_boilerplate=`cat conftest.err`
7732 if test -n "$compiler"; then
7734 lt_prog_compiler_no_builtin_flag=
7736 if test "$GCC" = yes; then
7737 case $cc_basename in
7739 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7741 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7745 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7746 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7747 $as_echo_n "(cached) " >&6
7749 lt_cv_prog_compiler_rtti_exceptions=no
7750 ac_outfile=conftest.$ac_objext
7751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7752 lt_compiler_flag="-fno-rtti -fno-exceptions"
7753 # Insert the option either (1) after the last *FLAGS variable, or
7754 # (2) before a word containing "conftest.", or (3) at the end.
7755 # Note that $ac_compile itself does not contain backslashes and begins
7756 # with a dollar sign (not a hyphen), so the echo should work correctly.
7757 # The option is referenced via a variable to avoid confusing sed.
7758 lt_compile=`echo "$ac_compile" | $SED \
7759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7761 -e 's:$: $lt_compiler_flag:'`
7762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7763 (eval "$lt_compile" 2>conftest.err)
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 if (exit $ac_status) && test -s "$ac_outfile"; then
7768 # The compiler can only warn and ignore the option if not recognized
7769 # So say no if there are warnings other than the usual output.
7770 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7772 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7773 lt_cv_prog_compiler_rtti_exceptions=yes
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7780 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7782 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7783 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7795 lt_prog_compiler_wl=
7796 lt_prog_compiler_pic=
7797 lt_prog_compiler_static=
7800 if test "$GCC" = yes; then
7801 lt_prog_compiler_wl='-Wl,'
7802 lt_prog_compiler_static='-static'
7806 # All AIX code is PIC.
7807 if test "$host_cpu" = ia64; then
7808 # AIX 5 now supports IA64 processor
7809 lt_prog_compiler_static='-Bstatic'
7816 # see comment about AmigaOS4 .so support
7817 lt_prog_compiler_pic='-fPIC'
7820 # FIXME: we need at least 68020 code to build shared libraries, but
7821 # adding the `-m68020' flag to GCC prevents building anything better,
7823 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7828 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7829 # PIC is the default for these OSes.
7832 mingw* | cygwin* | pw32* | os2* | cegcc*)
7833 # This hack is so that the source file can tell whether it is being
7834 # built for inclusion in a dll (and should export symbols for example).
7835 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7836 # (--disable-auto-import) libraries
7837 lt_prog_compiler_pic='-DDLL_EXPORT'
7840 darwin* | rhapsody*)
7841 # PIC is the default on this platform
7842 # Common symbols not allowed in MH_DYLIB files
7843 lt_prog_compiler_pic='-fno-common'
7847 # PIC is the default for Haiku.
7848 # The "-static" flag exists, but is broken.
7849 lt_prog_compiler_static=
7853 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7854 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7855 # sets the default TLS model and affects inlining.
7861 lt_prog_compiler_pic='-fPIC'
7867 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7868 # Instead, we relocate shared libraries at runtime.
7872 # Just because we use GCC doesn't mean we suddenly get shared libraries
7873 # on systems that don't support them.
7874 lt_prog_compiler_can_build_shared=no
7879 # QNX uses GNU C++, but need to define -shared option too, otherwise
7881 lt_prog_compiler_pic='-fPIC -shared'
7885 if test -d /usr/nec; then
7886 lt_prog_compiler_pic=-Kconform_pic
7891 lt_prog_compiler_pic='-fPIC'
7895 case $cc_basename in
7896 nvcc*) # Cuda Compiler Driver 2.2
7897 lt_prog_compiler_wl='-Xlinker '
7898 lt_prog_compiler_pic='-Xcompiler -fPIC'
7902 # PORTME Check for flag to pass linker flags through the system compiler.
7905 lt_prog_compiler_wl='-Wl,'
7906 if test "$host_cpu" = ia64; then
7907 # AIX 5 now supports IA64 processor
7908 lt_prog_compiler_static='-Bstatic'
7910 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7914 mingw* | cygwin* | pw32* | os2* | cegcc*)
7915 # This hack is so that the source file can tell whether it is being
7916 # built for inclusion in a dll (and should export symbols for example).
7917 lt_prog_compiler_pic='-DDLL_EXPORT'
7920 hpux9* | hpux10* | hpux11*)
7921 lt_prog_compiler_wl='-Wl,'
7922 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7929 lt_prog_compiler_pic='+Z'
7932 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7933 lt_prog_compiler_static='${wl}-a ${wl}archive'
7936 irix5* | irix6* | nonstopux*)
7937 lt_prog_compiler_wl='-Wl,'
7938 # PIC (with -KPIC) is the default.
7939 lt_prog_compiler_static='-non_shared'
7942 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7943 case $cc_basename in
7944 # old Intel for x86_64 which still supported -KPIC.
7946 lt_prog_compiler_wl='-Wl,'
7947 lt_prog_compiler_pic='-KPIC'
7948 lt_prog_compiler_static='-static'
7950 # icc used to be incompatible with GCC.
7951 # ICC 10 doesn't accept -KPIC any more.
7953 lt_prog_compiler_wl='-Wl,'
7954 lt_prog_compiler_pic='-fPIC'
7955 lt_prog_compiler_static='-static'
7957 # Lahey Fortran 8.1.
7959 lt_prog_compiler_wl='-Wl,'
7960 lt_prog_compiler_pic='--shared'
7961 lt_prog_compiler_static='--static'
7964 # NAG Fortran compiler
7965 lt_prog_compiler_wl='-Wl,-Wl,,'
7966 lt_prog_compiler_pic='-PIC'
7967 lt_prog_compiler_static='-Bstatic'
7969 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7970 # Portland Group compilers (*not* the Pentium gcc compiler,
7971 # which looks to be a dead project)
7972 lt_prog_compiler_wl='-Wl,'
7973 lt_prog_compiler_pic='-fpic'
7974 lt_prog_compiler_static='-Bstatic'
7977 lt_prog_compiler_wl='-Wl,'
7978 # All Alpha code is PIC.
7979 lt_prog_compiler_static='-non_shared'
7981 xl* | bgxl* | bgf* | mpixl*)
7982 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7983 lt_prog_compiler_wl='-Wl,'
7984 lt_prog_compiler_pic='-qpic'
7985 lt_prog_compiler_static='-qstaticlink'
7988 case `$CC -V 2>&1 | sed 5q` in
7989 *Sun\ F* | *Sun*Fortran*)
7990 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7991 lt_prog_compiler_pic='-KPIC'
7992 lt_prog_compiler_static='-Bstatic'
7993 lt_prog_compiler_wl=''
7997 lt_prog_compiler_pic='-KPIC'
7998 lt_prog_compiler_static='-Bstatic'
7999 lt_prog_compiler_wl='-Wl,'
8007 lt_prog_compiler_pic='-KPIC'
8008 lt_prog_compiler_static='-Bstatic'
8012 # QNX uses GNU C++, but need to define -shared option too, otherwise
8014 lt_prog_compiler_pic='-fPIC -shared'
8017 osf3* | osf4* | osf5*)
8018 lt_prog_compiler_wl='-Wl,'
8019 # All OSF/1 code is PIC.
8020 lt_prog_compiler_static='-non_shared'
8024 lt_prog_compiler_static='-non_shared'
8028 lt_prog_compiler_pic='-KPIC'
8029 lt_prog_compiler_static='-Bstatic'
8030 case $cc_basename in
8031 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8032 lt_prog_compiler_wl='-Qoption ld ';;
8034 lt_prog_compiler_wl='-Wl,';;
8039 lt_prog_compiler_wl='-Qoption ld '
8040 lt_prog_compiler_pic='-PIC'
8041 lt_prog_compiler_static='-Bstatic'
8044 sysv4 | sysv4.2uw2* | sysv4.3*)
8045 lt_prog_compiler_wl='-Wl,'
8046 lt_prog_compiler_pic='-KPIC'
8047 lt_prog_compiler_static='-Bstatic'
8051 if test -d /usr/nec ;then
8052 lt_prog_compiler_pic='-Kconform_pic'
8053 lt_prog_compiler_static='-Bstatic'
8057 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8058 lt_prog_compiler_wl='-Wl,'
8059 lt_prog_compiler_pic='-KPIC'
8060 lt_prog_compiler_static='-Bstatic'
8064 lt_prog_compiler_wl='-Wl,'
8065 lt_prog_compiler_can_build_shared=no
8069 lt_prog_compiler_pic='-pic'
8070 lt_prog_compiler_static='-Bstatic'
8074 lt_prog_compiler_can_build_shared=no
8080 # For platforms which do not support PIC, -DPIC is meaningless:
8082 lt_prog_compiler_pic=
8085 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8090 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8091 if ${lt_cv_prog_compiler_pic+:} false; then :
8092 $as_echo_n "(cached) " >&6
8094 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8097 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8098 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8101 # Check to make sure the PIC flag actually works.
8103 if test -n "$lt_prog_compiler_pic"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8105 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8106 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8107 $as_echo_n "(cached) " >&6
8109 lt_cv_prog_compiler_pic_works=no
8110 ac_outfile=conftest.$ac_objext
8111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8112 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8113 # Insert the option either (1) after the last *FLAGS variable, or
8114 # (2) before a word containing "conftest.", or (3) at the end.
8115 # Note that $ac_compile itself does not contain backslashes and begins
8116 # with a dollar sign (not a hyphen), so the echo should work correctly.
8117 # The option is referenced via a variable to avoid confusing sed.
8118 lt_compile=`echo "$ac_compile" | $SED \
8119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8121 -e 's:$: $lt_compiler_flag:'`
8122 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8123 (eval "$lt_compile" 2>conftest.err)
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 if (exit $ac_status) && test -s "$ac_outfile"; then
8128 # The compiler can only warn and ignore the option if not recognized
8129 # So say no if there are warnings other than the usual output.
8130 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8132 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8133 lt_cv_prog_compiler_pic_works=yes
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8140 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8142 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8143 case $lt_prog_compiler_pic in
8145 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8148 lt_prog_compiler_pic=
8149 lt_prog_compiler_can_build_shared=no
8165 # Check to make sure the static flag actually works.
8167 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8169 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8170 if ${lt_cv_prog_compiler_static_works+:} false; then :
8171 $as_echo_n "(cached) " >&6
8173 lt_cv_prog_compiler_static_works=no
8174 save_LDFLAGS="$LDFLAGS"
8175 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8176 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8177 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8178 # The linker can only warn and ignore the option if not recognized
8179 # So say no if there are warnings
8180 if test -s conftest.err; then
8181 # Append any errors to the config.log.
8182 cat conftest.err 1>&5
8183 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8184 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8185 if diff conftest.exp conftest.er2 >/dev/null; then
8186 lt_cv_prog_compiler_static_works=yes
8189 lt_cv_prog_compiler_static_works=yes
8193 LDFLAGS="$save_LDFLAGS"
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8197 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8199 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8202 lt_prog_compiler_static=
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8212 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8213 if ${lt_cv_prog_compiler_c_o+:} false; then :
8214 $as_echo_n "(cached) " >&6
8216 lt_cv_prog_compiler_c_o=no
8217 $RM -r conftest 2>/dev/null
8221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8223 lt_compiler_flag="-o out/conftest2.$ac_objext"
8224 # Insert the option either (1) after the last *FLAGS variable, or
8225 # (2) before a word containing "conftest.", or (3) at the end.
8226 # Note that $ac_compile itself does not contain backslashes and begins
8227 # with a dollar sign (not a hyphen), so the echo should work correctly.
8228 lt_compile=`echo "$ac_compile" | $SED \
8229 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8231 -e 's:$: $lt_compiler_flag:'`
8232 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8233 (eval "$lt_compile" 2>out/conftest.err)
8235 cat out/conftest.err >&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8239 # The compiler can only warn and ignore the option if not recognized
8240 # So say no if there are warnings
8241 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8242 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8243 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8244 lt_cv_prog_compiler_c_o=yes
8249 # SGI C++ compiler will create directory out/ii_files/ for
8250 # template instantiation
8251 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8252 $RM out/* && rmdir out
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8259 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8267 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8268 if ${lt_cv_prog_compiler_c_o+:} false; then :
8269 $as_echo_n "(cached) " >&6
8271 lt_cv_prog_compiler_c_o=no
8272 $RM -r conftest 2>/dev/null
8276 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8278 lt_compiler_flag="-o out/conftest2.$ac_objext"
8279 # Insert the option either (1) after the last *FLAGS variable, or
8280 # (2) before a word containing "conftest.", or (3) at the end.
8281 # Note that $ac_compile itself does not contain backslashes and begins
8282 # with a dollar sign (not a hyphen), so the echo should work correctly.
8283 lt_compile=`echo "$ac_compile" | $SED \
8284 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8285 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8286 -e 's:$: $lt_compiler_flag:'`
8287 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8288 (eval "$lt_compile" 2>out/conftest.err)
8290 cat out/conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8294 # The compiler can only warn and ignore the option if not recognized
8295 # So say no if there are warnings
8296 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8297 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8298 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8299 lt_cv_prog_compiler_c_o=yes
8304 # SGI C++ compiler will create directory out/ii_files/ for
8305 # template instantiation
8306 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8307 $RM out/* && rmdir out
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8314 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8319 hard_links="nottested"
8320 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8321 # do not overwrite the value of need_locks provided by the user
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8323 $as_echo_n "checking if we can lock with hard links... " >&6; }
8326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8328 ln conftest.a conftest.b 2>&5 || hard_links=no
8329 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8331 $as_echo "$hard_links" >&6; }
8332 if test "$hard_links" = no; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8334 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8347 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8350 allow_undefined_flag=
8351 always_export_symbols=no
8353 archive_expsym_cmds=
8354 compiler_needs_object=no
8355 enable_shared_with_static_runtimes=no
8356 export_dynamic_flag_spec=
8357 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8358 hardcode_automatic=no
8360 hardcode_direct_absolute=no
8361 hardcode_libdir_flag_spec=
8362 hardcode_libdir_flag_spec_ld=
8363 hardcode_libdir_separator=
8365 hardcode_shlibpath_var=unsupported
8367 link_all_deplibs=unknown
8370 old_archive_from_new_cmds=
8371 old_archive_from_expsyms_cmds=
8372 thread_safe_flag_spec=
8373 whole_archive_flag_spec=
8374 # include_expsyms should be a list of space-separated symbols to be *always*
8375 # included in the symbol list
8377 # exclude_expsyms can be an extended regexp of symbols to exclude
8378 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8379 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8380 # as well as any symbol that contains `d'.
8381 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8382 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8383 # platforms (ab)use it in PIC code, but their linkers get confused if
8384 # the symbol is explicitly referenced. Since portable code cannot
8385 # rely on this symbol name, it's probably fine to never include it in
8386 # preloaded symbol tables.
8387 # Exclude shared library initialization/finalization symbols.
8388 extract_expsyms_cmds=
8391 cygwin* | mingw* | pw32* | cegcc*)
8392 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8393 # When not using gcc, we currently assume that we are using
8394 # Microsoft Visual C++.
8395 if test "$GCC" != yes; then
8400 # we just hope/assume this is gcc and not c89 (= MSVC++)
8410 # On some targets, GNU ld is compatible enough with the native linker
8411 # that we're better off using the native interface for both.
8412 lt_use_gnu_ld_interface=no
8413 if test "$with_gnu_ld" = yes; then
8416 # The AIX port of GNU ld has always aspired to compatibility
8417 # with the native linker. However, as the warning in the GNU ld
8418 # block says, versions before 2.19.5* couldn't really create working
8419 # shared libraries, regardless of the interface used.
8420 case `$LD -v 2>&1` in
8421 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8422 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8423 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8425 lt_use_gnu_ld_interface=yes
8430 lt_use_gnu_ld_interface=yes
8435 if test "$lt_use_gnu_ld_interface" = yes; then
8436 # If archive_cmds runs LD, not CC, wlarc should be empty
8439 # Set some defaults for GNU ld with shared library support. These
8440 # are reset later if shared libraries are not supported. Putting them
8441 # here allows them to be overridden if necessary.
8442 runpath_var=LD_RUN_PATH
8443 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8444 export_dynamic_flag_spec='${wl}--export-dynamic'
8445 # ancient GNU ld didn't support --whole-archive et. al.
8446 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8447 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8449 whole_archive_flag_spec=
8451 supports_anon_versioning=no
8452 case `$LD -v 2>&1` in
8453 *GNU\ gold*) supports_anon_versioning=yes ;;
8454 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8455 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8456 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8457 *\ 2.11.*) ;; # other 2.11 versions
8458 *) supports_anon_versioning=yes ;;
8461 # See if GNU ld supports shared libraries.
8464 # On AIX/PPC, the GNU linker is very broken
8465 if test "$host_cpu" != ia64; then
8469 *** Warning: the GNU linker, at least up to release 2.19, is reported
8470 *** to be unable to reliably create shared libraries on AIX.
8471 *** Therefore, libtool is disabling shared libraries support. If you
8472 *** really care for shared libraries, you may want to install binutils
8473 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8474 *** You will then need to restart the configuration process.
8483 # see comment about AmigaOS4 .so support
8484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8485 archive_expsym_cmds=''
8488 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)'
8489 hardcode_libdir_flag_spec='-L$libdir'
8490 hardcode_minus_L=yes
8496 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8497 allow_undefined_flag=unsupported
8498 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8499 # support --undefined. This deserves some investigation. FIXME
8500 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8506 cygwin* | mingw* | pw32* | cegcc*)
8507 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8508 # as there is no search path for DLLs.
8509 hardcode_libdir_flag_spec='-L$libdir'
8510 export_dynamic_flag_spec='${wl}--export-all-symbols'
8511 allow_undefined_flag=unsupported
8512 always_export_symbols=no
8513 enable_shared_with_static_runtimes=yes
8514 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'
8515 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8517 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8519 # If the export-symbols file already is a .def file (1st line
8520 # is EXPORTS), use it as is; otherwise, prepend...
8521 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8522 cp $export_symbols $output_objdir/$soname.def;
8524 echo EXPORTS > $output_objdir/$soname.def;
8525 cat $export_symbols >> $output_objdir/$soname.def;
8527 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8535 link_all_deplibs=yes
8540 hardcode_shlibpath_var=no
8541 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8542 export_dynamic_flag_spec='${wl}-E'
8543 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8544 # Instead, shared libraries are loaded at an image base (0x10000000 by
8545 # default) and relocated if they conflict, which is a slow very memory
8546 # consuming and fragmenting process. To avoid this, we pick a random,
8547 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8548 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8549 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8550 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'
8553 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8555 if test "$host_os" = linux-dietlibc; then
8556 case $cc_basename in
8557 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8560 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8561 && test "$tmp_diet" = no
8563 tmp_addflag=' $pic_flag'
8564 tmp_sharedflag='-shared'
8565 case $cc_basename,$host_cpu in
8566 pgcc*) # Portland Group C compiler
8567 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'
8568 tmp_addflag=' $pic_flag'
8570 pgf77* | pgf90* | pgf95* | pgfortran*)
8571 # Portland Group f77 and f90 compilers
8572 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'
8573 tmp_addflag=' $pic_flag -Mnomain' ;;
8574 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8575 tmp_addflag=' -i_dynamic' ;;
8576 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8577 tmp_addflag=' -i_dynamic -nofor_main' ;;
8578 ifc* | ifort*) # Intel Fortran compiler
8579 tmp_addflag=' -nofor_main' ;;
8580 lf95*) # Lahey Fortran 8.1
8581 whole_archive_flag_spec=
8582 tmp_sharedflag='--shared' ;;
8583 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8584 tmp_sharedflag='-qmkshrobj'
8586 nvcc*) # Cuda Compiler Driver 2.2
8587 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'
8588 compiler_needs_object=yes
8591 case `$CC -V 2>&1 | sed 5q` in
8592 *Sun\ C*) # Sun C 5.9
8593 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'
8594 compiler_needs_object=yes
8595 tmp_sharedflag='-G' ;;
8596 *Sun\ F*) # Sun Fortran 8.3
8597 tmp_sharedflag='-G' ;;
8599 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8601 if test "x$supports_anon_versioning" = xyes; then
8602 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8603 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8604 echo "local: *; };" >> $output_objdir/$libname.ver~
8605 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8608 case $cc_basename in
8609 xlf* | bgf* | bgxlf* | mpixlf*)
8610 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8611 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8612 hardcode_libdir_flag_spec=
8613 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8614 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8615 if test "x$supports_anon_versioning" = xyes; then
8616 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8617 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8618 echo "local: *; };" >> $output_objdir/$libname.ver~
8619 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8629 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8630 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8633 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8634 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8639 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8643 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8644 *** create shared libraries on Solaris systems. Therefore, libtool
8645 *** is disabling shared libraries support. We urge you to upgrade GNU
8646 *** binutils to release 2.9.1 or newer. Another option is to modify
8647 *** your PATH or compiler configuration so that the native linker is
8648 *** used, and then restart.
8651 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8652 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8653 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8659 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8660 case `$LD -v 2>&1` in
8661 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8665 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8666 *** reliably create shared libraries on SCO systems. Therefore, libtool
8667 *** is disabling shared libraries support. We urge you to upgrade GNU
8668 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8669 *** your PATH or compiler configuration so that the native linker is
8670 *** used, and then restart.
8675 # For security reasons, it is highly recommended that you always
8676 # use absolute paths for naming shared libraries, and exclude the
8677 # DT_RUNPATH tag from executables and libraries. But doing so
8678 # requires that you compile everything twice, which is a pain.
8679 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8680 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8681 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8682 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8691 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8694 hardcode_shlibpath_var=no
8698 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8699 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8700 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8707 if test "$ld_shlibs" = no; then
8709 hardcode_libdir_flag_spec=
8710 export_dynamic_flag_spec=
8711 whole_archive_flag_spec=
8714 # PORTME fill in a description of your system's linker (not GNU ld)
8717 allow_undefined_flag=unsupported
8718 always_export_symbols=yes
8719 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'
8720 # Note: this linker hardcodes the directories in LIBPATH if there
8721 # are no directories specified by -L.
8722 hardcode_minus_L=yes
8723 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8724 # Neither direct hardcoding nor static linking is supported with a
8726 hardcode_direct=unsupported
8731 if test "$host_cpu" = ia64; then
8732 # On IA64, the linker does run time linking by default, so we don't
8733 # have to do anything special.
8734 aix_use_runtimelinking=no
8735 exp_sym_flag='-Bexport'
8738 # If we're using GNU nm, then we don't want the "-C" option.
8739 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8740 # Also, AIX nm treats weak defined symbols like other global
8741 # defined symbols, whereas GNU nm marks them as "W".
8742 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8743 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'
8745 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'
8747 aix_use_runtimelinking=no
8749 # Test if we are trying to use run time linking or normal
8750 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8751 # need to do runtime linking.
8752 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8753 for ld_flag in $LDFLAGS; do
8754 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8755 aix_use_runtimelinking=yes
8762 exp_sym_flag='-bexport'
8763 no_entry_flag='-bnoentry'
8766 # When large executables or shared objects are built, AIX ld can
8767 # have problems creating the table of contents. If linking a library
8768 # or program results in "error TOC overflow" add -mminimal-toc to
8769 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8770 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8774 hardcode_direct_absolute=yes
8775 hardcode_libdir_separator=':'
8776 link_all_deplibs=yes
8777 file_list_spec='${wl}-f,'
8779 if test "$GCC" = yes; then
8780 case $host_os in aix4.[012]|aix4.[012].*)
8781 # We only want to do this on AIX 4.2 and lower, the check
8782 # below for broken collect2 doesn't work under 4.3+
8783 collect2name=`${CC} -print-prog-name=collect2`
8784 if test -f "$collect2name" &&
8785 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8787 # We have reworked collect2
8790 # We have old collect2
8791 hardcode_direct=unsupported
8792 # It fails to find uninstalled libraries when the uninstalled
8793 # path is not listed in the libpath. Setting hardcode_minus_L
8794 # to unsupported forces relinking
8795 hardcode_minus_L=yes
8796 hardcode_libdir_flag_spec='-L$libdir'
8797 hardcode_libdir_separator=
8801 shared_flag='-shared'
8802 if test "$aix_use_runtimelinking" = yes; then
8803 shared_flag="$shared_flag "'${wl}-G'
8807 if test "$host_cpu" = ia64; then
8808 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8809 # chokes on -Wl,-G. The following line is correct:
8812 if test "$aix_use_runtimelinking" = yes; then
8813 shared_flag='${wl}-G'
8815 shared_flag='${wl}-bM:SRE'
8820 export_dynamic_flag_spec='${wl}-bexpall'
8821 # It seems that -bexpall does not export symbols beginning with
8822 # underscore (_), so it is better to generate a list of symbols to export.
8823 always_export_symbols=yes
8824 if test "$aix_use_runtimelinking" = yes; then
8825 # Warning - without using the other runtime loading flags (-brtl),
8826 # -berok will link without error, but may produce a broken library.
8827 allow_undefined_flag='-berok'
8828 # Determine the default libpath from the value encoded in an
8830 if test "${lt_cv_aix_libpath+set}" = set; then
8831 aix_libpath=$lt_cv_aix_libpath
8833 if ${lt_cv_aix_libpath_+:} false; then :
8834 $as_echo_n "(cached) " >&6
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8847 if ac_fn_c_try_link "$LINENO"; then :
8849 lt_aix_libpath_sed='
8850 /Import File Strings/,/^$/ {
8852 s/^0 *\([^ ]*\) *$/\1/
8856 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8857 # Check for a 64-bit object if we didn't find anything.
8858 if test -z "$lt_cv_aix_libpath_"; then
8859 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8862 rm -f core conftest.err conftest.$ac_objext \
8863 conftest$ac_exeext conftest.$ac_ext
8864 if test -z "$lt_cv_aix_libpath_"; then
8865 lt_cv_aix_libpath_="/usr/lib:/lib"
8870 aix_libpath=$lt_cv_aix_libpath_
8873 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8874 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"
8876 if test "$host_cpu" = ia64; then
8877 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8878 allow_undefined_flag="-z nodefs"
8879 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"
8881 # Determine the default libpath from the value encoded in an
8883 if test "${lt_cv_aix_libpath+set}" = set; then
8884 aix_libpath=$lt_cv_aix_libpath
8886 if ${lt_cv_aix_libpath_+:} false; then :
8887 $as_echo_n "(cached) " >&6
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h. */
8900 if ac_fn_c_try_link "$LINENO"; then :
8902 lt_aix_libpath_sed='
8903 /Import File Strings/,/^$/ {
8905 s/^0 *\([^ ]*\) *$/\1/
8909 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8910 # Check for a 64-bit object if we didn't find anything.
8911 if test -z "$lt_cv_aix_libpath_"; then
8912 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8915 rm -f core conftest.err conftest.$ac_objext \
8916 conftest$ac_exeext conftest.$ac_ext
8917 if test -z "$lt_cv_aix_libpath_"; then
8918 lt_cv_aix_libpath_="/usr/lib:/lib"
8923 aix_libpath=$lt_cv_aix_libpath_
8926 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8927 # Warning - without using the other run time loading flags,
8928 # -berok will link without error, but may produce a broken library.
8929 no_undefined_flag=' ${wl}-bernotok'
8930 allow_undefined_flag=' ${wl}-berok'
8931 if test "$with_gnu_ld" = yes; then
8932 # We only use this code for GNU lds that support --whole-archive.
8933 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8935 # Exported symbols can be pulled into shared objects from archives
8936 whole_archive_flag_spec='$convenience'
8938 archive_cmds_need_lc=yes
8939 # This is similar to how AIX traditionally builds its shared libraries.
8940 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'
8948 # see comment about AmigaOS4 .so support
8949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8950 archive_expsym_cmds=''
8953 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)'
8954 hardcode_libdir_flag_spec='-L$libdir'
8955 hardcode_minus_L=yes
8961 export_dynamic_flag_spec=-rdynamic
8964 cygwin* | mingw* | pw32* | cegcc*)
8965 # When not using gcc, we currently assume that we are using
8966 # Microsoft Visual C++.
8967 # hardcode_libdir_flag_spec is actually meaningless, as there is
8968 # no search path for DLLs.
8969 case $cc_basename in
8972 hardcode_libdir_flag_spec=' '
8973 allow_undefined_flag=unsupported
8974 always_export_symbols=yes
8976 # Tell ltmain to make .lib files, not .a files.
8978 # Tell ltmain to make .dll files, not .so files.
8980 # FIXME: Setting linknames here is a bad hack.
8981 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8982 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8983 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8985 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8987 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8989 # The linker will not automatically build a static lib if we build a DLL.
8990 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8991 enable_shared_with_static_runtimes=yes
8992 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8994 old_postinstall_cmds='chmod 644 $oldlib'
8995 postlink_cmds='lt_outputfile="@OUTPUT@"~
8996 lt_tool_outputfile="@TOOL_OUTPUT@"~
8997 case $lt_outputfile in
9000 lt_outputfile="$lt_outputfile.exe"
9001 lt_tool_outputfile="$lt_tool_outputfile.exe"
9004 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9005 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9006 $RM "$lt_outputfile.manifest";
9010 # Assume MSVC wrapper
9011 hardcode_libdir_flag_spec=' '
9012 allow_undefined_flag=unsupported
9013 # Tell ltmain to make .lib files, not .a files.
9015 # Tell ltmain to make .dll files, not .so files.
9017 # FIXME: Setting linknames here is a bad hack.
9018 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9019 # The linker will automatically build a .lib file if we build a DLL.
9020 old_archive_from_new_cmds='true'
9021 # FIXME: Should let the user specify the lib program.
9022 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9023 enable_shared_with_static_runtimes=yes
9028 darwin* | rhapsody*)
9031 archive_cmds_need_lc=no
9033 hardcode_automatic=yes
9034 hardcode_shlibpath_var=unsupported
9035 if test "$lt_cv_ld_force_load" = "yes"; then
9036 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\"`'
9038 whole_archive_flag_spec=''
9040 link_all_deplibs=yes
9041 allow_undefined_flag="$_lt_dar_allow_undefined"
9042 case $cc_basename in
9043 ifort*) _lt_dar_can_shared=yes ;;
9044 *) _lt_dar_can_shared=$GCC ;;
9046 if test "$_lt_dar_can_shared" = "yes"; then
9047 output_verbose_link_cmd=func_echo_all
9048 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9049 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9050 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}"
9051 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}"
9060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9061 hardcode_libdir_flag_spec='-L$libdir'
9062 hardcode_shlibpath_var=no
9069 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9070 # support. Future versions do this automatically, but an explicit c++rt0.o
9071 # does not break anything, and helps significantly (at the cost of a little
9074 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9075 hardcode_libdir_flag_spec='-R$libdir'
9077 hardcode_shlibpath_var=no
9080 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9082 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9084 hardcode_minus_L=yes
9085 hardcode_shlibpath_var=no
9088 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9089 freebsd* | dragonfly*)
9090 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9091 hardcode_libdir_flag_spec='-R$libdir'
9093 hardcode_shlibpath_var=no
9097 if test "$GCC" = yes; then
9098 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'
9100 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'
9102 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9103 hardcode_libdir_separator=:
9106 # hardcode_minus_L: Not really in the search PATH,
9107 # but as the default location of the library.
9108 hardcode_minus_L=yes
9109 export_dynamic_flag_spec='${wl}-E'
9113 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9114 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9116 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9118 if test "$with_gnu_ld" = no; then
9119 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9120 hardcode_libdir_flag_spec_ld='+b $libdir'
9121 hardcode_libdir_separator=:
9123 hardcode_direct_absolute=yes
9124 export_dynamic_flag_spec='${wl}-E'
9125 # hardcode_minus_L: Not really in the search PATH,
9126 # but as the default location of the library.
9127 hardcode_minus_L=yes
9132 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9135 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9138 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9141 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9147 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9150 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9154 # Older versions of the 11.00 compiler do not understand -b yet
9155 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9157 $as_echo_n "checking if $CC understands -b... " >&6; }
9158 if ${lt_cv_prog_compiler__b+:} false; then :
9159 $as_echo_n "(cached) " >&6
9161 lt_cv_prog_compiler__b=no
9162 save_LDFLAGS="$LDFLAGS"
9163 LDFLAGS="$LDFLAGS -b"
9164 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9165 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9166 # The linker can only warn and ignore the option if not recognized
9167 # So say no if there are warnings
9168 if test -s conftest.err; then
9169 # Append any errors to the config.log.
9170 cat conftest.err 1>&5
9171 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9173 if diff conftest.exp conftest.er2 >/dev/null; then
9174 lt_cv_prog_compiler__b=yes
9177 lt_cv_prog_compiler__b=yes
9181 LDFLAGS="$save_LDFLAGS"
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9185 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9187 if test x"$lt_cv_prog_compiler__b" = xyes; then
9188 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9190 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9196 if test "$with_gnu_ld" = no; then
9197 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9198 hardcode_libdir_separator=:
9203 hardcode_shlibpath_var=no
9207 hardcode_direct_absolute=yes
9208 export_dynamic_flag_spec='${wl}-E'
9210 # hardcode_minus_L: Not really in the search PATH,
9211 # but as the default location of the library.
9212 hardcode_minus_L=yes
9218 irix5* | irix6* | nonstopux*)
9219 if test "$GCC" = yes; then
9220 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'
9221 # Try to use the -exported_symbol ld option, if it does not
9222 # work, assume that -exports_file does not work either and
9223 # implicitly export all symbols.
9224 # This should be the same for all languages, so no per-tag cache variable.
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9226 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9227 if ${lt_cv_irix_exported_symbol+:} false; then :
9228 $as_echo_n "(cached) " >&6
9230 save_LDFLAGS="$LDFLAGS"
9231 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9234 int foo (void) { return 0; }
9236 if ac_fn_c_try_link "$LINENO"; then :
9237 lt_cv_irix_exported_symbol=yes
9239 lt_cv_irix_exported_symbol=no
9241 rm -f core conftest.err conftest.$ac_objext \
9242 conftest$ac_exeext conftest.$ac_ext
9243 LDFLAGS="$save_LDFLAGS"
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9246 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9247 if test "$lt_cv_irix_exported_symbol" = yes; then
9248 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'
9251 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'
9252 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'
9254 archive_cmds_need_lc='no'
9255 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9256 hardcode_libdir_separator=:
9258 link_all_deplibs=yes
9262 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9263 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9265 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9267 hardcode_libdir_flag_spec='-R$libdir'
9269 hardcode_shlibpath_var=no
9273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9275 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9276 hardcode_libdir_separator=:
9277 hardcode_shlibpath_var=no
9284 if test -f /usr/libexec/ld.so; then
9286 hardcode_shlibpath_var=no
9287 hardcode_direct_absolute=yes
9288 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9289 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9290 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9291 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9292 export_dynamic_flag_spec='${wl}-E'
9295 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9296 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9297 hardcode_libdir_flag_spec='-R$libdir'
9300 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9301 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9311 hardcode_libdir_flag_spec='-L$libdir'
9312 hardcode_minus_L=yes
9313 allow_undefined_flag=unsupported
9314 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'
9315 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9319 if test "$GCC" = yes; then
9320 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9321 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'
9323 allow_undefined_flag=' -expect_unresolved \*'
9324 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'
9326 archive_cmds_need_lc='no'
9327 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9328 hardcode_libdir_separator=:
9331 osf4* | osf5*) # as osf3* with the addition of -msym flag
9332 if test "$GCC" = yes; then
9333 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9334 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'
9335 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9337 allow_undefined_flag=' -expect_unresolved \*'
9338 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'
9339 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~
9340 $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'
9342 # Both c and cxx compiler support -rpath directly
9343 hardcode_libdir_flag_spec='-rpath $libdir'
9345 archive_cmds_need_lc='no'
9346 hardcode_libdir_separator=:
9350 no_undefined_flag=' -z defs'
9351 if test "$GCC" = yes; then
9353 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9354 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9355 $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'
9357 case `$CC -V 2>&1` in
9360 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9361 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9362 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9366 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9367 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9368 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9372 hardcode_libdir_flag_spec='-R$libdir'
9373 hardcode_shlibpath_var=no
9375 solaris2.[0-5] | solaris2.[0-5].*) ;;
9377 # The compiler driver will combine and reorder linker options,
9378 # but understands `-z linker_flag'. GCC discards it without `$wl',
9379 # but is careful enough not to reorder.
9380 # Supported since Solaris 2.6 (maybe 2.5.1?)
9381 if test "$GCC" = yes; then
9382 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9384 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9388 link_all_deplibs=yes
9392 if test "x$host_vendor" = xsequent; then
9393 # Use $CC to link under sequent, because it throws in some extra .o
9394 # files that make .init and .fini sections work.
9395 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9397 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9399 hardcode_libdir_flag_spec='-L$libdir'
9401 hardcode_minus_L=yes
9402 hardcode_shlibpath_var=no
9406 case $host_vendor in
9408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9409 hardcode_direct=yes # is this really true???
9412 ## LD is ld it makes a PLAMLIB
9413 ## CC just makes a GrossModule.
9414 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9415 reload_cmds='$CC -r -o $output$reload_objs'
9419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9420 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9423 runpath_var='LD_RUN_PATH'
9424 hardcode_shlibpath_var=no
9428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9429 hardcode_shlibpath_var=no
9430 export_dynamic_flag_spec='-Bexport'
9434 if test -d /usr/nec; then
9435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9436 hardcode_shlibpath_var=no
9437 runpath_var=LD_RUN_PATH
9438 hardcode_runpath_var=yes
9443 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9444 no_undefined_flag='${wl}-z,text'
9445 archive_cmds_need_lc=no
9446 hardcode_shlibpath_var=no
9447 runpath_var='LD_RUN_PATH'
9449 if test "$GCC" = yes; then
9450 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9451 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9453 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9454 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9458 sysv5* | sco3.2v5* | sco5v6*)
9459 # Note: We can NOT use -z defs as we might desire, because we do not
9460 # link with -lc, and that would cause any symbols used from libc to
9461 # always be unresolved, which means just about no library would
9462 # ever link correctly. If we're not using GNU ld we use -z text
9463 # though, which does catch some bad symbols but isn't as heavy-handed
9465 no_undefined_flag='${wl}-z,text'
9466 allow_undefined_flag='${wl}-z,nodefs'
9467 archive_cmds_need_lc=no
9468 hardcode_shlibpath_var=no
9469 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9470 hardcode_libdir_separator=':'
9471 link_all_deplibs=yes
9472 export_dynamic_flag_spec='${wl}-Bexport'
9473 runpath_var='LD_RUN_PATH'
9475 if test "$GCC" = yes; then
9476 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9477 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9479 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9480 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9486 hardcode_libdir_flag_spec='-L$libdir'
9487 hardcode_shlibpath_var=no
9495 if test x$host_vendor = xsni; then
9497 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9498 export_dynamic_flag_spec='${wl}-Blargedynsym'
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9505 $as_echo "$ld_shlibs" >&6; }
9506 test "$ld_shlibs" = no && can_build_shared=no
9508 with_gnu_ld=$with_gnu_ld
9525 # Do we need to explicitly link libc?
9527 case "x$archive_cmds_need_lc" in
9529 # Assume -lc should be added
9530 archive_cmds_need_lc=yes
9532 if test "$enable_shared" = yes && test "$GCC" = yes; then
9533 case $archive_cmds in
9535 # FIXME: we may have to deal with multi-command sequences.
9538 # Test whether the compiler implicitly links with -lc since on some
9539 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9540 # to ld, don't add -lc before -lgcc.
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9542 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9543 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9544 $as_echo_n "(cached) " >&6
9547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9550 (eval $ac_compile) 2>&5
9552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9553 test $ac_status = 0; } 2>conftest.err; then
9556 libobjs=conftest.$ac_objext
9558 wl=$lt_prog_compiler_wl
9559 pic_flag=$lt_prog_compiler_pic
9565 lt_save_allow_undefined_flag=$allow_undefined_flag
9566 allow_undefined_flag=
9567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9568 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9571 test $ac_status = 0; }
9573 lt_cv_archive_cmds_need_lc=no
9575 lt_cv_archive_cmds_need_lc=yes
9577 allow_undefined_flag=$lt_save_allow_undefined_flag
9579 cat conftest.err 1>&5
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9585 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9586 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9750 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9752 if test "$GCC" = yes; then
9754 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9755 *) lt_awk_arg="/^libraries:/" ;;
9758 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9759 *) lt_sed_strip_eq="s,=/,/,g" ;;
9761 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9762 case $lt_search_path_spec in
9764 # if the path contains ";" then we assume it to be the separator
9765 # otherwise default to the standard path separator (i.e. ":") - it is
9766 # assumed that no part of a normal pathname contains ";" but that should
9767 # okay in the real world where ";" in dirpaths is itself problematic.
9768 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9771 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9774 # Ok, now we have the path, separated by spaces, we can step through it
9775 # and add multilib dir if necessary.
9776 lt_tmp_lt_search_path_spec=
9777 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9778 for lt_sys_path in $lt_search_path_spec; do
9779 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9780 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9782 test -d "$lt_sys_path" && \
9783 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9786 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9787 BEGIN {RS=" "; FS="/|\n";} {
9790 for (lt_i = NF; lt_i > 0; lt_i--) {
9791 if ($lt_i != "" && $lt_i != ".") {
9792 if ($lt_i == "..") {
9795 if (lt_count == 0) {
9796 lt_foo="/" $lt_i lt_foo;
9803 if (lt_foo != "") { lt_freq[lt_foo]++; }
9804 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9806 # AWK program above erroneously prepends '/' to C:/dos/paths
9809 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9810 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9812 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9814 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9817 libname_spec='lib$name'
9825 shlibpath_overrides_runpath=unknown
9827 dynamic_linker="$host_os ld.so"
9828 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9829 need_lib_prefix=unknown
9830 hardcode_into_libs=no
9832 # when you set need_version to no, make sure it does not cause -set_version
9833 # flags to be left without arguments
9834 need_version=unknown
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9840 shlibpath_var=LIBPATH
9842 # AIX 3 has no versioning support, so we append a major version to the name.
9843 soname_spec='${libname}${release}${shared_ext}$major'
9850 hardcode_into_libs=yes
9851 if test "$host_cpu" = ia64; then
9852 # AIX 5 supports IA64
9853 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9854 shlibpath_var=LD_LIBRARY_PATH
9856 # With GCC up to 2.95.x, collect2 would create an import file
9857 # for dependence libraries. The import file would start with
9858 # the line `#! .'. This would cause the generated library to
9859 # depend on `.', always an invalid library. This was fixed in
9860 # development snapshots of GCC prior to 3.0.
9862 aix4 | aix4.[01] | aix4.[01].*)
9863 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9865 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9872 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9873 # soname into executable. Probably we can add versioning support to
9874 # collect2, so additional links can be useful in future.
9875 if test "$aix_use_runtimelinking" = yes; then
9876 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9877 # instead of lib<name>.a to let people know that these are not
9878 # typical AIX shared libraries.
9879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9881 # We preserve .a as extension for shared libraries through AIX4.2
9882 # and later when we are not doing run time linking.
9883 library_names_spec='${libname}${release}.a $libname.a'
9884 soname_spec='${libname}${release}${shared_ext}$major'
9886 shlibpath_var=LIBPATH
9893 # Since July 2007 AmigaOS4 officially supports .so libraries.
9894 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9898 library_names_spec='$libname.ixlibrary $libname.a'
9899 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9900 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'
9906 library_names_spec='${libname}${shared_ext}'
9907 dynamic_linker="$host_os ld.so"
9908 shlibpath_var=LIBRARY_PATH
9914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9915 soname_spec='${libname}${release}${shared_ext}$major'
9916 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9917 shlibpath_var=LD_LIBRARY_PATH
9918 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9919 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9920 # the default ld.so.conf also contains /usr/contrib/lib and
9921 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9922 # libtool to hard-code these into programs
9925 cygwin* | mingw* | pw32* | cegcc*)
9926 version_type=windows
9931 case $GCC,$cc_basename in
9934 library_names_spec='$libname.dll.a'
9935 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9936 postinstall_cmds='base_file=`basename \${file}`~
9937 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9938 dldir=$destdir/`dirname \$dlpath`~
9939 test -d \$dldir || mkdir -p \$dldir~
9940 $install_prog $dir/$dlname \$dldir/$dlname~
9941 chmod a+x \$dldir/$dlname~
9942 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9943 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9945 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9946 dlpath=$dir/\$dldll~
9948 shlibpath_overrides_runpath=yes
9952 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9953 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9955 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9958 # MinGW DLLs use traditional 'lib' prefix
9959 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9962 # pw32 DLLs use 'pw' prefix rather than 'lib'
9963 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9966 dynamic_linker='Win32 ld.exe'
9971 libname_spec='$name'
9972 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9973 library_names_spec='${libname}.dll.lib'
9977 sys_lib_search_path_spec=
9983 # Let DOS variable expansion print the short 8.3 style file name.
9984 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9985 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9988 # Convert to MSYS style.
9989 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9992 # Convert to unix form, then to dos form, then back to unix form
9993 # but this time dos style (no spaces!) so that the unix form looks
9994 # like /cygdrive/c/PROGRA~1:/cygdr...
9995 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9996 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9997 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10000 sys_lib_search_path_spec="$LIB"
10001 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10002 # It is most probably a Windows format PATH.
10003 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10005 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10007 # FIXME: find the short name or the path components, as spaces are
10008 # common. (e.g. "Program Files" -> "PROGRA~1")
10012 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10013 postinstall_cmds='base_file=`basename \${file}`~
10014 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10015 dldir=$destdir/`dirname \$dlpath`~
10016 test -d \$dldir || mkdir -p \$dldir~
10017 $install_prog $dir/$dlname \$dldir/$dlname'
10018 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10019 dlpath=$dir/\$dldll~
10021 shlibpath_overrides_runpath=yes
10022 dynamic_linker='Win32 link.exe'
10026 # Assume MSVC wrapper
10027 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10028 dynamic_linker='Win32 ld.exe'
10031 # FIXME: first we should search . and the directory the executable is in
10035 darwin* | rhapsody*)
10036 dynamic_linker="$host_os dyld"
10037 version_type=darwin
10040 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10041 soname_spec='${libname}${release}${major}$shared_ext'
10042 shlibpath_overrides_runpath=yes
10043 shlibpath_var=DYLD_LIBRARY_PATH
10044 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10046 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10047 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10055 soname_spec='${libname}${release}${shared_ext}$major'
10056 shlibpath_var=LD_LIBRARY_PATH
10063 freebsd* | dragonfly*)
10064 # DragonFly does not have aout. When/if they implement a new
10065 # versioning mechanism, adjust this.
10066 if test -x /usr/bin/objformat; then
10067 objformat=`/usr/bin/objformat`
10070 freebsd[123]*) objformat=aout ;;
10071 *) objformat=elf ;;
10074 version_type=freebsd-$objformat
10075 case $version_type in
10077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10082 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10086 shlibpath_var=LD_LIBRARY_PATH
10089 shlibpath_overrides_runpath=yes
10091 freebsd3.[01]* | freebsdelf3.[01]*)
10092 shlibpath_overrides_runpath=yes
10093 hardcode_into_libs=yes
10095 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10096 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10097 shlibpath_overrides_runpath=no
10098 hardcode_into_libs=yes
10100 *) # from 4.6 on, and DragonFly
10101 shlibpath_overrides_runpath=yes
10102 hardcode_into_libs=yes
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10112 soname_spec='${libname}${release}${shared_ext}$major'
10113 shlibpath_var=LD_LIBRARY_PATH
10114 hardcode_into_libs=yes
10121 dynamic_linker="$host_os runtime_loader"
10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10123 soname_spec='${libname}${release}${shared_ext}$major'
10124 shlibpath_var=LIBRARY_PATH
10125 shlibpath_overrides_runpath=yes
10126 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10127 hardcode_into_libs=yes
10130 hpux9* | hpux10* | hpux11*)
10131 # Give a soname corresponding to the major version so that dld.sl refuses to
10132 # link against other versions.
10139 hardcode_into_libs=yes
10140 dynamic_linker="$host_os dld.so"
10141 shlibpath_var=LD_LIBRARY_PATH
10142 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144 soname_spec='${libname}${release}${shared_ext}$major'
10145 if test "X$HPUX_IA64_MODE" = X32; then
10146 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10148 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10150 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10154 hardcode_into_libs=yes
10155 dynamic_linker="$host_os dld.sl"
10156 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10157 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159 soname_spec='${libname}${release}${shared_ext}$major'
10160 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10161 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10165 dynamic_linker="$host_os dld.sl"
10166 shlibpath_var=SHLIB_PATH
10167 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169 soname_spec='${libname}${release}${shared_ext}$major'
10172 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10173 postinstall_cmds='chmod 555 $lib'
10174 # or fails outright, so override atomically:
10175 install_override_mode=555
10182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10183 soname_spec='${libname}${release}${shared_ext}$major'
10184 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10185 shlibpath_var=LD_LIBRARY_PATH
10186 shlibpath_overrides_runpath=no
10187 hardcode_into_libs=yes
10190 irix5* | irix6* | nonstopux*)
10192 nonstopux*) version_type=nonstopux ;;
10194 if test "$lt_cv_prog_gnu_ld" = yes; then
10202 soname_spec='${libname}${release}${shared_ext}$major'
10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10205 irix5* | nonstopux*)
10206 libsuff= shlibsuff=
10209 case $LD in # libtool.m4 will add one of these switches to LD
10210 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10211 libsuff= shlibsuff= libmagic=32-bit;;
10212 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10213 libsuff=32 shlibsuff=N32 libmagic=N32;;
10214 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10215 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10216 *) libsuff= shlibsuff= libmagic=never-match;;
10220 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10221 shlibpath_overrides_runpath=no
10222 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10223 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10224 hardcode_into_libs=yes
10227 # No shared lib support for Linux oldld, aout, or coff.
10228 linux*oldld* | linux*aout* | linux*coff*)
10232 # This must be Linux ELF.
10233 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238 soname_spec='${libname}${release}${shared_ext}$major'
10239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10240 shlibpath_var=LD_LIBRARY_PATH
10241 shlibpath_overrides_runpath=no
10243 # Some binutils ld are patched to set DT_RUNPATH
10244 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10245 $as_echo_n "(cached) " >&6
10247 lt_cv_shlibpath_overrides_runpath=no
10248 save_LDFLAGS=$LDFLAGS
10249 save_libdir=$libdir
10250 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10251 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253 /* end confdefs.h. */
10263 if ac_fn_c_try_link "$LINENO"; then :
10264 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10265 lt_cv_shlibpath_overrides_runpath=yes
10268 rm -f core conftest.err conftest.$ac_objext \
10269 conftest$ac_exeext conftest.$ac_ext
10270 LDFLAGS=$save_LDFLAGS
10271 libdir=$save_libdir
10275 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10277 # This implies no fast_install, which is unacceptable.
10278 # Some rework will be needed to allow for fast_install
10279 # before this can be enabled.
10280 hardcode_into_libs=yes
10282 # Add ABI-specific directories to the system library path.
10283 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10285 # Append ld.so.conf contents to the search path
10286 if test -f /etc/ld.so.conf; then
10287 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' ' '`
10288 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10292 # We used to test for /lib/ld.so.1 and disable shared libraries on
10293 # powerpc, because MkLinux only supported shared libraries with the
10294 # GNU dynamic linker. Since this was broken with cross compilers,
10295 # most powerpc-linux boxes support dynamic linking these days and
10296 # people can always --disable-shared, the test was removed, and we
10297 # assume the GNU/Linux dynamic linker is in use.
10298 dynamic_linker='GNU/Linux ld.so'
10305 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10308 dynamic_linker='NetBSD (a.out) ld.so'
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10311 soname_spec='${libname}${release}${shared_ext}$major'
10312 dynamic_linker='NetBSD ld.elf_so'
10314 shlibpath_var=LD_LIBRARY_PATH
10315 shlibpath_overrides_runpath=yes
10316 hardcode_into_libs=yes
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322 shlibpath_var=LD_LIBRARY_PATH
10323 shlibpath_overrides_runpath=yes
10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10331 soname_spec='${libname}${release}${shared_ext}$major'
10332 shlibpath_var=LD_LIBRARY_PATH
10333 shlibpath_overrides_runpath=no
10334 hardcode_into_libs=yes
10335 dynamic_linker='ldqnx.so'
10340 sys_lib_dlsearch_path_spec="/usr/lib"
10342 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10344 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10345 *) need_version=no ;;
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10349 shlibpath_var=LD_LIBRARY_PATH
10350 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10352 openbsd2.[89] | openbsd2.[89].*)
10353 shlibpath_overrides_runpath=no
10356 shlibpath_overrides_runpath=yes
10360 shlibpath_overrides_runpath=yes
10365 libname_spec='$name'
10368 library_names_spec='$libname${shared_ext} $libname.a'
10369 dynamic_linker='OS/2 ld.exe'
10370 shlibpath_var=LIBPATH
10373 osf3* | osf4* | osf5*)
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379 shlibpath_var=LD_LIBRARY_PATH
10380 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10381 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10393 soname_spec='${libname}${release}${shared_ext}$major'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 shlibpath_overrides_runpath=yes
10396 hardcode_into_libs=yes
10397 # ldd complains unless libraries are executable
10398 postinstall_cmds='chmod +x $lib'
10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10404 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10405 shlibpath_var=LD_LIBRARY_PATH
10406 shlibpath_overrides_runpath=yes
10407 if test "$with_gnu_ld" = yes; then
10415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10416 soname_spec='${libname}${release}${shared_ext}$major'
10417 shlibpath_var=LD_LIBRARY_PATH
10418 case $host_vendor in
10420 shlibpath_overrides_runpath=no
10422 runpath_var=LD_RUN_PATH
10430 shlibpath_overrides_runpath=no
10431 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10437 if test -d /usr/nec ;then
10439 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10440 soname_spec='$libname${shared_ext}.$major'
10441 shlibpath_var=LD_LIBRARY_PATH
10445 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10446 version_type=freebsd-elf
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10450 soname_spec='${libname}${release}${shared_ext}$major'
10451 shlibpath_var=LD_LIBRARY_PATH
10452 shlibpath_overrides_runpath=yes
10453 hardcode_into_libs=yes
10454 if test "$with_gnu_ld" = yes; then
10455 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10457 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10460 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10464 sys_lib_dlsearch_path_spec='/usr/lib'
10468 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10473 shlibpath_var=LD_LIBRARY_PATH
10474 shlibpath_overrides_runpath=no
10475 hardcode_into_libs=yes
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10481 soname_spec='${libname}${release}${shared_ext}$major'
10482 shlibpath_var=LD_LIBRARY_PATH
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10490 $as_echo "$dynamic_linker" >&6; }
10491 test "$dynamic_linker" = no && can_build_shared=no
10493 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10494 if test "$GCC" = yes; then
10495 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10498 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10499 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10501 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10502 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10597 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10599 if test -n "$hardcode_libdir_flag_spec" ||
10600 test -n "$runpath_var" ||
10601 test "X$hardcode_automatic" = "Xyes" ; then
10603 # We can hardcode non-existent directories.
10604 if test "$hardcode_direct" != no &&
10605 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10606 # have to relink, otherwise we might link with an installed library
10607 # when we should be linking with a yet-to-be-installed one
10608 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10609 test "$hardcode_minus_L" != no; then
10610 # Linking always hardcodes the temporary library directory.
10611 hardcode_action=relink
10613 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10614 hardcode_action=immediate
10617 # We cannot hardcode anything, or else we can only hardcode existing
10619 hardcode_action=unsupported
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10622 $as_echo "$hardcode_action" >&6; }
10624 if test "$hardcode_action" = relink ||
10625 test "$inherit_rpath" = yes; then
10626 # Fast installation is not supported
10627 enable_fast_install=no
10628 elif test "$shlibpath_overrides_runpath" = yes ||
10629 test "$enable_shared" = no; then
10630 # Fast installation is not necessary
10631 enable_fast_install=needless
10639 if test "x$enable_dlopen" != xyes; then
10640 enable_dlopen=unknown
10641 enable_dlopen_self=unknown
10642 enable_dlopen_self_static=unknown
10649 lt_cv_dlopen="load_add_on"
10651 lt_cv_dlopen_self=yes
10654 mingw* | pw32* | cegcc*)
10655 lt_cv_dlopen="LoadLibrary"
10660 lt_cv_dlopen="dlopen"
10665 # if libdl is installed we need to link against it
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10667 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10668 if ${ac_cv_lib_dl_dlopen+:} false; then :
10669 $as_echo_n "(cached) " >&6
10671 ac_check_lib_save_LIBS=$LIBS
10673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10674 /* end confdefs.h. */
10676 /* Override any GCC internal prototype to avoid an error.
10677 Use char because int might match the return type of a GCC
10678 builtin and then its argument prototype would still apply. */
10691 if ac_fn_c_try_link "$LINENO"; then :
10692 ac_cv_lib_dl_dlopen=yes
10694 ac_cv_lib_dl_dlopen=no
10696 rm -f core conftest.err conftest.$ac_objext \
10697 conftest$ac_exeext conftest.$ac_ext
10698 LIBS=$ac_check_lib_save_LIBS
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10701 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10702 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10703 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10706 lt_cv_dlopen="dyld"
10708 lt_cv_dlopen_self=yes
10715 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10716 if test "x$ac_cv_func_shl_load" = xyes; then :
10717 lt_cv_dlopen="shl_load"
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10720 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10721 if ${ac_cv_lib_dld_shl_load+:} false; then :
10722 $as_echo_n "(cached) " >&6
10724 ac_check_lib_save_LIBS=$LIBS
10726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727 /* end confdefs.h. */
10729 /* Override any GCC internal prototype to avoid an error.
10730 Use char because int might match the return type of a GCC
10731 builtin and then its argument prototype would still apply. */
10739 return shl_load ();
10744 if ac_fn_c_try_link "$LINENO"; then :
10745 ac_cv_lib_dld_shl_load=yes
10747 ac_cv_lib_dld_shl_load=no
10749 rm -f core conftest.err conftest.$ac_objext \
10750 conftest$ac_exeext conftest.$ac_ext
10751 LIBS=$ac_check_lib_save_LIBS
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10754 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10755 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10756 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10758 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10759 if test "x$ac_cv_func_dlopen" = xyes; then :
10760 lt_cv_dlopen="dlopen"
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10763 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10764 if ${ac_cv_lib_dl_dlopen+:} false; then :
10765 $as_echo_n "(cached) " >&6
10767 ac_check_lib_save_LIBS=$LIBS
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10772 /* Override any GCC internal prototype to avoid an error.
10773 Use char because int might match the return type of a GCC
10774 builtin and then its argument prototype would still apply. */
10787 if ac_fn_c_try_link "$LINENO"; then :
10788 ac_cv_lib_dl_dlopen=yes
10790 ac_cv_lib_dl_dlopen=no
10792 rm -f core conftest.err conftest.$ac_objext \
10793 conftest$ac_exeext conftest.$ac_ext
10794 LIBS=$ac_check_lib_save_LIBS
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10797 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10798 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10799 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10802 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10803 if ${ac_cv_lib_svld_dlopen+:} false; then :
10804 $as_echo_n "(cached) " >&6
10806 ac_check_lib_save_LIBS=$LIBS
10807 LIBS="-lsvld $LIBS"
10808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809 /* end confdefs.h. */
10811 /* Override any GCC internal prototype to avoid an error.
10812 Use char because int might match the return type of a GCC
10813 builtin and then its argument prototype would still apply. */
10826 if ac_fn_c_try_link "$LINENO"; then :
10827 ac_cv_lib_svld_dlopen=yes
10829 ac_cv_lib_svld_dlopen=no
10831 rm -f core conftest.err conftest.$ac_objext \
10832 conftest$ac_exeext conftest.$ac_ext
10833 LIBS=$ac_check_lib_save_LIBS
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10836 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10837 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10838 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10841 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10842 if ${ac_cv_lib_dld_dld_link+:} false; then :
10843 $as_echo_n "(cached) " >&6
10845 ac_check_lib_save_LIBS=$LIBS
10847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848 /* end confdefs.h. */
10850 /* Override any GCC internal prototype to avoid an error.
10851 Use char because int might match the return type of a GCC
10852 builtin and then its argument prototype would still apply. */
10860 return dld_link ();
10865 if ac_fn_c_try_link "$LINENO"; then :
10866 ac_cv_lib_dld_dld_link=yes
10868 ac_cv_lib_dld_dld_link=no
10870 rm -f core conftest.err conftest.$ac_objext \
10871 conftest$ac_exeext conftest.$ac_ext
10872 LIBS=$ac_check_lib_save_LIBS
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10875 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10876 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10877 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10898 if test "x$lt_cv_dlopen" != xno; then
10904 case $lt_cv_dlopen in
10906 save_CPPFLAGS="$CPPFLAGS"
10907 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10909 save_LDFLAGS="$LDFLAGS"
10910 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10913 LIBS="$lt_cv_dlopen_libs $LIBS"
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10916 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10917 if ${lt_cv_dlopen_self+:} false; then :
10918 $as_echo_n "(cached) " >&6
10920 if test "$cross_compiling" = yes; then :
10921 lt_cv_dlopen_self=cross
10923 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10924 lt_status=$lt_dlunknown
10925 cat > conftest.$ac_ext <<_LT_EOF
10926 #line $LINENO "configure"
10927 #include "confdefs.h"
10936 # define LT_DLGLOBAL RTLD_GLOBAL
10939 # define LT_DLGLOBAL DL_GLOBAL
10941 # define LT_DLGLOBAL 0
10945 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10946 find out it does not work in some platform. */
10947 #ifndef LT_DLLAZY_OR_NOW
10949 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10952 # define LT_DLLAZY_OR_NOW DL_LAZY
10955 # define LT_DLLAZY_OR_NOW RTLD_NOW
10958 # define LT_DLLAZY_OR_NOW DL_NOW
10960 # define LT_DLLAZY_OR_NOW 0
10967 /* When -fvisbility=hidden is used, assume the code has been annotated
10968 correspondingly for the symbols needed. */
10969 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10970 int fnord () __attribute__((visibility("default")));
10973 int fnord () { return 42; }
10976 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10977 int status = $lt_dlunknown;
10981 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10984 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10985 else puts (dlerror ());
10987 /* dlclose (self); */
10995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10996 (eval $ac_link) 2>&5
10998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10999 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11000 (./conftest; exit; ) >&5 2>/dev/null
11002 case x$lt_status in
11003 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11004 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11005 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11008 # compilation failed
11009 lt_cv_dlopen_self=no
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11017 $as_echo "$lt_cv_dlopen_self" >&6; }
11019 if test "x$lt_cv_dlopen_self" = xyes; then
11020 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11022 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11023 if ${lt_cv_dlopen_self_static+:} false; then :
11024 $as_echo_n "(cached) " >&6
11026 if test "$cross_compiling" = yes; then :
11027 lt_cv_dlopen_self_static=cross
11029 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11030 lt_status=$lt_dlunknown
11031 cat > conftest.$ac_ext <<_LT_EOF
11032 #line $LINENO "configure"
11033 #include "confdefs.h"
11042 # define LT_DLGLOBAL RTLD_GLOBAL
11045 # define LT_DLGLOBAL DL_GLOBAL
11047 # define LT_DLGLOBAL 0
11051 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11052 find out it does not work in some platform. */
11053 #ifndef LT_DLLAZY_OR_NOW
11055 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11058 # define LT_DLLAZY_OR_NOW DL_LAZY
11061 # define LT_DLLAZY_OR_NOW RTLD_NOW
11064 # define LT_DLLAZY_OR_NOW DL_NOW
11066 # define LT_DLLAZY_OR_NOW 0
11073 /* When -fvisbility=hidden is used, assume the code has been annotated
11074 correspondingly for the symbols needed. */
11075 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11076 int fnord () __attribute__((visibility("default")));
11079 int fnord () { return 42; }
11082 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11083 int status = $lt_dlunknown;
11087 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11090 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11091 else puts (dlerror ());
11093 /* dlclose (self); */
11101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11102 (eval $ac_link) 2>&5
11104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11105 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11106 (./conftest; exit; ) >&5 2>/dev/null
11108 case x$lt_status in
11109 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11110 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11111 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11114 # compilation failed
11115 lt_cv_dlopen_self_static=no
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11123 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11126 CPPFLAGS="$save_CPPFLAGS"
11127 LDFLAGS="$save_LDFLAGS"
11132 case $lt_cv_dlopen_self in
11133 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11134 *) enable_dlopen_self=unknown ;;
11137 case $lt_cv_dlopen_self_static in
11138 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11139 *) enable_dlopen_self_static=unknown ;;
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11162 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11163 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11164 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11165 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11167 $as_echo "yes" >&6; }
11169 # FIXME - insert some real tests, host_os isn't really good enough
11172 if test -n "$STRIP" ; then
11173 striplib="$STRIP -x"
11174 old_striplib="$STRIP -S"
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11176 $as_echo "yes" >&6; }
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; }
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184 $as_echo "no" >&6; }
11200 # Report which library types will actually be built
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11202 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11204 $as_echo "$can_build_shared" >&6; }
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11207 $as_echo_n "checking whether to build shared libraries... " >&6; }
11208 test "$can_build_shared" = "no" && enable_shared=no
11210 # On AIX, shared libraries and static libraries use the same namespace, and
11211 # are all built from PIC.
11214 test "$enable_shared" = yes && enable_static=no
11215 if test -n "$RANLIB"; then
11216 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11217 postinstall_cmds='$RANLIB $lib'
11222 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11223 test "$enable_shared" = yes && enable_static=no
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11228 $as_echo "$enable_shared" >&6; }
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11231 $as_echo_n "checking whether to build static libraries... " >&6; }
11232 # Make sure either enable_shared or enable_static is yes.
11233 test "$enable_shared" = yes || enable_static=yes
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11235 $as_echo "$enable_static" >&6; }
11242 ac_cpp='$CPP $CPPFLAGS'
11243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11261 ac_config_commands="$ac_config_commands libtool"
11266 # Only expand once:
11272 # Checks for programs.
11274 ac_cpp='$CPP $CPPFLAGS'
11275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11278 if test -n "$ac_tool_prefix"; then
11279 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11280 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11282 $as_echo_n "checking for $ac_word... " >&6; }
11283 if ${ac_cv_prog_CC+:} false; then :
11284 $as_echo_n "(cached) " >&6
11286 if test -n "$CC"; then
11287 ac_cv_prog_CC="$CC" # Let the user override the test.
11289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290 for as_dir in $PATH
11293 test -z "$as_dir" && as_dir=.
11294 for ac_exec_ext in '' $ac_executable_extensions; do
11295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11296 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11307 if test -n "$CC"; then
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11309 $as_echo "$CC" >&6; }
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11312 $as_echo "no" >&6; }
11317 if test -z "$ac_cv_prog_CC"; then
11319 # Extract the first word of "gcc", so it can be a program name with args.
11320 set dummy gcc; ac_word=$2
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11322 $as_echo_n "checking for $ac_word... " >&6; }
11323 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11324 $as_echo_n "(cached) " >&6
11326 if test -n "$ac_ct_CC"; then
11327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11330 for as_dir in $PATH
11333 test -z "$as_dir" && as_dir=.
11334 for ac_exec_ext in '' $ac_executable_extensions; do
11335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11336 ac_cv_prog_ac_ct_CC="gcc"
11337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11347 if test -n "$ac_ct_CC"; then
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11349 $as_echo "$ac_ct_CC" >&6; }
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352 $as_echo "no" >&6; }
11355 if test "x$ac_ct_CC" = x; then
11358 case $cross_compiling:$ac_tool_warned in
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11362 ac_tool_warned=yes ;;
11367 CC="$ac_cv_prog_CC"
11370 if test -z "$CC"; then
11371 if test -n "$ac_tool_prefix"; then
11372 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11373 set dummy ${ac_tool_prefix}cc; ac_word=$2
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11375 $as_echo_n "checking for $ac_word... " >&6; }
11376 if ${ac_cv_prog_CC+:} false; then :
11377 $as_echo_n "(cached) " >&6
11379 if test -n "$CC"; then
11380 ac_cv_prog_CC="$CC" # Let the user override the test.
11382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11383 for as_dir in $PATH
11386 test -z "$as_dir" && as_dir=.
11387 for ac_exec_ext in '' $ac_executable_extensions; do
11388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11389 ac_cv_prog_CC="${ac_tool_prefix}cc"
11390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11400 if test -n "$CC"; then
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11402 $as_echo "$CC" >&6; }
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405 $as_echo "no" >&6; }
11411 if test -z "$CC"; then
11412 # Extract the first word of "cc", so it can be a program name with args.
11413 set dummy cc; ac_word=$2
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11415 $as_echo_n "checking for $ac_word... " >&6; }
11416 if ${ac_cv_prog_CC+:} false; then :
11417 $as_echo_n "(cached) " >&6
11419 if test -n "$CC"; then
11420 ac_cv_prog_CC="$CC" # Let the user override the test.
11422 ac_prog_rejected=no
11423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424 for as_dir in $PATH
11427 test -z "$as_dir" && as_dir=.
11428 for ac_exec_ext in '' $ac_executable_extensions; do
11429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11430 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11431 ac_prog_rejected=yes
11435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11442 if test $ac_prog_rejected = yes; then
11443 # We found a bogon in the path, so make sure we never use it.
11444 set dummy $ac_cv_prog_CC
11446 if test $# != 0; then
11447 # We chose a different compiler from the bogus one.
11448 # However, it has the same basename, so the bogon will be chosen
11449 # first if we set CC to just the basename; use the full file name.
11451 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11457 if test -n "$CC"; then
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11459 $as_echo "$CC" >&6; }
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462 $as_echo "no" >&6; }
11467 if test -z "$CC"; then
11468 if test -n "$ac_tool_prefix"; then
11469 for ac_prog in cl.exe
11471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11474 $as_echo_n "checking for $ac_word... " >&6; }
11475 if ${ac_cv_prog_CC+:} false; then :
11476 $as_echo_n "(cached) " >&6
11478 if test -n "$CC"; then
11479 ac_cv_prog_CC="$CC" # Let the user override the test.
11481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11482 for as_dir in $PATH
11485 test -z "$as_dir" && as_dir=.
11486 for ac_exec_ext in '' $ac_executable_extensions; do
11487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11488 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11499 if test -n "$CC"; then
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11501 $as_echo "$CC" >&6; }
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504 $as_echo "no" >&6; }
11508 test -n "$CC" && break
11511 if test -z "$CC"; then
11513 for ac_prog in cl.exe
11515 # Extract the first word of "$ac_prog", so it can be a program name with args.
11516 set dummy $ac_prog; ac_word=$2
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11518 $as_echo_n "checking for $ac_word... " >&6; }
11519 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11520 $as_echo_n "(cached) " >&6
11522 if test -n "$ac_ct_CC"; then
11523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526 for as_dir in $PATH
11529 test -z "$as_dir" && as_dir=.
11530 for ac_exec_ext in '' $ac_executable_extensions; do
11531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11532 ac_cv_prog_ac_ct_CC="$ac_prog"
11533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11543 if test -n "$ac_ct_CC"; then
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11545 $as_echo "$ac_ct_CC" >&6; }
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548 $as_echo "no" >&6; }
11552 test -n "$ac_ct_CC" && break
11555 if test "x$ac_ct_CC" = x; then
11558 case $cross_compiling:$ac_tool_warned in
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11562 ac_tool_warned=yes ;;
11571 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11573 as_fn_error $? "no acceptable C compiler found in \$PATH
11574 See \`config.log' for more details" "$LINENO" 5; }
11576 # Provide some information about the compiler.
11577 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11580 for ac_option in --version -v -V -qversion; do
11581 { { ac_try="$ac_compiler $ac_option >&5"
11582 case "(($ac_try" in
11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584 *) ac_try_echo=$ac_try;;
11586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11587 $as_echo "$ac_try_echo"; } >&5
11588 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11590 if test -s conftest.err; then
11592 ... rest of stderr output deleted ...
11593 10q' conftest.err >conftest.er1
11594 cat conftest.er1 >&5
11596 rm -f conftest.er1 conftest.err
11597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11598 test $ac_status = 0; }
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11602 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11603 if ${ac_cv_c_compiler_gnu+:} false; then :
11604 $as_echo_n "(cached) " >&6
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h. */
11620 if ac_fn_c_try_compile "$LINENO"; then :
11621 ac_compiler_gnu=yes
11625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11626 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11630 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11631 if test $ac_compiler_gnu = yes; then
11636 ac_test_CFLAGS=${CFLAGS+set}
11637 ac_save_CFLAGS=$CFLAGS
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11639 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11640 if ${ac_cv_prog_cc_g+:} false; then :
11641 $as_echo_n "(cached) " >&6
11643 ac_save_c_werror_flag=$ac_c_werror_flag
11644 ac_c_werror_flag=yes
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11658 if ac_fn_c_try_compile "$LINENO"; then :
11659 ac_cv_prog_cc_g=yes
11662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h. */
11673 if ac_fn_c_try_compile "$LINENO"; then :
11676 ac_c_werror_flag=$ac_save_c_werror_flag
11678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11679 /* end confdefs.h. */
11689 if ac_fn_c_try_compile "$LINENO"; then :
11690 ac_cv_prog_cc_g=yes
11692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11697 ac_c_werror_flag=$ac_save_c_werror_flag
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11700 $as_echo "$ac_cv_prog_cc_g" >&6; }
11701 if test "$ac_test_CFLAGS" = set; then
11702 CFLAGS=$ac_save_CFLAGS
11703 elif test $ac_cv_prog_cc_g = yes; then
11704 if test "$GCC" = yes; then
11710 if test "$GCC" = yes; then
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11717 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11718 if ${ac_cv_prog_cc_c89+:} false; then :
11719 $as_echo_n "(cached) " >&6
11721 ac_cv_prog_cc_c89=no
11723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11724 /* end confdefs.h. */
11725 #include <stdarg.h>
11727 #include <sys/types.h>
11728 #include <sys/stat.h>
11729 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11730 struct buf { int x; };
11731 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11732 static char *e (p, i)
11738 static char *f (char * (*g) (char **, int), char **p, ...)
11743 s = g (p, va_arg (v,int));
11748 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11749 function prototypes and stuff, but not '\xHH' hex character constants.
11750 These don't provoke an error unfortunately, instead are silently treated
11751 as 'x'. The following induces an error, until -std is added to get
11752 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11753 array size at least. It's necessary to write '\x00'==0 to get something
11754 that's true only with -std. */
11755 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11757 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11758 inside strings and character constants. */
11760 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11762 int test (int i, double x);
11763 struct s1 {int (*f) (int a);};
11764 struct s2 {int (*f) (double a);};
11765 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11771 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11776 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11777 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11779 CC="$ac_save_CC $ac_arg"
11780 if ac_fn_c_try_compile "$LINENO"; then :
11781 ac_cv_prog_cc_c89=$ac_arg
11783 rm -f core conftest.err conftest.$ac_objext
11784 test "x$ac_cv_prog_cc_c89" != "xno" && break
11786 rm -f conftest.$ac_ext
11791 case "x$ac_cv_prog_cc_c89" in
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11794 $as_echo "none needed" >&6; } ;;
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11797 $as_echo "unsupported" >&6; } ;;
11799 CC="$CC $ac_cv_prog_cc_c89"
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11801 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11803 if test "x$ac_cv_prog_cc_c89" != xno; then :
11808 ac_cpp='$CPP $CPPFLAGS'
11809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11813 depcc="$CC" am_compiler_list=
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11816 $as_echo_n "checking dependency style of $depcc... " >&6; }
11817 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11818 $as_echo_n "(cached) " >&6
11820 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11821 # We make a subdir and do the tests there. Otherwise we can end up
11822 # making bogus files that we don't know about and never remove. For
11823 # instance it was reported that on HP-UX the gcc test will end up
11824 # making a dummy file named `D' -- because `-MD' means `put the output
11827 # Copy depcomp to subdir because otherwise we won't find it if we're
11828 # using a relative directory.
11829 cp "$am_depcomp" conftest.dir
11831 # We will build objects and dependencies in a subdirectory because
11832 # it helps to detect inapplicable dependency modes. For instance
11833 # both Tru64's cc and ICC support -MD to output dependencies as a
11834 # side effect of compilation, but ICC will put the dependencies in
11835 # the current directory while Tru64 will put them in the object
11839 am_cv_CC_dependencies_compiler_type=none
11840 if test "$am_compiler_list" = ""; then
11841 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11843 am__universal=false
11844 case " $depcc " in #(
11845 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11848 for depmode in $am_compiler_list; do
11849 # Setup a source with many dependencies, because some compilers
11850 # like to wrap large dependency lists on column 80 (with \), and
11851 # we should not choose a depcomp mode which is confused by this.
11853 # We need to recreate these files for each test, as the compiler may
11854 # overwrite some of them when testing with obscure command lines.
11855 # This happens at least with the AIX C compiler.
11857 for i in 1 2 3 4 5 6; do
11858 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11859 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11860 # Solaris 8's {/usr,}/bin/sh.
11861 touch sub/conftst$i.h
11863 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11865 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11866 # mode. It turns out that the SunPro C++ compiler does not properly
11867 # handle `-M -o', and we need to detect this. Also, some Intel
11868 # versions had trouble with output in subdirs
11869 am__obj=sub/conftest.${OBJEXT-o}
11870 am__minus_obj="-o $am__obj"
11873 # This depmode causes a compiler race in universal mode.
11874 test "$am__universal" = false || continue
11877 # after this tag, mechanisms are not by side-effect, so they'll
11878 # only be used when explicitly requested
11879 if test "x$enable_dependency_tracking" = xyes; then
11885 msvisualcpp | msvcmsys)
11886 # This compiler won't grok `-c -o', but also, the minuso test has
11887 # not run yet. These depmodes are late enough in the game, and
11888 # so weak that their functioning should not be impacted.
11889 am__obj=conftest.${OBJEXT-o}
11894 if depmode=$depmode \
11895 source=sub/conftest.c object=$am__obj \
11896 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11897 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11898 >/dev/null 2>conftest.err &&
11899 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11900 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11901 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11902 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11903 # icc doesn't choke on unknown options, it will just issue warnings
11904 # or remarks (even with -Werror). So we grep stderr for any message
11905 # that says an option was ignored or not supported.
11906 # When given -MP, icc 7.0 and 7.1 complain thusly:
11907 # icc: Command line warning: ignoring option '-M'; no argument required
11908 # The diagnosis changed in icc 8.0:
11909 # icc: Command line remark: option '-MP' not supported
11910 if (grep 'ignoring option' conftest.err ||
11911 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11912 am_cv_CC_dependencies_compiler_type=$depmode
11919 rm -rf conftest.dir
11921 am_cv_CC_dependencies_compiler_type=none
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11926 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11927 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11930 test "x$enable_dependency_tracking" != xno \
11931 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11932 am__fastdepCC_TRUE=
11933 am__fastdepCC_FALSE='#'
11935 am__fastdepCC_TRUE='#'
11936 am__fastdepCC_FALSE=
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11942 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11944 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11945 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11946 $as_echo_n "(cached) " >&6
11948 cat >conftest.make <<\_ACEOF
11951 @echo '@@@%%%=$(MAKE)=@@@%%%'
11953 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11954 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11955 *@@@%%%=?*=@@@%%%*)
11956 eval ac_cv_prog_make_${ac_make}_set=yes;;
11958 eval ac_cv_prog_make_${ac_make}_set=no;;
11960 rm -f conftest.make
11962 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11964 $as_echo "yes" >&6; }
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11968 $as_echo "no" >&6; }
11969 SET_MAKE="MAKE=${MAKE-make}"
11978 # Check whether --enable-openssl was given.
11979 if test "${enable_openssl+set}" = set; then :
11980 enableval=$enable_openssl; openssl=yes
11985 if test "x$openssl" = "xyes" ; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
11987 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
11988 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
11989 $as_echo_n "(cached) " >&6
11991 ac_check_lib_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. */
12002 char SSL_library_init ();
12006 return SSL_library_init ();
12011 if ac_fn_c_try_link "$LINENO"; then :
12012 ac_cv_lib_ssl_SSL_library_init=yes
12014 ac_cv_lib_ssl_SSL_library_init=no
12016 rm -f core conftest.err conftest.$ac_objext \
12017 conftest$ac_exeext conftest.$ac_ext
12018 LIBS=$ac_check_lib_save_LIBS
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
12021 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
12022 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
12023 cat >>confdefs.h <<_ACEOF
12024 #define HAVE_LIBSSL 1
12031 CFLAGS="$CFLAGS -DLWS_OPENSSL_SUPPORT"
12037 # Check whether --enable-nofork was given.
12038 if test "${enable_nofork+set}" = set; then :
12039 enableval=$enable_nofork; nofork=yes
12044 if test "x$nofork" = "xyes" ; then
12045 CFLAGS="$CFLAGS -DLWS_NO_FORK"
12047 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12048 if test "x$ac_cv_type_pid_t" = xyes; then :
12052 cat >>confdefs.h <<_ACEOF
12058 for ac_header in vfork.h
12060 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12061 if test "x$ac_cv_header_vfork_h" = xyes; then :
12062 cat >>confdefs.h <<_ACEOF
12063 #define HAVE_VFORK_H 1
12070 for ac_func in fork vfork
12072 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12073 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12074 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12075 cat >>confdefs.h <<_ACEOF
12076 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12082 if test "x$ac_cv_func_fork" = xyes; then
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12084 $as_echo_n "checking for working fork... " >&6; }
12085 if ${ac_cv_func_fork_works+:} false; then :
12086 $as_echo_n "(cached) " >&6
12088 if test "$cross_compiling" = yes; then :
12089 ac_cv_func_fork_works=cross
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12093 $ac_includes_default
12098 /* By Ruediger Kuhlmann. */
12099 return fork () < 0;
12105 if ac_fn_c_try_run "$LINENO"; then :
12106 ac_cv_func_fork_works=yes
12108 ac_cv_func_fork_works=no
12110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12111 conftest.$ac_objext conftest.beam conftest.$ac_ext
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12116 $as_echo "$ac_cv_func_fork_works" >&6; }
12119 ac_cv_func_fork_works=$ac_cv_func_fork
12121 if test "x$ac_cv_func_fork_works" = xcross; then
12123 *-*-amigaos* | *-*-msdosdjgpp*)
12124 # Override, as these systems have only a dummy fork() stub
12125 ac_cv_func_fork_works=no
12128 ac_cv_func_fork_works=yes
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12132 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12134 ac_cv_func_vfork_works=$ac_cv_func_vfork
12135 if test "x$ac_cv_func_vfork" = xyes; then
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12137 $as_echo_n "checking for working vfork... " >&6; }
12138 if ${ac_cv_func_vfork_works+:} false; then :
12139 $as_echo_n "(cached) " >&6
12141 if test "$cross_compiling" = yes; then :
12142 ac_cv_func_vfork_works=cross
12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h. */
12146 /* Thanks to Paul Eggert for this test. */
12147 $ac_includes_default
12148 #include <sys/wait.h>
12149 #ifdef HAVE_VFORK_H
12150 # include <vfork.h>
12152 /* On some sparc systems, changes by the child to local and incoming
12153 argument registers are propagated back to the parent. The compiler
12154 is told about this with #include <vfork.h>, but some compilers
12155 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12156 static variable whose address is put into a register that is
12157 clobbered by the vfork. */
12160 sparc_address_test (int arg)
12162 sparc_address_test (arg) int arg;
12165 static pid_t child;
12183 pid_t parent = getpid ();
12186 sparc_address_test (0);
12191 /* Here is another test for sparc vfork register problems. This
12192 test uses lots of local variables, at least as many local
12193 variables as main has allocated so far including compiler
12194 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12195 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12196 reuse the register of parent for one of the local variables,
12197 since it will think that parent can't possibly be used any more
12198 in this routine. Assigning to the local variable will thus
12199 munge parent in the parent process. */
12201 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12202 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12203 /* Convince the compiler that p..p7 are live; otherwise, it might
12204 use the same hardware register for all 8 local variables. */
12205 if (p != p1 || p != p2 || p != p3 || p != p4
12206 || p != p5 || p != p6 || p != p7)
12209 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12210 from child file descriptors. If the child closes a descriptor
12211 before it execs or exits, this munges the parent's descriptor
12212 as well. Test for this by closing stdout in the child. */
12213 _exit(close(fileno(stdout)) != 0);
12218 while (wait(&status) != child)
12221 /* Was there some problem with vforking? */
12224 /* Did the child fail? (This shouldn't happen.) */
12227 /* Did the vfork/compiler bug occur? */
12228 || parent != getpid()
12230 /* Did the file descriptor bug occur? */
12231 || fstat(fileno(stdout), &st) != 0
12236 if ac_fn_c_try_run "$LINENO"; then :
12237 ac_cv_func_vfork_works=yes
12239 ac_cv_func_vfork_works=no
12241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12242 conftest.$ac_objext conftest.beam conftest.$ac_ext
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12247 $as_echo "$ac_cv_func_vfork_works" >&6; }
12250 if test "x$ac_cv_func_fork_works" = xcross; then
12251 ac_cv_func_vfork_works=$ac_cv_func_vfork
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12253 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12256 if test "x$ac_cv_func_vfork_works" = xyes; then
12258 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12262 $as_echo "#define vfork fork" >>confdefs.h
12265 if test "x$ac_cv_func_fork_works" = xyes; then
12267 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12276 # Check whether --enable-libcrypto was given.
12277 if test "${enable_libcrypto+set}" = set; then :
12278 enableval=$enable_libcrypto; libcrypto=yes
12283 if test "x$libcrypto" = "xyes" ; then
12284 CFLAGS="$CFLAGS -DLWS_LIBCRYPTO"
12285 LDFLAGS="$LDFLAGS -lcrypto"
12287 if test x$libcrypto = xyes; then
12289 LIBCRYPTO_FALSE='#'
12301 # Check whether --with-client-cert-dir was given.
12302 if test "${with_client_cert_dir+set}" = set; then :
12303 withval=$with_client_cert_dir; clientcertdir=$withval
12305 clientcertdir=/etc/pki/tls/certs/
12317 # Check whether --enable-noping was given.
12318 if test "${enable_noping+set}" = set; then :
12319 enableval=$enable_noping; noping=yes
12324 if test x$noping = xyes; then
12335 # Checks for header files.
12336 for ac_header in zlib.h fcntl.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h
12338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12339 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12340 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12341 cat >>confdefs.h <<_ACEOF
12342 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12350 # Checks for typedefs, structures, and compiler characteristics.
12351 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12352 if test "x$ac_cv_type_size_t" = xyes; then :
12356 cat >>confdefs.h <<_ACEOF
12357 #define size_t unsigned int
12363 # Checks for library functions.
12365 for ac_header in stdlib.h
12367 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12368 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12369 cat >>confdefs.h <<_ACEOF
12370 #define HAVE_STDLIB_H 1
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12378 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12379 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12380 $as_echo_n "(cached) " >&6
12382 if test "$cross_compiling" = yes; then :
12383 ac_cv_func_malloc_0_nonnull=no
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h. */
12387 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12388 # include <stdlib.h>
12396 return ! malloc (0);
12401 if ac_fn_c_try_run "$LINENO"; then :
12402 ac_cv_func_malloc_0_nonnull=yes
12404 ac_cv_func_malloc_0_nonnull=no
12406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12407 conftest.$ac_objext conftest.beam conftest.$ac_ext
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12412 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12413 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12415 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12418 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12420 case " $LIBOBJS " in
12421 *" malloc.$ac_objext "* ) ;;
12422 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12427 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12432 for ac_header in stdlib.h
12434 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12435 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12436 cat >>confdefs.h <<_ACEOF
12437 #define HAVE_STDLIB_H 1
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
12445 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
12446 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
12447 $as_echo_n "(cached) " >&6
12449 if test "$cross_compiling" = yes; then :
12450 ac_cv_func_realloc_0_nonnull=no
12452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453 /* end confdefs.h. */
12454 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12455 # include <stdlib.h>
12463 return ! realloc (0, 0);
12468 if ac_fn_c_try_run "$LINENO"; then :
12469 ac_cv_func_realloc_0_nonnull=yes
12471 ac_cv_func_realloc_0_nonnull=no
12473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12474 conftest.$ac_objext conftest.beam conftest.$ac_ext
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
12479 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
12480 if test $ac_cv_func_realloc_0_nonnull = yes; then :
12482 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
12485 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
12487 case " $LIBOBJS " in
12488 *" realloc.$ac_objext "* ) ;;
12489 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
12494 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12499 for ac_func in bzero memset socket strerror
12501 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12502 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12503 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12504 cat >>confdefs.h <<_ACEOF
12505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12512 ac_config_files="$ac_config_files Makefile lib/Makefile test-server/Makefile"
12515 cat >confcache <<\_ACEOF
12516 # This file is a shell script that caches the results of configure
12517 # tests run on this system so they can be shared between configure
12518 # scripts and configure runs, see configure's option --config-cache.
12519 # It is not useful on other systems. If it contains results you don't
12520 # want to keep, you may remove or edit it.
12522 # config.status only pays attention to the cache file if you give it
12523 # the --recheck option to rerun configure.
12525 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12526 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12527 # following values.
12531 # The following way of writing the cache mishandles newlines in values,
12532 # but we know of no workaround that is simple, portable, and efficient.
12533 # So, we kill variables containing newlines.
12534 # Ultrix sh set writes to stderr and can't be redirected directly,
12535 # and sets the high bit in the cache file unless we assign to the vars.
12537 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12538 eval ac_val=\$$ac_var
12542 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12543 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12546 _ | IFS | as_nl) ;; #(
12547 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12548 *) { eval $ac_var=; unset $ac_var;} ;;
12554 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12555 *${as_nl}ac_space=\ *)
12556 # `set' does not quote correctly, so add quotes: double-quote
12557 # substitution turns \\\\ into \\, and sed turns \\ into \.
12560 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12563 # `set' quotes correctly as required by POSIX, so do not add quotes.
12564 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12573 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12575 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12577 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12578 if test -w "$cache_file"; then
12579 if test "x$cache_file" != "x/dev/null"; then
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12581 $as_echo "$as_me: updating cache $cache_file" >&6;}
12582 if test ! -f "$cache_file" || test -h "$cache_file"; then
12583 cat confcache >"$cache_file"
12585 case $cache_file in #(
12587 mv -f confcache "$cache_file"$$ &&
12588 mv -f "$cache_file"$$ "$cache_file" ;; #(
12590 mv -f confcache "$cache_file" ;;
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12596 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12601 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12602 # Let make expand exec_prefix.
12603 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12605 DEFS=-DHAVE_CONFIG_H
12610 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12611 # 1. Remove the extension, and $U if already installed.
12612 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12613 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12614 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12615 # will be set to the directory where LIBOBJS objects are built.
12616 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12617 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12619 LIBOBJS=$ac_libobjs
12621 LTLIBOBJS=$ac_ltlibobjs
12624 if test -n "$EXEEXT"; then
12626 am__EXEEXT_FALSE='#'
12628 am__EXEEXT_TRUE='#'
12632 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12633 as_fn_error $? "conditional \"AMDEP\" was never defined.
12634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12636 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12637 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12640 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12641 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12644 if test -z "${LIBCRYPTO_TRUE}" && test -z "${LIBCRYPTO_FALSE}"; then
12645 as_fn_error $? "conditional \"LIBCRYPTO\" was never defined.
12646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12648 if test -z "${NOPING_TRUE}" && test -z "${NOPING_FALSE}"; then
12649 as_fn_error $? "conditional \"NOPING\" was never defined.
12650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12653 : "${CONFIG_STATUS=./config.status}"
12655 ac_clean_files_save=$ac_clean_files
12656 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12658 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12660 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12662 # Generated by $as_me.
12663 # Run this file to recreate the current configuration.
12664 # Compiler output produced by configure, useful for debugging
12665 # configure, is in config.log if it exists.
12668 ac_cs_recheck=false
12671 SHELL=\${CONFIG_SHELL-$SHELL}
12674 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12675 ## -------------------- ##
12676 ## M4sh Initialization. ##
12677 ## -------------------- ##
12679 # Be more Bourne compatible
12680 DUALCASE=1; export DUALCASE # for MKS sh
12681 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12684 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12685 # is contrary to our usage. Disable this feature.
12686 alias -g '${1+"$@"}'='"$@"'
12687 setopt NO_GLOB_SUBST
12689 case `(set -o) 2>/dev/null` in #(
12701 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12702 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12703 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12704 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12705 # Prefer a ksh shell builtin over an external printf program on Solaris,
12706 # but without wasting forks for bash or zsh.
12707 if test -z "$BASH_VERSION$ZSH_VERSION" \
12708 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12709 as_echo='print -r --'
12710 as_echo_n='print -rn --'
12711 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12712 as_echo='printf %s\n'
12713 as_echo_n='printf %s'
12715 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12716 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12717 as_echo_n='/usr/ucb/echo -n'
12719 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12720 as_echo_n_body='eval
12724 expr "X$arg" : "X\\(.*\\)$as_nl";
12725 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12727 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12729 export as_echo_n_body
12730 as_echo_n='sh -c $as_echo_n_body as_echo'
12732 export as_echo_body
12733 as_echo='sh -c $as_echo_body as_echo'
12736 # The user is always right.
12737 if test "${PATH_SEPARATOR+set}" != set; then
12739 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12740 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12747 # We need space, tab and new line, in precisely that order. Quoting is
12748 # there to prevent editors from complaining about space-tab.
12749 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12750 # splitting by setting IFS to empty value.)
12753 # Find who we are. Look in the path if we contain no directory separator.
12756 *[\\/]* ) as_myself=$0 ;;
12757 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12758 for as_dir in $PATH
12761 test -z "$as_dir" && as_dir=.
12762 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12768 # We did not find ourselves, most probably we were run as `sh COMMAND'
12769 # in which case we are not to be found in the path.
12770 if test "x$as_myself" = x; then
12773 if test ! -f "$as_myself"; then
12774 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12778 # Unset variables that we do not need and which cause bugs (e.g. in
12779 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12780 # suppresses any "Segmentation fault" message there. '((' could
12781 # trigger a bug in pdksh 5.2.14.
12782 for as_var in BASH_ENV ENV MAIL MAILPATH
12783 do eval test x\${$as_var+set} = xset \
12784 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12797 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12800 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12801 # ----------------------------------------
12802 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12803 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12804 # script with STATUS, using 1 if that was 0.
12807 as_status=$1; test $as_status -eq 0 && as_status=1
12809 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12810 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12812 $as_echo "$as_me: error: $2" >&2
12813 as_fn_exit $as_status
12817 # as_fn_set_status STATUS
12818 # -----------------------
12819 # Set $? to STATUS, without forking.
12820 as_fn_set_status ()
12823 } # as_fn_set_status
12825 # as_fn_exit STATUS
12826 # -----------------
12827 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12831 as_fn_set_status $1
12837 # Portably unset VAR.
12840 { eval $1=; unset $1;}
12842 as_unset=as_fn_unset
12843 # as_fn_append VAR VALUE
12844 # ----------------------
12845 # Append the text in VALUE to the end of the definition contained in VAR. Take
12846 # advantage of any shell optimizations that allow amortized linear growth over
12847 # repeated appends, instead of the typical quadratic growth present in naive
12849 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12850 eval 'as_fn_append ()
12861 # as_fn_arith ARG...
12862 # ------------------
12863 # Perform arithmetic evaluation on the ARGs, and store the result in the
12864 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12865 # must be portable across $(()) and expr.
12866 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12867 eval 'as_fn_arith ()
12874 as_val=`expr "$@" || test $? -eq 1`
12879 if expr a : '\(a\)' >/dev/null 2>&1 &&
12880 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12886 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12887 as_basename=basename
12892 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12898 as_me=`$as_basename -- "$0" ||
12899 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12900 X"$0" : 'X\(//\)$' \| \
12901 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12903 sed '/^.*\/\([^/][^/]*\)\/*$/{
12917 # Avoid depending upon Character Ranges.
12918 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12919 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12920 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12921 as_cr_digits='0123456789'
12922 as_cr_alnum=$as_cr_Letters$as_cr_digits
12924 ECHO_C= ECHO_N= ECHO_T=
12925 case `echo -n x` in #(((((
12927 case `echo 'xy\c'` in
12928 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12930 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12937 rm -f conf$$ conf$$.exe conf$$.file
12938 if test -d conf$$.dir; then
12939 rm -f conf$$.dir/conf$$.file
12942 mkdir conf$$.dir 2>/dev/null
12944 if (echo >conf$$.file) 2>/dev/null; then
12945 if ln -s conf$$.file conf$$ 2>/dev/null; then
12947 # ... but there are two gotchas:
12948 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12949 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12950 # In both cases, we have to default to `cp -p'.
12951 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12953 elif ln conf$$.file conf$$ 2>/dev/null; then
12961 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12962 rmdir conf$$.dir 2>/dev/null
12967 # Create "$as_dir" as a directory, including parents if necessary.
12972 -*) as_dir=./$as_dir;;
12974 test -d "$as_dir" || eval $as_mkdir_p || {
12978 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12979 *) as_qdir=$as_dir;;
12981 as_dirs="'$as_qdir' $as_dirs"
12982 as_dir=`$as_dirname -- "$as_dir" ||
12983 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12984 X"$as_dir" : 'X\(//\)[^/]' \| \
12985 X"$as_dir" : 'X\(//\)$' \| \
12986 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12987 $as_echo X"$as_dir" |
12988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12992 /^X\(\/\/\)[^/].*/{
13005 test -d "$as_dir" && break
13007 test -z "$as_dirs" || eval "mkdir $as_dirs"
13008 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13012 if mkdir -p . 2>/dev/null; then
13013 as_mkdir_p='mkdir -p "$as_dir"'
13015 test -d ./-p && rmdir ./-p
13019 if test -x / >/dev/null 2>&1; then
13020 as_test_x='test -x'
13022 if ls -dL / >/dev/null 2>&1; then
13029 if test -d "$1"; then
13035 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13036 ???[sx]*):;;*)false;;esac;fi
13040 as_executable_p=$as_test_x
13042 # Sed expression to map a string onto a valid CPP name.
13043 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13045 # Sed expression to map a string onto a valid variable name.
13046 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13050 ## ----------------------------------- ##
13051 ## Main body of $CONFIG_STATUS script. ##
13052 ## ----------------------------------- ##
13054 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13057 # Save the log message, to keep $0 and so on meaningful, and to
13058 # report actual input values of CONFIG_FILES etc. instead of their
13059 # values after options handling.
13061 This file was extended by libwebsockets $as_me 0.3, which was
13062 generated by GNU Autoconf 2.68. Invocation command line was
13064 CONFIG_FILES = $CONFIG_FILES
13065 CONFIG_HEADERS = $CONFIG_HEADERS
13066 CONFIG_LINKS = $CONFIG_LINKS
13067 CONFIG_COMMANDS = $CONFIG_COMMANDS
13070 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13075 case $ac_config_files in *"
13076 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13079 case $ac_config_headers in *"
13080 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13085 # Files that config.status was made for.
13086 config_files="$ac_config_files"
13087 config_headers="$ac_config_headers"
13088 config_commands="$ac_config_commands"
13092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13094 \`$as_me' instantiates files and other configuration actions
13095 from templates according to the current configuration. Unless the files
13096 and actions are specified as TAGs, all are instantiated by default.
13098 Usage: $0 [OPTION]... [TAG]...
13100 -h, --help print this help, then exit
13101 -V, --version print version number and configuration settings, then exit
13102 --config print configuration, then exit
13103 -q, --quiet, --silent
13104 do not print progress messages
13105 -d, --debug don't remove temporary files
13106 --recheck update $as_me by reconfiguring in the same conditions
13107 --file=FILE[:TEMPLATE]
13108 instantiate the configuration file FILE
13109 --header=FILE[:TEMPLATE]
13110 instantiate the configuration header FILE
13112 Configuration files:
13115 Configuration headers:
13118 Configuration commands:
13121 Report bugs to <andy@warmcat.com>."
13124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13125 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13127 libwebsockets config.status 0.3
13128 configured by $0, generated by GNU Autoconf 2.68,
13129 with options \\"\$ac_cs_config\\"
13131 Copyright (C) 2010 Free Software Foundation, Inc.
13132 This config.status script is free software; the Free Software Foundation
13133 gives unlimited permission to copy, distribute and modify it."
13140 test -n "\$AWK" || AWK=awk
13143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13144 # The default lists apply if the user does not specify any file.
13150 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13151 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13155 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13167 # Handling of the options.
13168 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13170 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13171 $as_echo "$ac_cs_version"; exit ;;
13172 --config | --confi | --conf | --con | --co | --c )
13173 $as_echo "$ac_cs_config"; exit ;;
13174 --debug | --debu | --deb | --de | --d | -d )
13176 --file | --fil | --fi | --f )
13179 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13180 '') as_fn_error $? "missing file argument" ;;
13182 as_fn_append CONFIG_FILES " '$ac_optarg'"
13183 ac_need_defaults=false;;
13184 --header | --heade | --head | --hea )
13187 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13189 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13190 ac_need_defaults=false;;
13192 # Conflict between --help and --header
13193 as_fn_error $? "ambiguous option: \`$1'
13194 Try \`$0 --help' for more information.";;
13195 --help | --hel | -h )
13196 $as_echo "$ac_cs_usage"; exit ;;
13197 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13198 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13201 # This is an error.
13202 -*) as_fn_error $? "unrecognized option: \`$1'
13203 Try \`$0 --help' for more information." ;;
13205 *) as_fn_append ac_config_targets " $1"
13206 ac_need_defaults=false ;;
13212 ac_configure_extra_args=
13214 if $ac_cs_silent; then
13216 ac_configure_extra_args="$ac_configure_extra_args --silent"
13220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13221 if \$ac_cs_recheck; then
13222 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13224 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13225 CONFIG_SHELL='$SHELL'
13226 export CONFIG_SHELL
13231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13235 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13236 ## Running $as_me. ##
13242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13246 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13249 # The HP-UX ksh and POSIX shell print the target directory to stdout
13250 # if CDPATH is set.
13251 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13253 sed_quote_subst='$sed_quote_subst'
13254 double_quote_subst='$double_quote_subst'
13255 delay_variable_subst='$delay_variable_subst'
13256 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13257 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13258 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13259 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13260 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13261 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13262 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13263 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13264 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13265 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13266 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13267 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13268 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13269 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13270 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13271 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13272 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13273 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13274 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13275 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13276 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13277 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13278 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13279 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13280 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13281 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13282 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13283 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13284 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13285 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13286 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13287 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13288 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13289 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13290 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13291 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13292 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13293 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13294 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13295 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13296 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13297 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13298 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13299 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13300 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13301 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13302 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13303 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13304 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13305 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13306 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13307 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13308 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13309 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13310 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13311 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"`'
13312 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13313 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13314 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13315 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13316 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13317 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13318 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13319 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13320 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13321 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13322 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13323 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13324 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13325 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13326 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13327 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13328 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13329 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13330 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13331 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13332 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13333 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13334 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13335 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13336 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13337 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13338 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13339 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13340 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13341 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13342 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13343 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13344 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13345 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13346 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13347 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13348 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13349 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13350 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13351 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13352 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13353 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13354 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13355 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13356 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13357 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13358 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13359 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13360 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13361 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13362 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13363 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13364 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13365 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13366 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13367 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13368 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13369 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13370 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13371 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13372 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13373 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13374 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13375 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13376 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13377 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13378 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13379 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13380 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13381 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13382 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13383 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13384 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13385 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13388 LTCFLAGS='$LTCFLAGS'
13389 compiler='$compiler_DEFAULT'
13391 # A function that is used when there is no print builtin or printf.
13392 func_fallback_echo ()
13394 eval 'cat <<_LTECHO_EOF
13399 # Quote evaled strings.
13413 deplibs_check_method \
13418 sharedlib_from_linklib_cmd \
13421 archiver_list_spec \
13427 lt_cv_sys_global_symbol_pipe \
13428 lt_cv_sys_global_symbol_to_cdecl \
13429 lt_cv_sys_global_symbol_to_c_name_address \
13430 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13431 nm_file_list_spec \
13432 lt_prog_compiler_no_builtin_flag \
13433 lt_prog_compiler_pic \
13434 lt_prog_compiler_wl \
13435 lt_prog_compiler_static \
13436 lt_cv_prog_compiler_c_o \
13445 export_dynamic_flag_spec \
13446 whole_archive_flag_spec \
13447 compiler_needs_object \
13449 allow_undefined_flag \
13450 no_undefined_flag \
13451 hardcode_libdir_flag_spec \
13452 hardcode_libdir_flag_spec_ld \
13453 hardcode_libdir_separator \
13457 variables_saved_for_relink \
13459 library_names_spec \
13461 install_override_mode \
13465 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13466 *[\\\\\\\`\\"\\\$]*)
13467 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13470 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13475 # Double-quote double-evaled strings.
13476 for var in reload_cmds \
13477 old_postinstall_cmds \
13478 old_postuninstall_cmds \
13480 extract_expsyms_cmds \
13481 old_archive_from_new_cmds \
13482 old_archive_from_expsyms_cmds \
13484 archive_expsym_cmds \
13486 module_expsym_cmds \
13487 export_symbols_cmds \
13491 postuninstall_cmds \
13493 sys_lib_search_path_spec \
13494 sys_lib_dlsearch_path_spec; do
13495 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13496 *[\\\\\\\`\\"\\\$]*)
13497 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13500 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13505 ac_aux_dir='$ac_aux_dir'
13506 xsi_shell='$xsi_shell'
13507 lt_shell_append='$lt_shell_append'
13509 # See if we are running on zsh, and set the options which allow our
13510 # commands through without removal of \ escapes INIT.
13511 if test -n "\${ZSH_VERSION+set}" ; then
13512 setopt NO_GLOB_SUBST
13518 TIMESTAMP='$TIMESTAMP'
13527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13529 # Handling of arguments.
13530 for ac_config_target in $ac_config_targets
13532 case $ac_config_target in
13533 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13534 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13535 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13536 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13537 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13538 "test-server/Makefile") CONFIG_FILES="$CONFIG_FILES test-server/Makefile" ;;
13540 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13545 # If the user did not use the arguments to specify the items to instantiate,
13546 # then the envvar interface is used. Set only those that are not.
13547 # We use the long form for the default assignment because of an extremely
13548 # bizarre bug on SunOS 4.1.3.
13549 if $ac_need_defaults; then
13550 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13551 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13552 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13555 # Have a temporary directory for convenience. Make it in the build tree
13556 # simply because there is no reason against having it here, and in addition,
13557 # creating and moving files from /tmp can sometimes cause problems.
13558 # Hook for its removal unless debugging.
13559 # Note that there is a small window in which the directory will not be cleaned:
13560 # after its creation but before its name has been assigned to `$tmp'.
13564 trap 'exit_status=$?
13565 : "${ac_tmp:=$tmp}"
13566 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13568 trap 'as_fn_exit 1' 1 2 13 15
13570 # Create a (secure) tmp directory for tmp files.
13573 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13577 tmp=./conf$$-$RANDOM
13578 (umask 077 && mkdir "$tmp")
13579 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13582 # Set up the scripts for CONFIG_FILES section.
13583 # No need to generate them if there are no CONFIG_FILES.
13584 # This happens for instance with `./config.status config.h'.
13585 if test -n "$CONFIG_FILES"; then
13588 ac_cr=`echo X | tr X '\015'`
13589 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13590 # But we know of no other shell where ac_cr would be empty at this
13591 # point, so we can use a bashism as a fallback.
13592 if test "x$ac_cr" = x; then
13593 eval ac_cr=\$\'\\r\'
13595 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13596 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13599 ac_cs_awk_cr=$ac_cr
13602 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13607 echo "cat >conf$$subs.awk <<_ACEOF" &&
13608 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13610 } >conf$$subs.sh ||
13611 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13612 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13614 for ac_last_try in false false false false false :; do
13615 . ./conf$$subs.sh ||
13616 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13618 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13619 if test $ac_delim_n = $ac_delim_num; then
13621 elif $ac_last_try; then
13622 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13624 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13627 rm -f conf$$subs.sh
13629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13630 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13634 s/^/S["/; s/!.*/"]=/
13644 s/\(.\{148\}\)..*/\1/
13646 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13651 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13658 s/\(.\{148\}\)..*/\1/
13660 s/["\\]/\\&/g; s/^/"/; s/$/"/
13664 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13669 ' <conf$$subs.awk | sed '
13674 ' >>$CONFIG_STATUS || ac_write_fail=1
13675 rm -f conf$$subs.awk
13676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13678 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13679 for (key in S) S_is_set[key] = 1
13685 nfields = split(line, field, "@")
13687 len = length(field[1])
13688 for (i = 2; i < nfields; i++) {
13690 keylen = length(key)
13691 if (S_is_set[key]) {
13693 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13694 len += length(value) + length(field[++i])
13705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13706 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13707 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13710 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13711 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13714 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13715 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13716 # trailing colons and then remove the whole line if VPATH becomes empty
13717 # (actually we leave an empty line to preserve line numbers).
13718 if test "x$srcdir" = x.; then
13719 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13738 fi # test -n "$CONFIG_FILES"
13740 # Set up the scripts for CONFIG_HEADERS section.
13741 # No need to generate them if there are no CONFIG_HEADERS.
13742 # This happens for instance with `./config.status Makefile'.
13743 if test -n "$CONFIG_HEADERS"; then
13744 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13748 # Transform confdefs.h into an awk script `defines.awk', embedded as
13749 # here-document in config.status, that substitutes the proper values into
13750 # config.h.in to produce config.h.
13752 # Create a delimiter string that does not exist in confdefs.h, to ease
13753 # handling of long lines.
13755 for ac_last_try in false false :; do
13756 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13757 if test -z "$ac_tt"; then
13759 elif $ac_last_try; then
13760 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13762 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13766 # For the awk script, D is an array of macro values keyed by name,
13767 # likewise P contains macro parameters if any. Preserve backslash
13768 # newline sequences.
13770 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13772 s/.\{148\}/&'"$ac_delim"'/g
13775 s/^[ ]*#[ ]*define[ ][ ]*/ /
13782 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13784 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13788 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13789 D["\1"]=" \3\\\\\\n"\\/p
13791 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13796 s/.\{148\}/&'"$ac_delim"'/g
13801 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13804 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13806 ' <confdefs.h | sed '
13807 s/'"$ac_delim"'/"\\\
13808 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13811 for (key in D) D_is_set[key] = 1
13814 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13816 split(line, arg, " ")
13817 if (arg[1] == "#") {
13821 defundef = substr(arg[1], 2)
13824 split(mac1, mac2, "(") #)
13826 prefix = substr(line, 1, index(line, defundef) - 1)
13827 if (D_is_set[macro]) {
13828 # Preserve the white space surrounding the "#".
13829 print prefix "define", macro P[macro] D[macro]
13832 # Replace #undef with comments. This is necessary, for example,
13833 # in the case of _POSIX_SOURCE, which is predefined and required
13834 # on some systems where configure will not decide to define it.
13835 if (defundef == "undef") {
13836 print "/*", prefix defundef, macro, "*/"
13844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13845 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13846 fi # test -n "$CONFIG_HEADERS"
13849 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13854 :[FHLC]) ac_mode=$ac_tag; continue;;
13856 case $ac_mode$ac_tag in
13858 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13859 :[FH]-) ac_tag=-:-;;
13860 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13877 -) ac_f="$ac_tmp/stdin";;
13878 *) # Look for the file first in the build tree, then in the source tree
13879 # (if the path is not absolute). The absolute path cannot be DOS-style,
13880 # because $ac_f cannot contain `:'.
13884 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13886 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13888 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13889 as_fn_append ac_file_inputs " '$ac_f'"
13892 # Let's still pretend it is `configure' which instantiates (i.e., don't
13893 # use $as_me), people would be surprised to read:
13894 # /* config.h. Generated by config.status. */
13895 configure_input='Generated from '`
13896 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13898 if test x"$ac_file" != x-; then
13899 configure_input="$ac_file. $configure_input"
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13901 $as_echo "$as_me: creating $ac_file" >&6;}
13903 # Neutralize special characters interpreted by sed in replacement strings.
13904 case $configure_input in #(
13905 *\&* | *\|* | *\\* )
13906 ac_sed_conf_input=`$as_echo "$configure_input" |
13907 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13908 *) ac_sed_conf_input=$configure_input;;
13912 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13913 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13918 ac_dir=`$as_dirname -- "$ac_file" ||
13919 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13920 X"$ac_file" : 'X\(//\)[^/]' \| \
13921 X"$ac_file" : 'X\(//\)$' \| \
13922 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13923 $as_echo X"$ac_file" |
13924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13928 /^X\(\/\/\)[^/].*/{
13941 as_dir="$ac_dir"; as_fn_mkdir_p
13945 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13947 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13948 # A ".." for each directory in $ac_dir_suffix.
13949 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13950 case $ac_top_builddir_sub in
13951 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13952 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13955 ac_abs_top_builddir=$ac_pwd
13956 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13957 # for backward compatibility:
13958 ac_top_builddir=$ac_top_build_prefix
13961 .) # We are building in place.
13963 ac_top_srcdir=$ac_top_builddir_sub
13964 ac_abs_top_srcdir=$ac_pwd ;;
13965 [\\/]* | ?:[\\/]* ) # Absolute name.
13966 ac_srcdir=$srcdir$ac_dir_suffix;
13967 ac_top_srcdir=$srcdir
13968 ac_abs_top_srcdir=$srcdir ;;
13969 *) # Relative name.
13970 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13971 ac_top_srcdir=$ac_top_build_prefix$srcdir
13972 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13974 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13984 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13985 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13987 ac_MKDIR_P=$MKDIR_P
13989 [\\/$]* | ?:[\\/]* ) ;;
13990 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13995 # If the template does not know about datarootdir, expand it.
13996 # FIXME: This hack should be removed a few years after 2.60.
13997 ac_datarootdir_hack=; ac_datarootdir_seen=
14008 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14009 *datarootdir*) ac_datarootdir_seen=yes;;
14010 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14012 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14015 ac_datarootdir_hack='
14016 s&@datadir@&$datadir&g
14017 s&@docdir@&$docdir&g
14018 s&@infodir@&$infodir&g
14019 s&@localedir@&$localedir&g
14020 s&@mandir@&$mandir&g
14021 s&\\\${datarootdir}&$datarootdir&g' ;;
14025 # Neutralize VPATH when `$srcdir' = `.'.
14026 # Shell code in configure.ac might set extrasub.
14027 # FIXME: do we really want to maintain this feature?
14028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14029 ac_sed_extra="$ac_vpsub
14032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14034 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14035 s|@configure_input@|$ac_sed_conf_input|;t t
14036 s&@top_builddir@&$ac_top_builddir_sub&;t t
14037 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14038 s&@srcdir@&$ac_srcdir&;t t
14039 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14040 s&@top_srcdir@&$ac_top_srcdir&;t t
14041 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14042 s&@builddir@&$ac_builddir&;t t
14043 s&@abs_builddir@&$ac_abs_builddir&;t t
14044 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14045 s&@INSTALL@&$ac_INSTALL&;t t
14046 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14047 $ac_datarootdir_hack
14049 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14050 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14052 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14053 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14054 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14055 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14057 which seems to be undefined. Please make sure it is defined" >&5
14058 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14059 which seems to be undefined. Please make sure it is defined" >&2;}
14061 rm -f "$ac_tmp/stdin"
14063 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14064 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14066 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14072 if test x"$ac_file" != x-; then
14074 $as_echo "/* $configure_input */" \
14075 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14076 } >"$ac_tmp/config.h" \
14077 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14078 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14080 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14083 mv "$ac_tmp/config.h" "$ac_file" \
14084 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14087 $as_echo "/* $configure_input */" \
14088 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14089 || as_fn_error $? "could not create -" "$LINENO" 5
14091 # Compute "$ac_file"'s index in $config_headers.
14094 for _am_header in $config_headers :; do
14095 case $_am_header in
14096 $_am_arg | $_am_arg:* )
14099 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14102 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14103 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14104 X"$_am_arg" : 'X\(//\)[^/]' \| \
14105 X"$_am_arg" : 'X\(//\)$' \| \
14106 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14107 $as_echo X"$_am_arg" |
14108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14112 /^X\(\/\/\)[^/].*/{
14124 s/.*/./; q'`/stamp-h$_am_stamp_count
14127 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14128 $as_echo "$as_me: executing $ac_file commands" >&6;}
14133 case $ac_file$ac_mode in
14134 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14135 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14136 # are listed without --file. Let's play safe and only enable the eval
14137 # if we detect the quoting.
14138 case $CONFIG_FILES in
14139 *\'*) eval set x "$CONFIG_FILES" ;;
14140 *) set x $CONFIG_FILES ;;
14145 # Strip MF so we end up with the name of the file.
14146 mf=`echo "$mf" | sed -e 's/:.*$//'`
14147 # Check whether this is an Automake generated Makefile or not.
14148 # We used to match only the files named `Makefile.in', but
14149 # some people rename them; so instead we look at the file content.
14150 # Grep'ing the first line is not enough: some people post-process
14151 # each Makefile.in and add a new line on top of each file to say so.
14152 # Grep'ing the whole file is not good either: AIX grep has a line
14153 # limit of 2048, but all sed's we know have understand at least 4000.
14154 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14155 dirpart=`$as_dirname -- "$mf" ||
14156 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14157 X"$mf" : 'X\(//\)[^/]' \| \
14158 X"$mf" : 'X\(//\)$' \| \
14159 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14165 /^X\(\/\/\)[^/].*/{
14181 # Extract the definition of DEPDIR, am__include, and am__quote
14182 # from the Makefile without running `make'.
14183 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14184 test -z "$DEPDIR" && continue
14185 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14186 test -z "am__include" && continue
14187 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14188 # When using ansi2knr, U may be empty or an underscore; expand it
14189 U=`sed -n 's/^U = //p' < "$mf"`
14190 # Find all dependency output files, they are included files with
14191 # $(DEPDIR) in their names. We invoke sed twice because it is the
14192 # simplest approach to changing $(DEPDIR) to its actual value in the
14194 for file in `sed -n "
14195 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14196 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14197 # Make sure the directory exists.
14198 test -f "$dirpart/$file" && continue
14199 fdir=`$as_dirname -- "$file" ||
14200 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14201 X"$file" : 'X\(//\)[^/]' \| \
14202 X"$file" : 'X\(//\)$' \| \
14203 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14204 $as_echo X"$file" |
14205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14209 /^X\(\/\/\)[^/].*/{
14222 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14223 # echo "creating $dirpart/$file"
14224 echo '# dummy' > "$dirpart/$file"
14231 # See if we are running on zsh, and set the options which allow our
14232 # commands through without removal of \ escapes.
14233 if test -n "${ZSH_VERSION+set}" ; then
14234 setopt NO_GLOB_SUBST
14237 cfgfile="${ofile}T"
14238 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14241 cat <<_LT_EOF >> "$cfgfile"
14244 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14245 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14246 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14247 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14249 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14250 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14252 # Written by Gordon Matzigkeit, 1996
14254 # This file is part of GNU Libtool.
14256 # GNU Libtool is free software; you can redistribute it and/or
14257 # modify it under the terms of the GNU General Public License as
14258 # published by the Free Software Foundation; either version 2 of
14259 # the License, or (at your option) any later version.
14261 # As a special exception to the GNU General Public License,
14262 # if you distribute this file as part of a program or library that
14263 # is built using GNU Libtool, you may include this file under the
14264 # same distribution terms that you use for the rest of that program.
14266 # GNU Libtool is distributed in the hope that it will be useful,
14267 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14268 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14269 # GNU General Public License for more details.
14271 # You should have received a copy of the GNU General Public License
14272 # along with GNU Libtool; see the file COPYING. If not, a copy
14273 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14274 # obtained by writing to the Free Software Foundation, Inc.,
14275 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14278 # The names of the tagged configurations supported by this script.
14281 # ### BEGIN LIBTOOL CONFIG
14283 # Which release of libtool.m4 was used?
14284 macro_version=$macro_version
14285 macro_revision=$macro_revision
14287 # Whether or not to build shared libraries.
14288 build_libtool_libs=$enable_shared
14290 # Whether or not to build static libraries.
14291 build_old_libs=$enable_static
14293 # What type of objects to build.
14296 # Whether or not to optimize for fast installation.
14297 fast_install=$enable_fast_install
14299 # Shell to use when invoking shell scripts.
14302 # An echo program that protects backslashes.
14306 host_alias=$host_alias
14310 # The build system.
14311 build_alias=$build_alias
14315 # A sed program that does not truncate output.
14318 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14319 Xsed="\$SED -e 1s/^X//"
14321 # A grep program that handles long lines.
14327 # A literal string matcher.
14330 # A BSD- or MS-compatible name lister.
14333 # Whether we need soft or hard links.
14336 # What is the maximum length of a command?
14337 max_cmd_len=$max_cmd_len
14339 # Object file suffix (normally "o").
14342 # Executable file suffix (normally "").
14345 # whether the shell understands "unset".
14348 # turn spaces into newlines.
14351 # turn newlines into spaces.
14354 # convert \$build file names to \$host format.
14355 to_host_file_cmd=$lt_cv_to_host_file_cmd
14357 # convert \$build files to toolchain format.
14358 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14360 # An object symbol dumper.
14361 OBJDUMP=$lt_OBJDUMP
14363 # Method to check whether dependent libraries are shared objects.
14364 deplibs_check_method=$lt_deplibs_check_method
14366 # Command to use when deplibs_check_method = "file_magic".
14367 file_magic_cmd=$lt_file_magic_cmd
14369 # How to find potential files when deplibs_check_method = "file_magic".
14370 file_magic_glob=$lt_file_magic_glob
14372 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14373 want_nocaseglob=$lt_want_nocaseglob
14375 # DLL creation program.
14376 DLLTOOL=$lt_DLLTOOL
14378 # Command to associate shared and link libraries.
14379 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14384 # Flags to create an archive.
14385 AR_FLAGS=$lt_AR_FLAGS
14387 # How to feed a file listing to the archiver.
14388 archiver_list_spec=$lt_archiver_list_spec
14390 # A symbol stripping program.
14393 # Commands used to install an old-style archive.
14395 old_postinstall_cmds=$lt_old_postinstall_cmds
14396 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14398 # Whether to use a lock for old archive extraction.
14399 lock_old_archive_extraction=$lock_old_archive_extraction
14404 # LTCC compiler flags.
14405 LTCFLAGS=$lt_CFLAGS
14407 # Take the output of nm and produce a listing of raw symbols and C names.
14408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14410 # Transform the output of nm in a proper C declaration.
14411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14413 # Transform the output of nm in a C name address pair.
14414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14416 # Transform the output of nm in a C name address pair when lib prefix is needed.
14417 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14419 # Specify filename containing input files for \$NM.
14420 nm_file_list_spec=$lt_nm_file_list_spec
14422 # The root where to search for dependent libraries,and in which our libraries should be installed.
14423 lt_sysroot=$lt_sysroot
14425 # The name of the directory that contains temporary libtool files.
14428 # Used to examine libraries when file_magic_cmd begins with "file".
14429 MAGIC_CMD=$MAGIC_CMD
14431 # Must we lock files when doing compilation?
14432 need_locks=$lt_need_locks
14435 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14437 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14438 DSYMUTIL=$lt_DSYMUTIL
14440 # Tool to change global to local symbols on Mac OS X.
14443 # Tool to manipulate fat objects and archives on Mac OS X.
14446 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14449 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14450 OTOOL64=$lt_OTOOL64
14452 # Old archive suffix (normally "a").
14455 # Shared library suffix (normally ".so").
14456 shrext_cmds=$lt_shrext_cmds
14458 # The commands to extract the exported symbol list from a shared archive.
14459 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14461 # Variables whose values should be saved in libtool wrapper scripts and
14462 # restored at link time.
14463 variables_saved_for_relink=$lt_variables_saved_for_relink
14465 # Do we need the "lib" prefix for modules?
14466 need_lib_prefix=$need_lib_prefix
14468 # Do we need a version for libraries?
14469 need_version=$need_version
14471 # Library versioning type.
14472 version_type=$version_type
14474 # Shared library runtime path variable.
14475 runpath_var=$runpath_var
14477 # Shared library path variable.
14478 shlibpath_var=$shlibpath_var
14480 # Is shlibpath searched before the hard-coded library search path?
14481 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14483 # Format of library name prefix.
14484 libname_spec=$lt_libname_spec
14486 # List of archive names. First name is the real one, the rest are links.
14487 # The last name is the one that the linker finds with -lNAME
14488 library_names_spec=$lt_library_names_spec
14490 # The coded name of the library, if different from the real name.
14491 soname_spec=$lt_soname_spec
14493 # Permission mode override for installation of shared libraries.
14494 install_override_mode=$lt_install_override_mode
14496 # Command to use after installation of a shared archive.
14497 postinstall_cmds=$lt_postinstall_cmds
14499 # Command to use after uninstallation of a shared archive.
14500 postuninstall_cmds=$lt_postuninstall_cmds
14502 # Commands used to finish a libtool library installation in a directory.
14503 finish_cmds=$lt_finish_cmds
14505 # As "finish_cmds", except a single script fragment to be evaled but
14507 finish_eval=$lt_finish_eval
14509 # Whether we should hardcode library paths into libraries.
14510 hardcode_into_libs=$hardcode_into_libs
14512 # Compile-time system search path for libraries.
14513 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14515 # Run-time system search path for libraries.
14516 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14518 # Whether dlopen is supported.
14519 dlopen_support=$enable_dlopen
14521 # Whether dlopen of programs is supported.
14522 dlopen_self=$enable_dlopen_self
14524 # Whether dlopen of statically linked programs is supported.
14525 dlopen_self_static=$enable_dlopen_self_static
14527 # Commands to strip libraries.
14528 old_striplib=$lt_old_striplib
14529 striplib=$lt_striplib
14532 # The linker used to build libraries.
14535 # How to create reloadable object files.
14536 reload_flag=$lt_reload_flag
14537 reload_cmds=$lt_reload_cmds
14539 # Commands used to build an old-style archive.
14540 old_archive_cmds=$lt_old_archive_cmds
14542 # A language specific compiler.
14545 # Is the compiler the GNU compiler?
14548 # Compiler flag to turn off builtin functions.
14549 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14551 # Additional compiler flags for building library objects.
14552 pic_flag=$lt_lt_prog_compiler_pic
14554 # How to pass a linker flag through the compiler.
14555 wl=$lt_lt_prog_compiler_wl
14557 # Compiler flag to prevent dynamic linking.
14558 link_static_flag=$lt_lt_prog_compiler_static
14560 # Does compiler simultaneously support -c and -o options?
14561 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14563 # Whether or not to add -lc for building shared libraries.
14564 build_libtool_need_lc=$archive_cmds_need_lc
14566 # Whether or not to disallow shared libs when runtime libs are static.
14567 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14569 # Compiler flag to allow reflexive dlopens.
14570 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14572 # Compiler flag to generate shared objects directly from archives.
14573 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14575 # Whether the compiler copes with passing no objects directly.
14576 compiler_needs_object=$lt_compiler_needs_object
14578 # Create an old-style archive from a shared archive.
14579 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14581 # Create a temporary old-style archive to link instead of a shared archive.
14582 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14584 # Commands used to build a shared archive.
14585 archive_cmds=$lt_archive_cmds
14586 archive_expsym_cmds=$lt_archive_expsym_cmds
14588 # Commands used to build a loadable module if different from building
14589 # a shared archive.
14590 module_cmds=$lt_module_cmds
14591 module_expsym_cmds=$lt_module_expsym_cmds
14593 # Whether we are building with GNU ld or not.
14594 with_gnu_ld=$lt_with_gnu_ld
14596 # Flag that allows shared libraries with undefined symbols to be built.
14597 allow_undefined_flag=$lt_allow_undefined_flag
14599 # Flag that enforces no undefined symbols.
14600 no_undefined_flag=$lt_no_undefined_flag
14602 # Flag to hardcode \$libdir into a binary during linking.
14603 # This must work even if \$libdir does not exist
14604 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14606 # If ld is used when linking, flag to hardcode \$libdir into a binary
14607 # during linking. This must work even if \$libdir does not exist.
14608 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14610 # Whether we need a single "-rpath" flag with a separated argument.
14611 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14613 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14614 # DIR into the resulting binary.
14615 hardcode_direct=$hardcode_direct
14617 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14618 # DIR into the resulting binary and the resulting library dependency is
14619 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14620 # library is relocated.
14621 hardcode_direct_absolute=$hardcode_direct_absolute
14623 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14624 # into the resulting binary.
14625 hardcode_minus_L=$hardcode_minus_L
14627 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14628 # into the resulting binary.
14629 hardcode_shlibpath_var=$hardcode_shlibpath_var
14631 # Set to "yes" if building a shared library automatically hardcodes DIR
14632 # into the library and all subsequent libraries and executables linked
14634 hardcode_automatic=$hardcode_automatic
14636 # Set to yes if linker adds runtime paths of dependent libraries
14637 # to runtime path list.
14638 inherit_rpath=$inherit_rpath
14640 # Whether libtool must link a program against all its dependency libraries.
14641 link_all_deplibs=$link_all_deplibs
14643 # Set to "yes" if exported symbols are required.
14644 always_export_symbols=$always_export_symbols
14646 # The commands to list exported symbols.
14647 export_symbols_cmds=$lt_export_symbols_cmds
14649 # Symbols that should not be listed in the preloaded symbols.
14650 exclude_expsyms=$lt_exclude_expsyms
14652 # Symbols that must always be exported.
14653 include_expsyms=$lt_include_expsyms
14655 # Commands necessary for linking programs (against libraries) with templates.
14656 prelink_cmds=$lt_prelink_cmds
14658 # Commands necessary for finishing linking programs.
14659 postlink_cmds=$lt_postlink_cmds
14661 # Specify filename containing input files.
14662 file_list_spec=$lt_file_list_spec
14664 # How to hardcode a shared library path into an executable.
14665 hardcode_action=$hardcode_action
14667 # ### END LIBTOOL CONFIG
14673 cat <<\_LT_EOF >> "$cfgfile"
14674 # AIX sometimes has problems with the GCC collect2 program. For some
14675 # reason, if we set the COLLECT_NAMES environment variable, the problems
14676 # vanish in a puff of smoke.
14677 if test "X${COLLECT_NAMES+set}" != Xset; then
14679 export COLLECT_NAMES
14686 ltmain="$ac_aux_dir/ltmain.sh"
14689 # We use sed instead of cat because bash on DJGPP gets confused if
14690 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14691 # text mode, it properly converts lines to CR/LF. This bash problem
14692 # is reportedly fixed, but why not run on old versions too?
14693 sed '$q' "$ltmain" >> "$cfgfile" \
14694 || (rm -f "$cfgfile"; exit 1)
14696 if test x"$xsi_shell" = xyes; then
14697 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14701 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14702 \ * ) func_dirname_result="${3}" ;;\
14704 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14705 && mv -f "$cfgfile.tmp" "$cfgfile" \
14706 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14707 test 0 -eq $? || _lt_function_replace_fail=:
14710 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14713 \ func_basename_result="${1##*/}"\
14714 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14715 && mv -f "$cfgfile.tmp" "$cfgfile" \
14716 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14717 test 0 -eq $? || _lt_function_replace_fail=:
14720 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14721 func_dirname_and_basename ()\
14724 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14725 \ * ) func_dirname_result="${3}" ;;\
14727 \ func_basename_result="${1##*/}"\
14728 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14729 && mv -f "$cfgfile.tmp" "$cfgfile" \
14730 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14731 test 0 -eq $? || _lt_function_replace_fail=:
14734 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14737 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14738 \ # positional parameters, so assign one to ordinary parameter first.\
14739 \ func_stripname_result=${3}\
14740 \ func_stripname_result=${func_stripname_result#"${1}"}\
14741 \ func_stripname_result=${func_stripname_result%"${2}"}\
14742 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14743 && mv -f "$cfgfile.tmp" "$cfgfile" \
14744 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14745 test 0 -eq $? || _lt_function_replace_fail=:
14748 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14749 func_split_long_opt ()\
14751 \ func_split_long_opt_name=${1%%=*}\
14752 \ func_split_long_opt_arg=${1#*=}\
14753 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14754 && mv -f "$cfgfile.tmp" "$cfgfile" \
14755 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14756 test 0 -eq $? || _lt_function_replace_fail=:
14759 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14760 func_split_short_opt ()\
14762 \ func_split_short_opt_arg=${1#??}\
14763 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14764 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14765 && mv -f "$cfgfile.tmp" "$cfgfile" \
14766 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14767 test 0 -eq $? || _lt_function_replace_fail=:
14770 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14774 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14775 \ *) func_lo2o_result=${1} ;;\
14777 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14778 && mv -f "$cfgfile.tmp" "$cfgfile" \
14779 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14780 test 0 -eq $? || _lt_function_replace_fail=:
14783 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14786 func_xform_result=${1%.*}.lo\
14787 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14788 && mv -f "$cfgfile.tmp" "$cfgfile" \
14789 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14790 test 0 -eq $? || _lt_function_replace_fail=:
14793 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14796 func_arith_result=$(( $* ))\
14797 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14798 && mv -f "$cfgfile.tmp" "$cfgfile" \
14799 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14800 test 0 -eq $? || _lt_function_replace_fail=:
14803 sed -e '/^func_len ()$/,/^} # func_len /c\
14806 func_len_result=${#1}\
14807 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14808 && mv -f "$cfgfile.tmp" "$cfgfile" \
14809 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14810 test 0 -eq $? || _lt_function_replace_fail=:
14814 if test x"$lt_shell_append" = xyes; then
14815 sed -e '/^func_append ()$/,/^} # func_append /c\
14818 eval "${1}+=\\${2}"\
14819 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14820 && mv -f "$cfgfile.tmp" "$cfgfile" \
14821 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14822 test 0 -eq $? || _lt_function_replace_fail=:
14825 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14826 func_append_quoted ()\
14828 \ func_quote_for_eval "${2}"\
14829 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14830 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14831 && mv -f "$cfgfile.tmp" "$cfgfile" \
14832 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14833 test 0 -eq $? || _lt_function_replace_fail=:
14836 # Save a `func_append' function call where possible by direct use of '+='
14837 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14838 && mv -f "$cfgfile.tmp" "$cfgfile" \
14839 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14840 test 0 -eq $? || _lt_function_replace_fail=:
14842 # Save a `func_append' function call even when '+=' is not available
14843 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14844 && mv -f "$cfgfile.tmp" "$cfgfile" \
14845 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14846 test 0 -eq $? || _lt_function_replace_fail=:
14849 if test x"$_lt_function_replace_fail" = x":"; then
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14851 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14855 mv -f "$cfgfile" "$ofile" ||
14856 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14867 ac_clean_files=$ac_clean_files_save
14869 test $ac_write_fail = 0 ||
14870 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14873 # configure is writing to config.log, and then calls config.status.
14874 # config.status does its own redirection, appending to config.log.
14875 # Unfortunately, on DOS this fails, as config.log is still kept open
14876 # by configure, so config.status won't be able to write to it; its
14877 # output is simply discarded. So we exec the FD to /dev/null,
14878 # effectively closing config.log, so it can be properly (re)opened and
14879 # appended to by config.status. When coming back to configure, we
14880 # need to make the FD available again.
14881 if test "$no_create" != yes; then
14883 ac_config_status_args=
14884 test "$silent" = yes &&
14885 ac_config_status_args="$ac_config_status_args --quiet"
14887 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14889 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14890 # would make configure fail if this is the last instruction.
14891 $ac_cs_success || as_fn_exit 1
14893 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14895 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}