2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir=./$as_dir;;
285 test -d "$as_dir" || eval $as_mkdir_p || {
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 as_val=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status=$?; test $as_status -eq 0 && as_status=1
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 elif ln conf$$.file conf$$ 2>/dev/null; then
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
495 test -d ./-p && rmdir ./-p
499 if test -x / >/dev/null 2>&1; then
502 if ls -dL / >/dev/null 2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
590 # So, first we look for a working echo in the user's PATH.
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
643 # maybe with a smaller string...
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 # Oops. We lost completely, so just stick with echo.
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
678 test -n "$DJDIR" || exec 7<&0 </dev/null
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689 ac_default_prefix=/usr/local
691 ac_config_libobj_dir=.
698 # Identity of this package.
706 ac_unique_file="Makefile.am"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
720 # ifdef HAVE_STDLIB_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
743 ac_subst_vars='am__EXEEXT_FALSE
809 INSTALL_STRIP_PROGRAM
851 program_transform_name
864 enable_option_checking
866 enable_dependency_tracking
873 ac_precious_vars='build_alias
887 # Initialize some variables set by options.
889 ac_init_version=false
890 ac_unrecognized_opts=
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
901 program_transform_name=s,x,x,
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir='${exec_prefix}/bin'
916 sbindir='${exec_prefix}/sbin'
917 libexecdir='${exec_prefix}/libexec'
918 datarootdir='${prefix}/share'
919 datadir='${datarootdir}'
920 sysconfdir='${prefix}/etc'
921 sharedstatedir='${prefix}/com'
922 localstatedir='${prefix}/var'
923 includedir='${prefix}/include'
924 oldincludedir='/usr/include'
925 docdir='${datarootdir}/doc/${PACKAGE}'
926 infodir='${datarootdir}/info'
931 libdir='${exec_prefix}/lib'
932 localedir='${datarootdir}/locale'
933 mandir='${datarootdir}/man'
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
941 eval $ac_prev=\$ac_option
947 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951 # Accept the important Cygnus configure options, so we can diagnose typos.
953 case $ac_dashdash$ac_option in
957 -bindir | --bindir | --bindi | --bind | --bin | --bi)
959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
962 -build | --build | --buil | --bui | --bu)
963 ac_prev=build_alias ;;
964 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
965 build_alias=$ac_optarg ;;
967 -cache-file | --cache-file | --cache-fil | --cache-fi \
968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969 ac_prev=cache_file ;;
970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
972 cache_file=$ac_optarg ;;
975 cache_file=config.cache ;;
977 -datadir | --datadir | --datadi | --datad)
979 -datadir=* | --datadir=* | --datadi=* | --datad=*)
980 datadir=$ac_optarg ;;
982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983 | --dataroo | --dataro | --datar)
984 ac_prev=datarootdir ;;
985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987 datarootdir=$ac_optarg ;;
989 -disable-* | --disable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1003 eval enable_$ac_useropt=no ;;
1005 -docdir | --docdir | --docdi | --doc | --do)
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
1015 -enable-* | --enable-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 as_fn_error "invalid feature name: $ac_useropt"
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1024 "enable_$ac_useropt"
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1029 eval enable_$ac_useropt=\$ac_optarg ;;
1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033 | --exec | --exe | --ex)
1034 ac_prev=exec_prefix ;;
1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037 | --exec=* | --exe=* | --ex=*)
1038 exec_prefix=$ac_optarg ;;
1040 -gas | --gas | --ga | --g)
1041 # Obsolete; use --with-gas.
1044 -help | --help | --hel | --he | -h)
1045 ac_init_help=long ;;
1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047 ac_init_help=recursive ;;
1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049 ac_init_help=short ;;
1051 -host | --host | --hos | --ho)
1052 ac_prev=host_alias ;;
1053 -host=* | --host=* | --hos=* | --ho=*)
1054 host_alias=$ac_optarg ;;
1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060 htmldir=$ac_optarg ;;
1062 -includedir | --includedir | --includedi | --included | --include \
1063 | --includ | --inclu | --incl | --inc)
1064 ac_prev=includedir ;;
1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066 | --includ=* | --inclu=* | --incl=* | --inc=*)
1067 includedir=$ac_optarg ;;
1069 -infodir | --infodir | --infodi | --infod | --info | --inf)
1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072 infodir=$ac_optarg ;;
1074 -libdir | --libdir | --libdi | --libd)
1076 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077 libdir=$ac_optarg ;;
1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080 | --libexe | --libex | --libe)
1081 ac_prev=libexecdir ;;
1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083 | --libexe=* | --libex=* | --libe=*)
1084 libexecdir=$ac_optarg ;;
1086 -localedir | --localedir | --localedi | --localed | --locale)
1087 ac_prev=localedir ;;
1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089 localedir=$ac_optarg ;;
1091 -localstatedir | --localstatedir | --localstatedi | --localstated \
1092 | --localstate | --localstat | --localsta | --localst | --locals)
1093 ac_prev=localstatedir ;;
1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1096 localstatedir=$ac_optarg ;;
1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101 mandir=$ac_optarg ;;
1103 -nfp | --nfp | --nf)
1104 # Obsolete; use --without-fp.
1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108 | --no-cr | --no-c | -n)
1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117 | --oldin | --oldi | --old | --ol | --o)
1118 ac_prev=oldincludedir ;;
1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122 oldincludedir=$ac_optarg ;;
1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127 prefix=$ac_optarg ;;
1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130 | --program-pre | --program-pr | --program-p)
1131 ac_prev=program_prefix ;;
1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134 program_prefix=$ac_optarg ;;
1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137 | --program-suf | --program-su | --program-s)
1138 ac_prev=program_suffix ;;
1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141 program_suffix=$ac_optarg ;;
1143 -program-transform-name | --program-transform-name \
1144 | --program-transform-nam | --program-transform-na \
1145 | --program-transform-n | --program-transform- \
1146 | --program-transform | --program-transfor \
1147 | --program-transfo | --program-transf \
1148 | --program-trans | --program-tran \
1149 | --progr-tra | --program-tr | --program-t)
1150 ac_prev=program_transform_name ;;
1151 -program-transform-name=* | --program-transform-name=* \
1152 | --program-transform-nam=* | --program-transform-na=* \
1153 | --program-transform-n=* | --program-transform-=* \
1154 | --program-transform=* | --program-transfor=* \
1155 | --program-transfo=* | --program-transf=* \
1156 | --program-trans=* | --program-tran=* \
1157 | --progr-tra=* | --program-tr=* | --program-t=*)
1158 program_transform_name=$ac_optarg ;;
1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163 pdfdir=$ac_optarg ;;
1165 -psdir | --psdir | --psdi | --psd | --ps)
1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171 | -silent | --silent | --silen | --sile | --sil)
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178 sbindir=$ac_optarg ;;
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189 sharedstatedir=$ac_optarg ;;
1191 -site | --site | --sit)
1193 -site=* | --site=* | --sit=*)
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199 srcdir=$ac_optarg ;;
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206 sysconfdir=$ac_optarg ;;
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
1209 ac_prev=target_alias ;;
1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211 target_alias=$ac_optarg ;;
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
1220 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error "invalid package name: $ac_useropt"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1233 eval with_$ac_useropt=\$ac_optarg ;;
1235 -without-* | --without-*)
1236 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239 as_fn_error "invalid package name: $ac_useropt"
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1249 eval with_$ac_useropt=no ;;
1252 # Obsolete; use --with-x.
1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256 | --x-incl | --x-inc | --x-in | --x-i)
1257 ac_prev=x_includes ;;
1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260 x_includes=$ac_optarg ;;
1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264 ac_prev=x_libraries ;;
1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267 x_libraries=$ac_optarg ;;
1269 -*) as_fn_error "unrecognized option: \`$ac_option'
1270 Try \`$0 --help' for more information."
1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
1276 case $ac_envvar in #(
1277 '' | [0-9]* | *[!_$as_cr_alnum]* )
1278 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1280 eval $ac_envvar=\$ac_optarg
1281 export $ac_envvar ;;
1284 # FIXME: should be removed in autoconf 3.0.
1285 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1288 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1294 if test -n "$ac_prev"; then
1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296 as_fn_error "missing argument to $ac_option"
1299 if test -n "$ac_unrecognized_opts"; then
1300 case $enable_option_checking in
1302 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1303 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1307 # Check all directory arguments for consistency.
1308 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir
1313 eval ac_val=\$$ac_var
1314 # Remove trailing slashes.
1317 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1318 eval $ac_var=\$ac_val;;
1320 # Be sure to have absolute directory names.
1322 [\\/$]* | ?:[\\/]* ) continue;;
1323 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1325 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1328 # There might be people who depend on the old broken behavior: `$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1333 target=$target_alias
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x; then
1337 if test "x$build_alias" = x; then
1338 cross_compiling=maybe
1339 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1340 If a cross compiler is detected then cross compile mode will be used." >&2
1341 elif test "x$build_alias" != "x$host_alias"; then
1347 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349 test "$silent" = yes && exec 6>/dev/null
1352 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353 ac_ls_di=`ls -di .` &&
1354 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1355 as_fn_error "working directory cannot be determined"
1356 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357 as_fn_error "pwd does not report name of working directory"
1360 # Find the source files, if location was not specified.
1361 if test -z "$srcdir"; then
1362 ac_srcdir_defaulted=yes
1363 # Try the directory containing this script, then the parent directory.
1364 ac_confdir=`$as_dirname -- "$as_myself" ||
1365 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366 X"$as_myself" : 'X\(//\)[^/]' \| \
1367 X"$as_myself" : 'X\(//\)$' \| \
1368 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1369 $as_echo X"$as_myself" |
1370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1392 ac_srcdir_defaulted=no
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1396 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1398 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1402 # When building in place, set srcdir=.
1403 if test "$ac_abs_confdir" = "$ac_pwd"; then
1406 # Remove unnecessary trailing slashes from srcdir.
1407 # Double slashes in file names in object file debugging info
1408 # mess up M-x gdb in Emacs.
1410 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412 for ac_var in $ac_precious_vars; do
1413 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_env_${ac_var}_value=\$${ac_var}
1415 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1416 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1420 # Report the --help message.
1422 if test "$ac_init_help" = "long"; then
1423 # Omit some internal or obsolete options to make the list less imposing.
1424 # This message is too long to be a string in the A/UX 3.1 sh.
1426 \`configure' configures this package to adapt to many kinds of systems.
1428 Usage: $0 [OPTION]... [VAR=VALUE]...
1430 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1431 VAR=VALUE. See below for descriptions of some of the useful variables.
1433 Defaults for the options are specified in brackets.
1436 -h, --help display this help and exit
1437 --help=short display options specific to this package
1438 --help=recursive display the short help of all the included packages
1439 -V, --version display version information and exit
1440 -q, --quiet, --silent do not print \`checking...' messages
1441 --cache-file=FILE cache test results in FILE [disabled]
1442 -C, --config-cache alias for \`--cache-file=config.cache'
1443 -n, --no-create do not create output files
1444 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1446 Installation directories:
1447 --prefix=PREFIX install architecture-independent files in PREFIX
1448 [$ac_default_prefix]
1449 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1452 By default, \`make install' will install all the files in
1453 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1454 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1455 for instance \`--prefix=\$HOME'.
1457 For better control, use the options below.
1459 Fine tuning of the installation directories:
1460 --bindir=DIR user executables [EPREFIX/bin]
1461 --sbindir=DIR system admin executables [EPREFIX/sbin]
1462 --libexecdir=DIR program executables [EPREFIX/libexec]
1463 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1464 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1465 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1466 --libdir=DIR object code libraries [EPREFIX/lib]
1467 --includedir=DIR C header files [PREFIX/include]
1468 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1469 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1470 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1471 --infodir=DIR info documentation [DATAROOTDIR/info]
1472 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1473 --mandir=DIR man documentation [DATAROOTDIR/man]
1474 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1475 --htmldir=DIR html documentation [DOCDIR]
1476 --dvidir=DIR dvi documentation [DOCDIR]
1477 --pdfdir=DIR pdf documentation [DOCDIR]
1478 --psdir=DIR ps documentation [DOCDIR]
1484 --program-prefix=PREFIX prepend PREFIX to installed program names
1485 --program-suffix=SUFFIX append SUFFIX to installed program names
1486 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1489 --build=BUILD configure for building on BUILD [guessed]
1490 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1494 if test -n "$ac_init_help"; then
1499 --disable-option-checking ignore unrecognized --enable/--with options
1500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1502 --enable-static[=PKGS] build static libraries [default=no]
1503 --disable-dependency-tracking speeds up one-time build
1504 --enable-dependency-tracking do not reject slow dependency extractors
1505 --enable-shared[=PKGS] build shared libraries [default=yes]
1506 --enable-fast-install[=PKGS]
1507 optimize for fast installation [default=yes]
1508 --disable-libtool-lock avoid locking (might break parallel builds)
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513 --with-pic try to use only PIC/non-PIC objects [default=use
1515 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1525 CXX C++ compiler command
1526 CXXFLAGS C++ compiler flags
1527 CXXCPP C++ preprocessor
1529 Use these variables to override the choices made by `configure' or to help
1530 it to find libraries and programs with nonstandard names/locations.
1532 Report bugs to the package provider.
1537 if test "$ac_init_help" = "recursive"; then
1538 # If there are subdirs, report their specific --help.
1539 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540 test -d "$ac_dir" ||
1541 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1549 # A ".." for each directory in $ac_dir_suffix.
1550 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1551 case $ac_top_builddir_sub in
1552 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 ac_abs_top_builddir=$ac_pwd
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 # for backward compatibility:
1559 ac_top_builddir=$ac_top_build_prefix
1562 .) # We are building in place.
1564 ac_top_srcdir=$ac_top_builddir_sub
1565 ac_abs_top_srcdir=$ac_pwd ;;
1566 [\\/]* | ?:[\\/]* ) # Absolute name.
1567 ac_srcdir=$srcdir$ac_dir_suffix;
1568 ac_top_srcdir=$srcdir
1569 ac_abs_top_srcdir=$srcdir ;;
1571 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572 ac_top_srcdir=$ac_top_build_prefix$srcdir
1573 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577 cd "$ac_dir" || { ac_status=$?; continue; }
1578 # Check for guested configure.
1579 if test -f "$ac_srcdir/configure.gnu"; then
1581 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582 elif test -f "$ac_srcdir/configure"; then
1584 $SHELL "$ac_srcdir/configure" --help=recursive
1586 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588 cd "$ac_pwd" || { ac_status=$?; break; }
1592 test -n "$ac_init_help" && exit $ac_status
1593 if $ac_init_version; then
1596 generated by GNU Autoconf 2.65
1598 Copyright (C) 2009 Free Software Foundation, Inc.
1599 This configure script is free software; the Free Software Foundation
1600 gives unlimited permission to copy, distribute and modify it.
1605 ## ------------------------ ##
1606 ## Autoconf initialization. ##
1607 ## ------------------------ ##
1609 # ac_fn_c_try_compile LINENO
1610 # --------------------------
1611 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_c_try_compile ()
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 rm -f conftest.$ac_objext
1616 if { { ac_try="$ac_compile"
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_compile") 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; } && {
1632 test -z "$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 } && test -s conftest.$ac_objext; then :
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 as_fn_set_status $ac_retval
1645 } # ac_fn_c_try_compile
1647 # ac_fn_cxx_try_compile LINENO
1648 # ----------------------------
1649 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_cxx_try_compile ()
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 rm -f conftest.$ac_objext
1654 if { { ac_try="$ac_compile"
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_compile") 2>conftest.err
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && {
1670 test -z "$ac_cxx_werror_flag" ||
1671 test ! -s conftest.err
1672 } && test -s conftest.$ac_objext; then :
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681 as_fn_set_status $ac_retval
1683 } # ac_fn_cxx_try_compile
1685 # ac_fn_cxx_try_run LINENO
1686 # ------------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688 # that executables *can* be run.
1689 ac_fn_cxx_try_run ()
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_link"
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>&5
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703 { { case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_try") 2>&5
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; }; }; then :
1715 $as_echo "$as_me: program exited with status $ac_status" >&5
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1719 ac_retval=$ac_status
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723 as_fn_set_status $ac_retval
1725 } # ac_fn_cxx_try_run
1727 # ac_fn_cxx_try_cpp LINENO
1728 # ------------------------
1729 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730 ac_fn_cxx_try_cpp ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_cpp conftest.$ac_ext"
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } >/dev/null && {
1749 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1750 test ! -s conftest.err
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 as_fn_set_status $ac_retval
1762 } # ac_fn_cxx_try_cpp
1764 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1765 # ---------------------------------------------------------
1766 # Tests whether HEADER exists and can be compiled using the include files in
1767 # INCLUDES, setting the cache variable VAR accordingly.
1768 ac_fn_cxx_check_header_compile ()
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1774 $as_echo_n "(cached) " >&6
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1781 if ac_fn_cxx_try_compile "$LINENO"; then :
1786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790 $as_echo "$ac_res" >&6; }
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793 } # ac_fn_cxx_check_header_compile
1795 # ac_fn_c_try_link LINENO
1796 # -----------------------
1797 # Try to link conftest.$ac_ext, and return whether this succeeded.
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext conftest$ac_exeext
1802 if { { ac_try="$ac_link"
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_link") 2>conftest.err
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_c_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest$ac_exeext && {
1821 test "$cross_compiling" = yes ||
1822 $as_test_x conftest$ac_exeext
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1831 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1832 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1833 # interfere with the next link command; also delete a directory that is
1834 # left behind by Apple's compiler. We do this before executing the actions.
1835 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1836 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837 as_fn_set_status $ac_retval
1839 } # ac_fn_c_try_link
1841 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1842 # -------------------------------------------------------
1843 # Tests whether HEADER exists and can be compiled using the include files in
1844 # INCLUDES, setting the cache variable VAR accordingly.
1845 ac_fn_c_check_header_compile ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849 $as_echo_n "checking for $2... " >&6; }
1850 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1851 $as_echo_n "(cached) " >&6
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1858 if ac_fn_c_try_compile "$LINENO"; then :
1863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 } # ac_fn_c_check_header_compile
1872 # ac_fn_c_check_func LINENO FUNC VAR
1873 # ----------------------------------
1874 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1875 ac_fn_c_check_func ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1881 $as_echo_n "(cached) " >&6
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1885 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1887 #define $2 innocuous_$2
1889 /* System header to define __stub macros and hopefully few prototypes,
1890 which can conflict with char $2 (); below.
1891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1892 <limits.h> exists even on freestanding compilers. */
1895 # include <limits.h>
1897 # include <assert.h>
1902 /* Override any GCC internal prototype to avoid an error.
1903 Use char because int might match the return type of a GCC
1904 builtin and then its argument prototype would still apply. */
1909 /* The GNU C library defines this for functions which it implements
1910 to always fail with ENOSYS. Some functions are actually named
1911 something starting with __ and the normal name is an alias. */
1912 #if defined __stub_$2 || defined __stub___$2
1924 if ac_fn_c_try_link "$LINENO"; then :
1929 rm -f core conftest.err conftest.$ac_objext \
1930 conftest$ac_exeext conftest.$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1937 } # ac_fn_c_check_func
1939 # ac_fn_cxx_try_link LINENO
1940 # -------------------------
1941 # Try to link conftest.$ac_ext, and return whether this succeeded.
1942 ac_fn_cxx_try_link ()
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 rm -f conftest.$ac_objext conftest$ac_exeext
1946 if { { ac_try="$ac_link"
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_link") 2>conftest.err
1955 if test -s conftest.err; then
1956 grep -v '^ *+' conftest.err >conftest.er1
1957 cat conftest.er1 >&5
1958 mv -f conftest.er1 conftest.err
1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; } && {
1962 test -z "$ac_cxx_werror_flag" ||
1963 test ! -s conftest.err
1964 } && test -s conftest$ac_exeext && {
1965 test "$cross_compiling" = yes ||
1966 $as_test_x conftest$ac_exeext
1970 $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1975 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1976 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1977 # interfere with the next link command; also delete a directory that is
1978 # left behind by Apple's compiler. We do this before executing the actions.
1979 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1980 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981 as_fn_set_status $ac_retval
1983 } # ac_fn_cxx_try_link
1985 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1986 # ---------------------------------------------------------
1987 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1988 # the include files in INCLUDES and setting the cache variable VAR
1990 ac_fn_cxx_check_header_mongrel ()
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995 $as_echo_n "checking for $2... " >&6; }
1996 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1997 $as_echo_n "(cached) " >&6
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2003 # Is the header compilable?
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2005 $as_echo_n "checking $2 usability... " >&6; }
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2011 if ac_fn_cxx_try_compile "$LINENO"; then :
2012 ac_header_compiler=yes
2014 ac_header_compiler=no
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2018 $as_echo "$ac_header_compiler" >&6; }
2020 # Is the header present?
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2022 $as_echo_n "checking $2 presence... " >&6; }
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2027 if ac_fn_cxx_try_cpp "$LINENO"; then :
2028 ac_header_preproc=yes
2030 ac_header_preproc=no
2032 rm -f conftest.err conftest.$ac_ext
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2034 $as_echo "$ac_header_preproc" >&6; }
2036 # So? What about this header?
2037 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2040 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2042 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2046 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2048 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2050 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2052 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2054 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2060 $as_echo_n "(cached) " >&6
2062 eval "$3=\$ac_header_compiler"
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 $as_echo "$ac_res" >&6; }
2068 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2070 } # ac_fn_cxx_check_header_mongrel
2072 # ac_fn_cxx_check_func LINENO FUNC VAR
2073 # ------------------------------------
2074 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2075 ac_fn_cxx_check_func ()
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2081 $as_echo_n "(cached) " >&6
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2085 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2087 #define $2 innocuous_$2
2089 /* System header to define __stub macros and hopefully few prototypes,
2090 which can conflict with char $2 (); below.
2091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2092 <limits.h> exists even on freestanding compilers. */
2095 # include <limits.h>
2097 # include <assert.h>
2102 /* Override any GCC internal prototype to avoid an error.
2103 Use char because int might match the return type of a GCC
2104 builtin and then its argument prototype would still apply. */
2109 /* The GNU C library defines this for functions which it implements
2110 to always fail with ENOSYS. Some functions are actually named
2111 something starting with __ and the normal name is an alias. */
2112 #if defined __stub_$2 || defined __stub___$2
2124 if ac_fn_cxx_try_link "$LINENO"; then :
2129 rm -f core conftest.err conftest.$ac_objext \
2130 conftest$ac_exeext conftest.$ac_ext
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 $as_echo "$ac_res" >&6; }
2135 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2137 } # ac_fn_cxx_check_func
2139 # ac_fn_c_find_intX_t LINENO BITS VAR
2140 # -----------------------------------
2141 # Finds a signed integer type with width BITS, setting cache variable VAR
2143 ac_fn_c_find_intX_t ()
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2147 $as_echo_n "checking for int$2_t... " >&6; }
2148 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2149 $as_echo_n "(cached) " >&6
2152 # Order is important - never check a type that is potentially smaller
2153 # than half of the expected target width.
2154 for ac_type in int$2_t 'int' 'long int' \
2155 'long long int' 'short int' 'signed char'; do
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2158 $ac_includes_default
2159 enum { N = $2 / 2 - 1 };
2163 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2170 if ac_fn_cxx_try_compile "$LINENO"; then :
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2173 $ac_includes_default
2174 enum { N = $2 / 2 - 1 };
2178 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2179 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2186 if ac_fn_cxx_try_compile "$LINENO"; then :
2193 eval "$3=\$ac_type" ;;
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 if test "x$as_val" = x""no; then :
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2209 $as_echo "$ac_res" >&6; }
2210 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2212 } # ac_fn_c_find_intX_t
2214 # ac_fn_c_find_uintX_t LINENO BITS VAR
2215 # ------------------------------------
2216 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2218 ac_fn_c_find_uintX_t ()
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2222 $as_echo_n "checking for uint$2_t... " >&6; }
2223 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2224 $as_echo_n "(cached) " >&6
2227 # Order is important - never check a type that is potentially smaller
2228 # than half of the expected target width.
2229 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2230 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2233 $ac_includes_default
2237 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2244 if ac_fn_cxx_try_compile "$LINENO"; then :
2249 eval "$3=\$ac_type" ;;
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 if test "x$as_val" = x""no; then :
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2263 $as_echo "$ac_res" >&6; }
2264 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2266 } # ac_fn_c_find_uintX_t
2267 cat >config.log <<_ACEOF
2268 This file contains any messages produced by compilers while
2269 running configure, to aid debugging if configure makes a mistake.
2271 It was created by $as_me, which was
2272 generated by GNU Autoconf 2.65. Invocation command line was
2284 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2285 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2286 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2287 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2288 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2290 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2291 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2293 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2294 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2295 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2296 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2297 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2298 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2299 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 test -z "$as_dir" && as_dir=.
2308 $as_echo "PATH: $as_dir"
2324 # Keep a trace of the command line.
2325 # Strip out --no-create and --no-recursion so they do not pile up.
2326 # Strip out --silent because we don't want to record it for future runs.
2327 # Also quote any args containing shell meta-characters.
2328 # Make two passes to allow for proper duplicate-argument suppression.
2332 ac_must_keep_next=false
2338 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2340 | -silent | --silent | --silen | --sile | --sil)
2343 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2346 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2348 as_fn_append ac_configure_args1 " '$ac_arg'"
2349 if test $ac_must_keep_next = true; then
2350 ac_must_keep_next=false # Got value, back to normal.
2353 *=* | --config-cache | -C | -disable-* | --disable-* \
2354 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2355 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2356 | -with-* | --with-* | -without-* | --without-* | --x)
2357 case "$ac_configure_args0 " in
2358 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2361 -* ) ac_must_keep_next=true ;;
2364 as_fn_append ac_configure_args " '$ac_arg'"
2369 { ac_configure_args0=; unset ac_configure_args0;}
2370 { ac_configure_args1=; unset ac_configure_args1;}
2372 # When interrupted or exit'd, cleanup temporary files, and complete
2373 # config.log. We remove comments because anyway the quotes in there
2374 # would cause problems or look ugly.
2375 # WARNING: Use '\'' to represent an apostrophe within the trap.
2376 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2377 trap 'exit_status=$?
2378 # Save into config.log some information that might help in debugging.
2383 ## ---------------- ##
2384 ## Cache variables. ##
2385 ## ---------------- ##
2388 # The following way of writing the cache mishandles newlines in values,
2390 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2391 eval ac_val=\$$ac_var
2395 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2396 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2399 _ | IFS | as_nl) ;; #(
2400 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2401 *) { eval $ac_var=; unset $ac_var;} ;;
2406 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2407 *${as_nl}ac_space=\ *)
2409 "s/'\''/'\''\\\\'\'''\''/g;
2410 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2413 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2421 ## ----------------- ##
2422 ## Output variables. ##
2423 ## ----------------- ##
2426 for ac_var in $ac_subst_vars
2428 eval ac_val=\$$ac_var
2430 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432 $as_echo "$ac_var='\''$ac_val'\''"
2436 if test -n "$ac_subst_files"; then
2438 ## ------------------- ##
2439 ## File substitutions. ##
2440 ## ------------------- ##
2443 for ac_var in $ac_subst_files
2445 eval ac_val=\$$ac_var
2447 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2449 $as_echo "$ac_var='\''$ac_val'\''"
2454 if test -s confdefs.h; then
2464 test "$ac_signal" != 0 &&
2465 $as_echo "$as_me: caught signal $ac_signal"
2466 $as_echo "$as_me: exit $exit_status"
2468 rm -f core *.core core.conftest.* &&
2469 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2472 for ac_signal in 1 2 13 15; do
2473 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2478 rm -f -r conftest* confdefs.h
2480 $as_echo "/* confdefs.h */" > confdefs.h
2482 # Predefined preprocessor variables.
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_NAME "$PACKAGE_NAME"
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2496 cat >>confdefs.h <<_ACEOF
2497 #define PACKAGE_STRING "$PACKAGE_STRING"
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_URL "$PACKAGE_URL"
2509 # Let the site file select an alternate cache file if it wants to.
2510 # Prefer an explicitly selected file to automatically selected ones.
2513 if test -n "$CONFIG_SITE"; then
2514 ac_site_file1=$CONFIG_SITE
2515 elif test "x$prefix" != xNONE; then
2516 ac_site_file1=$prefix/share/config.site
2517 ac_site_file2=$prefix/etc/config.site
2519 ac_site_file1=$ac_default_prefix/share/config.site
2520 ac_site_file2=$ac_default_prefix/etc/config.site
2522 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2524 test "x$ac_site_file" = xNONE && continue
2525 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2527 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2528 sed 's/^/| /' "$ac_site_file" >&5
2533 if test -r "$cache_file"; then
2534 # Some versions of bash will fail to source /dev/null (special files
2535 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2536 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2538 $as_echo "$as_me: loading cache $cache_file" >&6;}
2540 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2541 *) . "./$cache_file";;
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2546 $as_echo "$as_me: creating cache $cache_file" >&6;}
2550 # Check that the precious variables saved in the cache have kept the same
2552 ac_cache_corrupted=false
2553 for ac_var in $ac_precious_vars; do
2554 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2555 eval ac_new_set=\$ac_env_${ac_var}_set
2556 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2557 eval ac_new_val=\$ac_env_${ac_var}_value
2558 case $ac_old_set,$ac_new_set in
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2561 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2562 ac_cache_corrupted=: ;;
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2565 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2566 ac_cache_corrupted=: ;;
2569 if test "x$ac_old_val" != "x$ac_new_val"; then
2570 # differences in whitespace do not lead to failure.
2571 ac_old_val_w=`echo x $ac_old_val`
2572 ac_new_val_w=`echo x $ac_new_val`
2573 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2575 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2576 ac_cache_corrupted=:
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2579 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2580 eval $ac_var=\$ac_old_val
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2583 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2585 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2588 # Pass precious variables to config.status.
2589 if test "$ac_new_set" = set; then
2591 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2592 *) ac_arg=$ac_var=$ac_new_val ;;
2594 case " $ac_configure_args " in
2595 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2596 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2600 if $ac_cache_corrupted; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2604 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2605 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2607 ## -------------------- ##
2608 ## Main body of script. ##
2609 ## -------------------- ##
2612 ac_cpp='$CPP $CPPFLAGS'
2613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2621 am__api_version='1.11'
2624 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2625 for ac_t in install-sh install.sh shtool; do
2626 if test -f "$ac_dir/$ac_t"; then
2628 ac_install_sh="$ac_aux_dir/$ac_t -c"
2633 if test -z "$ac_aux_dir"; then
2634 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2637 # These three variables are undocumented and unsupported,
2638 # and are intended to be withdrawn in a future Autoconf release.
2639 # They can cause serious problems if a builder's source tree is in a directory
2640 # whose full name contains unusual characters.
2641 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2642 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2643 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2646 # Find a good install program. We prefer a C program (faster),
2647 # so one script is as good as another. But avoid the broken or
2648 # incompatible versions:
2649 # SysV /etc/install, /usr/sbin/install
2650 # SunOS /usr/etc/install
2651 # IRIX /sbin/install
2653 # AmigaOS /C/install, which installs bootblocks on floppy discs
2654 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2655 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2656 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2657 # OS/2's system install, which has a completely different semantic
2658 # ./install, which can be erroneously created by make from ./install.sh.
2659 # Reject install programs that cannot install multiple files.
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2661 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2662 if test -z "$INSTALL"; then
2663 if test "${ac_cv_path_install+set}" = set; then :
2664 $as_echo_n "(cached) " >&6
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 test -z "$as_dir" && as_dir=.
2671 # Account for people who put trailing slashes in PATH elements.
2672 case $as_dir/ in #((
2673 ./ | .// | /[cC]/* | \
2674 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2675 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2678 # OSF1 and SCO ODT 3.0 have their own names for install.
2679 # Don't use installbsd from OSF since it installs stuff as root
2681 for ac_prog in ginstall scoinst install; do
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2684 if test $ac_prog = install &&
2685 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2686 # AIX install. It has an incompatible calling convention.
2688 elif test $ac_prog = install &&
2689 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2690 # program-specific install script used by HP pwplus--don't use.
2693 rm -rf conftest.one conftest.two conftest.dir
2694 echo one > conftest.one
2695 echo two > conftest.two
2697 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2698 test -s conftest.one && test -s conftest.two &&
2699 test -s conftest.dir/conftest.one &&
2700 test -s conftest.dir/conftest.two
2702 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2715 rm -rf conftest.one conftest.two conftest.dir
2718 if test "${ac_cv_path_install+set}" = set; then
2719 INSTALL=$ac_cv_path_install
2721 # As a last resort, use the slow shell script. Don't cache a
2722 # value for INSTALL within a source directory, because that will
2723 # break other packages using the cache if that directory is
2724 # removed, or if the value is a relative name.
2725 INSTALL=$ac_install_sh
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2729 $as_echo "$INSTALL" >&6; }
2731 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2732 # It thinks the first close brace ends the variable substitution.
2733 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2735 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2737 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2740 $as_echo_n "checking whether build environment is sane... " >&6; }
2743 echo timestamp > conftest.file
2744 # Reject unsafe characters in $srcdir or the absolute working directory
2745 # name. Accept space and tab only in the latter.
2749 *[\\\"\#\$\&\'\`$am_lf]*)
2750 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2753 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2754 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2757 # Do `set' in a subshell so we don't clobber the current shell's
2758 # arguments. Must try -L first in case configure is actually a
2759 # symlink; some systems play weird games with the mod time of symlinks
2760 # (eg FreeBSD returns the mod time of the symlink's containing
2763 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2764 if test "$*" = "X"; then
2766 set X `ls -t "$srcdir/configure" conftest.file`
2769 if test "$*" != "X $srcdir/configure conftest.file" \
2770 && test "$*" != "X conftest.file $srcdir/configure"; then
2772 # If neither matched, then we have a broken ls. This can happen
2773 # if, for instance, CONFIG_SHELL is bash and it inherits a
2774 # broken ls alias from the environment. This has actually
2775 # happened. Such a system could not be considered "sane".
2776 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2777 alias in your environment" "$LINENO" 5
2780 test "$2" = conftest.file
2786 as_fn_error "newly created file is older than distributed files!
2787 Check your system clock" "$LINENO" 5
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2790 $as_echo "yes" >&6; }
2791 test "$program_prefix" != NONE &&
2792 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2793 # Use a double $ so make ignores it.
2794 test "$program_suffix" != NONE &&
2795 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2796 # Double any \ or $.
2797 # By default was `s,x,x', remove it if useless.
2798 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2799 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2801 # expand $ac_aux_dir to an absolute path
2802 am_aux_dir=`cd $ac_aux_dir && pwd`
2804 if test x"${MISSING+set}" != xset; then
2807 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2809 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2812 # Use eval to expand $SHELL
2813 if eval "$MISSING --run true"; then
2814 am_missing_run="$MISSING --run "
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2818 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2821 if test x"${install_sh}" != xset; then
2824 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2826 install_sh="\${SHELL} $am_aux_dir/install-sh"
2830 # Installed binaries are usually stripped using `strip' when the user
2831 # run `make install-strip'. However `strip' might not be the right
2832 # tool to use in cross-compilation environments, therefore Automake
2833 # will honor the `STRIP' environment variable to overrule this program.
2834 if test "$cross_compiling" != no; then
2835 if test -n "$ac_tool_prefix"; then
2836 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2837 set dummy ${ac_tool_prefix}strip; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if test "${ac_cv_prog_STRIP+set}" = set; then :
2841 $as_echo_n "(cached) " >&6
2843 if test -n "$STRIP"; then
2844 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 STRIP=$ac_cv_prog_STRIP
2864 if test -n "$STRIP"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2866 $as_echo "$STRIP" >&6; }
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2874 if test -z "$ac_cv_prog_STRIP"; then
2876 # Extract the first word of "strip", so it can be a program name with args.
2877 set dummy strip; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2881 $as_echo_n "(cached) " >&6
2883 if test -n "$ac_ct_STRIP"; then
2884 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893 ac_cv_prog_ac_ct_STRIP="strip"
2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2904 if test -n "$ac_ct_STRIP"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2906 $as_echo "$ac_ct_STRIP" >&6; }
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2912 if test "x$ac_ct_STRIP" = x; then
2915 case $cross_compiling:$ac_tool_warned in
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2919 ac_tool_warned=yes ;;
2924 STRIP="$ac_cv_prog_STRIP"
2928 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2931 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2932 if test -z "$MKDIR_P"; then
2933 if test "${ac_cv_path_mkdir+set}" = set; then :
2934 $as_echo_n "(cached) " >&6
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2940 test -z "$as_dir" && as_dir=.
2941 for ac_prog in mkdir gmkdir; do
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2944 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2945 'mkdir (GNU coreutils) '* | \
2946 'mkdir (coreutils) '* | \
2947 'mkdir (fileutils) '4.1*)
2948 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2958 test -d ./--version && rmdir ./--version
2959 if test "${ac_cv_path_mkdir+set}" = set; then
2960 MKDIR_P="$ac_cv_path_mkdir -p"
2962 # As a last resort, use the slow shell script. Don't cache a
2963 # value for MKDIR_P within a source directory, because that will
2964 # break other packages using the cache if that directory is
2965 # removed, or if the value is a relative name.
2966 MKDIR_P="$ac_install_sh -d"
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2970 $as_echo "$MKDIR_P" >&6; }
2974 [\\/$]* | ?:[\\/]*) ;;
2975 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2978 for ac_prog in gawk mawk nawk awk
2980 # Extract the first word of "$ac_prog", so it can be a program name with args.
2981 set dummy $ac_prog; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if test "${ac_cv_prog_AWK+set}" = set; then :
2985 $as_echo_n "(cached) " >&6
2987 if test -n "$AWK"; then
2988 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997 ac_cv_prog_AWK="$ac_prog"
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 if test -n "$AWK"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3010 $as_echo "$AWK" >&6; }
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3017 test -n "$AWK" && break
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3021 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3023 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3024 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3025 $as_echo_n "(cached) " >&6
3027 cat >conftest.make <<\_ACEOF
3030 @echo '@@@%%%=$(MAKE)=@@@%%%'
3032 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3033 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3035 eval ac_cv_prog_make_${ac_make}_set=yes;;
3037 eval ac_cv_prog_make_${ac_make}_set=no;;
3041 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3043 $as_echo "yes" >&6; }
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3048 SET_MAKE="MAKE=${MAKE-make}"
3051 rm -rf .tst 2>/dev/null
3052 mkdir .tst 2>/dev/null
3053 if test -d .tst; then
3058 rmdir .tst 2>/dev/null
3060 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3061 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3062 # is not polluted with repeated "-I."
3063 am__isrc=' -I$(srcdir)'
3064 # test to see if srcdir already configured
3065 if test -f $srcdir/config.status; then
3066 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3070 # test whether we have cygpath
3071 if test -z "$CYGPATH_W"; then
3072 if (cygpath --version) >/dev/null 2>/dev/null; then
3073 CYGPATH_W='cygpath -w'
3080 # Define the identity of the package.
3085 cat >>confdefs.h <<_ACEOF
3086 #define PACKAGE "$PACKAGE"
3090 cat >>confdefs.h <<_ACEOF
3091 #define VERSION "$VERSION"
3094 # Some tools Automake needs.
3096 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3099 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3102 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3105 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3108 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3110 # We need awk for the "check" target. The system "awk" is bad on
3112 # Always define AMTAR for backward compatibility.
3114 AMTAR=${AMTAR-"${am_missing_run}tar"}
3116 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3122 ac_config_headers="$ac_config_headers src/config.h"
3125 # Check whether --enable-static was given.
3126 if test "${enable_static+set}" = set; then :
3127 enableval=$enable_static; p=${PACKAGE-default}
3129 yes) enable_static=yes ;;
3130 no) enable_static=no ;;
3133 # Look at the argument we got. We use all the common list separators.
3134 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3135 for pkg in $enableval; do
3137 if test "X$pkg" = "X$p"; then
3156 # Check whether --enable-static was given.
3157 if test "${enable_static+set}" = set; then :
3158 enableval=$enable_static; p=${PACKAGE-default}
3160 yes) enable_static=yes ;;
3161 no) enable_static=no ;;
3164 # Look at the argument we got. We use all the common list separators.
3165 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3166 for pkg in $enableval; do
3168 if test "X$pkg" = "X$p"; then
3185 ac_cpp='$CPP $CPPFLAGS'
3186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189 if test -n "$ac_tool_prefix"; then
3190 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3191 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_CC+set}" = set; then :
3195 $as_echo_n "(cached) " >&6
3197 if test -n "$CC"; then
3198 ac_cv_prog_CC="$CC" # Let the user override the test.
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 if test -n "$CC"; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3220 $as_echo "$CC" >&6; }
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3228 if test -z "$ac_cv_prog_CC"; then
3230 # Extract the first word of "gcc", so it can be a program name with args.
3231 set dummy gcc; ac_word=$2
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3235 $as_echo_n "(cached) " >&6
3237 if test -n "$ac_ct_CC"; then
3238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 test -z "$as_dir" && as_dir=.
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3247 ac_cv_prog_ac_ct_CC="gcc"
3248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3258 if test -n "$ac_ct_CC"; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3260 $as_echo "$ac_ct_CC" >&6; }
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3266 if test "x$ac_ct_CC" = x; then
3269 case $cross_compiling:$ac_tool_warned in
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3273 ac_tool_warned=yes ;;
3281 if test -z "$CC"; then
3282 if test -n "$ac_tool_prefix"; then
3283 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3284 set dummy ${ac_tool_prefix}cc; ac_word=$2
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then :
3288 $as_echo_n "(cached) " >&6
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC="$CC" # Let the user override the test.
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300 ac_cv_prog_CC="${ac_tool_prefix}cc"
3301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 if test -n "$CC"; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3313 $as_echo "$CC" >&6; }
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 $as_echo "no" >&6; }
3322 if test -z "$CC"; then
3323 # Extract the first word of "cc", so it can be a program name with args.
3324 set dummy cc; ac_word=$2
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 $as_echo_n "checking for $ac_word... " >&6; }
3327 if test "${ac_cv_prog_CC+set}" = set; then :
3328 $as_echo_n "(cached) " >&6
3330 if test -n "$CC"; then
3331 ac_cv_prog_CC="$CC" # Let the user override the test.
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 test -z "$as_dir" && as_dir=.
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3341 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3342 ac_prog_rejected=yes
3346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 if test $ac_prog_rejected = yes; then
3354 # We found a bogon in the path, so make sure we never use it.
3355 set dummy $ac_cv_prog_CC
3357 if test $# != 0; then
3358 # We chose a different compiler from the bogus one.
3359 # However, it has the same basename, so the bogon will be chosen
3360 # first if we set CC to just the basename; use the full file name.
3362 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3368 if test -n "$CC"; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3370 $as_echo "$CC" >&6; }
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373 $as_echo "no" >&6; }
3378 if test -z "$CC"; then
3379 if test -n "$ac_tool_prefix"; then
3380 for ac_prog in cl.exe
3382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385 $as_echo_n "checking for $ac_word... " >&6; }
3386 if test "${ac_cv_prog_CC+set}" = set; then :
3387 $as_echo_n "(cached) " >&6
3389 if test -n "$CC"; then
3390 ac_cv_prog_CC="$CC" # Let the user override the test.
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 test -z "$as_dir" && as_dir=.
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 if test -n "$CC"; then
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3412 $as_echo "$CC" >&6; }
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415 $as_echo "no" >&6; }
3419 test -n "$CC" && break
3422 if test -z "$CC"; then
3424 for ac_prog in cl.exe
3426 # Extract the first word of "$ac_prog", so it can be a program name with args.
3427 set dummy $ac_prog; ac_word=$2
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3431 $as_echo_n "(cached) " >&6
3433 if test -n "$ac_ct_CC"; then
3434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3443 ac_cv_prog_ac_ct_CC="$ac_prog"
3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3454 if test -n "$ac_ct_CC"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3456 $as_echo "$ac_ct_CC" >&6; }
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3463 test -n "$ac_ct_CC" && break
3466 if test "x$ac_ct_CC" = x; then
3469 case $cross_compiling:$ac_tool_warned in
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3473 ac_tool_warned=yes ;;
3482 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error "no acceptable C compiler found in \$PATH
3485 See \`config.log' for more details." "$LINENO" 5; }
3487 # Provide some information about the compiler.
3488 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3491 for ac_option in --version -v -V -qversion; do
3492 { { ac_try="$ac_compiler $ac_option >&5"
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498 $as_echo "$ac_try_echo"; } >&5
3499 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3501 if test -s conftest.err; then
3503 ... rest of stderr output deleted ...
3504 10q' conftest.err >conftest.er1
3505 cat conftest.er1 >&5
3507 rm -f conftest.er1 conftest.err
3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509 test $ac_status = 0; }
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3523 ac_clean_files_save=$ac_clean_files
3524 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3525 # Try to create an executable without -o first, disregard a.out.
3526 # It will help us diagnose broken compilers, and finding out an intuition
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3529 $as_echo_n "checking whether the C compiler works... " >&6; }
3530 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3532 # The possible output files:
3533 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3536 for ac_file in $ac_files
3539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3540 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3545 if { { ac_try="$ac_link_default"
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551 $as_echo "$ac_try_echo"; } >&5
3552 (eval "$ac_link_default") 2>&5
3554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555 test $ac_status = 0; }; then :
3556 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3557 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3558 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3559 # so that the user can short-circuit this test for compilers unknown to
3561 for ac_file in $ac_files ''
3563 test -f "$ac_file" || continue
3565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3568 # We found the default executable, but exeext='' is most
3572 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3574 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3576 # We set ac_cv_exeext here because the later test for it is not
3577 # safe: cross compilers may not add the suffix if given an `-o'
3578 # argument, so we may need to know it at that point already.
3579 # Even if this section looks crufty: it has the advantage of
3586 test "$ac_cv_exeext" = no && ac_cv_exeext=
3591 if test -z "$ac_file"; then :
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 $as_echo "no" >&6; }
3594 $as_echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3599 { as_fn_set_status 77
3600 as_fn_error "C compiler cannot create executables
3601 See \`config.log' for more details." "$LINENO" 5; }; }
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3604 $as_echo "yes" >&6; }
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3607 $as_echo_n "checking for C compiler default output file name... " >&6; }
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3609 $as_echo "$ac_file" >&6; }
3610 ac_exeext=$ac_cv_exeext
3612 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3613 ac_clean_files=$ac_clean_files_save
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3615 $as_echo_n "checking for suffix of executables... " >&6; }
3616 if { { ac_try="$ac_link"
3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619 *) ac_try_echo=$ac_try;;
3621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622 $as_echo "$ac_try_echo"; } >&5
3623 (eval "$ac_link") 2>&5
3625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626 test $ac_status = 0; }; then :
3627 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3628 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3629 # work properly (i.e., refer to `conftest.exe'), while it won't with
3631 for ac_file in conftest.exe conftest conftest.*; do
3632 test -f "$ac_file" || continue
3634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3635 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643 as_fn_error "cannot compute suffix of executables: cannot compile and link
3644 See \`config.log' for more details." "$LINENO" 5; }
3646 rm -f conftest conftest$ac_cv_exeext
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3648 $as_echo "$ac_cv_exeext" >&6; }
3650 rm -f conftest.$ac_ext
3651 EXEEXT=$ac_cv_exeext
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3659 FILE *f = fopen ("conftest.out", "w");
3660 return ferror (f) || fclose (f) != 0;
3666 ac_clean_files="$ac_clean_files conftest.out"
3667 # Check that the compiler produces executables we can run. If not, either
3668 # the compiler is broken, or we cross compile.
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3670 $as_echo_n "checking whether we are cross compiling... " >&6; }
3671 if test "$cross_compiling" != yes; then
3672 { { ac_try="$ac_link"
3674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675 *) ac_try_echo=$ac_try;;
3677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3678 $as_echo "$ac_try_echo"; } >&5
3679 (eval "$ac_link") 2>&5
3681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3682 test $ac_status = 0; }
3683 if { ac_try='./conftest$ac_cv_exeext'
3684 { { case "(($ac_try" in
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3689 $as_echo "$ac_try_echo"; } >&5
3690 (eval "$ac_try") 2>&5
3692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3693 test $ac_status = 0; }; }; then
3696 if test "$cross_compiling" = maybe; then
3699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701 as_fn_error "cannot run C compiled programs.
3702 If you meant to cross compile, use \`--host'.
3703 See \`config.log' for more details." "$LINENO" 5; }
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3708 $as_echo "$cross_compiling" >&6; }
3710 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3711 ac_clean_files=$ac_clean_files_save
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3713 $as_echo_n "checking for suffix of object files... " >&6; }
3714 if test "${ac_cv_objext+set}" = set; then :
3715 $as_echo_n "(cached) " >&6
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3728 rm -f conftest.o conftest.obj
3729 if { { ac_try="$ac_compile"
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735 $as_echo "$ac_try_echo"; } >&5
3736 (eval "$ac_compile") 2>&5
3738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739 test $ac_status = 0; }; then :
3740 for ac_file in conftest.o conftest.obj conftest.*; do
3741 test -f "$ac_file" || continue;
3743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3744 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3749 $as_echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3754 as_fn_error "cannot compute suffix of object files: cannot compile
3755 See \`config.log' for more details." "$LINENO" 5; }
3757 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3760 $as_echo "$ac_cv_objext" >&6; }
3761 OBJEXT=$ac_cv_objext
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3764 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3765 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3766 $as_echo_n "(cached) " >&6
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3782 if ac_fn_c_try_compile "$LINENO"; then :
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3792 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3793 if test $ac_compiler_gnu = yes; then
3798 ac_test_CFLAGS=${CFLAGS+set}
3799 ac_save_CFLAGS=$CFLAGS
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3801 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3802 if test "${ac_cv_prog_cc_g+set}" = set; then :
3803 $as_echo_n "(cached) " >&6
3805 ac_save_c_werror_flag=$ac_c_werror_flag
3806 ac_c_werror_flag=yes
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3820 if ac_fn_c_try_compile "$LINENO"; then :
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3835 if ac_fn_c_try_compile "$LINENO"; then :
3838 ac_c_werror_flag=$ac_save_c_werror_flag
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3851 if ac_fn_c_try_compile "$LINENO"; then :
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859 ac_c_werror_flag=$ac_save_c_werror_flag
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3862 $as_echo "$ac_cv_prog_cc_g" >&6; }
3863 if test "$ac_test_CFLAGS" = set; then
3864 CFLAGS=$ac_save_CFLAGS
3865 elif test $ac_cv_prog_cc_g = yes; then
3866 if test "$GCC" = yes; then
3872 if test "$GCC" = yes; then
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3879 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3880 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3881 $as_echo_n "(cached) " >&6
3883 ac_cv_prog_cc_c89=no
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3889 #include <sys/types.h>
3890 #include <sys/stat.h>
3891 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3892 struct buf { int x; };
3893 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3894 static char *e (p, i)
3900 static char *f (char * (*g) (char **, int), char **p, ...)
3905 s = g (p, va_arg (v,int));
3910 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3911 function prototypes and stuff, but not '\xHH' hex character constants.
3912 These don't provoke an error unfortunately, instead are silently treated
3913 as 'x'. The following induces an error, until -std is added to get
3914 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3915 array size at least. It's necessary to write '\x00'==0 to get something
3916 that's true only with -std. */
3917 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3919 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3920 inside strings and character constants. */
3922 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3924 int test (int i, double x);
3925 struct s1 {int (*f) (int a);};
3926 struct s2 {int (*f) (double a);};
3927 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3933 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3938 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3939 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3941 CC="$ac_save_CC $ac_arg"
3942 if ac_fn_c_try_compile "$LINENO"; then :
3943 ac_cv_prog_cc_c89=$ac_arg
3945 rm -f core conftest.err conftest.$ac_objext
3946 test "x$ac_cv_prog_cc_c89" != "xno" && break
3948 rm -f conftest.$ac_ext
3953 case "x$ac_cv_prog_cc_c89" in
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3956 $as_echo "none needed" >&6; } ;;
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3959 $as_echo "unsupported" >&6; } ;;
3961 CC="$CC $ac_cv_prog_cc_c89"
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3963 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3965 if test "x$ac_cv_prog_cc_c89" != xno; then :
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974 DEPDIR="${am__leading_dot}deps"
3976 ac_config_commands="$ac_config_commands depfiles"
3979 am_make=${MAKE-make}
3980 cat > confinc << 'END'
3982 @echo this is the am__doit target
3985 # If we don't find an include directive, just comment out the code.
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3987 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3991 # First try GNU make style include.
3992 echo "include confinc" > confmf
3993 # Ignore all kinds of additional output from `make'.
3994 case `$am_make -s -f confmf 2> /dev/null` in #(
3995 *the\ am__doit\ target*)
4001 # Now try BSD make style include.
4002 if test "$am__include" = "#"; then
4003 echo '.include "confinc"' > confmf
4004 case `$am_make -s -f confmf 2> /dev/null` in #(
4005 *the\ am__doit\ target*)
4006 am__include=.include
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4015 $as_echo "$_am_result" >&6; }
4016 rm -f confinc confmf
4018 # Check whether --enable-dependency-tracking was given.
4019 if test "${enable_dependency_tracking+set}" = set; then :
4020 enableval=$enable_dependency_tracking;
4023 if test "x$enable_dependency_tracking" != xno; then
4024 am_depcomp="$ac_aux_dir/depcomp"
4027 if test "x$enable_dependency_tracking" != xno; then
4037 depcc="$CC" am_compiler_list=
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4040 $as_echo_n "checking dependency style of $depcc... " >&6; }
4041 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
4044 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4045 # We make a subdir and do the tests there. Otherwise we can end up
4046 # making bogus files that we don't know about and never remove. For
4047 # instance it was reported that on HP-UX the gcc test will end up
4048 # making a dummy file named `D' -- because `-MD' means `put the output
4051 # Copy depcomp to subdir because otherwise we won't find it if we're
4052 # using a relative directory.
4053 cp "$am_depcomp" conftest.dir
4055 # We will build objects and dependencies in a subdirectory because
4056 # it helps to detect inapplicable dependency modes. For instance
4057 # both Tru64's cc and ICC support -MD to output dependencies as a
4058 # side effect of compilation, but ICC will put the dependencies in
4059 # the current directory while Tru64 will put them in the object
4063 am_cv_CC_dependencies_compiler_type=none
4064 if test "$am_compiler_list" = ""; then
4065 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4068 case " $depcc " in #(
4069 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4072 for depmode in $am_compiler_list; do
4073 # Setup a source with many dependencies, because some compilers
4074 # like to wrap large dependency lists on column 80 (with \), and
4075 # we should not choose a depcomp mode which is confused by this.
4077 # We need to recreate these files for each test, as the compiler may
4078 # overwrite some of them when testing with obscure command lines.
4079 # This happens at least with the AIX C compiler.
4081 for i in 1 2 3 4 5 6; do
4082 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4083 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4084 # Solaris 8's {/usr,}/bin/sh.
4085 touch sub/conftst$i.h
4087 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4089 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4090 # mode. It turns out that the SunPro C++ compiler does not properly
4091 # handle `-M -o', and we need to detect this. Also, some Intel
4092 # versions had trouble with output in subdirs
4093 am__obj=sub/conftest.${OBJEXT-o}
4094 am__minus_obj="-o $am__obj"
4097 # This depmode causes a compiler race in universal mode.
4098 test "$am__universal" = false || continue
4101 # after this tag, mechanisms are not by side-effect, so they'll
4102 # only be used when explicitly requested
4103 if test "x$enable_dependency_tracking" = xyes; then
4109 msvisualcpp | msvcmsys)
4110 # This compiler won't grok `-c -o', but also, the minuso test has
4111 # not run yet. These depmodes are late enough in the game, and
4112 # so weak that their functioning should not be impacted.
4113 am__obj=conftest.${OBJEXT-o}
4118 if depmode=$depmode \
4119 source=sub/conftest.c object=$am__obj \
4120 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4121 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4122 >/dev/null 2>conftest.err &&
4123 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4124 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4125 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4126 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4127 # icc doesn't choke on unknown options, it will just issue warnings
4128 # or remarks (even with -Werror). So we grep stderr for any message
4129 # that says an option was ignored or not supported.
4130 # When given -MP, icc 7.0 and 7.1 complain thusly:
4131 # icc: Command line warning: ignoring option '-M'; no argument required
4132 # The diagnosis changed in icc 8.0:
4133 # icc: Command line remark: option '-MP' not supported
4134 if (grep 'ignoring option' conftest.err ||
4135 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4136 am_cv_CC_dependencies_compiler_type=$depmode
4145 am_cv_CC_dependencies_compiler_type=none
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4150 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4151 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4154 test "x$enable_dependency_tracking" != xno \
4155 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4157 am__fastdepCC_FALSE='#'
4159 am__fastdepCC_TRUE='#'
4160 am__fastdepCC_FALSE=
4165 ac_cpp='$CXXCPP $CPPFLAGS'
4166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4169 if test -z "$CXX"; then
4170 if test -n "$CCC"; then
4173 if test -n "$ac_tool_prefix"; then
4174 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4176 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4177 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4179 $as_echo_n "checking for $ac_word... " >&6; }
4180 if test "${ac_cv_prog_CXX+set}" = set; then :
4181 $as_echo_n "(cached) " >&6
4183 if test -n "$CXX"; then
4184 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 test -z "$as_dir" && as_dir=.
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4193 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 if test -n "$CXX"; then
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4206 $as_echo "$CXX" >&6; }
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 $as_echo "no" >&6; }
4213 test -n "$CXX" && break
4216 if test -z "$CXX"; then
4218 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4220 # Extract the first word of "$ac_prog", so it can be a program name with args.
4221 set dummy $ac_prog; ac_word=$2
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223 $as_echo_n "checking for $ac_word... " >&6; }
4224 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4225 $as_echo_n "(cached) " >&6
4227 if test -n "$ac_ct_CXX"; then
4228 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4237 ac_cv_prog_ac_ct_CXX="$ac_prog"
4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4248 if test -n "$ac_ct_CXX"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4250 $as_echo "$ac_ct_CXX" >&6; }
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4257 test -n "$ac_ct_CXX" && break
4260 if test "x$ac_ct_CXX" = x; then
4263 case $cross_compiling:$ac_tool_warned in
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4267 ac_tool_warned=yes ;;
4275 # Provide some information about the compiler.
4276 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4279 for ac_option in --version -v -V -qversion; do
4280 { { ac_try="$ac_compiler $ac_option >&5"
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4286 $as_echo "$ac_try_echo"; } >&5
4287 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4289 if test -s conftest.err; then
4291 ... rest of stderr output deleted ...
4292 10q' conftest.err >conftest.er1
4293 cat conftest.er1 >&5
4295 rm -f conftest.er1 conftest.err
4296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297 test $ac_status = 0; }
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4301 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4302 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4303 $as_echo_n "(cached) " >&6
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4319 if ac_fn_cxx_try_compile "$LINENO"; then :
4324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4325 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4329 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4330 if test $ac_compiler_gnu = yes; then
4335 ac_test_CXXFLAGS=${CXXFLAGS+set}
4336 ac_save_CXXFLAGS=$CXXFLAGS
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4338 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4339 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4340 $as_echo_n "(cached) " >&6
4342 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4343 ac_cxx_werror_flag=yes
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4357 if ac_fn_cxx_try_compile "$LINENO"; then :
4358 ac_cv_prog_cxx_g=yes
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4372 if ac_fn_cxx_try_compile "$LINENO"; then :
4375 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4388 if ac_fn_cxx_try_compile "$LINENO"; then :
4389 ac_cv_prog_cxx_g=yes
4391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4399 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4400 if test "$ac_test_CXXFLAGS" = set; then
4401 CXXFLAGS=$ac_save_CXXFLAGS
4402 elif test $ac_cv_prog_cxx_g = yes; then
4403 if test "$GXX" = yes; then
4409 if test "$GXX" = yes; then
4416 ac_cpp='$CPP $CPPFLAGS'
4417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421 depcc="$CXX" am_compiler_list=
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4424 $as_echo_n "checking dependency style of $depcc... " >&6; }
4425 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4426 $as_echo_n "(cached) " >&6
4428 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4429 # We make a subdir and do the tests there. Otherwise we can end up
4430 # making bogus files that we don't know about and never remove. For
4431 # instance it was reported that on HP-UX the gcc test will end up
4432 # making a dummy file named `D' -- because `-MD' means `put the output
4435 # Copy depcomp to subdir because otherwise we won't find it if we're
4436 # using a relative directory.
4437 cp "$am_depcomp" conftest.dir
4439 # We will build objects and dependencies in a subdirectory because
4440 # it helps to detect inapplicable dependency modes. For instance
4441 # both Tru64's cc and ICC support -MD to output dependencies as a
4442 # side effect of compilation, but ICC will put the dependencies in
4443 # the current directory while Tru64 will put them in the object
4447 am_cv_CXX_dependencies_compiler_type=none
4448 if test "$am_compiler_list" = ""; then
4449 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4452 case " $depcc " in #(
4453 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4456 for depmode in $am_compiler_list; do
4457 # Setup a source with many dependencies, because some compilers
4458 # like to wrap large dependency lists on column 80 (with \), and
4459 # we should not choose a depcomp mode which is confused by this.
4461 # We need to recreate these files for each test, as the compiler may
4462 # overwrite some of them when testing with obscure command lines.
4463 # This happens at least with the AIX C compiler.
4465 for i in 1 2 3 4 5 6; do
4466 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4467 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4468 # Solaris 8's {/usr,}/bin/sh.
4469 touch sub/conftst$i.h
4471 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4473 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4474 # mode. It turns out that the SunPro C++ compiler does not properly
4475 # handle `-M -o', and we need to detect this. Also, some Intel
4476 # versions had trouble with output in subdirs
4477 am__obj=sub/conftest.${OBJEXT-o}
4478 am__minus_obj="-o $am__obj"
4481 # This depmode causes a compiler race in universal mode.
4482 test "$am__universal" = false || continue
4485 # after this tag, mechanisms are not by side-effect, so they'll
4486 # only be used when explicitly requested
4487 if test "x$enable_dependency_tracking" = xyes; then
4493 msvisualcpp | msvcmsys)
4494 # This compiler won't grok `-c -o', but also, the minuso test has
4495 # not run yet. These depmodes are late enough in the game, and
4496 # so weak that their functioning should not be impacted.
4497 am__obj=conftest.${OBJEXT-o}
4502 if depmode=$depmode \
4503 source=sub/conftest.c object=$am__obj \
4504 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4505 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4506 >/dev/null 2>conftest.err &&
4507 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4508 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4509 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4510 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4511 # icc doesn't choke on unknown options, it will just issue warnings
4512 # or remarks (even with -Werror). So we grep stderr for any message
4513 # that says an option was ignored or not supported.
4514 # When given -MP, icc 7.0 and 7.1 complain thusly:
4515 # icc: Command line warning: ignoring option '-M'; no argument required
4516 # The diagnosis changed in icc 8.0:
4517 # icc: Command line remark: option '-MP' not supported
4518 if (grep 'ignoring option' conftest.err ||
4519 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4520 am_cv_CXX_dependencies_compiler_type=$depmode
4529 am_cv_CXX_dependencies_compiler_type=none
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4534 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4535 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4538 test "x$enable_dependency_tracking" != xno \
4539 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4540 am__fastdepCXX_TRUE=
4541 am__fastdepCXX_FALSE='#'
4543 am__fastdepCXX_TRUE='#'
4544 am__fastdepCXX_FALSE=
4549 ac_cpp='$CXXCPP $CPPFLAGS'
4550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4556 ac_cpp='$CXXCPP $CPPFLAGS'
4557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4561 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4562 if test -z "$CXXCPP"; then
4563 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4564 $as_echo_n "(cached) " >&6
4566 # Double quotes because CXXCPP needs to be expanded
4567 for CXXCPP in "$CXX -E" "/lib/cpp"
4570 for ac_cxx_preproc_warn_flag in '' yes
4572 # Use a header file that comes with gcc, so configuring glibc
4573 # with a fresh cross-compiler works.
4574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4575 # <limits.h> exists even on freestanding compilers.
4576 # On the NeXT, cc -E runs the code through the compiler's parser,
4577 # not just through cpp. "Syntax error" is here to catch this case.
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4581 # include <limits.h>
4583 # include <assert.h>
4587 if ac_fn_cxx_try_cpp "$LINENO"; then :
4590 # Broken: fails on valid input.
4593 rm -f conftest.err conftest.$ac_ext
4595 # OK, works on sane cases. Now check whether nonexistent headers
4596 # can be detected and how.
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4599 #include <ac_nonexistent.h>
4601 if ac_fn_cxx_try_cpp "$LINENO"; then :
4602 # Broken: success on invalid input.
4605 # Passes both tests.
4609 rm -f conftest.err conftest.$ac_ext
4612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4613 rm -f conftest.err conftest.$ac_ext
4614 if $ac_preproc_ok; then :
4619 ac_cv_prog_CXXCPP=$CXXCPP
4622 CXXCPP=$ac_cv_prog_CXXCPP
4624 ac_cv_prog_CXXCPP=$CXXCPP
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4627 $as_echo "$CXXCPP" >&6; }
4629 for ac_cxx_preproc_warn_flag in '' yes
4631 # Use a header file that comes with gcc, so configuring glibc
4632 # with a fresh cross-compiler works.
4633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4634 # <limits.h> exists even on freestanding compilers.
4635 # On the NeXT, cc -E runs the code through the compiler's parser,
4636 # not just through cpp. "Syntax error" is here to catch this case.
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4640 # include <limits.h>
4642 # include <assert.h>
4646 if ac_fn_cxx_try_cpp "$LINENO"; then :
4649 # Broken: fails on valid input.
4652 rm -f conftest.err conftest.$ac_ext
4654 # OK, works on sane cases. Now check whether nonexistent headers
4655 # can be detected and how.
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4658 #include <ac_nonexistent.h>
4660 if ac_fn_cxx_try_cpp "$LINENO"; then :
4661 # Broken: success on invalid input.
4664 # Passes both tests.
4668 rm -f conftest.err conftest.$ac_ext
4671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4672 rm -f conftest.err conftest.$ac_ext
4673 if $ac_preproc_ok; then :
4676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4678 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4679 See \`config.log' for more details." "$LINENO" 5; }
4683 ac_cpp='$CXXCPP $CPPFLAGS'
4684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4690 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4691 if test "${ac_cv_path_GREP+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4694 if test -z "$GREP"; then
4695 ac_path_GREP_found=false
4696 # Loop through the user's path and test for each of PROGNAME-LIST
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4701 test -z "$as_dir" && as_dir=.
4702 for ac_prog in grep ggrep; do
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4705 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4706 # Check for GNU ac_path_GREP and select it if it is found.
4707 # Check for GNU $ac_path_GREP
4708 case `"$ac_path_GREP" --version 2>&1` in
4710 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4713 $as_echo_n 0123456789 >"conftest.in"
4716 cat "conftest.in" "conftest.in" >"conftest.tmp"
4717 mv "conftest.tmp" "conftest.in"
4718 cp "conftest.in" "conftest.nl"
4719 $as_echo 'GREP' >> "conftest.nl"
4720 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4721 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4722 as_fn_arith $ac_count + 1 && ac_count=$as_val
4723 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4724 # Best one so far, save it but keep looking for a better one
4725 ac_cv_path_GREP="$ac_path_GREP"
4726 ac_path_GREP_max=$ac_count
4728 # 10*(2^10) chars as input seems more than enough
4729 test $ac_count -gt 10 && break
4731 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4734 $ac_path_GREP_found && break 3
4739 if test -z "$ac_cv_path_GREP"; then
4740 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4743 ac_cv_path_GREP=$GREP
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4748 $as_echo "$ac_cv_path_GREP" >&6; }
4749 GREP="$ac_cv_path_GREP"
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4753 $as_echo_n "checking for egrep... " >&6; }
4754 if test "${ac_cv_path_EGREP+set}" = set; then :
4755 $as_echo_n "(cached) " >&6
4757 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4758 then ac_cv_path_EGREP="$GREP -E"
4760 if test -z "$EGREP"; then
4761 ac_path_EGREP_found=false
4762 # Loop through the user's path and test for each of PROGNAME-LIST
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4767 test -z "$as_dir" && as_dir=.
4768 for ac_prog in egrep; do
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4771 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4772 # Check for GNU ac_path_EGREP and select it if it is found.
4773 # Check for GNU $ac_path_EGREP
4774 case `"$ac_path_EGREP" --version 2>&1` in
4776 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4779 $as_echo_n 0123456789 >"conftest.in"
4782 cat "conftest.in" "conftest.in" >"conftest.tmp"
4783 mv "conftest.tmp" "conftest.in"
4784 cp "conftest.in" "conftest.nl"
4785 $as_echo 'EGREP' >> "conftest.nl"
4786 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4788 as_fn_arith $ac_count + 1 && ac_count=$as_val
4789 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4790 # Best one so far, save it but keep looking for a better one
4791 ac_cv_path_EGREP="$ac_path_EGREP"
4792 ac_path_EGREP_max=$ac_count
4794 # 10*(2^10) chars as input seems more than enough
4795 test $ac_count -gt 10 && break
4797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4800 $ac_path_EGREP_found && break 3
4805 if test -z "$ac_cv_path_EGREP"; then
4806 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4809 ac_cv_path_EGREP=$EGREP
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4815 $as_echo "$ac_cv_path_EGREP" >&6; }
4816 EGREP="$ac_cv_path_EGREP"
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4820 $as_echo_n "checking for ANSI C header files... " >&6; }
4821 if test "${ac_cv_header_stdc+set}" = set; then :
4822 $as_echo_n "(cached) " >&6
4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4839 if ac_fn_cxx_try_compile "$LINENO"; then :
4840 ac_cv_header_stdc=yes
4842 ac_cv_header_stdc=no
4844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846 if test $ac_cv_header_stdc = yes; then
4847 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4854 $EGREP "memchr" >/dev/null 2>&1; then :
4857 ac_cv_header_stdc=no
4863 if test $ac_cv_header_stdc = yes; then
4864 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4871 $EGREP "free" >/dev/null 2>&1; then :
4874 ac_cv_header_stdc=no
4880 if test $ac_cv_header_stdc = yes; then
4881 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4882 if test "$cross_compiling" = yes; then :
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4889 #if ((' ' & 0x0FF) == 0x020)
4890 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4891 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4893 # define ISLOWER(c) \
4894 (('a' <= (c) && (c) <= 'i') \
4895 || ('j' <= (c) && (c) <= 'r') \
4896 || ('s' <= (c) && (c) <= 'z'))
4897 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4900 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4905 for (i = 0; i < 256; i++)
4906 if (XOR (islower (i), ISLOWER (i))
4907 || toupper (i) != TOUPPER (i))
4912 if ac_fn_cxx_try_run "$LINENO"; then :
4915 ac_cv_header_stdc=no
4917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4918 conftest.$ac_objext conftest.beam conftest.$ac_ext
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4924 $as_echo "$ac_cv_header_stdc" >&6; }
4925 if test $ac_cv_header_stdc = yes; then
4927 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4931 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4932 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4933 inttypes.h stdint.h unistd.h
4935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4936 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4938 eval as_val=\$$as_ac_Header
4939 if test "x$as_val" = x""yes; then :
4940 cat >>confdefs.h <<_ACEOF
4941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4950 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4951 if test "${ac_cv_c_bigendian+set}" = set; then :
4952 $as_echo_n "(cached) " >&6
4954 ac_cv_c_bigendian=unknown
4955 # See if we're dealing with a universal compiler.
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4958 #ifndef __APPLE_CC__
4959 not a universal capable compiler
4964 if ac_fn_cxx_try_compile "$LINENO"; then :
4966 # Check for potential -arch flags. It is not universal unless
4967 # there are at least two -arch flags with different values.
4970 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4971 if test -n "$ac_prev"; then
4973 i?86 | x86_64 | ppc | ppc64)
4974 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4977 ac_cv_c_bigendian=universal
4983 elif test "x$ac_word" = "x-arch"; then
4988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 if test $ac_cv_c_bigendian = unknown; then
4990 # See if sys/param.h defines the BYTE_ORDER macro.
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993 #include <sys/types.h>
4994 #include <sys/param.h>
4999 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5000 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5009 if ac_fn_cxx_try_compile "$LINENO"; then :
5010 # It does; now see whether it defined to BIG_ENDIAN or not.
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5013 #include <sys/types.h>
5014 #include <sys/param.h>
5019 #if BYTE_ORDER != BIG_ENDIAN
5027 if ac_fn_cxx_try_compile "$LINENO"; then :
5028 ac_cv_c_bigendian=yes
5030 ac_cv_c_bigendian=no
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5036 if test $ac_cv_c_bigendian = unknown; then
5037 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5045 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5053 if ac_fn_cxx_try_compile "$LINENO"; then :
5054 # It does; now see whether it defined to _BIG_ENDIAN or not.
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5070 if ac_fn_cxx_try_compile "$LINENO"; then :
5071 ac_cv_c_bigendian=yes
5073 ac_cv_c_bigendian=no
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5079 if test $ac_cv_c_bigendian = unknown; then
5080 # Compile a test program.
5081 if test "$cross_compiling" = yes; then :
5082 # Try to guess by grepping values from an object file.
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5085 short int ascii_mm[] =
5086 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5087 short int ascii_ii[] =
5088 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5089 int use_ascii (int i) {
5090 return ascii_mm[i] + ascii_ii[i];
5092 short int ebcdic_ii[] =
5093 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5094 short int ebcdic_mm[] =
5095 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5096 int use_ebcdic (int i) {
5097 return ebcdic_mm[i] + ebcdic_ii[i];
5104 return use_ascii (foo) == use_ebcdic (foo);
5109 if ac_fn_cxx_try_compile "$LINENO"; then :
5110 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5111 ac_cv_c_bigendian=yes
5113 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5114 if test "$ac_cv_c_bigendian" = unknown; then
5115 ac_cv_c_bigendian=no
5117 # finding both strings is unlikely to happen, but who knows?
5118 ac_cv_c_bigendian=unknown
5122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5126 $ac_includes_default
5131 /* Are we little or big endian? From Harbison&Steele. */
5135 char c[sizeof (long int)];
5138 return u.c[sizeof (long int) - 1] == 1;
5144 if ac_fn_cxx_try_run "$LINENO"; then :
5145 ac_cv_c_bigendian=no
5147 ac_cv_c_bigendian=yes
5149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5150 conftest.$ac_objext conftest.beam conftest.$ac_ext
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5156 $as_echo "$ac_cv_c_bigendian" >&6; }
5157 case $ac_cv_c_bigendian in #(
5159 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5165 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5169 as_fn_error "unknown endianness
5170 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5172 #this will cause problems when cross-compiling...
5173 # Make sure we can run config.sub.
5174 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5175 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5178 $as_echo_n "checking build system type... " >&6; }
5179 if test "${ac_cv_build+set}" = set; then :
5180 $as_echo_n "(cached) " >&6
5182 ac_build_alias=$build_alias
5183 test "x$ac_build_alias" = x &&
5184 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5185 test "x$ac_build_alias" = x &&
5186 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5187 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5188 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5192 $as_echo "$ac_cv_build" >&6; }
5193 case $ac_cv_build in
5195 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5198 ac_save_IFS=$IFS; IFS='-'
5204 # Remember, the first character of IFS is used to create $*,
5205 # except with old shells:
5208 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5212 $as_echo_n "checking host system type... " >&6; }
5213 if test "${ac_cv_host+set}" = set; then :
5214 $as_echo_n "(cached) " >&6
5216 if test "x$host_alias" = x; then
5217 ac_cv_host=$ac_cv_build
5219 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5220 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5225 $as_echo "$ac_cv_host" >&6; }
5228 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5231 ac_save_IFS=$IFS; IFS='-'
5237 # Remember, the first character of IFS is used to create $*,
5238 # except with old shells:
5241 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5244 enable_win32_dll=yes
5247 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
5248 if test -n "$ac_tool_prefix"; then
5249 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5250 set dummy ${ac_tool_prefix}as; ac_word=$2
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252 $as_echo_n "checking for $ac_word... " >&6; }
5253 if test "${ac_cv_prog_AS+set}" = set; then :
5254 $as_echo_n "(cached) " >&6
5256 if test -n "$AS"; then
5257 ac_cv_prog_AS="$AS" # Let the user override the test.
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266 ac_cv_prog_AS="${ac_tool_prefix}as"
5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 if test -n "$AS"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5279 $as_echo "$AS" >&6; }
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5287 if test -z "$ac_cv_prog_AS"; then
5289 # Extract the first word of "as", so it can be a program name with args.
5290 set dummy as; ac_word=$2
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292 $as_echo_n "checking for $ac_word... " >&6; }
5293 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5294 $as_echo_n "(cached) " >&6
5296 if test -n "$ac_ct_AS"; then
5297 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5306 ac_cv_prog_ac_ct_AS="as"
5307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5317 if test -n "$ac_ct_AS"; then
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5319 $as_echo "$ac_ct_AS" >&6; }
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322 $as_echo "no" >&6; }
5325 if test "x$ac_ct_AS" = x; then
5328 case $cross_compiling:$ac_tool_warned in
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5332 ac_tool_warned=yes ;;
5340 if test -n "$ac_tool_prefix"; then
5341 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5342 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5344 $as_echo_n "checking for $ac_word... " >&6; }
5345 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5346 $as_echo_n "(cached) " >&6
5348 if test -n "$DLLTOOL"; then
5349 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5358 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 DLLTOOL=$ac_cv_prog_DLLTOOL
5369 if test -n "$DLLTOOL"; then
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5371 $as_echo "$DLLTOOL" >&6; }
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374 $as_echo "no" >&6; }
5379 if test -z "$ac_cv_prog_DLLTOOL"; then
5380 ac_ct_DLLTOOL=$DLLTOOL
5381 # Extract the first word of "dlltool", so it can be a program name with args.
5382 set dummy dlltool; ac_word=$2
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5384 $as_echo_n "checking for $ac_word... " >&6; }
5385 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5386 $as_echo_n "(cached) " >&6
5388 if test -n "$ac_ct_DLLTOOL"; then
5389 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5398 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5409 if test -n "$ac_ct_DLLTOOL"; then
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5411 $as_echo "$ac_ct_DLLTOOL" >&6; }
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5417 if test "x$ac_ct_DLLTOOL" = x; then
5420 case $cross_compiling:$ac_tool_warned in
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424 ac_tool_warned=yes ;;
5426 DLLTOOL=$ac_ct_DLLTOOL
5429 DLLTOOL="$ac_cv_prog_DLLTOOL"
5432 if test -n "$ac_tool_prefix"; then
5433 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5434 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5438 $as_echo_n "(cached) " >&6
5440 if test -n "$OBJDUMP"; then
5441 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5450 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 OBJDUMP=$ac_cv_prog_OBJDUMP
5461 if test -n "$OBJDUMP"; then
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5463 $as_echo "$OBJDUMP" >&6; }
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5471 if test -z "$ac_cv_prog_OBJDUMP"; then
5472 ac_ct_OBJDUMP=$OBJDUMP
5473 # Extract the first word of "objdump", so it can be a program name with args.
5474 set dummy objdump; ac_word=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5478 $as_echo_n "(cached) " >&6
5480 if test -n "$ac_ct_OBJDUMP"; then
5481 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5490 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5501 if test -n "$ac_ct_OBJDUMP"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5503 $as_echo "$ac_ct_OBJDUMP" >&6; }
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5509 if test "x$ac_ct_OBJDUMP" = x; then
5512 case $cross_compiling:$ac_tool_warned in
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5516 ac_tool_warned=yes ;;
5518 OBJDUMP=$ac_ct_OBJDUMP
5521 OBJDUMP="$ac_cv_prog_OBJDUMP"
5527 test -z "$AS" && AS=as
5533 test -z "$DLLTOOL" && DLLTOOL=dlltool
5539 test -z "$OBJDUMP" && OBJDUMP=objdump
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5550 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5555 macro_version='2.2.6b'
5556 macro_revision='1.3017'
5570 ltmain="$ac_aux_dir/ltmain.sh"
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5573 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5574 if test "${ac_cv_path_SED+set}" = set; then :
5575 $as_echo_n "(cached) " >&6
5577 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5578 for ac_i in 1 2 3 4 5 6 7; do
5579 ac_script="$ac_script$as_nl$ac_script"
5581 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5582 { ac_script=; unset ac_script;}
5583 if test -z "$SED"; then
5584 ac_path_SED_found=false
5585 # Loop through the user's path and test for each of PROGNAME-LIST
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 test -z "$as_dir" && as_dir=.
5591 for ac_prog in sed gsed; do
5592 for ac_exec_ext in '' $ac_executable_extensions; do
5593 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5594 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5595 # Check for GNU ac_path_SED and select it if it is found.
5596 # Check for GNU $ac_path_SED
5597 case `"$ac_path_SED" --version 2>&1` in
5599 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5602 $as_echo_n 0123456789 >"conftest.in"
5605 cat "conftest.in" "conftest.in" >"conftest.tmp"
5606 mv "conftest.tmp" "conftest.in"
5607 cp "conftest.in" "conftest.nl"
5608 $as_echo '' >> "conftest.nl"
5609 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5610 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5611 as_fn_arith $ac_count + 1 && ac_count=$as_val
5612 if test $ac_count -gt ${ac_path_SED_max-0}; then
5613 # Best one so far, save it but keep looking for a better one
5614 ac_cv_path_SED="$ac_path_SED"
5615 ac_path_SED_max=$ac_count
5617 # 10*(2^10) chars as input seems more than enough
5618 test $ac_count -gt 10 && break
5620 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5623 $ac_path_SED_found && break 3
5628 if test -z "$ac_cv_path_SED"; then
5629 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5637 $as_echo "$ac_cv_path_SED" >&6; }
5638 SED="$ac_cv_path_SED"
5641 test -z "$SED" && SED=sed
5642 Xsed="$SED -e 1s/^X//"
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5655 $as_echo_n "checking for fgrep... " >&6; }
5656 if test "${ac_cv_path_FGREP+set}" = set; then :
5657 $as_echo_n "(cached) " >&6
5659 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5660 then ac_cv_path_FGREP="$GREP -F"
5662 if test -z "$FGREP"; then
5663 ac_path_FGREP_found=false
5664 # Loop through the user's path and test for each of PROGNAME-LIST
5665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5669 test -z "$as_dir" && as_dir=.
5670 for ac_prog in fgrep; do
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5673 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5674 # Check for GNU ac_path_FGREP and select it if it is found.
5675 # Check for GNU $ac_path_FGREP
5676 case `"$ac_path_FGREP" --version 2>&1` in
5678 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5681 $as_echo_n 0123456789 >"conftest.in"
5684 cat "conftest.in" "conftest.in" >"conftest.tmp"
5685 mv "conftest.tmp" "conftest.in"
5686 cp "conftest.in" "conftest.nl"
5687 $as_echo 'FGREP' >> "conftest.nl"
5688 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5690 as_fn_arith $ac_count + 1 && ac_count=$as_val
5691 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5692 # Best one so far, save it but keep looking for a better one
5693 ac_cv_path_FGREP="$ac_path_FGREP"
5694 ac_path_FGREP_max=$ac_count
5696 # 10*(2^10) chars as input seems more than enough
5697 test $ac_count -gt 10 && break
5699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5702 $ac_path_FGREP_found && break 3
5707 if test -z "$ac_cv_path_FGREP"; then
5708 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5711 ac_cv_path_FGREP=$FGREP
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5717 $as_echo "$ac_cv_path_FGREP" >&6; }
5718 FGREP="$ac_cv_path_FGREP"
5721 test -z "$GREP" && GREP=grep
5741 # Check whether --with-gnu-ld was given.
5742 if test "${with_gnu_ld+set}" = set; then :
5743 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5749 if test "$GCC" = yes; then
5750 # Check if gcc -print-prog-name=ld gives a path.
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5752 $as_echo_n "checking for ld used by $CC... " >&6; }
5755 # gcc leaves a trailing carriage return which upsets mingw
5756 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5758 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5761 # Accept absolute paths.
5763 re_direlt='/[^/][^/]*/\.\./'
5764 # Canonicalize the pathname of ld
5765 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5766 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5767 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5769 test -z "$LD" && LD="$ac_prog"
5772 # If it fails, then pretend we aren't using GCC.
5776 # If it is relative, then search for the first ld in PATH.
5780 elif test "$with_gnu_ld" = yes; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5782 $as_echo_n "checking for GNU ld... " >&6; }
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5785 $as_echo_n "checking for non-GNU ld... " >&6; }
5787 if test "${lt_cv_path_LD+set}" = set; then :
5788 $as_echo_n "(cached) " >&6
5790 if test -z "$LD"; then
5791 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5792 for ac_dir in $PATH; do
5794 test -z "$ac_dir" && ac_dir=.
5795 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5796 lt_cv_path_LD="$ac_dir/$ac_prog"
5797 # Check to see if the program is GNU ld. I'd rather use --version,
5798 # but apparently some variants of GNU ld only accept -v.
5799 # Break only if it was the GNU/non-GNU ld that we prefer.
5800 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5801 *GNU* | *'with BFD'*)
5802 test "$with_gnu_ld" != no && break
5805 test "$with_gnu_ld" != yes && break
5812 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5817 if test -n "$LD"; then
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5819 $as_echo "$LD" >&6; }
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5824 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5826 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5827 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5828 $as_echo_n "(cached) " >&6
5830 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5831 case `$LD -v 2>&1 </dev/null` in
5832 *GNU* | *'with BFD'*)
5833 lt_cv_prog_gnu_ld=yes
5836 lt_cv_prog_gnu_ld=no
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5841 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5842 with_gnu_ld=$lt_cv_prog_gnu_ld
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5853 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5854 if test "${lt_cv_path_NM+set}" = set; then :
5855 $as_echo_n "(cached) " >&6
5857 if test -n "$NM"; then
5858 # Let the user override the test.
5861 lt_nm_to_check="${ac_tool_prefix}nm"
5862 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5863 lt_nm_to_check="$lt_nm_to_check nm"
5865 for lt_tmp_nm in $lt_nm_to_check; do
5866 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5867 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5869 test -z "$ac_dir" && ac_dir=.
5870 tmp_nm="$ac_dir/$lt_tmp_nm"
5871 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5872 # Check to see if the nm accepts a BSD-compat flag.
5873 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5874 # nm: unknown option "B" ignored
5875 # Tru64's nm complains that /dev/null is an invalid object file
5876 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5877 */dev/null* | *'Invalid file or object type'*)
5878 lt_cv_path_NM="$tmp_nm -B"
5882 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5884 lt_cv_path_NM="$tmp_nm -p"
5888 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5889 continue # so that we can try to find one that supports BSD flags
5898 : ${lt_cv_path_NM=no}
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5902 $as_echo "$lt_cv_path_NM" >&6; }
5903 if test "$lt_cv_path_NM" != "no"; then
5906 # Didn't find any BSD compatible name lister, look for dumpbin.
5907 if test -n "$ac_tool_prefix"; then
5908 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5911 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913 $as_echo_n "checking for $ac_word... " >&6; }
5914 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5915 $as_echo_n "(cached) " >&6
5917 if test -n "$DUMPBIN"; then
5918 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 DUMPBIN=$ac_cv_prog_DUMPBIN
5938 if test -n "$DUMPBIN"; then
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5940 $as_echo "$DUMPBIN" >&6; }
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943 $as_echo "no" >&6; }
5947 test -n "$DUMPBIN" && break
5950 if test -z "$DUMPBIN"; then
5951 ac_ct_DUMPBIN=$DUMPBIN
5952 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5954 # Extract the first word of "$ac_prog", so it can be a program name with args.
5955 set dummy $ac_prog; ac_word=$2
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5959 $as_echo_n "(cached) " >&6
5961 if test -n "$ac_ct_DUMPBIN"; then
5962 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5982 if test -n "$ac_ct_DUMPBIN"; then
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5984 $as_echo "$ac_ct_DUMPBIN" >&6; }
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5991 test -n "$ac_ct_DUMPBIN" && break
5994 if test "x$ac_ct_DUMPBIN" = x; then
5997 case $cross_compiling:$ac_tool_warned in
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6001 ac_tool_warned=yes ;;
6003 DUMPBIN=$ac_ct_DUMPBIN
6008 if test "$DUMPBIN" != ":"; then
6012 test -z "$NM" && NM=nm
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6020 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6021 if test "${lt_cv_nm_interface+set}" = set; then :
6022 $as_echo_n "(cached) " >&6
6024 lt_cv_nm_interface="BSD nm"
6025 echo "int some_variable = 0;" > conftest.$ac_ext
6026 (eval echo "\"\$as_me:6026: $ac_compile\"" >&5)
6027 (eval "$ac_compile" 2>conftest.err)
6028 cat conftest.err >&5
6029 (eval echo "\"\$as_me:6029: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6030 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6031 cat conftest.err >&5
6032 (eval echo "\"\$as_me:6032: output\"" >&5)
6033 cat conftest.out >&5
6034 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6035 lt_cv_nm_interface="MS dumpbin"
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6040 $as_echo "$lt_cv_nm_interface" >&6; }
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6043 $as_echo_n "checking whether ln -s works... " >&6; }
6045 if test "$LN_S" = "ln -s"; then
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6047 $as_echo "yes" >&6; }
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6050 $as_echo "no, using $LN_S" >&6; }
6053 # find the maximum length of command line arguments
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6055 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6056 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6064 # On DJGPP, this test can blow up pretty badly due to problems in libc
6065 # (any single argument exceeding 2000 bytes causes a buffer overrun
6066 # during glob expansion). Even if it were fixed, the result of this
6067 # check would be larger than it should be.
6068 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6072 # Under GNU Hurd, this test is not required because there is
6073 # no limit to the length of command line arguments.
6074 # Libtool will interpret -1 as no limit whatsoever
6075 lt_cv_sys_max_cmd_len=-1;
6078 cygwin* | mingw* | cegcc*)
6079 # On Win9x/ME, this test blows up -- it succeeds, but takes
6080 # about 5 minutes as the teststring grows exponentially.
6081 # Worse, since 9x/ME are not pre-emptively multitasking,
6082 # you end up with a "frozen" computer, even though with patience
6083 # the test eventually succeeds (with a max line length of 256k).
6084 # Instead, let's just punt: use the minimum linelength reported by
6085 # all of the supported platforms: 8192 (on NT/2K/XP).
6086 lt_cv_sys_max_cmd_len=8192;
6090 # On AmigaOS with pdksh, this test takes hours, literally.
6091 # So we just punt and use a minimum line length of 8192.
6092 lt_cv_sys_max_cmd_len=8192;
6095 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6096 # This has been around since 386BSD, at least. Likely further.
6097 if test -x /sbin/sysctl; then
6098 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6099 elif test -x /usr/sbin/sysctl; then
6100 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6102 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6104 # And add a safety zone
6105 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6106 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6110 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6111 lt_cv_sys_max_cmd_len=196608
6115 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6116 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6117 # nice to cause kernel panics so lets avoid the loop below.
6118 # First set a reasonable default.
6119 lt_cv_sys_max_cmd_len=16384
6121 if test -x /sbin/sysconfig; then
6122 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6123 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6128 lt_cv_sys_max_cmd_len=102400
6130 sysv5* | sco5v6* | sysv4.2uw2*)
6131 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6132 if test -n "$kargmax"; then
6133 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6135 lt_cv_sys_max_cmd_len=32768
6139 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6140 if test -n "$lt_cv_sys_max_cmd_len"; then
6141 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6142 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6144 # Make teststring a little bigger before we do anything with it.
6145 # a 1K string should be a reasonable start.
6146 for i in 1 2 3 4 5 6 7 8 ; do
6147 teststring=$teststring$teststring
6149 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6150 # If test is not a shell built-in, we'll probably end up computing a
6151 # maximum length that is only half of the actual maximum length, but
6153 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6154 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6155 test $i != 17 # 1/2 MB should be enough
6158 teststring=$teststring$teststring
6160 # Only check the string length outside the loop.
6161 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6163 # Add a significant safety factor because C++ compilers can tack on
6164 # massive amounts of additional arguments before passing them to the
6165 # linker. It appears as though 1/2 is a usable value.
6166 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6173 if test -n $lt_cv_sys_max_cmd_len ; then
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6175 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6178 $as_echo "none" >&6; }
6180 max_cmd_len=$lt_cv_sys_max_cmd_len
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6192 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6193 # Try some XSI features
6196 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6198 && eval 'test $(( 1 + 1 )) -eq 2 \
6199 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6202 $as_echo "$xsi_shell" >&6; }
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6206 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6208 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6210 && lt_shell_append=yes
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6212 $as_echo "$lt_shell_append" >&6; }
6215 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6225 # test EBCDIC or ASCII
6226 case `echo X|tr X '\101'` in
6227 A) # ASCII based system
6228 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6229 lt_SP2NL='tr \040 \012'
6230 lt_NL2SP='tr \015\012 \040\040'
6232 *) # EBCDIC based system
6233 lt_SP2NL='tr \100 \n'
6234 lt_NL2SP='tr \r\n \100\100'
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6247 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6248 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6249 $as_echo_n "(cached) " >&6
6251 lt_cv_ld_reload_flag='-r'
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6254 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6255 reload_flag=$lt_cv_ld_reload_flag
6256 case $reload_flag in
6258 *) reload_flag=" $reload_flag" ;;
6260 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6263 if test "$GCC" = yes; then
6264 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6266 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6279 if test -n "$ac_tool_prefix"; then
6280 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6281 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283 $as_echo_n "checking for $ac_word... " >&6; }
6284 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6285 $as_echo_n "(cached) " >&6
6287 if test -n "$OBJDUMP"; then
6288 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 OBJDUMP=$ac_cv_prog_OBJDUMP
6308 if test -n "$OBJDUMP"; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6310 $as_echo "$OBJDUMP" >&6; }
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313 $as_echo "no" >&6; }
6318 if test -z "$ac_cv_prog_OBJDUMP"; then
6319 ac_ct_OBJDUMP=$OBJDUMP
6320 # Extract the first word of "objdump", so it can be a program name with args.
6321 set dummy objdump; ac_word=$2
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323 $as_echo_n "checking for $ac_word... " >&6; }
6324 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6325 $as_echo_n "(cached) " >&6
6327 if test -n "$ac_ct_OBJDUMP"; then
6328 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6337 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6348 if test -n "$ac_ct_OBJDUMP"; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6350 $as_echo "$ac_ct_OBJDUMP" >&6; }
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6356 if test "x$ac_ct_OBJDUMP" = x; then
6359 case $cross_compiling:$ac_tool_warned in
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6363 ac_tool_warned=yes ;;
6365 OBJDUMP=$ac_ct_OBJDUMP
6368 OBJDUMP="$ac_cv_prog_OBJDUMP"
6371 test -z "$OBJDUMP" && OBJDUMP=objdump
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6379 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6380 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6381 $as_echo_n "(cached) " >&6
6383 lt_cv_file_magic_cmd='$MAGIC_CMD'
6384 lt_cv_file_magic_test_file=
6385 lt_cv_deplibs_check_method='unknown'
6386 # Need to set the preceding variable on all platforms that support
6387 # interlibrary dependencies.
6388 # 'none' -- dependencies not supported.
6389 # `unknown' -- same as none, but documents that we really don't know.
6390 # 'pass_all' -- all dependencies passed with no checks.
6391 # 'test_compile' -- check by making test program.
6392 # 'file_magic [[regex]]' -- check by looking for files in library path
6393 # which responds to the $file_magic_cmd with a given extended regex.
6394 # If you have `file' or equivalent on your system and you're not sure
6395 # whether `pass_all' will *always* work, you probably want this one.
6399 lt_cv_deplibs_check_method=pass_all
6403 lt_cv_deplibs_check_method=pass_all
6407 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6408 lt_cv_file_magic_cmd='/usr/bin/file -L'
6409 lt_cv_file_magic_test_file=/shlib/libc.so
6413 # func_win32_libid is a shell function defined in ltmain.sh
6414 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6415 lt_cv_file_magic_cmd='func_win32_libid'
6419 # Base MSYS/MinGW do not provide the 'file' command needed by
6420 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6421 # unless we find 'file', for example because we are cross-compiling.
6422 if ( file / ) >/dev/null 2>&1; then
6423 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6424 lt_cv_file_magic_cmd='func_win32_libid'
6426 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6427 lt_cv_file_magic_cmd='$OBJDUMP -f'
6432 # use the weaker test based on 'objdump'. See mingw*.
6433 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6434 lt_cv_file_magic_cmd='$OBJDUMP -f'
6437 darwin* | rhapsody*)
6438 lt_cv_deplibs_check_method=pass_all
6441 freebsd* | dragonfly*)
6442 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6445 # Not sure whether the presence of OpenBSD here was a mistake.
6446 # Let's accept both of them until this is cleared up.
6447 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6448 lt_cv_file_magic_cmd=/usr/bin/file
6449 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6453 lt_cv_deplibs_check_method=pass_all
6458 lt_cv_deplibs_check_method=pass_all
6461 hpux10.20* | hpux11*)
6462 lt_cv_file_magic_cmd=/usr/bin/file
6465 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6466 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6469 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6470 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6473 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6474 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6480 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6484 irix5* | irix6* | nonstopux*)
6486 *-32|*"-32 ") libmagic=32-bit;;
6487 *-n32|*"-n32 ") libmagic=N32;;
6488 *-64|*"-64 ") libmagic=64-bit;;
6489 *) libmagic=never-match;;
6491 lt_cv_deplibs_check_method=pass_all
6494 # This must be Linux ELF.
6495 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6496 lt_cv_deplibs_check_method=pass_all
6499 netbsd* | netbsdelf*-gnu)
6500 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6501 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6503 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6508 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6509 lt_cv_file_magic_cmd=/usr/bin/file
6510 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6514 lt_cv_deplibs_check_method=pass_all
6518 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6519 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6521 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6525 osf3* | osf4* | osf5*)
6526 lt_cv_deplibs_check_method=pass_all
6530 lt_cv_deplibs_check_method=pass_all
6534 lt_cv_deplibs_check_method=pass_all
6537 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6538 lt_cv_deplibs_check_method=pass_all
6542 case $host_vendor in
6544 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]'
6545 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6548 lt_cv_deplibs_check_method=pass_all
6551 lt_cv_file_magic_cmd='/bin/file'
6552 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6555 lt_cv_file_magic_cmd='/bin/file'
6556 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6557 lt_cv_file_magic_test_file=/lib/libc.so
6560 lt_cv_deplibs_check_method=pass_all
6563 lt_cv_deplibs_check_method=pass_all
6569 lt_cv_deplibs_check_method=pass_all
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6575 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6576 file_magic_cmd=$lt_cv_file_magic_cmd
6577 deplibs_check_method=$lt_cv_deplibs_check_method
6578 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6591 if test -n "$ac_tool_prefix"; then
6592 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6593 set dummy ${ac_tool_prefix}ar; ac_word=$2
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6595 $as_echo_n "checking for $ac_word... " >&6; }
6596 if test "${ac_cv_prog_AR+set}" = set; then :
6597 $as_echo_n "(cached) " >&6
6599 if test -n "$AR"; then
6600 ac_cv_prog_AR="$AR" # Let the user override the test.
6602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 test -z "$as_dir" && as_dir=.
6607 for ac_exec_ext in '' $ac_executable_extensions; do
6608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6609 ac_cv_prog_AR="${ac_tool_prefix}ar"
6610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 if test -n "$AR"; then
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6622 $as_echo "$AR" >&6; }
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6625 $as_echo "no" >&6; }
6630 if test -z "$ac_cv_prog_AR"; then
6632 # Extract the first word of "ar", so it can be a program name with args.
6633 set dummy ar; ac_word=$2
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635 $as_echo_n "checking for $ac_word... " >&6; }
6636 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6637 $as_echo_n "(cached) " >&6
6639 if test -n "$ac_ct_AR"; then
6640 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 test -z "$as_dir" && as_dir=.
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6649 ac_cv_prog_ac_ct_AR="ar"
6650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6660 if test -n "$ac_ct_AR"; then
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6662 $as_echo "$ac_ct_AR" >&6; }
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 $as_echo "no" >&6; }
6668 if test "x$ac_ct_AR" = x; then
6671 case $cross_compiling:$ac_tool_warned in
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6675 ac_tool_warned=yes ;;
6683 test -z "$AR" && AR=ar
6684 test -z "$AR_FLAGS" && AR_FLAGS=cru
6696 if test -n "$ac_tool_prefix"; then
6697 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6698 set dummy ${ac_tool_prefix}strip; ac_word=$2
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6700 $as_echo_n "checking for $ac_word... " >&6; }
6701 if test "${ac_cv_prog_STRIP+set}" = set; then :
6702 $as_echo_n "(cached) " >&6
6704 if test -n "$STRIP"; then
6705 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6714 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 STRIP=$ac_cv_prog_STRIP
6725 if test -n "$STRIP"; then
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6727 $as_echo "$STRIP" >&6; }
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6735 if test -z "$ac_cv_prog_STRIP"; then
6737 # Extract the first word of "strip", so it can be a program name with args.
6738 set dummy strip; ac_word=$2
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6740 $as_echo_n "checking for $ac_word... " >&6; }
6741 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6742 $as_echo_n "(cached) " >&6
6744 if test -n "$ac_ct_STRIP"; then
6745 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6754 ac_cv_prog_ac_ct_STRIP="strip"
6755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6765 if test -n "$ac_ct_STRIP"; then
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6767 $as_echo "$ac_ct_STRIP" >&6; }
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770 $as_echo "no" >&6; }
6773 if test "x$ac_ct_STRIP" = x; then
6776 case $cross_compiling:$ac_tool_warned in
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6780 ac_tool_warned=yes ;;
6785 STRIP="$ac_cv_prog_STRIP"
6788 test -z "$STRIP" && STRIP=:
6795 if test -n "$ac_tool_prefix"; then
6796 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6797 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799 $as_echo_n "checking for $ac_word... " >&6; }
6800 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6801 $as_echo_n "(cached) " >&6
6803 if test -n "$RANLIB"; then
6804 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6813 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 RANLIB=$ac_cv_prog_RANLIB
6824 if test -n "$RANLIB"; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6826 $as_echo "$RANLIB" >&6; }
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829 $as_echo "no" >&6; }
6834 if test -z "$ac_cv_prog_RANLIB"; then
6835 ac_ct_RANLIB=$RANLIB
6836 # Extract the first word of "ranlib", so it can be a program name with args.
6837 set dummy ranlib; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6841 $as_echo_n "(cached) " >&6
6843 if test -n "$ac_ct_RANLIB"; then
6844 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6853 ac_cv_prog_ac_ct_RANLIB="ranlib"
6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6864 if test -n "$ac_ct_RANLIB"; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6866 $as_echo "$ac_ct_RANLIB" >&6; }
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6872 if test "x$ac_ct_RANLIB" = x; then
6875 case $cross_compiling:$ac_tool_warned in
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6879 ac_tool_warned=yes ;;
6881 RANLIB=$ac_ct_RANLIB
6884 RANLIB="$ac_cv_prog_RANLIB"
6887 test -z "$RANLIB" && RANLIB=:
6894 # Determine commands to create old-style static archives.
6895 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6896 old_postinstall_cmds='chmod 644 $oldlib'
6897 old_postuninstall_cmds=
6899 if test -n "$RANLIB"; then
6902 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6905 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6908 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6944 # If no C compiler was specified, use CC.
6947 # If no C compiler flags were specified, use CFLAGS.
6948 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6950 # Allow CC to be a program name with arguments.
6954 # Check for command to grab the raw symbol name followed by C symbol from nm.
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6956 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6957 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6958 $as_echo_n "(cached) " >&6
6961 # These are sane defaults that work on at least a few old systems.
6962 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6964 # Character class describing NM global symbol codes.
6965 symcode='[BCDEGRST]'
6967 # Regexp to match symbols that can be accessed directly from C.
6968 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6970 # Define system-specific variables.
6975 cygwin* | mingw* | pw32* | cegcc*)
6976 symcode='[ABCDGISTW]'
6979 if test "$host_cpu" = ia64; then
6980 symcode='[ABCDEGRST]'
6984 symcode='[BCDEGRST]'
6987 symcode='[BCDEGQRST]'
6998 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7006 # If we're using GNU nm, then use its standard symbol codes.
7007 case `$NM -V 2>&1` in
7008 *GNU* | *'with BFD'*)
7009 symcode='[ABCDGIRSTW]' ;;
7012 # Transform an extracted symbol line into a proper C declaration.
7013 # Some systems (esp. on ia64) link data and code symbols differently,
7014 # so use this general approach.
7015 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7017 # Transform an extracted symbol line into symbol name and symbol address
7018 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7019 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'"
7021 # Handle CRLF in mingw tool chain
7025 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7029 # Try without a prefix underscore, then with it.
7030 for ac_symprfx in "" "_"; do
7032 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7033 symxfrm="\\1 $ac_symprfx\\2 \\2"
7035 # Write the raw and C identifiers.
7036 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7037 # Fake it for dumpbin and say T for any non-static function
7038 # and D for any global variable.
7039 # Also find C++ and __fastcall symbols from MSVC++,
7040 # which start with @ or ?.
7041 lt_cv_sys_global_symbol_pipe="$AWK '"\
7042 " {last_section=section; section=\$ 3};"\
7043 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7044 " \$ 0!~/External *\|/{next};"\
7045 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7046 " {if(hide[section]) next};"\
7047 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7048 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7049 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7050 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7051 " ' prfx=^$ac_symprfx"
7053 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7056 # Check to see that the pipe works correctly.
7060 cat > conftest.$ac_ext <<_LT_EOF
7065 void nm_test_func(void);
7066 void nm_test_func(void){}
7070 int main(){nm_test_var='a';nm_test_func();return(0);}
7073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7074 (eval $ac_compile) 2>&5
7076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7077 test $ac_status = 0; }; then
7078 # Now try to grab the symbols.
7080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7081 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7084 test $ac_status = 0; } && test -s "$nlist"; then
7085 # Try sorting and uniquifying the output.
7086 if sort "$nlist" | uniq > "$nlist"T; then
7087 mv -f "$nlist"T "$nlist"
7092 # Make sure that we snagged all the symbols we need.
7093 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7094 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7095 cat <<_LT_EOF > conftest.$ac_ext
7101 # Now generate the symbol file.
7102 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7104 cat <<_LT_EOF >> conftest.$ac_ext
7106 /* The mapping between symbol names and symbols. */
7111 lt__PROGRAM__LTX_preloaded_symbols[] =
7113 { "@PROGRAM@", (void *) 0 },
7115 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7116 cat <<\_LT_EOF >> conftest.$ac_ext
7120 /* This works around a problem in FreeBSD linker */
7121 #ifdef FREEBSD_WORKAROUND
7122 static const void *lt_preloaded_setup() {
7123 return lt__PROGRAM__LTX_preloaded_symbols;
7131 # Now try linking the two files.
7132 mv conftest.$ac_objext conftstm.$ac_objext
7133 lt_save_LIBS="$LIBS"
7134 lt_save_CFLAGS="$CFLAGS"
7135 LIBS="conftstm.$ac_objext"
7136 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7138 (eval $ac_link) 2>&5
7140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7141 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7144 LIBS="$lt_save_LIBS"
7145 CFLAGS="$lt_save_CFLAGS"
7147 echo "cannot find nm_test_func in $nlist" >&5
7150 echo "cannot find nm_test_var in $nlist" >&5
7153 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7156 echo "$progname: failed program was:" >&5
7157 cat conftest.$ac_ext >&5
7159 rm -rf conftest* conftst*
7161 # Do not use the global_symbol_pipe unless it works.
7162 if test "$pipe_works" = yes; then
7165 lt_cv_sys_global_symbol_pipe=
7171 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7172 lt_cv_sys_global_symbol_to_cdecl=
7174 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7176 $as_echo "failed" >&6; }
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7179 $as_echo "ok" >&6; }
7204 # Check whether --enable-libtool-lock was given.
7205 if test "${enable_libtool_lock+set}" = set; then :
7206 enableval=$enable_libtool_lock;
7209 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7211 # Some flags need to be propagated to the compiler or linker for good
7215 # Find out which ABI we are using.
7216 echo 'int i;' > conftest.$ac_ext
7217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7218 (eval $ac_compile) 2>&5
7220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7221 test $ac_status = 0; }; then
7222 case `/usr/bin/file conftest.$ac_objext` in
7234 # Find out which ABI we are using.
7235 echo '#line 7235 "configure"' > conftest.$ac_ext
7236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7237 (eval $ac_compile) 2>&5
7239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7240 test $ac_status = 0; }; then
7241 if test "$lt_cv_prog_gnu_ld" = yes; then
7242 case `/usr/bin/file conftest.$ac_objext` in
7244 LD="${LD-ld} -melf32bsmip"
7247 LD="${LD-ld} -melf32bmipn32"
7250 LD="${LD-ld} -melf64bmip"
7254 case `/usr/bin/file conftest.$ac_objext` in
7270 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7271 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7272 # Find out which ABI we are using.
7273 echo 'int i;' > conftest.$ac_ext
7274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7275 (eval $ac_compile) 2>&5
7277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7278 test $ac_status = 0; }; then
7279 case `/usr/bin/file conftest.o` in
7282 x86_64-*kfreebsd*-gnu)
7283 LD="${LD-ld} -m elf_i386_fbsd"
7286 LD="${LD-ld} -m elf_i386"
7288 ppc64-*linux*|powerpc64-*linux*)
7289 LD="${LD-ld} -m elf32ppclinux"
7292 LD="${LD-ld} -m elf_s390"
7295 LD="${LD-ld} -m elf32_sparc"
7301 x86_64-*kfreebsd*-gnu)
7302 LD="${LD-ld} -m elf_x86_64_fbsd"
7305 LD="${LD-ld} -m elf_x86_64"
7307 ppc*-*linux*|powerpc*-*linux*)
7308 LD="${LD-ld} -m elf64ppc"
7310 s390*-*linux*|s390*-*tpf*)
7311 LD="${LD-ld} -m elf64_s390"
7314 LD="${LD-ld} -m elf64_sparc"
7324 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7325 SAVE_CFLAGS="$CFLAGS"
7326 CFLAGS="$CFLAGS -belf"
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7328 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7329 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7330 $as_echo_n "(cached) " >&6
7333 ac_cpp='$CPP $CPPFLAGS'
7334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339 /* end confdefs.h. */
7349 if ac_fn_c_try_link "$LINENO"; then :
7350 lt_cv_cc_needs_belf=yes
7352 lt_cv_cc_needs_belf=no
7354 rm -f core conftest.err conftest.$ac_objext \
7355 conftest$ac_exeext conftest.$ac_ext
7357 ac_cpp='$CPP $CPPFLAGS'
7358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7364 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7365 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7366 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7367 CFLAGS="$SAVE_CFLAGS"
7371 # Find out which ABI we are using.
7372 echo 'int i;' > conftest.$ac_ext
7373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7374 (eval $ac_compile) 2>&5
7376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7377 test $ac_status = 0; }; then
7378 case `/usr/bin/file conftest.o` in
7380 case $lt_cv_prog_gnu_ld in
7381 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7383 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7395 need_locks="$enable_libtool_lock"
7399 rhapsody* | darwin*)
7400 if test -n "$ac_tool_prefix"; then
7401 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7402 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7406 $as_echo_n "(cached) " >&6
7408 if test -n "$DSYMUTIL"; then
7409 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7418 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7429 if test -n "$DSYMUTIL"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7431 $as_echo "$DSYMUTIL" >&6; }
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7439 if test -z "$ac_cv_prog_DSYMUTIL"; then
7440 ac_ct_DSYMUTIL=$DSYMUTIL
7441 # Extract the first word of "dsymutil", so it can be a program name with args.
7442 set dummy dsymutil; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7446 $as_echo_n "(cached) " >&6
7448 if test -n "$ac_ct_DSYMUTIL"; then
7449 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7458 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7469 if test -n "$ac_ct_DSYMUTIL"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7471 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7477 if test "x$ac_ct_DSYMUTIL" = x; then
7480 case $cross_compiling:$ac_tool_warned in
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484 ac_tool_warned=yes ;;
7486 DSYMUTIL=$ac_ct_DSYMUTIL
7489 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7492 if test -n "$ac_tool_prefix"; then
7493 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7494 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7498 $as_echo_n "(cached) " >&6
7500 if test -n "$NMEDIT"; then
7501 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7510 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 NMEDIT=$ac_cv_prog_NMEDIT
7521 if test -n "$NMEDIT"; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7523 $as_echo "$NMEDIT" >&6; }
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7531 if test -z "$ac_cv_prog_NMEDIT"; then
7532 ac_ct_NMEDIT=$NMEDIT
7533 # Extract the first word of "nmedit", so it can be a program name with args.
7534 set dummy nmedit; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7538 $as_echo_n "(cached) " >&6
7540 if test -n "$ac_ct_NMEDIT"; then
7541 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7550 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7561 if test -n "$ac_ct_NMEDIT"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7563 $as_echo "$ac_ct_NMEDIT" >&6; }
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7569 if test "x$ac_ct_NMEDIT" = x; then
7572 case $cross_compiling:$ac_tool_warned in
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7576 ac_tool_warned=yes ;;
7578 NMEDIT=$ac_ct_NMEDIT
7581 NMEDIT="$ac_cv_prog_NMEDIT"
7584 if test -n "$ac_tool_prefix"; then
7585 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7586 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if test "${ac_cv_prog_LIPO+set}" = set; then :
7590 $as_echo_n "(cached) " >&6
7592 if test -n "$LIPO"; then
7593 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7602 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 LIPO=$ac_cv_prog_LIPO
7613 if test -n "$LIPO"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7615 $as_echo "$LIPO" >&6; }
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7623 if test -z "$ac_cv_prog_LIPO"; then
7625 # Extract the first word of "lipo", so it can be a program name with args.
7626 set dummy lipo; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7630 $as_echo_n "(cached) " >&6
7632 if test -n "$ac_ct_LIPO"; then
7633 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7642 ac_cv_prog_ac_ct_LIPO="lipo"
7643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7653 if test -n "$ac_ct_LIPO"; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7655 $as_echo "$ac_ct_LIPO" >&6; }
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 $as_echo "no" >&6; }
7661 if test "x$ac_ct_LIPO" = x; then
7664 case $cross_compiling:$ac_tool_warned in
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7668 ac_tool_warned=yes ;;
7673 LIPO="$ac_cv_prog_LIPO"
7676 if test -n "$ac_tool_prefix"; then
7677 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7678 set dummy ${ac_tool_prefix}otool; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7682 $as_echo_n "(cached) " >&6
7684 if test -n "$OTOOL"; then
7685 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7694 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 OTOOL=$ac_cv_prog_OTOOL
7705 if test -n "$OTOOL"; then
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7707 $as_echo "$OTOOL" >&6; }
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7715 if test -z "$ac_cv_prog_OTOOL"; then
7717 # Extract the first word of "otool", so it can be a program name with args.
7718 set dummy otool; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
7724 if test -n "$ac_ct_OTOOL"; then
7725 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7734 ac_cv_prog_ac_ct_OTOOL="otool"
7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7745 if test -n "$ac_ct_OTOOL"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7747 $as_echo "$ac_ct_OTOOL" >&6; }
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7753 if test "x$ac_ct_OTOOL" = x; then
7756 case $cross_compiling:$ac_tool_warned in
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7760 ac_tool_warned=yes ;;
7765 OTOOL="$ac_cv_prog_OTOOL"
7768 if test -n "$ac_tool_prefix"; then
7769 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7770 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7774 $as_echo_n "(cached) " >&6
7776 if test -n "$OTOOL64"; then
7777 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7786 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 OTOOL64=$ac_cv_prog_OTOOL64
7797 if test -n "$OTOOL64"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7799 $as_echo "$OTOOL64" >&6; }
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7807 if test -z "$ac_cv_prog_OTOOL64"; then
7808 ac_ct_OTOOL64=$OTOOL64
7809 # Extract the first word of "otool64", so it can be a program name with args.
7810 set dummy otool64; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7814 $as_echo_n "(cached) " >&6
7816 if test -n "$ac_ct_OTOOL64"; then
7817 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826 ac_cv_prog_ac_ct_OTOOL64="otool64"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7837 if test -n "$ac_ct_OTOOL64"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7839 $as_echo "$ac_ct_OTOOL64" >&6; }
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7845 if test "x$ac_ct_OTOOL64" = x; then
7848 case $cross_compiling:$ac_tool_warned in
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7852 ac_tool_warned=yes ;;
7854 OTOOL64=$ac_ct_OTOOL64
7857 OTOOL64="$ac_cv_prog_OTOOL64"
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7887 $as_echo_n "checking for -single_module linker flag... " >&6; }
7888 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7889 $as_echo_n "(cached) " >&6
7891 lt_cv_apple_cc_single_mod=no
7892 if test -z "${LT_MULTI_MODULE}"; then
7893 # By default we will add the -single_module flag. You can override
7894 # by either setting the environment variable LT_MULTI_MODULE
7895 # non-empty at configure time, or by adding -multi_module to the
7897 rm -rf libconftest.dylib*
7898 echo "int foo(void){return 1;}" > conftest.c
7899 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7900 -dynamiclib -Wl,-single_module conftest.c" >&5
7901 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7902 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7904 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7905 lt_cv_apple_cc_single_mod=yes
7907 cat conftest.err >&5
7909 rm -rf libconftest.dylib*
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7914 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7916 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7917 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7918 $as_echo_n "(cached) " >&6
7920 lt_cv_ld_exported_symbols_list=no
7921 save_LDFLAGS=$LDFLAGS
7922 echo "_main" > conftest.sym
7923 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7935 if ac_fn_c_try_link "$LINENO"; then :
7936 lt_cv_ld_exported_symbols_list=yes
7938 lt_cv_ld_exported_symbols_list=no
7940 rm -f core conftest.err conftest.$ac_objext \
7941 conftest$ac_exeext conftest.$ac_ext
7942 LDFLAGS="$save_LDFLAGS"
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7946 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7948 rhapsody* | darwin1.[012])
7949 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7951 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7952 darwin*) # darwin 5.x on
7953 # if running on 10.5 or later, the deployment target defaults
7954 # to the OS version, if on x86, and 10.4, the deployment
7955 # target defaults to 10.4. Don't you love it?
7956 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7957 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7958 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7960 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7962 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7966 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7967 _lt_dar_single_mod='$single_module'
7969 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7970 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7972 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7974 if test "$DSYMUTIL" != ":"; then
7975 _lt_dsymutil='~$DSYMUTIL $lib || :'
7982 for ac_header in dlfcn.h
7984 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7986 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7987 cat >>confdefs.h <<_ACEOF
7988 #define HAVE_DLFCN_H 1
7998 ac_cpp='$CXXCPP $CPPFLAGS'
7999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8002 if test -z "$CXX"; then
8003 if test -n "$CCC"; then
8006 if test -n "$ac_tool_prefix"; then
8007 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if test "${ac_cv_prog_CXX+set}" = set; then :
8014 $as_echo_n "(cached) " >&6
8016 if test -n "$CXX"; then
8017 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 test -z "$as_dir" && as_dir=.
8024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8026 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8037 if test -n "$CXX"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8039 $as_echo "$CXX" >&6; }
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8046 test -n "$CXX" && break
8049 if test -z "$CXX"; then
8051 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8053 # Extract the first word of "$ac_prog", so it can be a program name with args.
8054 set dummy $ac_prog; ac_word=$2
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8056 $as_echo_n "checking for $ac_word... " >&6; }
8057 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8058 $as_echo_n "(cached) " >&6
8060 if test -n "$ac_ct_CXX"; then
8061 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 test -z "$as_dir" && as_dir=.
8068 for ac_exec_ext in '' $ac_executable_extensions; do
8069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8070 ac_cv_prog_ac_ct_CXX="$ac_prog"
8071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8080 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8081 if test -n "$ac_ct_CXX"; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8083 $as_echo "$ac_ct_CXX" >&6; }
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8086 $as_echo "no" >&6; }
8090 test -n "$ac_ct_CXX" && break
8093 if test "x$ac_ct_CXX" = x; then
8096 case $cross_compiling:$ac_tool_warned in
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8100 ac_tool_warned=yes ;;
8108 # Provide some information about the compiler.
8109 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8112 for ac_option in --version -v -V -qversion; do
8113 { { ac_try="$ac_compiler $ac_option >&5"
8115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116 *) ac_try_echo=$ac_try;;
8118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8119 $as_echo "$ac_try_echo"; } >&5
8120 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8122 if test -s conftest.err; then
8124 ... rest of stderr output deleted ...
8125 10q' conftest.err >conftest.er1
8126 cat conftest.er1 >&5
8128 rm -f conftest.er1 conftest.err
8129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8130 test $ac_status = 0; }
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8134 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8135 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8136 $as_echo_n "(cached) " >&6
8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8152 if ac_fn_cxx_try_compile "$LINENO"; then :
8157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8162 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8163 if test $ac_compiler_gnu = yes; then
8168 ac_test_CXXFLAGS=${CXXFLAGS+set}
8169 ac_save_CXXFLAGS=$CXXFLAGS
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8171 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8172 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8173 $as_echo_n "(cached) " >&6
8175 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8176 ac_cxx_werror_flag=yes
8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8190 if ac_fn_cxx_try_compile "$LINENO"; then :
8191 ac_cv_prog_cxx_g=yes
8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8205 if ac_fn_cxx_try_compile "$LINENO"; then :
8208 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h. */
8221 if ac_fn_cxx_try_compile "$LINENO"; then :
8222 ac_cv_prog_cxx_g=yes
8224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8229 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8232 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8233 if test "$ac_test_CXXFLAGS" = set; then
8234 CXXFLAGS=$ac_save_CXXFLAGS
8235 elif test $ac_cv_prog_cxx_g = yes; then
8236 if test "$GXX" = yes; then
8242 if test "$GXX" = yes; then
8249 ac_cpp='$CXXCPP $CPPFLAGS'
8250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8254 depcc="$CXX" am_compiler_list=
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8257 $as_echo_n "checking dependency style of $depcc... " >&6; }
8258 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8261 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8262 # We make a subdir and do the tests there. Otherwise we can end up
8263 # making bogus files that we don't know about and never remove. For
8264 # instance it was reported that on HP-UX the gcc test will end up
8265 # making a dummy file named `D' -- because `-MD' means `put the output
8268 # Copy depcomp to subdir because otherwise we won't find it if we're
8269 # using a relative directory.
8270 cp "$am_depcomp" conftest.dir
8272 # We will build objects and dependencies in a subdirectory because
8273 # it helps to detect inapplicable dependency modes. For instance
8274 # both Tru64's cc and ICC support -MD to output dependencies as a
8275 # side effect of compilation, but ICC will put the dependencies in
8276 # the current directory while Tru64 will put them in the object
8280 am_cv_CXX_dependencies_compiler_type=none
8281 if test "$am_compiler_list" = ""; then
8282 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8285 case " $depcc " in #(
8286 *\ -arch\ *\ -arch\ *) am__universal=true ;;
8289 for depmode in $am_compiler_list; do
8290 # Setup a source with many dependencies, because some compilers
8291 # like to wrap large dependency lists on column 80 (with \), and
8292 # we should not choose a depcomp mode which is confused by this.
8294 # We need to recreate these files for each test, as the compiler may
8295 # overwrite some of them when testing with obscure command lines.
8296 # This happens at least with the AIX C compiler.
8298 for i in 1 2 3 4 5 6; do
8299 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8300 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8301 # Solaris 8's {/usr,}/bin/sh.
8302 touch sub/conftst$i.h
8304 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8306 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8307 # mode. It turns out that the SunPro C++ compiler does not properly
8308 # handle `-M -o', and we need to detect this. Also, some Intel
8309 # versions had trouble with output in subdirs
8310 am__obj=sub/conftest.${OBJEXT-o}
8311 am__minus_obj="-o $am__obj"
8314 # This depmode causes a compiler race in universal mode.
8315 test "$am__universal" = false || continue
8318 # after this tag, mechanisms are not by side-effect, so they'll
8319 # only be used when explicitly requested
8320 if test "x$enable_dependency_tracking" = xyes; then
8326 msvisualcpp | msvcmsys)
8327 # This compiler won't grok `-c -o', but also, the minuso test has
8328 # not run yet. These depmodes are late enough in the game, and
8329 # so weak that their functioning should not be impacted.
8330 am__obj=conftest.${OBJEXT-o}
8335 if depmode=$depmode \
8336 source=sub/conftest.c object=$am__obj \
8337 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8338 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8339 >/dev/null 2>conftest.err &&
8340 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8341 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8342 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8343 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8344 # icc doesn't choke on unknown options, it will just issue warnings
8345 # or remarks (even with -Werror). So we grep stderr for any message
8346 # that says an option was ignored or not supported.
8347 # When given -MP, icc 7.0 and 7.1 complain thusly:
8348 # icc: Command line warning: ignoring option '-M'; no argument required
8349 # The diagnosis changed in icc 8.0:
8350 # icc: Command line remark: option '-MP' not supported
8351 if (grep 'ignoring option' conftest.err ||
8352 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8353 am_cv_CXX_dependencies_compiler_type=$depmode
8362 am_cv_CXX_dependencies_compiler_type=none
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8367 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8368 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8371 test "x$enable_dependency_tracking" != xno \
8372 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8373 am__fastdepCXX_TRUE=
8374 am__fastdepCXX_FALSE='#'
8376 am__fastdepCXX_TRUE='#'
8377 am__fastdepCXX_FALSE=
8381 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8382 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8383 (test "X$CXX" != "Xg++"))) ; then
8385 ac_cpp='$CXXCPP $CPPFLAGS'
8386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8390 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8391 if test -z "$CXXCPP"; then
8392 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8393 $as_echo_n "(cached) " >&6
8395 # Double quotes because CXXCPP needs to be expanded
8396 for CXXCPP in "$CXX -E" "/lib/cpp"
8399 for ac_cxx_preproc_warn_flag in '' yes
8401 # Use a header file that comes with gcc, so configuring glibc
8402 # with a fresh cross-compiler works.
8403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8404 # <limits.h> exists even on freestanding compilers.
8405 # On the NeXT, cc -E runs the code through the compiler's parser,
8406 # not just through cpp. "Syntax error" is here to catch this case.
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8410 # include <limits.h>
8412 # include <assert.h>
8416 if ac_fn_cxx_try_cpp "$LINENO"; then :
8419 # Broken: fails on valid input.
8422 rm -f conftest.err conftest.$ac_ext
8424 # OK, works on sane cases. Now check whether nonexistent headers
8425 # can be detected and how.
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8428 #include <ac_nonexistent.h>
8430 if ac_fn_cxx_try_cpp "$LINENO"; then :
8431 # Broken: success on invalid input.
8434 # Passes both tests.
8438 rm -f conftest.err conftest.$ac_ext
8441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8442 rm -f conftest.err conftest.$ac_ext
8443 if $ac_preproc_ok; then :
8448 ac_cv_prog_CXXCPP=$CXXCPP
8451 CXXCPP=$ac_cv_prog_CXXCPP
8453 ac_cv_prog_CXXCPP=$CXXCPP
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8456 $as_echo "$CXXCPP" >&6; }
8458 for ac_cxx_preproc_warn_flag in '' yes
8460 # Use a header file that comes with gcc, so configuring glibc
8461 # with a fresh cross-compiler works.
8462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8463 # <limits.h> exists even on freestanding compilers.
8464 # On the NeXT, cc -E runs the code through the compiler's parser,
8465 # not just through cpp. "Syntax error" is here to catch this case.
8466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467 /* end confdefs.h. */
8469 # include <limits.h>
8471 # include <assert.h>
8475 if ac_fn_cxx_try_cpp "$LINENO"; then :
8478 # Broken: fails on valid input.
8481 rm -f conftest.err conftest.$ac_ext
8483 # OK, works on sane cases. Now check whether nonexistent headers
8484 # can be detected and how.
8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8487 #include <ac_nonexistent.h>
8489 if ac_fn_cxx_try_cpp "$LINENO"; then :
8490 # Broken: success on invalid input.
8493 # Passes both tests.
8497 rm -f conftest.err conftest.$ac_ext
8500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8501 rm -f conftest.err conftest.$ac_ext
8502 if $ac_preproc_ok; then :
8505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8507 _lt_caught_CXX_error=yes; }
8511 ac_cpp='$CXXCPP $CPPFLAGS'
8512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8517 _lt_caught_CXX_error=yes
8531 # Check whether --enable-shared was given.
8532 if test "${enable_shared+set}" = set; then :
8533 enableval=$enable_shared; p=${PACKAGE-default}
8535 yes) enable_shared=yes ;;
8536 no) enable_shared=no ;;
8539 # Look at the argument we got. We use all the common list separators.
8540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8541 for pkg in $enableval; do
8543 if test "X$pkg" = "X$p"; then
8564 # Check whether --with-pic was given.
8565 if test "${with_pic+set}" = set; then :
8566 withval=$with_pic; pic_mode="$withval"
8572 test -z "$pic_mode" && pic_mode=default
8580 # Check whether --enable-fast-install was given.
8581 if test "${enable_fast_install+set}" = set; then :
8582 enableval=$enable_fast_install; p=${PACKAGE-default}
8584 yes) enable_fast_install=yes ;;
8585 no) enable_fast_install=no ;;
8587 enable_fast_install=no
8588 # Look at the argument we got. We use all the common list separators.
8589 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8590 for pkg in $enableval; do
8592 if test "X$pkg" = "X$p"; then
8593 enable_fast_install=yes
8600 enable_fast_install=yes
8613 # This can be used to rebuild libtool when needed
8614 LIBTOOL_DEPS="$ltmain"
8616 # Always use our own libtool.
8617 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8643 test -z "$LN_S" && LN_S="ln -s"
8658 if test -n "${ZSH_VERSION+set}" ; then
8659 setopt NO_GLOB_SUBST
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8663 $as_echo_n "checking for objdir... " >&6; }
8664 if test "${lt_cv_objdir+set}" = set; then :
8665 $as_echo_n "(cached) " >&6
8667 rm -f .libs 2>/dev/null
8668 mkdir .libs 2>/dev/null
8669 if test -d .libs; then
8672 # MS-DOS does not allow filenames that begin with a dot.
8675 rmdir .libs 2>/dev/null
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8678 $as_echo "$lt_cv_objdir" >&6; }
8679 objdir=$lt_cv_objdir
8685 cat >>confdefs.h <<_ACEOF
8686 #define LT_OBJDIR "$lt_cv_objdir/"
8707 # AIX sometimes has problems with the GCC collect2 program. For some
8708 # reason, if we set the COLLECT_NAMES environment variable, the problems
8709 # vanish in a puff of smoke.
8710 if test "X${COLLECT_NAMES+set}" != Xset; then
8712 export COLLECT_NAMES
8717 # Sed substitution that helps us do robust quoting. It backslashifies
8718 # metacharacters that are still active within double-quoted strings.
8719 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8721 # Same as above, but do not quote variable references.
8722 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8724 # Sed substitution to delay expansion of an escaped shell variable in a
8725 # double_quote_subst'ed string.
8726 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8728 # Sed substitution to delay expansion of an escaped single quote.
8729 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8731 # Sed substitution to avoid accidental globbing in evaled expressions
8732 no_glob_subst='s/\*/\\\*/g'
8736 can_build_shared=yes
8738 # All known linkers require a `.a' archive for static linking (except MSVC,
8739 # which needs '.lib').
8742 with_gnu_ld="$lt_cv_prog_gnu_ld"
8745 old_CFLAGS="$CFLAGS"
8747 # Set sane defaults for various variables
8748 test -z "$CC" && CC=cc
8749 test -z "$LTCC" && LTCC=$CC
8750 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8751 test -z "$LD" && LD=ld
8752 test -z "$ac_objext" && ac_objext=o
8754 for cc_temp in $compiler""; do
8756 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8757 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8762 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8765 # Only perform the check for file, if the check method requires it
8766 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8767 case $deplibs_check_method in
8769 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8771 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8772 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8773 $as_echo_n "(cached) " >&6
8777 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8780 lt_save_MAGIC_CMD="$MAGIC_CMD"
8781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8782 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8783 for ac_dir in $ac_dummy; do
8785 test -z "$ac_dir" && ac_dir=.
8786 if test -f $ac_dir/${ac_tool_prefix}file; then
8787 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8788 if test -n "$file_magic_test_file"; then
8789 case $deplibs_check_method in
8791 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8793 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8794 $EGREP "$file_magic_regex" > /dev/null; then
8799 *** Warning: the command libtool uses to detect shared libraries,
8800 *** $file_magic_cmd, produces output that libtool cannot recognize.
8801 *** The result is that libtool may fail to recognize shared libraries
8802 *** as such. This will affect the creation of libtool libraries that
8803 *** depend on shared libraries, but programs linked with such libtool
8804 *** libraries will work regardless of this problem. Nevertheless, you
8805 *** may want to report the problem to your system manager and/or to
8806 *** bug-libtool@gnu.org
8816 MAGIC_CMD="$lt_save_MAGIC_CMD"
8821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8822 if test -n "$MAGIC_CMD"; then
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8824 $as_echo "$MAGIC_CMD" >&6; }
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8834 if test -z "$lt_cv_path_MAGIC_CMD"; then
8835 if test -n "$ac_tool_prefix"; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8837 $as_echo_n "checking for file... " >&6; }
8838 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8839 $as_echo_n "(cached) " >&6
8843 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8846 lt_save_MAGIC_CMD="$MAGIC_CMD"
8847 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8848 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8849 for ac_dir in $ac_dummy; do
8851 test -z "$ac_dir" && ac_dir=.
8852 if test -f $ac_dir/file; then
8853 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8854 if test -n "$file_magic_test_file"; then
8855 case $deplibs_check_method in
8857 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8858 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8859 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8860 $EGREP "$file_magic_regex" > /dev/null; then
8865 *** Warning: the command libtool uses to detect shared libraries,
8866 *** $file_magic_cmd, produces output that libtool cannot recognize.
8867 *** The result is that libtool may fail to recognize shared libraries
8868 *** as such. This will affect the creation of libtool libraries that
8869 *** depend on shared libraries, but programs linked with such libtool
8870 *** libraries will work regardless of this problem. Nevertheless, you
8871 *** may want to report the problem to your system manager and/or to
8872 *** bug-libtool@gnu.org
8882 MAGIC_CMD="$lt_save_MAGIC_CMD"
8887 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8888 if test -n "$MAGIC_CMD"; then
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8890 $as_echo "$MAGIC_CMD" >&6; }
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893 $as_echo "no" >&6; }
8906 # Use C for the default configuration in the libtool script
8910 ac_cpp='$CPP $CPPFLAGS'
8911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8916 # Source file extension for C test sources.
8919 # Object file extension for compiled C test sources.
8923 # Code to be used in simple compile tests
8924 lt_simple_compile_test_code="int some_variable = 0;"
8926 # Code to be used in simple link tests
8927 lt_simple_link_test_code='int main(){return(0);}'
8935 # If no C compiler was specified, use CC.
8938 # If no C compiler flags were specified, use CFLAGS.
8939 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8941 # Allow CC to be a program name with arguments.
8944 # Save the default compiler, since it gets overwritten when the other
8945 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8946 compiler_DEFAULT=$CC
8948 # save warnings/boilerplate of simple test code
8949 ac_outfile=conftest.$ac_objext
8950 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8951 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8952 _lt_compiler_boilerplate=`cat conftest.err`
8955 ac_outfile=conftest.$ac_objext
8956 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8957 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8958 _lt_linker_boilerplate=`cat conftest.err`
8962 if test -n "$compiler"; then
8964 lt_prog_compiler_no_builtin_flag=
8966 if test "$GCC" = yes; then
8967 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8970 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8971 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8972 $as_echo_n "(cached) " >&6
8974 lt_cv_prog_compiler_rtti_exceptions=no
8975 ac_outfile=conftest.$ac_objext
8976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8977 lt_compiler_flag="-fno-rtti -fno-exceptions"
8978 # Insert the option either (1) after the last *FLAGS variable, or
8979 # (2) before a word containing "conftest.", or (3) at the end.
8980 # Note that $ac_compile itself does not contain backslashes and begins
8981 # with a dollar sign (not a hyphen), so the echo should work correctly.
8982 # The option is referenced via a variable to avoid confusing sed.
8983 lt_compile=`echo "$ac_compile" | $SED \
8984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8986 -e 's:$: $lt_compiler_flag:'`
8987 (eval echo "\"\$as_me:8987: $lt_compile\"" >&5)
8988 (eval "$lt_compile" 2>conftest.err)
8990 cat conftest.err >&5
8991 echo "$as_me:8991: \$? = $ac_status" >&5
8992 if (exit $ac_status) && test -s "$ac_outfile"; then
8993 # The compiler can only warn and ignore the option if not recognized
8994 # So say no if there are warnings other than the usual output.
8995 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8997 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8998 lt_cv_prog_compiler_rtti_exceptions=yes
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9005 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9007 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9008 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9020 lt_prog_compiler_wl=
9021 lt_prog_compiler_pic=
9022 lt_prog_compiler_static=
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9025 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9027 if test "$GCC" = yes; then
9028 lt_prog_compiler_wl='-Wl,'
9029 lt_prog_compiler_static='-static'
9033 # All AIX code is PIC.
9034 if test "$host_cpu" = ia64; then
9035 # AIX 5 now supports IA64 processor
9036 lt_prog_compiler_static='-Bstatic'
9043 # see comment about AmigaOS4 .so support
9044 lt_prog_compiler_pic='-fPIC'
9047 # FIXME: we need at least 68020 code to build shared libraries, but
9048 # adding the `-m68020' flag to GCC prevents building anything better,
9050 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9055 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9056 # PIC is the default for these OSes.
9059 mingw* | cygwin* | pw32* | os2* | cegcc*)
9060 # This hack is so that the source file can tell whether it is being
9061 # built for inclusion in a dll (and should export symbols for example).
9062 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9063 # (--disable-auto-import) libraries
9064 lt_prog_compiler_pic='-DDLL_EXPORT'
9067 darwin* | rhapsody*)
9068 # PIC is the default on this platform
9069 # Common symbols not allowed in MH_DYLIB files
9070 lt_prog_compiler_pic='-fno-common'
9074 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9075 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9076 # sets the default TLS model and affects inlining.
9082 lt_prog_compiler_pic='-fPIC'
9088 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9089 # Instead, we relocate shared libraries at runtime.
9093 # Just because we use GCC doesn't mean we suddenly get shared libraries
9094 # on systems that don't support them.
9095 lt_prog_compiler_can_build_shared=no
9100 # QNX uses GNU C++, but need to define -shared option too, otherwise
9102 lt_prog_compiler_pic='-fPIC -shared'
9106 if test -d /usr/nec; then
9107 lt_prog_compiler_pic=-Kconform_pic
9112 lt_prog_compiler_pic='-fPIC'
9116 # PORTME Check for flag to pass linker flags through the system compiler.
9119 lt_prog_compiler_wl='-Wl,'
9120 if test "$host_cpu" = ia64; then
9121 # AIX 5 now supports IA64 processor
9122 lt_prog_compiler_static='-Bstatic'
9124 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9128 mingw* | cygwin* | pw32* | os2* | cegcc*)
9129 # This hack is so that the source file can tell whether it is being
9130 # built for inclusion in a dll (and should export symbols for example).
9131 lt_prog_compiler_pic='-DDLL_EXPORT'
9134 hpux9* | hpux10* | hpux11*)
9135 lt_prog_compiler_wl='-Wl,'
9136 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9143 lt_prog_compiler_pic='+Z'
9146 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9147 lt_prog_compiler_static='${wl}-a ${wl}archive'
9150 irix5* | irix6* | nonstopux*)
9151 lt_prog_compiler_wl='-Wl,'
9152 # PIC (with -KPIC) is the default.
9153 lt_prog_compiler_static='-non_shared'
9156 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9157 case $cc_basename in
9158 # old Intel for x86_64 which still supported -KPIC.
9160 lt_prog_compiler_wl='-Wl,'
9161 lt_prog_compiler_pic='-KPIC'
9162 lt_prog_compiler_static='-static'
9164 # icc used to be incompatible with GCC.
9165 # ICC 10 doesn't accept -KPIC any more.
9167 lt_prog_compiler_wl='-Wl,'
9168 lt_prog_compiler_pic='-fPIC'
9169 lt_prog_compiler_static='-static'
9171 # Lahey Fortran 8.1.
9173 lt_prog_compiler_wl='-Wl,'
9174 lt_prog_compiler_pic='--shared'
9175 lt_prog_compiler_static='--static'
9177 pgcc* | pgf77* | pgf90* | pgf95*)
9178 # Portland Group compilers (*not* the Pentium gcc compiler,
9179 # which looks to be a dead project)
9180 lt_prog_compiler_wl='-Wl,'
9181 lt_prog_compiler_pic='-fpic'
9182 lt_prog_compiler_static='-Bstatic'
9185 lt_prog_compiler_wl='-Wl,'
9186 # All Alpha code is PIC.
9187 lt_prog_compiler_static='-non_shared'
9190 # IBM XL C 8.0/Fortran 10.1 on PPC
9191 lt_prog_compiler_wl='-Wl,'
9192 lt_prog_compiler_pic='-qpic'
9193 lt_prog_compiler_static='-qstaticlink'
9196 case `$CC -V 2>&1 | sed 5q` in
9199 lt_prog_compiler_pic='-KPIC'
9200 lt_prog_compiler_static='-Bstatic'
9201 lt_prog_compiler_wl='-Wl,'
9204 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9205 lt_prog_compiler_pic='-KPIC'
9206 lt_prog_compiler_static='-Bstatic'
9207 lt_prog_compiler_wl=''
9215 lt_prog_compiler_pic='-KPIC'
9216 lt_prog_compiler_static='-Bstatic'
9220 # QNX uses GNU C++, but need to define -shared option too, otherwise
9222 lt_prog_compiler_pic='-fPIC -shared'
9225 osf3* | osf4* | osf5*)
9226 lt_prog_compiler_wl='-Wl,'
9227 # All OSF/1 code is PIC.
9228 lt_prog_compiler_static='-non_shared'
9232 lt_prog_compiler_static='-non_shared'
9236 lt_prog_compiler_pic='-KPIC'
9237 lt_prog_compiler_static='-Bstatic'
9238 case $cc_basename in
9240 lt_prog_compiler_wl='-Qoption ld ';;
9242 lt_prog_compiler_wl='-Wl,';;
9247 lt_prog_compiler_wl='-Qoption ld '
9248 lt_prog_compiler_pic='-PIC'
9249 lt_prog_compiler_static='-Bstatic'
9252 sysv4 | sysv4.2uw2* | sysv4.3*)
9253 lt_prog_compiler_wl='-Wl,'
9254 lt_prog_compiler_pic='-KPIC'
9255 lt_prog_compiler_static='-Bstatic'
9259 if test -d /usr/nec ;then
9260 lt_prog_compiler_pic='-Kconform_pic'
9261 lt_prog_compiler_static='-Bstatic'
9265 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9266 lt_prog_compiler_wl='-Wl,'
9267 lt_prog_compiler_pic='-KPIC'
9268 lt_prog_compiler_static='-Bstatic'
9272 lt_prog_compiler_wl='-Wl,'
9273 lt_prog_compiler_can_build_shared=no
9277 lt_prog_compiler_pic='-pic'
9278 lt_prog_compiler_static='-Bstatic'
9282 lt_prog_compiler_can_build_shared=no
9288 # For platforms which do not support PIC, -DPIC is meaningless:
9290 lt_prog_compiler_pic=
9293 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9297 $as_echo "$lt_prog_compiler_pic" >&6; }
9305 # Check to make sure the PIC flag actually works.
9307 if test -n "$lt_prog_compiler_pic"; then
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9309 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9310 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9311 $as_echo_n "(cached) " >&6
9313 lt_cv_prog_compiler_pic_works=no
9314 ac_outfile=conftest.$ac_objext
9315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9316 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9317 # Insert the option either (1) after the last *FLAGS variable, or
9318 # (2) before a word containing "conftest.", or (3) at the end.
9319 # Note that $ac_compile itself does not contain backslashes and begins
9320 # with a dollar sign (not a hyphen), so the echo should work correctly.
9321 # The option is referenced via a variable to avoid confusing sed.
9322 lt_compile=`echo "$ac_compile" | $SED \
9323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9325 -e 's:$: $lt_compiler_flag:'`
9326 (eval echo "\"\$as_me:9326: $lt_compile\"" >&5)
9327 (eval "$lt_compile" 2>conftest.err)
9329 cat conftest.err >&5
9330 echo "$as_me:9330: \$? = $ac_status" >&5
9331 if (exit $ac_status) && test -s "$ac_outfile"; then
9332 # The compiler can only warn and ignore the option if not recognized
9333 # So say no if there are warnings other than the usual output.
9334 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9335 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9336 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9337 lt_cv_prog_compiler_pic_works=yes
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9344 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9346 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9347 case $lt_prog_compiler_pic in
9349 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9352 lt_prog_compiler_pic=
9353 lt_prog_compiler_can_build_shared=no
9364 # Check to make sure the static flag actually works.
9366 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9368 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9369 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9370 $as_echo_n "(cached) " >&6
9372 lt_cv_prog_compiler_static_works=no
9373 save_LDFLAGS="$LDFLAGS"
9374 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9375 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9376 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9377 # The linker can only warn and ignore the option if not recognized
9378 # So say no if there are warnings
9379 if test -s conftest.err; then
9380 # Append any errors to the config.log.
9381 cat conftest.err 1>&5
9382 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9384 if diff conftest.exp conftest.er2 >/dev/null; then
9385 lt_cv_prog_compiler_static_works=yes
9388 lt_cv_prog_compiler_static_works=yes
9392 LDFLAGS="$save_LDFLAGS"
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9396 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9398 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9401 lt_prog_compiler_static=
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9411 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9412 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9413 $as_echo_n "(cached) " >&6
9415 lt_cv_prog_compiler_c_o=no
9416 $RM -r conftest 2>/dev/null
9420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9422 lt_compiler_flag="-o out/conftest2.$ac_objext"
9423 # Insert the option either (1) after the last *FLAGS variable, or
9424 # (2) before a word containing "conftest.", or (3) at the end.
9425 # Note that $ac_compile itself does not contain backslashes and begins
9426 # with a dollar sign (not a hyphen), so the echo should work correctly.
9427 lt_compile=`echo "$ac_compile" | $SED \
9428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9430 -e 's:$: $lt_compiler_flag:'`
9431 (eval echo "\"\$as_me:9431: $lt_compile\"" >&5)
9432 (eval "$lt_compile" 2>out/conftest.err)
9434 cat out/conftest.err >&5
9435 echo "$as_me:9435: \$? = $ac_status" >&5
9436 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9438 # The compiler can only warn and ignore the option if not recognized
9439 # So say no if there are warnings
9440 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9441 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9442 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9443 lt_cv_prog_compiler_c_o=yes
9448 # SGI C++ compiler will create directory out/ii_files/ for
9449 # template instantiation
9450 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9451 $RM out/* && rmdir out
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9458 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9466 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9467 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9468 $as_echo_n "(cached) " >&6
9470 lt_cv_prog_compiler_c_o=no
9471 $RM -r conftest 2>/dev/null
9475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9477 lt_compiler_flag="-o out/conftest2.$ac_objext"
9478 # Insert the option either (1) after the last *FLAGS variable, or
9479 # (2) before a word containing "conftest.", or (3) at the end.
9480 # Note that $ac_compile itself does not contain backslashes and begins
9481 # with a dollar sign (not a hyphen), so the echo should work correctly.
9482 lt_compile=`echo "$ac_compile" | $SED \
9483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9485 -e 's:$: $lt_compiler_flag:'`
9486 (eval echo "\"\$as_me:9486: $lt_compile\"" >&5)
9487 (eval "$lt_compile" 2>out/conftest.err)
9489 cat out/conftest.err >&5
9490 echo "$as_me:9490: \$? = $ac_status" >&5
9491 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9493 # The compiler can only warn and ignore the option if not recognized
9494 # So say no if there are warnings
9495 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9496 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9497 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9498 lt_cv_prog_compiler_c_o=yes
9503 # SGI C++ compiler will create directory out/ii_files/ for
9504 # template instantiation
9505 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9506 $RM out/* && rmdir out
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9513 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9518 hard_links="nottested"
9519 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9520 # do not overwrite the value of need_locks provided by the user
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9522 $as_echo_n "checking if we can lock with hard links... " >&6; }
9525 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9527 ln conftest.a conftest.b 2>&5 || hard_links=no
9528 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9530 $as_echo "$hard_links" >&6; }
9531 if test "$hard_links" = no; then
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9533 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9546 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9549 allow_undefined_flag=
9550 always_export_symbols=no
9552 archive_expsym_cmds=
9553 compiler_needs_object=no
9554 enable_shared_with_static_runtimes=no
9555 export_dynamic_flag_spec=
9556 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9557 hardcode_automatic=no
9559 hardcode_direct_absolute=no
9560 hardcode_libdir_flag_spec=
9561 hardcode_libdir_flag_spec_ld=
9562 hardcode_libdir_separator=
9564 hardcode_shlibpath_var=unsupported
9566 link_all_deplibs=unknown
9569 old_archive_from_new_cmds=
9570 old_archive_from_expsyms_cmds=
9571 thread_safe_flag_spec=
9572 whole_archive_flag_spec=
9573 # include_expsyms should be a list of space-separated symbols to be *always*
9574 # included in the symbol list
9576 # exclude_expsyms can be an extended regexp of symbols to exclude
9577 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9578 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9579 # as well as any symbol that contains `d'.
9580 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9581 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9582 # platforms (ab)use it in PIC code, but their linkers get confused if
9583 # the symbol is explicitly referenced. Since portable code cannot
9584 # rely on this symbol name, it's probably fine to never include it in
9585 # preloaded symbol tables.
9586 # Exclude shared library initialization/finalization symbols.
9587 extract_expsyms_cmds=
9590 cygwin* | mingw* | pw32* | cegcc*)
9591 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9592 # When not using gcc, we currently assume that we are using
9593 # Microsoft Visual C++.
9594 if test "$GCC" != yes; then
9599 # we just hope/assume this is gcc and not c89 (= MSVC++)
9605 linux* | k*bsd*-gnu)
9611 if test "$with_gnu_ld" = yes; then
9612 # If archive_cmds runs LD, not CC, wlarc should be empty
9615 # Set some defaults for GNU ld with shared library support. These
9616 # are reset later if shared libraries are not supported. Putting them
9617 # here allows them to be overridden if necessary.
9618 runpath_var=LD_RUN_PATH
9619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9620 export_dynamic_flag_spec='${wl}--export-dynamic'
9621 # ancient GNU ld didn't support --whole-archive et. al.
9622 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9623 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9625 whole_archive_flag_spec=
9627 supports_anon_versioning=no
9628 case `$LD -v 2>&1` in
9629 *GNU\ gold*) supports_anon_versioning=yes ;;
9630 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9631 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9632 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9633 *\ 2.11.*) ;; # other 2.11 versions
9634 *) supports_anon_versioning=yes ;;
9637 # See if GNU ld supports shared libraries.
9640 # On AIX/PPC, the GNU linker is very broken
9641 if test "$host_cpu" != ia64; then
9645 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9646 *** to be unable to reliably create shared libraries on AIX.
9647 *** Therefore, libtool is disabling shared libraries support. If you
9648 *** really care for shared libraries, you may want to modify your PATH
9649 *** so that a non-GNU linker is found, and then restart.
9658 # see comment about AmigaOS4 .so support
9659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9660 archive_expsym_cmds=''
9663 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)'
9664 hardcode_libdir_flag_spec='-L$libdir'
9665 hardcode_minus_L=yes
9671 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9672 allow_undefined_flag=unsupported
9673 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9674 # support --undefined. This deserves some investigation. FIXME
9675 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9681 cygwin* | mingw* | pw32* | cegcc*)
9682 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9683 # as there is no search path for DLLs.
9684 hardcode_libdir_flag_spec='-L$libdir'
9685 allow_undefined_flag=unsupported
9686 always_export_symbols=no
9687 enable_shared_with_static_runtimes=yes
9688 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9690 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9692 # If the export-symbols file already is a .def file (1st line
9693 # is EXPORTS), use it as is; otherwise, prepend...
9694 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9695 cp $export_symbols $output_objdir/$soname.def;
9697 echo EXPORTS > $output_objdir/$soname.def;
9698 cat $export_symbols >> $output_objdir/$soname.def;
9700 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9708 hardcode_shlibpath_var=no
9709 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9710 export_dynamic_flag_spec='${wl}-E'
9711 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9712 # Instead, shared libraries are loaded at an image base (0x10000000 by
9713 # default) and relocated if they conflict, which is a slow very memory
9714 # consuming and fragmenting process. To avoid this, we pick a random,
9715 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9716 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9717 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9718 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'
9721 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9723 if test "$host_os" = linux-dietlibc; then
9724 case $cc_basename in
9725 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9728 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9729 && test "$tmp_diet" = no
9732 tmp_sharedflag='-shared'
9733 case $cc_basename,$host_cpu in
9734 pgcc*) # Portland Group C compiler
9735 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9736 tmp_addflag=' $pic_flag'
9738 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9739 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9740 tmp_addflag=' $pic_flag -Mnomain' ;;
9741 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9742 tmp_addflag=' -i_dynamic' ;;
9743 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9744 tmp_addflag=' -i_dynamic -nofor_main' ;;
9745 ifc* | ifort*) # Intel Fortran compiler
9746 tmp_addflag=' -nofor_main' ;;
9747 lf95*) # Lahey Fortran 8.1
9748 whole_archive_flag_spec=
9749 tmp_sharedflag='--shared' ;;
9750 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9751 tmp_sharedflag='-qmkshrobj'
9754 case `$CC -V 2>&1 | sed 5q` in
9755 *Sun\ C*) # Sun C 5.9
9756 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9757 compiler_needs_object=yes
9758 tmp_sharedflag='-G' ;;
9759 *Sun\ F*) # Sun Fortran 8.3
9760 tmp_sharedflag='-G' ;;
9762 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9764 if test "x$supports_anon_versioning" = xyes; then
9765 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9766 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9767 echo "local: *; };" >> $output_objdir/$libname.ver~
9768 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9771 case $cc_basename in
9773 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9774 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9775 hardcode_libdir_flag_spec=
9776 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9777 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9778 if test "x$supports_anon_versioning" = xyes; then
9779 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9780 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9781 echo "local: *; };" >> $output_objdir/$libname.ver~
9782 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9791 netbsd* | netbsdelf*-gnu)
9792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9793 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9797 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9802 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9806 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9807 *** create shared libraries on Solaris systems. Therefore, libtool
9808 *** is disabling shared libraries support. We urge you to upgrade GNU
9809 *** binutils to release 2.9.1 or newer. Another option is to modify
9810 *** your PATH or compiler configuration so that the native linker is
9811 *** used, and then restart.
9814 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9816 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9822 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9823 case `$LD -v 2>&1` in
9824 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9828 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9829 *** reliably create shared libraries on SCO systems. Therefore, libtool
9830 *** is disabling shared libraries support. We urge you to upgrade GNU
9831 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9832 *** your PATH or compiler configuration so that the native linker is
9833 *** used, and then restart.
9838 # For security reasons, it is highly recommended that you always
9839 # use absolute paths for naming shared libraries, and exclude the
9840 # DT_RUNPATH tag from executables and libraries. But doing so
9841 # requires that you compile everything twice, which is a pain.
9842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9854 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9857 hardcode_shlibpath_var=no
9861 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9863 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9870 if test "$ld_shlibs" = no; then
9872 hardcode_libdir_flag_spec=
9873 export_dynamic_flag_spec=
9874 whole_archive_flag_spec=
9877 # PORTME fill in a description of your system's linker (not GNU ld)
9880 allow_undefined_flag=unsupported
9881 always_export_symbols=yes
9882 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'
9883 # Note: this linker hardcodes the directories in LIBPATH if there
9884 # are no directories specified by -L.
9885 hardcode_minus_L=yes
9886 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9887 # Neither direct hardcoding nor static linking is supported with a
9889 hardcode_direct=unsupported
9894 if test "$host_cpu" = ia64; then
9895 # On IA64, the linker does run time linking by default, so we don't
9896 # have to do anything special.
9897 aix_use_runtimelinking=no
9898 exp_sym_flag='-Bexport'
9901 # If we're using GNU nm, then we don't want the "-C" option.
9902 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9903 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9904 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9906 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'
9908 aix_use_runtimelinking=no
9910 # Test if we are trying to use run time linking or normal
9911 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9912 # need to do runtime linking.
9913 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9914 for ld_flag in $LDFLAGS; do
9915 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9916 aix_use_runtimelinking=yes
9923 exp_sym_flag='-bexport'
9924 no_entry_flag='-bnoentry'
9927 # When large executables or shared objects are built, AIX ld can
9928 # have problems creating the table of contents. If linking a library
9929 # or program results in "error TOC overflow" add -mminimal-toc to
9930 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9931 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9935 hardcode_direct_absolute=yes
9936 hardcode_libdir_separator=':'
9937 link_all_deplibs=yes
9938 file_list_spec='${wl}-f,'
9940 if test "$GCC" = yes; then
9941 case $host_os in aix4.[012]|aix4.[012].*)
9942 # We only want to do this on AIX 4.2 and lower, the check
9943 # below for broken collect2 doesn't work under 4.3+
9944 collect2name=`${CC} -print-prog-name=collect2`
9945 if test -f "$collect2name" &&
9946 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9948 # We have reworked collect2
9951 # We have old collect2
9952 hardcode_direct=unsupported
9953 # It fails to find uninstalled libraries when the uninstalled
9954 # path is not listed in the libpath. Setting hardcode_minus_L
9955 # to unsupported forces relinking
9956 hardcode_minus_L=yes
9957 hardcode_libdir_flag_spec='-L$libdir'
9958 hardcode_libdir_separator=
9962 shared_flag='-shared'
9963 if test "$aix_use_runtimelinking" = yes; then
9964 shared_flag="$shared_flag "'${wl}-G'
9969 if test "$host_cpu" = ia64; then
9970 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9971 # chokes on -Wl,-G. The following line is correct:
9974 if test "$aix_use_runtimelinking" = yes; then
9975 shared_flag='${wl}-G'
9977 shared_flag='${wl}-bM:SRE'
9982 export_dynamic_flag_spec='${wl}-bexpall'
9983 # It seems that -bexpall does not export symbols beginning with
9984 # underscore (_), so it is better to generate a list of symbols to export.
9985 always_export_symbols=yes
9986 if test "$aix_use_runtimelinking" = yes; then
9987 # Warning - without using the other runtime loading flags (-brtl),
9988 # -berok will link without error, but may produce a broken library.
9989 allow_undefined_flag='-berok'
9990 # Determine the default libpath from the value encoded in an
9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h. */
10003 if ac_fn_c_try_link "$LINENO"; then :
10005 lt_aix_libpath_sed='
10006 /Import File Strings/,/^$/ {
10012 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10013 # Check for a 64-bit object if we didn't find anything.
10014 if test -z "$aix_libpath"; then
10015 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10018 rm -f core conftest.err conftest.$ac_objext \
10019 conftest$ac_exeext conftest.$ac_ext
10020 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10022 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10023 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10025 if test "$host_cpu" = ia64; then
10026 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10027 allow_undefined_flag="-z nodefs"
10028 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"
10030 # Determine the default libpath from the value encoded in an
10031 # empty executable.
10032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033 /* end confdefs.h. */
10043 if ac_fn_c_try_link "$LINENO"; then :
10045 lt_aix_libpath_sed='
10046 /Import File Strings/,/^$/ {
10052 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10053 # Check for a 64-bit object if we didn't find anything.
10054 if test -z "$aix_libpath"; then
10055 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10058 rm -f core conftest.err conftest.$ac_objext \
10059 conftest$ac_exeext conftest.$ac_ext
10060 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10062 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10063 # Warning - without using the other run time loading flags,
10064 # -berok will link without error, but may produce a broken library.
10065 no_undefined_flag=' ${wl}-bernotok'
10066 allow_undefined_flag=' ${wl}-berok'
10067 # Exported symbols can be pulled into shared objects from archives
10068 whole_archive_flag_spec='$convenience'
10069 archive_cmds_need_lc=yes
10070 # This is similar to how AIX traditionally builds its shared libraries.
10071 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'
10079 # see comment about AmigaOS4 .so support
10080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10081 archive_expsym_cmds=''
10084 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)'
10085 hardcode_libdir_flag_spec='-L$libdir'
10086 hardcode_minus_L=yes
10092 export_dynamic_flag_spec=-rdynamic
10095 cygwin* | mingw* | pw32* | cegcc*)
10096 # When not using gcc, we currently assume that we are using
10097 # Microsoft Visual C++.
10098 # hardcode_libdir_flag_spec is actually meaningless, as there is
10099 # no search path for DLLs.
10100 hardcode_libdir_flag_spec=' '
10101 allow_undefined_flag=unsupported
10102 # Tell ltmain to make .lib files, not .a files.
10104 # Tell ltmain to make .dll files, not .so files.
10106 # FIXME: Setting linknames here is a bad hack.
10107 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10108 # The linker will automatically build a .lib file if we build a DLL.
10109 old_archive_from_new_cmds='true'
10110 # FIXME: Should let the user specify the lib program.
10111 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10112 fix_srcfile_path='`cygpath -w "$srcfile"`'
10113 enable_shared_with_static_runtimes=yes
10116 darwin* | rhapsody*)
10119 archive_cmds_need_lc=no
10121 hardcode_automatic=yes
10122 hardcode_shlibpath_var=unsupported
10123 whole_archive_flag_spec=''
10124 link_all_deplibs=yes
10125 allow_undefined_flag="$_lt_dar_allow_undefined"
10126 case $cc_basename in
10127 ifort*) _lt_dar_can_shared=yes ;;
10128 *) _lt_dar_can_shared=$GCC ;;
10130 if test "$_lt_dar_can_shared" = "yes"; then
10131 output_verbose_link_cmd=echo
10132 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10133 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10134 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}"
10135 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}"
10144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145 hardcode_libdir_flag_spec='-L$libdir'
10146 hardcode_shlibpath_var=no
10153 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10154 # support. Future versions do this automatically, but an explicit c++rt0.o
10155 # does not break anything, and helps significantly (at the cost of a little
10158 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10159 hardcode_libdir_flag_spec='-R$libdir'
10160 hardcode_direct=yes
10161 hardcode_shlibpath_var=no
10164 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10166 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10167 hardcode_direct=yes
10168 hardcode_minus_L=yes
10169 hardcode_shlibpath_var=no
10172 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10173 freebsd* | dragonfly*)
10174 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10175 hardcode_libdir_flag_spec='-R$libdir'
10176 hardcode_direct=yes
10177 hardcode_shlibpath_var=no
10181 if test "$GCC" = yes; then
10182 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10184 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'
10186 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10187 hardcode_libdir_separator=:
10188 hardcode_direct=yes
10190 # hardcode_minus_L: Not really in the search PATH,
10191 # but as the default location of the library.
10192 hardcode_minus_L=yes
10193 export_dynamic_flag_spec='${wl}-E'
10197 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10198 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10200 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10202 if test "$with_gnu_ld" = no; then
10203 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10204 hardcode_libdir_flag_spec_ld='+b $libdir'
10205 hardcode_libdir_separator=:
10206 hardcode_direct=yes
10207 hardcode_direct_absolute=yes
10208 export_dynamic_flag_spec='${wl}-E'
10209 # hardcode_minus_L: Not really in the search PATH,
10210 # but as the default location of the library.
10211 hardcode_minus_L=yes
10216 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10219 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10222 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10225 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10231 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10234 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10237 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10241 if test "$with_gnu_ld" = no; then
10242 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10243 hardcode_libdir_separator=:
10248 hardcode_shlibpath_var=no
10251 hardcode_direct=yes
10252 hardcode_direct_absolute=yes
10253 export_dynamic_flag_spec='${wl}-E'
10255 # hardcode_minus_L: Not really in the search PATH,
10256 # but as the default location of the library.
10257 hardcode_minus_L=yes
10263 irix5* | irix6* | nonstopux*)
10264 if test "$GCC" = yes; then
10265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10266 # Try to use the -exported_symbol ld option, if it does not
10267 # work, assume that -exports_file does not work either and
10268 # implicitly export all symbols.
10269 save_LDFLAGS="$LDFLAGS"
10270 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272 /* end confdefs.h. */
10275 if ac_fn_c_try_link "$LINENO"; then :
10276 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10279 rm -f core conftest.err conftest.$ac_objext \
10280 conftest$ac_exeext conftest.$ac_ext
10281 LDFLAGS="$save_LDFLAGS"
10283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10284 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10286 archive_cmds_need_lc='no'
10287 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10288 hardcode_libdir_separator=:
10290 link_all_deplibs=yes
10293 netbsd* | netbsdelf*-gnu)
10294 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10295 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10297 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10299 hardcode_libdir_flag_spec='-R$libdir'
10300 hardcode_direct=yes
10301 hardcode_shlibpath_var=no
10305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10306 hardcode_direct=yes
10307 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10308 hardcode_libdir_separator=:
10309 hardcode_shlibpath_var=no
10316 if test -f /usr/libexec/ld.so; then
10317 hardcode_direct=yes
10318 hardcode_shlibpath_var=no
10319 hardcode_direct_absolute=yes
10320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10321 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10322 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10323 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10324 export_dynamic_flag_spec='${wl}-E'
10327 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10328 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10329 hardcode_libdir_flag_spec='-R$libdir'
10332 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10333 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10343 hardcode_libdir_flag_spec='-L$libdir'
10344 hardcode_minus_L=yes
10345 allow_undefined_flag=unsupported
10346 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'
10347 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10351 if test "$GCC" = yes; then
10352 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10353 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10355 allow_undefined_flag=' -expect_unresolved \*'
10356 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10358 archive_cmds_need_lc='no'
10359 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10360 hardcode_libdir_separator=:
10363 osf4* | osf5*) # as osf3* with the addition of -msym flag
10364 if test "$GCC" = yes; then
10365 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10366 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10367 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10369 allow_undefined_flag=' -expect_unresolved \*'
10370 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10371 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~
10372 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10374 # Both c and cxx compiler support -rpath directly
10375 hardcode_libdir_flag_spec='-rpath $libdir'
10377 archive_cmds_need_lc='no'
10378 hardcode_libdir_separator=:
10382 no_undefined_flag=' -z defs'
10383 if test "$GCC" = yes; then
10385 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10386 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10387 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10389 case `$CC -V 2>&1` in
10392 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10393 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10394 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10398 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10399 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10400 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10404 hardcode_libdir_flag_spec='-R$libdir'
10405 hardcode_shlibpath_var=no
10407 solaris2.[0-5] | solaris2.[0-5].*) ;;
10409 # The compiler driver will combine and reorder linker options,
10410 # but understands `-z linker_flag'. GCC discards it without `$wl',
10411 # but is careful enough not to reorder.
10412 # Supported since Solaris 2.6 (maybe 2.5.1?)
10413 if test "$GCC" = yes; then
10414 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10416 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10420 link_all_deplibs=yes
10424 if test "x$host_vendor" = xsequent; then
10425 # Use $CC to link under sequent, because it throws in some extra .o
10426 # files that make .init and .fini sections work.
10427 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10429 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10431 hardcode_libdir_flag_spec='-L$libdir'
10432 hardcode_direct=yes
10433 hardcode_minus_L=yes
10434 hardcode_shlibpath_var=no
10438 case $host_vendor in
10440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10441 hardcode_direct=yes # is this really true???
10444 ## LD is ld it makes a PLAMLIB
10445 ## CC just makes a GrossModule.
10446 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10447 reload_cmds='$CC -r -o $output$reload_objs'
10451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10452 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10455 runpath_var='LD_RUN_PATH'
10456 hardcode_shlibpath_var=no
10460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10461 hardcode_shlibpath_var=no
10462 export_dynamic_flag_spec='-Bexport'
10466 if test -d /usr/nec; then
10467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10468 hardcode_shlibpath_var=no
10469 runpath_var=LD_RUN_PATH
10470 hardcode_runpath_var=yes
10475 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10476 no_undefined_flag='${wl}-z,text'
10477 archive_cmds_need_lc=no
10478 hardcode_shlibpath_var=no
10479 runpath_var='LD_RUN_PATH'
10481 if test "$GCC" = yes; then
10482 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10483 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10485 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10486 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10490 sysv5* | sco3.2v5* | sco5v6*)
10491 # Note: We can NOT use -z defs as we might desire, because we do not
10492 # link with -lc, and that would cause any symbols used from libc to
10493 # always be unresolved, which means just about no library would
10494 # ever link correctly. If we're not using GNU ld we use -z text
10495 # though, which does catch some bad symbols but isn't as heavy-handed
10497 no_undefined_flag='${wl}-z,text'
10498 allow_undefined_flag='${wl}-z,nodefs'
10499 archive_cmds_need_lc=no
10500 hardcode_shlibpath_var=no
10501 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10502 hardcode_libdir_separator=':'
10503 link_all_deplibs=yes
10504 export_dynamic_flag_spec='${wl}-Bexport'
10505 runpath_var='LD_RUN_PATH'
10507 if test "$GCC" = yes; then
10508 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10509 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10511 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10512 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10518 hardcode_libdir_flag_spec='-L$libdir'
10519 hardcode_shlibpath_var=no
10527 if test x$host_vendor = xsni; then
10529 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10530 export_dynamic_flag_spec='${wl}-Blargedynsym'
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10537 $as_echo "$ld_shlibs" >&6; }
10538 test "$ld_shlibs" = no && can_build_shared=no
10540 with_gnu_ld=$with_gnu_ld
10557 # Do we need to explicitly link libc?
10559 case "x$archive_cmds_need_lc" in
10561 # Assume -lc should be added
10562 archive_cmds_need_lc=yes
10564 if test "$enable_shared" = yes && test "$GCC" = yes; then
10565 case $archive_cmds in
10567 # FIXME: we may have to deal with multi-command sequences.
10570 # Test whether the compiler implicitly links with -lc since on some
10571 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10572 # to ld, don't add -lc before -lgcc.
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10574 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10579 (eval $ac_compile) 2>&5
10581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10582 test $ac_status = 0; } 2>conftest.err; then
10585 libobjs=conftest.$ac_objext
10587 wl=$lt_prog_compiler_wl
10588 pic_flag=$lt_prog_compiler_pic
10594 lt_save_allow_undefined_flag=$allow_undefined_flag
10595 allow_undefined_flag=
10596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10597 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10600 test $ac_status = 0; }
10602 archive_cmds_need_lc=no
10604 archive_cmds_need_lc=yes
10606 allow_undefined_flag=$lt_save_allow_undefined_flag
10608 cat conftest.err 1>&5
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10612 $as_echo "$archive_cmds_need_lc" >&6; }
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10776 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10778 if test "$GCC" = yes; then
10780 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10781 *) lt_awk_arg="/^libraries:/" ;;
10783 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10784 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10785 # if the path contains ";" then we assume it to be the separator
10786 # otherwise default to the standard path separator (i.e. ":") - it is
10787 # assumed that no part of a normal pathname contains ";" but that should
10788 # okay in the real world where ";" in dirpaths is itself problematic.
10789 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10791 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10793 # Ok, now we have the path, separated by spaces, we can step through it
10794 # and add multilib dir if necessary.
10795 lt_tmp_lt_search_path_spec=
10796 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10797 for lt_sys_path in $lt_search_path_spec; do
10798 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10799 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10801 test -d "$lt_sys_path" && \
10802 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10805 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10806 BEGIN {RS=" "; FS="/|\n";} {
10809 for (lt_i = NF; lt_i > 0; lt_i--) {
10810 if ($lt_i != "" && $lt_i != ".") {
10811 if ($lt_i == "..") {
10814 if (lt_count == 0) {
10815 lt_foo="/" $lt_i lt_foo;
10822 if (lt_foo != "") { lt_freq[lt_foo]++; }
10823 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10825 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10827 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10829 library_names_spec=
10830 libname_spec='lib$name'
10834 postuninstall_cmds=
10838 shlibpath_overrides_runpath=unknown
10840 dynamic_linker="$host_os ld.so"
10841 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10842 need_lib_prefix=unknown
10843 hardcode_into_libs=no
10845 # when you set need_version to no, make sure it does not cause -set_version
10846 # flags to be left without arguments
10847 need_version=unknown
10852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10853 shlibpath_var=LIBPATH
10855 # AIX 3 has no versioning support, so we append a major version to the name.
10856 soname_spec='${libname}${release}${shared_ext}$major'
10863 hardcode_into_libs=yes
10864 if test "$host_cpu" = ia64; then
10865 # AIX 5 supports IA64
10866 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10867 shlibpath_var=LD_LIBRARY_PATH
10869 # With GCC up to 2.95.x, collect2 would create an import file
10870 # for dependence libraries. The import file would start with
10871 # the line `#! .'. This would cause the generated library to
10872 # depend on `.', always an invalid library. This was fixed in
10873 # development snapshots of GCC prior to 3.0.
10875 aix4 | aix4.[01] | aix4.[01].*)
10876 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10878 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10881 can_build_shared=no
10885 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10886 # soname into executable. Probably we can add versioning support to
10887 # collect2, so additional links can be useful in future.
10888 if test "$aix_use_runtimelinking" = yes; then
10889 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10890 # instead of lib<name>.a to let people know that these are not
10891 # typical AIX shared libraries.
10892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10894 # We preserve .a as extension for shared libraries through AIX4.2
10895 # and later when we are not doing run time linking.
10896 library_names_spec='${libname}${release}.a $libname.a'
10897 soname_spec='${libname}${release}${shared_ext}$major'
10899 shlibpath_var=LIBPATH
10906 # Since July 2007 AmigaOS4 officially supports .so libraries.
10907 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10911 library_names_spec='$libname.ixlibrary $libname.a'
10912 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10913 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10919 library_names_spec='${libname}${shared_ext}'
10920 dynamic_linker="$host_os ld.so"
10921 shlibpath_var=LIBRARY_PATH
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10928 soname_spec='${libname}${release}${shared_ext}$major'
10929 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10930 shlibpath_var=LD_LIBRARY_PATH
10931 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10932 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10933 # the default ld.so.conf also contains /usr/contrib/lib and
10934 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10935 # libtool to hard-code these into programs
10938 cygwin* | mingw* | pw32* | cegcc*)
10939 version_type=windows
10944 case $GCC,$host_os in
10945 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10946 library_names_spec='$libname.dll.a'
10947 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10948 postinstall_cmds='base_file=`basename \${file}`~
10949 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10950 dldir=$destdir/`dirname \$dlpath`~
10951 test -d \$dldir || mkdir -p \$dldir~
10952 $install_prog $dir/$dlname \$dldir/$dlname~
10953 chmod a+x \$dldir/$dlname~
10954 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10955 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10957 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10958 dlpath=$dir/\$dldll~
10960 shlibpath_overrides_runpath=yes
10964 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10965 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10966 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10969 # MinGW DLLs use traditional 'lib' prefix
10970 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10971 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10972 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10973 # It is most probably a Windows format PATH printed by
10974 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10975 # path with ; separators, and with drive letters. We can handle the
10976 # drive letters (cygwin fileutils understands them), so leave them,
10977 # especially as we might pass files found there to a mingw objdump,
10978 # which wouldn't understand a cygwinified path. Ahh.
10979 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10981 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10985 # pw32 DLLs use 'pw' prefix rather than 'lib'
10986 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10992 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10995 dynamic_linker='Win32 ld.exe'
10996 # FIXME: first we should search . and the directory the executable is in
11000 darwin* | rhapsody*)
11001 dynamic_linker="$host_os dyld"
11002 version_type=darwin
11005 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11006 soname_spec='${libname}${release}${major}$shared_ext'
11007 shlibpath_overrides_runpath=yes
11008 shlibpath_var=DYLD_LIBRARY_PATH
11009 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11011 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11012 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11020 soname_spec='${libname}${release}${shared_ext}$major'
11021 shlibpath_var=LD_LIBRARY_PATH
11028 freebsd* | dragonfly*)
11029 # DragonFly does not have aout. When/if they implement a new
11030 # versioning mechanism, adjust this.
11031 if test -x /usr/bin/objformat; then
11032 objformat=`/usr/bin/objformat`
11035 freebsd[123]*) objformat=aout ;;
11036 *) objformat=elf ;;
11039 version_type=freebsd-$objformat
11040 case $version_type in
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11051 shlibpath_var=LD_LIBRARY_PATH
11054 shlibpath_overrides_runpath=yes
11056 freebsd3.[01]* | freebsdelf3.[01]*)
11057 shlibpath_overrides_runpath=yes
11058 hardcode_into_libs=yes
11060 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11061 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11062 shlibpath_overrides_runpath=no
11063 hardcode_into_libs=yes
11065 *) # from 4.6 on, and DragonFly
11066 shlibpath_overrides_runpath=yes
11067 hardcode_into_libs=yes
11076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11077 soname_spec='${libname}${release}${shared_ext}$major'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 hardcode_into_libs=yes
11082 hpux9* | hpux10* | hpux11*)
11083 # Give a soname corresponding to the major version so that dld.sl refuses to
11084 # link against other versions.
11091 hardcode_into_libs=yes
11092 dynamic_linker="$host_os dld.so"
11093 shlibpath_var=LD_LIBRARY_PATH
11094 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096 soname_spec='${libname}${release}${shared_ext}$major'
11097 if test "X$HPUX_IA64_MODE" = X32; then
11098 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11100 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11106 hardcode_into_libs=yes
11107 dynamic_linker="$host_os dld.sl"
11108 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11109 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111 soname_spec='${libname}${release}${shared_ext}$major'
11112 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11113 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11117 dynamic_linker="$host_os dld.sl"
11118 shlibpath_var=SHLIB_PATH
11119 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11121 soname_spec='${libname}${release}${shared_ext}$major'
11124 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11125 postinstall_cmds='chmod 555 $lib'
11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11133 soname_spec='${libname}${release}${shared_ext}$major'
11134 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11135 shlibpath_var=LD_LIBRARY_PATH
11136 shlibpath_overrides_runpath=no
11137 hardcode_into_libs=yes
11140 irix5* | irix6* | nonstopux*)
11142 nonstopux*) version_type=nonstopux ;;
11144 if test "$lt_cv_prog_gnu_ld" = yes; then
11152 soname_spec='${libname}${release}${shared_ext}$major'
11153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11155 irix5* | nonstopux*)
11156 libsuff= shlibsuff=
11159 case $LD in # libtool.m4 will add one of these switches to LD
11160 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11161 libsuff= shlibsuff= libmagic=32-bit;;
11162 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11163 libsuff=32 shlibsuff=N32 libmagic=N32;;
11164 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11165 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11166 *) libsuff= shlibsuff= libmagic=never-match;;
11170 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11171 shlibpath_overrides_runpath=no
11172 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11173 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11174 hardcode_into_libs=yes
11177 # No shared lib support for Linux oldld, aout, or coff.
11178 linux*oldld* | linux*aout* | linux*coff*)
11182 # This must be Linux ELF.
11183 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188 soname_spec='${libname}${release}${shared_ext}$major'
11189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11190 shlibpath_var=LD_LIBRARY_PATH
11191 shlibpath_overrides_runpath=no
11192 # Some binutils ld are patched to set DT_RUNPATH
11193 save_LDFLAGS=$LDFLAGS
11194 save_libdir=$libdir
11195 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11196 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h. */
11208 if ac_fn_c_try_link "$LINENO"; then :
11209 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11210 shlibpath_overrides_runpath=yes
11213 rm -f core conftest.err conftest.$ac_objext \
11214 conftest$ac_exeext conftest.$ac_ext
11215 LDFLAGS=$save_LDFLAGS
11216 libdir=$save_libdir
11218 # This implies no fast_install, which is unacceptable.
11219 # Some rework will be needed to allow for fast_install
11220 # before this can be enabled.
11221 hardcode_into_libs=yes
11223 # Append ld.so.conf contents to the search path
11224 if test -f /etc/ld.so.conf; then
11225 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;/^$/d' | tr '\n' ' '`
11226 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11229 # We used to test for /lib/ld.so.1 and disable shared libraries on
11230 # powerpc, because MkLinux only supported shared libraries with the
11231 # GNU dynamic linker. Since this was broken with cross compilers,
11232 # most powerpc-linux boxes support dynamic linking these days and
11233 # people can always --disable-shared, the test was removed, and we
11234 # assume the GNU/Linux dynamic linker is in use.
11235 dynamic_linker='GNU/Linux ld.so'
11242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11243 soname_spec='${libname}${release}${shared_ext}$major'
11244 shlibpath_var=LD_LIBRARY_PATH
11245 shlibpath_overrides_runpath=no
11246 hardcode_into_libs=yes
11247 dynamic_linker='NetBSD ld.elf_so'
11254 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11257 dynamic_linker='NetBSD (a.out) ld.so'
11259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11260 soname_spec='${libname}${release}${shared_ext}$major'
11261 dynamic_linker='NetBSD ld.elf_so'
11263 shlibpath_var=LD_LIBRARY_PATH
11264 shlibpath_overrides_runpath=yes
11265 hardcode_into_libs=yes
11270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11271 shlibpath_var=LD_LIBRARY_PATH
11272 shlibpath_overrides_runpath=yes
11279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11280 soname_spec='${libname}${release}${shared_ext}$major'
11281 shlibpath_var=LD_LIBRARY_PATH
11282 shlibpath_overrides_runpath=no
11283 hardcode_into_libs=yes
11284 dynamic_linker='ldqnx.so'
11289 sys_lib_dlsearch_path_spec="/usr/lib"
11291 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11293 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11294 *) need_version=no ;;
11296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11298 shlibpath_var=LD_LIBRARY_PATH
11299 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11301 openbsd2.[89] | openbsd2.[89].*)
11302 shlibpath_overrides_runpath=no
11305 shlibpath_overrides_runpath=yes
11309 shlibpath_overrides_runpath=yes
11314 libname_spec='$name'
11317 library_names_spec='$libname${shared_ext} $libname.a'
11318 dynamic_linker='OS/2 ld.exe'
11319 shlibpath_var=LIBPATH
11322 osf3* | osf4* | osf5*)
11326 soname_spec='${libname}${release}${shared_ext}$major'
11327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11328 shlibpath_var=LD_LIBRARY_PATH
11329 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11330 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11342 soname_spec='${libname}${release}${shared_ext}$major'
11343 shlibpath_var=LD_LIBRARY_PATH
11344 shlibpath_overrides_runpath=yes
11345 hardcode_into_libs=yes
11346 # ldd complains unless libraries are executable
11347 postinstall_cmds='chmod +x $lib'
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11353 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11354 shlibpath_var=LD_LIBRARY_PATH
11355 shlibpath_overrides_runpath=yes
11356 if test "$with_gnu_ld" = yes; then
11364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11365 soname_spec='${libname}${release}${shared_ext}$major'
11366 shlibpath_var=LD_LIBRARY_PATH
11367 case $host_vendor in
11369 shlibpath_overrides_runpath=no
11371 runpath_var=LD_RUN_PATH
11379 shlibpath_overrides_runpath=no
11380 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11386 if test -d /usr/nec ;then
11388 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11389 soname_spec='$libname${shared_ext}.$major'
11390 shlibpath_var=LD_LIBRARY_PATH
11394 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11395 version_type=freebsd-elf
11398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11399 soname_spec='${libname}${release}${shared_ext}$major'
11400 shlibpath_var=LD_LIBRARY_PATH
11401 shlibpath_overrides_runpath=yes
11402 hardcode_into_libs=yes
11403 if test "$with_gnu_ld" = yes; then
11404 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11406 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11409 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11413 sys_lib_dlsearch_path_spec='/usr/lib'
11417 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11422 shlibpath_var=LD_LIBRARY_PATH
11423 shlibpath_overrides_runpath=no
11424 hardcode_into_libs=yes
11429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11430 soname_spec='${libname}${release}${shared_ext}$major'
11431 shlibpath_var=LD_LIBRARY_PATH
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11439 $as_echo "$dynamic_linker" >&6; }
11440 test "$dynamic_linker" = no && can_build_shared=no
11442 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11443 if test "$GCC" = yes; then
11444 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11447 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11448 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11450 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11451 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11541 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11543 if test -n "$hardcode_libdir_flag_spec" ||
11544 test -n "$runpath_var" ||
11545 test "X$hardcode_automatic" = "Xyes" ; then
11547 # We can hardcode non-existent directories.
11548 if test "$hardcode_direct" != no &&
11549 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11550 # have to relink, otherwise we might link with an installed library
11551 # when we should be linking with a yet-to-be-installed one
11552 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11553 test "$hardcode_minus_L" != no; then
11554 # Linking always hardcodes the temporary library directory.
11555 hardcode_action=relink
11557 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11558 hardcode_action=immediate
11561 # We cannot hardcode anything, or else we can only hardcode existing
11563 hardcode_action=unsupported
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11566 $as_echo "$hardcode_action" >&6; }
11568 if test "$hardcode_action" = relink ||
11569 test "$inherit_rpath" = yes; then
11570 # Fast installation is not supported
11571 enable_fast_install=no
11572 elif test "$shlibpath_overrides_runpath" = yes ||
11573 test "$enable_shared" = no; then
11574 # Fast installation is not necessary
11575 enable_fast_install=needless
11583 if test "x$enable_dlopen" != xyes; then
11584 enable_dlopen=unknown
11585 enable_dlopen_self=unknown
11586 enable_dlopen_self_static=unknown
11593 lt_cv_dlopen="load_add_on"
11595 lt_cv_dlopen_self=yes
11598 mingw* | pw32* | cegcc*)
11599 lt_cv_dlopen="LoadLibrary"
11604 lt_cv_dlopen="dlopen"
11609 # if libdl is installed we need to link against it
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11611 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11612 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11613 $as_echo_n "(cached) " >&6
11615 ac_check_lib_save_LIBS=$LIBS
11617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h. */
11620 /* Override any GCC internal prototype to avoid an error.
11621 Use char because int might match the return type of a GCC
11622 builtin and then its argument prototype would still apply. */
11635 if ac_fn_c_try_link "$LINENO"; then :
11636 ac_cv_lib_dl_dlopen=yes
11638 ac_cv_lib_dl_dlopen=no
11640 rm -f core conftest.err conftest.$ac_objext \
11641 conftest$ac_exeext conftest.$ac_ext
11642 LIBS=$ac_check_lib_save_LIBS
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11645 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11646 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11647 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11650 lt_cv_dlopen="dyld"
11652 lt_cv_dlopen_self=yes
11659 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11660 if test "x$ac_cv_func_shl_load" = x""yes; then :
11661 lt_cv_dlopen="shl_load"
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11664 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11665 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11666 $as_echo_n "(cached) " >&6
11668 ac_check_lib_save_LIBS=$LIBS
11670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671 /* end confdefs.h. */
11673 /* Override any GCC internal prototype to avoid an error.
11674 Use char because int might match the return type of a GCC
11675 builtin and then its argument prototype would still apply. */
11683 return shl_load ();
11688 if ac_fn_c_try_link "$LINENO"; then :
11689 ac_cv_lib_dld_shl_load=yes
11691 ac_cv_lib_dld_shl_load=no
11693 rm -f core conftest.err conftest.$ac_objext \
11694 conftest$ac_exeext conftest.$ac_ext
11695 LIBS=$ac_check_lib_save_LIBS
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11698 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11699 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11700 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11702 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11703 if test "x$ac_cv_func_dlopen" = x""yes; then :
11704 lt_cv_dlopen="dlopen"
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11707 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11708 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11709 $as_echo_n "(cached) " >&6
11711 ac_check_lib_save_LIBS=$LIBS
11713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11714 /* end confdefs.h. */
11716 /* Override any GCC internal prototype to avoid an error.
11717 Use char because int might match the return type of a GCC
11718 builtin and then its argument prototype would still apply. */
11731 if ac_fn_c_try_link "$LINENO"; then :
11732 ac_cv_lib_dl_dlopen=yes
11734 ac_cv_lib_dl_dlopen=no
11736 rm -f core conftest.err conftest.$ac_objext \
11737 conftest$ac_exeext conftest.$ac_ext
11738 LIBS=$ac_check_lib_save_LIBS
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11741 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11742 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11743 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11746 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11747 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11748 $as_echo_n "(cached) " >&6
11750 ac_check_lib_save_LIBS=$LIBS
11751 LIBS="-lsvld $LIBS"
11752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11753 /* end confdefs.h. */
11755 /* Override any GCC internal prototype to avoid an error.
11756 Use char because int might match the return type of a GCC
11757 builtin and then its argument prototype would still apply. */
11770 if ac_fn_c_try_link "$LINENO"; then :
11771 ac_cv_lib_svld_dlopen=yes
11773 ac_cv_lib_svld_dlopen=no
11775 rm -f core conftest.err conftest.$ac_objext \
11776 conftest$ac_exeext conftest.$ac_ext
11777 LIBS=$ac_check_lib_save_LIBS
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11780 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11781 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11782 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11785 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11786 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11787 $as_echo_n "(cached) " >&6
11789 ac_check_lib_save_LIBS=$LIBS
11791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792 /* end confdefs.h. */
11794 /* Override any GCC internal prototype to avoid an error.
11795 Use char because int might match the return type of a GCC
11796 builtin and then its argument prototype would still apply. */
11804 return dld_link ();
11809 if ac_fn_c_try_link "$LINENO"; then :
11810 ac_cv_lib_dld_dld_link=yes
11812 ac_cv_lib_dld_dld_link=no
11814 rm -f core conftest.err conftest.$ac_objext \
11815 conftest$ac_exeext conftest.$ac_ext
11816 LIBS=$ac_check_lib_save_LIBS
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11819 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11820 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11821 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11842 if test "x$lt_cv_dlopen" != xno; then
11848 case $lt_cv_dlopen in
11850 save_CPPFLAGS="$CPPFLAGS"
11851 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11853 save_LDFLAGS="$LDFLAGS"
11854 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11857 LIBS="$lt_cv_dlopen_libs $LIBS"
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11860 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11861 if test "${lt_cv_dlopen_self+set}" = set; then :
11862 $as_echo_n "(cached) " >&6
11864 if test "$cross_compiling" = yes; then :
11865 lt_cv_dlopen_self=cross
11867 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11868 lt_status=$lt_dlunknown
11869 cat > conftest.$ac_ext <<_LT_EOF
11870 #line 11870 "configure"
11871 #include "confdefs.h"
11880 # define LT_DLGLOBAL RTLD_GLOBAL
11883 # define LT_DLGLOBAL DL_GLOBAL
11885 # define LT_DLGLOBAL 0
11889 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11890 find out it does not work in some platform. */
11891 #ifndef LT_DLLAZY_OR_NOW
11893 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11896 # define LT_DLLAZY_OR_NOW DL_LAZY
11899 # define LT_DLLAZY_OR_NOW RTLD_NOW
11902 # define LT_DLLAZY_OR_NOW DL_NOW
11904 # define LT_DLLAZY_OR_NOW 0
11911 void fnord() { int i=42;}
11914 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11915 int status = $lt_dlunknown;
11919 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11920 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11921 /* dlclose (self); */
11929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11930 (eval $ac_link) 2>&5
11932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11933 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11934 (./conftest; exit; ) >&5 2>/dev/null
11936 case x$lt_status in
11937 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11938 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11939 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11942 # compilation failed
11943 lt_cv_dlopen_self=no
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11951 $as_echo "$lt_cv_dlopen_self" >&6; }
11953 if test "x$lt_cv_dlopen_self" = xyes; then
11954 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11956 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11957 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11958 $as_echo_n "(cached) " >&6
11960 if test "$cross_compiling" = yes; then :
11961 lt_cv_dlopen_self_static=cross
11963 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11964 lt_status=$lt_dlunknown
11965 cat > conftest.$ac_ext <<_LT_EOF
11966 #line 11966 "configure"
11967 #include "confdefs.h"
11976 # define LT_DLGLOBAL RTLD_GLOBAL
11979 # define LT_DLGLOBAL DL_GLOBAL
11981 # define LT_DLGLOBAL 0
11985 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11986 find out it does not work in some platform. */
11987 #ifndef LT_DLLAZY_OR_NOW
11989 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11992 # define LT_DLLAZY_OR_NOW DL_LAZY
11995 # define LT_DLLAZY_OR_NOW RTLD_NOW
11998 # define LT_DLLAZY_OR_NOW DL_NOW
12000 # define LT_DLLAZY_OR_NOW 0
12007 void fnord() { int i=42;}
12010 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12011 int status = $lt_dlunknown;
12015 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12016 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12017 /* dlclose (self); */
12025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12026 (eval $ac_link) 2>&5
12028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12029 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12030 (./conftest; exit; ) >&5 2>/dev/null
12032 case x$lt_status in
12033 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12034 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12035 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12038 # compilation failed
12039 lt_cv_dlopen_self_static=no
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12047 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12050 CPPFLAGS="$save_CPPFLAGS"
12051 LDFLAGS="$save_LDFLAGS"
12056 case $lt_cv_dlopen_self in
12057 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12058 *) enable_dlopen_self=unknown ;;
12061 case $lt_cv_dlopen_self_static in
12062 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12063 *) enable_dlopen_self_static=unknown ;;
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12086 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12087 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12088 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12089 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12091 $as_echo "yes" >&6; }
12093 # FIXME - insert some real tests, host_os isn't really good enough
12096 if test -n "$STRIP" ; then
12097 striplib="$STRIP -x"
12098 old_striplib="$STRIP -S"
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12100 $as_echo "yes" >&6; }
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103 $as_echo "no" >&6; }
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108 $as_echo "no" >&6; }
12124 # Report which library types will actually be built
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12126 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12128 $as_echo "$can_build_shared" >&6; }
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12131 $as_echo_n "checking whether to build shared libraries... " >&6; }
12132 test "$can_build_shared" = "no" && enable_shared=no
12134 # On AIX, shared libraries and static libraries use the same namespace, and
12135 # are all built from PIC.
12138 test "$enable_shared" = yes && enable_static=no
12139 if test -n "$RANLIB"; then
12140 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12141 postinstall_cmds='$RANLIB $lib'
12146 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12147 test "$enable_shared" = yes && enable_static=no
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12152 $as_echo "$enable_shared" >&6; }
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12155 $as_echo_n "checking whether to build static libraries... " >&6; }
12156 # Make sure either enable_shared or enable_static is yes.
12157 test "$enable_shared" = yes || enable_static=yes
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12159 $as_echo "$enable_static" >&6; }
12166 ac_cpp='$CXXCPP $CPPFLAGS'
12167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12175 ac_cpp='$CXXCPP $CPPFLAGS'
12176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12180 archive_cmds_need_lc_CXX=no
12181 allow_undefined_flag_CXX=
12182 always_export_symbols_CXX=no
12183 archive_expsym_cmds_CXX=
12184 compiler_needs_object_CXX=no
12185 export_dynamic_flag_spec_CXX=
12186 hardcode_direct_CXX=no
12187 hardcode_direct_absolute_CXX=no
12188 hardcode_libdir_flag_spec_CXX=
12189 hardcode_libdir_flag_spec_ld_CXX=
12190 hardcode_libdir_separator_CXX=
12191 hardcode_minus_L_CXX=no
12192 hardcode_shlibpath_var_CXX=unsupported
12193 hardcode_automatic_CXX=no
12194 inherit_rpath_CXX=no
12196 module_expsym_cmds_CXX=
12197 link_all_deplibs_CXX=unknown
12198 old_archive_cmds_CXX=$old_archive_cmds
12199 no_undefined_flag_CXX=
12200 whole_archive_flag_spec_CXX=
12201 enable_shared_with_static_runtimes_CXX=no
12203 # Source file extension for C++ test sources.
12206 # Object file extension for compiled C++ test sources.
12210 # No sense in running all these tests if we already determined that
12211 # the CXX compiler isn't working. Some variables (like enable_shared)
12212 # are currently assumed to apply to all compilers on this platform,
12213 # and will be corrupted by setting them based on a non-working compiler.
12214 if test "$_lt_caught_CXX_error" != yes; then
12215 # Code to be used in simple compile tests
12216 lt_simple_compile_test_code="int some_variable = 0;"
12218 # Code to be used in simple link tests
12219 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12221 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12228 # If no C compiler was specified, use CC.
12231 # If no C compiler flags were specified, use CFLAGS.
12232 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12234 # Allow CC to be a program name with arguments.
12238 # save warnings/boilerplate of simple test code
12239 ac_outfile=conftest.$ac_objext
12240 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12241 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12242 _lt_compiler_boilerplate=`cat conftest.err`
12245 ac_outfile=conftest.$ac_objext
12246 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12247 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12248 _lt_linker_boilerplate=`cat conftest.err`
12252 # Allow CC to be a program name with arguments.
12257 lt_save_with_gnu_ld=$with_gnu_ld
12258 lt_save_path_LD=$lt_cv_path_LD
12259 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12260 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12262 $as_unset lt_cv_prog_gnu_ld
12264 if test -n "${lt_cv_path_LDCXX+set}"; then
12265 lt_cv_path_LD=$lt_cv_path_LDCXX
12267 $as_unset lt_cv_path_LD
12269 test -z "${LDCXX+set}" || LD=$LDCXX
12273 for cc_temp in $compiler""; do
12275 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12276 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12281 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12284 if test -n "$compiler"; then
12285 # We don't want -fno-exception when compiling C++ code, so set the
12286 # no_builtin_flag separately
12287 if test "$GXX" = yes; then
12288 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12290 lt_prog_compiler_no_builtin_flag_CXX=
12293 if test "$GXX" = yes; then
12294 # Set up default GNU C++ configuration
12298 # Check whether --with-gnu-ld was given.
12299 if test "${with_gnu_ld+set}" = set; then :
12300 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12306 if test "$GCC" = yes; then
12307 # Check if gcc -print-prog-name=ld gives a path.
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12309 $as_echo_n "checking for ld used by $CC... " >&6; }
12312 # gcc leaves a trailing carriage return which upsets mingw
12313 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12315 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12318 # Accept absolute paths.
12320 re_direlt='/[^/][^/]*/\.\./'
12321 # Canonicalize the pathname of ld
12322 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12323 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12324 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12326 test -z "$LD" && LD="$ac_prog"
12329 # If it fails, then pretend we aren't using GCC.
12333 # If it is relative, then search for the first ld in PATH.
12334 with_gnu_ld=unknown
12337 elif test "$with_gnu_ld" = yes; then
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12339 $as_echo_n "checking for GNU ld... " >&6; }
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12342 $as_echo_n "checking for non-GNU ld... " >&6; }
12344 if test "${lt_cv_path_LD+set}" = set; then :
12345 $as_echo_n "(cached) " >&6
12347 if test -z "$LD"; then
12348 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12349 for ac_dir in $PATH; do
12351 test -z "$ac_dir" && ac_dir=.
12352 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12353 lt_cv_path_LD="$ac_dir/$ac_prog"
12354 # Check to see if the program is GNU ld. I'd rather use --version,
12355 # but apparently some variants of GNU ld only accept -v.
12356 # Break only if it was the GNU/non-GNU ld that we prefer.
12357 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12358 *GNU* | *'with BFD'*)
12359 test "$with_gnu_ld" != no && break
12362 test "$with_gnu_ld" != yes && break
12369 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12373 LD="$lt_cv_path_LD"
12374 if test -n "$LD"; then
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12376 $as_echo "$LD" >&6; }
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12379 $as_echo "no" >&6; }
12381 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12383 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12384 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12385 $as_echo_n "(cached) " >&6
12387 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12388 case `$LD -v 2>&1 </dev/null` in
12389 *GNU* | *'with BFD'*)
12390 lt_cv_prog_gnu_ld=yes
12393 lt_cv_prog_gnu_ld=no
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12398 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12399 with_gnu_ld=$lt_cv_prog_gnu_ld
12407 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12408 # archiving commands below assume that GNU ld is being used.
12409 if test "$with_gnu_ld" = yes; then
12410 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12411 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12413 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12414 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12416 # If archive_cmds runs LD, not CC, wlarc should be empty
12417 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12418 # investigate it a little bit more. (MM)
12421 # ancient GNU ld didn't support --whole-archive et. al.
12422 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12423 $GREP 'no-whole-archive' > /dev/null; then
12424 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12426 whole_archive_flag_spec_CXX=
12432 # A generic and very simple default shared library creation
12433 # command for GNU C++ for the case where it uses the native
12434 # linker, instead of GNU ld. If possible, this setting should
12435 # overridden to take advantage of the native linker features on
12436 # the platform it is being used on.
12437 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12440 # Commands to make compiler produce verbose output that lists
12441 # what "hidden" libraries, object files and flags are used when
12442 # linking a shared library.
12443 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12451 # PORTME: fill in a description of your system's C++ link characteristics
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12453 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12457 # FIXME: insert proper C++ library support
12461 if test "$host_cpu" = ia64; then
12462 # On IA64, the linker does run time linking by default, so we don't
12463 # have to do anything special.
12464 aix_use_runtimelinking=no
12465 exp_sym_flag='-Bexport'
12468 aix_use_runtimelinking=no
12470 # Test if we are trying to use run time linking or normal
12471 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12472 # need to do runtime linking.
12473 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12474 for ld_flag in $LDFLAGS; do
12477 aix_use_runtimelinking=yes
12485 exp_sym_flag='-bexport'
12486 no_entry_flag='-bnoentry'
12489 # When large executables or shared objects are built, AIX ld can
12490 # have problems creating the table of contents. If linking a library
12491 # or program results in "error TOC overflow" add -mminimal-toc to
12492 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12493 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12495 archive_cmds_CXX=''
12496 hardcode_direct_CXX=yes
12497 hardcode_direct_absolute_CXX=yes
12498 hardcode_libdir_separator_CXX=':'
12499 link_all_deplibs_CXX=yes
12500 file_list_spec_CXX='${wl}-f,'
12502 if test "$GXX" = yes; then
12503 case $host_os in aix4.[012]|aix4.[012].*)
12504 # We only want to do this on AIX 4.2 and lower, the check
12505 # below for broken collect2 doesn't work under 4.3+
12506 collect2name=`${CC} -print-prog-name=collect2`
12507 if test -f "$collect2name" &&
12508 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12510 # We have reworked collect2
12513 # We have old collect2
12514 hardcode_direct_CXX=unsupported
12515 # It fails to find uninstalled libraries when the uninstalled
12516 # path is not listed in the libpath. Setting hardcode_minus_L
12517 # to unsupported forces relinking
12518 hardcode_minus_L_CXX=yes
12519 hardcode_libdir_flag_spec_CXX='-L$libdir'
12520 hardcode_libdir_separator_CXX=
12523 shared_flag='-shared'
12524 if test "$aix_use_runtimelinking" = yes; then
12525 shared_flag="$shared_flag "'${wl}-G'
12529 if test "$host_cpu" = ia64; then
12530 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12531 # chokes on -Wl,-G. The following line is correct:
12534 if test "$aix_use_runtimelinking" = yes; then
12535 shared_flag='${wl}-G'
12537 shared_flag='${wl}-bM:SRE'
12542 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12543 # It seems that -bexpall does not export symbols beginning with
12544 # underscore (_), so it is better to generate a list of symbols to
12546 always_export_symbols_CXX=yes
12547 if test "$aix_use_runtimelinking" = yes; then
12548 # Warning - without using the other runtime loading flags (-brtl),
12549 # -berok will link without error, but may produce a broken library.
12550 allow_undefined_flag_CXX='-berok'
12551 # Determine the default libpath from the value encoded in an empty
12553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h. */
12564 if ac_fn_cxx_try_link "$LINENO"; then :
12566 lt_aix_libpath_sed='
12567 /Import File Strings/,/^$/ {
12573 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12574 # Check for a 64-bit object if we didn't find anything.
12575 if test -z "$aix_libpath"; then
12576 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12579 rm -f core conftest.err conftest.$ac_objext \
12580 conftest$ac_exeext conftest.$ac_ext
12581 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12583 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12585 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12587 if test "$host_cpu" = ia64; then
12588 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12589 allow_undefined_flag_CXX="-z nodefs"
12590 archive_expsym_cmds_CXX="\$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"
12592 # Determine the default libpath from the value encoded in an
12593 # empty executable.
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12605 if ac_fn_cxx_try_link "$LINENO"; then :
12607 lt_aix_libpath_sed='
12608 /Import File Strings/,/^$/ {
12614 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12615 # Check for a 64-bit object if we didn't find anything.
12616 if test -z "$aix_libpath"; then
12617 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12620 rm -f core conftest.err conftest.$ac_objext \
12621 conftest$ac_exeext conftest.$ac_ext
12622 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12624 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12625 # Warning - without using the other run time loading flags,
12626 # -berok will link without error, but may produce a broken library.
12627 no_undefined_flag_CXX=' ${wl}-bernotok'
12628 allow_undefined_flag_CXX=' ${wl}-berok'
12629 # Exported symbols can be pulled into shared objects from archives
12630 whole_archive_flag_spec_CXX='$convenience'
12631 archive_cmds_need_lc_CXX=yes
12632 # This is similar to how AIX traditionally builds its shared
12634 archive_expsym_cmds_CXX="\$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'
12640 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12641 allow_undefined_flag_CXX=unsupported
12642 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12643 # support --undefined. This deserves some investigation. FIXME
12644 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12651 case $cc_basename in
12653 # FIXME: insert proper C++ library support
12659 cygwin* | mingw* | pw32* | cegcc*)
12660 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12661 # as there is no search path for DLLs.
12662 hardcode_libdir_flag_spec_CXX='-L$libdir'
12663 allow_undefined_flag_CXX=unsupported
12664 always_export_symbols_CXX=no
12665 enable_shared_with_static_runtimes_CXX=yes
12667 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12668 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12669 # If the export-symbols file already is a .def file (1st line
12670 # is EXPORTS), use it as is; otherwise, prepend...
12671 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12672 cp $export_symbols $output_objdir/$soname.def;
12674 echo EXPORTS > $output_objdir/$soname.def;
12675 cat $export_symbols >> $output_objdir/$soname.def;
12677 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12682 darwin* | rhapsody*)
12685 archive_cmds_need_lc_CXX=no
12686 hardcode_direct_CXX=no
12687 hardcode_automatic_CXX=yes
12688 hardcode_shlibpath_var_CXX=unsupported
12689 whole_archive_flag_spec_CXX=''
12690 link_all_deplibs_CXX=yes
12691 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12692 case $cc_basename in
12693 ifort*) _lt_dar_can_shared=yes ;;
12694 *) _lt_dar_can_shared=$GCC ;;
12696 if test "$_lt_dar_can_shared" = "yes"; then
12697 output_verbose_link_cmd=echo
12698 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12699 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12700 archive_expsym_cmds_CXX="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}"
12701 module_expsym_cmds_CXX="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}"
12702 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12703 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12704 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12714 case $cc_basename in
12716 # FIXME: insert proper C++ library support
12720 # Green Hills C++ Compiler
12721 # FIXME: insert proper C++ library support
12725 # FIXME: insert proper C++ library support
12732 # C++ shared libraries reported to be fairly broken before
12738 archive_cmds_need_lc_CXX=no
12741 freebsd* | dragonfly*)
12742 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12751 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12752 hardcode_libdir_separator_CXX=:
12753 export_dynamic_flag_spec_CXX='${wl}-E'
12754 hardcode_direct_CXX=yes
12755 hardcode_minus_L_CXX=yes # Not in the search PATH,
12756 # but as the default
12757 # location of the library.
12759 case $cc_basename in
12761 # FIXME: insert proper C++ library support
12765 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12766 # Commands to make compiler produce verbose output that lists
12767 # what "hidden" libraries, object files and flags are used when
12768 # linking a shared library.
12770 # There doesn't appear to be a way to prevent this compiler from
12771 # explicitly linking system object files so we need to strip them
12772 # from the output so that they don't get included in the library
12774 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12777 if test "$GXX" = yes; then
12778 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12780 # FIXME: insert proper C++ library support
12788 if test $with_gnu_ld = no; then
12789 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12790 hardcode_libdir_separator_CXX=:
12796 export_dynamic_flag_spec_CXX='${wl}-E'
12802 hardcode_direct_CXX=no
12803 hardcode_shlibpath_var_CXX=no
12806 hardcode_direct_CXX=yes
12807 hardcode_direct_absolute_CXX=yes
12808 hardcode_minus_L_CXX=yes # Not in the search PATH,
12809 # but as the default
12810 # location of the library.
12814 case $cc_basename in
12816 # FIXME: insert proper C++ library support
12822 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12825 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12828 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12831 # Commands to make compiler produce verbose output that lists
12832 # what "hidden" libraries, object files and flags are used when
12833 # linking a shared library.
12835 # There doesn't appear to be a way to prevent this compiler from
12836 # explicitly linking system object files so we need to strip them
12837 # from the output so that they don't get included in the library
12839 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12842 if test "$GXX" = yes; then
12843 if test $with_gnu_ld = no; then
12846 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12849 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12852 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12857 # FIXME: insert proper C++ library support
12865 hardcode_direct_CXX=no
12866 hardcode_shlibpath_var_CXX=no
12867 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12868 export_dynamic_flag_spec_CXX='${wl}-E'
12869 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12870 # Instead, shared libraries are loaded at an image base (0x10000000 by
12871 # default) and relocated if they conflict, which is a slow very memory
12872 # consuming and fragmenting process. To avoid this, we pick a random,
12873 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12874 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12875 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12876 archive_expsym_cmds_CXX='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'
12879 case $cc_basename in
12882 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12884 # Archives containing C++ object files must be created using
12885 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12886 # necessary to make sure instantiated templates are included
12888 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12891 if test "$GXX" = yes; then
12892 if test "$with_gnu_ld" = no; then
12893 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12895 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12898 link_all_deplibs_CXX=yes
12901 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12902 hardcode_libdir_separator_CXX=:
12903 inherit_rpath_CXX=yes
12906 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12907 case $cc_basename in
12909 # Kuck and Associates, Inc. (KAI) C++ Compiler
12911 # KCC will only create a shared library if the output file
12912 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12913 # to its proper name (with version) after linking.
12914 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12915 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12916 # Commands to make compiler produce verbose output that lists
12917 # what "hidden" libraries, object files and flags are used when
12918 # linking a shared library.
12920 # There doesn't appear to be a way to prevent this compiler from
12921 # explicitly linking system object files so we need to strip them
12922 # from the output so that they don't get included in the library
12924 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12926 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12927 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12929 # Archives containing C++ object files must be created using
12930 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12931 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12936 # version 8.0 and above of icpc choke on multiply defined symbols
12937 # if we add $predep_objects and $postdep_objects, however 7.1 and
12938 # earlier do not add the objects themselves.
12939 case `$CC -V 2>&1` in
12941 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12942 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12944 *) # Version 8.0 or newer
12947 ia64*) tmp_idyn=' -i_dynamic';;
12949 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12950 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12953 archive_cmds_need_lc_CXX=no
12954 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12955 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12956 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12959 # Portland Group C++ compiler
12961 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12962 prelink_cmds_CXX='tpldir=Template.dir~
12964 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12965 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12966 old_archive_cmds_CXX='tpldir=Template.dir~
12968 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12969 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12971 archive_cmds_CXX='tpldir=Template.dir~
12973 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12974 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12975 archive_expsym_cmds_CXX='tpldir=Template.dir~
12977 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12978 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12980 *) # Version 6 will use weak symbols
12981 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12982 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12986 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12987 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12988 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12992 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12993 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12995 runpath_var=LD_RUN_PATH
12996 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12997 hardcode_libdir_separator_CXX=:
12999 # Commands to make compiler produce verbose output that lists
13000 # what "hidden" libraries, object files and flags are used when
13001 # linking a shared library.
13003 # There doesn't appear to be a way to prevent this compiler from
13004 # explicitly linking system object files so we need to strip them
13005 # from the output so that they don't get included in the library
13007 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13010 # IBM XL 8.0 on PPC, with GNU ld
13011 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13012 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13013 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13014 if test "x$supports_anon_versioning" = xyes; then
13015 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13016 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13017 echo "local: *; };" >> $output_objdir/$libname.ver~
13018 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13022 case `$CC -V 2>&1 | sed 5q` in
13025 no_undefined_flag_CXX=' -zdefs'
13026 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13027 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13028 hardcode_libdir_flag_spec_CXX='-R$libdir'
13029 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13030 compiler_needs_object_CXX=yes
13032 # Not sure whether something based on
13033 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13035 output_verbose_link_cmd='echo'
13037 # Archives containing C++ object files must be created using
13038 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13039 # necessary to make sure instantiated templates are included
13041 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13049 # FIXME: insert proper C++ library support
13054 # FIXME: insert proper C++ library support
13059 case $cc_basename in
13061 # FIXME: insert proper C++ library support
13065 # FIXME: insert proper C++ library support
13072 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13073 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13075 hardcode_libdir_flag_spec_CXX='-R$libdir'
13076 hardcode_direct_CXX=yes
13077 hardcode_shlibpath_var_CXX=no
13079 # Workaround some broken pre-1.5 toolchains
13080 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13088 # C++ shared libraries are fairly broken
13093 if test -f /usr/libexec/ld.so; then
13094 hardcode_direct_CXX=yes
13095 hardcode_shlibpath_var_CXX=no
13096 hardcode_direct_absolute_CXX=yes
13097 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13098 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13099 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13100 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13101 export_dynamic_flag_spec_CXX='${wl}-E'
13102 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13104 output_verbose_link_cmd=echo
13110 osf3* | osf4* | osf5*)
13111 case $cc_basename in
13113 # Kuck and Associates, Inc. (KAI) C++ Compiler
13115 # KCC will only create a shared library if the output file
13116 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13117 # to its proper name (with version) after linking.
13118 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13120 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13121 hardcode_libdir_separator_CXX=:
13123 # Archives containing C++ object files must be created using
13124 # the KAI C++ compiler.
13126 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13127 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13131 # Rational C++ 2.4.1
13132 # FIXME: insert proper C++ library support
13138 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13139 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13140 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13143 allow_undefined_flag_CXX=' -expect_unresolved \*'
13144 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13145 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13146 echo "-hidden">> $lib.exp~
13147 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13149 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13153 hardcode_libdir_separator_CXX=:
13155 # Commands to make compiler produce verbose output that lists
13156 # what "hidden" libraries, object files and flags are used when
13157 # linking a shared library.
13159 # There doesn't appear to be a way to prevent this compiler from
13160 # explicitly linking system object files so we need to strip them
13161 # from the output so that they don't get included in the library
13163 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13166 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13167 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13170 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13173 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13177 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13178 hardcode_libdir_separator_CXX=:
13180 # Commands to make compiler produce verbose output that lists
13181 # what "hidden" libraries, object files and flags are used when
13182 # linking a shared library.
13183 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13186 # FIXME: insert proper C++ library support
13194 # FIXME: insert proper C++ library support
13199 case $cc_basename in
13202 # FIXME: insert proper C++ library support
13207 # FIXME: insert proper C++ library support
13211 # FIXME: insert proper C++ library support
13218 case $cc_basename in
13220 # Sun C++ 4.2, 5.x and Centerline C++
13221 archive_cmds_need_lc_CXX=yes
13222 no_undefined_flag_CXX=' -zdefs'
13223 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13224 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13225 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13227 hardcode_libdir_flag_spec_CXX='-R$libdir'
13228 hardcode_shlibpath_var_CXX=no
13230 solaris2.[0-5] | solaris2.[0-5].*) ;;
13232 # The compiler driver will combine and reorder linker options,
13233 # but understands `-z linker_flag'.
13234 # Supported since Solaris 2.6 (maybe 2.5.1?)
13235 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13238 link_all_deplibs_CXX=yes
13240 output_verbose_link_cmd='echo'
13242 # Archives containing C++ object files must be created using
13243 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13244 # necessary to make sure instantiated templates are included
13246 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13249 # Green Hills C++ Compiler
13250 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13252 # The C++ compiler must be used to create the archive.
13253 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13256 # GNU C++ compiler with Solaris linker
13257 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13258 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13259 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13260 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13261 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13262 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13264 # Commands to make compiler produce verbose output that lists
13265 # what "hidden" libraries, object files and flags are used when
13266 # linking a shared library.
13267 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13269 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13271 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13272 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13273 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13275 # Commands to make compiler produce verbose output that lists
13276 # what "hidden" libraries, object files and flags are used when
13277 # linking a shared library.
13278 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13281 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13283 solaris2.[0-5] | solaris2.[0-5].*) ;;
13285 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13293 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13294 no_undefined_flag_CXX='${wl}-z,text'
13295 archive_cmds_need_lc_CXX=no
13296 hardcode_shlibpath_var_CXX=no
13297 runpath_var='LD_RUN_PATH'
13299 case $cc_basename in
13301 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13302 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13305 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13306 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13311 sysv5* | sco3.2v5* | sco5v6*)
13312 # Note: We can NOT use -z defs as we might desire, because we do not
13313 # link with -lc, and that would cause any symbols used from libc to
13314 # always be unresolved, which means just about no library would
13315 # ever link correctly. If we're not using GNU ld we use -z text
13316 # though, which does catch some bad symbols but isn't as heavy-handed
13318 no_undefined_flag_CXX='${wl}-z,text'
13319 allow_undefined_flag_CXX='${wl}-z,nodefs'
13320 archive_cmds_need_lc_CXX=no
13321 hardcode_shlibpath_var_CXX=no
13322 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13323 hardcode_libdir_separator_CXX=':'
13324 link_all_deplibs_CXX=yes
13325 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13326 runpath_var='LD_RUN_PATH'
13328 case $cc_basename in
13330 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13331 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13334 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13335 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13341 case $cc_basename in
13343 # NonStop-UX NCC 3.20
13344 # FIXME: insert proper C++ library support
13348 # FIXME: insert proper C++ library support
13355 # FIXME: insert proper C++ library support
13360 # FIXME: insert proper C++ library support
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13366 $as_echo "$ld_shlibs_CXX" >&6; }
13367 test "$ld_shlibs_CXX" = no && can_build_shared=no
13373 ## There is no encapsulation within the following macros, do not change
13374 ## the running order or otherwise move them around unless you know exactly
13375 ## what you are doing...
13376 # Dependencies to place before and after the object being linked:
13377 predep_objects_CXX=
13378 postdep_objects_CXX=
13381 compiler_lib_search_path_CXX=
13383 cat > conftest.$ac_ext <<_LT_EOF
13387 Foo (void) { a = 0; }
13393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13394 (eval $ac_compile) 2>&5
13396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13397 test $ac_status = 0; }; then
13398 # Parse the compiler output and extract the necessary
13399 # objects, libraries and library flags.
13401 # Sentinel used to keep track of whether or not we are before
13402 # the conftest object file.
13403 pre_test_object_deps_done=no
13405 for p in `eval "$output_verbose_link_cmd"`; do
13409 # Some compilers place space between "-{L,R}" and the path.
13410 # Remove the space.
13411 if test $p = "-L" ||
13412 test $p = "-R"; then
13419 if test "$pre_test_object_deps_done" = no; then
13422 # Internal compiler library paths should come after those
13423 # provided the user. The postdeps already come after the
13424 # user supplied libs so there is no need to process them.
13425 if test -z "$compiler_lib_search_path_CXX"; then
13426 compiler_lib_search_path_CXX="${prev}${p}"
13428 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13431 # The "-l" case would never come before the object being
13432 # linked, so don't bother handling this case.
13435 if test -z "$postdeps_CXX"; then
13436 postdeps_CXX="${prev}${p}"
13438 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13444 # This assumes that the test object file only shows up
13445 # once in the compiler output.
13446 if test "$p" = "conftest.$objext"; then
13447 pre_test_object_deps_done=yes
13451 if test "$pre_test_object_deps_done" = no; then
13452 if test -z "$predep_objects_CXX"; then
13453 predep_objects_CXX="$p"
13455 predep_objects_CXX="$predep_objects_CXX $p"
13458 if test -z "$postdep_objects_CXX"; then
13459 postdep_objects_CXX="$p"
13461 postdep_objects_CXX="$postdep_objects_CXX $p"
13466 *) ;; # Ignore the rest.
13474 echo "libtool.m4: error: problem compiling CXX test program"
13477 $RM -f confest.$objext
13479 # PORTME: override above test on systems where it is broken
13482 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13483 # hack all around it, let's just trust "g++" to DTRT.
13484 predep_objects_CXX=
13485 postdep_objects_CXX=
13490 case `$CC -V 2>&1 | sed 5q` in
13494 # The more standards-conforming stlport4 library is
13495 # incompatible with the Cstd library. Avoid specifying
13496 # it if it's in CXXFLAGS. Ignore libCrun as
13497 # -library=stlport4 depends on it.
13498 case " $CXX $CXXFLAGS " in
13499 *" -library=stlport4 "*)
13500 solaris_use_stlport4=yes
13504 if test "$solaris_use_stlport4" != yes; then
13505 postdeps_CXX='-library=Cstd -library=Crun'
13512 case $cc_basename in
13514 # The more standards-conforming stlport4 library is
13515 # incompatible with the Cstd library. Avoid specifying
13516 # it if it's in CXXFLAGS. Ignore libCrun as
13517 # -library=stlport4 depends on it.
13518 case " $CXX $CXXFLAGS " in
13519 *" -library=stlport4 "*)
13520 solaris_use_stlport4=yes
13524 # Adding this requires a known-good setup of shared libraries for
13525 # Sun compiler versions before 5.6, else PIC objects from an old
13526 # archive will be linked into the output, leading to subtle bugs.
13527 if test "$solaris_use_stlport4" != yes; then
13528 postdeps_CXX='-library=Cstd -library=Crun'
13536 case " $postdeps_CXX " in
13537 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13539 compiler_lib_search_dirs_CXX=
13540 if test -n "${compiler_lib_search_path_CXX}"; then
13541 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13574 lt_prog_compiler_wl_CXX=
13575 lt_prog_compiler_pic_CXX=
13576 lt_prog_compiler_static_CXX=
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13579 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13581 # C++ specific cases for pic, static, wl, etc.
13582 if test "$GXX" = yes; then
13583 lt_prog_compiler_wl_CXX='-Wl,'
13584 lt_prog_compiler_static_CXX='-static'
13588 # All AIX code is PIC.
13589 if test "$host_cpu" = ia64; then
13590 # AIX 5 now supports IA64 processor
13591 lt_prog_compiler_static_CXX='-Bstatic'
13598 # see comment about AmigaOS4 .so support
13599 lt_prog_compiler_pic_CXX='-fPIC'
13602 # FIXME: we need at least 68020 code to build shared libraries, but
13603 # adding the `-m68020' flag to GCC prevents building anything better,
13605 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13610 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13611 # PIC is the default for these OSes.
13613 mingw* | cygwin* | os2* | pw32* | cegcc*)
13614 # This hack is so that the source file can tell whether it is being
13615 # built for inclusion in a dll (and should export symbols for example).
13616 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13617 # (--disable-auto-import) libraries
13618 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13620 darwin* | rhapsody*)
13621 # PIC is the default on this platform
13622 # Common symbols not allowed in MH_DYLIB files
13623 lt_prog_compiler_pic_CXX='-fno-common'
13626 # DJGPP does not support shared libraries at all
13627 lt_prog_compiler_pic_CXX=
13630 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13631 # Instead, we relocate shared libraries at runtime.
13634 if test -d /usr/nec; then
13635 lt_prog_compiler_pic_CXX=-Kconform_pic
13639 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13640 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13641 # sets the default TLS model and affects inlining.
13646 lt_prog_compiler_pic_CXX='-fPIC'
13651 # QNX uses GNU C++, but need to define -shared option too, otherwise
13652 # it will coredump.
13653 lt_prog_compiler_pic_CXX='-fPIC -shared'
13656 lt_prog_compiler_pic_CXX='-fPIC'
13662 # All AIX code is PIC.
13663 if test "$host_cpu" = ia64; then
13664 # AIX 5 now supports IA64 processor
13665 lt_prog_compiler_static_CXX='-Bstatic'
13667 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13671 case $cc_basename in
13673 # Green Hills C++ Compiler
13674 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13679 case $cc_basename in
13681 lt_prog_compiler_pic_CXX='-KPIC'
13684 # Green Hills C++ Compiler
13685 lt_prog_compiler_pic_CXX='-pic'
13691 freebsd* | dragonfly*)
13692 # FreeBSD uses GNU C++
13694 hpux9* | hpux10* | hpux11*)
13695 case $cc_basename in
13697 lt_prog_compiler_wl_CXX='-Wl,'
13698 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13699 if test "$host_cpu" != ia64; then
13700 lt_prog_compiler_pic_CXX='+Z'
13704 lt_prog_compiler_wl_CXX='-Wl,'
13705 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13711 lt_prog_compiler_pic_CXX='+Z'
13720 # This is c89, which is MS Visual C++ (no shared libs)
13721 # Anyone wants to do a port?
13723 irix5* | irix6* | nonstopux*)
13724 case $cc_basename in
13726 lt_prog_compiler_wl_CXX='-Wl,'
13727 lt_prog_compiler_static_CXX='-non_shared'
13728 # CC pic flag -KPIC is the default.
13734 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13735 case $cc_basename in
13738 lt_prog_compiler_wl_CXX='--backend -Wl,'
13739 lt_prog_compiler_pic_CXX='-fPIC'
13742 # old Intel C++ for x86_64 which still supported -KPIC.
13743 lt_prog_compiler_wl_CXX='-Wl,'
13744 lt_prog_compiler_pic_CXX='-KPIC'
13745 lt_prog_compiler_static_CXX='-static'
13748 # Intel C++, used to be incompatible with GCC.
13749 # ICC 10 doesn't accept -KPIC any more.
13750 lt_prog_compiler_wl_CXX='-Wl,'
13751 lt_prog_compiler_pic_CXX='-fPIC'
13752 lt_prog_compiler_static_CXX='-static'
13755 # Portland Group C++ compiler
13756 lt_prog_compiler_wl_CXX='-Wl,'
13757 lt_prog_compiler_pic_CXX='-fpic'
13758 lt_prog_compiler_static_CXX='-Bstatic'
13762 # Make sure the PIC flag is empty. It appears that all Alpha
13763 # Linux and Compaq Tru64 Unix objects are PIC.
13764 lt_prog_compiler_pic_CXX=
13765 lt_prog_compiler_static_CXX='-non_shared'
13768 # IBM XL 8.0 on PPC
13769 lt_prog_compiler_wl_CXX='-Wl,'
13770 lt_prog_compiler_pic_CXX='-qpic'
13771 lt_prog_compiler_static_CXX='-qstaticlink'
13774 case `$CC -V 2>&1 | sed 5q` in
13777 lt_prog_compiler_pic_CXX='-KPIC'
13778 lt_prog_compiler_static_CXX='-Bstatic'
13779 lt_prog_compiler_wl_CXX='-Qoption ld '
13790 case $cc_basename in
13792 lt_prog_compiler_pic_CXX='-W c,exportall'
13798 netbsd* | netbsdelf*-gnu)
13801 # QNX uses GNU C++, but need to define -shared option too, otherwise
13802 # it will coredump.
13803 lt_prog_compiler_pic_CXX='-fPIC -shared'
13805 osf3* | osf4* | osf5*)
13806 case $cc_basename in
13808 lt_prog_compiler_wl_CXX='--backend -Wl,'
13811 # Rational C++ 2.4.1
13812 lt_prog_compiler_pic_CXX='-pic'
13815 # Digital/Compaq C++
13816 lt_prog_compiler_wl_CXX='-Wl,'
13817 # Make sure the PIC flag is empty. It appears that all Alpha
13818 # Linux and Compaq Tru64 Unix objects are PIC.
13819 lt_prog_compiler_pic_CXX=
13820 lt_prog_compiler_static_CXX='-non_shared'
13829 case $cc_basename in
13831 # Sun C++ 4.2, 5.x and Centerline C++
13832 lt_prog_compiler_pic_CXX='-KPIC'
13833 lt_prog_compiler_static_CXX='-Bstatic'
13834 lt_prog_compiler_wl_CXX='-Qoption ld '
13837 # Green Hills C++ Compiler
13838 lt_prog_compiler_pic_CXX='-PIC'
13845 case $cc_basename in
13848 lt_prog_compiler_pic_CXX='-pic'
13849 lt_prog_compiler_static_CXX='-Bstatic'
13853 lt_prog_compiler_pic_CXX='-pic'
13859 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13860 case $cc_basename in
13862 lt_prog_compiler_wl_CXX='-Wl,'
13863 lt_prog_compiler_pic_CXX='-KPIC'
13864 lt_prog_compiler_static_CXX='-Bstatic'
13869 case $cc_basename in
13871 # NonStop-UX NCC 3.20
13872 lt_prog_compiler_pic_CXX='-KPIC'
13881 lt_prog_compiler_can_build_shared_CXX=no
13887 # For platforms which do not support PIC, -DPIC is meaningless:
13889 lt_prog_compiler_pic_CXX=
13892 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13896 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13901 # Check to make sure the PIC flag actually works.
13903 if test -n "$lt_prog_compiler_pic_CXX"; then
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13905 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13906 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13907 $as_echo_n "(cached) " >&6
13909 lt_cv_prog_compiler_pic_works_CXX=no
13910 ac_outfile=conftest.$ac_objext
13911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13912 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13913 # Insert the option either (1) after the last *FLAGS variable, or
13914 # (2) before a word containing "conftest.", or (3) at the end.
13915 # Note that $ac_compile itself does not contain backslashes and begins
13916 # with a dollar sign (not a hyphen), so the echo should work correctly.
13917 # The option is referenced via a variable to avoid confusing sed.
13918 lt_compile=`echo "$ac_compile" | $SED \
13919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13921 -e 's:$: $lt_compiler_flag:'`
13922 (eval echo "\"\$as_me:13922: $lt_compile\"" >&5)
13923 (eval "$lt_compile" 2>conftest.err)
13925 cat conftest.err >&5
13926 echo "$as_me:13926: \$? = $ac_status" >&5
13927 if (exit $ac_status) && test -s "$ac_outfile"; then
13928 # The compiler can only warn and ignore the option if not recognized
13929 # So say no if there are warnings other than the usual output.
13930 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13932 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13933 lt_cv_prog_compiler_pic_works_CXX=yes
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13940 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13942 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13943 case $lt_prog_compiler_pic_CXX in
13945 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13948 lt_prog_compiler_pic_CXX=
13949 lt_prog_compiler_can_build_shared_CXX=no
13957 # Check to make sure the static flag actually works.
13959 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13961 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13962 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13963 $as_echo_n "(cached) " >&6
13965 lt_cv_prog_compiler_static_works_CXX=no
13966 save_LDFLAGS="$LDFLAGS"
13967 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13968 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13969 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13970 # The linker can only warn and ignore the option if not recognized
13971 # So say no if there are warnings
13972 if test -s conftest.err; then
13973 # Append any errors to the config.log.
13974 cat conftest.err 1>&5
13975 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13977 if diff conftest.exp conftest.er2 >/dev/null; then
13978 lt_cv_prog_compiler_static_works_CXX=yes
13981 lt_cv_prog_compiler_static_works_CXX=yes
13985 LDFLAGS="$save_LDFLAGS"
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13989 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13991 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13994 lt_prog_compiler_static_CXX=
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14001 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14002 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14003 $as_echo_n "(cached) " >&6
14005 lt_cv_prog_compiler_c_o_CXX=no
14006 $RM -r conftest 2>/dev/null
14010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14012 lt_compiler_flag="-o out/conftest2.$ac_objext"
14013 # Insert the option either (1) after the last *FLAGS variable, or
14014 # (2) before a word containing "conftest.", or (3) at the end.
14015 # Note that $ac_compile itself does not contain backslashes and begins
14016 # with a dollar sign (not a hyphen), so the echo should work correctly.
14017 lt_compile=`echo "$ac_compile" | $SED \
14018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14020 -e 's:$: $lt_compiler_flag:'`
14021 (eval echo "\"\$as_me:14021: $lt_compile\"" >&5)
14022 (eval "$lt_compile" 2>out/conftest.err)
14024 cat out/conftest.err >&5
14025 echo "$as_me:14025: \$? = $ac_status" >&5
14026 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14028 # The compiler can only warn and ignore the option if not recognized
14029 # So say no if there are warnings
14030 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14031 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14032 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14033 lt_cv_prog_compiler_c_o_CXX=yes
14038 # SGI C++ compiler will create directory out/ii_files/ for
14039 # template instantiation
14040 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14041 $RM out/* && rmdir out
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14048 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14053 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14054 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14055 $as_echo_n "(cached) " >&6
14057 lt_cv_prog_compiler_c_o_CXX=no
14058 $RM -r conftest 2>/dev/null
14062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14064 lt_compiler_flag="-o out/conftest2.$ac_objext"
14065 # Insert the option either (1) after the last *FLAGS variable, or
14066 # (2) before a word containing "conftest.", or (3) at the end.
14067 # Note that $ac_compile itself does not contain backslashes and begins
14068 # with a dollar sign (not a hyphen), so the echo should work correctly.
14069 lt_compile=`echo "$ac_compile" | $SED \
14070 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14072 -e 's:$: $lt_compiler_flag:'`
14073 (eval echo "\"\$as_me:14073: $lt_compile\"" >&5)
14074 (eval "$lt_compile" 2>out/conftest.err)
14076 cat out/conftest.err >&5
14077 echo "$as_me:14077: \$? = $ac_status" >&5
14078 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14080 # The compiler can only warn and ignore the option if not recognized
14081 # So say no if there are warnings
14082 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14083 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14084 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14085 lt_cv_prog_compiler_c_o_CXX=yes
14090 # SGI C++ compiler will create directory out/ii_files/ for
14091 # template instantiation
14092 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14093 $RM out/* && rmdir out
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14100 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14105 hard_links="nottested"
14106 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14107 # do not overwrite the value of need_locks provided by the user
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14109 $as_echo_n "checking if we can lock with hard links... " >&6; }
14112 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14114 ln conftest.a conftest.b 2>&5 || hard_links=no
14115 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14117 $as_echo "$hard_links" >&6; }
14118 if test "$hard_links" = no; then
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14120 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14130 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14132 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14135 # If we're using GNU nm, then we don't want the "-C" option.
14136 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14137 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14138 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14140 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14144 export_symbols_cmds_CXX="$ltdll_cmds"
14146 cygwin* | mingw* | cegcc*)
14147 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14149 linux* | k*bsd*-gnu)
14150 link_all_deplibs_CXX=no
14153 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14156 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14159 $as_echo "$ld_shlibs_CXX" >&6; }
14160 test "$ld_shlibs_CXX" = no && can_build_shared=no
14162 with_gnu_ld_CXX=$with_gnu_ld
14170 # Do we need to explicitly link libc?
14172 case "x$archive_cmds_need_lc_CXX" in
14174 # Assume -lc should be added
14175 archive_cmds_need_lc_CXX=yes
14177 if test "$enable_shared" = yes && test "$GCC" = yes; then
14178 case $archive_cmds_CXX in
14180 # FIXME: we may have to deal with multi-command sequences.
14183 # Test whether the compiler implicitly links with -lc since on some
14184 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14185 # to ld, don't add -lc before -lgcc.
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14187 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14192 (eval $ac_compile) 2>&5
14194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14195 test $ac_status = 0; } 2>conftest.err; then
14198 libobjs=conftest.$ac_objext
14200 wl=$lt_prog_compiler_wl_CXX
14201 pic_flag=$lt_prog_compiler_pic_CXX
14207 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14208 allow_undefined_flag_CXX=
14209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14210 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14213 test $ac_status = 0; }
14215 archive_cmds_need_lc_CXX=no
14217 archive_cmds_need_lc_CXX=yes
14219 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14221 cat conftest.err 1>&5
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14225 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14296 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14298 library_names_spec=
14299 libname_spec='lib$name'
14303 postuninstall_cmds=
14307 shlibpath_overrides_runpath=unknown
14309 dynamic_linker="$host_os ld.so"
14310 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14311 need_lib_prefix=unknown
14312 hardcode_into_libs=no
14314 # when you set need_version to no, make sure it does not cause -set_version
14315 # flags to be left without arguments
14316 need_version=unknown
14321 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14322 shlibpath_var=LIBPATH
14324 # AIX 3 has no versioning support, so we append a major version to the name.
14325 soname_spec='${libname}${release}${shared_ext}$major'
14332 hardcode_into_libs=yes
14333 if test "$host_cpu" = ia64; then
14334 # AIX 5 supports IA64
14335 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14336 shlibpath_var=LD_LIBRARY_PATH
14338 # With GCC up to 2.95.x, collect2 would create an import file
14339 # for dependence libraries. The import file would start with
14340 # the line `#! .'. This would cause the generated library to
14341 # depend on `.', always an invalid library. This was fixed in
14342 # development snapshots of GCC prior to 3.0.
14344 aix4 | aix4.[01] | aix4.[01].*)
14345 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14347 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14350 can_build_shared=no
14354 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14355 # soname into executable. Probably we can add versioning support to
14356 # collect2, so additional links can be useful in future.
14357 if test "$aix_use_runtimelinking" = yes; then
14358 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14359 # instead of lib<name>.a to let people know that these are not
14360 # typical AIX shared libraries.
14361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14363 # We preserve .a as extension for shared libraries through AIX4.2
14364 # and later when we are not doing run time linking.
14365 library_names_spec='${libname}${release}.a $libname.a'
14366 soname_spec='${libname}${release}${shared_ext}$major'
14368 shlibpath_var=LIBPATH
14375 # Since July 2007 AmigaOS4 officially supports .so libraries.
14376 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14380 library_names_spec='$libname.ixlibrary $libname.a'
14381 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14382 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
14388 library_names_spec='${libname}${shared_ext}'
14389 dynamic_linker="$host_os ld.so"
14390 shlibpath_var=LIBRARY_PATH
14396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14397 soname_spec='${libname}${release}${shared_ext}$major'
14398 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14399 shlibpath_var=LD_LIBRARY_PATH
14400 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14401 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14402 # the default ld.so.conf also contains /usr/contrib/lib and
14403 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14404 # libtool to hard-code these into programs
14407 cygwin* | mingw* | pw32* | cegcc*)
14408 version_type=windows
14413 case $GCC,$host_os in
14414 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14415 library_names_spec='$libname.dll.a'
14416 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14417 postinstall_cmds='base_file=`basename \${file}`~
14418 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14419 dldir=$destdir/`dirname \$dlpath`~
14420 test -d \$dldir || mkdir -p \$dldir~
14421 $install_prog $dir/$dlname \$dldir/$dlname~
14422 chmod a+x \$dldir/$dlname~
14423 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14424 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14426 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14427 dlpath=$dir/\$dldll~
14429 shlibpath_overrides_runpath=yes
14433 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14434 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14435 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14438 # MinGW DLLs use traditional 'lib' prefix
14439 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14440 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14441 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14442 # It is most probably a Windows format PATH printed by
14443 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14444 # path with ; separators, and with drive letters. We can handle the
14445 # drive letters (cygwin fileutils understands them), so leave them,
14446 # especially as we might pass files found there to a mingw objdump,
14447 # which wouldn't understand a cygwinified path. Ahh.
14448 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14450 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14454 # pw32 DLLs use 'pw' prefix rather than 'lib'
14455 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14461 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14464 dynamic_linker='Win32 ld.exe'
14465 # FIXME: first we should search . and the directory the executable is in
14469 darwin* | rhapsody*)
14470 dynamic_linker="$host_os dyld"
14471 version_type=darwin
14474 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14475 soname_spec='${libname}${release}${major}$shared_ext'
14476 shlibpath_overrides_runpath=yes
14477 shlibpath_var=DYLD_LIBRARY_PATH
14478 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14480 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14488 soname_spec='${libname}${release}${shared_ext}$major'
14489 shlibpath_var=LD_LIBRARY_PATH
14496 freebsd* | dragonfly*)
14497 # DragonFly does not have aout. When/if they implement a new
14498 # versioning mechanism, adjust this.
14499 if test -x /usr/bin/objformat; then
14500 objformat=`/usr/bin/objformat`
14503 freebsd[123]*) objformat=aout ;;
14504 *) objformat=elf ;;
14507 version_type=freebsd-$objformat
14508 case $version_type in
14510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14515 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14519 shlibpath_var=LD_LIBRARY_PATH
14522 shlibpath_overrides_runpath=yes
14524 freebsd3.[01]* | freebsdelf3.[01]*)
14525 shlibpath_overrides_runpath=yes
14526 hardcode_into_libs=yes
14528 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14529 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14530 shlibpath_overrides_runpath=no
14531 hardcode_into_libs=yes
14533 *) # from 4.6 on, and DragonFly
14534 shlibpath_overrides_runpath=yes
14535 hardcode_into_libs=yes
14544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14545 soname_spec='${libname}${release}${shared_ext}$major'
14546 shlibpath_var=LD_LIBRARY_PATH
14547 hardcode_into_libs=yes
14550 hpux9* | hpux10* | hpux11*)
14551 # Give a soname corresponding to the major version so that dld.sl refuses to
14552 # link against other versions.
14559 hardcode_into_libs=yes
14560 dynamic_linker="$host_os dld.so"
14561 shlibpath_var=LD_LIBRARY_PATH
14562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14564 soname_spec='${libname}${release}${shared_ext}$major'
14565 if test "X$HPUX_IA64_MODE" = X32; then
14566 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14568 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14574 hardcode_into_libs=yes
14575 dynamic_linker="$host_os dld.sl"
14576 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14577 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14579 soname_spec='${libname}${release}${shared_ext}$major'
14580 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14585 dynamic_linker="$host_os dld.sl"
14586 shlibpath_var=SHLIB_PATH
14587 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14589 soname_spec='${libname}${release}${shared_ext}$major'
14592 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14593 postinstall_cmds='chmod 555 $lib'
14600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14601 soname_spec='${libname}${release}${shared_ext}$major'
14602 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14603 shlibpath_var=LD_LIBRARY_PATH
14604 shlibpath_overrides_runpath=no
14605 hardcode_into_libs=yes
14608 irix5* | irix6* | nonstopux*)
14610 nonstopux*) version_type=nonstopux ;;
14612 if test "$lt_cv_prog_gnu_ld" = yes; then
14620 soname_spec='${libname}${release}${shared_ext}$major'
14621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14623 irix5* | nonstopux*)
14624 libsuff= shlibsuff=
14627 case $LD in # libtool.m4 will add one of these switches to LD
14628 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14629 libsuff= shlibsuff= libmagic=32-bit;;
14630 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14631 libsuff=32 shlibsuff=N32 libmagic=N32;;
14632 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14633 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14634 *) libsuff= shlibsuff= libmagic=never-match;;
14638 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14639 shlibpath_overrides_runpath=no
14640 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14641 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14642 hardcode_into_libs=yes
14645 # No shared lib support for Linux oldld, aout, or coff.
14646 linux*oldld* | linux*aout* | linux*coff*)
14650 # This must be Linux ELF.
14651 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14656 soname_spec='${libname}${release}${shared_ext}$major'
14657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14658 shlibpath_var=LD_LIBRARY_PATH
14659 shlibpath_overrides_runpath=no
14660 # Some binutils ld are patched to set DT_RUNPATH
14661 save_LDFLAGS=$LDFLAGS
14662 save_libdir=$libdir
14663 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14664 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14666 /* end confdefs.h. */
14676 if ac_fn_cxx_try_link "$LINENO"; then :
14677 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14678 shlibpath_overrides_runpath=yes
14681 rm -f core conftest.err conftest.$ac_objext \
14682 conftest$ac_exeext conftest.$ac_ext
14683 LDFLAGS=$save_LDFLAGS
14684 libdir=$save_libdir
14686 # This implies no fast_install, which is unacceptable.
14687 # Some rework will be needed to allow for fast_install
14688 # before this can be enabled.
14689 hardcode_into_libs=yes
14691 # Append ld.so.conf contents to the search path
14692 if test -f /etc/ld.so.conf; then
14693 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;/^$/d' | tr '\n' ' '`
14694 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14697 # We used to test for /lib/ld.so.1 and disable shared libraries on
14698 # powerpc, because MkLinux only supported shared libraries with the
14699 # GNU dynamic linker. Since this was broken with cross compilers,
14700 # most powerpc-linux boxes support dynamic linking these days and
14701 # people can always --disable-shared, the test was removed, and we
14702 # assume the GNU/Linux dynamic linker is in use.
14703 dynamic_linker='GNU/Linux ld.so'
14710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14711 soname_spec='${libname}${release}${shared_ext}$major'
14712 shlibpath_var=LD_LIBRARY_PATH
14713 shlibpath_overrides_runpath=no
14714 hardcode_into_libs=yes
14715 dynamic_linker='NetBSD ld.elf_so'
14722 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14724 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14725 dynamic_linker='NetBSD (a.out) ld.so'
14727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14728 soname_spec='${libname}${release}${shared_ext}$major'
14729 dynamic_linker='NetBSD ld.elf_so'
14731 shlibpath_var=LD_LIBRARY_PATH
14732 shlibpath_overrides_runpath=yes
14733 hardcode_into_libs=yes
14738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14739 shlibpath_var=LD_LIBRARY_PATH
14740 shlibpath_overrides_runpath=yes
14747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14748 soname_spec='${libname}${release}${shared_ext}$major'
14749 shlibpath_var=LD_LIBRARY_PATH
14750 shlibpath_overrides_runpath=no
14751 hardcode_into_libs=yes
14752 dynamic_linker='ldqnx.so'
14757 sys_lib_dlsearch_path_spec="/usr/lib"
14759 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14761 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14762 *) need_version=no ;;
14764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14766 shlibpath_var=LD_LIBRARY_PATH
14767 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14769 openbsd2.[89] | openbsd2.[89].*)
14770 shlibpath_overrides_runpath=no
14773 shlibpath_overrides_runpath=yes
14777 shlibpath_overrides_runpath=yes
14782 libname_spec='$name'
14785 library_names_spec='$libname${shared_ext} $libname.a'
14786 dynamic_linker='OS/2 ld.exe'
14787 shlibpath_var=LIBPATH
14790 osf3* | osf4* | osf5*)
14794 soname_spec='${libname}${release}${shared_ext}$major'
14795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14796 shlibpath_var=LD_LIBRARY_PATH
14797 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14798 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14810 soname_spec='${libname}${release}${shared_ext}$major'
14811 shlibpath_var=LD_LIBRARY_PATH
14812 shlibpath_overrides_runpath=yes
14813 hardcode_into_libs=yes
14814 # ldd complains unless libraries are executable
14815 postinstall_cmds='chmod +x $lib'
14820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14821 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14822 shlibpath_var=LD_LIBRARY_PATH
14823 shlibpath_overrides_runpath=yes
14824 if test "$with_gnu_ld" = yes; then
14832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14833 soname_spec='${libname}${release}${shared_ext}$major'
14834 shlibpath_var=LD_LIBRARY_PATH
14835 case $host_vendor in
14837 shlibpath_overrides_runpath=no
14839 runpath_var=LD_RUN_PATH
14847 shlibpath_overrides_runpath=no
14848 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14854 if test -d /usr/nec ;then
14856 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14857 soname_spec='$libname${shared_ext}.$major'
14858 shlibpath_var=LD_LIBRARY_PATH
14862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14863 version_type=freebsd-elf
14866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14867 soname_spec='${libname}${release}${shared_ext}$major'
14868 shlibpath_var=LD_LIBRARY_PATH
14869 shlibpath_overrides_runpath=yes
14870 hardcode_into_libs=yes
14871 if test "$with_gnu_ld" = yes; then
14872 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14874 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14877 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14881 sys_lib_dlsearch_path_spec='/usr/lib'
14885 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14890 shlibpath_var=LD_LIBRARY_PATH
14891 shlibpath_overrides_runpath=no
14892 hardcode_into_libs=yes
14897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14898 soname_spec='${libname}${release}${shared_ext}$major'
14899 shlibpath_var=LD_LIBRARY_PATH
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14907 $as_echo "$dynamic_linker" >&6; }
14908 test "$dynamic_linker" = no && can_build_shared=no
14910 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14911 if test "$GCC" = yes; then
14912 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14915 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14916 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14918 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14919 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14958 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14959 hardcode_action_CXX=
14960 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14961 test -n "$runpath_var_CXX" ||
14962 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14964 # We can hardcode non-existent directories.
14965 if test "$hardcode_direct_CXX" != no &&
14966 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14967 # have to relink, otherwise we might link with an installed library
14968 # when we should be linking with a yet-to-be-installed one
14969 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14970 test "$hardcode_minus_L_CXX" != no; then
14971 # Linking always hardcodes the temporary library directory.
14972 hardcode_action_CXX=relink
14974 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14975 hardcode_action_CXX=immediate
14978 # We cannot hardcode anything, or else we can only hardcode existing
14980 hardcode_action_CXX=unsupported
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14983 $as_echo "$hardcode_action_CXX" >&6; }
14985 if test "$hardcode_action_CXX" = relink ||
14986 test "$inherit_rpath_CXX" = yes; then
14987 # Fast installation is not supported
14988 enable_fast_install=no
14989 elif test "$shlibpath_overrides_runpath" = yes ||
14990 test "$enable_shared" = no; then
14991 # Fast installation is not necessary
14992 enable_fast_install=needless
15001 fi # test -n "$compiler"
15007 with_gnu_ld=$lt_save_with_gnu_ld
15008 lt_cv_path_LDCXX=$lt_cv_path_LD
15009 lt_cv_path_LD=$lt_save_path_LD
15010 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15011 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15012 fi # test "$_lt_caught_CXX_error" != yes
15015 ac_cpp='$CXXCPP $CPPFLAGS'
15016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15032 ac_config_commands="$ac_config_commands libtool"
15037 # Only expand once:
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15041 $as_echo_n "checking for ANSI C header files... " >&6; }
15042 if test "${ac_cv_header_stdc+set}" = set; then :
15043 $as_echo_n "(cached) " >&6
15045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15046 /* end confdefs.h. */
15047 #include <stdlib.h>
15048 #include <stdarg.h>
15049 #include <string.h>
15060 if ac_fn_cxx_try_compile "$LINENO"; then :
15061 ac_cv_header_stdc=yes
15063 ac_cv_header_stdc=no
15065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15067 if test $ac_cv_header_stdc = yes; then
15068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15070 /* end confdefs.h. */
15071 #include <string.h>
15074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15075 $EGREP "memchr" >/dev/null 2>&1; then :
15078 ac_cv_header_stdc=no
15084 if test $ac_cv_header_stdc = yes; then
15085 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15087 /* end confdefs.h. */
15088 #include <stdlib.h>
15091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15092 $EGREP "free" >/dev/null 2>&1; then :
15095 ac_cv_header_stdc=no
15101 if test $ac_cv_header_stdc = yes; then
15102 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15103 if test "$cross_compiling" = yes; then :
15106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15107 /* end confdefs.h. */
15109 #include <stdlib.h>
15110 #if ((' ' & 0x0FF) == 0x020)
15111 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15112 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15114 # define ISLOWER(c) \
15115 (('a' <= (c) && (c) <= 'i') \
15116 || ('j' <= (c) && (c) <= 'r') \
15117 || ('s' <= (c) && (c) <= 'z'))
15118 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15121 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15126 for (i = 0; i < 256; i++)
15127 if (XOR (islower (i), ISLOWER (i))
15128 || toupper (i) != TOUPPER (i))
15133 if ac_fn_cxx_try_run "$LINENO"; then :
15136 ac_cv_header_stdc=no
15138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15139 conftest.$ac_objext conftest.beam conftest.$ac_ext
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15145 $as_echo "$ac_cv_header_stdc" >&6; }
15146 if test $ac_cv_header_stdc = yes; then
15148 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15152 for ac_header in inttypes.h stdint.h malloc.h
15154 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15155 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15156 eval as_val=\$$as_ac_Header
15157 if test "x$as_val" = x""yes; then :
15158 cat >>confdefs.h <<_ACEOF
15159 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15166 for ac_func in setenv
15168 ac_fn_cxx_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
15169 if test "x$ac_cv_func_setenv" = x""yes; then :
15170 cat >>confdefs.h <<_ACEOF
15171 #define HAVE_SETENV 1
15178 CXXFLAGS="$CXXFLAGS -fno-exceptions -Wall -ffast-math -D_REENTRANT"
15179 # CXXFLAGS="-fno-exceptions -g -Wall -ffast-math -D_REENTRANT `glib-config --cflags`"
15187 if test "x$MINGW32" = "xyes"; then
15196 case ${target_os} in
15198 CXXFLAGS="$CXXFLAGS -fpermissive"
15202 # portable types. requires autoconf 2.60
15203 # `configure' will check if these are defined in system headers.
15204 # if not, it will auto-detect and define them in `config.h'
15205 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
15206 case $ac_cv_c_int8_t in #(
15210 cat >>confdefs.h <<_ACEOF
15211 #define int8_t $ac_cv_c_int8_t
15216 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
15217 case $ac_cv_c_uint8_t in #(
15221 $as_echo "#define _UINT8_T 1" >>confdefs.h
15224 cat >>confdefs.h <<_ACEOF
15225 #define uint8_t $ac_cv_c_uint8_t
15230 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
15231 case $ac_cv_c_int16_t in #(
15235 cat >>confdefs.h <<_ACEOF
15236 #define int16_t $ac_cv_c_int16_t
15241 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
15242 case $ac_cv_c_uint16_t in #(
15247 cat >>confdefs.h <<_ACEOF
15248 #define uint16_t $ac_cv_c_uint16_t
15253 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
15254 case $ac_cv_c_int32_t in #(
15258 cat >>confdefs.h <<_ACEOF
15259 #define int32_t $ac_cv_c_int32_t
15264 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
15265 case $ac_cv_c_uint32_t in #(
15269 $as_echo "#define _UINT32_T 1" >>confdefs.h
15272 cat >>confdefs.h <<_ACEOF
15273 #define uint32_t $ac_cv_c_uint32_t
15278 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15279 case $ac_cv_c_int64_t in #(
15283 cat >>confdefs.h <<_ACEOF
15284 #define int64_t $ac_cv_c_int64_t
15289 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15290 case $ac_cv_c_uint64_t in #(
15294 $as_echo "#define _UINT64_T 1" >>confdefs.h
15297 cat >>confdefs.h <<_ACEOF
15298 #define uint64_t $ac_cv_c_uint64_t
15305 ac_config_files="$ac_config_files Makefile src/Makefile libmodplug.pc"
15307 cat >confcache <<\_ACEOF
15308 # This file is a shell script that caches the results of configure
15309 # tests run on this system so they can be shared between configure
15310 # scripts and configure runs, see configure's option --config-cache.
15311 # It is not useful on other systems. If it contains results you don't
15312 # want to keep, you may remove or edit it.
15314 # config.status only pays attention to the cache file if you give it
15315 # the --recheck option to rerun configure.
15317 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15318 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15319 # following values.
15323 # The following way of writing the cache mishandles newlines in values,
15324 # but we know of no workaround that is simple, portable, and efficient.
15325 # So, we kill variables containing newlines.
15326 # Ultrix sh set writes to stderr and can't be redirected directly,
15327 # and sets the high bit in the cache file unless we assign to the vars.
15329 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15330 eval ac_val=\$$ac_var
15334 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15335 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15338 _ | IFS | as_nl) ;; #(
15339 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15340 *) { eval $ac_var=; unset $ac_var;} ;;
15346 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15347 *${as_nl}ac_space=\ *)
15348 # `set' does not quote correctly, so add quotes: double-quote
15349 # substitution turns \\\\ into \\, and sed turns \\ into \.
15352 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15355 # `set' quotes correctly as required by POSIX, so do not add quotes.
15356 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15365 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15367 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15369 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15370 if test -w "$cache_file"; then
15371 test "x$cache_file" != "x/dev/null" &&
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15373 $as_echo "$as_me: updating cache $cache_file" >&6;}
15374 cat confcache >$cache_file
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15377 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15382 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15383 # Let make expand exec_prefix.
15384 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15386 DEFS=-DHAVE_CONFIG_H
15390 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15391 # 1. Remove the extension, and $U if already installed.
15392 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15393 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15394 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15395 # will be set to the directory where LIBOBJS objects are built.
15396 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15397 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15399 LIBOBJS=$ac_libobjs
15401 LTLIBOBJS=$ac_ltlibobjs
15404 if test -n "$EXEEXT"; then
15406 am__EXEEXT_FALSE='#'
15408 am__EXEEXT_TRUE='#'
15412 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15413 as_fn_error "conditional \"AMDEP\" was never defined.
15414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15416 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15417 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15420 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15421 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15425 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15426 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15429 if test -z "${MINGW32_TRUE}" && test -z "${MINGW32_FALSE}"; then
15430 as_fn_error "conditional \"MINGW32\" was never defined.
15431 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15434 : ${CONFIG_STATUS=./config.status}
15436 ac_clean_files_save=$ac_clean_files
15437 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15439 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15441 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15443 # Generated by $as_me.
15444 # Run this file to recreate the current configuration.
15445 # Compiler output produced by configure, useful for debugging
15446 # configure, is in config.log if it exists.
15449 ac_cs_recheck=false
15452 SHELL=\${CONFIG_SHELL-$SHELL}
15455 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15456 ## -------------------- ##
15457 ## M4sh Initialization. ##
15458 ## -------------------- ##
15460 # Be more Bourne compatible
15461 DUALCASE=1; export DUALCASE # for MKS sh
15462 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15465 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15466 # is contrary to our usage. Disable this feature.
15467 alias -g '${1+"$@"}'='"$@"'
15468 setopt NO_GLOB_SUBST
15470 case `(set -o) 2>/dev/null` in #(
15482 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15483 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15484 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15485 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15486 # Prefer a ksh shell builtin over an external printf program on Solaris,
15487 # but without wasting forks for bash or zsh.
15488 if test -z "$BASH_VERSION$ZSH_VERSION" \
15489 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15490 as_echo='print -r --'
15491 as_echo_n='print -rn --'
15492 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15493 as_echo='printf %s\n'
15494 as_echo_n='printf %s'
15496 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15497 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15498 as_echo_n='/usr/ucb/echo -n'
15500 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15501 as_echo_n_body='eval
15505 expr "X$arg" : "X\\(.*\\)$as_nl";
15506 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15508 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15510 export as_echo_n_body
15511 as_echo_n='sh -c $as_echo_n_body as_echo'
15513 export as_echo_body
15514 as_echo='sh -c $as_echo_body as_echo'
15517 # The user is always right.
15518 if test "${PATH_SEPARATOR+set}" != set; then
15520 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15521 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15528 # We need space, tab and new line, in precisely that order. Quoting is
15529 # there to prevent editors from complaining about space-tab.
15530 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15531 # splitting by setting IFS to empty value.)
15534 # Find who we are. Look in the path if we contain no directory separator.
15536 *[\\/]* ) as_myself=$0 ;;
15537 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15538 for as_dir in $PATH
15541 test -z "$as_dir" && as_dir=.
15542 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15548 # We did not find ourselves, most probably we were run as `sh COMMAND'
15549 # in which case we are not to be found in the path.
15550 if test "x$as_myself" = x; then
15553 if test ! -f "$as_myself"; then
15554 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15558 # Unset variables that we do not need and which cause bugs (e.g. in
15559 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15560 # suppresses any "Segmentation fault" message there. '((' could
15561 # trigger a bug in pdksh 5.2.14.
15562 for as_var in BASH_ENV ENV MAIL MAILPATH
15563 do eval test x\${$as_var+set} = xset \
15564 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15580 # as_fn_error ERROR [LINENO LOG_FD]
15581 # ---------------------------------
15582 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15583 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15584 # script with status $?, using 1 if that was 0.
15587 as_status=$?; test $as_status -eq 0 && as_status=1
15589 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15590 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15592 $as_echo "$as_me: error: $1" >&2
15593 as_fn_exit $as_status
15597 # as_fn_set_status STATUS
15598 # -----------------------
15599 # Set $? to STATUS, without forking.
15600 as_fn_set_status ()
15603 } # as_fn_set_status
15605 # as_fn_exit STATUS
15606 # -----------------
15607 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15611 as_fn_set_status $1
15617 # Portably unset VAR.
15620 { eval $1=; unset $1;}
15622 as_unset=as_fn_unset
15623 # as_fn_append VAR VALUE
15624 # ----------------------
15625 # Append the text in VALUE to the end of the definition contained in VAR. Take
15626 # advantage of any shell optimizations that allow amortized linear growth over
15627 # repeated appends, instead of the typical quadratic growth present in naive
15629 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15630 eval 'as_fn_append ()
15641 # as_fn_arith ARG...
15642 # ------------------
15643 # Perform arithmetic evaluation on the ARGs, and store the result in the
15644 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15645 # must be portable across $(()) and expr.
15646 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15647 eval 'as_fn_arith ()
15654 as_val=`expr "$@" || test $? -eq 1`
15659 if expr a : '\(a\)' >/dev/null 2>&1 &&
15660 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15666 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15667 as_basename=basename
15672 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15678 as_me=`$as_basename -- "$0" ||
15679 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15680 X"$0" : 'X\(//\)$' \| \
15681 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15683 sed '/^.*\/\([^/][^/]*\)\/*$/{
15697 # Avoid depending upon Character Ranges.
15698 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15699 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15700 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15701 as_cr_digits='0123456789'
15702 as_cr_alnum=$as_cr_Letters$as_cr_digits
15704 ECHO_C= ECHO_N= ECHO_T=
15705 case `echo -n x` in #(((((
15707 case `echo 'xy\c'` in
15708 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15710 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15717 rm -f conf$$ conf$$.exe conf$$.file
15718 if test -d conf$$.dir; then
15719 rm -f conf$$.dir/conf$$.file
15722 mkdir conf$$.dir 2>/dev/null
15724 if (echo >conf$$.file) 2>/dev/null; then
15725 if ln -s conf$$.file conf$$ 2>/dev/null; then
15727 # ... but there are two gotchas:
15728 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15729 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15730 # In both cases, we have to default to `cp -p'.
15731 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15733 elif ln conf$$.file conf$$ 2>/dev/null; then
15741 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15742 rmdir conf$$.dir 2>/dev/null
15747 # Create "$as_dir" as a directory, including parents if necessary.
15752 -*) as_dir=./$as_dir;;
15754 test -d "$as_dir" || eval $as_mkdir_p || {
15758 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15759 *) as_qdir=$as_dir;;
15761 as_dirs="'$as_qdir' $as_dirs"
15762 as_dir=`$as_dirname -- "$as_dir" ||
15763 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15764 X"$as_dir" : 'X\(//\)[^/]' \| \
15765 X"$as_dir" : 'X\(//\)$' \| \
15766 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15767 $as_echo X"$as_dir" |
15768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15772 /^X\(\/\/\)[^/].*/{
15785 test -d "$as_dir" && break
15787 test -z "$as_dirs" || eval "mkdir $as_dirs"
15788 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15792 if mkdir -p . 2>/dev/null; then
15793 as_mkdir_p='mkdir -p "$as_dir"'
15795 test -d ./-p && rmdir ./-p
15799 if test -x / >/dev/null 2>&1; then
15800 as_test_x='test -x'
15802 if ls -dL / >/dev/null 2>&1; then
15809 if test -d "$1"; then
15815 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15816 ???[sx]*):;;*)false;;esac;fi
15820 as_executable_p=$as_test_x
15822 # Sed expression to map a string onto a valid CPP name.
15823 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15825 # Sed expression to map a string onto a valid variable name.
15826 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15830 ## ----------------------------------- ##
15831 ## Main body of $CONFIG_STATUS script. ##
15832 ## ----------------------------------- ##
15834 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15837 # Save the log message, to keep $0 and so on meaningful, and to
15838 # report actual input values of CONFIG_FILES etc. instead of their
15839 # values after options handling.
15841 This file was extended by $as_me, which was
15842 generated by GNU Autoconf 2.65. Invocation command line was
15844 CONFIG_FILES = $CONFIG_FILES
15845 CONFIG_HEADERS = $CONFIG_HEADERS
15846 CONFIG_LINKS = $CONFIG_LINKS
15847 CONFIG_COMMANDS = $CONFIG_COMMANDS
15850 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15855 case $ac_config_files in *"
15856 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15859 case $ac_config_headers in *"
15860 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15865 # Files that config.status was made for.
15866 config_files="$ac_config_files"
15867 config_headers="$ac_config_headers"
15868 config_commands="$ac_config_commands"
15872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15874 \`$as_me' instantiates files and other configuration actions
15875 from templates according to the current configuration. Unless the files
15876 and actions are specified as TAGs, all are instantiated by default.
15878 Usage: $0 [OPTION]... [TAG]...
15880 -h, --help print this help, then exit
15881 -V, --version print version number and configuration settings, then exit
15882 --config print configuration, then exit
15883 -q, --quiet, --silent
15884 do not print progress messages
15885 -d, --debug don't remove temporary files
15886 --recheck update $as_me by reconfiguring in the same conditions
15887 --file=FILE[:TEMPLATE]
15888 instantiate the configuration file FILE
15889 --header=FILE[:TEMPLATE]
15890 instantiate the configuration header FILE
15892 Configuration files:
15895 Configuration headers:
15898 Configuration commands:
15901 Report bugs to the package provider."
15904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15905 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15908 configured by $0, generated by GNU Autoconf 2.65,
15909 with options \\"\$ac_cs_config\\"
15911 Copyright (C) 2009 Free Software Foundation, Inc.
15912 This config.status script is free software; the Free Software Foundation
15913 gives unlimited permission to copy, distribute and modify it."
15920 test -n "\$AWK" || AWK=awk
15923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15924 # The default lists apply if the user does not specify any file.
15930 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15931 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15942 # Handling of the options.
15943 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15945 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15946 $as_echo "$ac_cs_version"; exit ;;
15947 --config | --confi | --conf | --con | --co | --c )
15948 $as_echo "$ac_cs_config"; exit ;;
15949 --debug | --debu | --deb | --de | --d | -d )
15951 --file | --fil | --fi | --f )
15954 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15956 as_fn_append CONFIG_FILES " '$ac_optarg'"
15957 ac_need_defaults=false;;
15958 --header | --heade | --head | --hea )
15961 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15963 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15964 ac_need_defaults=false;;
15966 # Conflict between --help and --header
15967 as_fn_error "ambiguous option: \`$1'
15968 Try \`$0 --help' for more information.";;
15969 --help | --hel | -h )
15970 $as_echo "$ac_cs_usage"; exit ;;
15971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15972 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15975 # This is an error.
15976 -*) as_fn_error "unrecognized option: \`$1'
15977 Try \`$0 --help' for more information." ;;
15979 *) as_fn_append ac_config_targets " $1"
15980 ac_need_defaults=false ;;
15986 ac_configure_extra_args=
15988 if $ac_cs_silent; then
15990 ac_configure_extra_args="$ac_configure_extra_args --silent"
15994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15995 if \$ac_cs_recheck; then
15996 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15998 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15999 CONFIG_SHELL='$SHELL'
16000 export CONFIG_SHELL
16005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16009 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16010 ## Running $as_me. ##
16016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16020 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16023 # The HP-UX ksh and POSIX shell print the target directory to stdout
16024 # if CDPATH is set.
16025 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16027 sed_quote_subst='$sed_quote_subst'
16028 double_quote_subst='$double_quote_subst'
16029 delay_variable_subst='$delay_variable_subst'
16030 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16031 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
16032 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16033 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16034 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16035 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16036 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16037 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16038 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16039 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16040 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16041 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16042 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16043 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16044 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16045 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16046 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16047 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16048 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16049 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16050 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16051 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16052 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16053 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16054 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16055 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16056 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16057 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16058 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16059 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16060 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16061 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16062 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16063 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16064 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16065 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16066 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16067 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16068 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16069 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16070 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16071 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16072 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16073 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16074 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16075 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16076 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16077 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16078 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16079 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16080 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16081 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16082 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16083 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16084 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16085 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16086 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16087 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16088 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16089 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16090 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16091 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16092 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16093 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16094 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16095 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16096 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16097 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16098 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16099 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16100 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16101 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16102 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16103 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16104 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16105 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16106 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16107 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16108 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16109 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16110 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16111 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16112 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16113 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16114 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16115 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16116 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16117 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16118 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16119 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16120 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16121 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16122 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16123 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16124 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16125 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16126 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16127 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16128 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16129 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16130 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16131 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16132 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16133 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16134 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16135 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16136 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16137 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16138 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16139 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16140 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16141 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16142 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16143 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16144 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16145 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16146 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16147 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16148 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16149 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16150 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16151 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16152 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16153 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16154 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16155 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16156 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16157 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16158 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16159 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16160 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16161 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16162 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16163 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16164 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16165 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16166 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16167 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16168 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16169 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16170 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16171 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16172 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16173 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16174 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16175 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16176 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16177 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16178 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16179 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16180 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16181 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16182 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16183 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16184 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16185 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16186 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16187 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16188 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16189 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16190 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16191 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16192 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16193 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16194 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16195 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16196 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16197 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16198 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16199 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16200 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16201 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16202 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16205 LTCFLAGS='$LTCFLAGS'
16206 compiler='$compiler_DEFAULT'
16208 # Quote evaled strings.
16219 deplibs_check_method \
16228 lt_cv_sys_global_symbol_pipe \
16229 lt_cv_sys_global_symbol_to_cdecl \
16230 lt_cv_sys_global_symbol_to_c_name_address \
16231 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16234 lt_prog_compiler_no_builtin_flag \
16235 lt_prog_compiler_wl \
16236 lt_prog_compiler_pic \
16237 lt_prog_compiler_static \
16238 lt_cv_prog_compiler_c_o \
16246 export_dynamic_flag_spec \
16247 whole_archive_flag_spec \
16248 compiler_needs_object \
16250 allow_undefined_flag \
16251 no_undefined_flag \
16252 hardcode_libdir_flag_spec \
16253 hardcode_libdir_flag_spec_ld \
16254 hardcode_libdir_separator \
16259 variables_saved_for_relink \
16261 library_names_spec \
16266 compiler_lib_search_dirs \
16271 compiler_lib_search_path \
16274 lt_prog_compiler_no_builtin_flag_CXX \
16275 lt_prog_compiler_wl_CXX \
16276 lt_prog_compiler_pic_CXX \
16277 lt_prog_compiler_static_CXX \
16278 lt_cv_prog_compiler_c_o_CXX \
16279 export_dynamic_flag_spec_CXX \
16280 whole_archive_flag_spec_CXX \
16281 compiler_needs_object_CXX \
16283 allow_undefined_flag_CXX \
16284 no_undefined_flag_CXX \
16285 hardcode_libdir_flag_spec_CXX \
16286 hardcode_libdir_flag_spec_ld_CXX \
16287 hardcode_libdir_separator_CXX \
16288 fix_srcfile_path_CXX \
16289 exclude_expsyms_CXX \
16290 include_expsyms_CXX \
16291 file_list_spec_CXX \
16292 compiler_lib_search_dirs_CXX \
16293 predep_objects_CXX \
16294 postdep_objects_CXX \
16297 compiler_lib_search_path_CXX; do
16298 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16299 *[\\\\\\\`\\"\\\$]*)
16300 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16303 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16308 # Double-quote double-evaled strings.
16309 for var in reload_cmds \
16310 old_postinstall_cmds \
16311 old_postuninstall_cmds \
16313 extract_expsyms_cmds \
16314 old_archive_from_new_cmds \
16315 old_archive_from_expsyms_cmds \
16317 archive_expsym_cmds \
16319 module_expsym_cmds \
16320 export_symbols_cmds \
16323 postuninstall_cmds \
16325 sys_lib_search_path_spec \
16326 sys_lib_dlsearch_path_spec \
16327 old_archive_cmds_CXX \
16328 old_archive_from_new_cmds_CXX \
16329 old_archive_from_expsyms_cmds_CXX \
16331 archive_expsym_cmds_CXX \
16333 module_expsym_cmds_CXX \
16334 export_symbols_cmds_CXX \
16335 prelink_cmds_CXX; do
16336 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16337 *[\\\\\\\`\\"\\\$]*)
16338 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16341 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16346 # Fix-up fallback echo if it was mangled by the above quoting rules.
16348 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16352 ac_aux_dir='$ac_aux_dir'
16353 xsi_shell='$xsi_shell'
16354 lt_shell_append='$lt_shell_append'
16356 # See if we are running on zsh, and set the options which allow our
16357 # commands through without removal of \ escapes INIT.
16358 if test -n "\${ZSH_VERSION+set}" ; then
16359 setopt NO_GLOB_SUBST
16365 TIMESTAMP='$TIMESTAMP'
16376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16378 # Handling of arguments.
16379 for ac_config_target in $ac_config_targets
16381 case $ac_config_target in
16382 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
16383 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16384 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16385 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16386 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16387 "libmodplug.pc") CONFIG_FILES="$CONFIG_FILES libmodplug.pc" ;;
16389 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16394 # If the user did not use the arguments to specify the items to instantiate,
16395 # then the envvar interface is used. Set only those that are not.
16396 # We use the long form for the default assignment because of an extremely
16397 # bizarre bug on SunOS 4.1.3.
16398 if $ac_need_defaults; then
16399 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16400 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16401 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16404 # Have a temporary directory for convenience. Make it in the build tree
16405 # simply because there is no reason against having it here, and in addition,
16406 # creating and moving files from /tmp can sometimes cause problems.
16407 # Hook for its removal unless debugging.
16408 # Note that there is a small window in which the directory will not be cleaned:
16409 # after its creation but before its name has been assigned to `$tmp'.
16413 trap 'exit_status=$?
16414 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16416 trap 'as_fn_exit 1' 1 2 13 15
16418 # Create a (secure) tmp directory for tmp files.
16421 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16422 test -n "$tmp" && test -d "$tmp"
16425 tmp=./conf$$-$RANDOM
16426 (umask 077 && mkdir "$tmp")
16427 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16429 # Set up the scripts for CONFIG_FILES section.
16430 # No need to generate them if there are no CONFIG_FILES.
16431 # This happens for instance with `./config.status config.h'.
16432 if test -n "$CONFIG_FILES"; then
16435 ac_cr=`echo X | tr X '\015'`
16436 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16437 # But we know of no other shell where ac_cr would be empty at this
16438 # point, so we can use a bashism as a fallback.
16439 if test "x$ac_cr" = x; then
16440 eval ac_cr=\$\'\\r\'
16442 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16443 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16446 ac_cs_awk_cr=$ac_cr
16449 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16454 echo "cat >conf$$subs.awk <<_ACEOF" &&
16455 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16457 } >conf$$subs.sh ||
16458 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16459 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16461 for ac_last_try in false false false false false :; do
16462 . ./conf$$subs.sh ||
16463 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16465 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16466 if test $ac_delim_n = $ac_delim_num; then
16468 elif $ac_last_try; then
16469 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16471 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16474 rm -f conf$$subs.sh
16476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16477 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16481 s/^/S["/; s/!.*/"]=/
16491 s/\(.\{148\}\)..*/\1/
16493 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16498 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16505 s/\(.\{148\}\)..*/\1/
16507 s/["\\]/\\&/g; s/^/"/; s/$/"/
16511 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16516 ' <conf$$subs.awk | sed '
16521 ' >>$CONFIG_STATUS || ac_write_fail=1
16522 rm -f conf$$subs.awk
16523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16525 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16526 for (key in S) S_is_set[key] = 1
16532 nfields = split(line, field, "@")
16534 len = length(field[1])
16535 for (i = 2; i < nfields; i++) {
16537 keylen = length(key)
16538 if (S_is_set[key]) {
16540 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16541 len += length(value) + length(field[++i])
16552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16553 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16554 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16557 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16558 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16561 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16562 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16563 # trailing colons and then remove the whole line if VPATH becomes empty
16564 # (actually we leave an empty line to preserve line numbers).
16565 if test "x$srcdir" = x.; then
16566 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16567 s/:*\$(srcdir):*/:/
16568 s/:*\${srcdir}:*/:/
16570 s/^\([^=]*=[ ]*\):*/\1/
16576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16577 fi # test -n "$CONFIG_FILES"
16579 # Set up the scripts for CONFIG_HEADERS section.
16580 # No need to generate them if there are no CONFIG_HEADERS.
16581 # This happens for instance with `./config.status Makefile'.
16582 if test -n "$CONFIG_HEADERS"; then
16583 cat >"$tmp/defines.awk" <<\_ACAWK ||
16587 # Transform confdefs.h into an awk script `defines.awk', embedded as
16588 # here-document in config.status, that substitutes the proper values into
16589 # config.h.in to produce config.h.
16591 # Create a delimiter string that does not exist in confdefs.h, to ease
16592 # handling of long lines.
16594 for ac_last_try in false false :; do
16595 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16596 if test -z "$ac_t"; then
16598 elif $ac_last_try; then
16599 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16601 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16605 # For the awk script, D is an array of macro values keyed by name,
16606 # likewise P contains macro parameters if any. Preserve backslash
16607 # newline sequences.
16609 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16611 s/.\{148\}/&'"$ac_delim"'/g
16614 s/^[ ]*#[ ]*define[ ][ ]*/ /
16621 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16623 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16627 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16628 D["\1"]=" \3\\\\\\n"\\/p
16630 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16635 s/.\{148\}/&'"$ac_delim"'/g
16640 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16643 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16645 ' <confdefs.h | sed '
16646 s/'"$ac_delim"'/"\\\
16647 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16650 for (key in D) D_is_set[key] = 1
16653 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16655 split(line, arg, " ")
16656 if (arg[1] == "#") {
16660 defundef = substr(arg[1], 2)
16663 split(mac1, mac2, "(") #)
16665 prefix = substr(line, 1, index(line, defundef) - 1)
16666 if (D_is_set[macro]) {
16667 # Preserve the white space surrounding the "#".
16668 print prefix "define", macro P[macro] D[macro]
16671 # Replace #undef with comments. This is necessary, for example,
16672 # in the case of _POSIX_SOURCE, which is predefined and required
16673 # on some systems where configure will not decide to define it.
16674 if (defundef == "undef") {
16675 print "/*", prefix defundef, macro, "*/"
16683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16684 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16685 fi # test -n "$CONFIG_HEADERS"
16688 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16693 :[FHLC]) ac_mode=$ac_tag; continue;;
16695 case $ac_mode$ac_tag in
16697 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16698 :[FH]-) ac_tag=-:-;;
16699 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16716 -) ac_f="$tmp/stdin";;
16717 *) # Look for the file first in the build tree, then in the source tree
16718 # (if the path is not absolute). The absolute path cannot be DOS-style,
16719 # because $ac_f cannot contain `:'.
16723 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16725 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16727 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16728 as_fn_append ac_file_inputs " '$ac_f'"
16731 # Let's still pretend it is `configure' which instantiates (i.e., don't
16732 # use $as_me), people would be surprised to read:
16733 # /* config.h. Generated by config.status. */
16734 configure_input='Generated from '`
16735 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16737 if test x"$ac_file" != x-; then
16738 configure_input="$ac_file. $configure_input"
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16740 $as_echo "$as_me: creating $ac_file" >&6;}
16742 # Neutralize special characters interpreted by sed in replacement strings.
16743 case $configure_input in #(
16744 *\&* | *\|* | *\\* )
16745 ac_sed_conf_input=`$as_echo "$configure_input" |
16746 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16747 *) ac_sed_conf_input=$configure_input;;
16751 *:-:* | *:-) cat >"$tmp/stdin" \
16752 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16757 ac_dir=`$as_dirname -- "$ac_file" ||
16758 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16759 X"$ac_file" : 'X\(//\)[^/]' \| \
16760 X"$ac_file" : 'X\(//\)$' \| \
16761 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16762 $as_echo X"$ac_file" |
16763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16767 /^X\(\/\/\)[^/].*/{
16780 as_dir="$ac_dir"; as_fn_mkdir_p
16784 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16786 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16787 # A ".." for each directory in $ac_dir_suffix.
16788 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16789 case $ac_top_builddir_sub in
16790 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16791 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16794 ac_abs_top_builddir=$ac_pwd
16795 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16796 # for backward compatibility:
16797 ac_top_builddir=$ac_top_build_prefix
16800 .) # We are building in place.
16802 ac_top_srcdir=$ac_top_builddir_sub
16803 ac_abs_top_srcdir=$ac_pwd ;;
16804 [\\/]* | ?:[\\/]* ) # Absolute name.
16805 ac_srcdir=$srcdir$ac_dir_suffix;
16806 ac_top_srcdir=$srcdir
16807 ac_abs_top_srcdir=$srcdir ;;
16808 *) # Relative name.
16809 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16810 ac_top_srcdir=$ac_top_build_prefix$srcdir
16811 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16813 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16823 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16824 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16826 ac_MKDIR_P=$MKDIR_P
16828 [\\/$]* | ?:[\\/]* ) ;;
16829 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16834 # If the template does not know about datarootdir, expand it.
16835 # FIXME: This hack should be removed a few years after 2.60.
16836 ac_datarootdir_hack=; ac_datarootdir_seen=
16847 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16848 *datarootdir*) ac_datarootdir_seen=yes;;
16849 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16851 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16854 ac_datarootdir_hack='
16855 s&@datadir@&$datadir&g
16856 s&@docdir@&$docdir&g
16857 s&@infodir@&$infodir&g
16858 s&@localedir@&$localedir&g
16859 s&@mandir@&$mandir&g
16860 s&\\\${datarootdir}&$datarootdir&g' ;;
16864 # Neutralize VPATH when `$srcdir' = `.'.
16865 # Shell code in configure.ac might set extrasub.
16866 # FIXME: do we really want to maintain this feature?
16867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16868 ac_sed_extra="$ac_vpsub
16871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16873 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16874 s|@configure_input@|$ac_sed_conf_input|;t t
16875 s&@top_builddir@&$ac_top_builddir_sub&;t t
16876 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16877 s&@srcdir@&$ac_srcdir&;t t
16878 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16879 s&@top_srcdir@&$ac_top_srcdir&;t t
16880 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16881 s&@builddir@&$ac_builddir&;t t
16882 s&@abs_builddir@&$ac_abs_builddir&;t t
16883 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16884 s&@INSTALL@&$ac_INSTALL&;t t
16885 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16886 $ac_datarootdir_hack
16888 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16889 || as_fn_error "could not create $ac_file" "$LINENO" 5
16891 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16892 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16893 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16895 which seems to be undefined. Please make sure it is defined." >&5
16896 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16897 which seems to be undefined. Please make sure it is defined." >&2;}
16901 -) cat "$tmp/out" && rm -f "$tmp/out";;
16902 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16904 || as_fn_error "could not create $ac_file" "$LINENO" 5
16910 if test x"$ac_file" != x-; then
16912 $as_echo "/* $configure_input */" \
16913 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16914 } >"$tmp/config.h" \
16915 || as_fn_error "could not create $ac_file" "$LINENO" 5
16916 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16918 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16921 mv "$tmp/config.h" "$ac_file" \
16922 || as_fn_error "could not create $ac_file" "$LINENO" 5
16925 $as_echo "/* $configure_input */" \
16926 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16927 || as_fn_error "could not create -" "$LINENO" 5
16929 # Compute "$ac_file"'s index in $config_headers.
16932 for _am_header in $config_headers :; do
16933 case $_am_header in
16934 $_am_arg | $_am_arg:* )
16937 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16940 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16941 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16942 X"$_am_arg" : 'X\(//\)[^/]' \| \
16943 X"$_am_arg" : 'X\(//\)$' \| \
16944 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16945 $as_echo X"$_am_arg" |
16946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16950 /^X\(\/\/\)[^/].*/{
16962 s/.*/./; q'`/stamp-h$_am_stamp_count
16965 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16966 $as_echo "$as_me: executing $ac_file commands" >&6;}
16971 case $ac_file$ac_mode in
16972 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16973 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16974 # are listed without --file. Let's play safe and only enable the eval
16975 # if we detect the quoting.
16976 case $CONFIG_FILES in
16977 *\'*) eval set x "$CONFIG_FILES" ;;
16978 *) set x $CONFIG_FILES ;;
16983 # Strip MF so we end up with the name of the file.
16984 mf=`echo "$mf" | sed -e 's/:.*$//'`
16985 # Check whether this is an Automake generated Makefile or not.
16986 # We used to match only the files named `Makefile.in', but
16987 # some people rename them; so instead we look at the file content.
16988 # Grep'ing the first line is not enough: some people post-process
16989 # each Makefile.in and add a new line on top of each file to say so.
16990 # Grep'ing the whole file is not good either: AIX grep has a line
16991 # limit of 2048, but all sed's we know have understand at least 4000.
16992 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16993 dirpart=`$as_dirname -- "$mf" ||
16994 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16995 X"$mf" : 'X\(//\)[^/]' \| \
16996 X"$mf" : 'X\(//\)$' \| \
16997 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17003 /^X\(\/\/\)[^/].*/{
17019 # Extract the definition of DEPDIR, am__include, and am__quote
17020 # from the Makefile without running `make'.
17021 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17022 test -z "$DEPDIR" && continue
17023 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17024 test -z "am__include" && continue
17025 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17026 # When using ansi2knr, U may be empty or an underscore; expand it
17027 U=`sed -n 's/^U = //p' < "$mf"`
17028 # Find all dependency output files, they are included files with
17029 # $(DEPDIR) in their names. We invoke sed twice because it is the
17030 # simplest approach to changing $(DEPDIR) to its actual value in the
17032 for file in `sed -n "
17033 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17034 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17035 # Make sure the directory exists.
17036 test -f "$dirpart/$file" && continue
17037 fdir=`$as_dirname -- "$file" ||
17038 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17039 X"$file" : 'X\(//\)[^/]' \| \
17040 X"$file" : 'X\(//\)$' \| \
17041 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17042 $as_echo X"$file" |
17043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17047 /^X\(\/\/\)[^/].*/{
17060 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17061 # echo "creating $dirpart/$file"
17062 echo '# dummy' > "$dirpart/$file"
17069 # See if we are running on zsh, and set the options which allow our
17070 # commands through without removal of \ escapes.
17071 if test -n "${ZSH_VERSION+set}" ; then
17072 setopt NO_GLOB_SUBST
17075 cfgfile="${ofile}T"
17076 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17079 cat <<_LT_EOF >> "$cfgfile"
17082 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17083 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17084 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17085 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17087 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17088 # 2006, 2007, 2008 Free Software Foundation, Inc.
17089 # Written by Gordon Matzigkeit, 1996
17091 # This file is part of GNU Libtool.
17093 # GNU Libtool is free software; you can redistribute it and/or
17094 # modify it under the terms of the GNU General Public License as
17095 # published by the Free Software Foundation; either version 2 of
17096 # the License, or (at your option) any later version.
17098 # As a special exception to the GNU General Public License,
17099 # if you distribute this file as part of a program or library that
17100 # is built using GNU Libtool, you may include this file under the
17101 # same distribution terms that you use for the rest of that program.
17103 # GNU Libtool is distributed in the hope that it will be useful,
17104 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17105 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17106 # GNU General Public License for more details.
17108 # You should have received a copy of the GNU General Public License
17109 # along with GNU Libtool; see the file COPYING. If not, a copy
17110 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17111 # obtained by writing to the Free Software Foundation, Inc.,
17112 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17115 # The names of the tagged configurations supported by this script.
17116 available_tags="CXX "
17118 # ### BEGIN LIBTOOL CONFIG
17120 # Whether or not to build static libraries.
17121 build_old_libs=$enable_static
17123 # Assembler program.
17126 # DLL creation program.
17129 # Object dumper program.
17132 # Which release of libtool.m4 was used?
17133 macro_version=$macro_version
17134 macro_revision=$macro_revision
17136 # Whether or not to build shared libraries.
17137 build_libtool_libs=$enable_shared
17139 # What type of objects to build.
17142 # Whether or not to optimize for fast installation.
17143 fast_install=$enable_fast_install
17146 host_alias=$host_alias
17150 # The build system.
17151 build_alias=$build_alias
17155 # A sed program that does not truncate output.
17158 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17159 Xsed="\$SED -e 1s/^X//"
17161 # A grep program that handles long lines.
17167 # A literal string matcher.
17170 # A BSD- or MS-compatible name lister.
17173 # Whether we need soft or hard links.
17176 # What is the maximum length of a command?
17177 max_cmd_len=$max_cmd_len
17179 # Object file suffix (normally "o").
17182 # Executable file suffix (normally "").
17185 # whether the shell understands "unset".
17188 # turn spaces into newlines.
17191 # turn newlines into spaces.
17194 # How to create reloadable object files.
17195 reload_flag=$lt_reload_flag
17196 reload_cmds=$lt_reload_cmds
17198 # Method to check whether dependent libraries are shared objects.
17199 deplibs_check_method=$lt_deplibs_check_method
17201 # Command to use when deplibs_check_method == "file_magic".
17202 file_magic_cmd=$lt_file_magic_cmd
17206 AR_FLAGS=$lt_AR_FLAGS
17208 # A symbol stripping program.
17211 # Commands used to install an old-style archive.
17213 old_postinstall_cmds=$lt_old_postinstall_cmds
17214 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17219 # LTCC compiler flags.
17220 LTCFLAGS=$lt_CFLAGS
17222 # Take the output of nm and produce a listing of raw symbols and C names.
17223 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17225 # Transform the output of nm in a proper C declaration.
17226 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17228 # Transform the output of nm in a C name address pair.
17229 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17231 # Transform the output of nm in a C name address pair when lib prefix is needed.
17232 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17234 # The name of the directory that contains temporary libtool files.
17237 # Shell to use when invoking shell scripts.
17240 # An echo program that does not interpret backslashes.
17243 # Used to examine libraries when file_magic_cmd begins with "file".
17244 MAGIC_CMD=$MAGIC_CMD
17246 # Must we lock files when doing compilation?
17247 need_locks=$lt_need_locks
17249 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17250 DSYMUTIL=$lt_DSYMUTIL
17252 # Tool to change global to local symbols on Mac OS X.
17255 # Tool to manipulate fat objects and archives on Mac OS X.
17258 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17261 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17262 OTOOL64=$lt_OTOOL64
17264 # Old archive suffix (normally "a").
17267 # Shared library suffix (normally ".so").
17268 shrext_cmds=$lt_shrext_cmds
17270 # The commands to extract the exported symbol list from a shared archive.
17271 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17273 # Variables whose values should be saved in libtool wrapper scripts and
17274 # restored at link time.
17275 variables_saved_for_relink=$lt_variables_saved_for_relink
17277 # Do we need the "lib" prefix for modules?
17278 need_lib_prefix=$need_lib_prefix
17280 # Do we need a version for libraries?
17281 need_version=$need_version
17283 # Library versioning type.
17284 version_type=$version_type
17286 # Shared library runtime path variable.
17287 runpath_var=$runpath_var
17289 # Shared library path variable.
17290 shlibpath_var=$shlibpath_var
17292 # Is shlibpath searched before the hard-coded library search path?
17293 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17295 # Format of library name prefix.
17296 libname_spec=$lt_libname_spec
17298 # List of archive names. First name is the real one, the rest are links.
17299 # The last name is the one that the linker finds with -lNAME
17300 library_names_spec=$lt_library_names_spec
17302 # The coded name of the library, if different from the real name.
17303 soname_spec=$lt_soname_spec
17305 # Command to use after installation of a shared archive.
17306 postinstall_cmds=$lt_postinstall_cmds
17308 # Command to use after uninstallation of a shared archive.
17309 postuninstall_cmds=$lt_postuninstall_cmds
17311 # Commands used to finish a libtool library installation in a directory.
17312 finish_cmds=$lt_finish_cmds
17314 # As "finish_cmds", except a single script fragment to be evaled but
17316 finish_eval=$lt_finish_eval
17318 # Whether we should hardcode library paths into libraries.
17319 hardcode_into_libs=$hardcode_into_libs
17321 # Compile-time system search path for libraries.
17322 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17324 # Run-time system search path for libraries.
17325 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17327 # Whether dlopen is supported.
17328 dlopen_support=$enable_dlopen
17330 # Whether dlopen of programs is supported.
17331 dlopen_self=$enable_dlopen_self
17333 # Whether dlopen of statically linked programs is supported.
17334 dlopen_self_static=$enable_dlopen_self_static
17336 # Commands to strip libraries.
17337 old_striplib=$lt_old_striplib
17338 striplib=$lt_striplib
17341 # The linker used to build libraries.
17344 # Commands used to build an old-style archive.
17345 old_archive_cmds=$lt_old_archive_cmds
17347 # A language specific compiler.
17350 # Is the compiler the GNU compiler?
17353 # Compiler flag to turn off builtin functions.
17354 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17356 # How to pass a linker flag through the compiler.
17357 wl=$lt_lt_prog_compiler_wl
17359 # Additional compiler flags for building library objects.
17360 pic_flag=$lt_lt_prog_compiler_pic
17362 # Compiler flag to prevent dynamic linking.
17363 link_static_flag=$lt_lt_prog_compiler_static
17365 # Does compiler simultaneously support -c and -o options?
17366 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17368 # Whether or not to add -lc for building shared libraries.
17369 build_libtool_need_lc=$archive_cmds_need_lc
17371 # Whether or not to disallow shared libs when runtime libs are static.
17372 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17374 # Compiler flag to allow reflexive dlopens.
17375 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17377 # Compiler flag to generate shared objects directly from archives.
17378 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17380 # Whether the compiler copes with passing no objects directly.
17381 compiler_needs_object=$lt_compiler_needs_object
17383 # Create an old-style archive from a shared archive.
17384 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17386 # Create a temporary old-style archive to link instead of a shared archive.
17387 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17389 # Commands used to build a shared archive.
17390 archive_cmds=$lt_archive_cmds
17391 archive_expsym_cmds=$lt_archive_expsym_cmds
17393 # Commands used to build a loadable module if different from building
17394 # a shared archive.
17395 module_cmds=$lt_module_cmds
17396 module_expsym_cmds=$lt_module_expsym_cmds
17398 # Whether we are building with GNU ld or not.
17399 with_gnu_ld=$lt_with_gnu_ld
17401 # Flag that allows shared libraries with undefined symbols to be built.
17402 allow_undefined_flag=$lt_allow_undefined_flag
17404 # Flag that enforces no undefined symbols.
17405 no_undefined_flag=$lt_no_undefined_flag
17407 # Flag to hardcode \$libdir into a binary during linking.
17408 # This must work even if \$libdir does not exist
17409 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17411 # If ld is used when linking, flag to hardcode \$libdir into a binary
17412 # during linking. This must work even if \$libdir does not exist.
17413 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17415 # Whether we need a single "-rpath" flag with a separated argument.
17416 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17418 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17419 # DIR into the resulting binary.
17420 hardcode_direct=$hardcode_direct
17422 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17423 # DIR into the resulting binary and the resulting library dependency is
17424 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17425 # library is relocated.
17426 hardcode_direct_absolute=$hardcode_direct_absolute
17428 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17429 # into the resulting binary.
17430 hardcode_minus_L=$hardcode_minus_L
17432 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17433 # into the resulting binary.
17434 hardcode_shlibpath_var=$hardcode_shlibpath_var
17436 # Set to "yes" if building a shared library automatically hardcodes DIR
17437 # into the library and all subsequent libraries and executables linked
17439 hardcode_automatic=$hardcode_automatic
17441 # Set to yes if linker adds runtime paths of dependent libraries
17442 # to runtime path list.
17443 inherit_rpath=$inherit_rpath
17445 # Whether libtool must link a program against all its dependency libraries.
17446 link_all_deplibs=$link_all_deplibs
17448 # Fix the shell variable \$srcfile for the compiler.
17449 fix_srcfile_path=$lt_fix_srcfile_path
17451 # Set to "yes" if exported symbols are required.
17452 always_export_symbols=$always_export_symbols
17454 # The commands to list exported symbols.
17455 export_symbols_cmds=$lt_export_symbols_cmds
17457 # Symbols that should not be listed in the preloaded symbols.
17458 exclude_expsyms=$lt_exclude_expsyms
17460 # Symbols that must always be exported.
17461 include_expsyms=$lt_include_expsyms
17463 # Commands necessary for linking programs (against libraries) with templates.
17464 prelink_cmds=$lt_prelink_cmds
17466 # Specify filename containing input files.
17467 file_list_spec=$lt_file_list_spec
17469 # How to hardcode a shared library path into an executable.
17470 hardcode_action=$hardcode_action
17472 # The directories searched by this compiler when creating a shared library.
17473 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17475 # Dependencies to place before and after the objects being linked to
17476 # create a shared library.
17477 predep_objects=$lt_predep_objects
17478 postdep_objects=$lt_postdep_objects
17479 predeps=$lt_predeps
17480 postdeps=$lt_postdeps
17482 # The library search path used internally by the compiler when linking
17483 # a shared library.
17484 compiler_lib_search_path=$lt_compiler_lib_search_path
17486 # ### END LIBTOOL CONFIG
17492 cat <<\_LT_EOF >> "$cfgfile"
17493 # AIX sometimes has problems with the GCC collect2 program. For some
17494 # reason, if we set the COLLECT_NAMES environment variable, the problems
17495 # vanish in a puff of smoke.
17496 if test "X${COLLECT_NAMES+set}" != Xset; then
17498 export COLLECT_NAMES
17505 ltmain="$ac_aux_dir/ltmain.sh"
17508 # We use sed instead of cat because bash on DJGPP gets confused if
17509 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17510 # text mode, it properly converts lines to CR/LF. This bash problem
17511 # is reportedly fixed, but why not run on old versions too?
17512 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17513 || (rm -f "$cfgfile"; exit 1)
17517 cat << \_LT_EOF >> "$cfgfile"
17519 # func_dirname file append nondir_replacement
17520 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17521 # otherwise set result to NONDIR_REPLACEMENT.
17525 */*) func_dirname_result="${1%/*}${2}" ;;
17526 * ) func_dirname_result="${3}" ;;
17530 # func_basename file
17533 func_basename_result="${1##*/}"
17536 # func_dirname_and_basename file append nondir_replacement
17537 # perform func_basename and func_dirname in a single function
17539 # dirname: Compute the dirname of FILE. If nonempty,
17540 # add APPEND to the result, otherwise set result
17541 # to NONDIR_REPLACEMENT.
17542 # value returned in "$func_dirname_result"
17543 # basename: Compute filename of FILE.
17544 # value retuned in "$func_basename_result"
17545 # Implementation must be kept synchronized with func_dirname
17546 # and func_basename. For efficiency, we do not delegate to
17547 # those functions but instead duplicate the functionality here.
17548 func_dirname_and_basename ()
17551 */*) func_dirname_result="${1%/*}${2}" ;;
17552 * ) func_dirname_result="${3}" ;;
17554 func_basename_result="${1##*/}"
17557 # func_stripname prefix suffix name
17558 # strip PREFIX and SUFFIX off of NAME.
17559 # PREFIX and SUFFIX must not contain globbing or regex special
17560 # characters, hashes, percent signs, but SUFFIX may contain a leading
17561 # dot (in which case that matches only a dot).
17564 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17565 # positional parameters, so assign one to ordinary parameter first.
17566 func_stripname_result=${3}
17567 func_stripname_result=${func_stripname_result#"${1}"}
17568 func_stripname_result=${func_stripname_result%"${2}"}
17574 func_opt_split_opt=${1%%=*}
17575 func_opt_split_arg=${1#*=}
17582 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17583 *) func_lo2o_result=${1} ;;
17587 # func_xform libobj-or-source
17590 func_xform_result=${1%.*}.lo
17593 # func_arith arithmetic-term...
17596 func_arith_result=$(( $* ))
17600 # STRING may not start with a hyphen.
17603 func_len_result=${#1}
17608 *) # Bourne compatible functions.
17609 cat << \_LT_EOF >> "$cfgfile"
17611 # func_dirname file append nondir_replacement
17612 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17613 # otherwise set result to NONDIR_REPLACEMENT.
17616 # Extract subdirectory from the argument.
17617 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17618 if test "X$func_dirname_result" = "X${1}"; then
17619 func_dirname_result="${3}"
17621 func_dirname_result="$func_dirname_result${2}"
17625 # func_basename file
17628 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17632 # func_stripname prefix suffix name
17633 # strip PREFIX and SUFFIX off of NAME.
17634 # PREFIX and SUFFIX must not contain globbing or regex special
17635 # characters, hashes, percent signs, but SUFFIX may contain a leading
17636 # dot (in which case that matches only a dot).
17637 # func_strip_suffix prefix name
17641 .*) func_stripname_result=`$ECHO "X${3}" \
17642 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17643 *) func_stripname_result=`$ECHO "X${3}" \
17644 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17649 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17650 my_sed_long_arg='1s/^-[^=]*=//'
17655 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17656 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17662 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17665 # func_xform libobj-or-source
17668 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17671 # func_arith arithmetic-term...
17674 func_arith_result=`expr "$@"`
17678 # STRING may not start with a hyphen.
17681 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17687 case $lt_shell_append in
17689 cat << \_LT_EOF >> "$cfgfile"
17691 # func_append var value
17692 # Append VALUE to the end of shell variable VAR.
17700 cat << \_LT_EOF >> "$cfgfile"
17702 # func_append var value
17703 # Append VALUE to the end of shell variable VAR.
17714 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17715 || (rm -f "$cfgfile"; exit 1)
17717 mv -f "$cfgfile" "$ofile" ||
17718 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17722 cat <<_LT_EOF >> "$ofile"
17724 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17726 # The linker used to build libraries.
17729 # Commands used to build an old-style archive.
17730 old_archive_cmds=$lt_old_archive_cmds_CXX
17732 # A language specific compiler.
17733 CC=$lt_compiler_CXX
17735 # Is the compiler the GNU compiler?
17738 # Compiler flag to turn off builtin functions.
17739 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17741 # How to pass a linker flag through the compiler.
17742 wl=$lt_lt_prog_compiler_wl_CXX
17744 # Additional compiler flags for building library objects.
17745 pic_flag=$lt_lt_prog_compiler_pic_CXX
17747 # Compiler flag to prevent dynamic linking.
17748 link_static_flag=$lt_lt_prog_compiler_static_CXX
17750 # Does compiler simultaneously support -c and -o options?
17751 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17753 # Whether or not to add -lc for building shared libraries.
17754 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17756 # Whether or not to disallow shared libs when runtime libs are static.
17757 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17759 # Compiler flag to allow reflexive dlopens.
17760 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17762 # Compiler flag to generate shared objects directly from archives.
17763 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17765 # Whether the compiler copes with passing no objects directly.
17766 compiler_needs_object=$lt_compiler_needs_object_CXX
17768 # Create an old-style archive from a shared archive.
17769 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17771 # Create a temporary old-style archive to link instead of a shared archive.
17772 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17774 # Commands used to build a shared archive.
17775 archive_cmds=$lt_archive_cmds_CXX
17776 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17778 # Commands used to build a loadable module if different from building
17779 # a shared archive.
17780 module_cmds=$lt_module_cmds_CXX
17781 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17783 # Whether we are building with GNU ld or not.
17784 with_gnu_ld=$lt_with_gnu_ld_CXX
17786 # Flag that allows shared libraries with undefined symbols to be built.
17787 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17789 # Flag that enforces no undefined symbols.
17790 no_undefined_flag=$lt_no_undefined_flag_CXX
17792 # Flag to hardcode \$libdir into a binary during linking.
17793 # This must work even if \$libdir does not exist
17794 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17796 # If ld is used when linking, flag to hardcode \$libdir into a binary
17797 # during linking. This must work even if \$libdir does not exist.
17798 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17800 # Whether we need a single "-rpath" flag with a separated argument.
17801 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17803 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17804 # DIR into the resulting binary.
17805 hardcode_direct=$hardcode_direct_CXX
17807 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17808 # DIR into the resulting binary and the resulting library dependency is
17809 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17810 # library is relocated.
17811 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17813 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17814 # into the resulting binary.
17815 hardcode_minus_L=$hardcode_minus_L_CXX
17817 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17818 # into the resulting binary.
17819 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17821 # Set to "yes" if building a shared library automatically hardcodes DIR
17822 # into the library and all subsequent libraries and executables linked
17824 hardcode_automatic=$hardcode_automatic_CXX
17826 # Set to yes if linker adds runtime paths of dependent libraries
17827 # to runtime path list.
17828 inherit_rpath=$inherit_rpath_CXX
17830 # Whether libtool must link a program against all its dependency libraries.
17831 link_all_deplibs=$link_all_deplibs_CXX
17833 # Fix the shell variable \$srcfile for the compiler.
17834 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17836 # Set to "yes" if exported symbols are required.
17837 always_export_symbols=$always_export_symbols_CXX
17839 # The commands to list exported symbols.
17840 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17842 # Symbols that should not be listed in the preloaded symbols.
17843 exclude_expsyms=$lt_exclude_expsyms_CXX
17845 # Symbols that must always be exported.
17846 include_expsyms=$lt_include_expsyms_CXX
17848 # Commands necessary for linking programs (against libraries) with templates.
17849 prelink_cmds=$lt_prelink_cmds_CXX
17851 # Specify filename containing input files.
17852 file_list_spec=$lt_file_list_spec_CXX
17854 # How to hardcode a shared library path into an executable.
17855 hardcode_action=$hardcode_action_CXX
17857 # The directories searched by this compiler when creating a shared library.
17858 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17860 # Dependencies to place before and after the objects being linked to
17861 # create a shared library.
17862 predep_objects=$lt_predep_objects_CXX
17863 postdep_objects=$lt_postdep_objects_CXX
17864 predeps=$lt_predeps_CXX
17865 postdeps=$lt_postdeps_CXX
17867 # The library search path used internally by the compiler when linking
17868 # a shared library.
17869 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17871 # ### END LIBTOOL TAG CONFIG: CXX
17882 ac_clean_files=$ac_clean_files_save
17884 test $ac_write_fail = 0 ||
17885 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17888 # configure is writing to config.log, and then calls config.status.
17889 # config.status does its own redirection, appending to config.log.
17890 # Unfortunately, on DOS this fails, as config.log is still kept open
17891 # by configure, so config.status won't be able to write to it; its
17892 # output is simply discarded. So we exec the FD to /dev/null,
17893 # effectively closing config.log, so it can be properly (re)opened and
17894 # appended to by config.status. When coming back to configure, we
17895 # need to make the FD available again.
17896 if test "$no_create" != yes; then
17898 ac_config_status_args=
17899 test "$silent" = yes &&
17900 ac_config_status_args="$ac_config_status_args --quiet"
17902 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17904 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17905 # would make configure fail if this is the last instruction.
17906 $ac_cs_success || as_fn_exit $?
17908 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17910 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}