2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558 # Check that we are running under the correct shell.
559 SHELL=${CONFIG_SHELL-/bin/sh}
563 # Remove one level of quotation (which was required for Make).
564 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
569 if test "X$1" = X--no-reexec; then
570 # Discard the --no-reexec flag, and continue.
572 elif test "X$1" = X--fallback-echo; then
573 # Avoid inline document here, it may be left over
575 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
576 # Yippee, $echo works!
579 # Restart under the correct shell.
580 exec $SHELL "$0" --no-reexec ${1+"$@"}
583 if test "X$1" = X--fallback-echo; then
584 # used as fallback echo
592 # The HP-UX ksh and POSIX shell print the target directory to stdout
594 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
596 if test -z "$ECHO"; then
597 if test "X${echo_test_string+set}" != Xset; then
598 # find a string as large as possible, as long as the shell can cope with it
599 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
602 echo_test_string=`eval $cmd` &&
603 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
610 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
615 # The Solaris, AIX, and Digital Unix default echo programs unquote
616 # backslashes. This makes it impossible to quote backslashes using
617 # echo "$something" | sed 's/\\/\\\\/g'
619 # So, first we look for a working echo in the user's PATH.
621 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
622 for dir in $PATH /usr/ucb; do
624 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
625 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
626 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
627 test "X$echo_testing_string" = "X$echo_test_string"; then
634 if test "X$echo" = Xecho; then
635 # We didn't find a better echo, so look for alternatives.
636 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # This shell has a builtin print -r that does the trick.
641 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
642 test "X$CONFIG_SHELL" != X/bin/ksh; then
643 # If we have ksh, try running configure again with it.
644 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
645 export ORIGINAL_CONFIG_SHELL
646 CONFIG_SHELL=/bin/ksh
648 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
652 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
657 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
658 test "X$echo_testing_string" = 'X\t' &&
659 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
660 test "X$echo_testing_string" = "X$echo_test_string"; then
661 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
663 SHELL="$CONFIG_SHELL"
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
667 test "X$echo_testing_string" = 'X\t' &&
668 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
669 test "X$echo_testing_string" = "X$echo_test_string"; then
670 echo="$CONFIG_SHELL $0 --fallback-echo"
672 # maybe with a smaller string...
675 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
676 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
683 if test "$prev" != 'sed 50q "$0"'; then
684 echo_test_string=`eval $prev`
685 export echo_test_string
686 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
688 # Oops. We lost completely, so just stick with echo.
697 # Copy echo and quote the copy suitably for passing to libtool from
698 # the Makefile, instead of quoting the original, which is used later.
700 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
701 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
707 tagnames=${tagnames+${tagnames},}CXX
709 tagnames=${tagnames+${tagnames},}F77
711 test -n "$DJDIR" || exec 7<&0 </dev/null
715 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
716 # so uname gets run too.
717 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
722 ac_default_prefix=/usr/local
724 ac_config_libobj_dir=.
731 # Identity of this package.
739 ac_unique_file="src/main/cpp/logger.cpp"
740 # Factoring default headers for most tests.
741 ac_includes_default="\
743 #ifdef HAVE_SYS_TYPES_H
744 # include <sys/types.h>
746 #ifdef HAVE_SYS_STAT_H
747 # include <sys/stat.h>
753 # ifdef HAVE_STDLIB_H
758 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
763 #ifdef HAVE_STRINGS_H
764 # include <strings.h>
766 #ifdef HAVE_INTTYPES_H
767 # include <inttypes.h>
776 ac_subst_vars='LTLIBOBJS
854 INSTALL_STRIP_PROGRAM
908 program_transform_name
921 enable_option_checking
925 enable_dependency_tracking
945 ac_precious_vars='build_alias
962 # Initialize some variables set by options.
964 ac_init_version=false
965 ac_unrecognized_opts=
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
976 program_transform_name=s,x,x,
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir='${exec_prefix}/bin'
991 sbindir='${exec_prefix}/sbin'
992 libexecdir='${exec_prefix}/libexec'
993 datarootdir='${prefix}/share'
994 datadir='${datarootdir}'
995 sysconfdir='${prefix}/etc'
996 sharedstatedir='${prefix}/com'
997 localstatedir='${prefix}/var'
998 includedir='${prefix}/include'
999 oldincludedir='/usr/include'
1000 docdir='${datarootdir}/doc/${PACKAGE}'
1001 infodir='${datarootdir}/info'
1006 libdir='${exec_prefix}/lib'
1007 localedir='${datarootdir}/locale'
1008 mandir='${datarootdir}/man'
1014 # If the previous option needs an argument, assign it.
1015 if test -n "$ac_prev"; then
1016 eval $ac_prev=\$ac_option
1022 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1027 # Accept the important Cygnus configure options, so we can diagnose typos.
1029 case $ac_dashdash$ac_option in
1033 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1035 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036 bindir=$ac_optarg ;;
1038 -build | --build | --buil | --bui | --bu)
1039 ac_prev=build_alias ;;
1040 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041 build_alias=$ac_optarg ;;
1043 -cache-file | --cache-file | --cache-fil | --cache-fi \
1044 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045 ac_prev=cache_file ;;
1046 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048 cache_file=$ac_optarg ;;
1050 --config-cache | -C)
1051 cache_file=config.cache ;;
1053 -datadir | --datadir | --datadi | --datad)
1055 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1056 datadir=$ac_optarg ;;
1058 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059 | --dataroo | --dataro | --datar)
1060 ac_prev=datarootdir ;;
1061 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063 datarootdir=$ac_optarg ;;
1065 -disable-* | --disable-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 as_fn_error $? "invalid feature name: $ac_useropt"
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "enable_$ac_useropt"
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1079 eval enable_$ac_useropt=no ;;
1081 -docdir | --docdir | --docdi | --doc | --do)
1083 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084 docdir=$ac_optarg ;;
1086 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1088 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089 dvidir=$ac_optarg ;;
1091 -enable-* | --enable-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 as_fn_error $? "invalid feature name: $ac_useropt"
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1100 "enable_$ac_useropt"
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1105 eval enable_$ac_useropt=\$ac_optarg ;;
1107 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109 | --exec | --exe | --ex)
1110 ac_prev=exec_prefix ;;
1111 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113 | --exec=* | --exe=* | --ex=*)
1114 exec_prefix=$ac_optarg ;;
1116 -gas | --gas | --ga | --g)
1117 # Obsolete; use --with-gas.
1120 -help | --help | --hel | --he | -h)
1121 ac_init_help=long ;;
1122 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123 ac_init_help=recursive ;;
1124 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125 ac_init_help=short ;;
1127 -host | --host | --hos | --ho)
1128 ac_prev=host_alias ;;
1129 -host=* | --host=* | --hos=* | --ho=*)
1130 host_alias=$ac_optarg ;;
1132 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1134 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1136 htmldir=$ac_optarg ;;
1138 -includedir | --includedir | --includedi | --included | --include \
1139 | --includ | --inclu | --incl | --inc)
1140 ac_prev=includedir ;;
1141 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142 | --includ=* | --inclu=* | --incl=* | --inc=*)
1143 includedir=$ac_optarg ;;
1145 -infodir | --infodir | --infodi | --infod | --info | --inf)
1147 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148 infodir=$ac_optarg ;;
1150 -libdir | --libdir | --libdi | --libd)
1152 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153 libdir=$ac_optarg ;;
1155 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156 | --libexe | --libex | --libe)
1157 ac_prev=libexecdir ;;
1158 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159 | --libexe=* | --libex=* | --libe=*)
1160 libexecdir=$ac_optarg ;;
1162 -localedir | --localedir | --localedi | --localed | --locale)
1163 ac_prev=localedir ;;
1164 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165 localedir=$ac_optarg ;;
1167 -localstatedir | --localstatedir | --localstatedi | --localstated \
1168 | --localstate | --localstat | --localsta | --localst | --locals)
1169 ac_prev=localstatedir ;;
1170 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1171 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1172 localstatedir=$ac_optarg ;;
1174 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1176 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177 mandir=$ac_optarg ;;
1179 -nfp | --nfp | --nf)
1180 # Obsolete; use --without-fp.
1183 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184 | --no-cr | --no-c | -n)
1187 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1191 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193 | --oldin | --oldi | --old | --ol | --o)
1194 ac_prev=oldincludedir ;;
1195 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198 oldincludedir=$ac_optarg ;;
1200 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1202 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203 prefix=$ac_optarg ;;
1205 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206 | --program-pre | --program-pr | --program-p)
1207 ac_prev=program_prefix ;;
1208 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210 program_prefix=$ac_optarg ;;
1212 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213 | --program-suf | --program-su | --program-s)
1214 ac_prev=program_suffix ;;
1215 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217 program_suffix=$ac_optarg ;;
1219 -program-transform-name | --program-transform-name \
1220 | --program-transform-nam | --program-transform-na \
1221 | --program-transform-n | --program-transform- \
1222 | --program-transform | --program-transfor \
1223 | --program-transfo | --program-transf \
1224 | --program-trans | --program-tran \
1225 | --progr-tra | --program-tr | --program-t)
1226 ac_prev=program_transform_name ;;
1227 -program-transform-name=* | --program-transform-name=* \
1228 | --program-transform-nam=* | --program-transform-na=* \
1229 | --program-transform-n=* | --program-transform-=* \
1230 | --program-transform=* | --program-transfor=* \
1231 | --program-transfo=* | --program-transf=* \
1232 | --program-trans=* | --program-tran=* \
1233 | --progr-tra=* | --program-tr=* | --program-t=*)
1234 program_transform_name=$ac_optarg ;;
1236 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1238 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239 pdfdir=$ac_optarg ;;
1241 -psdir | --psdir | --psdi | --psd | --ps)
1243 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1250 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1252 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1254 sbindir=$ac_optarg ;;
1256 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258 | --sharedst | --shareds | --shared | --share | --shar \
1260 ac_prev=sharedstatedir ;;
1261 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1265 sharedstatedir=$ac_optarg ;;
1267 -site | --site | --sit)
1269 -site=* | --site=* | --sit=*)
1272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275 srcdir=$ac_optarg ;;
1277 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278 | --syscon | --sysco | --sysc | --sys | --sy)
1279 ac_prev=sysconfdir ;;
1280 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282 sysconfdir=$ac_optarg ;;
1284 -target | --target | --targe | --targ | --tar | --ta | --t)
1285 ac_prev=target_alias ;;
1286 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287 target_alias=$ac_optarg ;;
1289 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1292 -version | --version | --versio | --versi | --vers | -V)
1293 ac_init_version=: ;;
1296 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 as_fn_error $? "invalid package name: $ac_useropt"
1300 ac_useropt_orig=$ac_useropt
1301 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1307 ac_unrecognized_sep=', ';;
1309 eval with_$ac_useropt=\$ac_optarg ;;
1311 -without-* | --without-*)
1312 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1313 # Reject names that are not valid shell variable names.
1314 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1315 as_fn_error $? "invalid package name: $ac_useropt"
1316 ac_useropt_orig=$ac_useropt
1317 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318 case $ac_user_opts in
1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1323 ac_unrecognized_sep=', ';;
1325 eval with_$ac_useropt=no ;;
1328 # Obsolete; use --with-x.
1331 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1332 | --x-incl | --x-inc | --x-in | --x-i)
1333 ac_prev=x_includes ;;
1334 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1335 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1336 x_includes=$ac_optarg ;;
1338 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1339 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1340 ac_prev=x_libraries ;;
1341 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1342 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1343 x_libraries=$ac_optarg ;;
1345 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1346 Try \`$0 --help' for more information"
1350 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1351 # Reject names that are not valid shell variable names.
1352 case $ac_envvar in #(
1353 '' | [0-9]* | *[!_$as_cr_alnum]* )
1354 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1356 eval $ac_envvar=\$ac_optarg
1357 export $ac_envvar ;;
1360 # FIXME: should be removed in autoconf 3.0.
1361 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1362 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1363 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1364 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1370 if test -n "$ac_prev"; then
1371 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1372 as_fn_error $? "missing argument to $ac_option"
1375 if test -n "$ac_unrecognized_opts"; then
1376 case $enable_option_checking in
1378 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1379 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1383 # Check all directory arguments for consistency.
1384 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1385 datadir sysconfdir sharedstatedir localstatedir includedir \
1386 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1387 libdir localedir mandir
1389 eval ac_val=\$$ac_var
1390 # Remove trailing slashes.
1393 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1394 eval $ac_var=\$ac_val;;
1396 # Be sure to have absolute directory names.
1398 [\\/$]* | ?:[\\/]* ) continue;;
1399 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1401 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1404 # There might be people who depend on the old broken behavior: `$host'
1405 # used to hold the argument of --host etc.
1406 # FIXME: To remove some day.
1409 target=$target_alias
1411 # FIXME: To remove some day.
1412 if test "x$host_alias" != x; then
1413 if test "x$build_alias" = x; then
1414 cross_compiling=maybe
1415 elif test "x$build_alias" != "x$host_alias"; then
1421 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1423 test "$silent" = yes && exec 6>/dev/null
1426 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1427 ac_ls_di=`ls -di .` &&
1428 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1429 as_fn_error $? "working directory cannot be determined"
1430 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1431 as_fn_error $? "pwd does not report name of working directory"
1434 # Find the source files, if location was not specified.
1435 if test -z "$srcdir"; then
1436 ac_srcdir_defaulted=yes
1437 # Try the directory containing this script, then the parent directory.
1438 ac_confdir=`$as_dirname -- "$as_myself" ||
1439 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1440 X"$as_myself" : 'X\(//\)[^/]' \| \
1441 X"$as_myself" : 'X\(//\)$' \| \
1442 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1443 $as_echo X"$as_myself" |
1444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1466 ac_srcdir_defaulted=no
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1469 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1470 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1472 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1474 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1476 # When building in place, set srcdir=.
1477 if test "$ac_abs_confdir" = "$ac_pwd"; then
1480 # Remove unnecessary trailing slashes from srcdir.
1481 # Double slashes in file names in object file debugging info
1482 # mess up M-x gdb in Emacs.
1484 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1486 for ac_var in $ac_precious_vars; do
1487 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1488 eval ac_env_${ac_var}_value=\$${ac_var}
1489 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1490 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1494 # Report the --help message.
1496 if test "$ac_init_help" = "long"; then
1497 # Omit some internal or obsolete options to make the list less imposing.
1498 # This message is too long to be a string in the A/UX 3.1 sh.
1500 \`configure' configures this package to adapt to many kinds of systems.
1502 Usage: $0 [OPTION]... [VAR=VALUE]...
1504 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1505 VAR=VALUE. See below for descriptions of some of the useful variables.
1507 Defaults for the options are specified in brackets.
1510 -h, --help display this help and exit
1511 --help=short display options specific to this package
1512 --help=recursive display the short help of all the included packages
1513 -V, --version display version information and exit
1514 -q, --quiet, --silent do not print \`checking ...' messages
1515 --cache-file=FILE cache test results in FILE [disabled]
1516 -C, --config-cache alias for \`--cache-file=config.cache'
1517 -n, --no-create do not create output files
1518 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1520 Installation directories:
1521 --prefix=PREFIX install architecture-independent files in PREFIX
1522 [$ac_default_prefix]
1523 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1526 By default, \`make install' will install all the files in
1527 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1528 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1529 for instance \`--prefix=\$HOME'.
1531 For better control, use the options below.
1533 Fine tuning of the installation directories:
1534 --bindir=DIR user executables [EPREFIX/bin]
1535 --sbindir=DIR system admin executables [EPREFIX/sbin]
1536 --libexecdir=DIR program executables [EPREFIX/libexec]
1537 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1538 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1539 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1540 --libdir=DIR object code libraries [EPREFIX/lib]
1541 --includedir=DIR C header files [PREFIX/include]
1542 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1543 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1544 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1545 --infodir=DIR info documentation [DATAROOTDIR/info]
1546 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1547 --mandir=DIR man documentation [DATAROOTDIR/man]
1548 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1549 --htmldir=DIR html documentation [DOCDIR]
1550 --dvidir=DIR dvi documentation [DOCDIR]
1551 --pdfdir=DIR pdf documentation [DOCDIR]
1552 --psdir=DIR ps documentation [DOCDIR]
1558 --program-prefix=PREFIX prepend PREFIX to installed program names
1559 --program-suffix=SUFFIX append SUFFIX to installed program names
1560 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1563 --build=BUILD configure for building on BUILD [guessed]
1564 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1565 --target=TARGET configure for building compilers for TARGET [HOST]
1569 if test -n "$ac_init_help"; then
1574 --disable-option-checking ignore unrecognized --enable/--with options
1575 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1576 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1577 --enable-shared[=PKGS] build shared libraries [default=yes]
1578 --enable-static[=PKGS] build static libraries [default=yes]
1579 --enable-fast-install[=PKGS]
1580 optimize for fast installation [default=yes]
1581 --disable-dependency-tracking speeds up one-time build
1582 --enable-dependency-tracking do not reject slow dependency extractors
1583 --disable-libtool-lock avoid locking (might break parallel builds)
1584 --enable-doxygen enable documentation generation with doxygen (auto)
1585 --enable-dot use 'dot' to generate graphs in doxygen (auto)
1586 --enable-html-docs enable HTML generation with doxygen (yes)
1587 --enable-latex-docs enable LaTeX documentation generation with doxygen
1589 --enable-char enable char API (yes)
1590 --enable-wchar_t enable wchar_t API (yes if wchar_t available)
1591 --enable-unichar enable unichar API (no)
1592 --enable-cfstring enable cfstring API (no)
1595 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1596 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1597 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1598 --with-pic try to use only PIC/non-PIC objects [default=use
1600 --with-tags[=TAGS] include additional configurations [automatic]
1601 --with-apr=PATH prefix for installed APR or the full path to
1603 --with-apr-util=PATH prefix for installed APU or the full path to
1605 --with-ODBC ODBC support. Accepted arguments : unixODBC, iODBC,
1606 Microsoft, no (default=no)
1607 --with-SMTP SMTP support. Accepted arguments : libesmtp, no
1609 --with-charset=TYPE locale charset. Accepted TYPE variants: auto, utf-8,
1610 iso-8859-1, usascii, ebcdic (default=auto)
1611 --with-logchar=TYPE type for logchar. Accepted TYPE variants: utf-8,
1612 wchar_t, unichar (default=utf-8)
1614 Some influential environment variables:
1615 CC C compiler command
1616 CFLAGS C compiler flags
1617 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1618 nonstandard directory <lib dir>
1619 LIBS libraries to pass to the linker, e.g. -l<library>
1620 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1621 you have headers in a nonstandard directory <include dir>
1623 CXX C++ compiler command
1624 CXXFLAGS C++ compiler flags
1625 CXXCPP C++ preprocessor
1626 F77 Fortran 77 compiler command
1627 FFLAGS Fortran 77 compiler flags
1629 Use these variables to override the choices made by `configure' or to help
1630 it to find libraries and programs with nonstandard names/locations.
1632 Report bugs to the package provider.
1637 if test "$ac_init_help" = "recursive"; then
1638 # If there are subdirs, report their specific --help.
1639 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1640 test -d "$ac_dir" ||
1641 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1646 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1649 # A ".." for each directory in $ac_dir_suffix.
1650 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1651 case $ac_top_builddir_sub in
1652 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1656 ac_abs_top_builddir=$ac_pwd
1657 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1658 # for backward compatibility:
1659 ac_top_builddir=$ac_top_build_prefix
1662 .) # We are building in place.
1664 ac_top_srcdir=$ac_top_builddir_sub
1665 ac_abs_top_srcdir=$ac_pwd ;;
1666 [\\/]* | ?:[\\/]* ) # Absolute name.
1667 ac_srcdir=$srcdir$ac_dir_suffix;
1668 ac_top_srcdir=$srcdir
1669 ac_abs_top_srcdir=$srcdir ;;
1671 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672 ac_top_srcdir=$ac_top_build_prefix$srcdir
1673 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677 cd "$ac_dir" || { ac_status=$?; continue; }
1678 # Check for guested configure.
1679 if test -f "$ac_srcdir/configure.gnu"; then
1681 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682 elif test -f "$ac_srcdir/configure"; then
1684 $SHELL "$ac_srcdir/configure" --help=recursive
1686 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1688 cd "$ac_pwd" || { ac_status=$?; break; }
1692 test -n "$ac_init_help" && exit $ac_status
1693 if $ac_init_version; then
1696 generated by GNU Autoconf 2.69
1698 Copyright (C) 2012 Free Software Foundation, Inc.
1699 This configure script is free software; the Free Software Foundation
1700 gives unlimited permission to copy, distribute and modify it.
1705 ## ------------------------ ##
1706 ## Autoconf initialization. ##
1707 ## ------------------------ ##
1709 # ac_fn_c_try_compile LINENO
1710 # --------------------------
1711 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_compile ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext
1716 if { { ac_try="$ac_compile"
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_compile") 2>conftest.err
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest.$ac_objext; then :
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1745 } # ac_fn_c_try_compile
1747 # ac_fn_c_try_link LINENO
1748 # -----------------------
1749 # Try to link conftest.$ac_ext, and return whether this succeeded.
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 rm -f conftest.$ac_objext conftest$ac_exeext
1754 if { { ac_try="$ac_link"
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_link") 2>conftest.err
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && {
1770 test -z "$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1772 } && test -s conftest$ac_exeext && {
1773 test "$cross_compiling" = yes ||
1774 test -x conftest$ac_exeext
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1783 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1784 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1785 # interfere with the next link command; also delete a directory that is
1786 # left behind by Apple's compiler. We do this before executing the actions.
1787 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789 as_fn_set_status $ac_retval
1791 } # ac_fn_c_try_link
1793 # ac_fn_c_try_cpp LINENO
1794 # ----------------------
1795 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if { { ac_try="$ac_cpp conftest.$ac_ext"
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } > conftest.i && {
1815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1830 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1831 # -------------------------------------------------------
1832 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1833 # the include files in INCLUDES and setting the cache variable VAR
1835 ac_fn_c_check_header_mongrel ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 if eval \${$3+:} false; then :
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842 $as_echo_n "(cached) " >&6
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1848 # Is the header compilable?
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1850 $as_echo_n "checking $2 usability... " >&6; }
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1856 if ac_fn_c_try_compile "$LINENO"; then :
1857 ac_header_compiler=yes
1859 ac_header_compiler=no
1861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1863 $as_echo "$ac_header_compiler" >&6; }
1865 # Is the header present?
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1867 $as_echo_n "checking $2 presence... " >&6; }
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1872 if ac_fn_c_try_cpp "$LINENO"; then :
1873 ac_header_preproc=yes
1875 ac_header_preproc=no
1877 rm -f conftest.err conftest.i conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1879 $as_echo "$ac_header_preproc" >&6; }
1881 # So? What about this header?
1882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1885 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1887 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1891 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1893 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1895 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1897 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1899 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if eval \${$3+:} false; then :
1905 $as_echo_n "(cached) " >&6
1907 eval "$3=\$ac_header_compiler"
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 } # ac_fn_c_check_header_mongrel
1917 # ac_fn_c_try_run LINENO
1918 # ----------------------
1919 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1920 # that executables *can* be run.
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if { { ac_try="$ac_link"
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>&5
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1935 { { case "(($ac_try" in
1936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937 *) ac_try_echo=$ac_try;;
1939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940 $as_echo "$ac_try_echo"; } >&5
1941 (eval "$ac_try") 2>&5
1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; }; }; then :
1947 $as_echo "$as_me: program exited with status $ac_status" >&5
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1951 ac_retval=$ac_status
1953 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 as_fn_set_status $ac_retval
1959 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1960 # -------------------------------------------------------
1961 # Tests whether HEADER exists and can be compiled using the include files in
1962 # INCLUDES, setting the cache variable VAR accordingly.
1963 ac_fn_c_check_header_compile ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if eval \${$3+:} false; then :
1969 $as_echo_n "(cached) " >&6
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1976 if ac_fn_c_try_compile "$LINENO"; then :
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988 } # ac_fn_c_check_header_compile
1990 # ac_fn_c_check_func LINENO FUNC VAR
1991 # ----------------------------------
1992 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1993 ac_fn_c_check_func ()
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval \${$3+:} false; then :
1999 $as_echo_n "(cached) " >&6
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2005 #define $2 innocuous_$2
2007 /* System header to define __stub macros and hopefully few prototypes,
2008 which can conflict with char $2 (); below.
2009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2010 <limits.h> exists even on freestanding compilers. */
2013 # include <limits.h>
2015 # include <assert.h>
2020 /* Override any GCC internal prototype to avoid an error.
2021 Use char because int might match the return type of a GCC
2022 builtin and then its argument prototype would still apply. */
2027 /* The GNU C library defines this for functions which it implements
2028 to always fail with ENOSYS. Some functions are actually named
2029 something starting with __ and the normal name is an alias. */
2030 #if defined __stub_$2 || defined __stub___$2
2042 if ac_fn_c_try_link "$LINENO"; then :
2047 rm -f core conftest.err conftest.$ac_objext \
2048 conftest$ac_exeext conftest.$ac_ext
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 } # ac_fn_c_check_func
2057 # ac_fn_cxx_try_compile LINENO
2058 # ----------------------------
2059 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2060 ac_fn_cxx_try_compile ()
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 rm -f conftest.$ac_objext
2064 if { { ac_try="$ac_compile"
2066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2067 *) ac_try_echo=$ac_try;;
2069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2070 $as_echo "$ac_try_echo"; } >&5
2071 (eval "$ac_compile") 2>conftest.err
2073 if test -s conftest.err; then
2074 grep -v '^ *+' conftest.err >conftest.er1
2075 cat conftest.er1 >&5
2076 mv -f conftest.er1 conftest.err
2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079 test $ac_status = 0; } && {
2080 test -z "$ac_cxx_werror_flag" ||
2081 test ! -s conftest.err
2082 } && test -s conftest.$ac_objext; then :
2085 $as_echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091 as_fn_set_status $ac_retval
2093 } # ac_fn_cxx_try_compile
2095 # ac_fn_cxx_try_cpp LINENO
2096 # ------------------------
2097 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2098 ac_fn_cxx_try_cpp ()
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 if { { ac_try="$ac_cpp conftest.$ac_ext"
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107 $as_echo "$ac_try_echo"; } >&5
2108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2110 if test -s conftest.err; then
2111 grep -v '^ *+' conftest.err >conftest.er1
2112 cat conftest.er1 >&5
2113 mv -f conftest.er1 conftest.err
2115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2116 test $ac_status = 0; } > conftest.i && {
2117 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2118 test ! -s conftest.err
2122 $as_echo "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.$ac_ext >&5
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128 as_fn_set_status $ac_retval
2130 } # ac_fn_cxx_try_cpp
2132 # ac_fn_cxx_try_link LINENO
2133 # -------------------------
2134 # Try to link conftest.$ac_ext, and return whether this succeeded.
2135 ac_fn_cxx_try_link ()
2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138 rm -f conftest.$ac_objext conftest$ac_exeext
2139 if { { ac_try="$ac_link"
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_link") 2>conftest.err
2148 if test -s conftest.err; then
2149 grep -v '^ *+' conftest.err >conftest.er1
2150 cat conftest.er1 >&5
2151 mv -f conftest.er1 conftest.err
2153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154 test $ac_status = 0; } && {
2155 test -z "$ac_cxx_werror_flag" ||
2156 test ! -s conftest.err
2157 } && test -s conftest$ac_exeext && {
2158 test "$cross_compiling" = yes ||
2159 test -x conftest$ac_exeext
2163 $as_echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2168 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2169 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2170 # interfere with the next link command; also delete a directory that is
2171 # left behind by Apple's compiler. We do this before executing the actions.
2172 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174 as_fn_set_status $ac_retval
2176 } # ac_fn_cxx_try_link
2178 # ac_fn_f77_try_compile LINENO
2179 # ----------------------------
2180 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2181 ac_fn_f77_try_compile ()
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 rm -f conftest.$ac_objext
2185 if { { ac_try="$ac_compile"
2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2191 $as_echo "$ac_try_echo"; } >&5
2192 (eval "$ac_compile") 2>conftest.err
2194 if test -s conftest.err; then
2195 grep -v '^ *+' conftest.err >conftest.er1
2196 cat conftest.er1 >&5
2197 mv -f conftest.er1 conftest.err
2199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2200 test $ac_status = 0; } && {
2201 test -z "$ac_f77_werror_flag" ||
2202 test ! -s conftest.err
2203 } && test -s conftest.$ac_objext; then :
2206 $as_echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212 as_fn_set_status $ac_retval
2214 } # ac_fn_f77_try_compile
2216 # ac_fn_f77_try_link LINENO
2217 # -------------------------
2218 # Try to link conftest.$ac_ext, and return whether this succeeded.
2219 ac_fn_f77_try_link ()
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 rm -f conftest.$ac_objext conftest$ac_exeext
2223 if { { ac_try="$ac_link"
2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2229 $as_echo "$ac_try_echo"; } >&5
2230 (eval "$ac_link") 2>conftest.err
2232 if test -s conftest.err; then
2233 grep -v '^ *+' conftest.err >conftest.er1
2234 cat conftest.er1 >&5
2235 mv -f conftest.er1 conftest.err
2237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238 test $ac_status = 0; } && {
2239 test -z "$ac_f77_werror_flag" ||
2240 test ! -s conftest.err
2241 } && test -s conftest$ac_exeext && {
2242 test "$cross_compiling" = yes ||
2243 test -x conftest$ac_exeext
2247 $as_echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2252 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2253 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2254 # interfere with the next link command; also delete a directory that is
2255 # left behind by Apple's compiler. We do this before executing the actions.
2256 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258 as_fn_set_status $ac_retval
2260 } # ac_fn_f77_try_link
2262 # ac_fn_cxx_check_func LINENO FUNC VAR
2263 # ------------------------------------
2264 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2265 ac_fn_cxx_check_func ()
2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2269 $as_echo_n "checking for $2... " >&6; }
2270 if eval \${$3+:} false; then :
2271 $as_echo_n "(cached) " >&6
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2275 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2277 #define $2 innocuous_$2
2279 /* System header to define __stub macros and hopefully few prototypes,
2280 which can conflict with char $2 (); below.
2281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2282 <limits.h> exists even on freestanding compilers. */
2285 # include <limits.h>
2287 # include <assert.h>
2292 /* Override any GCC internal prototype to avoid an error.
2293 Use char because int might match the return type of a GCC
2294 builtin and then its argument prototype would still apply. */
2299 /* The GNU C library defines this for functions which it implements
2300 to always fail with ENOSYS. Some functions are actually named
2301 something starting with __ and the normal name is an alias. */
2302 #if defined __stub_$2 || defined __stub___$2
2314 if ac_fn_cxx_try_link "$LINENO"; then :
2319 rm -f core conftest.err conftest.$ac_objext \
2320 conftest$ac_exeext conftest.$ac_ext
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2324 $as_echo "$ac_res" >&6; }
2325 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2327 } # ac_fn_cxx_check_func
2329 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2330 # ---------------------------------------------------------
2331 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2332 # the include files in INCLUDES and setting the cache variable VAR
2334 ac_fn_cxx_check_header_mongrel ()
2336 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337 if eval \${$3+:} false; then :
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2339 $as_echo_n "checking for $2... " >&6; }
2340 if eval \${$3+:} false; then :
2341 $as_echo_n "(cached) " >&6
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345 $as_echo "$ac_res" >&6; }
2347 # Is the header compilable?
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2349 $as_echo_n "checking $2 usability... " >&6; }
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h. */
2355 if ac_fn_cxx_try_compile "$LINENO"; then :
2356 ac_header_compiler=yes
2358 ac_header_compiler=no
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2362 $as_echo "$ac_header_compiler" >&6; }
2364 # Is the header present?
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2366 $as_echo_n "checking $2 presence... " >&6; }
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2371 if ac_fn_cxx_try_cpp "$LINENO"; then :
2372 ac_header_preproc=yes
2374 ac_header_preproc=no
2376 rm -f conftest.err conftest.i conftest.$ac_ext
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2378 $as_echo "$ac_header_preproc" >&6; }
2380 # So? What about this header?
2381 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2384 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2386 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2390 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2392 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2394 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2396 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2398 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2402 $as_echo_n "checking for $2... " >&6; }
2403 if eval \${$3+:} false; then :
2404 $as_echo_n "(cached) " >&6
2406 eval "$3=\$ac_header_compiler"
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2410 $as_echo "$ac_res" >&6; }
2412 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2414 } # ac_fn_cxx_check_header_mongrel
2415 cat >config.log <<_ACEOF
2416 This file contains any messages produced by compilers while
2417 running configure, to aid debugging if configure makes a mistake.
2419 It was created by $as_me, which was
2420 generated by GNU Autoconf 2.69. Invocation command line was
2432 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2433 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2434 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2435 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2436 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2438 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2439 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2441 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2442 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2443 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2444 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2445 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2446 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2447 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 test -z "$as_dir" && as_dir=.
2456 $as_echo "PATH: $as_dir"
2472 # Keep a trace of the command line.
2473 # Strip out --no-create and --no-recursion so they do not pile up.
2474 # Strip out --silent because we don't want to record it for future runs.
2475 # Also quote any args containing shell meta-characters.
2476 # Make two passes to allow for proper duplicate-argument suppression.
2480 ac_must_keep_next=false
2486 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2487 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2488 | -silent | --silent | --silen | --sile | --sil)
2491 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2494 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2496 as_fn_append ac_configure_args1 " '$ac_arg'"
2497 if test $ac_must_keep_next = true; then
2498 ac_must_keep_next=false # Got value, back to normal.
2501 *=* | --config-cache | -C | -disable-* | --disable-* \
2502 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2503 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2504 | -with-* | --with-* | -without-* | --without-* | --x)
2505 case "$ac_configure_args0 " in
2506 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2509 -* ) ac_must_keep_next=true ;;
2512 as_fn_append ac_configure_args " '$ac_arg'"
2517 { ac_configure_args0=; unset ac_configure_args0;}
2518 { ac_configure_args1=; unset ac_configure_args1;}
2520 # When interrupted or exit'd, cleanup temporary files, and complete
2521 # config.log. We remove comments because anyway the quotes in there
2522 # would cause problems or look ugly.
2523 # WARNING: Use '\'' to represent an apostrophe within the trap.
2524 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2525 trap 'exit_status=$?
2526 # Save into config.log some information that might help in debugging.
2530 $as_echo "## ---------------- ##
2531 ## Cache variables. ##
2532 ## ---------------- ##"
2534 # The following way of writing the cache mishandles newlines in values,
2536 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2537 eval ac_val=\$$ac_var
2541 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2542 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2545 _ | IFS | as_nl) ;; #(
2546 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2547 *) { eval $ac_var=; unset $ac_var;} ;;
2552 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2553 *${as_nl}ac_space=\ *)
2555 "s/'\''/'\''\\\\'\'''\''/g;
2556 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2559 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2566 $as_echo "## ----------------- ##
2567 ## Output variables. ##
2568 ## ----------------- ##"
2570 for ac_var in $ac_subst_vars
2572 eval ac_val=\$$ac_var
2574 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2576 $as_echo "$ac_var='\''$ac_val'\''"
2580 if test -n "$ac_subst_files"; then
2581 $as_echo "## ------------------- ##
2582 ## File substitutions. ##
2583 ## ------------------- ##"
2585 for ac_var in $ac_subst_files
2587 eval ac_val=\$$ac_var
2589 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2591 $as_echo "$ac_var='\''$ac_val'\''"
2596 if test -s confdefs.h; then
2597 $as_echo "## ----------- ##
2604 test "$ac_signal" != 0 &&
2605 $as_echo "$as_me: caught signal $ac_signal"
2606 $as_echo "$as_me: exit $exit_status"
2608 rm -f core *.core core.conftest.* &&
2609 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2612 for ac_signal in 1 2 13 15; do
2613 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2617 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2618 rm -f -r conftest* confdefs.h
2620 $as_echo "/* confdefs.h */" > confdefs.h
2622 # Predefined preprocessor variables.
2624 cat >>confdefs.h <<_ACEOF
2625 #define PACKAGE_NAME "$PACKAGE_NAME"
2628 cat >>confdefs.h <<_ACEOF
2629 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2632 cat >>confdefs.h <<_ACEOF
2633 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2636 cat >>confdefs.h <<_ACEOF
2637 #define PACKAGE_STRING "$PACKAGE_STRING"
2640 cat >>confdefs.h <<_ACEOF
2641 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2644 cat >>confdefs.h <<_ACEOF
2645 #define PACKAGE_URL "$PACKAGE_URL"
2649 # Let the site file select an alternate cache file if it wants to.
2650 # Prefer an explicitly selected file to automatically selected ones.
2653 if test -n "$CONFIG_SITE"; then
2654 # We do not want a PATH search for config.site.
2655 case $CONFIG_SITE in #((
2656 -*) ac_site_file1=./$CONFIG_SITE;;
2657 */*) ac_site_file1=$CONFIG_SITE;;
2658 *) ac_site_file1=./$CONFIG_SITE;;
2660 elif test "x$prefix" != xNONE; then
2661 ac_site_file1=$prefix/share/config.site
2662 ac_site_file2=$prefix/etc/config.site
2664 ac_site_file1=$ac_default_prefix/share/config.site
2665 ac_site_file2=$ac_default_prefix/etc/config.site
2667 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2669 test "x$ac_site_file" = xNONE && continue
2670 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2672 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2673 sed 's/^/| /' "$ac_site_file" >&5
2675 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2677 as_fn_error $? "failed to load site script $ac_site_file
2678 See \`config.log' for more details" "$LINENO" 5; }
2682 if test -r "$cache_file"; then
2683 # Some versions of bash will fail to source /dev/null (special files
2684 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2685 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2687 $as_echo "$as_me: loading cache $cache_file" >&6;}
2689 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2690 *) . "./$cache_file";;
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2695 $as_echo "$as_me: creating cache $cache_file" >&6;}
2699 # Check that the precious variables saved in the cache have kept the same
2701 ac_cache_corrupted=false
2702 for ac_var in $ac_precious_vars; do
2703 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2704 eval ac_new_set=\$ac_env_${ac_var}_set
2705 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2706 eval ac_new_val=\$ac_env_${ac_var}_value
2707 case $ac_old_set,$ac_new_set in
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2710 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2711 ac_cache_corrupted=: ;;
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2714 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2715 ac_cache_corrupted=: ;;
2718 if test "x$ac_old_val" != "x$ac_new_val"; then
2719 # differences in whitespace do not lead to failure.
2720 ac_old_val_w=`echo x $ac_old_val`
2721 ac_new_val_w=`echo x $ac_new_val`
2722 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2724 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2725 ac_cache_corrupted=:
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2728 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2729 eval $ac_var=\$ac_old_val
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2732 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2734 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2737 # Pass precious variables to config.status.
2738 if test "$ac_new_set" = set; then
2740 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2741 *) ac_arg=$ac_var=$ac_new_val ;;
2743 case " $ac_configure_args " in
2744 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2745 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2749 if $ac_cache_corrupted; then
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2753 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2754 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2756 ## -------------------- ##
2757 ## Main body of script. ##
2758 ## -------------------- ##
2761 ac_cpp='$CPP $CPPFLAGS'
2762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768 # Licensed to the Apache Software Foundation (ASF) under one or more
2769 # contributor license agreements. See the NOTICE file distributed with
2770 # this work for additional information regarding copyright ownership.
2771 # The ASF licenses this file to You under the Apache License, Version 2.0
2772 # (the "License"); you may not use this file except in compliance with
2773 # the License. You may obtain a copy of the License at
2775 # http://www.apache.org/licenses/LICENSE-2.0
2777 # Unless required by applicable law or agreed to in writing, software
2778 # distributed under the License is distributed on an "AS IS" BASIS,
2779 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2780 # See the License for the specific language governing permissions and
2781 # limitations under the License.
2783 # autoconf 2.50 or higher to rebuild aclocal.m4, because the
2784 # AC_CREATE_PREFIX_CONFIG_H macro needs the AS_DIRNAME macro.
2788 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2789 if test -f "$ac_dir/install-sh"; then
2791 ac_install_sh="$ac_aux_dir/install-sh -c"
2793 elif test -f "$ac_dir/install.sh"; then
2795 ac_install_sh="$ac_aux_dir/install.sh -c"
2797 elif test -f "$ac_dir/shtool"; then
2799 ac_install_sh="$ac_aux_dir/shtool install -c"
2803 if test -z "$ac_aux_dir"; then
2804 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2807 # These three variables are undocumented and unsupported,
2808 # and are intended to be withdrawn in a future Autoconf release.
2809 # They can cause serious problems if a builder's source tree is in a directory
2810 # whose full name contains unusual characters.
2811 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2812 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2813 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2816 # Make sure we can run config.sub.
2817 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2818 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2821 $as_echo_n "checking build system type... " >&6; }
2822 if ${ac_cv_build+:} false; then :
2823 $as_echo_n "(cached) " >&6
2825 ac_build_alias=$build_alias
2826 test "x$ac_build_alias" = x &&
2827 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2828 test "x$ac_build_alias" = x &&
2829 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2830 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2831 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2835 $as_echo "$ac_cv_build" >&6; }
2836 case $ac_cv_build in
2838 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2841 ac_save_IFS=$IFS; IFS='-'
2847 # Remember, the first character of IFS is used to create $*,
2848 # except with old shells:
2851 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2855 $as_echo_n "checking host system type... " >&6; }
2856 if ${ac_cv_host+:} false; then :
2857 $as_echo_n "(cached) " >&6
2859 if test "x$host_alias" = x; then
2860 ac_cv_host=$ac_cv_build
2862 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2863 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2868 $as_echo "$ac_cv_host" >&6; }
2871 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2874 ac_save_IFS=$IFS; IFS='-'
2880 # Remember, the first character of IFS is used to create $*,
2881 # except with old shells:
2884 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2888 $as_echo_n "checking target system type... " >&6; }
2889 if ${ac_cv_target+:} false; then :
2890 $as_echo_n "(cached) " >&6
2892 if test "x$target_alias" = x; then
2893 ac_cv_target=$ac_cv_host
2895 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2896 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2901 $as_echo "$ac_cv_target" >&6; }
2902 case $ac_cv_target in
2904 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2906 target=$ac_cv_target
2907 ac_save_IFS=$IFS; IFS='-'
2913 # Remember, the first character of IFS is used to create $*,
2914 # except with old shells:
2917 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2920 # The aliases save the names the user supplied, while $host etc.
2921 # will get canonicalized.
2922 test -n "$target_alias" &&
2923 test "$program_prefix$program_suffix$program_transform_name" = \
2925 program_prefix=${target_alias}-
2928 # +1 : ? : +1 == new interface that does not break old one
2929 # +1 : ? : 0 == new interface that breaks old one
2930 # ? : ? : 0 == no new interfaces, but breaks apps
2931 # ? :+1 : ? == just some internal changes, nothing breaks but might work
2933 # CURRENT : REVISION : AGE
2940 am__api_version="1.9"
2941 # Find a good install program. We prefer a C program (faster),
2942 # so one script is as good as another. But avoid the broken or
2943 # incompatible versions:
2944 # SysV /etc/install, /usr/sbin/install
2945 # SunOS /usr/etc/install
2946 # IRIX /sbin/install
2948 # AmigaOS /C/install, which installs bootblocks on floppy discs
2949 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2950 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2951 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2952 # OS/2's system install, which has a completely different semantic
2953 # ./install, which can be erroneously created by make from ./install.sh.
2954 # Reject install programs that cannot install multiple files.
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2956 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2957 if test -z "$INSTALL"; then
2958 if ${ac_cv_path_install+:} false; then :
2959 $as_echo_n "(cached) " >&6
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 test -z "$as_dir" && as_dir=.
2966 # Account for people who put trailing slashes in PATH elements.
2967 case $as_dir/ in #((
2968 ./ | .// | /[cC]/* | \
2969 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2970 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2973 # OSF1 and SCO ODT 3.0 have their own names for install.
2974 # Don't use installbsd from OSF since it installs stuff as root
2976 for ac_prog in ginstall scoinst install; do
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2979 if test $ac_prog = install &&
2980 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2981 # AIX install. It has an incompatible calling convention.
2983 elif test $ac_prog = install &&
2984 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2985 # program-specific install script used by HP pwplus--don't use.
2988 rm -rf conftest.one conftest.two conftest.dir
2989 echo one > conftest.one
2990 echo two > conftest.two
2992 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2993 test -s conftest.one && test -s conftest.two &&
2994 test -s conftest.dir/conftest.one &&
2995 test -s conftest.dir/conftest.two
2997 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3010 rm -rf conftest.one conftest.two conftest.dir
3013 if test "${ac_cv_path_install+set}" = set; then
3014 INSTALL=$ac_cv_path_install
3016 # As a last resort, use the slow shell script. Don't cache a
3017 # value for INSTALL within a source directory, because that will
3018 # break other packages using the cache if that directory is
3019 # removed, or if the value is a relative name.
3020 INSTALL=$ac_install_sh
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3024 $as_echo "$INSTALL" >&6; }
3026 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3027 # It thinks the first close brace ends the variable substitution.
3028 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3030 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3032 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3035 $as_echo_n "checking whether build environment is sane... " >&6; }
3038 echo timestamp > conftest.file
3039 # Do `set' in a subshell so we don't clobber the current shell's
3040 # arguments. Must try -L first in case configure is actually a
3041 # symlink; some systems play weird games with the mod time of symlinks
3042 # (eg FreeBSD returns the mod time of the symlink's containing
3045 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3046 if test "$*" = "X"; then
3048 set X `ls -t $srcdir/configure conftest.file`
3051 if test "$*" != "X $srcdir/configure conftest.file" \
3052 && test "$*" != "X conftest.file $srcdir/configure"; then
3054 # If neither matched, then we have a broken ls. This can happen
3055 # if, for instance, CONFIG_SHELL is bash and it inherits a
3056 # broken ls alias from the environment. This has actually
3057 # happened. Such a system could not be considered "sane".
3058 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3059 alias in your environment" "$LINENO" 5
3062 test "$2" = conftest.file
3068 as_fn_error $? "newly created file is older than distributed files!
3069 Check your system clock" "$LINENO" 5
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3072 $as_echo "yes" >&6; }
3073 test "$program_prefix" != NONE &&
3074 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3075 # Use a double $ so make ignores it.
3076 test "$program_suffix" != NONE &&
3077 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3078 # Double any \ or $.
3079 # By default was `s,x,x', remove it if useless.
3080 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3081 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3083 # expand $ac_aux_dir to an absolute path
3084 am_aux_dir=`cd $ac_aux_dir && pwd`
3086 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3087 # Use eval to expand $SHELL
3088 if eval "$MISSING --run true"; then
3089 am_missing_run="$MISSING --run "
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3093 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3096 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3097 # We used to keeping the `.' as first argument, in order to
3098 # allow $(mkdir_p) to be used without argument. As in
3099 # $(mkdir_p) $(somedir)
3100 # where $(somedir) is conditionally defined. However this is wrong
3102 # 1. if the package is installed by a user who cannot write `.'
3103 # make install will fail,
3104 # 2. the above comment should most certainly read
3105 # $(mkdir_p) $(DESTDIR)$(somedir)
3106 # so it does not work when $(somedir) is undefined and
3107 # $(DESTDIR) is not.
3108 # To support the latter case, we have to write
3109 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3110 # so the `.' trick is pointless.
3111 mkdir_p='mkdir -p --'
3113 # On NextStep and OpenStep, the `mkdir' command does not
3114 # recognize any option. It will interpret all options as
3115 # directories to create, and then abort because `.' already
3117 for d in ./-p ./--version;
3119 test -d $d && rmdir $d
3121 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3122 if test -f "$ac_aux_dir/mkinstalldirs"; then
3123 mkdir_p='$(mkinstalldirs)'
3125 mkdir_p='$(install_sh) -d'
3129 for ac_prog in gawk mawk nawk awk
3131 # Extract the first word of "$ac_prog", so it can be a program name with args.
3132 set dummy $ac_prog; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_AWK+:} false; then :
3136 $as_echo_n "(cached) " >&6
3138 if test -n "$AWK"; then
3139 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148 ac_cv_prog_AWK="$ac_prog"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 if test -n "$AWK"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3161 $as_echo "$AWK" >&6; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3168 test -n "$AWK" && break
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3172 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3174 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3175 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3176 $as_echo_n "(cached) " >&6
3178 cat >conftest.make <<\_ACEOF
3181 @echo '@@@%%%=$(MAKE)=@@@%%%'
3183 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3184 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3186 eval ac_cv_prog_make_${ac_make}_set=yes;;
3188 eval ac_cv_prog_make_${ac_make}_set=no;;
3192 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3194 $as_echo "yes" >&6; }
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3199 SET_MAKE="MAKE=${MAKE-make}"
3202 rm -rf .tst 2>/dev/null
3203 mkdir .tst 2>/dev/null
3204 if test -d .tst; then
3209 rmdir .tst 2>/dev/null
3211 # test to see if srcdir already configured
3212 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3213 test -f $srcdir/config.status; then
3214 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3217 # test whether we have cygpath
3218 if test -z "$CYGPATH_W"; then
3219 if (cygpath --version) >/dev/null 2>/dev/null; then
3220 CYGPATH_W='cygpath -w'
3227 # Define the identity of the package.
3232 cat >>confdefs.h <<_ACEOF
3233 #define PACKAGE "$PACKAGE"
3237 cat >>confdefs.h <<_ACEOF
3238 #define VERSION "$VERSION"
3241 # Some tools Automake needs.
3243 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3246 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3249 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3252 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3255 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3257 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3259 # Installed binaries are usually stripped using `strip' when the user
3260 # run `make install-strip'. However `strip' might not be the right
3261 # tool to use in cross-compilation environments, therefore Automake
3262 # will honor the `STRIP' environment variable to overrule this program.
3263 if test "$cross_compiling" != no; then
3264 if test -n "$ac_tool_prefix"; then
3265 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3266 set dummy ${ac_tool_prefix}strip; ac_word=$2
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268 $as_echo_n "checking for $ac_word... " >&6; }
3269 if ${ac_cv_prog_STRIP+:} false; then :
3270 $as_echo_n "(cached) " >&6
3272 if test -n "$STRIP"; then
3273 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 test -z "$as_dir" && as_dir=.
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3282 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 STRIP=$ac_cv_prog_STRIP
3293 if test -n "$STRIP"; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3295 $as_echo "$STRIP" >&6; }
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3303 if test -z "$ac_cv_prog_STRIP"; then
3305 # Extract the first word of "strip", so it can be a program name with args.
3306 set dummy strip; ac_word=$2
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308 $as_echo_n "checking for $ac_word... " >&6; }
3309 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3310 $as_echo_n "(cached) " >&6
3312 if test -n "$ac_ct_STRIP"; then
3313 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 test -z "$as_dir" && as_dir=.
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3322 ac_cv_prog_ac_ct_STRIP="strip"
3323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3333 if test -n "$ac_ct_STRIP"; then
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3335 $as_echo "$ac_ct_STRIP" >&6; }
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338 $as_echo "no" >&6; }
3341 if test "x$ac_ct_STRIP" = x; then
3344 case $cross_compiling:$ac_tool_warned in
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3348 ac_tool_warned=yes ;;
3353 STRIP="$ac_cv_prog_STRIP"
3357 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3359 # We need awk for the "check" target. The system "awk" is bad on
3361 # Always define AMTAR for backward compatibility.
3363 AMTAR=${AMTAR-"${am_missing_run}tar"}
3365 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3372 # Checks for programs
3373 # ----------------------------------------------------------------------------
3375 # Check whether --enable-shared was given.
3376 if test "${enable_shared+set}" = set; then :
3377 enableval=$enable_shared; p=${PACKAGE-default}
3379 yes) enable_shared=yes ;;
3380 no) enable_shared=no ;;
3383 # Look at the argument we got. We use all the common list separators.
3384 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3385 for pkg in $enableval; do
3387 if test "X$pkg" = "X$p"; then
3399 # Check whether --enable-static was given.
3400 if test "${enable_static+set}" = set; then :
3401 enableval=$enable_static; p=${PACKAGE-default}
3403 yes) enable_static=yes ;;
3404 no) enable_static=no ;;
3407 # Look at the argument we got. We use all the common list separators.
3408 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3409 for pkg in $enableval; do
3411 if test "X$pkg" = "X$p"; then
3423 # Check whether --enable-fast-install was given.
3424 if test "${enable_fast_install+set}" = set; then :
3425 enableval=$enable_fast_install; p=${PACKAGE-default}
3427 yes) enable_fast_install=yes ;;
3428 no) enable_fast_install=no ;;
3430 enable_fast_install=no
3431 # Look at the argument we got. We use all the common list separators.
3432 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3433 for pkg in $enableval; do
3435 if test "X$pkg" = "X$p"; then
3436 enable_fast_install=yes
3443 enable_fast_install=yes
3447 DEPDIR="${am__leading_dot}deps"
3449 ac_config_commands="$ac_config_commands depfiles"
3452 am_make=${MAKE-make}
3453 cat > confinc << 'END'
3458 # If we don't find an include directive, just comment out the code.
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3460 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3464 # First try GNU make style include.
3465 echo "include confinc" > confmf
3466 # We grep out `Entering directory' and `Leaving directory'
3467 # messages which can occur if `w' ends up in MAKEFLAGS.
3468 # In particular we don't look at `^make:' because GNU make might
3469 # be invoked under some other name (usually "gmake"), in which
3470 # case it prints its new name instead of `make'.
3471 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3476 # Now try BSD make style include.
3477 if test "$am__include" = "#"; then
3478 echo '.include "confinc"' > confmf
3479 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3480 am__include=.include
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3488 $as_echo "$_am_result" >&6; }
3489 rm -f confinc confmf
3491 # Check whether --enable-dependency-tracking was given.
3492 if test "${enable_dependency_tracking+set}" = set; then :
3493 enableval=$enable_dependency_tracking;
3496 if test "x$enable_dependency_tracking" != xno; then
3497 am_depcomp="$ac_aux_dir/depcomp"
3502 if test "x$enable_dependency_tracking" != xno; then
3513 ac_cpp='$CPP $CPPFLAGS'
3514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517 if test -n "$ac_tool_prefix"; then
3518 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3519 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 $as_echo_n "checking for $ac_word... " >&6; }
3522 if ${ac_cv_prog_CC+:} false; then :
3523 $as_echo_n "(cached) " >&6
3525 if test -n "$CC"; then
3526 ac_cv_prog_CC="$CC" # Let the user override the test.
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 test -z "$as_dir" && as_dir=.
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3535 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3546 if test -n "$CC"; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3548 $as_echo "$CC" >&6; }
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3556 if test -z "$ac_cv_prog_CC"; then
3558 # Extract the first word of "gcc", so it can be a program name with args.
3559 set dummy gcc; ac_word=$2
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3561 $as_echo_n "checking for $ac_word... " >&6; }
3562 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3563 $as_echo_n "(cached) " >&6
3565 if test -n "$ac_ct_CC"; then
3566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 test -z "$as_dir" && as_dir=.
3573 for ac_exec_ext in '' $ac_executable_extensions; do
3574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3575 ac_cv_prog_ac_ct_CC="gcc"
3576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3586 if test -n "$ac_ct_CC"; then
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3588 $as_echo "$ac_ct_CC" >&6; }
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3594 if test "x$ac_ct_CC" = x; then
3597 case $cross_compiling:$ac_tool_warned in
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3601 ac_tool_warned=yes ;;
3609 if test -z "$CC"; then
3610 if test -n "$ac_tool_prefix"; then
3611 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3612 set dummy ${ac_tool_prefix}cc; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if ${ac_cv_prog_CC+:} false; then :
3616 $as_echo_n "(cached) " >&6
3618 if test -n "$CC"; then
3619 ac_cv_prog_CC="$CC" # Let the user override the test.
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628 ac_cv_prog_CC="${ac_tool_prefix}cc"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 if test -n "$CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641 $as_echo "$CC" >&6; }
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3650 if test -z "$CC"; then
3651 # Extract the first word of "cc", so it can be a program name with args.
3652 set dummy cc; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if ${ac_cv_prog_CC+:} false; then :
3656 $as_echo_n "(cached) " >&6
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC="$CC" # Let the user override the test.
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 test -z "$as_dir" && as_dir=.
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3669 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3670 ac_prog_rejected=yes
3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3681 if test $ac_prog_rejected = yes; then
3682 # We found a bogon in the path, so make sure we never use it.
3683 set dummy $ac_cv_prog_CC
3685 if test $# != 0; then
3686 # We chose a different compiler from the bogus one.
3687 # However, it has the same basename, so the bogon will be chosen
3688 # first if we set CC to just the basename; use the full file name.
3690 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3696 if test -n "$CC"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698 $as_echo "$CC" >&6; }
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3706 if test -z "$CC"; then
3707 if test -n "$ac_tool_prefix"; then
3708 for ac_prog in cl.exe
3710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713 $as_echo_n "checking for $ac_word... " >&6; }
3714 if ${ac_cv_prog_CC+:} false; then :
3715 $as_echo_n "(cached) " >&6
3717 if test -n "$CC"; then
3718 ac_cv_prog_CC="$CC" # Let the user override the test.
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 test -z "$as_dir" && as_dir=.
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3727 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 if test -n "$CC"; then
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3740 $as_echo "$CC" >&6; }
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 $as_echo "no" >&6; }
3747 test -n "$CC" && break
3750 if test -z "$CC"; then
3752 for ac_prog in cl.exe
3754 # Extract the first word of "$ac_prog", so it can be a program name with args.
3755 set dummy $ac_prog; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3759 $as_echo_n "(cached) " >&6
3761 if test -n "$ac_ct_CC"; then
3762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3771 ac_cv_prog_ac_ct_CC="$ac_prog"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3782 if test -n "$ac_ct_CC"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3784 $as_echo "$ac_ct_CC" >&6; }
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3791 test -n "$ac_ct_CC" && break
3794 if test "x$ac_ct_CC" = x; then
3797 case $cross_compiling:$ac_tool_warned in
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3801 ac_tool_warned=yes ;;
3810 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812 as_fn_error $? "no acceptable C compiler found in \$PATH
3813 See \`config.log' for more details" "$LINENO" 5; }
3815 # Provide some information about the compiler.
3816 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3819 for ac_option in --version -v -V -qversion; do
3820 { { ac_try="$ac_compiler $ac_option >&5"
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 $as_echo "$ac_try_echo"; } >&5
3827 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3829 if test -s conftest.err; then
3831 ... rest of stderr output deleted ...
3832 10q' conftest.err >conftest.er1
3833 cat conftest.er1 >&5
3835 rm -f conftest.er1 conftest.err
3836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837 test $ac_status = 0; }
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3851 ac_clean_files_save=$ac_clean_files
3852 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3853 # Try to create an executable without -o first, disregard a.out.
3854 # It will help us diagnose broken compilers, and finding out an intuition
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3857 $as_echo_n "checking whether the C compiler works... " >&6; }
3858 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3860 # The possible output files:
3861 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3864 for ac_file in $ac_files
3867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3868 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3873 if { { ac_try="$ac_link_default"
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880 (eval "$ac_link_default") 2>&5
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }; then :
3884 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3885 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3886 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3887 # so that the user can short-circuit this test for compilers unknown to
3889 for ac_file in $ac_files ''
3891 test -f "$ac_file" || continue
3893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3896 # We found the default executable, but exeext='' is most
3900 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3902 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904 # We set ac_cv_exeext here because the later test for it is not
3905 # safe: cross compilers may not add the suffix if given an `-o'
3906 # argument, so we may need to know it at that point already.
3907 # Even if this section looks crufty: it has the advantage of
3914 test "$ac_cv_exeext" = no && ac_cv_exeext=
3919 if test -z "$ac_file"; then :
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921 $as_echo "no" >&6; }
3922 $as_echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 as_fn_error 77 "C compiler cannot create executables
3928 See \`config.log' for more details" "$LINENO" 5; }
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3931 $as_echo "yes" >&6; }
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3934 $as_echo_n "checking for C compiler default output file name... " >&6; }
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3936 $as_echo "$ac_file" >&6; }
3937 ac_exeext=$ac_cv_exeext
3939 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3940 ac_clean_files=$ac_clean_files_save
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3942 $as_echo_n "checking for suffix of executables... " >&6; }
3943 if { { ac_try="$ac_link"
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3949 $as_echo "$ac_try_echo"; } >&5
3950 (eval "$ac_link") 2>&5
3952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3953 test $ac_status = 0; }; then :
3954 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3955 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3956 # work properly (i.e., refer to `conftest.exe'), while it won't with
3958 for ac_file in conftest.exe conftest conftest.*; do
3959 test -f "$ac_file" || continue
3961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3962 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3970 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3971 See \`config.log' for more details" "$LINENO" 5; }
3973 rm -f conftest conftest$ac_cv_exeext
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3975 $as_echo "$ac_cv_exeext" >&6; }
3977 rm -f conftest.$ac_ext
3978 EXEEXT=$ac_cv_exeext
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h. */
3986 FILE *f = fopen ("conftest.out", "w");
3987 return ferror (f) || fclose (f) != 0;
3993 ac_clean_files="$ac_clean_files conftest.out"
3994 # Check that the compiler produces executables we can run. If not, either
3995 # the compiler is broken, or we cross compile.
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3997 $as_echo_n "checking whether we are cross compiling... " >&6; }
3998 if test "$cross_compiling" != yes; then
3999 { { ac_try="$ac_link"
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006 (eval "$ac_link") 2>&5
4008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009 test $ac_status = 0; }
4010 if { ac_try='./conftest$ac_cv_exeext'
4011 { { case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016 $as_echo "$ac_try_echo"; } >&5
4017 (eval "$ac_try") 2>&5
4019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020 test $ac_status = 0; }; }; then
4023 if test "$cross_compiling" = maybe; then
4026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4028 as_fn_error $? "cannot run C compiled programs.
4029 If you meant to cross compile, use \`--host'.
4030 See \`config.log' for more details" "$LINENO" 5; }
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4035 $as_echo "$cross_compiling" >&6; }
4037 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4038 ac_clean_files=$ac_clean_files_save
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4040 $as_echo_n "checking for suffix of object files... " >&6; }
4041 if ${ac_cv_objext+:} false; then :
4042 $as_echo_n "(cached) " >&6
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4055 rm -f conftest.o conftest.obj
4056 if { { ac_try="$ac_compile"
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062 $as_echo "$ac_try_echo"; } >&5
4063 (eval "$ac_compile") 2>&5
4065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }; then :
4067 for ac_file in conftest.o conftest.obj conftest.*; do
4068 test -f "$ac_file" || continue;
4070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4071 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4076 $as_echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4081 as_fn_error $? "cannot compute suffix of object files: cannot compile
4082 See \`config.log' for more details" "$LINENO" 5; }
4084 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4087 $as_echo "$ac_cv_objext" >&6; }
4088 OBJEXT=$ac_cv_objext
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4091 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4092 if ${ac_cv_c_compiler_gnu+:} false; then :
4093 $as_echo_n "(cached) " >&6
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4109 if ac_fn_c_try_compile "$LINENO"; then :
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4119 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4120 if test $ac_compiler_gnu = yes; then
4125 ac_test_CFLAGS=${CFLAGS+set}
4126 ac_save_CFLAGS=$CFLAGS
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4128 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4129 if ${ac_cv_prog_cc_g+:} false; then :
4130 $as_echo_n "(cached) " >&6
4132 ac_save_c_werror_flag=$ac_c_werror_flag
4133 ac_c_werror_flag=yes
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4147 if ac_fn_c_try_compile "$LINENO"; then :
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4162 if ac_fn_c_try_compile "$LINENO"; then :
4165 ac_c_werror_flag=$ac_save_c_werror_flag
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4178 if ac_fn_c_try_compile "$LINENO"; then :
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186 ac_c_werror_flag=$ac_save_c_werror_flag
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4189 $as_echo "$ac_cv_prog_cc_g" >&6; }
4190 if test "$ac_test_CFLAGS" = set; then
4191 CFLAGS=$ac_save_CFLAGS
4192 elif test $ac_cv_prog_cc_g = yes; then
4193 if test "$GCC" = yes; then
4199 if test "$GCC" = yes; then
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4206 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4207 if ${ac_cv_prog_cc_c89+:} false; then :
4208 $as_echo_n "(cached) " >&6
4210 ac_cv_prog_cc_c89=no
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4217 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4218 struct buf { int x; };
4219 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4220 static char *e (p, i)
4226 static char *f (char * (*g) (char **, int), char **p, ...)
4231 s = g (p, va_arg (v,int));
4236 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4237 function prototypes and stuff, but not '\xHH' hex character constants.
4238 These don't provoke an error unfortunately, instead are silently treated
4239 as 'x'. The following induces an error, until -std is added to get
4240 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4241 array size at least. It's necessary to write '\x00'==0 to get something
4242 that's true only with -std. */
4243 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4245 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4246 inside strings and character constants. */
4248 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4250 int test (int i, double x);
4251 struct s1 {int (*f) (int a);};
4252 struct s2 {int (*f) (double a);};
4253 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4259 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4264 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4265 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4267 CC="$ac_save_CC $ac_arg"
4268 if ac_fn_c_try_compile "$LINENO"; then :
4269 ac_cv_prog_cc_c89=$ac_arg
4271 rm -f core conftest.err conftest.$ac_objext
4272 test "x$ac_cv_prog_cc_c89" != "xno" && break
4274 rm -f conftest.$ac_ext
4279 case "x$ac_cv_prog_cc_c89" in
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4282 $as_echo "none needed" >&6; } ;;
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4285 $as_echo "unsupported" >&6; } ;;
4287 CC="$CC $ac_cv_prog_cc_c89"
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4289 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4291 if test "x$ac_cv_prog_cc_c89" != xno; then :
4296 ac_cpp='$CPP $CPPFLAGS'
4297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301 depcc="$CC" am_compiler_list=
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4304 $as_echo_n "checking dependency style of $depcc... " >&6; }
4305 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4306 $as_echo_n "(cached) " >&6
4308 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4309 # We make a subdir and do the tests there. Otherwise we can end up
4310 # making bogus files that we don't know about and never remove. For
4311 # instance it was reported that on HP-UX the gcc test will end up
4312 # making a dummy file named `D' -- because `-MD' means `put the output
4315 # Copy depcomp to subdir because otherwise we won't find it if we're
4316 # using a relative directory.
4317 cp "$am_depcomp" conftest.dir
4319 # We will build objects and dependencies in a subdirectory because
4320 # it helps to detect inapplicable dependency modes. For instance
4321 # both Tru64's cc and ICC support -MD to output dependencies as a
4322 # side effect of compilation, but ICC will put the dependencies in
4323 # the current directory while Tru64 will put them in the object
4327 am_cv_CC_dependencies_compiler_type=none
4328 if test "$am_compiler_list" = ""; then
4329 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4331 for depmode in $am_compiler_list; do
4332 # Setup a source with many dependencies, because some compilers
4333 # like to wrap large dependency lists on column 80 (with \), and
4334 # we should not choose a depcomp mode which is confused by this.
4336 # We need to recreate these files for each test, as the compiler may
4337 # overwrite some of them when testing with obscure command lines.
4338 # This happens at least with the AIX C compiler.
4340 for i in 1 2 3 4 5 6; do
4341 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4342 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4343 # Solaris 8's {/usr,}/bin/sh.
4344 touch sub/conftst$i.h
4346 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4350 # after this tag, mechanisms are not by side-effect, so they'll
4351 # only be used when explicitly requested
4352 if test "x$enable_dependency_tracking" = xyes; then
4360 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4361 # mode. It turns out that the SunPro C++ compiler does not properly
4362 # handle `-M -o', and we need to detect this.
4363 if depmode=$depmode \
4364 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4365 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4366 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4367 >/dev/null 2>conftest.err &&
4368 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4369 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4370 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4371 # icc doesn't choke on unknown options, it will just issue warnings
4372 # or remarks (even with -Werror). So we grep stderr for any message
4373 # that says an option was ignored or not supported.
4374 # When given -MP, icc 7.0 and 7.1 complain thusly:
4375 # icc: Command line warning: ignoring option '-M'; no argument required
4376 # The diagnosis changed in icc 8.0:
4377 # icc: Command line remark: option '-MP' not supported
4378 if (grep 'ignoring option' conftest.err ||
4379 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4380 am_cv_CC_dependencies_compiler_type=$depmode
4389 am_cv_CC_dependencies_compiler_type=none
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4394 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4395 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4400 test "x$enable_dependency_tracking" != xno \
4401 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4403 am__fastdepCC_FALSE='#'
4405 am__fastdepCC_TRUE='#'
4406 am__fastdepCC_FALSE=
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4411 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4412 if ${lt_cv_path_SED+:} false; then :
4413 $as_echo_n "(cached) " >&6
4415 # Loop through the user's path and test for sed and gsed.
4416 # Then use that list of sed's as ones to test for truncation.
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 test -z "$as_dir" && as_dir=.
4422 for lt_ac_prog in sed gsed; do
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4425 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4432 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4433 # along with /bin/sed that truncates output.
4434 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4435 test ! -f $lt_ac_sed && continue
4436 cat /dev/null > conftest.in
4438 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4439 # Check for GNU sed and select it if it is found.
4440 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4441 lt_cv_path_SED=$lt_ac_sed
4445 cat conftest.in conftest.in >conftest.tmp
4446 mv conftest.tmp conftest.in
4447 cp conftest.in conftest.nl
4449 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4450 cmp -s conftest.out conftest.nl || break
4451 # 10000 chars as input seems more than enough
4452 test $lt_ac_count -gt 10 && break
4453 lt_ac_count=`expr $lt_ac_count + 1`
4454 if test $lt_ac_count -gt $lt_ac_max; then
4455 lt_ac_max=$lt_ac_count
4456 lt_cv_path_SED=$lt_ac_sed
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4465 $as_echo "$SED" >&6; }
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4468 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4469 if ${ac_cv_path_GREP+:} false; then :
4470 $as_echo_n "(cached) " >&6
4472 if test -z "$GREP"; then
4473 ac_path_GREP_found=false
4474 # Loop through the user's path and test for each of PROGNAME-LIST
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4479 test -z "$as_dir" && as_dir=.
4480 for ac_prog in grep ggrep; do
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4483 as_fn_executable_p "$ac_path_GREP" || continue
4484 # Check for GNU ac_path_GREP and select it if it is found.
4485 # Check for GNU $ac_path_GREP
4486 case `"$ac_path_GREP" --version 2>&1` in
4488 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4491 $as_echo_n 0123456789 >"conftest.in"
4494 cat "conftest.in" "conftest.in" >"conftest.tmp"
4495 mv "conftest.tmp" "conftest.in"
4496 cp "conftest.in" "conftest.nl"
4497 $as_echo 'GREP' >> "conftest.nl"
4498 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4500 as_fn_arith $ac_count + 1 && ac_count=$as_val
4501 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4502 # Best one so far, save it but keep looking for a better one
4503 ac_cv_path_GREP="$ac_path_GREP"
4504 ac_path_GREP_max=$ac_count
4506 # 10*(2^10) chars as input seems more than enough
4507 test $ac_count -gt 10 && break
4509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4512 $ac_path_GREP_found && break 3
4517 if test -z "$ac_cv_path_GREP"; then
4518 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4521 ac_cv_path_GREP=$GREP
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4526 $as_echo "$ac_cv_path_GREP" >&6; }
4527 GREP="$ac_cv_path_GREP"
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4531 $as_echo_n "checking for egrep... " >&6; }
4532 if ${ac_cv_path_EGREP+:} false; then :
4533 $as_echo_n "(cached) " >&6
4535 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4536 then ac_cv_path_EGREP="$GREP -E"
4538 if test -z "$EGREP"; then
4539 ac_path_EGREP_found=false
4540 # Loop through the user's path and test for each of PROGNAME-LIST
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4545 test -z "$as_dir" && as_dir=.
4546 for ac_prog in egrep; do
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4549 as_fn_executable_p "$ac_path_EGREP" || continue
4550 # Check for GNU ac_path_EGREP and select it if it is found.
4551 # Check for GNU $ac_path_EGREP
4552 case `"$ac_path_EGREP" --version 2>&1` in
4554 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4557 $as_echo_n 0123456789 >"conftest.in"
4560 cat "conftest.in" "conftest.in" >"conftest.tmp"
4561 mv "conftest.tmp" "conftest.in"
4562 cp "conftest.in" "conftest.nl"
4563 $as_echo 'EGREP' >> "conftest.nl"
4564 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4565 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4566 as_fn_arith $ac_count + 1 && ac_count=$as_val
4567 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4568 # Best one so far, save it but keep looking for a better one
4569 ac_cv_path_EGREP="$ac_path_EGREP"
4570 ac_path_EGREP_max=$ac_count
4572 # 10*(2^10) chars as input seems more than enough
4573 test $ac_count -gt 10 && break
4575 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4578 $ac_path_EGREP_found && break 3
4583 if test -z "$ac_cv_path_EGREP"; then
4584 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4587 ac_cv_path_EGREP=$EGREP
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4593 $as_echo "$ac_cv_path_EGREP" >&6; }
4594 EGREP="$ac_cv_path_EGREP"
4598 # Check whether --with-gnu-ld was given.
4599 if test "${with_gnu_ld+set}" = set; then :
4600 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4606 if test "$GCC" = yes; then
4607 # Check if gcc -print-prog-name=ld gives a path.
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4609 $as_echo_n "checking for ld used by $CC... " >&6; }
4612 # gcc leaves a trailing carriage return which upsets mingw
4613 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4615 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4618 # Accept absolute paths.
4620 re_direlt='/[^/][^/]*/\.\./'
4621 # Canonicalize the pathname of ld
4622 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4623 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4624 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4626 test -z "$LD" && LD="$ac_prog"
4629 # If it fails, then pretend we aren't using GCC.
4633 # If it is relative, then search for the first ld in PATH.
4637 elif test "$with_gnu_ld" = yes; then
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4639 $as_echo_n "checking for GNU ld... " >&6; }
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4642 $as_echo_n "checking for non-GNU ld... " >&6; }
4644 if ${lt_cv_path_LD+:} false; then :
4645 $as_echo_n "(cached) " >&6
4647 if test -z "$LD"; then
4648 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4649 for ac_dir in $PATH; do
4651 test -z "$ac_dir" && ac_dir=.
4652 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4653 lt_cv_path_LD="$ac_dir/$ac_prog"
4654 # Check to see if the program is GNU ld. I'd rather use --version,
4655 # but apparently some variants of GNU ld only accept -v.
4656 # Break only if it was the GNU/non-GNU ld that we prefer.
4657 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4658 *GNU* | *'with BFD'*)
4659 test "$with_gnu_ld" != no && break
4662 test "$with_gnu_ld" != yes && break
4669 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4674 if test -n "$LD"; then
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4676 $as_echo "$LD" >&6; }
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679 $as_echo "no" >&6; }
4681 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4683 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4684 if ${lt_cv_prog_gnu_ld+:} false; then :
4685 $as_echo_n "(cached) " >&6
4687 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4688 case `$LD -v 2>&1 </dev/null` in
4689 *GNU* | *'with BFD'*)
4690 lt_cv_prog_gnu_ld=yes
4693 lt_cv_prog_gnu_ld=no
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4698 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4699 with_gnu_ld=$lt_cv_prog_gnu_ld
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4703 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4704 if ${lt_cv_ld_reload_flag+:} false; then :
4705 $as_echo_n "(cached) " >&6
4707 lt_cv_ld_reload_flag='-r'
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4710 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4711 reload_flag=$lt_cv_ld_reload_flag
4712 case $reload_flag in
4714 *) reload_flag=" $reload_flag" ;;
4716 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4719 if test "$GCC" = yes; then
4720 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4722 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4728 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4729 if ${lt_cv_path_NM+:} false; then :
4730 $as_echo_n "(cached) " >&6
4732 if test -n "$NM"; then
4733 # Let the user override the test.
4736 lt_nm_to_check="${ac_tool_prefix}nm"
4737 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4738 lt_nm_to_check="$lt_nm_to_check nm"
4740 for lt_tmp_nm in $lt_nm_to_check; do
4741 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4742 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4744 test -z "$ac_dir" && ac_dir=.
4745 tmp_nm="$ac_dir/$lt_tmp_nm"
4746 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4747 # Check to see if the nm accepts a BSD-compat flag.
4748 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4749 # nm: unknown option "B" ignored
4750 # Tru64's nm complains that /dev/null is an invalid object file
4751 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4752 */dev/null* | *'Invalid file or object type'*)
4753 lt_cv_path_NM="$tmp_nm -B"
4757 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4759 lt_cv_path_NM="$tmp_nm -p"
4763 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4764 continue # so that we can try to find one that supports BSD flags
4773 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4777 $as_echo "$lt_cv_path_NM" >&6; }
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4781 $as_echo_n "checking whether ln -s works... " >&6; }
4783 if test "$LN_S" = "ln -s"; then
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4785 $as_echo "yes" >&6; }
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4788 $as_echo "no, using $LN_S" >&6; }
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4792 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4793 if ${lt_cv_deplibs_check_method+:} false; then :
4794 $as_echo_n "(cached) " >&6
4796 lt_cv_file_magic_cmd='$MAGIC_CMD'
4797 lt_cv_file_magic_test_file=
4798 lt_cv_deplibs_check_method='unknown'
4799 # Need to set the preceding variable on all platforms that support
4800 # interlibrary dependencies.
4801 # 'none' -- dependencies not supported.
4802 # `unknown' -- same as none, but documents that we really don't know.
4803 # 'pass_all' -- all dependencies passed with no checks.
4804 # 'test_compile' -- check by making test program.
4805 # 'file_magic [[regex]]' -- check by looking for files in library path
4806 # which responds to the $file_magic_cmd with a given extended regex.
4807 # If you have `file' or equivalent on your system and you're not sure
4808 # whether `pass_all' will *always* work, you probably want this one.
4812 lt_cv_deplibs_check_method=pass_all
4816 lt_cv_deplibs_check_method=pass_all
4820 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4821 lt_cv_file_magic_cmd='/usr/bin/file -L'
4822 lt_cv_file_magic_test_file=/shlib/libc.so
4826 # func_win32_libid is a shell function defined in ltmain.sh
4827 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4828 lt_cv_file_magic_cmd='func_win32_libid'
4832 # Base MSYS/MinGW do not provide the 'file' command needed by
4833 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4834 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4835 lt_cv_file_magic_cmd='$OBJDUMP -f'
4838 darwin* | rhapsody*)
4839 lt_cv_deplibs_check_method=pass_all
4842 freebsd* | kfreebsd*-gnu | dragonfly*)
4843 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4846 # Not sure whether the presence of OpenBSD here was a mistake.
4847 # Let's accept both of them until this is cleared up.
4848 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4849 lt_cv_file_magic_cmd=/usr/bin/file
4850 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4854 lt_cv_deplibs_check_method=pass_all
4859 lt_cv_deplibs_check_method=pass_all
4862 hpux10.20* | hpux11*)
4863 lt_cv_file_magic_cmd=/usr/bin/file
4866 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4867 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4870 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]'
4871 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4874 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4875 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4881 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4882 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4885 irix5* | irix6* | nonstopux*)
4887 *-32|*"-32 ") libmagic=32-bit;;
4888 *-n32|*"-n32 ") libmagic=N32;;
4889 *-64|*"-64 ") libmagic=64-bit;;
4890 *) libmagic=never-match;;
4892 lt_cv_deplibs_check_method=pass_all
4895 # This must be Linux ELF.
4897 lt_cv_deplibs_check_method=pass_all
4900 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4901 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4902 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4904 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4910 lt_cv_file_magic_cmd=/usr/bin/file
4911 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4915 lt_cv_deplibs_check_method=unknown
4919 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4920 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4922 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4926 osf3* | osf4* | osf5*)
4927 lt_cv_deplibs_check_method=pass_all
4931 lt_cv_deplibs_check_method=pass_all
4935 case $host_vendor in
4937 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]'
4938 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4941 lt_cv_deplibs_check_method=pass_all
4944 lt_cv_file_magic_cmd='/bin/file'
4945 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4948 lt_cv_file_magic_cmd='/bin/file'
4949 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4950 lt_cv_file_magic_test_file=/lib/libc.so
4953 lt_cv_deplibs_check_method=pass_all
4956 lt_cv_deplibs_check_method=pass_all
4961 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4962 lt_cv_deplibs_check_method=pass_all
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4968 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4969 file_magic_cmd=$lt_cv_file_magic_cmd
4970 deplibs_check_method=$lt_cv_deplibs_check_method
4971 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4976 # If no C compiler was specified, use CC.
4979 # If no C compiler flags were specified, use CFLAGS.
4980 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4982 # Allow CC to be a program name with arguments.
4986 # Check whether --enable-libtool-lock was given.
4987 if test "${enable_libtool_lock+set}" = set; then :
4988 enableval=$enable_libtool_lock;
4991 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4993 # Some flags need to be propagated to the compiler or linker for good
4997 # Find out which ABI we are using.
4998 echo 'int i;' > conftest.$ac_ext
4999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5000 (eval $ac_compile) 2>&5
5002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5003 test $ac_status = 0; }; then
5004 case `/usr/bin/file conftest.$ac_objext` in
5016 # Find out which ABI we are using.
5017 echo '#line 5017 "configure"' > conftest.$ac_ext
5018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5019 (eval $ac_compile) 2>&5
5021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5022 test $ac_status = 0; }; then
5023 if test "$lt_cv_prog_gnu_ld" = yes; then
5024 case `/usr/bin/file conftest.$ac_objext` in
5026 LD="${LD-ld} -melf32bsmip"
5029 LD="${LD-ld} -melf32bmipn32"
5032 LD="${LD-ld} -melf64bmip"
5036 case `/usr/bin/file conftest.$ac_objext` in
5052 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5053 # Find out which ABI we are using.
5054 echo 'int i;' > conftest.$ac_ext
5055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5056 (eval $ac_compile) 2>&5
5058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5059 test $ac_status = 0; }; then
5060 case `/usr/bin/file conftest.o` in
5064 LD="${LD-ld} -m elf_i386"
5066 ppc64-*linux*|powerpc64-*linux*)
5067 LD="${LD-ld} -m elf32ppclinux"
5070 LD="${LD-ld} -m elf_s390"
5073 LD="${LD-ld} -m elf32_sparc"
5080 LD="${LD-ld} -m elf_x86_64"
5082 ppc*-*linux*|powerpc*-*linux*)
5083 LD="${LD-ld} -m elf64ppc"
5086 LD="${LD-ld} -m elf64_s390"
5089 LD="${LD-ld} -m elf64_sparc"
5099 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5100 SAVE_CFLAGS="$CFLAGS"
5101 CFLAGS="$CFLAGS -belf"
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5103 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5104 if ${lt_cv_cc_needs_belf+:} false; then :
5105 $as_echo_n "(cached) " >&6
5108 ac_cpp='$CPP $CPPFLAGS'
5109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5124 if ac_fn_c_try_link "$LINENO"; then :
5125 lt_cv_cc_needs_belf=yes
5127 lt_cv_cc_needs_belf=no
5129 rm -f core conftest.err conftest.$ac_objext \
5130 conftest$ac_exeext conftest.$ac_ext
5132 ac_cpp='$CPP $CPPFLAGS'
5133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5139 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5140 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5141 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5142 CFLAGS="$SAVE_CFLAGS"
5146 # Find out which ABI we are using.
5147 echo 'int i;' > conftest.$ac_ext
5148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5149 (eval $ac_compile) 2>&5
5151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5152 test $ac_status = 0; }; then
5153 case `/usr/bin/file conftest.o` in
5155 case $lt_cv_prog_gnu_ld in
5156 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5157 *) LD="${LD-ld} -64" ;;
5168 need_locks="$enable_libtool_lock"
5172 ac_cpp='$CPP $CPPFLAGS'
5173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5177 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5178 # On Suns, sometimes $CPP names a directory.
5179 if test -n "$CPP" && test -d "$CPP"; then
5182 if test -z "$CPP"; then
5183 if ${ac_cv_prog_CPP+:} false; then :
5184 $as_echo_n "(cached) " >&6
5186 # Double quotes because CPP needs to be expanded
5187 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5190 for ac_c_preproc_warn_flag in '' yes
5192 # Use a header file that comes with gcc, so configuring glibc
5193 # with a fresh cross-compiler works.
5194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5195 # <limits.h> exists even on freestanding compilers.
5196 # On the NeXT, cc -E runs the code through the compiler's parser,
5197 # not just through cpp. "Syntax error" is here to catch this case.
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5201 # include <limits.h>
5203 # include <assert.h>
5207 if ac_fn_c_try_cpp "$LINENO"; then :
5210 # Broken: fails on valid input.
5213 rm -f conftest.err conftest.i conftest.$ac_ext
5215 # OK, works on sane cases. Now check whether nonexistent headers
5216 # can be detected and how.
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5219 #include <ac_nonexistent.h>
5221 if ac_fn_c_try_cpp "$LINENO"; then :
5222 # Broken: success on invalid input.
5225 # Passes both tests.
5229 rm -f conftest.err conftest.i conftest.$ac_ext
5232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5233 rm -f conftest.i conftest.err conftest.$ac_ext
5234 if $ac_preproc_ok; then :
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5247 $as_echo "$CPP" >&6; }
5249 for ac_c_preproc_warn_flag in '' yes
5251 # Use a header file that comes with gcc, so configuring glibc
5252 # with a fresh cross-compiler works.
5253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5254 # <limits.h> exists even on freestanding compilers.
5255 # On the NeXT, cc -E runs the code through the compiler's parser,
5256 # not just through cpp. "Syntax error" is here to catch this case.
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5260 # include <limits.h>
5262 # include <assert.h>
5266 if ac_fn_c_try_cpp "$LINENO"; then :
5269 # Broken: fails on valid input.
5272 rm -f conftest.err conftest.i conftest.$ac_ext
5274 # OK, works on sane cases. Now check whether nonexistent headers
5275 # can be detected and how.
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278 #include <ac_nonexistent.h>
5280 if ac_fn_c_try_cpp "$LINENO"; then :
5281 # Broken: success on invalid input.
5284 # Passes both tests.
5288 rm -f conftest.err conftest.i conftest.$ac_ext
5291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5292 rm -f conftest.i conftest.err conftest.$ac_ext
5293 if $ac_preproc_ok; then :
5296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5298 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5299 See \`config.log' for more details" "$LINENO" 5; }
5303 ac_cpp='$CPP $CPPFLAGS'
5304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5310 $as_echo_n "checking for ANSI C header files... " >&6; }
5311 if ${ac_cv_header_stdc+:} false; then :
5312 $as_echo_n "(cached) " >&6
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5329 if ac_fn_c_try_compile "$LINENO"; then :
5330 ac_cv_header_stdc=yes
5332 ac_cv_header_stdc=no
5334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5336 if test $ac_cv_header_stdc = yes; then
5337 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h. */
5343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5344 $EGREP "memchr" >/dev/null 2>&1; then :
5347 ac_cv_header_stdc=no
5353 if test $ac_cv_header_stdc = yes; then
5354 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5361 $EGREP "free" >/dev/null 2>&1; then :
5364 ac_cv_header_stdc=no
5370 if test $ac_cv_header_stdc = yes; then
5371 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5372 if test "$cross_compiling" = yes; then :
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5379 #if ((' ' & 0x0FF) == 0x020)
5380 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5381 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5383 # define ISLOWER(c) \
5384 (('a' <= (c) && (c) <= 'i') \
5385 || ('j' <= (c) && (c) <= 'r') \
5386 || ('s' <= (c) && (c) <= 'z'))
5387 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5390 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5395 for (i = 0; i < 256; i++)
5396 if (XOR (islower (i), ISLOWER (i))
5397 || toupper (i) != TOUPPER (i))
5402 if ac_fn_c_try_run "$LINENO"; then :
5405 ac_cv_header_stdc=no
5407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5408 conftest.$ac_objext conftest.beam conftest.$ac_ext
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5414 $as_echo "$ac_cv_header_stdc" >&6; }
5415 if test $ac_cv_header_stdc = yes; then
5417 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5421 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5422 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5423 inttypes.h stdint.h unistd.h
5425 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5426 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5428 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5429 cat >>confdefs.h <<_ACEOF
5430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5438 for ac_header in dlfcn.h
5440 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5441 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5442 cat >>confdefs.h <<_ACEOF
5443 #define HAVE_DLFCN_H 1
5451 ac_cpp='$CXXCPP $CPPFLAGS'
5452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5455 if test -z "$CXX"; then
5456 if test -n "$CCC"; then
5459 if test -n "$ac_tool_prefix"; then
5460 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5463 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465 $as_echo_n "checking for $ac_word... " >&6; }
5466 if ${ac_cv_prog_CXX+:} false; then :
5467 $as_echo_n "(cached) " >&6
5469 if test -n "$CXX"; then
5470 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 if test -n "$CXX"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5492 $as_echo "$CXX" >&6; }
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 $as_echo "no" >&6; }
5499 test -n "$CXX" && break
5502 if test -z "$CXX"; then
5504 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5506 # Extract the first word of "$ac_prog", so it can be a program name with args.
5507 set dummy $ac_prog; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5511 $as_echo_n "(cached) " >&6
5513 if test -n "$ac_ct_CXX"; then
5514 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5523 ac_cv_prog_ac_ct_CXX="$ac_prog"
5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5534 if test -n "$ac_ct_CXX"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5536 $as_echo "$ac_ct_CXX" >&6; }
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5543 test -n "$ac_ct_CXX" && break
5546 if test "x$ac_ct_CXX" = x; then
5549 case $cross_compiling:$ac_tool_warned in
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5553 ac_tool_warned=yes ;;
5561 # Provide some information about the compiler.
5562 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5565 for ac_option in --version -v -V -qversion; do
5566 { { ac_try="$ac_compiler $ac_option >&5"
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5572 $as_echo "$ac_try_echo"; } >&5
5573 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5575 if test -s conftest.err; then
5577 ... rest of stderr output deleted ...
5578 10q' conftest.err >conftest.er1
5579 cat conftest.er1 >&5
5581 rm -f conftest.er1 conftest.err
5582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5583 test $ac_status = 0; }
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5587 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5588 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5589 $as_echo_n "(cached) " >&6
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5605 if ac_fn_cxx_try_compile "$LINENO"; then :
5610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5615 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5616 if test $ac_compiler_gnu = yes; then
5621 ac_test_CXXFLAGS=${CXXFLAGS+set}
5622 ac_save_CXXFLAGS=$CXXFLAGS
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5624 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5625 if ${ac_cv_prog_cxx_g+:} false; then :
5626 $as_echo_n "(cached) " >&6
5628 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5629 ac_cxx_werror_flag=yes
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5643 if ac_fn_cxx_try_compile "$LINENO"; then :
5644 ac_cv_prog_cxx_g=yes
5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h. */
5658 if ac_fn_cxx_try_compile "$LINENO"; then :
5661 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h. */
5674 if ac_fn_cxx_try_compile "$LINENO"; then :
5675 ac_cv_prog_cxx_g=yes
5677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5685 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5686 if test "$ac_test_CXXFLAGS" = set; then
5687 CXXFLAGS=$ac_save_CXXFLAGS
5688 elif test $ac_cv_prog_cxx_g = yes; then
5689 if test "$GXX" = yes; then
5695 if test "$GXX" = yes; then
5702 ac_cpp='$CXXCPP $CPPFLAGS'
5703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5707 depcc="$CXX" am_compiler_list=
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5710 $as_echo_n "checking dependency style of $depcc... " >&6; }
5711 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5712 $as_echo_n "(cached) " >&6
5714 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5715 # We make a subdir and do the tests there. Otherwise we can end up
5716 # making bogus files that we don't know about and never remove. For
5717 # instance it was reported that on HP-UX the gcc test will end up
5718 # making a dummy file named `D' -- because `-MD' means `put the output
5721 # Copy depcomp to subdir because otherwise we won't find it if we're
5722 # using a relative directory.
5723 cp "$am_depcomp" conftest.dir
5725 # We will build objects and dependencies in a subdirectory because
5726 # it helps to detect inapplicable dependency modes. For instance
5727 # both Tru64's cc and ICC support -MD to output dependencies as a
5728 # side effect of compilation, but ICC will put the dependencies in
5729 # the current directory while Tru64 will put them in the object
5733 am_cv_CXX_dependencies_compiler_type=none
5734 if test "$am_compiler_list" = ""; then
5735 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5737 for depmode in $am_compiler_list; do
5738 # Setup a source with many dependencies, because some compilers
5739 # like to wrap large dependency lists on column 80 (with \), and
5740 # we should not choose a depcomp mode which is confused by this.
5742 # We need to recreate these files for each test, as the compiler may
5743 # overwrite some of them when testing with obscure command lines.
5744 # This happens at least with the AIX C compiler.
5746 for i in 1 2 3 4 5 6; do
5747 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5748 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5749 # Solaris 8's {/usr,}/bin/sh.
5750 touch sub/conftst$i.h
5752 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5756 # after this tag, mechanisms are not by side-effect, so they'll
5757 # only be used when explicitly requested
5758 if test "x$enable_dependency_tracking" = xyes; then
5766 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5767 # mode. It turns out that the SunPro C++ compiler does not properly
5768 # handle `-M -o', and we need to detect this.
5769 if depmode=$depmode \
5770 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5771 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5772 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5773 >/dev/null 2>conftest.err &&
5774 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5775 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5776 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5777 # icc doesn't choke on unknown options, it will just issue warnings
5778 # or remarks (even with -Werror). So we grep stderr for any message
5779 # that says an option was ignored or not supported.
5780 # When given -MP, icc 7.0 and 7.1 complain thusly:
5781 # icc: Command line warning: ignoring option '-M'; no argument required
5782 # The diagnosis changed in icc 8.0:
5783 # icc: Command line remark: option '-MP' not supported
5784 if (grep 'ignoring option' conftest.err ||
5785 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5786 am_cv_CXX_dependencies_compiler_type=$depmode
5795 am_cv_CXX_dependencies_compiler_type=none
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5800 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5801 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5806 test "x$enable_dependency_tracking" != xno \
5807 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5808 am__fastdepCXX_TRUE=
5809 am__fastdepCXX_FALSE='#'
5811 am__fastdepCXX_TRUE='#'
5812 am__fastdepCXX_FALSE=
5818 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5819 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5820 (test "X$CXX" != "Xg++"))) ; then
5822 ac_cpp='$CXXCPP $CPPFLAGS'
5823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5827 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5828 if test -z "$CXXCPP"; then
5829 if ${ac_cv_prog_CXXCPP+:} false; then :
5830 $as_echo_n "(cached) " >&6
5832 # Double quotes because CXXCPP needs to be expanded
5833 for CXXCPP in "$CXX -E" "/lib/cpp"
5836 for ac_cxx_preproc_warn_flag in '' yes
5838 # Use a header file that comes with gcc, so configuring glibc
5839 # with a fresh cross-compiler works.
5840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5841 # <limits.h> exists even on freestanding compilers.
5842 # On the NeXT, cc -E runs the code through the compiler's parser,
5843 # not just through cpp. "Syntax error" is here to catch this case.
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h. */
5847 # include <limits.h>
5849 # include <assert.h>
5853 if ac_fn_cxx_try_cpp "$LINENO"; then :
5856 # Broken: fails on valid input.
5859 rm -f conftest.err conftest.i conftest.$ac_ext
5861 # OK, works on sane cases. Now check whether nonexistent headers
5862 # can be detected and how.
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5865 #include <ac_nonexistent.h>
5867 if ac_fn_cxx_try_cpp "$LINENO"; then :
5868 # Broken: success on invalid input.
5871 # Passes both tests.
5875 rm -f conftest.err conftest.i conftest.$ac_ext
5878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5879 rm -f conftest.i conftest.err conftest.$ac_ext
5880 if $ac_preproc_ok; then :
5885 ac_cv_prog_CXXCPP=$CXXCPP
5888 CXXCPP=$ac_cv_prog_CXXCPP
5890 ac_cv_prog_CXXCPP=$CXXCPP
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5893 $as_echo "$CXXCPP" >&6; }
5895 for ac_cxx_preproc_warn_flag in '' yes
5897 # Use a header file that comes with gcc, so configuring glibc
5898 # with a fresh cross-compiler works.
5899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5900 # <limits.h> exists even on freestanding compilers.
5901 # On the NeXT, cc -E runs the code through the compiler's parser,
5902 # not just through cpp. "Syntax error" is here to catch this case.
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5906 # include <limits.h>
5908 # include <assert.h>
5912 if ac_fn_cxx_try_cpp "$LINENO"; then :
5915 # Broken: fails on valid input.
5918 rm -f conftest.err conftest.i conftest.$ac_ext
5920 # OK, works on sane cases. Now check whether nonexistent headers
5921 # can be detected and how.
5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h. */
5924 #include <ac_nonexistent.h>
5926 if ac_fn_cxx_try_cpp "$LINENO"; then :
5927 # Broken: success on invalid input.
5930 # Passes both tests.
5934 rm -f conftest.err conftest.i conftest.$ac_ext
5937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5938 rm -f conftest.i conftest.err conftest.$ac_ext
5939 if $ac_preproc_ok; then :
5942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5944 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5945 See \`config.log' for more details" "$LINENO" 5; }
5949 ac_cpp='$CXXCPP $CPPFLAGS'
5950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5958 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5959 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5960 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5961 if test -n "$ac_tool_prefix"; then
5962 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
5964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5965 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967 $as_echo_n "checking for $ac_word... " >&6; }
5968 if ${ac_cv_prog_F77+:} false; then :
5969 $as_echo_n "(cached) " >&6
5971 if test -n "$F77"; then
5972 ac_cv_prog_F77="$F77" # Let the user override the test.
5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 test -z "$as_dir" && as_dir=.
5979 for ac_exec_ext in '' $ac_executable_extensions; do
5980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5981 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 if test -n "$F77"; then
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5994 $as_echo "$F77" >&6; }
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997 $as_echo "no" >&6; }
6001 test -n "$F77" && break
6004 if test -z "$F77"; then
6006 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
6008 # Extract the first word of "$ac_prog", so it can be a program name with args.
6009 set dummy $ac_prog; ac_word=$2
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011 $as_echo_n "checking for $ac_word... " >&6; }
6012 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6013 $as_echo_n "(cached) " >&6
6015 if test -n "$ac_ct_F77"; then
6016 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6025 ac_cv_prog_ac_ct_F77="$ac_prog"
6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6036 if test -n "$ac_ct_F77"; then
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6038 $as_echo "$ac_ct_F77" >&6; }
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041 $as_echo "no" >&6; }
6045 test -n "$ac_ct_F77" && break
6048 if test "x$ac_ct_F77" = x; then
6051 case $cross_compiling:$ac_tool_warned in
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6055 ac_tool_warned=yes ;;
6062 # Provide some information about the compiler.
6063 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6066 for ac_option in --version -v -V -qversion; do
6067 { { ac_try="$ac_compiler $ac_option >&5"
6069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070 *) ac_try_echo=$ac_try;;
6072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6073 $as_echo "$ac_try_echo"; } >&5
6074 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6076 if test -s conftest.err; then
6078 ... rest of stderr output deleted ...
6079 10q' conftest.err >conftest.er1
6080 cat conftest.er1 >&5
6082 rm -f conftest.er1 conftest.err
6083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6084 test $ac_status = 0; }
6088 # If we don't use `.F' as extension, the preprocessor is not run on the
6089 # input file. (Note that this only needs to work for GNU compilers.)
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6093 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6094 if ${ac_cv_f77_compiler_gnu+:} false; then :
6095 $as_echo_n "(cached) " >&6
6097 cat > conftest.$ac_ext <<_ACEOF
6105 if ac_fn_f77_try_compile "$LINENO"; then :
6110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6115 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6117 ac_test_FFLAGS=${FFLAGS+set}
6118 ac_save_FFLAGS=$FFLAGS
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6121 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6122 if ${ac_cv_prog_f77_g+:} false; then :
6123 $as_echo_n "(cached) " >&6
6126 cat > conftest.$ac_ext <<_ACEOF
6131 if ac_fn_f77_try_compile "$LINENO"; then :
6132 ac_cv_prog_f77_g=yes
6136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6140 $as_echo "$ac_cv_prog_f77_g" >&6; }
6141 if test "$ac_test_FFLAGS" = set; then
6142 FFLAGS=$ac_save_FFLAGS
6143 elif test $ac_cv_prog_f77_g = yes; then
6144 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6150 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6157 if test $ac_compiler_gnu = yes; then
6163 ac_cpp='$CPP $CPPFLAGS'
6164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6170 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6172 # find the maximum length of command line arguments
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6174 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6175 if ${lt_cv_sys_max_cmd_len+:} false; then :
6176 $as_echo_n "(cached) " >&6
6183 # On DJGPP, this test can blow up pretty badly due to problems in libc
6184 # (any single argument exceeding 2000 bytes causes a buffer overrun
6185 # during glob expansion). Even if it were fixed, the result of this
6186 # check would be larger than it should be.
6187 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6191 # Under GNU Hurd, this test is not required because there is
6192 # no limit to the length of command line arguments.
6193 # Libtool will interpret -1 as no limit whatsoever
6194 lt_cv_sys_max_cmd_len=-1;
6198 # On Win9x/ME, this test blows up -- it succeeds, but takes
6199 # about 5 minutes as the teststring grows exponentially.
6200 # Worse, since 9x/ME are not pre-emptively multitasking,
6201 # you end up with a "frozen" computer, even though with patience
6202 # the test eventually succeeds (with a max line length of 256k).
6203 # Instead, let's just punt: use the minimum linelength reported by
6204 # all of the supported platforms: 8192 (on NT/2K/XP).
6205 lt_cv_sys_max_cmd_len=8192;
6209 # On AmigaOS with pdksh, this test takes hours, literally.
6210 # So we just punt and use a minimum line length of 8192.
6211 lt_cv_sys_max_cmd_len=8192;
6214 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6215 # This has been around since 386BSD, at least. Likely further.
6216 if test -x /sbin/sysctl; then
6217 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6218 elif test -x /usr/sbin/sysctl; then
6219 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6221 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6223 # And add a safety zone
6224 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6225 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6229 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6230 lt_cv_sys_max_cmd_len=196608
6234 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6235 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6236 # nice to cause kernel panics so lets avoid the loop below.
6237 # First set a reasonable default.
6238 lt_cv_sys_max_cmd_len=16384
6240 if test -x /sbin/sysconfig; then
6241 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6242 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6247 lt_cv_sys_max_cmd_len=102400
6249 sysv5* | sco5v6* | sysv4.2uw2*)
6250 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6251 if test -n "$kargmax"; then
6252 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6254 lt_cv_sys_max_cmd_len=32768
6258 # If test is not a shell built-in, we'll probably end up computing a
6259 # maximum length that is only half of the actual maximum length, but
6261 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6262 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6263 = "XX$teststring") >/dev/null 2>&1 &&
6264 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6265 lt_cv_sys_max_cmd_len=$new_result &&
6266 test $i != 17 # 1/2 MB should be enough
6269 teststring=$teststring$teststring
6272 # Add a significant safety factor because C++ compilers can tack on massive
6273 # amounts of additional arguments before passing them to the linker.
6274 # It appears as though 1/2 is a usable value.
6275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6281 if test -n $lt_cv_sys_max_cmd_len ; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6283 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6286 $as_echo "none" >&6; }
6292 # Check for command to grab the raw symbol name followed by C symbol from nm.
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6294 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6295 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6296 $as_echo_n "(cached) " >&6
6299 # These are sane defaults that work on at least a few old systems.
6300 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6302 # Character class describing NM global symbol codes.
6303 symcode='[BCDEGRST]'
6305 # Regexp to match symbols that can be accessed directly from C.
6306 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6308 # Transform an extracted symbol line into a proper C declaration
6309 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6311 # Transform an extracted symbol line into symbol name and symbol address
6312 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6314 # Define system-specific variables.
6319 cygwin* | mingw* | pw32*)
6320 symcode='[ABCDGISTW]'
6322 hpux*) # Its linker distinguishes data from code symbols
6323 if test "$host_cpu" = ia64; then
6324 symcode='[ABCDEGRST]'
6326 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6327 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6330 if test "$host_cpu" = ia64; then
6331 symcode='[ABCDGIRSTW]'
6332 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6333 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6337 symcode='[BCDEGRST]'
6340 symcode='[BCDEGQRST]'
6351 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6359 # Handle CRLF in mingw tool chain
6363 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6367 # If we're using GNU nm, then use its standard symbol codes.
6368 case `$NM -V 2>&1` in
6369 *GNU* | *'with BFD'*)
6370 symcode='[ABCDGIRSTW]' ;;
6373 # Try without a prefix undercore, then with it.
6374 for ac_symprfx in "" "_"; do
6376 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6377 symxfrm="\\1 $ac_symprfx\\2 \\2"
6379 # Write the raw and C identifiers.
6380 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6382 # Check to see that the pipe works correctly.
6386 cat > conftest.$ac_ext <<EOF
6391 void nm_test_func(){}
6395 int main(){nm_test_var='a';nm_test_func();return(0);}
6398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6399 (eval $ac_compile) 2>&5
6401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6402 test $ac_status = 0; }; then
6403 # Now try to grab the symbols.
6405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6406 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409 test $ac_status = 0; } && test -s "$nlist"; then
6410 # Try sorting and uniquifying the output.
6411 if sort "$nlist" | uniq > "$nlist"T; then
6412 mv -f "$nlist"T "$nlist"
6417 # Make sure that we snagged all the symbols we need.
6418 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6419 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6420 cat <<EOF > conftest.$ac_ext
6426 # Now generate the symbol file.
6427 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6429 cat <<EOF >> conftest.$ac_ext
6430 #if defined (__STDC__) && __STDC__
6431 # define lt_ptr_t void *
6433 # define lt_ptr_t char *
6437 /* The mapping between symbol names and symbols. */
6442 lt_preloaded_symbols[] =
6445 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6446 cat <<\EOF >> conftest.$ac_ext
6454 # Now try linking the two files.
6455 mv conftest.$ac_objext conftstm.$ac_objext
6456 lt_save_LIBS="$LIBS"
6457 lt_save_CFLAGS="$CFLAGS"
6458 LIBS="conftstm.$ac_objext"
6459 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6461 (eval $ac_link) 2>&5
6463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6464 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6467 LIBS="$lt_save_LIBS"
6468 CFLAGS="$lt_save_CFLAGS"
6470 echo "cannot find nm_test_func in $nlist" >&5
6473 echo "cannot find nm_test_var in $nlist" >&5
6476 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6479 echo "$progname: failed program was:" >&5
6480 cat conftest.$ac_ext >&5
6482 rm -f conftest* conftst*
6484 # Do not use the global_symbol_pipe unless it works.
6485 if test "$pipe_works" = yes; then
6488 lt_cv_sys_global_symbol_pipe=
6494 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6495 lt_cv_sys_global_symbol_to_cdecl=
6497 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6499 $as_echo "failed" >&6; }
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6502 $as_echo "ok" >&6; }
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6506 $as_echo_n "checking for objdir... " >&6; }
6507 if ${lt_cv_objdir+:} false; then :
6508 $as_echo_n "(cached) " >&6
6510 rm -f .libs 2>/dev/null
6511 mkdir .libs 2>/dev/null
6512 if test -d .libs; then
6515 # MS-DOS does not allow filenames that begin with a dot.
6518 rmdir .libs 2>/dev/null
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6521 $as_echo "$lt_cv_objdir" >&6; }
6522 objdir=$lt_cv_objdir
6530 # AIX sometimes has problems with the GCC collect2 program. For some
6531 # reason, if we set the COLLECT_NAMES environment variable, the problems
6532 # vanish in a puff of smoke.
6533 if test "X${COLLECT_NAMES+set}" != Xset; then
6535 export COLLECT_NAMES
6540 # Sed substitution that helps us do robust quoting. It backslashifies
6541 # metacharacters that are still active within double-quoted strings.
6542 Xsed='sed -e 1s/^X//'
6543 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6545 # Same as above, but do not quote variable references.
6546 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6548 # Sed substitution to delay expansion of an escaped shell variable in a
6549 # double_quote_subst'ed string.
6550 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6552 # Sed substitution to avoid accidental globbing in evaled expressions
6553 no_glob_subst='s/\*/\\\*/g'
6559 default_ofile=libtool
6560 can_build_shared=yes
6562 # All known linkers require a `.a' archive for static linking (except MSVC,
6563 # which needs '.lib').
6565 ltmain="$ac_aux_dir/ltmain.sh"
6566 ofile="$default_ofile"
6567 with_gnu_ld="$lt_cv_prog_gnu_ld"
6569 if test -n "$ac_tool_prefix"; then
6570 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6571 set dummy ${ac_tool_prefix}ar; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if ${ac_cv_prog_AR+:} false; then :
6575 $as_echo_n "(cached) " >&6
6577 if test -n "$AR"; then
6578 ac_cv_prog_AR="$AR" # Let the user override the test.
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6587 ac_cv_prog_AR="${ac_tool_prefix}ar"
6588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 if test -n "$AR"; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6600 $as_echo "$AR" >&6; }
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6608 if test -z "$ac_cv_prog_AR"; then
6610 # Extract the first word of "ar", so it can be a program name with args.
6611 set dummy ar; ac_word=$2
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6613 $as_echo_n "checking for $ac_word... " >&6; }
6614 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6615 $as_echo_n "(cached) " >&6
6617 if test -n "$ac_ct_AR"; then
6618 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 test -z "$as_dir" && as_dir=.
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6627 ac_cv_prog_ac_ct_AR="ar"
6628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6638 if test -n "$ac_ct_AR"; then
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6640 $as_echo "$ac_ct_AR" >&6; }
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6646 if test "x$ac_ct_AR" = x; then
6649 case $cross_compiling:$ac_tool_warned in
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6653 ac_tool_warned=yes ;;
6661 if test -n "$ac_tool_prefix"; then
6662 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6663 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if ${ac_cv_prog_RANLIB+:} false; then :
6667 $as_echo_n "(cached) " >&6
6669 if test -n "$RANLIB"; then
6670 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 RANLIB=$ac_cv_prog_RANLIB
6690 if test -n "$RANLIB"; then
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6692 $as_echo "$RANLIB" >&6; }
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6700 if test -z "$ac_cv_prog_RANLIB"; then
6701 ac_ct_RANLIB=$RANLIB
6702 # Extract the first word of "ranlib", so it can be a program name with args.
6703 set dummy ranlib; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6707 $as_echo_n "(cached) " >&6
6709 if test -n "$ac_ct_RANLIB"; then
6710 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6719 ac_cv_prog_ac_ct_RANLIB="ranlib"
6720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6730 if test -n "$ac_ct_RANLIB"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6732 $as_echo "$ac_ct_RANLIB" >&6; }
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6738 if test "x$ac_ct_RANLIB" = x; then
6741 case $cross_compiling:$ac_tool_warned in
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6745 ac_tool_warned=yes ;;
6747 RANLIB=$ac_ct_RANLIB
6750 RANLIB="$ac_cv_prog_RANLIB"
6753 if test -n "$ac_tool_prefix"; then
6754 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6755 set dummy ${ac_tool_prefix}strip; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if ${ac_cv_prog_STRIP+:} false; then :
6759 $as_echo_n "(cached) " >&6
6761 if test -n "$STRIP"; then
6762 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 test -z "$as_dir" && as_dir=.
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6771 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 STRIP=$ac_cv_prog_STRIP
6782 if test -n "$STRIP"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6784 $as_echo "$STRIP" >&6; }
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6792 if test -z "$ac_cv_prog_STRIP"; then
6794 # Extract the first word of "strip", so it can be a program name with args.
6795 set dummy strip; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6799 $as_echo_n "(cached) " >&6
6801 if test -n "$ac_ct_STRIP"; then
6802 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6811 ac_cv_prog_ac_ct_STRIP="strip"
6812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6822 if test -n "$ac_ct_STRIP"; then
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6824 $as_echo "$ac_ct_STRIP" >&6; }
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827 $as_echo "no" >&6; }
6830 if test "x$ac_ct_STRIP" = x; then
6833 case $cross_compiling:$ac_tool_warned in
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6837 ac_tool_warned=yes ;;
6842 STRIP="$ac_cv_prog_STRIP"
6847 old_CFLAGS="$CFLAGS"
6849 # Set sane defaults for various variables
6850 test -z "$AR" && AR=ar
6851 test -z "$AR_FLAGS" && AR_FLAGS=cru
6852 test -z "$AS" && AS=as
6853 test -z "$CC" && CC=cc
6854 test -z "$LTCC" && LTCC=$CC
6855 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6856 test -z "$DLLTOOL" && DLLTOOL=dlltool
6857 test -z "$LD" && LD=ld
6858 test -z "$LN_S" && LN_S="ln -s"
6859 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6860 test -z "$NM" && NM=nm
6861 test -z "$SED" && SED=sed
6862 test -z "$OBJDUMP" && OBJDUMP=objdump
6863 test -z "$RANLIB" && RANLIB=:
6864 test -z "$STRIP" && STRIP=:
6865 test -z "$ac_objext" && ac_objext=o
6867 # Determine commands to create old-style static archives.
6868 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6869 old_postinstall_cmds='chmod 644 $oldlib'
6870 old_postuninstall_cmds=
6872 if test -n "$RANLIB"; then
6875 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6878 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6881 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6884 for cc_temp in $compiler""; do
6886 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6887 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6892 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6895 # Only perform the check for file, if the check method requires it
6896 case $deplibs_check_method in
6898 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6900 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6901 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6902 $as_echo_n "(cached) " >&6
6906 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6909 lt_save_MAGIC_CMD="$MAGIC_CMD"
6910 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6911 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6912 for ac_dir in $ac_dummy; do
6914 test -z "$ac_dir" && ac_dir=.
6915 if test -f $ac_dir/${ac_tool_prefix}file; then
6916 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6917 if test -n "$file_magic_test_file"; then
6918 case $deplibs_check_method in
6920 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6921 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6922 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6923 $EGREP "$file_magic_regex" > /dev/null; then
6928 *** Warning: the command libtool uses to detect shared libraries,
6929 *** $file_magic_cmd, produces output that libtool cannot recognize.
6930 *** The result is that libtool may fail to recognize shared libraries
6931 *** as such. This will affect the creation of libtool libraries that
6932 *** depend on shared libraries, but programs linked with such libtool
6933 *** libraries will work regardless of this problem. Nevertheless, you
6934 *** may want to report the problem to your system manager and/or to
6935 *** bug-libtool@gnu.org
6945 MAGIC_CMD="$lt_save_MAGIC_CMD"
6950 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6951 if test -n "$MAGIC_CMD"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6953 $as_echo "$MAGIC_CMD" >&6; }
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6959 if test -z "$lt_cv_path_MAGIC_CMD"; then
6960 if test -n "$ac_tool_prefix"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6962 $as_echo_n "checking for file... " >&6; }
6963 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6964 $as_echo_n "(cached) " >&6
6968 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6971 lt_save_MAGIC_CMD="$MAGIC_CMD"
6972 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6973 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6974 for ac_dir in $ac_dummy; do
6976 test -z "$ac_dir" && ac_dir=.
6977 if test -f $ac_dir/file; then
6978 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6979 if test -n "$file_magic_test_file"; then
6980 case $deplibs_check_method in
6982 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6984 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6985 $EGREP "$file_magic_regex" > /dev/null; then
6990 *** Warning: the command libtool uses to detect shared libraries,
6991 *** $file_magic_cmd, produces output that libtool cannot recognize.
6992 *** The result is that libtool may fail to recognize shared libraries
6993 *** as such. This will affect the creation of libtool libraries that
6994 *** depend on shared libraries, but programs linked with such libtool
6995 *** libraries will work regardless of this problem. Nevertheless, you
6996 *** may want to report the problem to your system manager and/or to
6997 *** bug-libtool@gnu.org
7007 MAGIC_CMD="$lt_save_MAGIC_CMD"
7012 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7013 if test -n "$MAGIC_CMD"; then
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7015 $as_echo "$MAGIC_CMD" >&6; }
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018 $as_echo "no" >&6; }
7033 # Check whether --enable-libtool-lock was given.
7034 if test "${enable_libtool_lock+set}" = set; then :
7035 enableval=$enable_libtool_lock;
7038 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7041 # Check whether --with-pic was given.
7042 if test "${with_pic+set}" = set; then :
7043 withval=$with_pic; pic_mode="$withval"
7048 test -z "$pic_mode" && pic_mode=default
7050 # Use C for the default configuration in the libtool script
7054 ac_cpp='$CPP $CPPFLAGS'
7055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7060 # Source file extension for C test sources.
7063 # Object file extension for compiled C test sources.
7067 # Code to be used in simple compile tests
7068 lt_simple_compile_test_code="int some_variable = 0;\n"
7070 # Code to be used in simple link tests
7071 lt_simple_link_test_code='int main(){return(0);}\n'
7074 # If no C compiler was specified, use CC.
7077 # If no C compiler flags were specified, use CFLAGS.
7078 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7080 # Allow CC to be a program name with arguments.
7084 # save warnings/boilerplate of simple test code
7085 ac_outfile=conftest.$ac_objext
7086 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7087 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7088 _lt_compiler_boilerplate=`cat conftest.err`
7091 ac_outfile=conftest.$ac_objext
7092 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7093 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7094 _lt_linker_boilerplate=`cat conftest.err`
7099 lt_prog_compiler_no_builtin_flag=
7101 if test "$GCC" = yes; then
7102 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7106 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7107 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7108 $as_echo_n "(cached) " >&6
7110 lt_cv_prog_compiler_rtti_exceptions=no
7111 ac_outfile=conftest.$ac_objext
7112 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7113 lt_compiler_flag="-fno-rtti -fno-exceptions"
7114 # Insert the option either (1) after the last *FLAGS variable, or
7115 # (2) before a word containing "conftest.", or (3) at the end.
7116 # Note that $ac_compile itself does not contain backslashes and begins
7117 # with a dollar sign (not a hyphen), so the echo should work correctly.
7118 # The option is referenced via a variable to avoid confusing sed.
7119 lt_compile=`echo "$ac_compile" | $SED \
7120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7122 -e 's:$: $lt_compiler_flag:'`
7123 (eval echo "\"\$as_me:7123: $lt_compile\"" >&5)
7124 (eval "$lt_compile" 2>conftest.err)
7126 cat conftest.err >&5
7127 echo "$as_me:7127: \$? = $ac_status" >&5
7128 if (exit $ac_status) && test -s "$ac_outfile"; then
7129 # The compiler can only warn and ignore the option if not recognized
7130 # So say no if there are warnings other than the usual output.
7131 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7133 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7134 lt_cv_prog_compiler_rtti_exceptions=yes
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7141 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7143 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7144 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7151 lt_prog_compiler_wl=
7152 lt_prog_compiler_pic=
7153 lt_prog_compiler_static=
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7156 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7158 if test "$GCC" = yes; then
7159 lt_prog_compiler_wl='-Wl,'
7160 lt_prog_compiler_static='-static'
7164 # All AIX code is PIC.
7165 if test "$host_cpu" = ia64; then
7166 # AIX 5 now supports IA64 processor
7167 lt_prog_compiler_static='-Bstatic'
7172 # FIXME: we need at least 68020 code to build shared libraries, but
7173 # adding the `-m68020' flag to GCC prevents building anything better,
7175 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7178 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7179 # PIC is the default for these OSes.
7182 mingw* | pw32* | os2*)
7183 # This hack is so that the source file can tell whether it is being
7184 # built for inclusion in a dll (and should export symbols for example).
7185 lt_prog_compiler_pic='-DDLL_EXPORT'
7188 darwin* | rhapsody*)
7189 # PIC is the default on this platform
7190 # Common symbols not allowed in MH_DYLIB files
7191 lt_prog_compiler_pic='-fno-common'
7195 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7196 # Instead, we relocate shared libraries at runtime.
7200 # Just because we use GCC doesn't mean we suddenly get shared libraries
7201 # on systems that don't support them.
7202 lt_prog_compiler_can_build_shared=no
7207 if test -d /usr/nec; then
7208 lt_prog_compiler_pic=-Kconform_pic
7213 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7220 lt_prog_compiler_pic='-fPIC'
7226 lt_prog_compiler_pic='-fPIC'
7230 # PORTME Check for flag to pass linker flags through the system compiler.
7233 lt_prog_compiler_wl='-Wl,'
7234 if test "$host_cpu" = ia64; then
7235 # AIX 5 now supports IA64 processor
7236 lt_prog_compiler_static='-Bstatic'
7238 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7242 # PIC is the default on this platform
7243 # Common symbols not allowed in MH_DYLIB files
7244 case $cc_basename in
7246 lt_prog_compiler_pic='-qnocommon'
7247 lt_prog_compiler_wl='-Wl,'
7252 mingw* | pw32* | os2*)
7253 # This hack is so that the source file can tell whether it is being
7254 # built for inclusion in a dll (and should export symbols for example).
7255 lt_prog_compiler_pic='-DDLL_EXPORT'
7258 hpux9* | hpux10* | hpux11*)
7259 lt_prog_compiler_wl='-Wl,'
7260 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7267 lt_prog_compiler_pic='+Z'
7270 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7271 lt_prog_compiler_static='${wl}-a ${wl}archive'
7274 irix5* | irix6* | nonstopux*)
7275 lt_prog_compiler_wl='-Wl,'
7276 # PIC (with -KPIC) is the default.
7277 lt_prog_compiler_static='-non_shared'
7281 lt_prog_compiler_pic='-KPIC'
7282 lt_prog_compiler_static='-Bstatic'
7286 case $cc_basename in
7288 lt_prog_compiler_wl='-Wl,'
7289 lt_prog_compiler_pic='-KPIC'
7290 lt_prog_compiler_static='-static'
7292 pgcc* | pgf77* | pgf90* | pgf95*)
7293 # Portland Group compilers (*not* the Pentium gcc compiler,
7294 # which looks to be a dead project)
7295 lt_prog_compiler_wl='-Wl,'
7296 lt_prog_compiler_pic='-fpic'
7297 lt_prog_compiler_static='-Bstatic'
7300 lt_prog_compiler_wl='-Wl,'
7301 # All Alpha code is PIC.
7302 lt_prog_compiler_static='-non_shared'
7307 osf3* | osf4* | osf5*)
7308 lt_prog_compiler_wl='-Wl,'
7309 # All OSF/1 code is PIC.
7310 lt_prog_compiler_static='-non_shared'
7314 lt_prog_compiler_pic='-KPIC'
7315 lt_prog_compiler_static='-Bstatic'
7316 case $cc_basename in
7318 lt_prog_compiler_wl='-Qoption ld ';;
7320 lt_prog_compiler_wl='-Wl,';;
7325 lt_prog_compiler_wl='-Qoption ld '
7326 lt_prog_compiler_pic='-PIC'
7327 lt_prog_compiler_static='-Bstatic'
7330 sysv4 | sysv4.2uw2* | sysv4.3*)
7331 lt_prog_compiler_wl='-Wl,'
7332 lt_prog_compiler_pic='-KPIC'
7333 lt_prog_compiler_static='-Bstatic'
7337 if test -d /usr/nec ;then
7338 lt_prog_compiler_pic='-Kconform_pic'
7339 lt_prog_compiler_static='-Bstatic'
7343 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7344 lt_prog_compiler_wl='-Wl,'
7345 lt_prog_compiler_pic='-KPIC'
7346 lt_prog_compiler_static='-Bstatic'
7350 lt_prog_compiler_wl='-Wl,'
7351 lt_prog_compiler_can_build_shared=no
7355 lt_prog_compiler_pic='-pic'
7356 lt_prog_compiler_static='-Bstatic'
7360 lt_prog_compiler_can_build_shared=no
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7366 $as_echo "$lt_prog_compiler_pic" >&6; }
7369 # Check to make sure the PIC flag actually works.
7371 if test -n "$lt_prog_compiler_pic"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7374 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7375 if ${lt_prog_compiler_pic_works+:} false; then :
7376 $as_echo_n "(cached) " >&6
7378 lt_prog_compiler_pic_works=no
7379 ac_outfile=conftest.$ac_objext
7380 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7381 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7382 # Insert the option either (1) after the last *FLAGS variable, or
7383 # (2) before a word containing "conftest.", or (3) at the end.
7384 # Note that $ac_compile itself does not contain backslashes and begins
7385 # with a dollar sign (not a hyphen), so the echo should work correctly.
7386 # The option is referenced via a variable to avoid confusing sed.
7387 lt_compile=`echo "$ac_compile" | $SED \
7388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7390 -e 's:$: $lt_compiler_flag:'`
7391 (eval echo "\"\$as_me:7391: $lt_compile\"" >&5)
7392 (eval "$lt_compile" 2>conftest.err)
7394 cat conftest.err >&5
7395 echo "$as_me:7395: \$? = $ac_status" >&5
7396 if (exit $ac_status) && test -s "$ac_outfile"; then
7397 # The compiler can only warn and ignore the option if not recognized
7398 # So say no if there are warnings other than the usual output.
7399 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7401 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7402 lt_prog_compiler_pic_works=yes
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
7409 $as_echo "$lt_prog_compiler_pic_works" >&6; }
7411 if test x"$lt_prog_compiler_pic_works" = xyes; then
7412 case $lt_prog_compiler_pic in
7414 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7417 lt_prog_compiler_pic=
7418 lt_prog_compiler_can_build_shared=no
7423 # For platforms which do not support PIC, -DPIC is meaningless:
7425 lt_prog_compiler_pic=
7428 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7433 # Check to make sure the static flag actually works.
7435 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7437 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7438 if ${lt_prog_compiler_static_works+:} false; then :
7439 $as_echo_n "(cached) " >&6
7441 lt_prog_compiler_static_works=no
7442 save_LDFLAGS="$LDFLAGS"
7443 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7444 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7446 # The linker can only warn and ignore the option if not recognized
7447 # So say no if there are warnings
7448 if test -s conftest.err; then
7449 # Append any errors to the config.log.
7450 cat conftest.err 1>&5
7451 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7453 if diff conftest.exp conftest.er2 >/dev/null; then
7454 lt_prog_compiler_static_works=yes
7457 lt_prog_compiler_static_works=yes
7461 LDFLAGS="$save_LDFLAGS"
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
7465 $as_echo "$lt_prog_compiler_static_works" >&6; }
7467 if test x"$lt_prog_compiler_static_works" = xyes; then
7470 lt_prog_compiler_static=
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7475 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7476 if ${lt_cv_prog_compiler_c_o+:} false; then :
7477 $as_echo_n "(cached) " >&6
7479 lt_cv_prog_compiler_c_o=no
7480 $rm -r conftest 2>/dev/null
7484 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7486 lt_compiler_flag="-o out/conftest2.$ac_objext"
7487 # Insert the option either (1) after the last *FLAGS variable, or
7488 # (2) before a word containing "conftest.", or (3) at the end.
7489 # Note that $ac_compile itself does not contain backslashes and begins
7490 # with a dollar sign (not a hyphen), so the echo should work correctly.
7491 lt_compile=`echo "$ac_compile" | $SED \
7492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7494 -e 's:$: $lt_compiler_flag:'`
7495 (eval echo "\"\$as_me:7495: $lt_compile\"" >&5)
7496 (eval "$lt_compile" 2>out/conftest.err)
7498 cat out/conftest.err >&5
7499 echo "$as_me:7499: \$? = $ac_status" >&5
7500 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7502 # The compiler can only warn and ignore the option if not recognized
7503 # So say no if there are warnings
7504 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7505 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7506 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7507 lt_cv_prog_compiler_c_o=yes
7512 # SGI C++ compiler will create directory out/ii_files/ for
7513 # template instantiation
7514 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7515 $rm out/* && rmdir out
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7522 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7525 hard_links="nottested"
7526 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7527 # do not overwrite the value of need_locks provided by the user
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7529 $as_echo_n "checking if we can lock with hard links... " >&6; }
7532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7534 ln conftest.a conftest.b 2>&5 || hard_links=no
7535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7537 $as_echo "$hard_links" >&6; }
7538 if test "$hard_links" = no; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7540 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7548 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7551 allow_undefined_flag=
7552 enable_shared_with_static_runtimes=no
7554 archive_expsym_cmds=
7555 old_archive_From_new_cmds=
7556 old_archive_from_expsyms_cmds=
7557 export_dynamic_flag_spec=
7558 whole_archive_flag_spec=
7559 thread_safe_flag_spec=
7560 hardcode_libdir_flag_spec=
7561 hardcode_libdir_flag_spec_ld=
7562 hardcode_libdir_separator=
7565 hardcode_shlibpath_var=unsupported
7566 link_all_deplibs=unknown
7567 hardcode_automatic=no
7570 always_export_symbols=no
7571 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7572 # include_expsyms should be a list of space-separated symbols to be *always*
7573 # included in the symbol list
7575 # exclude_expsyms can be an extended regexp of symbols to exclude
7576 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7577 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7578 # as well as any symbol that contains `d'.
7579 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7580 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7581 # platforms (ab)use it in PIC code, but their linkers get confused if
7582 # the symbol is explicitly referenced. Since portable code cannot
7583 # rely on this symbol name, it's probably fine to never include it in
7584 # preloaded symbol tables.
7585 extract_expsyms_cmds=
7586 # Just being paranoid about ensuring that cc_basename is set.
7587 for cc_temp in $compiler""; do
7589 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7590 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7595 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7598 cygwin* | mingw* | pw32*)
7599 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7600 # When not using gcc, we currently assume that we are using
7601 # Microsoft Visual C++.
7602 if test "$GCC" != yes; then
7607 # we just hope/assume this is gcc and not c89 (= MSVC++)
7616 if test "$with_gnu_ld" = yes; then
7617 # If archive_cmds runs LD, not CC, wlarc should be empty
7620 # Set some defaults for GNU ld with shared library support. These
7621 # are reset later if shared libraries are not supported. Putting them
7622 # here allows them to be overridden if necessary.
7623 runpath_var=LD_RUN_PATH
7624 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7625 export_dynamic_flag_spec='${wl}--export-dynamic'
7626 # ancient GNU ld didn't support --whole-archive et. al.
7627 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7628 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7630 whole_archive_flag_spec=
7632 supports_anon_versioning=no
7633 case `$LD -v 2>/dev/null` in
7634 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7635 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7636 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7637 *\ 2.11.*) ;; # other 2.11 versions
7638 *) supports_anon_versioning=yes ;;
7641 # See if GNU ld supports shared libraries.
7643 aix3* | aix4* | aix5*)
7644 # On AIX/PPC, the GNU linker is very broken
7645 if test "$host_cpu" != ia64; then
7649 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7650 *** to be unable to reliably create shared libraries on AIX.
7651 *** Therefore, libtool is disabling shared libraries support. If you
7652 *** really care for shared libraries, you may want to modify your PATH
7653 *** so that a non-GNU linker is found, and then restart.
7660 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)'
7661 hardcode_libdir_flag_spec='-L$libdir'
7662 hardcode_minus_L=yes
7664 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7665 # that the semantics of dynamic libraries on AmigaOS, at least up
7666 # to version 4, is to share data among multiple programs linked
7667 # with the same dynamic library. Since this doesn't match the
7668 # behavior of shared libraries on other platforms, we can't use
7674 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7675 allow_undefined_flag=unsupported
7676 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7677 # support --undefined. This deserves some investigation. FIXME
7678 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7684 cygwin* | mingw* | pw32*)
7685 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7686 # as there is no search path for DLLs.
7687 hardcode_libdir_flag_spec='-L$libdir'
7688 allow_undefined_flag=unsupported
7689 always_export_symbols=no
7690 enable_shared_with_static_runtimes=yes
7691 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7693 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7695 # If the export-symbols file already is a .def file (1st line
7696 # is EXPORTS), use it as is; otherwise, prepend...
7697 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7698 cp $export_symbols $output_objdir/$soname.def;
7700 echo EXPORTS > $output_objdir/$soname.def;
7701 cat $export_symbols >> $output_objdir/$soname.def;
7703 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7711 hardcode_shlibpath_var=no
7712 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7713 export_dynamic_flag_spec='${wl}-E'
7714 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7715 # Instead, shared libraries are loaded at an image base (0x10000000 by
7716 # default) and relocated if they conflict, which is a slow very memory
7717 # consuming and fragmenting process. To avoid this, we pick a random,
7718 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7719 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7720 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7721 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'
7725 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7727 case $cc_basename,$host_cpu in
7728 pgcc*) # Portland Group C compiler
7729 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'
7730 tmp_addflag=' $pic_flag'
7732 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7733 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'
7734 tmp_addflag=' $pic_flag -Mnomain' ;;
7735 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7736 tmp_addflag=' -i_dynamic' ;;
7737 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7738 tmp_addflag=' -i_dynamic -nofor_main' ;;
7739 ifc* | ifort*) # Intel Fortran compiler
7740 tmp_addflag=' -nofor_main' ;;
7742 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7744 if test $supports_anon_versioning = yes; then
7745 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7747 $echo "local: *; };" >> $output_objdir/$libname.ver~
7748 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7756 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7757 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7758 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7762 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7767 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7771 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7772 *** create shared libraries on Solaris systems. Therefore, libtool
7773 *** is disabling shared libraries support. We urge you to upgrade GNU
7774 *** binutils to release 2.9.1 or newer. Another option is to modify
7775 *** your PATH or compiler configuration so that the native linker is
7776 *** used, and then restart.
7779 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7781 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7787 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7788 case `$LD -v 2>&1` in
7789 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7793 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7794 *** reliably create shared libraries on SCO systems. Therefore, libtool
7795 *** is disabling shared libraries support. We urge you to upgrade GNU
7796 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7797 *** your PATH or compiler configuration so that the native linker is
7798 *** used, and then restart.
7803 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7804 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7806 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7815 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7818 hardcode_shlibpath_var=no
7822 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7824 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7831 if test "$ld_shlibs" = no; then
7833 hardcode_libdir_flag_spec=
7834 export_dynamic_flag_spec=
7835 whole_archive_flag_spec=
7838 # PORTME fill in a description of your system's linker (not GNU ld)
7841 allow_undefined_flag=unsupported
7842 always_export_symbols=yes
7843 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'
7844 # Note: this linker hardcodes the directories in LIBPATH if there
7845 # are no directories specified by -L.
7846 hardcode_minus_L=yes
7847 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7848 # Neither direct hardcoding nor static linking is supported with a
7850 hardcode_direct=unsupported
7855 if test "$host_cpu" = ia64; then
7856 # On IA64, the linker does run time linking by default, so we don't
7857 # have to do anything special.
7858 aix_use_runtimelinking=no
7859 exp_sym_flag='-Bexport'
7862 # If we're using GNU nm, then we don't want the "-C" option.
7863 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7864 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7865 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'
7867 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'
7869 aix_use_runtimelinking=no
7871 # Test if we are trying to use run time linking or normal
7872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7873 # need to do runtime linking.
7874 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7875 for ld_flag in $LDFLAGS; do
7876 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7877 aix_use_runtimelinking=yes
7884 exp_sym_flag='-bexport'
7885 no_entry_flag='-bnoentry'
7888 # When large executables or shared objects are built, AIX ld can
7889 # have problems creating the table of contents. If linking a library
7890 # or program results in "error TOC overflow" add -mminimal-toc to
7891 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7892 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7896 hardcode_libdir_separator=':'
7897 link_all_deplibs=yes
7899 if test "$GCC" = yes; then
7900 case $host_os in aix4.[012]|aix4.[012].*)
7901 # We only want to do this on AIX 4.2 and lower, the check
7902 # below for broken collect2 doesn't work under 4.3+
7903 collect2name=`${CC} -print-prog-name=collect2`
7904 if test -f "$collect2name" && \
7905 strings "$collect2name" | grep resolve_lib_name >/dev/null
7907 # We have reworked collect2
7910 # We have old collect2
7911 hardcode_direct=unsupported
7912 # It fails to find uninstalled libraries when the uninstalled
7913 # path is not listed in the libpath. Setting hardcode_minus_L
7914 # to unsupported forces relinking
7915 hardcode_minus_L=yes
7916 hardcode_libdir_flag_spec='-L$libdir'
7917 hardcode_libdir_separator=
7921 shared_flag='-shared'
7922 if test "$aix_use_runtimelinking" = yes; then
7923 shared_flag="$shared_flag "'${wl}-G'
7927 if test "$host_cpu" = ia64; then
7928 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7929 # chokes on -Wl,-G. The following line is correct:
7932 if test "$aix_use_runtimelinking" = yes; then
7933 shared_flag='${wl}-G'
7935 shared_flag='${wl}-bM:SRE'
7940 # It seems that -bexpall does not export symbols beginning with
7941 # underscore (_), so it is better to generate a list of symbols to export.
7942 always_export_symbols=yes
7943 if test "$aix_use_runtimelinking" = yes; then
7944 # Warning - without using the other runtime loading flags (-brtl),
7945 # -berok will link without error, but may produce a broken library.
7946 allow_undefined_flag='-berok'
7947 # Determine the default libpath from the value encoded in an empty executable.
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7959 if ac_fn_c_try_link "$LINENO"; then :
7961 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7963 # Check for a 64-bit object if we didn't find anything.
7964 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7967 rm -f core conftest.err conftest.$ac_objext \
7968 conftest$ac_exeext conftest.$ac_ext
7969 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7971 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7972 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7974 if test "$host_cpu" = ia64; then
7975 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7976 allow_undefined_flag="-z nodefs"
7977 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"
7979 # Determine the default libpath from the value encoded in an empty executable.
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7991 if ac_fn_c_try_link "$LINENO"; then :
7993 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7995 # Check for a 64-bit object if we didn't find anything.
7996 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7999 rm -f core conftest.err conftest.$ac_objext \
8000 conftest$ac_exeext conftest.$ac_ext
8001 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8003 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8004 # Warning - without using the other run time loading flags,
8005 # -berok will link without error, but may produce a broken library.
8006 no_undefined_flag=' ${wl}-bernotok'
8007 allow_undefined_flag=' ${wl}-berok'
8008 # Exported symbols can be pulled into shared objects from archives
8009 whole_archive_flag_spec='$convenience'
8010 archive_cmds_need_lc=yes
8011 # This is similar to how AIX traditionally builds its shared libraries.
8012 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'
8018 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)'
8019 hardcode_libdir_flag_spec='-L$libdir'
8020 hardcode_minus_L=yes
8021 # see comment about different semantics on the GNU ld section
8026 export_dynamic_flag_spec=-rdynamic
8029 cygwin* | mingw* | pw32*)
8030 # When not using gcc, we currently assume that we are using
8031 # Microsoft Visual C++.
8032 # hardcode_libdir_flag_spec is actually meaningless, as there is
8033 # no search path for DLLs.
8034 hardcode_libdir_flag_spec=' '
8035 allow_undefined_flag=unsupported
8036 # Tell ltmain to make .lib files, not .a files.
8038 # Tell ltmain to make .dll files, not .so files.
8040 # FIXME: Setting linknames here is a bad hack.
8041 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8042 # The linker will automatically build a .lib file if we build a DLL.
8043 old_archive_From_new_cmds='true'
8044 # FIXME: Should let the user specify the lib program.
8045 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8046 fix_srcfile_path='`cygpath -w "$srcfile"`'
8047 enable_shared_with_static_runtimes=yes
8050 darwin* | rhapsody*)
8052 rhapsody* | darwin1.[012])
8053 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8056 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8057 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8059 case ${MACOSX_DEPLOYMENT_TARGET} in
8061 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8064 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8070 archive_cmds_need_lc=no
8072 hardcode_automatic=yes
8073 hardcode_shlibpath_var=unsupported
8074 whole_archive_flag_spec=''
8075 link_all_deplibs=yes
8076 if test "$GCC" = yes ; then
8077 output_verbose_link_cmd='echo'
8078 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8079 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8080 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8081 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8082 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8084 case $cc_basename in
8086 output_verbose_link_cmd='echo'
8087 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8088 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8089 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8090 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8091 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8102 hardcode_libdir_flag_spec='-L$libdir'
8103 hardcode_shlibpath_var=no
8110 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8111 # support. Future versions do this automatically, but an explicit c++rt0.o
8112 # does not break anything, and helps significantly (at the cost of a little
8115 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8116 hardcode_libdir_flag_spec='-R$libdir'
8118 hardcode_shlibpath_var=no
8121 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8125 hardcode_minus_L=yes
8126 hardcode_shlibpath_var=no
8129 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8130 freebsd* | dragonfly*)
8131 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8132 hardcode_libdir_flag_spec='-R$libdir'
8134 hardcode_shlibpath_var=no
8137 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
8139 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8140 hardcode_libdir_flag_spec='-R$libdir'
8142 hardcode_shlibpath_var=no
8147 if test "$GCC" = yes; then
8148 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'
8150 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'
8152 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8153 hardcode_libdir_separator=:
8156 # hardcode_minus_L: Not really in the search PATH,
8157 # but as the default location of the library.
8158 hardcode_minus_L=yes
8159 export_dynamic_flag_spec='${wl}-E'
8163 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8164 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8166 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8168 if test "$with_gnu_ld" = no; then
8169 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8170 hardcode_libdir_separator=:
8173 export_dynamic_flag_spec='${wl}-E'
8175 # hardcode_minus_L: Not really in the search PATH,
8176 # but as the default location of the library.
8177 hardcode_minus_L=yes
8182 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8185 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8188 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8191 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8197 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8200 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8203 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8207 if test "$with_gnu_ld" = no; then
8208 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8209 hardcode_libdir_separator=:
8213 hardcode_libdir_flag_spec_ld='+b $libdir'
8215 hardcode_shlibpath_var=no
8219 export_dynamic_flag_spec='${wl}-E'
8221 # hardcode_minus_L: Not really in the search PATH,
8222 # but as the default location of the library.
8223 hardcode_minus_L=yes
8229 irix5* | irix6* | nonstopux*)
8230 if test "$GCC" = yes; then
8231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8233 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8234 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8237 hardcode_libdir_separator=:
8238 link_all_deplibs=yes
8241 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8242 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8243 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8245 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8247 hardcode_libdir_flag_spec='-R$libdir'
8249 hardcode_shlibpath_var=no
8253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8255 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8256 hardcode_libdir_separator=:
8257 hardcode_shlibpath_var=no
8262 hardcode_shlibpath_var=no
8263 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8264 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8265 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8266 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8267 export_dynamic_flag_spec='${wl}-E'
8270 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8271 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8272 hardcode_libdir_flag_spec='-R$libdir'
8275 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8276 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8283 hardcode_libdir_flag_spec='-L$libdir'
8284 hardcode_minus_L=yes
8285 allow_undefined_flag=unsupported
8286 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'
8287 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8291 if test "$GCC" = yes; then
8292 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8293 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8295 allow_undefined_flag=' -expect_unresolved \*'
8296 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8299 hardcode_libdir_separator=:
8302 osf4* | osf5*) # as osf3* with the addition of -msym flag
8303 if test "$GCC" = yes; then
8304 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8305 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8308 allow_undefined_flag=' -expect_unresolved \*'
8309 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8310 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8311 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8313 # Both c and cxx compiler support -rpath directly
8314 hardcode_libdir_flag_spec='-rpath $libdir'
8316 hardcode_libdir_separator=:
8320 no_undefined_flag=' -z text'
8321 if test "$GCC" = yes; then
8323 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8324 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8325 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8328 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8329 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8330 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8332 hardcode_libdir_flag_spec='-R$libdir'
8333 hardcode_shlibpath_var=no
8335 solaris2.[0-5] | solaris2.[0-5].*) ;;
8337 # The compiler driver will combine linker options so we
8338 # cannot just pass the convience library names through
8339 # without $wl, iff we do not link with $LD.
8340 # Luckily, gcc supports the same syntax we need for Sun Studio.
8341 # Supported since Solaris 2.6 (maybe 2.5.1?)
8344 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8346 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8349 link_all_deplibs=yes
8353 if test "x$host_vendor" = xsequent; then
8354 # Use $CC to link under sequent, because it throws in some extra .o
8355 # files that make .init and .fini sections work.
8356 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8358 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8360 hardcode_libdir_flag_spec='-L$libdir'
8362 hardcode_minus_L=yes
8363 hardcode_shlibpath_var=no
8367 case $host_vendor in
8369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8370 hardcode_direct=yes # is this really true???
8373 ## LD is ld it makes a PLAMLIB
8374 ## CC just makes a GrossModule.
8375 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8376 reload_cmds='$CC -r -o $output$reload_objs'
8380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8381 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8384 runpath_var='LD_RUN_PATH'
8385 hardcode_shlibpath_var=no
8389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8390 hardcode_shlibpath_var=no
8391 export_dynamic_flag_spec='-Bexport'
8395 if test -d /usr/nec; then
8396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8397 hardcode_shlibpath_var=no
8398 runpath_var=LD_RUN_PATH
8399 hardcode_runpath_var=yes
8404 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8405 no_undefined_flag='${wl}-z,text'
8406 archive_cmds_need_lc=no
8407 hardcode_shlibpath_var=no
8408 runpath_var='LD_RUN_PATH'
8410 if test "$GCC" = yes; then
8411 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8412 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8414 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8415 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8419 sysv5* | sco3.2v5* | sco5v6*)
8420 # Note: We can NOT use -z defs as we might desire, because we do not
8421 # link with -lc, and that would cause any symbols used from libc to
8422 # always be unresolved, which means just about no library would
8423 # ever link correctly. If we're not using GNU ld we use -z text
8424 # though, which does catch some bad symbols but isn't as heavy-handed
8426 no_undefined_flag='${wl}-z,text'
8427 allow_undefined_flag='${wl}-z,nodefs'
8428 archive_cmds_need_lc=no
8429 hardcode_shlibpath_var=no
8430 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8431 hardcode_libdir_separator=':'
8432 link_all_deplibs=yes
8433 export_dynamic_flag_spec='${wl}-Bexport'
8434 runpath_var='LD_RUN_PATH'
8436 if test "$GCC" = yes; then
8437 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8438 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8440 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8441 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8447 hardcode_libdir_flag_spec='-L$libdir'
8448 hardcode_shlibpath_var=no
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8458 $as_echo "$ld_shlibs" >&6; }
8459 test "$ld_shlibs" = no && can_build_shared=no
8462 # Do we need to explicitly link libc?
8464 case "x$archive_cmds_need_lc" in
8466 # Assume -lc should be added
8467 archive_cmds_need_lc=yes
8469 if test "$enable_shared" = yes && test "$GCC" = yes; then
8470 case $archive_cmds in
8472 # FIXME: we may have to deal with multi-command sequences.
8475 # Test whether the compiler implicitly links with -lc since on some
8476 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8477 # to ld, don't add -lc before -lgcc.
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8479 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8481 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8484 (eval $ac_compile) 2>&5
8486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8487 test $ac_status = 0; } 2>conftest.err; then
8490 libobjs=conftest.$ac_objext
8492 wl=$lt_prog_compiler_wl
8493 pic_flag=$lt_prog_compiler_pic
8499 lt_save_allow_undefined_flag=$allow_undefined_flag
8500 allow_undefined_flag=
8501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8502 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8505 test $ac_status = 0; }
8507 archive_cmds_need_lc=no
8509 archive_cmds_need_lc=yes
8511 allow_undefined_flag=$lt_save_allow_undefined_flag
8513 cat conftest.err 1>&5
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8517 $as_echo "$archive_cmds_need_lc" >&6; }
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8525 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8527 libname_spec='lib$name'
8535 shlibpath_overrides_runpath=unknown
8537 dynamic_linker="$host_os ld.so"
8538 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8539 if test "$GCC" = yes; then
8540 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8541 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8542 # if the path contains ";" then we assume it to be the separator
8543 # otherwise default to the standard path separator (i.e. ":") - it is
8544 # assumed that no part of a normal pathname contains ";" but that should
8545 # okay in the real world where ";" in dirpaths is itself problematic.
8546 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8548 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8551 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8553 need_lib_prefix=unknown
8554 hardcode_into_libs=no
8556 # when you set need_version to no, make sure it does not cause -set_version
8557 # flags to be left without arguments
8558 need_version=unknown
8563 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8564 shlibpath_var=LIBPATH
8566 # AIX 3 has no versioning support, so we append a major version to the name.
8567 soname_spec='${libname}${release}${shared_ext}$major'
8574 hardcode_into_libs=yes
8575 if test "$host_cpu" = ia64; then
8576 # AIX 5 supports IA64
8577 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8578 shlibpath_var=LD_LIBRARY_PATH
8580 # With GCC up to 2.95.x, collect2 would create an import file
8581 # for dependence libraries. The import file would start with
8582 # the line `#! .'. This would cause the generated library to
8583 # depend on `.', always an invalid library. This was fixed in
8584 # development snapshots of GCC prior to 3.0.
8586 aix4 | aix4.[01] | aix4.[01].*)
8587 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8589 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8596 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8597 # soname into executable. Probably we can add versioning support to
8598 # collect2, so additional links can be useful in future.
8599 if test "$aix_use_runtimelinking" = yes; then
8600 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8601 # instead of lib<name>.a to let people know that these are not
8602 # typical AIX shared libraries.
8603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8605 # We preserve .a as extension for shared libraries through AIX4.2
8606 # and later when we are not doing run time linking.
8607 library_names_spec='${libname}${release}.a $libname.a'
8608 soname_spec='${libname}${release}${shared_ext}$major'
8610 shlibpath_var=LIBPATH
8615 library_names_spec='$libname.ixlibrary $libname.a'
8616 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8617 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'
8621 library_names_spec='${libname}${shared_ext}'
8622 dynamic_linker="$host_os ld.so"
8623 shlibpath_var=LIBRARY_PATH
8629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8630 soname_spec='${libname}${release}${shared_ext}$major'
8631 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8632 shlibpath_var=LD_LIBRARY_PATH
8633 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8634 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8635 # the default ld.so.conf also contains /usr/contrib/lib and
8636 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8637 # libtool to hard-code these into programs
8640 cygwin* | mingw* | pw32*)
8641 version_type=windows
8646 case $GCC,$host_os in
8647 yes,cygwin* | yes,mingw* | yes,pw32*)
8648 library_names_spec='$libname.dll.a'
8649 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8650 postinstall_cmds='base_file=`basename \${file}`~
8651 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8652 dldir=$destdir/`dirname \$dlpath`~
8653 test -d \$dldir || mkdir -p \$dldir~
8654 $install_prog $dir/$dlname \$dldir/$dlname~
8655 chmod a+x \$dldir/$dlname'
8656 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8657 dlpath=$dir/\$dldll~
8659 shlibpath_overrides_runpath=yes
8663 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8664 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8665 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8668 # MinGW DLLs use traditional 'lib' prefix
8669 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8670 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8671 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8672 # It is most probably a Windows format PATH printed by
8673 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8674 # path with ; separators, and with drive letters. We can handle the
8675 # drive letters (cygwin fileutils understands them), so leave them,
8676 # especially as we might pass files found there to a mingw objdump,
8677 # which wouldn't understand a cygwinified path. Ahh.
8678 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8680 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8684 # pw32 DLLs use 'pw' prefix rather than 'lib'
8685 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8691 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8694 dynamic_linker='Win32 ld.exe'
8695 # FIXME: first we should search . and the directory the executable is in
8699 darwin* | rhapsody*)
8700 dynamic_linker="$host_os dyld"
8704 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8705 soname_spec='${libname}${release}${major}$shared_ext'
8706 shlibpath_overrides_runpath=yes
8707 shlibpath_var=DYLD_LIBRARY_PATH
8708 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8709 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8710 if test "$GCC" = yes; then
8711 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8713 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8715 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8723 soname_spec='${libname}${release}${shared_ext}$major'
8724 shlibpath_var=LD_LIBRARY_PATH
8735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8736 soname_spec='${libname}${release}${shared_ext}$major'
8737 shlibpath_var=LD_LIBRARY_PATH
8738 shlibpath_overrides_runpath=no
8739 hardcode_into_libs=yes
8740 dynamic_linker='GNU ld.so'
8743 freebsd* | dragonfly*)
8744 # DragonFly does not have aout. When/if they implement a new
8745 # versioning mechanism, adjust this.
8746 if test -x /usr/bin/objformat; then
8747 objformat=`/usr/bin/objformat`
8750 freebsd[123]*) objformat=aout ;;
8754 version_type=freebsd-$objformat
8755 case $version_type in
8757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8762 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8766 shlibpath_var=LD_LIBRARY_PATH
8769 shlibpath_overrides_runpath=yes
8771 freebsd3.[01]* | freebsdelf3.[01]*)
8772 shlibpath_overrides_runpath=yes
8773 hardcode_into_libs=yes
8775 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8776 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8777 shlibpath_overrides_runpath=no
8778 hardcode_into_libs=yes
8780 freebsd*) # from 4.6 on
8781 shlibpath_overrides_runpath=yes
8782 hardcode_into_libs=yes
8791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8792 soname_spec='${libname}${release}${shared_ext}$major'
8793 shlibpath_var=LD_LIBRARY_PATH
8794 hardcode_into_libs=yes
8797 hpux9* | hpux10* | hpux11*)
8798 # Give a soname corresponding to the major version so that dld.sl refuses to
8799 # link against other versions.
8806 hardcode_into_libs=yes
8807 dynamic_linker="$host_os dld.so"
8808 shlibpath_var=LD_LIBRARY_PATH
8809 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8811 soname_spec='${libname}${release}${shared_ext}$major'
8812 if test "X$HPUX_IA64_MODE" = X32; then
8813 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8815 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8817 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8821 hardcode_into_libs=yes
8822 dynamic_linker="$host_os dld.sl"
8823 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8824 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8826 soname_spec='${libname}${release}${shared_ext}$major'
8827 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8828 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8832 dynamic_linker="$host_os dld.sl"
8833 shlibpath_var=SHLIB_PATH
8834 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8836 soname_spec='${libname}${release}${shared_ext}$major'
8839 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8840 postinstall_cmds='chmod 555 $lib'
8847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8848 soname_spec='${libname}${release}${shared_ext}$major'
8849 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8850 shlibpath_var=LD_LIBRARY_PATH
8851 shlibpath_overrides_runpath=no
8852 hardcode_into_libs=yes
8855 irix5* | irix6* | nonstopux*)
8857 nonstopux*) version_type=nonstopux ;;
8859 if test "$lt_cv_prog_gnu_ld" = yes; then
8867 soname_spec='${libname}${release}${shared_ext}$major'
8868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8870 irix5* | nonstopux*)
8874 case $LD in # libtool.m4 will add one of these switches to LD
8875 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8876 libsuff= shlibsuff= libmagic=32-bit;;
8877 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8878 libsuff=32 shlibsuff=N32 libmagic=N32;;
8879 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8880 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8881 *) libsuff= shlibsuff= libmagic=never-match;;
8885 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8886 shlibpath_overrides_runpath=no
8887 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8888 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8889 hardcode_into_libs=yes
8892 # No shared lib support for Linux oldld, aout, or coff.
8893 linux*oldld* | linux*aout* | linux*coff*)
8897 # This must be Linux ELF.
8902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8903 soname_spec='${libname}${release}${shared_ext}$major'
8904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8905 shlibpath_var=LD_LIBRARY_PATH
8906 shlibpath_overrides_runpath=no
8907 # This implies no fast_install, which is unacceptable.
8908 # Some rework will be needed to allow for fast_install
8909 # before this can be enabled.
8910 hardcode_into_libs=yes
8912 # Append ld.so.conf contents to the search path
8913 if test -f /etc/ld.so.conf; then
8914 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8915 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8918 # We used to test for /lib/ld.so.1 and disable shared libraries on
8919 # powerpc, because MkLinux only supported shared libraries with the
8920 # GNU dynamic linker. Since this was broken with cross compilers,
8921 # most powerpc-linux boxes support dynamic linking these days and
8922 # people can always --disable-shared, the test was removed, and we
8923 # assume the GNU/Linux dynamic linker is in use.
8924 dynamic_linker='GNU/Linux ld.so'
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8932 soname_spec='${libname}${release}${shared_ext}$major'
8933 shlibpath_var=LD_LIBRARY_PATH
8934 shlibpath_overrides_runpath=no
8935 hardcode_into_libs=yes
8936 dynamic_linker='NetBSD ld.elf_so'
8943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8944 soname_spec='${libname}${release}${shared_ext}$major'
8945 shlibpath_var=LD_LIBRARY_PATH
8946 shlibpath_overrides_runpath=no
8947 hardcode_into_libs=yes
8948 dynamic_linker='GNU ld.so'
8955 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8958 dynamic_linker='NetBSD (a.out) ld.so'
8960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8961 soname_spec='${libname}${release}${shared_ext}$major'
8962 dynamic_linker='NetBSD ld.elf_so'
8964 shlibpath_var=LD_LIBRARY_PATH
8965 shlibpath_overrides_runpath=yes
8966 hardcode_into_libs=yes
8971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8972 shlibpath_var=LD_LIBRARY_PATH
8973 shlibpath_overrides_runpath=yes
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8981 soname_spec='${libname}${release}${shared_ext}$major'
8982 shlibpath_var=LD_LIBRARY_PATH
8983 shlibpath_overrides_runpath=yes
8988 sys_lib_dlsearch_path_spec="/usr/lib"
8990 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8992 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8993 *) need_version=no ;;
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8997 shlibpath_var=LD_LIBRARY_PATH
8998 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9000 openbsd2.[89] | openbsd2.[89].*)
9001 shlibpath_overrides_runpath=no
9004 shlibpath_overrides_runpath=yes
9008 shlibpath_overrides_runpath=yes
9013 libname_spec='$name'
9016 library_names_spec='$libname${shared_ext} $libname.a'
9017 dynamic_linker='OS/2 ld.exe'
9018 shlibpath_var=LIBPATH
9021 osf3* | osf4* | osf5*)
9025 soname_spec='${libname}${release}${shared_ext}$major'
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9027 shlibpath_var=LD_LIBRARY_PATH
9028 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9029 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9038 shlibpath_var=LD_LIBRARY_PATH
9039 shlibpath_overrides_runpath=yes
9040 hardcode_into_libs=yes
9041 # ldd complains unless libraries are executable
9042 postinstall_cmds='chmod +x $lib'
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9048 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9049 shlibpath_var=LD_LIBRARY_PATH
9050 shlibpath_overrides_runpath=yes
9051 if test "$with_gnu_ld" = yes; then
9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9060 soname_spec='${libname}${release}${shared_ext}$major'
9061 shlibpath_var=LD_LIBRARY_PATH
9062 case $host_vendor in
9064 shlibpath_overrides_runpath=no
9066 export_dynamic_flag_spec='${wl}-Blargedynsym'
9067 runpath_var=LD_RUN_PATH
9075 shlibpath_overrides_runpath=no
9076 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9082 if test -d /usr/nec ;then
9084 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9085 soname_spec='$libname${shared_ext}.$major'
9086 shlibpath_var=LD_LIBRARY_PATH
9090 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9091 version_type=freebsd-elf
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 hardcode_into_libs=yes
9098 if test "$with_gnu_ld" = yes; then
9099 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9100 shlibpath_overrides_runpath=no
9102 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9103 shlibpath_overrides_runpath=yes
9106 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9110 sys_lib_dlsearch_path_spec='/usr/lib'
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 shlibpath_var=LD_LIBRARY_PATH
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9125 $as_echo "$dynamic_linker" >&6; }
9126 test "$dynamic_linker" = no && can_build_shared=no
9128 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9129 if test "$GCC" = yes; then
9130 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9134 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9136 if test -n "$hardcode_libdir_flag_spec" || \
9137 test -n "$runpath_var" || \
9138 test "X$hardcode_automatic" = "Xyes" ; then
9140 # We can hardcode non-existant directories.
9141 if test "$hardcode_direct" != no &&
9142 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9143 # have to relink, otherwise we might link with an installed library
9144 # when we should be linking with a yet-to-be-installed one
9145 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9146 test "$hardcode_minus_L" != no; then
9147 # Linking always hardcodes the temporary library directory.
9148 hardcode_action=relink
9150 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9151 hardcode_action=immediate
9154 # We cannot hardcode anything, or else we can only hardcode existing
9156 hardcode_action=unsupported
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9159 $as_echo "$hardcode_action" >&6; }
9161 if test "$hardcode_action" = relink; then
9162 # Fast installation is not supported
9163 enable_fast_install=no
9164 elif test "$shlibpath_overrides_runpath" = yes ||
9165 test "$enable_shared" = no; then
9166 # Fast installation is not necessary
9167 enable_fast_install=needless
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9173 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9174 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9175 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9176 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9178 $as_echo "yes" >&6; }
9180 # FIXME - insert some real tests, host_os isn't really good enough
9183 if test -n "$STRIP" ; then
9184 striplib="$STRIP -x"
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9186 $as_echo "yes" >&6; }
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189 $as_echo "no" >&6; }
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9194 $as_echo "no" >&6; }
9199 if test "x$enable_dlopen" != xyes; then
9200 enable_dlopen=unknown
9201 enable_dlopen_self=unknown
9202 enable_dlopen_self_static=unknown
9209 lt_cv_dlopen="load_add_on"
9211 lt_cv_dlopen_self=yes
9215 lt_cv_dlopen="LoadLibrary"
9220 lt_cv_dlopen="dlopen"
9225 # if libdl is installed we need to link against it
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9227 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9228 if ${ac_cv_lib_dl_dlopen+:} false; then :
9229 $as_echo_n "(cached) " >&6
9231 ac_check_lib_save_LIBS=$LIBS
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9236 /* Override any GCC internal prototype to avoid an error.
9237 Use char because int might match the return type of a GCC
9238 builtin and then its argument prototype would still apply. */
9251 if ac_fn_c_try_link "$LINENO"; then :
9252 ac_cv_lib_dl_dlopen=yes
9254 ac_cv_lib_dl_dlopen=no
9256 rm -f core conftest.err conftest.$ac_objext \
9257 conftest$ac_exeext conftest.$ac_ext
9258 LIBS=$ac_check_lib_save_LIBS
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9261 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9262 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9263 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9268 lt_cv_dlopen_self=yes
9275 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9276 if test "x$ac_cv_func_shl_load" = xyes; then :
9277 lt_cv_dlopen="shl_load"
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9280 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9281 if ${ac_cv_lib_dld_shl_load+:} false; then :
9282 $as_echo_n "(cached) " >&6
9284 ac_check_lib_save_LIBS=$LIBS
9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287 /* end confdefs.h. */
9289 /* Override any GCC internal prototype to avoid an error.
9290 Use char because int might match the return type of a GCC
9291 builtin and then its argument prototype would still apply. */
9304 if ac_fn_c_try_link "$LINENO"; then :
9305 ac_cv_lib_dld_shl_load=yes
9307 ac_cv_lib_dld_shl_load=no
9309 rm -f core conftest.err conftest.$ac_objext \
9310 conftest$ac_exeext conftest.$ac_ext
9311 LIBS=$ac_check_lib_save_LIBS
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9314 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9315 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9316 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9318 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9319 if test "x$ac_cv_func_dlopen" = xyes; then :
9320 lt_cv_dlopen="dlopen"
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9323 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9324 if ${ac_cv_lib_dl_dlopen+:} false; then :
9325 $as_echo_n "(cached) " >&6
9327 ac_check_lib_save_LIBS=$LIBS
9329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330 /* end confdefs.h. */
9332 /* Override any GCC internal prototype to avoid an error.
9333 Use char because int might match the return type of a GCC
9334 builtin and then its argument prototype would still apply. */
9347 if ac_fn_c_try_link "$LINENO"; then :
9348 ac_cv_lib_dl_dlopen=yes
9350 ac_cv_lib_dl_dlopen=no
9352 rm -f core conftest.err conftest.$ac_objext \
9353 conftest$ac_exeext conftest.$ac_ext
9354 LIBS=$ac_check_lib_save_LIBS
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9357 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9358 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9359 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9362 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9363 if ${ac_cv_lib_svld_dlopen+:} false; then :
9364 $as_echo_n "(cached) " >&6
9366 ac_check_lib_save_LIBS=$LIBS
9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369 /* end confdefs.h. */
9371 /* Override any GCC internal prototype to avoid an error.
9372 Use char because int might match the return type of a GCC
9373 builtin and then its argument prototype would still apply. */
9386 if ac_fn_c_try_link "$LINENO"; then :
9387 ac_cv_lib_svld_dlopen=yes
9389 ac_cv_lib_svld_dlopen=no
9391 rm -f core conftest.err conftest.$ac_objext \
9392 conftest$ac_exeext conftest.$ac_ext
9393 LIBS=$ac_check_lib_save_LIBS
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9396 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9397 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9398 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9401 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9402 if ${ac_cv_lib_dld_dld_link+:} false; then :
9403 $as_echo_n "(cached) " >&6
9405 ac_check_lib_save_LIBS=$LIBS
9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9410 /* Override any GCC internal prototype to avoid an error.
9411 Use char because int might match the return type of a GCC
9412 builtin and then its argument prototype would still apply. */
9425 if ac_fn_c_try_link "$LINENO"; then :
9426 ac_cv_lib_dld_dld_link=yes
9428 ac_cv_lib_dld_dld_link=no
9430 rm -f core conftest.err conftest.$ac_objext \
9431 conftest$ac_exeext conftest.$ac_ext
9432 LIBS=$ac_check_lib_save_LIBS
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9435 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9436 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9437 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9458 if test "x$lt_cv_dlopen" != xno; then
9464 case $lt_cv_dlopen in
9466 save_CPPFLAGS="$CPPFLAGS"
9467 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9469 save_LDFLAGS="$LDFLAGS"
9470 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9473 LIBS="$lt_cv_dlopen_libs $LIBS"
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9476 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9477 if ${lt_cv_dlopen_self+:} false; then :
9478 $as_echo_n "(cached) " >&6
9480 if test "$cross_compiling" = yes; then :
9481 lt_cv_dlopen_self=cross
9483 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9484 lt_status=$lt_dlunknown
9485 cat > conftest.$ac_ext <<EOF
9486 #line 9486 "configure"
9487 #include "confdefs.h"
9496 # define LT_DLGLOBAL RTLD_GLOBAL
9499 # define LT_DLGLOBAL DL_GLOBAL
9501 # define LT_DLGLOBAL 0
9505 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9506 find out it does not work in some platform. */
9507 #ifndef LT_DLLAZY_OR_NOW
9509 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9512 # define LT_DLLAZY_OR_NOW DL_LAZY
9515 # define LT_DLLAZY_OR_NOW RTLD_NOW
9518 # define LT_DLLAZY_OR_NOW DL_NOW
9520 # define LT_DLLAZY_OR_NOW 0
9528 extern "C" void exit (int);
9531 void fnord() { int i=42;}
9534 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9535 int status = $lt_dlunknown;
9539 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9540 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9541 /* dlclose (self); */
9549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9550 (eval $ac_link) 2>&5
9552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9553 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9554 (./conftest; exit; ) >&5 2>/dev/null
9557 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9558 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9559 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9562 # compilation failed
9563 lt_cv_dlopen_self=no
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9571 $as_echo "$lt_cv_dlopen_self" >&6; }
9573 if test "x$lt_cv_dlopen_self" = xyes; then
9574 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9576 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9577 if ${lt_cv_dlopen_self_static+:} false; then :
9578 $as_echo_n "(cached) " >&6
9580 if test "$cross_compiling" = yes; then :
9581 lt_cv_dlopen_self_static=cross
9583 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9584 lt_status=$lt_dlunknown
9585 cat > conftest.$ac_ext <<EOF
9586 #line 9586 "configure"
9587 #include "confdefs.h"
9596 # define LT_DLGLOBAL RTLD_GLOBAL
9599 # define LT_DLGLOBAL DL_GLOBAL
9601 # define LT_DLGLOBAL 0
9605 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9606 find out it does not work in some platform. */
9607 #ifndef LT_DLLAZY_OR_NOW
9609 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9612 # define LT_DLLAZY_OR_NOW DL_LAZY
9615 # define LT_DLLAZY_OR_NOW RTLD_NOW
9618 # define LT_DLLAZY_OR_NOW DL_NOW
9620 # define LT_DLLAZY_OR_NOW 0
9628 extern "C" void exit (int);
9631 void fnord() { int i=42;}
9634 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9635 int status = $lt_dlunknown;
9639 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9640 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9641 /* dlclose (self); */
9649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9650 (eval $ac_link) 2>&5
9652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9653 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9654 (./conftest; exit; ) >&5 2>/dev/null
9657 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9658 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9659 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9662 # compilation failed
9663 lt_cv_dlopen_self_static=no
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9671 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9674 CPPFLAGS="$save_CPPFLAGS"
9675 LDFLAGS="$save_LDFLAGS"
9680 case $lt_cv_dlopen_self in
9681 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9682 *) enable_dlopen_self=unknown ;;
9685 case $lt_cv_dlopen_self_static in
9686 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9687 *) enable_dlopen_self_static=unknown ;;
9692 # Report which library types will actually be built
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9694 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9696 $as_echo "$can_build_shared" >&6; }
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9699 $as_echo_n "checking whether to build shared libraries... " >&6; }
9700 test "$can_build_shared" = "no" && enable_shared=no
9702 # On AIX, shared libraries and static libraries use the same namespace, and
9703 # are all built from PIC.
9706 test "$enable_shared" = yes && enable_static=no
9707 if test -n "$RANLIB"; then
9708 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9709 postinstall_cmds='$RANLIB $lib'
9714 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9715 test "$enable_shared" = yes && enable_static=no
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9720 $as_echo "$enable_shared" >&6; }
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9723 $as_echo_n "checking whether to build static libraries... " >&6; }
9724 # Make sure either enable_shared or enable_static is yes.
9725 test "$enable_shared" = yes || enable_static=yes
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9727 $as_echo "$enable_static" >&6; }
9729 # The else clause should only fire when bootstrapping the
9730 # libtool distribution, otherwise you forgot to ship ltmain.sh
9731 # with your package, and you will get complaints that there are
9732 # no rules to generate ltmain.sh.
9733 if test -f "$ltmain"; then
9734 # See if we are running on zsh, and set the options which allow our commands through
9735 # without removal of \ escapes.
9736 if test -n "${ZSH_VERSION+set}" ; then
9737 setopt NO_GLOB_SUBST
9739 # Now quote all the things that may contain metacharacters while being
9740 # careful not to overquote the AC_SUBSTed values. We take copies of the
9741 # variables and quote the copies for generation of the libtool script.
9742 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9744 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9745 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9746 deplibs_check_method reload_flag reload_cmds need_locks \
9747 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9748 lt_cv_sys_global_symbol_to_c_name_address \
9749 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9750 old_postinstall_cmds old_postuninstall_cmds \
9754 lt_prog_compiler_wl \
9755 lt_prog_compiler_pic \
9756 lt_prog_compiler_static \
9757 lt_prog_compiler_no_builtin_flag \
9758 export_dynamic_flag_spec \
9759 thread_safe_flag_spec \
9760 whole_archive_flag_spec \
9761 enable_shared_with_static_runtimes \
9763 old_archive_from_new_cmds \
9768 compiler_lib_search_path \
9770 archive_expsym_cmds \
9772 postuninstall_cmds \
9773 old_archive_from_expsyms_cmds \
9774 allow_undefined_flag \
9776 export_symbols_cmds \
9777 hardcode_libdir_flag_spec \
9778 hardcode_libdir_flag_spec_ld \
9779 hardcode_libdir_separator \
9780 hardcode_automatic \
9782 module_expsym_cmds \
9783 lt_cv_prog_compiler_c_o \
9788 old_archive_cmds | \
9789 old_archive_from_new_cmds | \
9791 archive_expsym_cmds | \
9793 module_expsym_cmds | \
9794 old_archive_from_expsyms_cmds | \
9795 export_symbols_cmds | \
9796 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9797 postinstall_cmds | postuninstall_cmds | \
9798 old_postinstall_cmds | old_postuninstall_cmds | \
9799 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9800 # Double-quote double-evaled strings.
9801 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9804 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9810 *'\$0 --fallback-echo"')
9811 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9816 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9819 $as_echo "$as_me: creating $ofile" >&6;}
9821 cat <<__EOF__ >> "$cfgfile"
9824 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9825 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9826 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9828 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9829 # Free Software Foundation, Inc.
9831 # This file is part of GNU Libtool:
9832 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9834 # This program is free software; you can redistribute it and/or modify
9835 # it under the terms of the GNU General Public License as published by
9836 # the Free Software Foundation; either version 2 of the License, or
9837 # (at your option) any later version.
9839 # This program is distributed in the hope that it will be useful, but
9840 # WITHOUT ANY WARRANTY; without even the implied warranty of
9841 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9842 # General Public License for more details.
9844 # You should have received a copy of the GNU General Public License
9845 # along with this program; if not, write to the Free Software
9846 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9848 # As a special exception to the GNU General Public License, if you
9849 # distribute this file as part of a program that contains a
9850 # configuration script generated by Autoconf, you may include it under
9851 # the same distribution terms that you use for the rest of that program.
9853 # A sed program that does not truncate output.
9856 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9857 Xsed="$SED -e 1s/^X//"
9859 # The HP-UX ksh and POSIX shell print the target directory to stdout
9861 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9863 # The names of the tagged configurations supported by this script.
9866 # ### BEGIN LIBTOOL CONFIG
9868 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9870 # Shell to use when invoking shell scripts.
9873 # Whether or not to build shared libraries.
9874 build_libtool_libs=$enable_shared
9876 # Whether or not to build static libraries.
9877 build_old_libs=$enable_static
9879 # Whether or not to add -lc for building shared libraries.
9880 build_libtool_need_lc=$archive_cmds_need_lc
9882 # Whether or not to disallow shared libs when runtime libs are static
9883 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9885 # Whether or not to optimize for fast installation.
9886 fast_install=$enable_fast_install
9889 host_alias=$host_alias
9894 build_alias=$build_alias
9898 # An echo program that does not interpret backslashes.
9903 AR_FLAGS=$lt_AR_FLAGS
9908 # LTCC compiler flags.
9909 LTCFLAGS=$lt_LTCFLAGS
9911 # A language-specific compiler.
9914 # Is the compiler the GNU C compiler?
9920 # The linker used to build libraries.
9923 # Whether we need hard or soft links.
9926 # A BSD-compatible nm program.
9929 # A symbol stripping program
9932 # Used to examine libraries when file_magic_cmd begins "file"
9933 MAGIC_CMD=$MAGIC_CMD
9935 # Used on cygwin: DLL creation program.
9938 # Used on cygwin: object dumper.
9941 # Used on cygwin: assembler.
9944 # The name of the directory that contains temporary libtool files.
9947 # How to create reloadable object files.
9948 reload_flag=$lt_reload_flag
9949 reload_cmds=$lt_reload_cmds
9951 # How to pass a linker flag through the compiler.
9952 wl=$lt_lt_prog_compiler_wl
9954 # Object file suffix (normally "o").
9957 # Old archive suffix (normally "a").
9960 # Shared library suffix (normally ".so").
9961 shrext_cmds='$shrext_cmds'
9963 # Executable file suffix (normally "").
9966 # Additional compiler flags for building library objects.
9967 pic_flag=$lt_lt_prog_compiler_pic
9970 # What is the maximum length of a command?
9971 max_cmd_len=$lt_cv_sys_max_cmd_len
9973 # Does compiler simultaneously support -c and -o options?
9974 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9976 # Must we lock files when doing compilation?
9977 need_locks=$lt_need_locks
9979 # Do we need the lib prefix for modules?
9980 need_lib_prefix=$need_lib_prefix
9982 # Do we need a version for libraries?
9983 need_version=$need_version
9985 # Whether dlopen is supported.
9986 dlopen_support=$enable_dlopen
9988 # Whether dlopen of programs is supported.
9989 dlopen_self=$enable_dlopen_self
9991 # Whether dlopen of statically linked programs is supported.
9992 dlopen_self_static=$enable_dlopen_self_static
9994 # Compiler flag to prevent dynamic linking.
9995 link_static_flag=$lt_lt_prog_compiler_static
9997 # Compiler flag to turn off builtin functions.
9998 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10000 # Compiler flag to allow reflexive dlopens.
10001 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10003 # Compiler flag to generate shared objects directly from archives.
10004 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10006 # Compiler flag to generate thread-safe objects.
10007 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10009 # Library versioning type.
10010 version_type=$version_type
10012 # Format of library name prefix.
10013 libname_spec=$lt_libname_spec
10015 # List of archive names. First name is the real one, the rest are links.
10016 # The last name is the one that the linker finds with -lNAME.
10017 library_names_spec=$lt_library_names_spec
10019 # The coded name of the library, if different from the real name.
10020 soname_spec=$lt_soname_spec
10022 # Commands used to build and install an old-style archive.
10024 old_archive_cmds=$lt_old_archive_cmds
10025 old_postinstall_cmds=$lt_old_postinstall_cmds
10026 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10028 # Create an old-style archive from a shared archive.
10029 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10031 # Create a temporary old-style archive to link instead of a shared archive.
10032 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10034 # Commands used to build and install a shared archive.
10035 archive_cmds=$lt_archive_cmds
10036 archive_expsym_cmds=$lt_archive_expsym_cmds
10037 postinstall_cmds=$lt_postinstall_cmds
10038 postuninstall_cmds=$lt_postuninstall_cmds
10040 # Commands used to build a loadable module (assumed same as above if empty)
10041 module_cmds=$lt_module_cmds
10042 module_expsym_cmds=$lt_module_expsym_cmds
10044 # Commands to strip libraries.
10045 old_striplib=$lt_old_striplib
10046 striplib=$lt_striplib
10048 # Dependencies to place before the objects being linked to create a
10050 predep_objects=$lt_predep_objects
10052 # Dependencies to place after the objects being linked to create a
10054 postdep_objects=$lt_postdep_objects
10056 # Dependencies to place before the objects being linked to create a
10058 predeps=$lt_predeps
10060 # Dependencies to place after the objects being linked to create a
10062 postdeps=$lt_postdeps
10064 # The library search path used internally by the compiler when linking
10065 # a shared library.
10066 compiler_lib_search_path=$lt_compiler_lib_search_path
10068 # Method to check whether dependent libraries are shared objects.
10069 deplibs_check_method=$lt_deplibs_check_method
10071 # Command to use when deplibs_check_method == file_magic.
10072 file_magic_cmd=$lt_file_magic_cmd
10074 # Flag that allows shared libraries with undefined symbols to be built.
10075 allow_undefined_flag=$lt_allow_undefined_flag
10077 # Flag that forces no undefined symbols.
10078 no_undefined_flag=$lt_no_undefined_flag
10080 # Commands used to finish a libtool library installation in a directory.
10081 finish_cmds=$lt_finish_cmds
10083 # Same as above, but a single script fragment to be evaled but not shown.
10084 finish_eval=$lt_finish_eval
10086 # Take the output of nm and produce a listing of raw symbols and C names.
10087 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10089 # Transform the output of nm in a proper C declaration
10090 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10092 # Transform the output of nm in a C name address pair
10093 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10095 # This is the shared library runtime path variable.
10096 runpath_var=$runpath_var
10098 # This is the shared library path variable.
10099 shlibpath_var=$shlibpath_var
10101 # Is shlibpath searched before the hard-coded library search path?
10102 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10104 # How to hardcode a shared library path into an executable.
10105 hardcode_action=$hardcode_action
10107 # Whether we should hardcode library paths into libraries.
10108 hardcode_into_libs=$hardcode_into_libs
10110 # Flag to hardcode \$libdir into a binary during linking.
10111 # This must work even if \$libdir does not exist.
10112 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10114 # If ld is used when linking, flag to hardcode \$libdir into
10115 # a binary during linking. This must work even if \$libdir does
10117 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10119 # Whether we need a single -rpath flag with a separated argument.
10120 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10122 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10123 # resulting binary.
10124 hardcode_direct=$hardcode_direct
10126 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10127 # resulting binary.
10128 hardcode_minus_L=$hardcode_minus_L
10130 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10131 # the resulting binary.
10132 hardcode_shlibpath_var=$hardcode_shlibpath_var
10134 # Set to yes if building a shared library automatically hardcodes DIR into the library
10135 # and all subsequent libraries and executables linked against it.
10136 hardcode_automatic=$hardcode_automatic
10138 # Variables whose values should be saved in libtool wrapper scripts and
10139 # restored at relink time.
10140 variables_saved_for_relink="$variables_saved_for_relink"
10142 # Whether libtool must link a program against all its dependency libraries.
10143 link_all_deplibs=$link_all_deplibs
10145 # Compile-time system search path for libraries
10146 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10148 # Run-time system search path for libraries
10149 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10151 # Fix the shell variable \$srcfile for the compiler.
10152 fix_srcfile_path="$fix_srcfile_path"
10154 # Set to yes if exported symbols are required.
10155 always_export_symbols=$always_export_symbols
10157 # The commands to list exported symbols.
10158 export_symbols_cmds=$lt_export_symbols_cmds
10160 # The commands to extract the exported symbol list from a shared archive.
10161 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10163 # Symbols that should not be listed in the preloaded symbols.
10164 exclude_expsyms=$lt_exclude_expsyms
10166 # Symbols that must always be exported.
10167 include_expsyms=$lt_include_expsyms
10169 # ### END LIBTOOL CONFIG
10176 cat <<\EOF >> "$cfgfile"
10178 # AIX sometimes has problems with the GCC collect2 program. For some
10179 # reason, if we set the COLLECT_NAMES environment variable, the problems
10180 # vanish in a puff of smoke.
10181 if test "X${COLLECT_NAMES+set}" != Xset; then
10183 export COLLECT_NAMES
10189 # We use sed instead of cat because bash on DJGPP gets confused if
10190 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10191 # text mode, it properly converts lines to CR/LF. This bash problem
10192 # is reportedly fixed, but why not run on old versions too?
10193 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10195 mv -f "$cfgfile" "$ofile" || \
10196 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10200 # If there is no Makefile yet, we rely on a make rule to execute
10201 # `config.status --recheck' to rerun these tests and create the
10202 # libtool script then.
10203 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10204 if test -f "$ltmain_in"; then
10205 test -f Makefile && make "$ltmain"
10211 ac_cpp='$CPP $CPPFLAGS'
10212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10219 # Check whether --with-tags was given.
10220 if test "${with_tags+set}" = set; then :
10221 withval=$with_tags; tagnames="$withval"
10225 if test -f "$ltmain" && test -n "$tagnames"; then
10226 if test ! -f "${ofile}"; then
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10228 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10231 if test -z "$LTCC"; then
10232 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10233 if test -z "$LTCC"; then
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10235 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10238 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10241 if test -z "$LTCFLAGS"; then
10242 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10245 # Extract list of available tagged configurations in $ofile.
10246 # Note that this assumes the entire list is on one line.
10247 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10249 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10250 for tagname in $tagnames; do
10252 # Check whether tagname contains only valid characters
10253 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10255 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10259 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10261 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10264 # Update the list of available tags.
10265 if test -n "$tagname"; then
10266 echo appending configuration tag \"$tagname\" to $ofile
10270 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10271 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10272 (test "X$CXX" != "Xg++"))) ; then
10274 ac_cpp='$CXXCPP $CPPFLAGS'
10275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10282 archive_cmds_need_lc_CXX=no
10283 allow_undefined_flag_CXX=
10284 always_export_symbols_CXX=no
10285 archive_expsym_cmds_CXX=
10286 export_dynamic_flag_spec_CXX=
10287 hardcode_direct_CXX=no
10288 hardcode_libdir_flag_spec_CXX=
10289 hardcode_libdir_flag_spec_ld_CXX=
10290 hardcode_libdir_separator_CXX=
10291 hardcode_minus_L_CXX=no
10292 hardcode_shlibpath_var_CXX=unsupported
10293 hardcode_automatic_CXX=no
10295 module_expsym_cmds_CXX=
10296 link_all_deplibs_CXX=unknown
10297 old_archive_cmds_CXX=$old_archive_cmds
10298 no_undefined_flag_CXX=
10299 whole_archive_flag_spec_CXX=
10300 enable_shared_with_static_runtimes_CXX=no
10302 # Dependencies to place before and after the object being linked:
10303 predep_objects_CXX=
10304 postdep_objects_CXX=
10307 compiler_lib_search_path_CXX=
10309 # Source file extension for C++ test sources.
10312 # Object file extension for compiled C++ test sources.
10316 # Code to be used in simple compile tests
10317 lt_simple_compile_test_code="int some_variable = 0;\n"
10319 # Code to be used in simple link tests
10320 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10322 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10324 # If no C compiler was specified, use CC.
10327 # If no C compiler flags were specified, use CFLAGS.
10328 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10330 # Allow CC to be a program name with arguments.
10334 # save warnings/boilerplate of simple test code
10335 ac_outfile=conftest.$ac_objext
10336 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10337 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10338 _lt_compiler_boilerplate=`cat conftest.err`
10341 ac_outfile=conftest.$ac_objext
10342 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10343 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10344 _lt_linker_boilerplate=`cat conftest.err`
10348 # Allow CC to be a program name with arguments.
10353 lt_save_with_gnu_ld=$with_gnu_ld
10354 lt_save_path_LD=$lt_cv_path_LD
10355 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10356 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10358 $as_unset lt_cv_prog_gnu_ld
10360 if test -n "${lt_cv_path_LDCXX+set}"; then
10361 lt_cv_path_LD=$lt_cv_path_LDCXX
10363 $as_unset lt_cv_path_LD
10365 test -z "${LDCXX+set}" || LD=$LDCXX
10369 for cc_temp in $compiler""; do
10371 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10372 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10377 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10380 # We don't want -fno-exception wen compiling C++ code, so set the
10381 # no_builtin_flag separately
10382 if test "$GXX" = yes; then
10383 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10385 lt_prog_compiler_no_builtin_flag_CXX=
10388 if test "$GXX" = yes; then
10389 # Set up default GNU C++ configuration
10392 # Check whether --with-gnu-ld was given.
10393 if test "${with_gnu_ld+set}" = set; then :
10394 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10400 if test "$GCC" = yes; then
10401 # Check if gcc -print-prog-name=ld gives a path.
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10403 $as_echo_n "checking for ld used by $CC... " >&6; }
10406 # gcc leaves a trailing carriage return which upsets mingw
10407 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10409 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10412 # Accept absolute paths.
10414 re_direlt='/[^/][^/]*/\.\./'
10415 # Canonicalize the pathname of ld
10416 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10417 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10418 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10420 test -z "$LD" && LD="$ac_prog"
10423 # If it fails, then pretend we aren't using GCC.
10427 # If it is relative, then search for the first ld in PATH.
10428 with_gnu_ld=unknown
10431 elif test "$with_gnu_ld" = yes; then
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10433 $as_echo_n "checking for GNU ld... " >&6; }
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10436 $as_echo_n "checking for non-GNU ld... " >&6; }
10438 if ${lt_cv_path_LD+:} false; then :
10439 $as_echo_n "(cached) " >&6
10441 if test -z "$LD"; then
10442 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10443 for ac_dir in $PATH; do
10445 test -z "$ac_dir" && ac_dir=.
10446 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10447 lt_cv_path_LD="$ac_dir/$ac_prog"
10448 # Check to see if the program is GNU ld. I'd rather use --version,
10449 # but apparently some variants of GNU ld only accept -v.
10450 # Break only if it was the GNU/non-GNU ld that we prefer.
10451 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10452 *GNU* | *'with BFD'*)
10453 test "$with_gnu_ld" != no && break
10456 test "$with_gnu_ld" != yes && break
10463 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10467 LD="$lt_cv_path_LD"
10468 if test -n "$LD"; then
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10470 $as_echo "$LD" >&6; }
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10473 $as_echo "no" >&6; }
10475 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10477 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10478 if ${lt_cv_prog_gnu_ld+:} false; then :
10479 $as_echo_n "(cached) " >&6
10481 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10482 case `$LD -v 2>&1 </dev/null` in
10483 *GNU* | *'with BFD'*)
10484 lt_cv_prog_gnu_ld=yes
10487 lt_cv_prog_gnu_ld=no
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10492 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10493 with_gnu_ld=$lt_cv_prog_gnu_ld
10497 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10498 # archiving commands below assume that GNU ld is being used.
10499 if test "$with_gnu_ld" = yes; then
10500 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10501 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'
10503 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10504 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10506 # If archive_cmds runs LD, not CC, wlarc should be empty
10507 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10508 # investigate it a little bit more. (MM)
10511 # ancient GNU ld didn't support --whole-archive et. al.
10512 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10513 grep 'no-whole-archive' > /dev/null; then
10514 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10516 whole_archive_flag_spec_CXX=
10522 # A generic and very simple default shared library creation
10523 # command for GNU C++ for the case where it uses the native
10524 # linker, instead of GNU ld. If possible, this setting should
10525 # overridden to take advantage of the native linker features on
10526 # the platform it is being used on.
10527 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10530 # Commands to make compiler produce verbose output that lists
10531 # what "hidden" libraries, object files and flags are used when
10532 # linking a shared library.
10533 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10541 # PORTME: fill in a description of your system's C++ link characteristics
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10543 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10547 # FIXME: insert proper C++ library support
10551 if test "$host_cpu" = ia64; then
10552 # On IA64, the linker does run time linking by default, so we don't
10553 # have to do anything special.
10554 aix_use_runtimelinking=no
10555 exp_sym_flag='-Bexport'
10558 aix_use_runtimelinking=no
10560 # Test if we are trying to use run time linking or normal
10561 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10562 # need to do runtime linking.
10563 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10564 for ld_flag in $LDFLAGS; do
10567 aix_use_runtimelinking=yes
10575 exp_sym_flag='-bexport'
10576 no_entry_flag='-bnoentry'
10579 # When large executables or shared objects are built, AIX ld can
10580 # have problems creating the table of contents. If linking a library
10581 # or program results in "error TOC overflow" add -mminimal-toc to
10582 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10583 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10585 archive_cmds_CXX=''
10586 hardcode_direct_CXX=yes
10587 hardcode_libdir_separator_CXX=':'
10588 link_all_deplibs_CXX=yes
10590 if test "$GXX" = yes; then
10591 case $host_os in aix4.[012]|aix4.[012].*)
10592 # We only want to do this on AIX 4.2 and lower, the check
10593 # below for broken collect2 doesn't work under 4.3+
10594 collect2name=`${CC} -print-prog-name=collect2`
10595 if test -f "$collect2name" && \
10596 strings "$collect2name" | grep resolve_lib_name >/dev/null
10598 # We have reworked collect2
10599 hardcode_direct_CXX=yes
10601 # We have old collect2
10602 hardcode_direct_CXX=unsupported
10603 # It fails to find uninstalled libraries when the uninstalled
10604 # path is not listed in the libpath. Setting hardcode_minus_L
10605 # to unsupported forces relinking
10606 hardcode_minus_L_CXX=yes
10607 hardcode_libdir_flag_spec_CXX='-L$libdir'
10608 hardcode_libdir_separator_CXX=
10612 shared_flag='-shared'
10613 if test "$aix_use_runtimelinking" = yes; then
10614 shared_flag="$shared_flag "'${wl}-G'
10618 if test "$host_cpu" = ia64; then
10619 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10620 # chokes on -Wl,-G. The following line is correct:
10623 if test "$aix_use_runtimelinking" = yes; then
10624 shared_flag='${wl}-G'
10626 shared_flag='${wl}-bM:SRE'
10631 # It seems that -bexpall does not export symbols beginning with
10632 # underscore (_), so it is better to generate a list of symbols to export.
10633 always_export_symbols_CXX=yes
10634 if test "$aix_use_runtimelinking" = yes; then
10635 # Warning - without using the other runtime loading flags (-brtl),
10636 # -berok will link without error, but may produce a broken library.
10637 allow_undefined_flag_CXX='-berok'
10638 # Determine the default libpath from the value encoded in an empty executable.
10639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640 /* end confdefs.h. */
10650 if ac_fn_cxx_try_link "$LINENO"; then :
10652 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10654 # Check for a 64-bit object if we didn't find anything.
10655 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10658 rm -f core conftest.err conftest.$ac_objext \
10659 conftest$ac_exeext conftest.$ac_ext
10660 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10662 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10664 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10666 if test "$host_cpu" = ia64; then
10667 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10668 allow_undefined_flag_CXX="-z nodefs"
10669 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"
10671 # Determine the default libpath from the value encoded in an empty executable.
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10683 if ac_fn_cxx_try_link "$LINENO"; then :
10685 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10687 # Check for a 64-bit object if we didn't find anything.
10688 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10691 rm -f core conftest.err conftest.$ac_objext \
10692 conftest$ac_exeext conftest.$ac_ext
10693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10695 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10696 # Warning - without using the other run time loading flags,
10697 # -berok will link without error, but may produce a broken library.
10698 no_undefined_flag_CXX=' ${wl}-bernotok'
10699 allow_undefined_flag_CXX=' ${wl}-berok'
10700 # Exported symbols can be pulled into shared objects from archives
10701 whole_archive_flag_spec_CXX='$convenience'
10702 archive_cmds_need_lc_CXX=yes
10703 # This is similar to how AIX traditionally builds its shared libraries.
10704 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'
10710 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10711 allow_undefined_flag_CXX=unsupported
10712 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10713 # support --undefined. This deserves some investigation. FIXME
10714 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10721 case $cc_basename in
10723 # FIXME: insert proper C++ library support
10729 cygwin* | mingw* | pw32*)
10730 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10731 # as there is no search path for DLLs.
10732 hardcode_libdir_flag_spec_CXX='-L$libdir'
10733 allow_undefined_flag_CXX=unsupported
10734 always_export_symbols_CXX=no
10735 enable_shared_with_static_runtimes_CXX=yes
10737 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10738 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'
10739 # If the export-symbols file already is a .def file (1st line
10740 # is EXPORTS), use it as is; otherwise, prepend...
10741 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10742 cp $export_symbols $output_objdir/$soname.def;
10744 echo EXPORTS > $output_objdir/$soname.def;
10745 cat $export_symbols >> $output_objdir/$soname.def;
10747 $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'
10752 darwin* | rhapsody*)
10754 rhapsody* | darwin1.[012])
10755 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10758 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10759 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10761 case ${MACOSX_DEPLOYMENT_TARGET} in
10763 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10766 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10772 archive_cmds_need_lc_CXX=no
10773 hardcode_direct_CXX=no
10774 hardcode_automatic_CXX=yes
10775 hardcode_shlibpath_var_CXX=unsupported
10776 whole_archive_flag_spec_CXX=''
10777 link_all_deplibs_CXX=yes
10779 if test "$GXX" = yes ; then
10780 lt_int_apple_cc_single_mod=no
10781 output_verbose_link_cmd='echo'
10782 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10783 lt_int_apple_cc_single_mod=yes
10785 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10786 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10788 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'
10790 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10791 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10792 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10793 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10795 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10797 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10799 case $cc_basename in
10801 output_verbose_link_cmd='echo'
10802 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10803 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10804 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10805 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10806 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10816 case $cc_basename in
10818 # FIXME: insert proper C++ library support
10822 # Green Hills C++ Compiler
10823 # FIXME: insert proper C++ library support
10827 # FIXME: insert proper C++ library support
10833 # C++ shared libraries reported to be fairly broken before switch to ELF
10837 archive_cmds_need_lc_CXX=no
10839 freebsd* | kfreebsd*-gnu | dragonfly*)
10840 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10847 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10848 hardcode_libdir_separator_CXX=:
10849 export_dynamic_flag_spec_CXX='${wl}-E'
10850 hardcode_direct_CXX=yes
10851 hardcode_minus_L_CXX=yes # Not in the search PATH,
10852 # but as the default
10853 # location of the library.
10855 case $cc_basename in
10857 # FIXME: insert proper C++ library support
10861 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'
10862 # Commands to make compiler produce verbose output that lists
10863 # what "hidden" libraries, object files and flags are used when
10864 # linking a shared library.
10866 # There doesn't appear to be a way to prevent this compiler from
10867 # explicitly linking system object files so we need to strip them
10868 # from the output so that they don't get included in the library
10870 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 $list'
10873 if test "$GXX" = yes; then
10874 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'
10876 # FIXME: insert proper C++ library support
10883 if test $with_gnu_ld = no; then
10884 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10885 hardcode_libdir_separator_CXX=:
10889 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10892 export_dynamic_flag_spec_CXX='${wl}-E'
10898 hardcode_direct_CXX=no
10899 hardcode_shlibpath_var_CXX=no
10902 hardcode_direct_CXX=yes
10903 hardcode_minus_L_CXX=yes # Not in the search PATH,
10904 # but as the default
10905 # location of the library.
10909 case $cc_basename in
10911 # FIXME: insert proper C++ library support
10917 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10920 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10923 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10926 # Commands to make compiler produce verbose output that lists
10927 # what "hidden" libraries, object files and flags are used when
10928 # linking a shared library.
10930 # There doesn't appear to be a way to prevent this compiler from
10931 # explicitly linking system object files so we need to strip them
10932 # from the output so that they don't get included in the library
10934 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 $list'
10937 if test "$GXX" = yes; then
10938 if test $with_gnu_ld = no; then
10941 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10944 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10947 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'
10952 # FIXME: insert proper C++ library support
10959 hardcode_direct_CXX=no
10960 hardcode_shlibpath_var_CXX=no
10961 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10962 export_dynamic_flag_spec_CXX='${wl}-E'
10963 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10964 # Instead, shared libraries are loaded at an image base (0x10000000 by
10965 # default) and relocated if they conflict, which is a slow very memory
10966 # consuming and fragmenting process. To avoid this, we pick a random,
10967 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10968 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10969 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'
10970 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'
10973 case $cc_basename in
10976 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10978 # Archives containing C++ object files must be created using
10979 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10980 # necessary to make sure instantiated templates are included
10982 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10985 if test "$GXX" = yes; then
10986 if test "$with_gnu_ld" = no; then
10987 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10989 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10992 link_all_deplibs_CXX=yes
10995 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10996 hardcode_libdir_separator_CXX=:
10999 case $cc_basename in
11001 # Kuck and Associates, Inc. (KAI) C++ Compiler
11003 # KCC will only create a shared library if the output file
11004 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11005 # to its proper name (with version) after linking.
11006 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'
11007 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'
11008 # Commands to make compiler produce verbose output that lists
11009 # what "hidden" libraries, object files and flags are used when
11010 # linking a shared library.
11012 # There doesn't appear to be a way to prevent this compiler from
11013 # explicitly linking system object files so we need to strip them
11014 # from the output so that they don't get included in the library
11016 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 $list'
11018 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11019 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11021 # Archives containing C++ object files must be created using
11022 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11023 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11028 # version 8.0 and above of icpc choke on multiply defined symbols
11029 # if we add $predep_objects and $postdep_objects, however 7.1 and
11030 # earlier do not add the objects themselves.
11031 case `$CC -V 2>&1` in
11033 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11034 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'
11036 *) # Version 8.0 or newer
11039 ia64*) tmp_idyn=' -i_dynamic';;
11041 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11042 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'
11045 archive_cmds_need_lc_CXX=no
11046 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11047 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11048 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11051 # Portland Group C++ compiler
11052 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11053 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'
11055 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11056 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11057 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'
11061 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11062 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'
11064 runpath_var=LD_RUN_PATH
11065 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11066 hardcode_libdir_separator_CXX=:
11068 # Commands to make compiler produce verbose output that lists
11069 # what "hidden" libraries, object files and flags are used when
11070 # linking a shared library.
11072 # There doesn't appear to be a way to prevent this compiler from
11073 # explicitly linking system object files so we need to strip them
11074 # from the output so that they don't get included in the library
11076 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "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 $list'
11081 # FIXME: insert proper C++ library support
11085 # FIXME: insert proper C++ library support
11089 case $cc_basename in
11091 # FIXME: insert proper C++ library support
11095 # FIXME: insert proper C++ library support
11100 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11101 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11102 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11104 hardcode_libdir_flag_spec_CXX='-R$libdir'
11105 hardcode_direct_CXX=yes
11106 hardcode_shlibpath_var_CXX=no
11108 # Workaround some broken pre-1.5 toolchains
11109 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11112 # C++ shared libraries are fairly broken
11116 hardcode_direct_CXX=yes
11117 hardcode_shlibpath_var_CXX=no
11118 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11119 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11120 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11121 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11122 export_dynamic_flag_spec_CXX='${wl}-E'
11123 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11125 output_verbose_link_cmd='echo'
11128 case $cc_basename in
11130 # Kuck and Associates, Inc. (KAI) C++ Compiler
11132 # KCC will only create a shared library if the output file
11133 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11134 # to its proper name (with version) after linking.
11135 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'
11137 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11138 hardcode_libdir_separator_CXX=:
11140 # Archives containing C++ object files must be created using
11141 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11142 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11146 # Rational C++ 2.4.1
11147 # FIXME: insert proper C++ library support
11151 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11152 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11154 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11155 hardcode_libdir_separator_CXX=:
11157 # Commands to make compiler produce verbose output that lists
11158 # what "hidden" libraries, object files and flags are used when
11159 # linking a shared library.
11161 # There doesn't appear to be a way to prevent this compiler from
11162 # explicitly linking system object files so we need to strip them
11163 # from the output so that they don't get included in the library
11165 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
11168 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11169 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11170 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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11172 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11173 hardcode_libdir_separator_CXX=:
11175 # Commands to make compiler produce verbose output that lists
11176 # what "hidden" libraries, object files and flags are used when
11177 # linking a shared library.
11178 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11181 # FIXME: insert proper C++ library support
11188 case $cc_basename in
11190 # Kuck and Associates, Inc. (KAI) C++ Compiler
11192 # KCC will only create a shared library if the output file
11193 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11194 # to its proper name (with version) after linking.
11195 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'
11197 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11198 hardcode_libdir_separator_CXX=:
11200 # Archives containing C++ object files must be created using
11201 # the KAI C++ compiler.
11202 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11205 # Rational C++ 2.4.1
11206 # FIXME: insert proper C++ library support
11210 allow_undefined_flag_CXX=' -expect_unresolved \*'
11211 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11212 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11213 echo "-hidden">> $lib.exp~
11214 $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 -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11217 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11218 hardcode_libdir_separator_CXX=:
11220 # Commands to make compiler produce verbose output that lists
11221 # what "hidden" libraries, object files and flags are used when
11222 # linking a shared library.
11224 # There doesn't appear to be a way to prevent this compiler from
11225 # explicitly linking system object files so we need to strip them
11226 # from the output so that they don't get included in the library
11228 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
11231 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11232 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11233 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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11235 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11236 hardcode_libdir_separator_CXX=:
11238 # Commands to make compiler produce verbose output that lists
11239 # what "hidden" libraries, object files and flags are used when
11240 # linking a shared library.
11241 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11244 # FIXME: insert proper C++ library support
11251 # FIXME: insert proper C++ library support
11255 case $cc_basename in
11258 # FIXME: insert proper C++ library support
11263 # FIXME: insert proper C++ library support
11267 # FIXME: insert proper C++ library support
11273 case $cc_basename in
11275 # Sun C++ 4.2, 5.x and Centerline C++
11276 archive_cmds_need_lc_CXX=yes
11277 no_undefined_flag_CXX=' -zdefs'
11278 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11279 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11280 $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'
11282 hardcode_libdir_flag_spec_CXX='-R$libdir'
11283 hardcode_shlibpath_var_CXX=no
11285 solaris2.[0-5] | solaris2.[0-5].*) ;;
11287 # The C++ compiler is used as linker so we must use $wl
11288 # flag to pass the commands to the underlying system
11289 # linker. We must also pass each convience library through
11290 # to the system linker between allextract/defaultextract.
11291 # The C++ compiler will combine linker options so we
11292 # cannot just pass the convience library names through
11294 # Supported since Solaris 2.6 (maybe 2.5.1?)
11295 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11298 link_all_deplibs_CXX=yes
11300 output_verbose_link_cmd='echo'
11302 # Archives containing C++ object files must be created using
11303 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11304 # necessary to make sure instantiated templates are included
11306 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11309 # Green Hills C++ Compiler
11310 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11312 # The C++ compiler must be used to create the archive.
11313 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11316 # GNU C++ compiler with Solaris linker
11317 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11318 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11319 if $CC --version | grep -v '^2\.7' > /dev/null; then
11320 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11321 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11322 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11324 # Commands to make compiler produce verbose output that lists
11325 # what "hidden" libraries, object files and flags are used when
11326 # linking a shared library.
11327 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11329 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11331 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11332 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11333 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11335 # Commands to make compiler produce verbose output that lists
11336 # what "hidden" libraries, object files and flags are used when
11337 # linking a shared library.
11338 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11341 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11346 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11347 no_undefined_flag_CXX='${wl}-z,text'
11348 archive_cmds_need_lc_CXX=no
11349 hardcode_shlibpath_var_CXX=no
11350 runpath_var='LD_RUN_PATH'
11352 case $cc_basename in
11354 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11355 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11358 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11359 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11363 sysv5* | sco3.2v5* | sco5v6*)
11364 # Note: We can NOT use -z defs as we might desire, because we do not
11365 # link with -lc, and that would cause any symbols used from libc to
11366 # always be unresolved, which means just about no library would
11367 # ever link correctly. If we're not using GNU ld we use -z text
11368 # though, which does catch some bad symbols but isn't as heavy-handed
11370 # For security reasons, it is highly recommended that you always
11371 # use absolute paths for naming shared libraries, and exclude the
11372 # DT_RUNPATH tag from executables and libraries. But doing so
11373 # requires that you compile everything twice, which is a pain.
11374 # So that behaviour is only enabled if SCOABSPATH is set to a
11375 # non-empty value in the environment. Most likely only useful for
11376 # creating official distributions of packages.
11377 # This is a hack until libtool officially supports absolute path
11378 # names for shared libraries.
11379 no_undefined_flag_CXX='${wl}-z,text'
11380 allow_undefined_flag_CXX='${wl}-z,nodefs'
11381 archive_cmds_need_lc_CXX=no
11382 hardcode_shlibpath_var_CXX=no
11383 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11384 hardcode_libdir_separator_CXX=':'
11385 link_all_deplibs_CXX=yes
11386 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11387 runpath_var='LD_RUN_PATH'
11389 case $cc_basename in
11391 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11392 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11395 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11396 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11401 case $cc_basename in
11403 # NonStop-UX NCC 3.20
11404 # FIXME: insert proper C++ library support
11408 # FIXME: insert proper C++ library support
11414 # FIXME: insert proper C++ library support
11418 # FIXME: insert proper C++ library support
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11423 $as_echo "$ld_shlibs_CXX" >&6; }
11424 test "$ld_shlibs_CXX" = no && can_build_shared=no
11430 cat > conftest.$ac_ext <<EOF
11434 Foo (void) { a = 0; }
11440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11441 (eval $ac_compile) 2>&5
11443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11444 test $ac_status = 0; }; then
11445 # Parse the compiler output and extract the necessary
11446 # objects, libraries and library flags.
11448 # Sentinel used to keep track of whether or not we are before
11449 # the conftest object file.
11450 pre_test_object_deps_done=no
11452 # The `*' in the case matches for architectures that use `case' in
11453 # $output_verbose_cmd can trigger glob expansion during the loop
11454 # eval without this substitution.
11455 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11457 for p in `eval $output_verbose_link_cmd`; do
11461 # Some compilers place space between "-{L,R}" and the path.
11462 # Remove the space.
11463 if test $p = "-L" \
11464 || test $p = "-R"; then
11471 if test "$pre_test_object_deps_done" = no; then
11474 # Internal compiler library paths should come after those
11475 # provided the user. The postdeps already come after the
11476 # user supplied libs so there is no need to process them.
11477 if test -z "$compiler_lib_search_path_CXX"; then
11478 compiler_lib_search_path_CXX="${prev}${p}"
11480 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11483 # The "-l" case would never come before the object being
11484 # linked, so don't bother handling this case.
11487 if test -z "$postdeps_CXX"; then
11488 postdeps_CXX="${prev}${p}"
11490 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11496 # This assumes that the test object file only shows up
11497 # once in the compiler output.
11498 if test "$p" = "conftest.$objext"; then
11499 pre_test_object_deps_done=yes
11503 if test "$pre_test_object_deps_done" = no; then
11504 if test -z "$predep_objects_CXX"; then
11505 predep_objects_CXX="$p"
11507 predep_objects_CXX="$predep_objects_CXX $p"
11510 if test -z "$postdep_objects_CXX"; then
11511 postdep_objects_CXX="$p"
11513 postdep_objects_CXX="$postdep_objects_CXX $p"
11518 *) ;; # Ignore the rest.
11526 echo "libtool.m4: error: problem compiling CXX test program"
11529 $rm -f confest.$objext
11531 # PORTME: override above test on systems where it is broken
11534 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11535 # hack all around it, let's just trust "g++" to DTRT.
11536 predep_objects_CXX=
11537 postdep_objects_CXX=
11542 case $cc_basename in
11544 # Adding this requires a known-good setup of shared libraries for
11545 # Sun compiler versions before 5.6, else PIC objects from an old
11546 # archive will be linked into the output, leading to subtle bugs.
11547 postdeps_CXX='-lCstd -lCrun'
11554 case " $postdeps_CXX " in
11555 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11558 lt_prog_compiler_wl_CXX=
11559 lt_prog_compiler_pic_CXX=
11560 lt_prog_compiler_static_CXX=
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11563 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11565 # C++ specific cases for pic, static, wl, etc.
11566 if test "$GXX" = yes; then
11567 lt_prog_compiler_wl_CXX='-Wl,'
11568 lt_prog_compiler_static_CXX='-static'
11572 # All AIX code is PIC.
11573 if test "$host_cpu" = ia64; then
11574 # AIX 5 now supports IA64 processor
11575 lt_prog_compiler_static_CXX='-Bstatic'
11579 # FIXME: we need at least 68020 code to build shared libraries, but
11580 # adding the `-m68020' flag to GCC prevents building anything better,
11582 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11584 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11585 # PIC is the default for these OSes.
11587 mingw* | os2* | pw32*)
11588 # This hack is so that the source file can tell whether it is being
11589 # built for inclusion in a dll (and should export symbols for example).
11590 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11592 darwin* | rhapsody*)
11593 # PIC is the default on this platform
11594 # Common symbols not allowed in MH_DYLIB files
11595 lt_prog_compiler_pic_CXX='-fno-common'
11598 # DJGPP does not support shared libraries at all
11599 lt_prog_compiler_pic_CXX=
11602 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11603 # Instead, we relocate shared libraries at runtime.
11606 if test -d /usr/nec; then
11607 lt_prog_compiler_pic_CXX=-Kconform_pic
11611 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11612 # not for PA HP-UX.
11617 lt_prog_compiler_pic_CXX='-fPIC'
11622 lt_prog_compiler_pic_CXX='-fPIC'
11628 # All AIX code is PIC.
11629 if test "$host_cpu" = ia64; then
11630 # AIX 5 now supports IA64 processor
11631 lt_prog_compiler_static_CXX='-Bstatic'
11633 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11637 case $cc_basename in
11639 # Green Hills C++ Compiler
11640 # _LT_AC_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"
11645 # PIC is the default on this platform
11646 # Common symbols not allowed in MH_DYLIB files
11647 case $cc_basename in
11649 lt_prog_compiler_pic_CXX='-qnocommon'
11650 lt_prog_compiler_wl_CXX='-Wl,'
11655 case $cc_basename in
11657 lt_prog_compiler_pic_CXX='-KPIC'
11660 # Green Hills C++ Compiler
11661 lt_prog_compiler_pic_CXX='-pic'
11667 freebsd* | kfreebsd*-gnu | dragonfly*)
11668 # FreeBSD uses GNU C++
11670 hpux9* | hpux10* | hpux11*)
11671 case $cc_basename in
11673 lt_prog_compiler_wl_CXX='-Wl,'
11674 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11675 if test "$host_cpu" != ia64; then
11676 lt_prog_compiler_pic_CXX='+Z'
11680 lt_prog_compiler_wl_CXX='-Wl,'
11681 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11687 lt_prog_compiler_pic_CXX='+Z'
11696 # This is c89, which is MS Visual C++ (no shared libs)
11697 # Anyone wants to do a port?
11699 irix5* | irix6* | nonstopux*)
11700 case $cc_basename in
11702 lt_prog_compiler_wl_CXX='-Wl,'
11703 lt_prog_compiler_static_CXX='-non_shared'
11704 # CC pic flag -KPIC is the default.
11711 case $cc_basename in
11714 lt_prog_compiler_wl_CXX='--backend -Wl,'
11715 lt_prog_compiler_pic_CXX='-fPIC'
11719 lt_prog_compiler_wl_CXX='-Wl,'
11720 lt_prog_compiler_pic_CXX='-KPIC'
11721 lt_prog_compiler_static_CXX='-static'
11724 # Portland Group C++ compiler.
11725 lt_prog_compiler_wl_CXX='-Wl,'
11726 lt_prog_compiler_pic_CXX='-fpic'
11727 lt_prog_compiler_static_CXX='-Bstatic'
11731 # Make sure the PIC flag is empty. It appears that all Alpha
11732 # Linux and Compaq Tru64 Unix objects are PIC.
11733 lt_prog_compiler_pic_CXX=
11734 lt_prog_compiler_static_CXX='-non_shared'
11745 case $cc_basename in
11747 lt_prog_compiler_pic_CXX='-W c,exportall'
11753 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11755 osf3* | osf4* | osf5*)
11756 case $cc_basename in
11758 lt_prog_compiler_wl_CXX='--backend -Wl,'
11761 # Rational C++ 2.4.1
11762 lt_prog_compiler_pic_CXX='-pic'
11765 # Digital/Compaq C++
11766 lt_prog_compiler_wl_CXX='-Wl,'
11767 # Make sure the PIC flag is empty. It appears that all Alpha
11768 # Linux and Compaq Tru64 Unix objects are PIC.
11769 lt_prog_compiler_pic_CXX=
11770 lt_prog_compiler_static_CXX='-non_shared'
11779 case $cc_basename in
11781 # Sun C++ 4.2, 5.x and Centerline C++
11782 lt_prog_compiler_pic_CXX='-KPIC'
11783 lt_prog_compiler_static_CXX='-Bstatic'
11784 lt_prog_compiler_wl_CXX='-Qoption ld '
11787 # Green Hills C++ Compiler
11788 lt_prog_compiler_pic_CXX='-PIC'
11795 case $cc_basename in
11798 lt_prog_compiler_pic_CXX='-pic'
11799 lt_prog_compiler_static_CXX='-Bstatic'
11803 lt_prog_compiler_pic_CXX='-pic'
11810 case $cc_basename in
11812 # NonStop-UX NCC 3.20
11813 lt_prog_compiler_pic_CXX='-KPIC'
11819 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11820 case $cc_basename in
11822 lt_prog_compiler_wl_CXX='-Wl,'
11823 lt_prog_compiler_pic_CXX='-KPIC'
11824 lt_prog_compiler_static_CXX='-Bstatic'
11831 lt_prog_compiler_can_build_shared_CXX=no
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
11837 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11840 # Check to make sure the PIC flag actually works.
11842 if test -n "$lt_prog_compiler_pic_CXX"; then
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11845 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11846 if ${lt_prog_compiler_pic_works_CXX+:} false; then :
11847 $as_echo_n "(cached) " >&6
11849 lt_prog_compiler_pic_works_CXX=no
11850 ac_outfile=conftest.$ac_objext
11851 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11852 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11853 # Insert the option either (1) after the last *FLAGS variable, or
11854 # (2) before a word containing "conftest.", or (3) at the end.
11855 # Note that $ac_compile itself does not contain backslashes and begins
11856 # with a dollar sign (not a hyphen), so the echo should work correctly.
11857 # The option is referenced via a variable to avoid confusing sed.
11858 lt_compile=`echo "$ac_compile" | $SED \
11859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11861 -e 's:$: $lt_compiler_flag:'`
11862 (eval echo "\"\$as_me:11862: $lt_compile\"" >&5)
11863 (eval "$lt_compile" 2>conftest.err)
11865 cat conftest.err >&5
11866 echo "$as_me:11866: \$? = $ac_status" >&5
11867 if (exit $ac_status) && test -s "$ac_outfile"; then
11868 # The compiler can only warn and ignore the option if not recognized
11869 # So say no if there are warnings other than the usual output.
11870 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11871 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11872 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11873 lt_prog_compiler_pic_works_CXX=yes
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
11880 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
11882 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11883 case $lt_prog_compiler_pic_CXX in
11885 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11888 lt_prog_compiler_pic_CXX=
11889 lt_prog_compiler_can_build_shared_CXX=no
11894 # For platforms which do not support PIC, -DPIC is meaningless:
11896 lt_prog_compiler_pic_CXX=
11899 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11904 # Check to make sure the static flag actually works.
11906 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11908 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11909 if ${lt_prog_compiler_static_works_CXX+:} false; then :
11910 $as_echo_n "(cached) " >&6
11912 lt_prog_compiler_static_works_CXX=no
11913 save_LDFLAGS="$LDFLAGS"
11914 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11915 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11916 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11917 # The linker can only warn and ignore the option if not recognized
11918 # So say no if there are warnings
11919 if test -s conftest.err; then
11920 # Append any errors to the config.log.
11921 cat conftest.err 1>&5
11922 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11924 if diff conftest.exp conftest.er2 >/dev/null; then
11925 lt_prog_compiler_static_works_CXX=yes
11928 lt_prog_compiler_static_works_CXX=yes
11932 LDFLAGS="$save_LDFLAGS"
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_CXX" >&5
11936 $as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
11938 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11941 lt_prog_compiler_static_CXX=
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11946 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11947 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
11948 $as_echo_n "(cached) " >&6
11950 lt_cv_prog_compiler_c_o_CXX=no
11951 $rm -r conftest 2>/dev/null
11955 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11957 lt_compiler_flag="-o out/conftest2.$ac_objext"
11958 # Insert the option either (1) after the last *FLAGS variable, or
11959 # (2) before a word containing "conftest.", or (3) at the end.
11960 # Note that $ac_compile itself does not contain backslashes and begins
11961 # with a dollar sign (not a hyphen), so the echo should work correctly.
11962 lt_compile=`echo "$ac_compile" | $SED \
11963 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11965 -e 's:$: $lt_compiler_flag:'`
11966 (eval echo "\"\$as_me:11966: $lt_compile\"" >&5)
11967 (eval "$lt_compile" 2>out/conftest.err)
11969 cat out/conftest.err >&5
11970 echo "$as_me:11970: \$? = $ac_status" >&5
11971 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11973 # The compiler can only warn and ignore the option if not recognized
11974 # So say no if there are warnings
11975 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11976 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11977 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11978 lt_cv_prog_compiler_c_o_CXX=yes
11983 # SGI C++ compiler will create directory out/ii_files/ for
11984 # template instantiation
11985 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11986 $rm out/* && rmdir out
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11993 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
11996 hard_links="nottested"
11997 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11998 # do not overwrite the value of need_locks provided by the user
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12000 $as_echo_n "checking if we can lock with hard links... " >&6; }
12003 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12005 ln conftest.a conftest.b 2>&5 || hard_links=no
12006 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12008 $as_echo "$hard_links" >&6; }
12009 if test "$hard_links" = no; then
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12011 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12019 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12021 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12024 # If we're using GNU nm, then we don't want the "-C" option.
12025 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12026 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12027 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'
12029 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'
12033 export_symbols_cmds_CXX="$ltdll_cmds"
12036 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'
12039 link_all_deplibs_CXX=no
12042 link_all_deplibs_CXX=no
12045 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12050 $as_echo "$ld_shlibs_CXX" >&6; }
12051 test "$ld_shlibs_CXX" = no && can_build_shared=no
12054 # Do we need to explicitly link libc?
12056 case "x$archive_cmds_need_lc_CXX" in
12058 # Assume -lc should be added
12059 archive_cmds_need_lc_CXX=yes
12061 if test "$enable_shared" = yes && test "$GCC" = yes; then
12062 case $archive_cmds_CXX in
12064 # FIXME: we may have to deal with multi-command sequences.
12067 # Test whether the compiler implicitly links with -lc since on some
12068 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12069 # to ld, don't add -lc before -lgcc.
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12071 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12073 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12076 (eval $ac_compile) 2>&5
12078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12079 test $ac_status = 0; } 2>conftest.err; then
12082 libobjs=conftest.$ac_objext
12084 wl=$lt_prog_compiler_wl_CXX
12085 pic_flag=$lt_prog_compiler_pic_CXX
12091 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12092 allow_undefined_flag_CXX=
12093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12094 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12097 test $ac_status = 0; }
12099 archive_cmds_need_lc_CXX=no
12101 archive_cmds_need_lc_CXX=yes
12103 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12105 cat conftest.err 1>&5
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12109 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12117 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12118 library_names_spec=
12119 libname_spec='lib$name'
12123 postuninstall_cmds=
12127 shlibpath_overrides_runpath=unknown
12129 dynamic_linker="$host_os ld.so"
12130 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12131 if test "$GCC" = yes; then
12132 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12133 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12134 # if the path contains ";" then we assume it to be the separator
12135 # otherwise default to the standard path separator (i.e. ":") - it is
12136 # assumed that no part of a normal pathname contains ";" but that should
12137 # okay in the real world where ";" in dirpaths is itself problematic.
12138 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12140 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12143 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12145 need_lib_prefix=unknown
12146 hardcode_into_libs=no
12148 # when you set need_version to no, make sure it does not cause -set_version
12149 # flags to be left without arguments
12150 need_version=unknown
12155 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12156 shlibpath_var=LIBPATH
12158 # AIX 3 has no versioning support, so we append a major version to the name.
12159 soname_spec='${libname}${release}${shared_ext}$major'
12166 hardcode_into_libs=yes
12167 if test "$host_cpu" = ia64; then
12168 # AIX 5 supports IA64
12169 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12170 shlibpath_var=LD_LIBRARY_PATH
12172 # With GCC up to 2.95.x, collect2 would create an import file
12173 # for dependence libraries. The import file would start with
12174 # the line `#! .'. This would cause the generated library to
12175 # depend on `.', always an invalid library. This was fixed in
12176 # development snapshots of GCC prior to 3.0.
12178 aix4 | aix4.[01] | aix4.[01].*)
12179 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12181 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12184 can_build_shared=no
12188 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12189 # soname into executable. Probably we can add versioning support to
12190 # collect2, so additional links can be useful in future.
12191 if test "$aix_use_runtimelinking" = yes; then
12192 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12193 # instead of lib<name>.a to let people know that these are not
12194 # typical AIX shared libraries.
12195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12197 # We preserve .a as extension for shared libraries through AIX4.2
12198 # and later when we are not doing run time linking.
12199 library_names_spec='${libname}${release}.a $libname.a'
12200 soname_spec='${libname}${release}${shared_ext}$major'
12202 shlibpath_var=LIBPATH
12207 library_names_spec='$libname.ixlibrary $libname.a'
12208 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12209 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'
12213 library_names_spec='${libname}${shared_ext}'
12214 dynamic_linker="$host_os ld.so"
12215 shlibpath_var=LIBRARY_PATH
12221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12222 soname_spec='${libname}${release}${shared_ext}$major'
12223 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12224 shlibpath_var=LD_LIBRARY_PATH
12225 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12226 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12227 # the default ld.so.conf also contains /usr/contrib/lib and
12228 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12229 # libtool to hard-code these into programs
12232 cygwin* | mingw* | pw32*)
12233 version_type=windows
12238 case $GCC,$host_os in
12239 yes,cygwin* | yes,mingw* | yes,pw32*)
12240 library_names_spec='$libname.dll.a'
12241 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12242 postinstall_cmds='base_file=`basename \${file}`~
12243 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12244 dldir=$destdir/`dirname \$dlpath`~
12245 test -d \$dldir || mkdir -p \$dldir~
12246 $install_prog $dir/$dlname \$dldir/$dlname~
12247 chmod a+x \$dldir/$dlname'
12248 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12249 dlpath=$dir/\$dldll~
12251 shlibpath_overrides_runpath=yes
12255 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12256 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12257 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12260 # MinGW DLLs use traditional 'lib' prefix
12261 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12262 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12263 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12264 # It is most probably a Windows format PATH printed by
12265 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12266 # path with ; separators, and with drive letters. We can handle the
12267 # drive letters (cygwin fileutils understands them), so leave them,
12268 # especially as we might pass files found there to a mingw objdump,
12269 # which wouldn't understand a cygwinified path. Ahh.
12270 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12272 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12276 # pw32 DLLs use 'pw' prefix rather than 'lib'
12277 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12283 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12286 dynamic_linker='Win32 ld.exe'
12287 # FIXME: first we should search . and the directory the executable is in
12291 darwin* | rhapsody*)
12292 dynamic_linker="$host_os dyld"
12293 version_type=darwin
12296 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12297 soname_spec='${libname}${release}${major}$shared_ext'
12298 shlibpath_overrides_runpath=yes
12299 shlibpath_var=DYLD_LIBRARY_PATH
12300 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12301 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12302 if test "$GCC" = yes; then
12303 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12305 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12307 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12315 soname_spec='${libname}${release}${shared_ext}$major'
12316 shlibpath_var=LD_LIBRARY_PATH
12327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12328 soname_spec='${libname}${release}${shared_ext}$major'
12329 shlibpath_var=LD_LIBRARY_PATH
12330 shlibpath_overrides_runpath=no
12331 hardcode_into_libs=yes
12332 dynamic_linker='GNU ld.so'
12335 freebsd* | dragonfly*)
12336 # DragonFly does not have aout. When/if they implement a new
12337 # versioning mechanism, adjust this.
12338 if test -x /usr/bin/objformat; then
12339 objformat=`/usr/bin/objformat`
12342 freebsd[123]*) objformat=aout ;;
12343 *) objformat=elf ;;
12346 version_type=freebsd-$objformat
12347 case $version_type in
12349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12354 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12358 shlibpath_var=LD_LIBRARY_PATH
12361 shlibpath_overrides_runpath=yes
12363 freebsd3.[01]* | freebsdelf3.[01]*)
12364 shlibpath_overrides_runpath=yes
12365 hardcode_into_libs=yes
12367 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12368 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12369 shlibpath_overrides_runpath=no
12370 hardcode_into_libs=yes
12372 freebsd*) # from 4.6 on
12373 shlibpath_overrides_runpath=yes
12374 hardcode_into_libs=yes
12383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12384 soname_spec='${libname}${release}${shared_ext}$major'
12385 shlibpath_var=LD_LIBRARY_PATH
12386 hardcode_into_libs=yes
12389 hpux9* | hpux10* | hpux11*)
12390 # Give a soname corresponding to the major version so that dld.sl refuses to
12391 # link against other versions.
12398 hardcode_into_libs=yes
12399 dynamic_linker="$host_os dld.so"
12400 shlibpath_var=LD_LIBRARY_PATH
12401 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12403 soname_spec='${libname}${release}${shared_ext}$major'
12404 if test "X$HPUX_IA64_MODE" = X32; then
12405 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12407 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12409 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12413 hardcode_into_libs=yes
12414 dynamic_linker="$host_os dld.sl"
12415 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12416 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12418 soname_spec='${libname}${release}${shared_ext}$major'
12419 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12420 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12424 dynamic_linker="$host_os dld.sl"
12425 shlibpath_var=SHLIB_PATH
12426 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12428 soname_spec='${libname}${release}${shared_ext}$major'
12431 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12432 postinstall_cmds='chmod 555 $lib'
12439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12440 soname_spec='${libname}${release}${shared_ext}$major'
12441 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12442 shlibpath_var=LD_LIBRARY_PATH
12443 shlibpath_overrides_runpath=no
12444 hardcode_into_libs=yes
12447 irix5* | irix6* | nonstopux*)
12449 nonstopux*) version_type=nonstopux ;;
12451 if test "$lt_cv_prog_gnu_ld" = yes; then
12459 soname_spec='${libname}${release}${shared_ext}$major'
12460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12462 irix5* | nonstopux*)
12463 libsuff= shlibsuff=
12466 case $LD in # libtool.m4 will add one of these switches to LD
12467 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12468 libsuff= shlibsuff= libmagic=32-bit;;
12469 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12470 libsuff=32 shlibsuff=N32 libmagic=N32;;
12471 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12472 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12473 *) libsuff= shlibsuff= libmagic=never-match;;
12477 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12478 shlibpath_overrides_runpath=no
12479 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12480 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12481 hardcode_into_libs=yes
12484 # No shared lib support for Linux oldld, aout, or coff.
12485 linux*oldld* | linux*aout* | linux*coff*)
12489 # This must be Linux ELF.
12494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12495 soname_spec='${libname}${release}${shared_ext}$major'
12496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12497 shlibpath_var=LD_LIBRARY_PATH
12498 shlibpath_overrides_runpath=no
12499 # This implies no fast_install, which is unacceptable.
12500 # Some rework will be needed to allow for fast_install
12501 # before this can be enabled.
12502 hardcode_into_libs=yes
12504 # Append ld.so.conf contents to the search path
12505 if test -f /etc/ld.so.conf; then
12506 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12507 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12510 # We used to test for /lib/ld.so.1 and disable shared libraries on
12511 # powerpc, because MkLinux only supported shared libraries with the
12512 # GNU dynamic linker. Since this was broken with cross compilers,
12513 # most powerpc-linux boxes support dynamic linking these days and
12514 # people can always --disable-shared, the test was removed, and we
12515 # assume the GNU/Linux dynamic linker is in use.
12516 dynamic_linker='GNU/Linux ld.so'
12523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12524 soname_spec='${libname}${release}${shared_ext}$major'
12525 shlibpath_var=LD_LIBRARY_PATH
12526 shlibpath_overrides_runpath=no
12527 hardcode_into_libs=yes
12528 dynamic_linker='NetBSD ld.elf_so'
12535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12536 soname_spec='${libname}${release}${shared_ext}$major'
12537 shlibpath_var=LD_LIBRARY_PATH
12538 shlibpath_overrides_runpath=no
12539 hardcode_into_libs=yes
12540 dynamic_linker='GNU ld.so'
12547 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12549 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12550 dynamic_linker='NetBSD (a.out) ld.so'
12552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12553 soname_spec='${libname}${release}${shared_ext}$major'
12554 dynamic_linker='NetBSD ld.elf_so'
12556 shlibpath_var=LD_LIBRARY_PATH
12557 shlibpath_overrides_runpath=yes
12558 hardcode_into_libs=yes
12563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12564 shlibpath_var=LD_LIBRARY_PATH
12565 shlibpath_overrides_runpath=yes
12572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12573 soname_spec='${libname}${release}${shared_ext}$major'
12574 shlibpath_var=LD_LIBRARY_PATH
12575 shlibpath_overrides_runpath=yes
12580 sys_lib_dlsearch_path_spec="/usr/lib"
12582 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12584 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12585 *) need_version=no ;;
12587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12588 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12589 shlibpath_var=LD_LIBRARY_PATH
12590 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12592 openbsd2.[89] | openbsd2.[89].*)
12593 shlibpath_overrides_runpath=no
12596 shlibpath_overrides_runpath=yes
12600 shlibpath_overrides_runpath=yes
12605 libname_spec='$name'
12608 library_names_spec='$libname${shared_ext} $libname.a'
12609 dynamic_linker='OS/2 ld.exe'
12610 shlibpath_var=LIBPATH
12613 osf3* | osf4* | osf5*)
12617 soname_spec='${libname}${release}${shared_ext}$major'
12618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12619 shlibpath_var=LD_LIBRARY_PATH
12620 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12621 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12629 soname_spec='${libname}${release}${shared_ext}$major'
12630 shlibpath_var=LD_LIBRARY_PATH
12631 shlibpath_overrides_runpath=yes
12632 hardcode_into_libs=yes
12633 # ldd complains unless libraries are executable
12634 postinstall_cmds='chmod +x $lib'
12639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12640 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12641 shlibpath_var=LD_LIBRARY_PATH
12642 shlibpath_overrides_runpath=yes
12643 if test "$with_gnu_ld" = yes; then
12651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12652 soname_spec='${libname}${release}${shared_ext}$major'
12653 shlibpath_var=LD_LIBRARY_PATH
12654 case $host_vendor in
12656 shlibpath_overrides_runpath=no
12658 export_dynamic_flag_spec='${wl}-Blargedynsym'
12659 runpath_var=LD_RUN_PATH
12667 shlibpath_overrides_runpath=no
12668 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12674 if test -d /usr/nec ;then
12676 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12677 soname_spec='$libname${shared_ext}.$major'
12678 shlibpath_var=LD_LIBRARY_PATH
12682 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12683 version_type=freebsd-elf
12686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12687 soname_spec='${libname}${release}${shared_ext}$major'
12688 shlibpath_var=LD_LIBRARY_PATH
12689 hardcode_into_libs=yes
12690 if test "$with_gnu_ld" = yes; then
12691 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12692 shlibpath_overrides_runpath=no
12694 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12695 shlibpath_overrides_runpath=yes
12698 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12702 sys_lib_dlsearch_path_spec='/usr/lib'
12707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12708 soname_spec='${libname}${release}${shared_ext}$major'
12709 shlibpath_var=LD_LIBRARY_PATH
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12717 $as_echo "$dynamic_linker" >&6; }
12718 test "$dynamic_linker" = no && can_build_shared=no
12720 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12721 if test "$GCC" = yes; then
12722 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12726 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12727 hardcode_action_CXX=
12728 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12729 test -n "$runpath_var_CXX" || \
12730 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12732 # We can hardcode non-existant directories.
12733 if test "$hardcode_direct_CXX" != no &&
12734 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12735 # have to relink, otherwise we might link with an installed library
12736 # when we should be linking with a yet-to-be-installed one
12737 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12738 test "$hardcode_minus_L_CXX" != no; then
12739 # Linking always hardcodes the temporary library directory.
12740 hardcode_action_CXX=relink
12742 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12743 hardcode_action_CXX=immediate
12746 # We cannot hardcode anything, or else we can only hardcode existing
12748 hardcode_action_CXX=unsupported
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
12751 $as_echo "$hardcode_action_CXX" >&6; }
12753 if test "$hardcode_action_CXX" = relink; then
12754 # Fast installation is not supported
12755 enable_fast_install=no
12756 elif test "$shlibpath_overrides_runpath" = yes ||
12757 test "$enable_shared" = no; then
12758 # Fast installation is not necessary
12759 enable_fast_install=needless
12763 # The else clause should only fire when bootstrapping the
12764 # libtool distribution, otherwise you forgot to ship ltmain.sh
12765 # with your package, and you will get complaints that there are
12766 # no rules to generate ltmain.sh.
12767 if test -f "$ltmain"; then
12768 # See if we are running on zsh, and set the options which allow our commands through
12769 # without removal of \ escapes.
12770 if test -n "${ZSH_VERSION+set}" ; then
12771 setopt NO_GLOB_SUBST
12773 # Now quote all the things that may contain metacharacters while being
12774 # careful not to overquote the AC_SUBSTed values. We take copies of the
12775 # variables and quote the copies for generation of the libtool script.
12776 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12778 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12779 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12780 deplibs_check_method reload_flag reload_cmds need_locks \
12781 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12782 lt_cv_sys_global_symbol_to_c_name_address \
12783 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12784 old_postinstall_cmds old_postuninstall_cmds \
12788 lt_prog_compiler_wl_CXX \
12789 lt_prog_compiler_pic_CXX \
12790 lt_prog_compiler_static_CXX \
12791 lt_prog_compiler_no_builtin_flag_CXX \
12792 export_dynamic_flag_spec_CXX \
12793 thread_safe_flag_spec_CXX \
12794 whole_archive_flag_spec_CXX \
12795 enable_shared_with_static_runtimes_CXX \
12796 old_archive_cmds_CXX \
12797 old_archive_from_new_cmds_CXX \
12798 predep_objects_CXX \
12799 postdep_objects_CXX \
12802 compiler_lib_search_path_CXX \
12804 archive_expsym_cmds_CXX \
12805 postinstall_cmds_CXX \
12806 postuninstall_cmds_CXX \
12807 old_archive_from_expsyms_cmds_CXX \
12808 allow_undefined_flag_CXX \
12809 no_undefined_flag_CXX \
12810 export_symbols_cmds_CXX \
12811 hardcode_libdir_flag_spec_CXX \
12812 hardcode_libdir_flag_spec_ld_CXX \
12813 hardcode_libdir_separator_CXX \
12814 hardcode_automatic_CXX \
12816 module_expsym_cmds_CXX \
12817 lt_cv_prog_compiler_c_o_CXX \
12818 exclude_expsyms_CXX \
12819 include_expsyms_CXX; do
12822 old_archive_cmds_CXX | \
12823 old_archive_from_new_cmds_CXX | \
12824 archive_cmds_CXX | \
12825 archive_expsym_cmds_CXX | \
12826 module_cmds_CXX | \
12827 module_expsym_cmds_CXX | \
12828 old_archive_from_expsyms_cmds_CXX | \
12829 export_symbols_cmds_CXX | \
12830 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12831 postinstall_cmds | postuninstall_cmds | \
12832 old_postinstall_cmds | old_postuninstall_cmds | \
12833 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12834 # Double-quote double-evaled strings.
12835 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12838 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12844 *'\$0 --fallback-echo"')
12845 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12851 cat <<__EOF__ >> "$cfgfile"
12852 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12854 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12856 # Shell to use when invoking shell scripts.
12859 # Whether or not to build shared libraries.
12860 build_libtool_libs=$enable_shared
12862 # Whether or not to build static libraries.
12863 build_old_libs=$enable_static
12865 # Whether or not to add -lc for building shared libraries.
12866 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12868 # Whether or not to disallow shared libs when runtime libs are static
12869 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12871 # Whether or not to optimize for fast installation.
12872 fast_install=$enable_fast_install
12875 host_alias=$host_alias
12879 # The build system.
12880 build_alias=$build_alias
12884 # An echo program that does not interpret backslashes.
12889 AR_FLAGS=$lt_AR_FLAGS
12894 # LTCC compiler flags.
12895 LTCFLAGS=$lt_LTCFLAGS
12897 # A language-specific compiler.
12898 CC=$lt_compiler_CXX
12900 # Is the compiler the GNU C compiler?
12906 # The linker used to build libraries.
12909 # Whether we need hard or soft links.
12912 # A BSD-compatible nm program.
12915 # A symbol stripping program
12918 # Used to examine libraries when file_magic_cmd begins "file"
12919 MAGIC_CMD=$MAGIC_CMD
12921 # Used on cygwin: DLL creation program.
12924 # Used on cygwin: object dumper.
12927 # Used on cygwin: assembler.
12930 # The name of the directory that contains temporary libtool files.
12933 # How to create reloadable object files.
12934 reload_flag=$lt_reload_flag
12935 reload_cmds=$lt_reload_cmds
12937 # How to pass a linker flag through the compiler.
12938 wl=$lt_lt_prog_compiler_wl_CXX
12940 # Object file suffix (normally "o").
12941 objext="$ac_objext"
12943 # Old archive suffix (normally "a").
12946 # Shared library suffix (normally ".so").
12947 shrext_cmds='$shrext_cmds'
12949 # Executable file suffix (normally "").
12952 # Additional compiler flags for building library objects.
12953 pic_flag=$lt_lt_prog_compiler_pic_CXX
12956 # What is the maximum length of a command?
12957 max_cmd_len=$lt_cv_sys_max_cmd_len
12959 # Does compiler simultaneously support -c and -o options?
12960 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12962 # Must we lock files when doing compilation?
12963 need_locks=$lt_need_locks
12965 # Do we need the lib prefix for modules?
12966 need_lib_prefix=$need_lib_prefix
12968 # Do we need a version for libraries?
12969 need_version=$need_version
12971 # Whether dlopen is supported.
12972 dlopen_support=$enable_dlopen
12974 # Whether dlopen of programs is supported.
12975 dlopen_self=$enable_dlopen_self
12977 # Whether dlopen of statically linked programs is supported.
12978 dlopen_self_static=$enable_dlopen_self_static
12980 # Compiler flag to prevent dynamic linking.
12981 link_static_flag=$lt_lt_prog_compiler_static_CXX
12983 # Compiler flag to turn off builtin functions.
12984 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12986 # Compiler flag to allow reflexive dlopens.
12987 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12989 # Compiler flag to generate shared objects directly from archives.
12990 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12992 # Compiler flag to generate thread-safe objects.
12993 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12995 # Library versioning type.
12996 version_type=$version_type
12998 # Format of library name prefix.
12999 libname_spec=$lt_libname_spec
13001 # List of archive names. First name is the real one, the rest are links.
13002 # The last name is the one that the linker finds with -lNAME.
13003 library_names_spec=$lt_library_names_spec
13005 # The coded name of the library, if different from the real name.
13006 soname_spec=$lt_soname_spec
13008 # Commands used to build and install an old-style archive.
13010 old_archive_cmds=$lt_old_archive_cmds_CXX
13011 old_postinstall_cmds=$lt_old_postinstall_cmds
13012 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13014 # Create an old-style archive from a shared archive.
13015 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13017 # Create a temporary old-style archive to link instead of a shared archive.
13018 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13020 # Commands used to build and install a shared archive.
13021 archive_cmds=$lt_archive_cmds_CXX
13022 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13023 postinstall_cmds=$lt_postinstall_cmds
13024 postuninstall_cmds=$lt_postuninstall_cmds
13026 # Commands used to build a loadable module (assumed same as above if empty)
13027 module_cmds=$lt_module_cmds_CXX
13028 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13030 # Commands to strip libraries.
13031 old_striplib=$lt_old_striplib
13032 striplib=$lt_striplib
13034 # Dependencies to place before the objects being linked to create a
13036 predep_objects=$lt_predep_objects_CXX
13038 # Dependencies to place after the objects being linked to create a
13040 postdep_objects=$lt_postdep_objects_CXX
13042 # Dependencies to place before the objects being linked to create a
13044 predeps=$lt_predeps_CXX
13046 # Dependencies to place after the objects being linked to create a
13048 postdeps=$lt_postdeps_CXX
13050 # The library search path used internally by the compiler when linking
13051 # a shared library.
13052 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13054 # Method to check whether dependent libraries are shared objects.
13055 deplibs_check_method=$lt_deplibs_check_method
13057 # Command to use when deplibs_check_method == file_magic.
13058 file_magic_cmd=$lt_file_magic_cmd
13060 # Flag that allows shared libraries with undefined symbols to be built.
13061 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13063 # Flag that forces no undefined symbols.
13064 no_undefined_flag=$lt_no_undefined_flag_CXX
13066 # Commands used to finish a libtool library installation in a directory.
13067 finish_cmds=$lt_finish_cmds
13069 # Same as above, but a single script fragment to be evaled but not shown.
13070 finish_eval=$lt_finish_eval
13072 # Take the output of nm and produce a listing of raw symbols and C names.
13073 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13075 # Transform the output of nm in a proper C declaration
13076 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13078 # Transform the output of nm in a C name address pair
13079 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13081 # This is the shared library runtime path variable.
13082 runpath_var=$runpath_var
13084 # This is the shared library path variable.
13085 shlibpath_var=$shlibpath_var
13087 # Is shlibpath searched before the hard-coded library search path?
13088 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13090 # How to hardcode a shared library path into an executable.
13091 hardcode_action=$hardcode_action_CXX
13093 # Whether we should hardcode library paths into libraries.
13094 hardcode_into_libs=$hardcode_into_libs
13096 # Flag to hardcode \$libdir into a binary during linking.
13097 # This must work even if \$libdir does not exist.
13098 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13100 # If ld is used when linking, flag to hardcode \$libdir into
13101 # a binary during linking. This must work even if \$libdir does
13103 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13105 # Whether we need a single -rpath flag with a separated argument.
13106 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13108 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13109 # resulting binary.
13110 hardcode_direct=$hardcode_direct_CXX
13112 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13113 # resulting binary.
13114 hardcode_minus_L=$hardcode_minus_L_CXX
13116 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13117 # the resulting binary.
13118 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13120 # Set to yes if building a shared library automatically hardcodes DIR into the library
13121 # and all subsequent libraries and executables linked against it.
13122 hardcode_automatic=$hardcode_automatic_CXX
13124 # Variables whose values should be saved in libtool wrapper scripts and
13125 # restored at relink time.
13126 variables_saved_for_relink="$variables_saved_for_relink"
13128 # Whether libtool must link a program against all its dependency libraries.
13129 link_all_deplibs=$link_all_deplibs_CXX
13131 # Compile-time system search path for libraries
13132 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13134 # Run-time system search path for libraries
13135 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13137 # Fix the shell variable \$srcfile for the compiler.
13138 fix_srcfile_path="$fix_srcfile_path_CXX"
13140 # Set to yes if exported symbols are required.
13141 always_export_symbols=$always_export_symbols_CXX
13143 # The commands to list exported symbols.
13144 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13146 # The commands to extract the exported symbol list from a shared archive.
13147 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13149 # Symbols that should not be listed in the preloaded symbols.
13150 exclude_expsyms=$lt_exclude_expsyms_CXX
13152 # Symbols that must always be exported.
13153 include_expsyms=$lt_include_expsyms_CXX
13155 # ### END LIBTOOL TAG CONFIG: $tagname
13161 # If there is no Makefile yet, we rely on a make rule to execute
13162 # `config.status --recheck' to rerun these tests and create the
13163 # libtool script then.
13164 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13165 if test -f "$ltmain_in"; then
13166 test -f Makefile && make "$ltmain"
13172 ac_cpp='$CPP $CPPFLAGS'
13173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13181 with_gnu_ldcxx=$with_gnu_ld
13182 with_gnu_ld=$lt_save_with_gnu_ld
13183 lt_cv_path_LDCXX=$lt_cv_path_LD
13184 lt_cv_path_LD=$lt_save_path_LD
13185 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13186 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13194 if test -n "$F77" && test "X$F77" != "Xno"; then
13197 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13198 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13199 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13202 archive_cmds_need_lc_F77=no
13203 allow_undefined_flag_F77=
13204 always_export_symbols_F77=no
13205 archive_expsym_cmds_F77=
13206 export_dynamic_flag_spec_F77=
13207 hardcode_direct_F77=no
13208 hardcode_libdir_flag_spec_F77=
13209 hardcode_libdir_flag_spec_ld_F77=
13210 hardcode_libdir_separator_F77=
13211 hardcode_minus_L_F77=no
13212 hardcode_automatic_F77=no
13214 module_expsym_cmds_F77=
13215 link_all_deplibs_F77=unknown
13216 old_archive_cmds_F77=$old_archive_cmds
13217 no_undefined_flag_F77=
13218 whole_archive_flag_spec_F77=
13219 enable_shared_with_static_runtimes_F77=no
13221 # Source file extension for f77 test sources.
13224 # Object file extension for compiled f77 test sources.
13228 # Code to be used in simple compile tests
13229 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13231 # Code to be used in simple link tests
13232 lt_simple_link_test_code=" program t\n end\n"
13234 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13236 # If no C compiler was specified, use CC.
13239 # If no C compiler flags were specified, use CFLAGS.
13240 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13242 # Allow CC to be a program name with arguments.
13246 # save warnings/boilerplate of simple test code
13247 ac_outfile=conftest.$ac_objext
13248 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13249 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13250 _lt_compiler_boilerplate=`cat conftest.err`
13253 ac_outfile=conftest.$ac_objext
13254 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13255 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13256 _lt_linker_boilerplate=`cat conftest.err`
13260 # Allow CC to be a program name with arguments.
13265 for cc_temp in $compiler""; do
13267 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13268 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13273 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13277 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13279 $as_echo "$can_build_shared" >&6; }
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13282 $as_echo_n "checking whether to build shared libraries... " >&6; }
13283 test "$can_build_shared" = "no" && enable_shared=no
13285 # On AIX, shared libraries and static libraries use the same namespace, and
13286 # are all built from PIC.
13289 test "$enable_shared" = yes && enable_static=no
13290 if test -n "$RANLIB"; then
13291 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13292 postinstall_cmds='$RANLIB $lib'
13296 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13297 test "$enable_shared" = yes && enable_static=no
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13302 $as_echo "$enable_shared" >&6; }
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13305 $as_echo_n "checking whether to build static libraries... " >&6; }
13306 # Make sure either enable_shared or enable_static is yes.
13307 test "$enable_shared" = yes || enable_static=yes
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13309 $as_echo "$enable_static" >&6; }
13314 lt_prog_compiler_wl_F77=
13315 lt_prog_compiler_pic_F77=
13316 lt_prog_compiler_static_F77=
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13319 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13321 if test "$GCC" = yes; then
13322 lt_prog_compiler_wl_F77='-Wl,'
13323 lt_prog_compiler_static_F77='-static'
13327 # All AIX code is PIC.
13328 if test "$host_cpu" = ia64; then
13329 # AIX 5 now supports IA64 processor
13330 lt_prog_compiler_static_F77='-Bstatic'
13335 # FIXME: we need at least 68020 code to build shared libraries, but
13336 # adding the `-m68020' flag to GCC prevents building anything better,
13338 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13341 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13342 # PIC is the default for these OSes.
13345 mingw* | pw32* | os2*)
13346 # This hack is so that the source file can tell whether it is being
13347 # built for inclusion in a dll (and should export symbols for example).
13348 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13351 darwin* | rhapsody*)
13352 # PIC is the default on this platform
13353 # Common symbols not allowed in MH_DYLIB files
13354 lt_prog_compiler_pic_F77='-fno-common'
13358 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13359 # Instead, we relocate shared libraries at runtime.
13363 # Just because we use GCC doesn't mean we suddenly get shared libraries
13364 # on systems that don't support them.
13365 lt_prog_compiler_can_build_shared_F77=no
13370 if test -d /usr/nec; then
13371 lt_prog_compiler_pic_F77=-Kconform_pic
13376 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13377 # not for PA HP-UX.
13383 lt_prog_compiler_pic_F77='-fPIC'
13389 lt_prog_compiler_pic_F77='-fPIC'
13393 # PORTME Check for flag to pass linker flags through the system compiler.
13396 lt_prog_compiler_wl_F77='-Wl,'
13397 if test "$host_cpu" = ia64; then
13398 # AIX 5 now supports IA64 processor
13399 lt_prog_compiler_static_F77='-Bstatic'
13401 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13405 # PIC is the default on this platform
13406 # Common symbols not allowed in MH_DYLIB files
13407 case $cc_basename in
13409 lt_prog_compiler_pic_F77='-qnocommon'
13410 lt_prog_compiler_wl_F77='-Wl,'
13415 mingw* | pw32* | os2*)
13416 # This hack is so that the source file can tell whether it is being
13417 # built for inclusion in a dll (and should export symbols for example).
13418 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13421 hpux9* | hpux10* | hpux11*)
13422 lt_prog_compiler_wl_F77='-Wl,'
13423 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13424 # not for PA HP-UX.
13430 lt_prog_compiler_pic_F77='+Z'
13433 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13434 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13437 irix5* | irix6* | nonstopux*)
13438 lt_prog_compiler_wl_F77='-Wl,'
13439 # PIC (with -KPIC) is the default.
13440 lt_prog_compiler_static_F77='-non_shared'
13444 lt_prog_compiler_pic_F77='-KPIC'
13445 lt_prog_compiler_static_F77='-Bstatic'
13449 case $cc_basename in
13451 lt_prog_compiler_wl_F77='-Wl,'
13452 lt_prog_compiler_pic_F77='-KPIC'
13453 lt_prog_compiler_static_F77='-static'
13455 pgcc* | pgf77* | pgf90* | pgf95*)
13456 # Portland Group compilers (*not* the Pentium gcc compiler,
13457 # which looks to be a dead project)
13458 lt_prog_compiler_wl_F77='-Wl,'
13459 lt_prog_compiler_pic_F77='-fpic'
13460 lt_prog_compiler_static_F77='-Bstatic'
13463 lt_prog_compiler_wl_F77='-Wl,'
13464 # All Alpha code is PIC.
13465 lt_prog_compiler_static_F77='-non_shared'
13470 osf3* | osf4* | osf5*)
13471 lt_prog_compiler_wl_F77='-Wl,'
13472 # All OSF/1 code is PIC.
13473 lt_prog_compiler_static_F77='-non_shared'
13477 lt_prog_compiler_pic_F77='-KPIC'
13478 lt_prog_compiler_static_F77='-Bstatic'
13479 case $cc_basename in
13480 f77* | f90* | f95*)
13481 lt_prog_compiler_wl_F77='-Qoption ld ';;
13483 lt_prog_compiler_wl_F77='-Wl,';;
13488 lt_prog_compiler_wl_F77='-Qoption ld '
13489 lt_prog_compiler_pic_F77='-PIC'
13490 lt_prog_compiler_static_F77='-Bstatic'
13493 sysv4 | sysv4.2uw2* | sysv4.3*)
13494 lt_prog_compiler_wl_F77='-Wl,'
13495 lt_prog_compiler_pic_F77='-KPIC'
13496 lt_prog_compiler_static_F77='-Bstatic'
13500 if test -d /usr/nec ;then
13501 lt_prog_compiler_pic_F77='-Kconform_pic'
13502 lt_prog_compiler_static_F77='-Bstatic'
13506 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13507 lt_prog_compiler_wl_F77='-Wl,'
13508 lt_prog_compiler_pic_F77='-KPIC'
13509 lt_prog_compiler_static_F77='-Bstatic'
13513 lt_prog_compiler_wl_F77='-Wl,'
13514 lt_prog_compiler_can_build_shared_F77=no
13518 lt_prog_compiler_pic_F77='-pic'
13519 lt_prog_compiler_static_F77='-Bstatic'
13523 lt_prog_compiler_can_build_shared_F77=no
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13529 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13532 # Check to make sure the PIC flag actually works.
13534 if test -n "$lt_prog_compiler_pic_F77"; then
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13537 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13538 if ${lt_prog_compiler_pic_works_F77+:} false; then :
13539 $as_echo_n "(cached) " >&6
13541 lt_prog_compiler_pic_works_F77=no
13542 ac_outfile=conftest.$ac_objext
13543 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13544 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13545 # Insert the option either (1) after the last *FLAGS variable, or
13546 # (2) before a word containing "conftest.", or (3) at the end.
13547 # Note that $ac_compile itself does not contain backslashes and begins
13548 # with a dollar sign (not a hyphen), so the echo should work correctly.
13549 # The option is referenced via a variable to avoid confusing sed.
13550 lt_compile=`echo "$ac_compile" | $SED \
13551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13553 -e 's:$: $lt_compiler_flag:'`
13554 (eval echo "\"\$as_me:13554: $lt_compile\"" >&5)
13555 (eval "$lt_compile" 2>conftest.err)
13557 cat conftest.err >&5
13558 echo "$as_me:13558: \$? = $ac_status" >&5
13559 if (exit $ac_status) && test -s "$ac_outfile"; then
13560 # The compiler can only warn and ignore the option if not recognized
13561 # So say no if there are warnings other than the usual output.
13562 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13564 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13565 lt_prog_compiler_pic_works_F77=yes
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
13572 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
13574 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13575 case $lt_prog_compiler_pic_F77 in
13577 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13580 lt_prog_compiler_pic_F77=
13581 lt_prog_compiler_can_build_shared_F77=no
13586 # For platforms which do not support PIC, -DPIC is meaningless:
13588 lt_prog_compiler_pic_F77=
13591 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13596 # Check to make sure the static flag actually works.
13598 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13600 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13601 if ${lt_prog_compiler_static_works_F77+:} false; then :
13602 $as_echo_n "(cached) " >&6
13604 lt_prog_compiler_static_works_F77=no
13605 save_LDFLAGS="$LDFLAGS"
13606 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13607 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13608 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13609 # The linker can only warn and ignore the option if not recognized
13610 # So say no if there are warnings
13611 if test -s conftest.err; then
13612 # Append any errors to the config.log.
13613 cat conftest.err 1>&5
13614 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13616 if diff conftest.exp conftest.er2 >/dev/null; then
13617 lt_prog_compiler_static_works_F77=yes
13620 lt_prog_compiler_static_works_F77=yes
13624 LDFLAGS="$save_LDFLAGS"
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_F77" >&5
13628 $as_echo "$lt_prog_compiler_static_works_F77" >&6; }
13630 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13633 lt_prog_compiler_static_F77=
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13638 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13639 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
13640 $as_echo_n "(cached) " >&6
13642 lt_cv_prog_compiler_c_o_F77=no
13643 $rm -r conftest 2>/dev/null
13647 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13649 lt_compiler_flag="-o out/conftest2.$ac_objext"
13650 # Insert the option either (1) after the last *FLAGS variable, or
13651 # (2) before a word containing "conftest.", or (3) at the end.
13652 # Note that $ac_compile itself does not contain backslashes and begins
13653 # with a dollar sign (not a hyphen), so the echo should work correctly.
13654 lt_compile=`echo "$ac_compile" | $SED \
13655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13657 -e 's:$: $lt_compiler_flag:'`
13658 (eval echo "\"\$as_me:13658: $lt_compile\"" >&5)
13659 (eval "$lt_compile" 2>out/conftest.err)
13661 cat out/conftest.err >&5
13662 echo "$as_me:13662: \$? = $ac_status" >&5
13663 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13665 # The compiler can only warn and ignore the option if not recognized
13666 # So say no if there are warnings
13667 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13668 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13669 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13670 lt_cv_prog_compiler_c_o_F77=yes
13675 # SGI C++ compiler will create directory out/ii_files/ for
13676 # template instantiation
13677 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13678 $rm out/* && rmdir out
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13685 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13688 hard_links="nottested"
13689 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13690 # do not overwrite the value of need_locks provided by the user
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13692 $as_echo_n "checking if we can lock with hard links... " >&6; }
13695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13697 ln conftest.a conftest.b 2>&5 || hard_links=no
13698 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13700 $as_echo "$hard_links" >&6; }
13701 if test "$hard_links" = no; then
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13703 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13711 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13714 allow_undefined_flag_F77=
13715 enable_shared_with_static_runtimes_F77=no
13717 archive_expsym_cmds_F77=
13718 old_archive_From_new_cmds_F77=
13719 old_archive_from_expsyms_cmds_F77=
13720 export_dynamic_flag_spec_F77=
13721 whole_archive_flag_spec_F77=
13722 thread_safe_flag_spec_F77=
13723 hardcode_libdir_flag_spec_F77=
13724 hardcode_libdir_flag_spec_ld_F77=
13725 hardcode_libdir_separator_F77=
13726 hardcode_direct_F77=no
13727 hardcode_minus_L_F77=no
13728 hardcode_shlibpath_var_F77=unsupported
13729 link_all_deplibs_F77=unknown
13730 hardcode_automatic_F77=no
13732 module_expsym_cmds_F77=
13733 always_export_symbols_F77=no
13734 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13735 # include_expsyms should be a list of space-separated symbols to be *always*
13736 # included in the symbol list
13737 include_expsyms_F77=
13738 # exclude_expsyms can be an extended regexp of symbols to exclude
13739 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13740 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13741 # as well as any symbol that contains `d'.
13742 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13743 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13744 # platforms (ab)use it in PIC code, but their linkers get confused if
13745 # the symbol is explicitly referenced. Since portable code cannot
13746 # rely on this symbol name, it's probably fine to never include it in
13747 # preloaded symbol tables.
13748 extract_expsyms_cmds=
13749 # Just being paranoid about ensuring that cc_basename is set.
13750 for cc_temp in $compiler""; do
13752 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13753 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13758 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13761 cygwin* | mingw* | pw32*)
13762 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13763 # When not using gcc, we currently assume that we are using
13764 # Microsoft Visual C++.
13765 if test "$GCC" != yes; then
13770 # we just hope/assume this is gcc and not c89 (= MSVC++)
13779 if test "$with_gnu_ld" = yes; then
13780 # If archive_cmds runs LD, not CC, wlarc should be empty
13783 # Set some defaults for GNU ld with shared library support. These
13784 # are reset later if shared libraries are not supported. Putting them
13785 # here allows them to be overridden if necessary.
13786 runpath_var=LD_RUN_PATH
13787 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13788 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13789 # ancient GNU ld didn't support --whole-archive et. al.
13790 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13791 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13793 whole_archive_flag_spec_F77=
13795 supports_anon_versioning=no
13796 case `$LD -v 2>/dev/null` in
13797 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13798 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13799 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13800 *\ 2.11.*) ;; # other 2.11 versions
13801 *) supports_anon_versioning=yes ;;
13804 # See if GNU ld supports shared libraries.
13806 aix3* | aix4* | aix5*)
13807 # On AIX/PPC, the GNU linker is very broken
13808 if test "$host_cpu" != ia64; then
13812 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13813 *** to be unable to reliably create shared libraries on AIX.
13814 *** Therefore, libtool is disabling shared libraries support. If you
13815 *** really care for shared libraries, you may want to modify your PATH
13816 *** so that a non-GNU linker is found, and then restart.
13823 archive_cmds_F77='$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)'
13824 hardcode_libdir_flag_spec_F77='-L$libdir'
13825 hardcode_minus_L_F77=yes
13827 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13828 # that the semantics of dynamic libraries on AmigaOS, at least up
13829 # to version 4, is to share data among multiple programs linked
13830 # with the same dynamic library. Since this doesn't match the
13831 # behavior of shared libraries on other platforms, we can't use
13837 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13838 allow_undefined_flag_F77=unsupported
13839 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13840 # support --undefined. This deserves some investigation. FIXME
13841 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13847 cygwin* | mingw* | pw32*)
13848 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13849 # as there is no search path for DLLs.
13850 hardcode_libdir_flag_spec_F77='-L$libdir'
13851 allow_undefined_flag_F77=unsupported
13852 always_export_symbols_F77=no
13853 enable_shared_with_static_runtimes_F77=yes
13854 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13856 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13857 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13858 # If the export-symbols file already is a .def file (1st line
13859 # is EXPORTS), use it as is; otherwise, prepend...
13860 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13861 cp $export_symbols $output_objdir/$soname.def;
13863 echo EXPORTS > $output_objdir/$soname.def;
13864 cat $export_symbols >> $output_objdir/$soname.def;
13866 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13873 hardcode_direct_F77=no
13874 hardcode_shlibpath_var_F77=no
13875 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13876 export_dynamic_flag_spec_F77='${wl}-E'
13877 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13878 # Instead, shared libraries are loaded at an image base (0x10000000 by
13879 # default) and relocated if they conflict, which is a slow very memory
13880 # consuming and fragmenting process. To avoid this, we pick a random,
13881 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13882 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13883 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13884 archive_expsym_cmds_F77='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'
13888 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13890 case $cc_basename,$host_cpu in
13891 pgcc*) # Portland Group C compiler
13892 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13893 tmp_addflag=' $pic_flag'
13895 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13896 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13897 tmp_addflag=' $pic_flag -Mnomain' ;;
13898 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13899 tmp_addflag=' -i_dynamic' ;;
13900 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13901 tmp_addflag=' -i_dynamic -nofor_main' ;;
13902 ifc* | ifort*) # Intel Fortran compiler
13903 tmp_addflag=' -nofor_main' ;;
13905 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13907 if test $supports_anon_versioning = yes; then
13908 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13909 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13910 $echo "local: *; };" >> $output_objdir/$libname.ver~
13911 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13913 link_all_deplibs_F77=no
13919 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13920 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13921 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13924 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13925 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13930 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13934 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13935 *** create shared libraries on Solaris systems. Therefore, libtool
13936 *** is disabling shared libraries support. We urge you to upgrade GNU
13937 *** binutils to release 2.9.1 or newer. Another option is to modify
13938 *** your PATH or compiler configuration so that the native linker is
13939 *** used, and then restart.
13942 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13943 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13944 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13950 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13951 case `$LD -v 2>&1` in
13952 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13956 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13957 *** reliably create shared libraries on SCO systems. Therefore, libtool
13958 *** is disabling shared libraries support. We urge you to upgrade GNU
13959 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13960 *** your PATH or compiler configuration so that the native linker is
13961 *** used, and then restart.
13966 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13967 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13968 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13969 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13978 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13980 hardcode_direct_F77=yes
13981 hardcode_shlibpath_var_F77=no
13985 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13986 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13987 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13994 if test "$ld_shlibs_F77" = no; then
13996 hardcode_libdir_flag_spec_F77=
13997 export_dynamic_flag_spec_F77=
13998 whole_archive_flag_spec_F77=
14001 # PORTME fill in a description of your system's linker (not GNU ld)
14004 allow_undefined_flag_F77=unsupported
14005 always_export_symbols_F77=yes
14006 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14007 # Note: this linker hardcodes the directories in LIBPATH if there
14008 # are no directories specified by -L.
14009 hardcode_minus_L_F77=yes
14010 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14011 # Neither direct hardcoding nor static linking is supported with a
14013 hardcode_direct_F77=unsupported
14018 if test "$host_cpu" = ia64; then
14019 # On IA64, the linker does run time linking by default, so we don't
14020 # have to do anything special.
14021 aix_use_runtimelinking=no
14022 exp_sym_flag='-Bexport'
14025 # If we're using GNU nm, then we don't want the "-C" option.
14026 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14027 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14028 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14030 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14032 aix_use_runtimelinking=no
14034 # Test if we are trying to use run time linking or normal
14035 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14036 # need to do runtime linking.
14037 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14038 for ld_flag in $LDFLAGS; do
14039 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14040 aix_use_runtimelinking=yes
14047 exp_sym_flag='-bexport'
14048 no_entry_flag='-bnoentry'
14051 # When large executables or shared objects are built, AIX ld can
14052 # have problems creating the table of contents. If linking a library
14053 # or program results in "error TOC overflow" add -mminimal-toc to
14054 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14055 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14057 archive_cmds_F77=''
14058 hardcode_direct_F77=yes
14059 hardcode_libdir_separator_F77=':'
14060 link_all_deplibs_F77=yes
14062 if test "$GCC" = yes; then
14063 case $host_os in aix4.[012]|aix4.[012].*)
14064 # We only want to do this on AIX 4.2 and lower, the check
14065 # below for broken collect2 doesn't work under 4.3+
14066 collect2name=`${CC} -print-prog-name=collect2`
14067 if test -f "$collect2name" && \
14068 strings "$collect2name" | grep resolve_lib_name >/dev/null
14070 # We have reworked collect2
14071 hardcode_direct_F77=yes
14073 # We have old collect2
14074 hardcode_direct_F77=unsupported
14075 # It fails to find uninstalled libraries when the uninstalled
14076 # path is not listed in the libpath. Setting hardcode_minus_L
14077 # to unsupported forces relinking
14078 hardcode_minus_L_F77=yes
14079 hardcode_libdir_flag_spec_F77='-L$libdir'
14080 hardcode_libdir_separator_F77=
14084 shared_flag='-shared'
14085 if test "$aix_use_runtimelinking" = yes; then
14086 shared_flag="$shared_flag "'${wl}-G'
14090 if test "$host_cpu" = ia64; then
14091 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14092 # chokes on -Wl,-G. The following line is correct:
14095 if test "$aix_use_runtimelinking" = yes; then
14096 shared_flag='${wl}-G'
14098 shared_flag='${wl}-bM:SRE'
14103 # It seems that -bexpall does not export symbols beginning with
14104 # underscore (_), so it is better to generate a list of symbols to export.
14105 always_export_symbols_F77=yes
14106 if test "$aix_use_runtimelinking" = yes; then
14107 # Warning - without using the other runtime loading flags (-brtl),
14108 # -berok will link without error, but may produce a broken library.
14109 allow_undefined_flag_F77='-berok'
14110 # Determine the default libpath from the value encoded in an empty executable.
14111 cat > conftest.$ac_ext <<_ACEOF
14116 if ac_fn_f77_try_link "$LINENO"; then :
14118 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14120 # Check for a 64-bit object if we didn't find anything.
14121 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14124 rm -f core conftest.err conftest.$ac_objext \
14125 conftest$ac_exeext conftest.$ac_ext
14126 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14128 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14129 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14131 if test "$host_cpu" = ia64; then
14132 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14133 allow_undefined_flag_F77="-z nodefs"
14134 archive_expsym_cmds_F77="\$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"
14136 # Determine the default libpath from the value encoded in an empty executable.
14137 cat > conftest.$ac_ext <<_ACEOF
14142 if ac_fn_f77_try_link "$LINENO"; then :
14144 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14146 # Check for a 64-bit object if we didn't find anything.
14147 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14150 rm -f core conftest.err conftest.$ac_objext \
14151 conftest$ac_exeext conftest.$ac_ext
14152 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14154 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14155 # Warning - without using the other run time loading flags,
14156 # -berok will link without error, but may produce a broken library.
14157 no_undefined_flag_F77=' ${wl}-bernotok'
14158 allow_undefined_flag_F77=' ${wl}-berok'
14159 # Exported symbols can be pulled into shared objects from archives
14160 whole_archive_flag_spec_F77='$convenience'
14161 archive_cmds_need_lc_F77=yes
14162 # This is similar to how AIX traditionally builds its shared libraries.
14163 archive_expsym_cmds_F77="\$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'
14169 archive_cmds_F77='$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)'
14170 hardcode_libdir_flag_spec_F77='-L$libdir'
14171 hardcode_minus_L_F77=yes
14172 # see comment about different semantics on the GNU ld section
14177 export_dynamic_flag_spec_F77=-rdynamic
14180 cygwin* | mingw* | pw32*)
14181 # When not using gcc, we currently assume that we are using
14182 # Microsoft Visual C++.
14183 # hardcode_libdir_flag_spec is actually meaningless, as there is
14184 # no search path for DLLs.
14185 hardcode_libdir_flag_spec_F77=' '
14186 allow_undefined_flag_F77=unsupported
14187 # Tell ltmain to make .lib files, not .a files.
14189 # Tell ltmain to make .dll files, not .so files.
14191 # FIXME: Setting linknames here is a bad hack.
14192 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14193 # The linker will automatically build a .lib file if we build a DLL.
14194 old_archive_From_new_cmds_F77='true'
14195 # FIXME: Should let the user specify the lib program.
14196 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14197 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14198 enable_shared_with_static_runtimes_F77=yes
14201 darwin* | rhapsody*)
14203 rhapsody* | darwin1.[012])
14204 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14207 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14208 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14210 case ${MACOSX_DEPLOYMENT_TARGET} in
14212 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14215 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14221 archive_cmds_need_lc_F77=no
14222 hardcode_direct_F77=no
14223 hardcode_automatic_F77=yes
14224 hardcode_shlibpath_var_F77=unsupported
14225 whole_archive_flag_spec_F77=''
14226 link_all_deplibs_F77=yes
14227 if test "$GCC" = yes ; then
14228 output_verbose_link_cmd='echo'
14229 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14230 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14231 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14232 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14233 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14235 case $cc_basename in
14237 output_verbose_link_cmd='echo'
14238 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14239 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14240 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14241 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14242 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14252 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14253 hardcode_libdir_flag_spec_F77='-L$libdir'
14254 hardcode_shlibpath_var_F77=no
14261 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14262 # support. Future versions do this automatically, but an explicit c++rt0.o
14263 # does not break anything, and helps significantly (at the cost of a little
14266 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14267 hardcode_libdir_flag_spec_F77='-R$libdir'
14268 hardcode_direct_F77=yes
14269 hardcode_shlibpath_var_F77=no
14272 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14274 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14275 hardcode_direct_F77=yes
14276 hardcode_minus_L_F77=yes
14277 hardcode_shlibpath_var_F77=no
14280 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14281 freebsd* | dragonfly*)
14282 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14283 hardcode_libdir_flag_spec_F77='-R$libdir'
14284 hardcode_direct_F77=yes
14285 hardcode_shlibpath_var_F77=no
14288 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
14290 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14291 hardcode_libdir_flag_spec_F77='-R$libdir'
14292 hardcode_direct_F77=yes
14293 hardcode_shlibpath_var_F77=no
14294 link_all_deplibs_F77=no
14298 if test "$GCC" = yes; then
14299 archive_cmds_F77='$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'
14301 archive_cmds_F77='$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'
14303 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14304 hardcode_libdir_separator_F77=:
14305 hardcode_direct_F77=yes
14307 # hardcode_minus_L: Not really in the search PATH,
14308 # but as the default location of the library.
14309 hardcode_minus_L_F77=yes
14310 export_dynamic_flag_spec_F77='${wl}-E'
14314 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14315 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14317 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14319 if test "$with_gnu_ld" = no; then
14320 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14321 hardcode_libdir_separator_F77=:
14323 hardcode_direct_F77=yes
14324 export_dynamic_flag_spec_F77='${wl}-E'
14326 # hardcode_minus_L: Not really in the search PATH,
14327 # but as the default location of the library.
14328 hardcode_minus_L_F77=yes
14333 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14336 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14339 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14342 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14348 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14351 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14354 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14358 if test "$with_gnu_ld" = no; then
14359 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14360 hardcode_libdir_separator_F77=:
14364 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14365 hardcode_direct_F77=no
14366 hardcode_shlibpath_var_F77=no
14369 hardcode_direct_F77=yes
14370 export_dynamic_flag_spec_F77='${wl}-E'
14372 # hardcode_minus_L: Not really in the search PATH,
14373 # but as the default location of the library.
14374 hardcode_minus_L_F77=yes
14380 irix5* | irix6* | nonstopux*)
14381 if test "$GCC" = yes; then
14382 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14384 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14385 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14387 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14388 hardcode_libdir_separator_F77=:
14389 link_all_deplibs_F77=yes
14392 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14393 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14394 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14396 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14398 hardcode_libdir_flag_spec_F77='-R$libdir'
14399 hardcode_direct_F77=yes
14400 hardcode_shlibpath_var_F77=no
14404 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14405 hardcode_direct_F77=yes
14406 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14407 hardcode_libdir_separator_F77=:
14408 hardcode_shlibpath_var_F77=no
14412 hardcode_direct_F77=yes
14413 hardcode_shlibpath_var_F77=no
14414 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14415 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14416 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14417 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14418 export_dynamic_flag_spec_F77='${wl}-E'
14421 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14422 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14423 hardcode_libdir_flag_spec_F77='-R$libdir'
14426 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14427 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14434 hardcode_libdir_flag_spec_F77='-L$libdir'
14435 hardcode_minus_L_F77=yes
14436 allow_undefined_flag_F77=unsupported
14437 archive_cmds_F77='$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'
14438 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14442 if test "$GCC" = yes; then
14443 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14444 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14446 allow_undefined_flag_F77=' -expect_unresolved \*'
14447 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14449 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14450 hardcode_libdir_separator_F77=:
14453 osf4* | osf5*) # as osf3* with the addition of -msym flag
14454 if test "$GCC" = yes; then
14455 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14456 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14457 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14459 allow_undefined_flag_F77=' -expect_unresolved \*'
14460 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14461 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14462 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14464 # Both c and cxx compiler support -rpath directly
14465 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14467 hardcode_libdir_separator_F77=:
14471 no_undefined_flag_F77=' -z text'
14472 if test "$GCC" = yes; then
14474 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14475 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14476 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14479 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14480 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14481 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14483 hardcode_libdir_flag_spec_F77='-R$libdir'
14484 hardcode_shlibpath_var_F77=no
14486 solaris2.[0-5] | solaris2.[0-5].*) ;;
14488 # The compiler driver will combine linker options so we
14489 # cannot just pass the convience library names through
14490 # without $wl, iff we do not link with $LD.
14491 # Luckily, gcc supports the same syntax we need for Sun Studio.
14492 # Supported since Solaris 2.6 (maybe 2.5.1?)
14495 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14497 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14500 link_all_deplibs_F77=yes
14504 if test "x$host_vendor" = xsequent; then
14505 # Use $CC to link under sequent, because it throws in some extra .o
14506 # files that make .init and .fini sections work.
14507 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14509 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14511 hardcode_libdir_flag_spec_F77='-L$libdir'
14512 hardcode_direct_F77=yes
14513 hardcode_minus_L_F77=yes
14514 hardcode_shlibpath_var_F77=no
14518 case $host_vendor in
14520 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14521 hardcode_direct_F77=yes # is this really true???
14524 ## LD is ld it makes a PLAMLIB
14525 ## CC just makes a GrossModule.
14526 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14527 reload_cmds_F77='$CC -r -o $output$reload_objs'
14528 hardcode_direct_F77=no
14531 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14532 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14535 runpath_var='LD_RUN_PATH'
14536 hardcode_shlibpath_var_F77=no
14540 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14541 hardcode_shlibpath_var_F77=no
14542 export_dynamic_flag_spec_F77='-Bexport'
14546 if test -d /usr/nec; then
14547 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14548 hardcode_shlibpath_var_F77=no
14549 runpath_var=LD_RUN_PATH
14550 hardcode_runpath_var=yes
14555 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14556 no_undefined_flag_F77='${wl}-z,text'
14557 archive_cmds_need_lc_F77=no
14558 hardcode_shlibpath_var_F77=no
14559 runpath_var='LD_RUN_PATH'
14561 if test "$GCC" = yes; then
14562 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14563 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14565 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14566 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14570 sysv5* | sco3.2v5* | sco5v6*)
14571 # Note: We can NOT use -z defs as we might desire, because we do not
14572 # link with -lc, and that would cause any symbols used from libc to
14573 # always be unresolved, which means just about no library would
14574 # ever link correctly. If we're not using GNU ld we use -z text
14575 # though, which does catch some bad symbols but isn't as heavy-handed
14577 no_undefined_flag_F77='${wl}-z,text'
14578 allow_undefined_flag_F77='${wl}-z,nodefs'
14579 archive_cmds_need_lc_F77=no
14580 hardcode_shlibpath_var_F77=no
14581 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14582 hardcode_libdir_separator_F77=':'
14583 link_all_deplibs_F77=yes
14584 export_dynamic_flag_spec_F77='${wl}-Bexport'
14585 runpath_var='LD_RUN_PATH'
14587 if test "$GCC" = yes; then
14588 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14589 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14591 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14592 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14597 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14598 hardcode_libdir_flag_spec_F77='-L$libdir'
14599 hardcode_shlibpath_var_F77=no
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14609 $as_echo "$ld_shlibs_F77" >&6; }
14610 test "$ld_shlibs_F77" = no && can_build_shared=no
14613 # Do we need to explicitly link libc?
14615 case "x$archive_cmds_need_lc_F77" in
14617 # Assume -lc should be added
14618 archive_cmds_need_lc_F77=yes
14620 if test "$enable_shared" = yes && test "$GCC" = yes; then
14621 case $archive_cmds_F77 in
14623 # FIXME: we may have to deal with multi-command sequences.
14626 # Test whether the compiler implicitly links with -lc since on some
14627 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14628 # to ld, don't add -lc before -lgcc.
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14630 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14632 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14635 (eval $ac_compile) 2>&5
14637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14638 test $ac_status = 0; } 2>conftest.err; then
14641 libobjs=conftest.$ac_objext
14643 wl=$lt_prog_compiler_wl_F77
14644 pic_flag=$lt_prog_compiler_pic_F77
14650 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14651 allow_undefined_flag_F77=
14652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14653 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14656 test $ac_status = 0; }
14658 archive_cmds_need_lc_F77=no
14660 archive_cmds_need_lc_F77=yes
14662 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14664 cat conftest.err 1>&5
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14668 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14676 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14677 library_names_spec=
14678 libname_spec='lib$name'
14682 postuninstall_cmds=
14686 shlibpath_overrides_runpath=unknown
14688 dynamic_linker="$host_os ld.so"
14689 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14690 if test "$GCC" = yes; then
14691 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14692 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14693 # if the path contains ";" then we assume it to be the separator
14694 # otherwise default to the standard path separator (i.e. ":") - it is
14695 # assumed that no part of a normal pathname contains ";" but that should
14696 # okay in the real world where ";" in dirpaths is itself problematic.
14697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14702 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14704 need_lib_prefix=unknown
14705 hardcode_into_libs=no
14707 # when you set need_version to no, make sure it does not cause -set_version
14708 # flags to be left without arguments
14709 need_version=unknown
14714 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14715 shlibpath_var=LIBPATH
14717 # AIX 3 has no versioning support, so we append a major version to the name.
14718 soname_spec='${libname}${release}${shared_ext}$major'
14725 hardcode_into_libs=yes
14726 if test "$host_cpu" = ia64; then
14727 # AIX 5 supports IA64
14728 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14729 shlibpath_var=LD_LIBRARY_PATH
14731 # With GCC up to 2.95.x, collect2 would create an import file
14732 # for dependence libraries. The import file would start with
14733 # the line `#! .'. This would cause the generated library to
14734 # depend on `.', always an invalid library. This was fixed in
14735 # development snapshots of GCC prior to 3.0.
14737 aix4 | aix4.[01] | aix4.[01].*)
14738 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14740 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14743 can_build_shared=no
14747 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14748 # soname into executable. Probably we can add versioning support to
14749 # collect2, so additional links can be useful in future.
14750 if test "$aix_use_runtimelinking" = yes; then
14751 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14752 # instead of lib<name>.a to let people know that these are not
14753 # typical AIX shared libraries.
14754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14756 # We preserve .a as extension for shared libraries through AIX4.2
14757 # and later when we are not doing run time linking.
14758 library_names_spec='${libname}${release}.a $libname.a'
14759 soname_spec='${libname}${release}${shared_ext}$major'
14761 shlibpath_var=LIBPATH
14766 library_names_spec='$libname.ixlibrary $libname.a'
14767 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14768 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'
14772 library_names_spec='${libname}${shared_ext}'
14773 dynamic_linker="$host_os ld.so"
14774 shlibpath_var=LIBRARY_PATH
14780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14781 soname_spec='${libname}${release}${shared_ext}$major'
14782 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14783 shlibpath_var=LD_LIBRARY_PATH
14784 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14785 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14786 # the default ld.so.conf also contains /usr/contrib/lib and
14787 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14788 # libtool to hard-code these into programs
14791 cygwin* | mingw* | pw32*)
14792 version_type=windows
14797 case $GCC,$host_os in
14798 yes,cygwin* | yes,mingw* | yes,pw32*)
14799 library_names_spec='$libname.dll.a'
14800 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14801 postinstall_cmds='base_file=`basename \${file}`~
14802 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14803 dldir=$destdir/`dirname \$dlpath`~
14804 test -d \$dldir || mkdir -p \$dldir~
14805 $install_prog $dir/$dlname \$dldir/$dlname~
14806 chmod a+x \$dldir/$dlname'
14807 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14808 dlpath=$dir/\$dldll~
14810 shlibpath_overrides_runpath=yes
14814 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14815 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14816 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14819 # MinGW DLLs use traditional 'lib' prefix
14820 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14821 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14822 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14823 # It is most probably a Windows format PATH printed by
14824 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14825 # path with ; separators, and with drive letters. We can handle the
14826 # drive letters (cygwin fileutils understands them), so leave them,
14827 # especially as we might pass files found there to a mingw objdump,
14828 # which wouldn't understand a cygwinified path. Ahh.
14829 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14831 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14835 # pw32 DLLs use 'pw' prefix rather than 'lib'
14836 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14842 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14845 dynamic_linker='Win32 ld.exe'
14846 # FIXME: first we should search . and the directory the executable is in
14850 darwin* | rhapsody*)
14851 dynamic_linker="$host_os dyld"
14852 version_type=darwin
14855 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14856 soname_spec='${libname}${release}${major}$shared_ext'
14857 shlibpath_overrides_runpath=yes
14858 shlibpath_var=DYLD_LIBRARY_PATH
14859 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14860 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14861 if test "$GCC" = yes; then
14862 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14864 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14866 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14874 soname_spec='${libname}${release}${shared_ext}$major'
14875 shlibpath_var=LD_LIBRARY_PATH
14886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14887 soname_spec='${libname}${release}${shared_ext}$major'
14888 shlibpath_var=LD_LIBRARY_PATH
14889 shlibpath_overrides_runpath=no
14890 hardcode_into_libs=yes
14891 dynamic_linker='GNU ld.so'
14894 freebsd* | dragonfly*)
14895 # DragonFly does not have aout. When/if they implement a new
14896 # versioning mechanism, adjust this.
14897 if test -x /usr/bin/objformat; then
14898 objformat=`/usr/bin/objformat`
14901 freebsd[123]*) objformat=aout ;;
14902 *) objformat=elf ;;
14905 version_type=freebsd-$objformat
14906 case $version_type in
14908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14913 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14917 shlibpath_var=LD_LIBRARY_PATH
14920 shlibpath_overrides_runpath=yes
14922 freebsd3.[01]* | freebsdelf3.[01]*)
14923 shlibpath_overrides_runpath=yes
14924 hardcode_into_libs=yes
14926 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14927 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14928 shlibpath_overrides_runpath=no
14929 hardcode_into_libs=yes
14931 freebsd*) # from 4.6 on
14932 shlibpath_overrides_runpath=yes
14933 hardcode_into_libs=yes
14942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14943 soname_spec='${libname}${release}${shared_ext}$major'
14944 shlibpath_var=LD_LIBRARY_PATH
14945 hardcode_into_libs=yes
14948 hpux9* | hpux10* | hpux11*)
14949 # Give a soname corresponding to the major version so that dld.sl refuses to
14950 # link against other versions.
14957 hardcode_into_libs=yes
14958 dynamic_linker="$host_os dld.so"
14959 shlibpath_var=LD_LIBRARY_PATH
14960 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14962 soname_spec='${libname}${release}${shared_ext}$major'
14963 if test "X$HPUX_IA64_MODE" = X32; then
14964 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14966 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14972 hardcode_into_libs=yes
14973 dynamic_linker="$host_os dld.sl"
14974 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14975 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14977 soname_spec='${libname}${release}${shared_ext}$major'
14978 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14979 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14983 dynamic_linker="$host_os dld.sl"
14984 shlibpath_var=SHLIB_PATH
14985 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14987 soname_spec='${libname}${release}${shared_ext}$major'
14990 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14991 postinstall_cmds='chmod 555 $lib'
14998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14999 soname_spec='${libname}${release}${shared_ext}$major'
15000 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15001 shlibpath_var=LD_LIBRARY_PATH
15002 shlibpath_overrides_runpath=no
15003 hardcode_into_libs=yes
15006 irix5* | irix6* | nonstopux*)
15008 nonstopux*) version_type=nonstopux ;;
15010 if test "$lt_cv_prog_gnu_ld" = yes; then
15018 soname_spec='${libname}${release}${shared_ext}$major'
15019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15021 irix5* | nonstopux*)
15022 libsuff= shlibsuff=
15025 case $LD in # libtool.m4 will add one of these switches to LD
15026 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15027 libsuff= shlibsuff= libmagic=32-bit;;
15028 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15029 libsuff=32 shlibsuff=N32 libmagic=N32;;
15030 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15031 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15032 *) libsuff= shlibsuff= libmagic=never-match;;
15036 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15037 shlibpath_overrides_runpath=no
15038 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15039 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15040 hardcode_into_libs=yes
15043 # No shared lib support for Linux oldld, aout, or coff.
15044 linux*oldld* | linux*aout* | linux*coff*)
15048 # This must be Linux ELF.
15053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15054 soname_spec='${libname}${release}${shared_ext}$major'
15055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15056 shlibpath_var=LD_LIBRARY_PATH
15057 shlibpath_overrides_runpath=no
15058 # This implies no fast_install, which is unacceptable.
15059 # Some rework will be needed to allow for fast_install
15060 # before this can be enabled.
15061 hardcode_into_libs=yes
15063 # Append ld.so.conf contents to the search path
15064 if test -f /etc/ld.so.conf; then
15065 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15066 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15069 # We used to test for /lib/ld.so.1 and disable shared libraries on
15070 # powerpc, because MkLinux only supported shared libraries with the
15071 # GNU dynamic linker. Since this was broken with cross compilers,
15072 # most powerpc-linux boxes support dynamic linking these days and
15073 # people can always --disable-shared, the test was removed, and we
15074 # assume the GNU/Linux dynamic linker is in use.
15075 dynamic_linker='GNU/Linux ld.so'
15082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15083 soname_spec='${libname}${release}${shared_ext}$major'
15084 shlibpath_var=LD_LIBRARY_PATH
15085 shlibpath_overrides_runpath=no
15086 hardcode_into_libs=yes
15087 dynamic_linker='NetBSD ld.elf_so'
15094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15095 soname_spec='${libname}${release}${shared_ext}$major'
15096 shlibpath_var=LD_LIBRARY_PATH
15097 shlibpath_overrides_runpath=no
15098 hardcode_into_libs=yes
15099 dynamic_linker='GNU ld.so'
15106 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15109 dynamic_linker='NetBSD (a.out) ld.so'
15111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15112 soname_spec='${libname}${release}${shared_ext}$major'
15113 dynamic_linker='NetBSD ld.elf_so'
15115 shlibpath_var=LD_LIBRARY_PATH
15116 shlibpath_overrides_runpath=yes
15117 hardcode_into_libs=yes
15122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15123 shlibpath_var=LD_LIBRARY_PATH
15124 shlibpath_overrides_runpath=yes
15131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15132 soname_spec='${libname}${release}${shared_ext}$major'
15133 shlibpath_var=LD_LIBRARY_PATH
15134 shlibpath_overrides_runpath=yes
15139 sys_lib_dlsearch_path_spec="/usr/lib"
15141 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15143 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15144 *) need_version=no ;;
15146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15148 shlibpath_var=LD_LIBRARY_PATH
15149 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15151 openbsd2.[89] | openbsd2.[89].*)
15152 shlibpath_overrides_runpath=no
15155 shlibpath_overrides_runpath=yes
15159 shlibpath_overrides_runpath=yes
15164 libname_spec='$name'
15167 library_names_spec='$libname${shared_ext} $libname.a'
15168 dynamic_linker='OS/2 ld.exe'
15169 shlibpath_var=LIBPATH
15172 osf3* | osf4* | osf5*)
15176 soname_spec='${libname}${release}${shared_ext}$major'
15177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15178 shlibpath_var=LD_LIBRARY_PATH
15179 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15180 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15188 soname_spec='${libname}${release}${shared_ext}$major'
15189 shlibpath_var=LD_LIBRARY_PATH
15190 shlibpath_overrides_runpath=yes
15191 hardcode_into_libs=yes
15192 # ldd complains unless libraries are executable
15193 postinstall_cmds='chmod +x $lib'
15198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15199 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15200 shlibpath_var=LD_LIBRARY_PATH
15201 shlibpath_overrides_runpath=yes
15202 if test "$with_gnu_ld" = yes; then
15210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211 soname_spec='${libname}${release}${shared_ext}$major'
15212 shlibpath_var=LD_LIBRARY_PATH
15213 case $host_vendor in
15215 shlibpath_overrides_runpath=no
15217 export_dynamic_flag_spec='${wl}-Blargedynsym'
15218 runpath_var=LD_RUN_PATH
15226 shlibpath_overrides_runpath=no
15227 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15233 if test -d /usr/nec ;then
15235 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15236 soname_spec='$libname${shared_ext}.$major'
15237 shlibpath_var=LD_LIBRARY_PATH
15241 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15242 version_type=freebsd-elf
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15246 soname_spec='${libname}${release}${shared_ext}$major'
15247 shlibpath_var=LD_LIBRARY_PATH
15248 hardcode_into_libs=yes
15249 if test "$with_gnu_ld" = yes; then
15250 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15251 shlibpath_overrides_runpath=no
15253 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15254 shlibpath_overrides_runpath=yes
15257 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15261 sys_lib_dlsearch_path_spec='/usr/lib'
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267 soname_spec='${libname}${release}${shared_ext}$major'
15268 shlibpath_var=LD_LIBRARY_PATH
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15276 $as_echo "$dynamic_linker" >&6; }
15277 test "$dynamic_linker" = no && can_build_shared=no
15279 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15280 if test "$GCC" = yes; then
15281 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15285 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15286 hardcode_action_F77=
15287 if test -n "$hardcode_libdir_flag_spec_F77" || \
15288 test -n "$runpath_var_F77" || \
15289 test "X$hardcode_automatic_F77" = "Xyes" ; then
15291 # We can hardcode non-existant directories.
15292 if test "$hardcode_direct_F77" != no &&
15293 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15294 # have to relink, otherwise we might link with an installed library
15295 # when we should be linking with a yet-to-be-installed one
15296 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15297 test "$hardcode_minus_L_F77" != no; then
15298 # Linking always hardcodes the temporary library directory.
15299 hardcode_action_F77=relink
15301 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15302 hardcode_action_F77=immediate
15305 # We cannot hardcode anything, or else we can only hardcode existing
15307 hardcode_action_F77=unsupported
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15310 $as_echo "$hardcode_action_F77" >&6; }
15312 if test "$hardcode_action_F77" = relink; then
15313 # Fast installation is not supported
15314 enable_fast_install=no
15315 elif test "$shlibpath_overrides_runpath" = yes ||
15316 test "$enable_shared" = no; then
15317 # Fast installation is not necessary
15318 enable_fast_install=needless
15322 # The else clause should only fire when bootstrapping the
15323 # libtool distribution, otherwise you forgot to ship ltmain.sh
15324 # with your package, and you will get complaints that there are
15325 # no rules to generate ltmain.sh.
15326 if test -f "$ltmain"; then
15327 # See if we are running on zsh, and set the options which allow our commands through
15328 # without removal of \ escapes.
15329 if test -n "${ZSH_VERSION+set}" ; then
15330 setopt NO_GLOB_SUBST
15332 # Now quote all the things that may contain metacharacters while being
15333 # careful not to overquote the AC_SUBSTed values. We take copies of the
15334 # variables and quote the copies for generation of the libtool script.
15335 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15337 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15338 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15339 deplibs_check_method reload_flag reload_cmds need_locks \
15340 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15341 lt_cv_sys_global_symbol_to_c_name_address \
15342 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15343 old_postinstall_cmds old_postuninstall_cmds \
15347 lt_prog_compiler_wl_F77 \
15348 lt_prog_compiler_pic_F77 \
15349 lt_prog_compiler_static_F77 \
15350 lt_prog_compiler_no_builtin_flag_F77 \
15351 export_dynamic_flag_spec_F77 \
15352 thread_safe_flag_spec_F77 \
15353 whole_archive_flag_spec_F77 \
15354 enable_shared_with_static_runtimes_F77 \
15355 old_archive_cmds_F77 \
15356 old_archive_from_new_cmds_F77 \
15357 predep_objects_F77 \
15358 postdep_objects_F77 \
15361 compiler_lib_search_path_F77 \
15363 archive_expsym_cmds_F77 \
15364 postinstall_cmds_F77 \
15365 postuninstall_cmds_F77 \
15366 old_archive_from_expsyms_cmds_F77 \
15367 allow_undefined_flag_F77 \
15368 no_undefined_flag_F77 \
15369 export_symbols_cmds_F77 \
15370 hardcode_libdir_flag_spec_F77 \
15371 hardcode_libdir_flag_spec_ld_F77 \
15372 hardcode_libdir_separator_F77 \
15373 hardcode_automatic_F77 \
15375 module_expsym_cmds_F77 \
15376 lt_cv_prog_compiler_c_o_F77 \
15377 exclude_expsyms_F77 \
15378 include_expsyms_F77; do
15381 old_archive_cmds_F77 | \
15382 old_archive_from_new_cmds_F77 | \
15383 archive_cmds_F77 | \
15384 archive_expsym_cmds_F77 | \
15385 module_cmds_F77 | \
15386 module_expsym_cmds_F77 | \
15387 old_archive_from_expsyms_cmds_F77 | \
15388 export_symbols_cmds_F77 | \
15389 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15390 postinstall_cmds | postuninstall_cmds | \
15391 old_postinstall_cmds | old_postuninstall_cmds | \
15392 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15393 # Double-quote double-evaled strings.
15394 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15397 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15403 *'\$0 --fallback-echo"')
15404 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15410 cat <<__EOF__ >> "$cfgfile"
15411 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15413 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15415 # Shell to use when invoking shell scripts.
15418 # Whether or not to build shared libraries.
15419 build_libtool_libs=$enable_shared
15421 # Whether or not to build static libraries.
15422 build_old_libs=$enable_static
15424 # Whether or not to add -lc for building shared libraries.
15425 build_libtool_need_lc=$archive_cmds_need_lc_F77
15427 # Whether or not to disallow shared libs when runtime libs are static
15428 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15430 # Whether or not to optimize for fast installation.
15431 fast_install=$enable_fast_install
15434 host_alias=$host_alias
15438 # The build system.
15439 build_alias=$build_alias
15443 # An echo program that does not interpret backslashes.
15448 AR_FLAGS=$lt_AR_FLAGS
15453 # LTCC compiler flags.
15454 LTCFLAGS=$lt_LTCFLAGS
15456 # A language-specific compiler.
15457 CC=$lt_compiler_F77
15459 # Is the compiler the GNU C compiler?
15465 # The linker used to build libraries.
15468 # Whether we need hard or soft links.
15471 # A BSD-compatible nm program.
15474 # A symbol stripping program
15477 # Used to examine libraries when file_magic_cmd begins "file"
15478 MAGIC_CMD=$MAGIC_CMD
15480 # Used on cygwin: DLL creation program.
15483 # Used on cygwin: object dumper.
15486 # Used on cygwin: assembler.
15489 # The name of the directory that contains temporary libtool files.
15492 # How to create reloadable object files.
15493 reload_flag=$lt_reload_flag
15494 reload_cmds=$lt_reload_cmds
15496 # How to pass a linker flag through the compiler.
15497 wl=$lt_lt_prog_compiler_wl_F77
15499 # Object file suffix (normally "o").
15500 objext="$ac_objext"
15502 # Old archive suffix (normally "a").
15505 # Shared library suffix (normally ".so").
15506 shrext_cmds='$shrext_cmds'
15508 # Executable file suffix (normally "").
15511 # Additional compiler flags for building library objects.
15512 pic_flag=$lt_lt_prog_compiler_pic_F77
15515 # What is the maximum length of a command?
15516 max_cmd_len=$lt_cv_sys_max_cmd_len
15518 # Does compiler simultaneously support -c and -o options?
15519 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15521 # Must we lock files when doing compilation?
15522 need_locks=$lt_need_locks
15524 # Do we need the lib prefix for modules?
15525 need_lib_prefix=$need_lib_prefix
15527 # Do we need a version for libraries?
15528 need_version=$need_version
15530 # Whether dlopen is supported.
15531 dlopen_support=$enable_dlopen
15533 # Whether dlopen of programs is supported.
15534 dlopen_self=$enable_dlopen_self
15536 # Whether dlopen of statically linked programs is supported.
15537 dlopen_self_static=$enable_dlopen_self_static
15539 # Compiler flag to prevent dynamic linking.
15540 link_static_flag=$lt_lt_prog_compiler_static_F77
15542 # Compiler flag to turn off builtin functions.
15543 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15545 # Compiler flag to allow reflexive dlopens.
15546 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15548 # Compiler flag to generate shared objects directly from archives.
15549 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15551 # Compiler flag to generate thread-safe objects.
15552 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15554 # Library versioning type.
15555 version_type=$version_type
15557 # Format of library name prefix.
15558 libname_spec=$lt_libname_spec
15560 # List of archive names. First name is the real one, the rest are links.
15561 # The last name is the one that the linker finds with -lNAME.
15562 library_names_spec=$lt_library_names_spec
15564 # The coded name of the library, if different from the real name.
15565 soname_spec=$lt_soname_spec
15567 # Commands used to build and install an old-style archive.
15569 old_archive_cmds=$lt_old_archive_cmds_F77
15570 old_postinstall_cmds=$lt_old_postinstall_cmds
15571 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15573 # Create an old-style archive from a shared archive.
15574 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15576 # Create a temporary old-style archive to link instead of a shared archive.
15577 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15579 # Commands used to build and install a shared archive.
15580 archive_cmds=$lt_archive_cmds_F77
15581 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15582 postinstall_cmds=$lt_postinstall_cmds
15583 postuninstall_cmds=$lt_postuninstall_cmds
15585 # Commands used to build a loadable module (assumed same as above if empty)
15586 module_cmds=$lt_module_cmds_F77
15587 module_expsym_cmds=$lt_module_expsym_cmds_F77
15589 # Commands to strip libraries.
15590 old_striplib=$lt_old_striplib
15591 striplib=$lt_striplib
15593 # Dependencies to place before the objects being linked to create a
15595 predep_objects=$lt_predep_objects_F77
15597 # Dependencies to place after the objects being linked to create a
15599 postdep_objects=$lt_postdep_objects_F77
15601 # Dependencies to place before the objects being linked to create a
15603 predeps=$lt_predeps_F77
15605 # Dependencies to place after the objects being linked to create a
15607 postdeps=$lt_postdeps_F77
15609 # The library search path used internally by the compiler when linking
15610 # a shared library.
15611 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15613 # Method to check whether dependent libraries are shared objects.
15614 deplibs_check_method=$lt_deplibs_check_method
15616 # Command to use when deplibs_check_method == file_magic.
15617 file_magic_cmd=$lt_file_magic_cmd
15619 # Flag that allows shared libraries with undefined symbols to be built.
15620 allow_undefined_flag=$lt_allow_undefined_flag_F77
15622 # Flag that forces no undefined symbols.
15623 no_undefined_flag=$lt_no_undefined_flag_F77
15625 # Commands used to finish a libtool library installation in a directory.
15626 finish_cmds=$lt_finish_cmds
15628 # Same as above, but a single script fragment to be evaled but not shown.
15629 finish_eval=$lt_finish_eval
15631 # Take the output of nm and produce a listing of raw symbols and C names.
15632 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15634 # Transform the output of nm in a proper C declaration
15635 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15637 # Transform the output of nm in a C name address pair
15638 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15640 # This is the shared library runtime path variable.
15641 runpath_var=$runpath_var
15643 # This is the shared library path variable.
15644 shlibpath_var=$shlibpath_var
15646 # Is shlibpath searched before the hard-coded library search path?
15647 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15649 # How to hardcode a shared library path into an executable.
15650 hardcode_action=$hardcode_action_F77
15652 # Whether we should hardcode library paths into libraries.
15653 hardcode_into_libs=$hardcode_into_libs
15655 # Flag to hardcode \$libdir into a binary during linking.
15656 # This must work even if \$libdir does not exist.
15657 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15659 # If ld is used when linking, flag to hardcode \$libdir into
15660 # a binary during linking. This must work even if \$libdir does
15662 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15664 # Whether we need a single -rpath flag with a separated argument.
15665 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15667 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15668 # resulting binary.
15669 hardcode_direct=$hardcode_direct_F77
15671 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15672 # resulting binary.
15673 hardcode_minus_L=$hardcode_minus_L_F77
15675 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15676 # the resulting binary.
15677 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15679 # Set to yes if building a shared library automatically hardcodes DIR into the library
15680 # and all subsequent libraries and executables linked against it.
15681 hardcode_automatic=$hardcode_automatic_F77
15683 # Variables whose values should be saved in libtool wrapper scripts and
15684 # restored at relink time.
15685 variables_saved_for_relink="$variables_saved_for_relink"
15687 # Whether libtool must link a program against all its dependency libraries.
15688 link_all_deplibs=$link_all_deplibs_F77
15690 # Compile-time system search path for libraries
15691 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15693 # Run-time system search path for libraries
15694 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15696 # Fix the shell variable \$srcfile for the compiler.
15697 fix_srcfile_path="$fix_srcfile_path_F77"
15699 # Set to yes if exported symbols are required.
15700 always_export_symbols=$always_export_symbols_F77
15702 # The commands to list exported symbols.
15703 export_symbols_cmds=$lt_export_symbols_cmds_F77
15705 # The commands to extract the exported symbol list from a shared archive.
15706 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15708 # Symbols that should not be listed in the preloaded symbols.
15709 exclude_expsyms=$lt_exclude_expsyms_F77
15711 # Symbols that must always be exported.
15712 include_expsyms=$lt_include_expsyms_F77
15714 # ### END LIBTOOL TAG CONFIG: $tagname
15720 # If there is no Makefile yet, we rely on a make rule to execute
15721 # `config.status --recheck' to rerun these tests and create the
15722 # libtool script then.
15723 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15724 if test -f "$ltmain_in"; then
15725 test -f Makefile && make "$ltmain"
15731 ac_cpp='$CPP $CPPFLAGS'
15732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15744 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15747 # Source file extension for Java test sources.
15750 # Object file extension for compiled Java test sources.
15754 # Code to be used in simple compile tests
15755 lt_simple_compile_test_code="class foo {}\n"
15757 # Code to be used in simple link tests
15758 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15760 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15762 # If no C compiler was specified, use CC.
15765 # If no C compiler flags were specified, use CFLAGS.
15766 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15768 # Allow CC to be a program name with arguments.
15772 # save warnings/boilerplate of simple test code
15773 ac_outfile=conftest.$ac_objext
15774 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15775 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15776 _lt_compiler_boilerplate=`cat conftest.err`
15779 ac_outfile=conftest.$ac_objext
15780 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15781 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15782 _lt_linker_boilerplate=`cat conftest.err`
15786 # Allow CC to be a program name with arguments.
15791 for cc_temp in $compiler""; do
15793 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15794 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15799 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15802 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15803 archive_cmds_need_lc_GCJ=no
15805 old_archive_cmds_GCJ=$old_archive_cmds
15808 lt_prog_compiler_no_builtin_flag_GCJ=
15810 if test "$GCC" = yes; then
15811 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15815 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15816 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15817 $as_echo_n "(cached) " >&6
15819 lt_cv_prog_compiler_rtti_exceptions=no
15820 ac_outfile=conftest.$ac_objext
15821 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15822 lt_compiler_flag="-fno-rtti -fno-exceptions"
15823 # Insert the option either (1) after the last *FLAGS variable, or
15824 # (2) before a word containing "conftest.", or (3) at the end.
15825 # Note that $ac_compile itself does not contain backslashes and begins
15826 # with a dollar sign (not a hyphen), so the echo should work correctly.
15827 # The option is referenced via a variable to avoid confusing sed.
15828 lt_compile=`echo "$ac_compile" | $SED \
15829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15831 -e 's:$: $lt_compiler_flag:'`
15832 (eval echo "\"\$as_me:15832: $lt_compile\"" >&5)
15833 (eval "$lt_compile" 2>conftest.err)
15835 cat conftest.err >&5
15836 echo "$as_me:15836: \$? = $ac_status" >&5
15837 if (exit $ac_status) && test -s "$ac_outfile"; then
15838 # The compiler can only warn and ignore the option if not recognized
15839 # So say no if there are warnings other than the usual output.
15840 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15842 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15843 lt_cv_prog_compiler_rtti_exceptions=yes
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15850 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15852 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15853 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15860 lt_prog_compiler_wl_GCJ=
15861 lt_prog_compiler_pic_GCJ=
15862 lt_prog_compiler_static_GCJ=
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15865 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15867 if test "$GCC" = yes; then
15868 lt_prog_compiler_wl_GCJ='-Wl,'
15869 lt_prog_compiler_static_GCJ='-static'
15873 # All AIX code is PIC.
15874 if test "$host_cpu" = ia64; then
15875 # AIX 5 now supports IA64 processor
15876 lt_prog_compiler_static_GCJ='-Bstatic'
15881 # FIXME: we need at least 68020 code to build shared libraries, but
15882 # adding the `-m68020' flag to GCC prevents building anything better,
15884 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15887 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15888 # PIC is the default for these OSes.
15891 mingw* | pw32* | os2*)
15892 # This hack is so that the source file can tell whether it is being
15893 # built for inclusion in a dll (and should export symbols for example).
15894 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15897 darwin* | rhapsody*)
15898 # PIC is the default on this platform
15899 # Common symbols not allowed in MH_DYLIB files
15900 lt_prog_compiler_pic_GCJ='-fno-common'
15904 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15905 # Instead, we relocate shared libraries at runtime.
15909 # Just because we use GCC doesn't mean we suddenly get shared libraries
15910 # on systems that don't support them.
15911 lt_prog_compiler_can_build_shared_GCJ=no
15916 if test -d /usr/nec; then
15917 lt_prog_compiler_pic_GCJ=-Kconform_pic
15922 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15923 # not for PA HP-UX.
15929 lt_prog_compiler_pic_GCJ='-fPIC'
15935 lt_prog_compiler_pic_GCJ='-fPIC'
15939 # PORTME Check for flag to pass linker flags through the system compiler.
15942 lt_prog_compiler_wl_GCJ='-Wl,'
15943 if test "$host_cpu" = ia64; then
15944 # AIX 5 now supports IA64 processor
15945 lt_prog_compiler_static_GCJ='-Bstatic'
15947 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15951 # PIC is the default on this platform
15952 # Common symbols not allowed in MH_DYLIB files
15953 case $cc_basename in
15955 lt_prog_compiler_pic_GCJ='-qnocommon'
15956 lt_prog_compiler_wl_GCJ='-Wl,'
15961 mingw* | pw32* | os2*)
15962 # This hack is so that the source file can tell whether it is being
15963 # built for inclusion in a dll (and should export symbols for example).
15964 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15967 hpux9* | hpux10* | hpux11*)
15968 lt_prog_compiler_wl_GCJ='-Wl,'
15969 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15970 # not for PA HP-UX.
15976 lt_prog_compiler_pic_GCJ='+Z'
15979 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15980 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15983 irix5* | irix6* | nonstopux*)
15984 lt_prog_compiler_wl_GCJ='-Wl,'
15985 # PIC (with -KPIC) is the default.
15986 lt_prog_compiler_static_GCJ='-non_shared'
15990 lt_prog_compiler_pic_GCJ='-KPIC'
15991 lt_prog_compiler_static_GCJ='-Bstatic'
15995 case $cc_basename in
15997 lt_prog_compiler_wl_GCJ='-Wl,'
15998 lt_prog_compiler_pic_GCJ='-KPIC'
15999 lt_prog_compiler_static_GCJ='-static'
16001 pgcc* | pgf77* | pgf90* | pgf95*)
16002 # Portland Group compilers (*not* the Pentium gcc compiler,
16003 # which looks to be a dead project)
16004 lt_prog_compiler_wl_GCJ='-Wl,'
16005 lt_prog_compiler_pic_GCJ='-fpic'
16006 lt_prog_compiler_static_GCJ='-Bstatic'
16009 lt_prog_compiler_wl_GCJ='-Wl,'
16010 # All Alpha code is PIC.
16011 lt_prog_compiler_static_GCJ='-non_shared'
16016 osf3* | osf4* | osf5*)
16017 lt_prog_compiler_wl_GCJ='-Wl,'
16018 # All OSF/1 code is PIC.
16019 lt_prog_compiler_static_GCJ='-non_shared'
16023 lt_prog_compiler_pic_GCJ='-KPIC'
16024 lt_prog_compiler_static_GCJ='-Bstatic'
16025 case $cc_basename in
16026 f77* | f90* | f95*)
16027 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16029 lt_prog_compiler_wl_GCJ='-Wl,';;
16034 lt_prog_compiler_wl_GCJ='-Qoption ld '
16035 lt_prog_compiler_pic_GCJ='-PIC'
16036 lt_prog_compiler_static_GCJ='-Bstatic'
16039 sysv4 | sysv4.2uw2* | sysv4.3*)
16040 lt_prog_compiler_wl_GCJ='-Wl,'
16041 lt_prog_compiler_pic_GCJ='-KPIC'
16042 lt_prog_compiler_static_GCJ='-Bstatic'
16046 if test -d /usr/nec ;then
16047 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16048 lt_prog_compiler_static_GCJ='-Bstatic'
16052 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16053 lt_prog_compiler_wl_GCJ='-Wl,'
16054 lt_prog_compiler_pic_GCJ='-KPIC'
16055 lt_prog_compiler_static_GCJ='-Bstatic'
16059 lt_prog_compiler_wl_GCJ='-Wl,'
16060 lt_prog_compiler_can_build_shared_GCJ=no
16064 lt_prog_compiler_pic_GCJ='-pic'
16065 lt_prog_compiler_static_GCJ='-Bstatic'
16069 lt_prog_compiler_can_build_shared_GCJ=no
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16075 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16078 # Check to make sure the PIC flag actually works.
16080 if test -n "$lt_prog_compiler_pic_GCJ"; then
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16083 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16084 if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
16085 $as_echo_n "(cached) " >&6
16087 lt_prog_compiler_pic_works_GCJ=no
16088 ac_outfile=conftest.$ac_objext
16089 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16090 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16091 # Insert the option either (1) after the last *FLAGS variable, or
16092 # (2) before a word containing "conftest.", or (3) at the end.
16093 # Note that $ac_compile itself does not contain backslashes and begins
16094 # with a dollar sign (not a hyphen), so the echo should work correctly.
16095 # The option is referenced via a variable to avoid confusing sed.
16096 lt_compile=`echo "$ac_compile" | $SED \
16097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16099 -e 's:$: $lt_compiler_flag:'`
16100 (eval echo "\"\$as_me:16100: $lt_compile\"" >&5)
16101 (eval "$lt_compile" 2>conftest.err)
16103 cat conftest.err >&5
16104 echo "$as_me:16104: \$? = $ac_status" >&5
16105 if (exit $ac_status) && test -s "$ac_outfile"; then
16106 # The compiler can only warn and ignore the option if not recognized
16107 # So say no if there are warnings other than the usual output.
16108 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16110 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16111 lt_prog_compiler_pic_works_GCJ=yes
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
16118 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
16120 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16121 case $lt_prog_compiler_pic_GCJ in
16123 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16126 lt_prog_compiler_pic_GCJ=
16127 lt_prog_compiler_can_build_shared_GCJ=no
16132 # For platforms which do not support PIC, -DPIC is meaningless:
16134 lt_prog_compiler_pic_GCJ=
16137 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16142 # Check to make sure the static flag actually works.
16144 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16146 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16147 if ${lt_prog_compiler_static_works_GCJ+:} false; then :
16148 $as_echo_n "(cached) " >&6
16150 lt_prog_compiler_static_works_GCJ=no
16151 save_LDFLAGS="$LDFLAGS"
16152 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16153 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16154 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16155 # The linker can only warn and ignore the option if not recognized
16156 # So say no if there are warnings
16157 if test -s conftest.err; then
16158 # Append any errors to the config.log.
16159 cat conftest.err 1>&5
16160 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16162 if diff conftest.exp conftest.er2 >/dev/null; then
16163 lt_prog_compiler_static_works_GCJ=yes
16166 lt_prog_compiler_static_works_GCJ=yes
16170 LDFLAGS="$save_LDFLAGS"
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_GCJ" >&5
16174 $as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
16176 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16179 lt_prog_compiler_static_GCJ=
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16184 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16185 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16186 $as_echo_n "(cached) " >&6
16188 lt_cv_prog_compiler_c_o_GCJ=no
16189 $rm -r conftest 2>/dev/null
16193 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16195 lt_compiler_flag="-o out/conftest2.$ac_objext"
16196 # Insert the option either (1) after the last *FLAGS variable, or
16197 # (2) before a word containing "conftest.", or (3) at the end.
16198 # Note that $ac_compile itself does not contain backslashes and begins
16199 # with a dollar sign (not a hyphen), so the echo should work correctly.
16200 lt_compile=`echo "$ac_compile" | $SED \
16201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16203 -e 's:$: $lt_compiler_flag:'`
16204 (eval echo "\"\$as_me:16204: $lt_compile\"" >&5)
16205 (eval "$lt_compile" 2>out/conftest.err)
16207 cat out/conftest.err >&5
16208 echo "$as_me:16208: \$? = $ac_status" >&5
16209 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16211 # The compiler can only warn and ignore the option if not recognized
16212 # So say no if there are warnings
16213 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16214 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16215 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16216 lt_cv_prog_compiler_c_o_GCJ=yes
16221 # SGI C++ compiler will create directory out/ii_files/ for
16222 # template instantiation
16223 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16224 $rm out/* && rmdir out
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16231 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16234 hard_links="nottested"
16235 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16236 # do not overwrite the value of need_locks provided by the user
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16238 $as_echo_n "checking if we can lock with hard links... " >&6; }
16241 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16243 ln conftest.a conftest.b 2>&5 || hard_links=no
16244 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16246 $as_echo "$hard_links" >&6; }
16247 if test "$hard_links" = no; then
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16249 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16257 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16260 allow_undefined_flag_GCJ=
16261 enable_shared_with_static_runtimes_GCJ=no
16263 archive_expsym_cmds_GCJ=
16264 old_archive_From_new_cmds_GCJ=
16265 old_archive_from_expsyms_cmds_GCJ=
16266 export_dynamic_flag_spec_GCJ=
16267 whole_archive_flag_spec_GCJ=
16268 thread_safe_flag_spec_GCJ=
16269 hardcode_libdir_flag_spec_GCJ=
16270 hardcode_libdir_flag_spec_ld_GCJ=
16271 hardcode_libdir_separator_GCJ=
16272 hardcode_direct_GCJ=no
16273 hardcode_minus_L_GCJ=no
16274 hardcode_shlibpath_var_GCJ=unsupported
16275 link_all_deplibs_GCJ=unknown
16276 hardcode_automatic_GCJ=no
16278 module_expsym_cmds_GCJ=
16279 always_export_symbols_GCJ=no
16280 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16281 # include_expsyms should be a list of space-separated symbols to be *always*
16282 # included in the symbol list
16283 include_expsyms_GCJ=
16284 # exclude_expsyms can be an extended regexp of symbols to exclude
16285 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16286 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16287 # as well as any symbol that contains `d'.
16288 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16289 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16290 # platforms (ab)use it in PIC code, but their linkers get confused if
16291 # the symbol is explicitly referenced. Since portable code cannot
16292 # rely on this symbol name, it's probably fine to never include it in
16293 # preloaded symbol tables.
16294 extract_expsyms_cmds=
16295 # Just being paranoid about ensuring that cc_basename is set.
16296 for cc_temp in $compiler""; do
16298 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16299 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16304 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16307 cygwin* | mingw* | pw32*)
16308 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16309 # When not using gcc, we currently assume that we are using
16310 # Microsoft Visual C++.
16311 if test "$GCC" != yes; then
16316 # we just hope/assume this is gcc and not c89 (= MSVC++)
16325 if test "$with_gnu_ld" = yes; then
16326 # If archive_cmds runs LD, not CC, wlarc should be empty
16329 # Set some defaults for GNU ld with shared library support. These
16330 # are reset later if shared libraries are not supported. Putting them
16331 # here allows them to be overridden if necessary.
16332 runpath_var=LD_RUN_PATH
16333 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16334 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16335 # ancient GNU ld didn't support --whole-archive et. al.
16336 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16337 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16339 whole_archive_flag_spec_GCJ=
16341 supports_anon_versioning=no
16342 case `$LD -v 2>/dev/null` in
16343 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16344 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16345 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16346 *\ 2.11.*) ;; # other 2.11 versions
16347 *) supports_anon_versioning=yes ;;
16350 # See if GNU ld supports shared libraries.
16352 aix3* | aix4* | aix5*)
16353 # On AIX/PPC, the GNU linker is very broken
16354 if test "$host_cpu" != ia64; then
16358 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16359 *** to be unable to reliably create shared libraries on AIX.
16360 *** Therefore, libtool is disabling shared libraries support. If you
16361 *** really care for shared libraries, you may want to modify your PATH
16362 *** so that a non-GNU linker is found, and then restart.
16369 archive_cmds_GCJ='$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)'
16370 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16371 hardcode_minus_L_GCJ=yes
16373 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16374 # that the semantics of dynamic libraries on AmigaOS, at least up
16375 # to version 4, is to share data among multiple programs linked
16376 # with the same dynamic library. Since this doesn't match the
16377 # behavior of shared libraries on other platforms, we can't use
16383 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16384 allow_undefined_flag_GCJ=unsupported
16385 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16386 # support --undefined. This deserves some investigation. FIXME
16387 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16393 cygwin* | mingw* | pw32*)
16394 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16395 # as there is no search path for DLLs.
16396 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16397 allow_undefined_flag_GCJ=unsupported
16398 always_export_symbols_GCJ=no
16399 enable_shared_with_static_runtimes_GCJ=yes
16400 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16402 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16403 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16404 # If the export-symbols file already is a .def file (1st line
16405 # is EXPORTS), use it as is; otherwise, prepend...
16406 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16407 cp $export_symbols $output_objdir/$soname.def;
16409 echo EXPORTS > $output_objdir/$soname.def;
16410 cat $export_symbols >> $output_objdir/$soname.def;
16412 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16419 hardcode_direct_GCJ=no
16420 hardcode_shlibpath_var_GCJ=no
16421 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16422 export_dynamic_flag_spec_GCJ='${wl}-E'
16423 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16424 # Instead, shared libraries are loaded at an image base (0x10000000 by
16425 # default) and relocated if they conflict, which is a slow very memory
16426 # consuming and fragmenting process. To avoid this, we pick a random,
16427 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16428 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16429 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16430 archive_expsym_cmds_GCJ='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'
16434 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16436 case $cc_basename,$host_cpu in
16437 pgcc*) # Portland Group C compiler
16438 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16439 tmp_addflag=' $pic_flag'
16441 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16442 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16443 tmp_addflag=' $pic_flag -Mnomain' ;;
16444 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16445 tmp_addflag=' -i_dynamic' ;;
16446 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16447 tmp_addflag=' -i_dynamic -nofor_main' ;;
16448 ifc* | ifort*) # Intel Fortran compiler
16449 tmp_addflag=' -nofor_main' ;;
16451 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16453 if test $supports_anon_versioning = yes; then
16454 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16455 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16456 $echo "local: *; };" >> $output_objdir/$libname.ver~
16457 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16459 link_all_deplibs_GCJ=no
16465 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16466 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16467 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16470 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16471 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16476 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16480 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16481 *** create shared libraries on Solaris systems. Therefore, libtool
16482 *** is disabling shared libraries support. We urge you to upgrade GNU
16483 *** binutils to release 2.9.1 or newer. Another option is to modify
16484 *** your PATH or compiler configuration so that the native linker is
16485 *** used, and then restart.
16488 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16489 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16490 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16496 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16497 case `$LD -v 2>&1` in
16498 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16502 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16503 *** reliably create shared libraries on SCO systems. Therefore, libtool
16504 *** is disabling shared libraries support. We urge you to upgrade GNU
16505 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16506 *** your PATH or compiler configuration so that the native linker is
16507 *** used, and then restart.
16512 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16513 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16514 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16515 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16524 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16526 hardcode_direct_GCJ=yes
16527 hardcode_shlibpath_var_GCJ=no
16531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16532 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16533 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16540 if test "$ld_shlibs_GCJ" = no; then
16542 hardcode_libdir_flag_spec_GCJ=
16543 export_dynamic_flag_spec_GCJ=
16544 whole_archive_flag_spec_GCJ=
16547 # PORTME fill in a description of your system's linker (not GNU ld)
16550 allow_undefined_flag_GCJ=unsupported
16551 always_export_symbols_GCJ=yes
16552 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16553 # Note: this linker hardcodes the directories in LIBPATH if there
16554 # are no directories specified by -L.
16555 hardcode_minus_L_GCJ=yes
16556 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16557 # Neither direct hardcoding nor static linking is supported with a
16559 hardcode_direct_GCJ=unsupported
16564 if test "$host_cpu" = ia64; then
16565 # On IA64, the linker does run time linking by default, so we don't
16566 # have to do anything special.
16567 aix_use_runtimelinking=no
16568 exp_sym_flag='-Bexport'
16571 # If we're using GNU nm, then we don't want the "-C" option.
16572 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16573 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16574 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16576 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16578 aix_use_runtimelinking=no
16580 # Test if we are trying to use run time linking or normal
16581 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16582 # need to do runtime linking.
16583 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16584 for ld_flag in $LDFLAGS; do
16585 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16586 aix_use_runtimelinking=yes
16593 exp_sym_flag='-bexport'
16594 no_entry_flag='-bnoentry'
16597 # When large executables or shared objects are built, AIX ld can
16598 # have problems creating the table of contents. If linking a library
16599 # or program results in "error TOC overflow" add -mminimal-toc to
16600 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16601 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16603 archive_cmds_GCJ=''
16604 hardcode_direct_GCJ=yes
16605 hardcode_libdir_separator_GCJ=':'
16606 link_all_deplibs_GCJ=yes
16608 if test "$GCC" = yes; then
16609 case $host_os in aix4.[012]|aix4.[012].*)
16610 # We only want to do this on AIX 4.2 and lower, the check
16611 # below for broken collect2 doesn't work under 4.3+
16612 collect2name=`${CC} -print-prog-name=collect2`
16613 if test -f "$collect2name" && \
16614 strings "$collect2name" | grep resolve_lib_name >/dev/null
16616 # We have reworked collect2
16617 hardcode_direct_GCJ=yes
16619 # We have old collect2
16620 hardcode_direct_GCJ=unsupported
16621 # It fails to find uninstalled libraries when the uninstalled
16622 # path is not listed in the libpath. Setting hardcode_minus_L
16623 # to unsupported forces relinking
16624 hardcode_minus_L_GCJ=yes
16625 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16626 hardcode_libdir_separator_GCJ=
16630 shared_flag='-shared'
16631 if test "$aix_use_runtimelinking" = yes; then
16632 shared_flag="$shared_flag "'${wl}-G'
16636 if test "$host_cpu" = ia64; then
16637 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16638 # chokes on -Wl,-G. The following line is correct:
16641 if test "$aix_use_runtimelinking" = yes; then
16642 shared_flag='${wl}-G'
16644 shared_flag='${wl}-bM:SRE'
16649 # It seems that -bexpall does not export symbols beginning with
16650 # underscore (_), so it is better to generate a list of symbols to export.
16651 always_export_symbols_GCJ=yes
16652 if test "$aix_use_runtimelinking" = yes; then
16653 # Warning - without using the other runtime loading flags (-brtl),
16654 # -berok will link without error, but may produce a broken library.
16655 allow_undefined_flag_GCJ='-berok'
16656 # Determine the default libpath from the value encoded in an empty executable.
16657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16658 /* end confdefs.h. */
16668 if ac_fn_c_try_link "$LINENO"; then :
16670 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16672 # Check for a 64-bit object if we didn't find anything.
16673 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16676 rm -f core conftest.err conftest.$ac_objext \
16677 conftest$ac_exeext conftest.$ac_ext
16678 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16680 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16681 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16683 if test "$host_cpu" = ia64; then
16684 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16685 allow_undefined_flag_GCJ="-z nodefs"
16686 archive_expsym_cmds_GCJ="\$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"
16688 # Determine the default libpath from the value encoded in an empty executable.
16689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16690 /* end confdefs.h. */
16700 if ac_fn_c_try_link "$LINENO"; then :
16702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16704 # Check for a 64-bit object if we didn't find anything.
16705 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16708 rm -f core conftest.err conftest.$ac_objext \
16709 conftest$ac_exeext conftest.$ac_ext
16710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16712 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16713 # Warning - without using the other run time loading flags,
16714 # -berok will link without error, but may produce a broken library.
16715 no_undefined_flag_GCJ=' ${wl}-bernotok'
16716 allow_undefined_flag_GCJ=' ${wl}-berok'
16717 # Exported symbols can be pulled into shared objects from archives
16718 whole_archive_flag_spec_GCJ='$convenience'
16719 archive_cmds_need_lc_GCJ=yes
16720 # This is similar to how AIX traditionally builds its shared libraries.
16721 archive_expsym_cmds_GCJ="\$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'
16727 archive_cmds_GCJ='$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)'
16728 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16729 hardcode_minus_L_GCJ=yes
16730 # see comment about different semantics on the GNU ld section
16735 export_dynamic_flag_spec_GCJ=-rdynamic
16738 cygwin* | mingw* | pw32*)
16739 # When not using gcc, we currently assume that we are using
16740 # Microsoft Visual C++.
16741 # hardcode_libdir_flag_spec is actually meaningless, as there is
16742 # no search path for DLLs.
16743 hardcode_libdir_flag_spec_GCJ=' '
16744 allow_undefined_flag_GCJ=unsupported
16745 # Tell ltmain to make .lib files, not .a files.
16747 # Tell ltmain to make .dll files, not .so files.
16749 # FIXME: Setting linknames here is a bad hack.
16750 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16751 # The linker will automatically build a .lib file if we build a DLL.
16752 old_archive_From_new_cmds_GCJ='true'
16753 # FIXME: Should let the user specify the lib program.
16754 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16755 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16756 enable_shared_with_static_runtimes_GCJ=yes
16759 darwin* | rhapsody*)
16761 rhapsody* | darwin1.[012])
16762 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16765 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16766 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16768 case ${MACOSX_DEPLOYMENT_TARGET} in
16770 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16773 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16779 archive_cmds_need_lc_GCJ=no
16780 hardcode_direct_GCJ=no
16781 hardcode_automatic_GCJ=yes
16782 hardcode_shlibpath_var_GCJ=unsupported
16783 whole_archive_flag_spec_GCJ=''
16784 link_all_deplibs_GCJ=yes
16785 if test "$GCC" = yes ; then
16786 output_verbose_link_cmd='echo'
16787 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16788 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16789 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16790 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16791 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16793 case $cc_basename in
16795 output_verbose_link_cmd='echo'
16796 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16797 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16798 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16799 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16800 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16810 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16811 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16812 hardcode_shlibpath_var_GCJ=no
16819 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16820 # support. Future versions do this automatically, but an explicit c++rt0.o
16821 # does not break anything, and helps significantly (at the cost of a little
16824 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16825 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16826 hardcode_direct_GCJ=yes
16827 hardcode_shlibpath_var_GCJ=no
16830 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16832 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16833 hardcode_direct_GCJ=yes
16834 hardcode_minus_L_GCJ=yes
16835 hardcode_shlibpath_var_GCJ=no
16838 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16839 freebsd* | dragonfly*)
16840 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16841 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16842 hardcode_direct_GCJ=yes
16843 hardcode_shlibpath_var_GCJ=no
16846 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
16848 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16849 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16850 hardcode_direct_GCJ=yes
16851 hardcode_shlibpath_var_GCJ=no
16852 link_all_deplibs_GCJ=no
16856 if test "$GCC" = yes; then
16857 archive_cmds_GCJ='$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'
16859 archive_cmds_GCJ='$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'
16861 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16862 hardcode_libdir_separator_GCJ=:
16863 hardcode_direct_GCJ=yes
16865 # hardcode_minus_L: Not really in the search PATH,
16866 # but as the default location of the library.
16867 hardcode_minus_L_GCJ=yes
16868 export_dynamic_flag_spec_GCJ='${wl}-E'
16872 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16873 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16875 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16877 if test "$with_gnu_ld" = no; then
16878 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16879 hardcode_libdir_separator_GCJ=:
16881 hardcode_direct_GCJ=yes
16882 export_dynamic_flag_spec_GCJ='${wl}-E'
16884 # hardcode_minus_L: Not really in the search PATH,
16885 # but as the default location of the library.
16886 hardcode_minus_L_GCJ=yes
16891 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16894 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16897 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16900 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16906 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16909 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16912 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16916 if test "$with_gnu_ld" = no; then
16917 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16918 hardcode_libdir_separator_GCJ=:
16922 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16923 hardcode_direct_GCJ=no
16924 hardcode_shlibpath_var_GCJ=no
16927 hardcode_direct_GCJ=yes
16928 export_dynamic_flag_spec_GCJ='${wl}-E'
16930 # hardcode_minus_L: Not really in the search PATH,
16931 # but as the default location of the library.
16932 hardcode_minus_L_GCJ=yes
16938 irix5* | irix6* | nonstopux*)
16939 if test "$GCC" = yes; then
16940 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16942 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16943 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16945 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16946 hardcode_libdir_separator_GCJ=:
16947 link_all_deplibs_GCJ=yes
16950 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16951 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16952 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16954 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16956 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16957 hardcode_direct_GCJ=yes
16958 hardcode_shlibpath_var_GCJ=no
16962 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16963 hardcode_direct_GCJ=yes
16964 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16965 hardcode_libdir_separator_GCJ=:
16966 hardcode_shlibpath_var_GCJ=no
16970 hardcode_direct_GCJ=yes
16971 hardcode_shlibpath_var_GCJ=no
16972 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16973 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16974 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16975 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16976 export_dynamic_flag_spec_GCJ='${wl}-E'
16979 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16980 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16981 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16984 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16985 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16992 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16993 hardcode_minus_L_GCJ=yes
16994 allow_undefined_flag_GCJ=unsupported
16995 archive_cmds_GCJ='$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'
16996 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17000 if test "$GCC" = yes; then
17001 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17002 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17004 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17005 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17007 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17008 hardcode_libdir_separator_GCJ=:
17011 osf4* | osf5*) # as osf3* with the addition of -msym flag
17012 if test "$GCC" = yes; then
17013 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17014 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17015 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17017 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17018 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17019 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17020 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17022 # Both c and cxx compiler support -rpath directly
17023 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17025 hardcode_libdir_separator_GCJ=:
17029 no_undefined_flag_GCJ=' -z text'
17030 if test "$GCC" = yes; then
17032 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17033 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17034 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17037 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17038 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17039 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17041 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17042 hardcode_shlibpath_var_GCJ=no
17044 solaris2.[0-5] | solaris2.[0-5].*) ;;
17046 # The compiler driver will combine linker options so we
17047 # cannot just pass the convience library names through
17048 # without $wl, iff we do not link with $LD.
17049 # Luckily, gcc supports the same syntax we need for Sun Studio.
17050 # Supported since Solaris 2.6 (maybe 2.5.1?)
17053 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17055 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17058 link_all_deplibs_GCJ=yes
17062 if test "x$host_vendor" = xsequent; then
17063 # Use $CC to link under sequent, because it throws in some extra .o
17064 # files that make .init and .fini sections work.
17065 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17067 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17069 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17070 hardcode_direct_GCJ=yes
17071 hardcode_minus_L_GCJ=yes
17072 hardcode_shlibpath_var_GCJ=no
17076 case $host_vendor in
17078 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17079 hardcode_direct_GCJ=yes # is this really true???
17082 ## LD is ld it makes a PLAMLIB
17083 ## CC just makes a GrossModule.
17084 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17085 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17086 hardcode_direct_GCJ=no
17089 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17090 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17093 runpath_var='LD_RUN_PATH'
17094 hardcode_shlibpath_var_GCJ=no
17098 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17099 hardcode_shlibpath_var_GCJ=no
17100 export_dynamic_flag_spec_GCJ='-Bexport'
17104 if test -d /usr/nec; then
17105 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17106 hardcode_shlibpath_var_GCJ=no
17107 runpath_var=LD_RUN_PATH
17108 hardcode_runpath_var=yes
17113 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17114 no_undefined_flag_GCJ='${wl}-z,text'
17115 archive_cmds_need_lc_GCJ=no
17116 hardcode_shlibpath_var_GCJ=no
17117 runpath_var='LD_RUN_PATH'
17119 if test "$GCC" = yes; then
17120 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17121 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17123 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17124 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17128 sysv5* | sco3.2v5* | sco5v6*)
17129 # Note: We can NOT use -z defs as we might desire, because we do not
17130 # link with -lc, and that would cause any symbols used from libc to
17131 # always be unresolved, which means just about no library would
17132 # ever link correctly. If we're not using GNU ld we use -z text
17133 # though, which does catch some bad symbols but isn't as heavy-handed
17135 no_undefined_flag_GCJ='${wl}-z,text'
17136 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17137 archive_cmds_need_lc_GCJ=no
17138 hardcode_shlibpath_var_GCJ=no
17139 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17140 hardcode_libdir_separator_GCJ=':'
17141 link_all_deplibs_GCJ=yes
17142 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17143 runpath_var='LD_RUN_PATH'
17145 if test "$GCC" = yes; then
17146 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17147 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17149 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17150 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17155 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17156 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17157 hardcode_shlibpath_var_GCJ=no
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17167 $as_echo "$ld_shlibs_GCJ" >&6; }
17168 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17171 # Do we need to explicitly link libc?
17173 case "x$archive_cmds_need_lc_GCJ" in
17175 # Assume -lc should be added
17176 archive_cmds_need_lc_GCJ=yes
17178 if test "$enable_shared" = yes && test "$GCC" = yes; then
17179 case $archive_cmds_GCJ in
17181 # FIXME: we may have to deal with multi-command sequences.
17184 # Test whether the compiler implicitly links with -lc since on some
17185 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17186 # to ld, don't add -lc before -lgcc.
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17188 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17190 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17193 (eval $ac_compile) 2>&5
17195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17196 test $ac_status = 0; } 2>conftest.err; then
17199 libobjs=conftest.$ac_objext
17201 wl=$lt_prog_compiler_wl_GCJ
17202 pic_flag=$lt_prog_compiler_pic_GCJ
17208 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17209 allow_undefined_flag_GCJ=
17210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17211 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17214 test $ac_status = 0; }
17216 archive_cmds_need_lc_GCJ=no
17218 archive_cmds_need_lc_GCJ=yes
17220 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17222 cat conftest.err 1>&5
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17226 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17234 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17235 library_names_spec=
17236 libname_spec='lib$name'
17240 postuninstall_cmds=
17244 shlibpath_overrides_runpath=unknown
17246 dynamic_linker="$host_os ld.so"
17247 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17248 if test "$GCC" = yes; then
17249 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17250 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17251 # if the path contains ";" then we assume it to be the separator
17252 # otherwise default to the standard path separator (i.e. ":") - it is
17253 # assumed that no part of a normal pathname contains ";" but that should
17254 # okay in the real world where ";" in dirpaths is itself problematic.
17255 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17257 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17260 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17262 need_lib_prefix=unknown
17263 hardcode_into_libs=no
17265 # when you set need_version to no, make sure it does not cause -set_version
17266 # flags to be left without arguments
17267 need_version=unknown
17272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17273 shlibpath_var=LIBPATH
17275 # AIX 3 has no versioning support, so we append a major version to the name.
17276 soname_spec='${libname}${release}${shared_ext}$major'
17283 hardcode_into_libs=yes
17284 if test "$host_cpu" = ia64; then
17285 # AIX 5 supports IA64
17286 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17287 shlibpath_var=LD_LIBRARY_PATH
17289 # With GCC up to 2.95.x, collect2 would create an import file
17290 # for dependence libraries. The import file would start with
17291 # the line `#! .'. This would cause the generated library to
17292 # depend on `.', always an invalid library. This was fixed in
17293 # development snapshots of GCC prior to 3.0.
17295 aix4 | aix4.[01] | aix4.[01].*)
17296 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17298 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17301 can_build_shared=no
17305 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17306 # soname into executable. Probably we can add versioning support to
17307 # collect2, so additional links can be useful in future.
17308 if test "$aix_use_runtimelinking" = yes; then
17309 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17310 # instead of lib<name>.a to let people know that these are not
17311 # typical AIX shared libraries.
17312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17314 # We preserve .a as extension for shared libraries through AIX4.2
17315 # and later when we are not doing run time linking.
17316 library_names_spec='${libname}${release}.a $libname.a'
17317 soname_spec='${libname}${release}${shared_ext}$major'
17319 shlibpath_var=LIBPATH
17324 library_names_spec='$libname.ixlibrary $libname.a'
17325 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17326 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'
17330 library_names_spec='${libname}${shared_ext}'
17331 dynamic_linker="$host_os ld.so"
17332 shlibpath_var=LIBRARY_PATH
17338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17339 soname_spec='${libname}${release}${shared_ext}$major'
17340 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17341 shlibpath_var=LD_LIBRARY_PATH
17342 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17343 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17344 # the default ld.so.conf also contains /usr/contrib/lib and
17345 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17346 # libtool to hard-code these into programs
17349 cygwin* | mingw* | pw32*)
17350 version_type=windows
17355 case $GCC,$host_os in
17356 yes,cygwin* | yes,mingw* | yes,pw32*)
17357 library_names_spec='$libname.dll.a'
17358 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17359 postinstall_cmds='base_file=`basename \${file}`~
17360 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17361 dldir=$destdir/`dirname \$dlpath`~
17362 test -d \$dldir || mkdir -p \$dldir~
17363 $install_prog $dir/$dlname \$dldir/$dlname~
17364 chmod a+x \$dldir/$dlname'
17365 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17366 dlpath=$dir/\$dldll~
17368 shlibpath_overrides_runpath=yes
17372 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17373 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17374 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17377 # MinGW DLLs use traditional 'lib' prefix
17378 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17379 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17380 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17381 # It is most probably a Windows format PATH printed by
17382 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17383 # path with ; separators, and with drive letters. We can handle the
17384 # drive letters (cygwin fileutils understands them), so leave them,
17385 # especially as we might pass files found there to a mingw objdump,
17386 # which wouldn't understand a cygwinified path. Ahh.
17387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17393 # pw32 DLLs use 'pw' prefix rather than 'lib'
17394 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17400 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17403 dynamic_linker='Win32 ld.exe'
17404 # FIXME: first we should search . and the directory the executable is in
17408 darwin* | rhapsody*)
17409 dynamic_linker="$host_os dyld"
17410 version_type=darwin
17413 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17414 soname_spec='${libname}${release}${major}$shared_ext'
17415 shlibpath_overrides_runpath=yes
17416 shlibpath_var=DYLD_LIBRARY_PATH
17417 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17418 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17419 if test "$GCC" = yes; then
17420 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17422 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17424 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17432 soname_spec='${libname}${release}${shared_ext}$major'
17433 shlibpath_var=LD_LIBRARY_PATH
17444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17445 soname_spec='${libname}${release}${shared_ext}$major'
17446 shlibpath_var=LD_LIBRARY_PATH
17447 shlibpath_overrides_runpath=no
17448 hardcode_into_libs=yes
17449 dynamic_linker='GNU ld.so'
17452 freebsd* | dragonfly*)
17453 # DragonFly does not have aout. When/if they implement a new
17454 # versioning mechanism, adjust this.
17455 if test -x /usr/bin/objformat; then
17456 objformat=`/usr/bin/objformat`
17459 freebsd[123]*) objformat=aout ;;
17460 *) objformat=elf ;;
17463 version_type=freebsd-$objformat
17464 case $version_type in
17466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17475 shlibpath_var=LD_LIBRARY_PATH
17478 shlibpath_overrides_runpath=yes
17480 freebsd3.[01]* | freebsdelf3.[01]*)
17481 shlibpath_overrides_runpath=yes
17482 hardcode_into_libs=yes
17484 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17485 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17486 shlibpath_overrides_runpath=no
17487 hardcode_into_libs=yes
17489 freebsd*) # from 4.6 on
17490 shlibpath_overrides_runpath=yes
17491 hardcode_into_libs=yes
17500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17501 soname_spec='${libname}${release}${shared_ext}$major'
17502 shlibpath_var=LD_LIBRARY_PATH
17503 hardcode_into_libs=yes
17506 hpux9* | hpux10* | hpux11*)
17507 # Give a soname corresponding to the major version so that dld.sl refuses to
17508 # link against other versions.
17515 hardcode_into_libs=yes
17516 dynamic_linker="$host_os dld.so"
17517 shlibpath_var=LD_LIBRARY_PATH
17518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17520 soname_spec='${libname}${release}${shared_ext}$major'
17521 if test "X$HPUX_IA64_MODE" = X32; then
17522 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17524 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17526 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17530 hardcode_into_libs=yes
17531 dynamic_linker="$host_os dld.sl"
17532 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17533 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17535 soname_spec='${libname}${release}${shared_ext}$major'
17536 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17541 dynamic_linker="$host_os dld.sl"
17542 shlibpath_var=SHLIB_PATH
17543 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17545 soname_spec='${libname}${release}${shared_ext}$major'
17548 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17549 postinstall_cmds='chmod 555 $lib'
17556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17557 soname_spec='${libname}${release}${shared_ext}$major'
17558 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17559 shlibpath_var=LD_LIBRARY_PATH
17560 shlibpath_overrides_runpath=no
17561 hardcode_into_libs=yes
17564 irix5* | irix6* | nonstopux*)
17566 nonstopux*) version_type=nonstopux ;;
17568 if test "$lt_cv_prog_gnu_ld" = yes; then
17576 soname_spec='${libname}${release}${shared_ext}$major'
17577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17579 irix5* | nonstopux*)
17580 libsuff= shlibsuff=
17583 case $LD in # libtool.m4 will add one of these switches to LD
17584 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17585 libsuff= shlibsuff= libmagic=32-bit;;
17586 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17587 libsuff=32 shlibsuff=N32 libmagic=N32;;
17588 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17589 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17590 *) libsuff= shlibsuff= libmagic=never-match;;
17594 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17595 shlibpath_overrides_runpath=no
17596 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17597 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17598 hardcode_into_libs=yes
17601 # No shared lib support for Linux oldld, aout, or coff.
17602 linux*oldld* | linux*aout* | linux*coff*)
17606 # This must be Linux ELF.
17611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17612 soname_spec='${libname}${release}${shared_ext}$major'
17613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17614 shlibpath_var=LD_LIBRARY_PATH
17615 shlibpath_overrides_runpath=no
17616 # This implies no fast_install, which is unacceptable.
17617 # Some rework will be needed to allow for fast_install
17618 # before this can be enabled.
17619 hardcode_into_libs=yes
17621 # Append ld.so.conf contents to the search path
17622 if test -f /etc/ld.so.conf; then
17623 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17624 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17627 # We used to test for /lib/ld.so.1 and disable shared libraries on
17628 # powerpc, because MkLinux only supported shared libraries with the
17629 # GNU dynamic linker. Since this was broken with cross compilers,
17630 # most powerpc-linux boxes support dynamic linking these days and
17631 # people can always --disable-shared, the test was removed, and we
17632 # assume the GNU/Linux dynamic linker is in use.
17633 dynamic_linker='GNU/Linux ld.so'
17640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17641 soname_spec='${libname}${release}${shared_ext}$major'
17642 shlibpath_var=LD_LIBRARY_PATH
17643 shlibpath_overrides_runpath=no
17644 hardcode_into_libs=yes
17645 dynamic_linker='NetBSD ld.elf_so'
17652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17653 soname_spec='${libname}${release}${shared_ext}$major'
17654 shlibpath_var=LD_LIBRARY_PATH
17655 shlibpath_overrides_runpath=no
17656 hardcode_into_libs=yes
17657 dynamic_linker='GNU ld.so'
17664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17667 dynamic_linker='NetBSD (a.out) ld.so'
17669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17670 soname_spec='${libname}${release}${shared_ext}$major'
17671 dynamic_linker='NetBSD ld.elf_so'
17673 shlibpath_var=LD_LIBRARY_PATH
17674 shlibpath_overrides_runpath=yes
17675 hardcode_into_libs=yes
17680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17681 shlibpath_var=LD_LIBRARY_PATH
17682 shlibpath_overrides_runpath=yes
17689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17690 soname_spec='${libname}${release}${shared_ext}$major'
17691 shlibpath_var=LD_LIBRARY_PATH
17692 shlibpath_overrides_runpath=yes
17697 sys_lib_dlsearch_path_spec="/usr/lib"
17699 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17701 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17702 *) need_version=no ;;
17704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17706 shlibpath_var=LD_LIBRARY_PATH
17707 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17709 openbsd2.[89] | openbsd2.[89].*)
17710 shlibpath_overrides_runpath=no
17713 shlibpath_overrides_runpath=yes
17717 shlibpath_overrides_runpath=yes
17722 libname_spec='$name'
17725 library_names_spec='$libname${shared_ext} $libname.a'
17726 dynamic_linker='OS/2 ld.exe'
17727 shlibpath_var=LIBPATH
17730 osf3* | osf4* | osf5*)
17734 soname_spec='${libname}${release}${shared_ext}$major'
17735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17736 shlibpath_var=LD_LIBRARY_PATH
17737 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17738 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17746 soname_spec='${libname}${release}${shared_ext}$major'
17747 shlibpath_var=LD_LIBRARY_PATH
17748 shlibpath_overrides_runpath=yes
17749 hardcode_into_libs=yes
17750 # ldd complains unless libraries are executable
17751 postinstall_cmds='chmod +x $lib'
17756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17757 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17758 shlibpath_var=LD_LIBRARY_PATH
17759 shlibpath_overrides_runpath=yes
17760 if test "$with_gnu_ld" = yes; then
17768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17769 soname_spec='${libname}${release}${shared_ext}$major'
17770 shlibpath_var=LD_LIBRARY_PATH
17771 case $host_vendor in
17773 shlibpath_overrides_runpath=no
17775 export_dynamic_flag_spec='${wl}-Blargedynsym'
17776 runpath_var=LD_RUN_PATH
17784 shlibpath_overrides_runpath=no
17785 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17791 if test -d /usr/nec ;then
17793 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17794 soname_spec='$libname${shared_ext}.$major'
17795 shlibpath_var=LD_LIBRARY_PATH
17799 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17800 version_type=freebsd-elf
17803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17804 soname_spec='${libname}${release}${shared_ext}$major'
17805 shlibpath_var=LD_LIBRARY_PATH
17806 hardcode_into_libs=yes
17807 if test "$with_gnu_ld" = yes; then
17808 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17809 shlibpath_overrides_runpath=no
17811 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17812 shlibpath_overrides_runpath=yes
17815 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17819 sys_lib_dlsearch_path_spec='/usr/lib'
17824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17825 soname_spec='${libname}${release}${shared_ext}$major'
17826 shlibpath_var=LD_LIBRARY_PATH
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17834 $as_echo "$dynamic_linker" >&6; }
17835 test "$dynamic_linker" = no && can_build_shared=no
17837 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17838 if test "$GCC" = yes; then
17839 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17843 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17844 hardcode_action_GCJ=
17845 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17846 test -n "$runpath_var_GCJ" || \
17847 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17849 # We can hardcode non-existant directories.
17850 if test "$hardcode_direct_GCJ" != no &&
17851 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17852 # have to relink, otherwise we might link with an installed library
17853 # when we should be linking with a yet-to-be-installed one
17854 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17855 test "$hardcode_minus_L_GCJ" != no; then
17856 # Linking always hardcodes the temporary library directory.
17857 hardcode_action_GCJ=relink
17859 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17860 hardcode_action_GCJ=immediate
17863 # We cannot hardcode anything, or else we can only hardcode existing
17865 hardcode_action_GCJ=unsupported
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
17868 $as_echo "$hardcode_action_GCJ" >&6; }
17870 if test "$hardcode_action_GCJ" = relink; then
17871 # Fast installation is not supported
17872 enable_fast_install=no
17873 elif test "$shlibpath_overrides_runpath" = yes ||
17874 test "$enable_shared" = no; then
17875 # Fast installation is not necessary
17876 enable_fast_install=needless
17880 # The else clause should only fire when bootstrapping the
17881 # libtool distribution, otherwise you forgot to ship ltmain.sh
17882 # with your package, and you will get complaints that there are
17883 # no rules to generate ltmain.sh.
17884 if test -f "$ltmain"; then
17885 # See if we are running on zsh, and set the options which allow our commands through
17886 # without removal of \ escapes.
17887 if test -n "${ZSH_VERSION+set}" ; then
17888 setopt NO_GLOB_SUBST
17890 # Now quote all the things that may contain metacharacters while being
17891 # careful not to overquote the AC_SUBSTed values. We take copies of the
17892 # variables and quote the copies for generation of the libtool script.
17893 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17895 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17896 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17897 deplibs_check_method reload_flag reload_cmds need_locks \
17898 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17899 lt_cv_sys_global_symbol_to_c_name_address \
17900 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17901 old_postinstall_cmds old_postuninstall_cmds \
17905 lt_prog_compiler_wl_GCJ \
17906 lt_prog_compiler_pic_GCJ \
17907 lt_prog_compiler_static_GCJ \
17908 lt_prog_compiler_no_builtin_flag_GCJ \
17909 export_dynamic_flag_spec_GCJ \
17910 thread_safe_flag_spec_GCJ \
17911 whole_archive_flag_spec_GCJ \
17912 enable_shared_with_static_runtimes_GCJ \
17913 old_archive_cmds_GCJ \
17914 old_archive_from_new_cmds_GCJ \
17915 predep_objects_GCJ \
17916 postdep_objects_GCJ \
17919 compiler_lib_search_path_GCJ \
17921 archive_expsym_cmds_GCJ \
17922 postinstall_cmds_GCJ \
17923 postuninstall_cmds_GCJ \
17924 old_archive_from_expsyms_cmds_GCJ \
17925 allow_undefined_flag_GCJ \
17926 no_undefined_flag_GCJ \
17927 export_symbols_cmds_GCJ \
17928 hardcode_libdir_flag_spec_GCJ \
17929 hardcode_libdir_flag_spec_ld_GCJ \
17930 hardcode_libdir_separator_GCJ \
17931 hardcode_automatic_GCJ \
17933 module_expsym_cmds_GCJ \
17934 lt_cv_prog_compiler_c_o_GCJ \
17935 exclude_expsyms_GCJ \
17936 include_expsyms_GCJ; do
17939 old_archive_cmds_GCJ | \
17940 old_archive_from_new_cmds_GCJ | \
17941 archive_cmds_GCJ | \
17942 archive_expsym_cmds_GCJ | \
17943 module_cmds_GCJ | \
17944 module_expsym_cmds_GCJ | \
17945 old_archive_from_expsyms_cmds_GCJ | \
17946 export_symbols_cmds_GCJ | \
17947 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17948 postinstall_cmds | postuninstall_cmds | \
17949 old_postinstall_cmds | old_postuninstall_cmds | \
17950 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17951 # Double-quote double-evaled strings.
17952 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17955 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17961 *'\$0 --fallback-echo"')
17962 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17968 cat <<__EOF__ >> "$cfgfile"
17969 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17971 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17973 # Shell to use when invoking shell scripts.
17976 # Whether or not to build shared libraries.
17977 build_libtool_libs=$enable_shared
17979 # Whether or not to build static libraries.
17980 build_old_libs=$enable_static
17982 # Whether or not to add -lc for building shared libraries.
17983 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17985 # Whether or not to disallow shared libs when runtime libs are static
17986 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17988 # Whether or not to optimize for fast installation.
17989 fast_install=$enable_fast_install
17992 host_alias=$host_alias
17996 # The build system.
17997 build_alias=$build_alias
18001 # An echo program that does not interpret backslashes.
18006 AR_FLAGS=$lt_AR_FLAGS
18011 # LTCC compiler flags.
18012 LTCFLAGS=$lt_LTCFLAGS
18014 # A language-specific compiler.
18015 CC=$lt_compiler_GCJ
18017 # Is the compiler the GNU C compiler?
18023 # The linker used to build libraries.
18026 # Whether we need hard or soft links.
18029 # A BSD-compatible nm program.
18032 # A symbol stripping program
18035 # Used to examine libraries when file_magic_cmd begins "file"
18036 MAGIC_CMD=$MAGIC_CMD
18038 # Used on cygwin: DLL creation program.
18041 # Used on cygwin: object dumper.
18044 # Used on cygwin: assembler.
18047 # The name of the directory that contains temporary libtool files.
18050 # How to create reloadable object files.
18051 reload_flag=$lt_reload_flag
18052 reload_cmds=$lt_reload_cmds
18054 # How to pass a linker flag through the compiler.
18055 wl=$lt_lt_prog_compiler_wl_GCJ
18057 # Object file suffix (normally "o").
18058 objext="$ac_objext"
18060 # Old archive suffix (normally "a").
18063 # Shared library suffix (normally ".so").
18064 shrext_cmds='$shrext_cmds'
18066 # Executable file suffix (normally "").
18069 # Additional compiler flags for building library objects.
18070 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18073 # What is the maximum length of a command?
18074 max_cmd_len=$lt_cv_sys_max_cmd_len
18076 # Does compiler simultaneously support -c and -o options?
18077 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18079 # Must we lock files when doing compilation?
18080 need_locks=$lt_need_locks
18082 # Do we need the lib prefix for modules?
18083 need_lib_prefix=$need_lib_prefix
18085 # Do we need a version for libraries?
18086 need_version=$need_version
18088 # Whether dlopen is supported.
18089 dlopen_support=$enable_dlopen
18091 # Whether dlopen of programs is supported.
18092 dlopen_self=$enable_dlopen_self
18094 # Whether dlopen of statically linked programs is supported.
18095 dlopen_self_static=$enable_dlopen_self_static
18097 # Compiler flag to prevent dynamic linking.
18098 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18100 # Compiler flag to turn off builtin functions.
18101 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18103 # Compiler flag to allow reflexive dlopens.
18104 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18106 # Compiler flag to generate shared objects directly from archives.
18107 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18109 # Compiler flag to generate thread-safe objects.
18110 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18112 # Library versioning type.
18113 version_type=$version_type
18115 # Format of library name prefix.
18116 libname_spec=$lt_libname_spec
18118 # List of archive names. First name is the real one, the rest are links.
18119 # The last name is the one that the linker finds with -lNAME.
18120 library_names_spec=$lt_library_names_spec
18122 # The coded name of the library, if different from the real name.
18123 soname_spec=$lt_soname_spec
18125 # Commands used to build and install an old-style archive.
18127 old_archive_cmds=$lt_old_archive_cmds_GCJ
18128 old_postinstall_cmds=$lt_old_postinstall_cmds
18129 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18131 # Create an old-style archive from a shared archive.
18132 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18134 # Create a temporary old-style archive to link instead of a shared archive.
18135 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18137 # Commands used to build and install a shared archive.
18138 archive_cmds=$lt_archive_cmds_GCJ
18139 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18140 postinstall_cmds=$lt_postinstall_cmds
18141 postuninstall_cmds=$lt_postuninstall_cmds
18143 # Commands used to build a loadable module (assumed same as above if empty)
18144 module_cmds=$lt_module_cmds_GCJ
18145 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18147 # Commands to strip libraries.
18148 old_striplib=$lt_old_striplib
18149 striplib=$lt_striplib
18151 # Dependencies to place before the objects being linked to create a
18153 predep_objects=$lt_predep_objects_GCJ
18155 # Dependencies to place after the objects being linked to create a
18157 postdep_objects=$lt_postdep_objects_GCJ
18159 # Dependencies to place before the objects being linked to create a
18161 predeps=$lt_predeps_GCJ
18163 # Dependencies to place after the objects being linked to create a
18165 postdeps=$lt_postdeps_GCJ
18167 # The library search path used internally by the compiler when linking
18168 # a shared library.
18169 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18171 # Method to check whether dependent libraries are shared objects.
18172 deplibs_check_method=$lt_deplibs_check_method
18174 # Command to use when deplibs_check_method == file_magic.
18175 file_magic_cmd=$lt_file_magic_cmd
18177 # Flag that allows shared libraries with undefined symbols to be built.
18178 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18180 # Flag that forces no undefined symbols.
18181 no_undefined_flag=$lt_no_undefined_flag_GCJ
18183 # Commands used to finish a libtool library installation in a directory.
18184 finish_cmds=$lt_finish_cmds
18186 # Same as above, but a single script fragment to be evaled but not shown.
18187 finish_eval=$lt_finish_eval
18189 # Take the output of nm and produce a listing of raw symbols and C names.
18190 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18192 # Transform the output of nm in a proper C declaration
18193 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18195 # Transform the output of nm in a C name address pair
18196 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18198 # This is the shared library runtime path variable.
18199 runpath_var=$runpath_var
18201 # This is the shared library path variable.
18202 shlibpath_var=$shlibpath_var
18204 # Is shlibpath searched before the hard-coded library search path?
18205 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18207 # How to hardcode a shared library path into an executable.
18208 hardcode_action=$hardcode_action_GCJ
18210 # Whether we should hardcode library paths into libraries.
18211 hardcode_into_libs=$hardcode_into_libs
18213 # Flag to hardcode \$libdir into a binary during linking.
18214 # This must work even if \$libdir does not exist.
18215 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18217 # If ld is used when linking, flag to hardcode \$libdir into
18218 # a binary during linking. This must work even if \$libdir does
18220 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18222 # Whether we need a single -rpath flag with a separated argument.
18223 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18225 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18226 # resulting binary.
18227 hardcode_direct=$hardcode_direct_GCJ
18229 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18230 # resulting binary.
18231 hardcode_minus_L=$hardcode_minus_L_GCJ
18233 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18234 # the resulting binary.
18235 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18237 # Set to yes if building a shared library automatically hardcodes DIR into the library
18238 # and all subsequent libraries and executables linked against it.
18239 hardcode_automatic=$hardcode_automatic_GCJ
18241 # Variables whose values should be saved in libtool wrapper scripts and
18242 # restored at relink time.
18243 variables_saved_for_relink="$variables_saved_for_relink"
18245 # Whether libtool must link a program against all its dependency libraries.
18246 link_all_deplibs=$link_all_deplibs_GCJ
18248 # Compile-time system search path for libraries
18249 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18251 # Run-time system search path for libraries
18252 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18254 # Fix the shell variable \$srcfile for the compiler.
18255 fix_srcfile_path="$fix_srcfile_path_GCJ"
18257 # Set to yes if exported symbols are required.
18258 always_export_symbols=$always_export_symbols_GCJ
18260 # The commands to list exported symbols.
18261 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18263 # The commands to extract the exported symbol list from a shared archive.
18264 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18266 # Symbols that should not be listed in the preloaded symbols.
18267 exclude_expsyms=$lt_exclude_expsyms_GCJ
18269 # Symbols that must always be exported.
18270 include_expsyms=$lt_include_expsyms_GCJ
18272 # ### END LIBTOOL TAG CONFIG: $tagname
18278 # If there is no Makefile yet, we rely on a make rule to execute
18279 # `config.status --recheck' to rerun these tests and create the
18280 # libtool script then.
18281 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18282 if test -f "$ltmain_in"; then
18283 test -f Makefile && make "$ltmain"
18289 ac_cpp='$CPP $CPPFLAGS'
18290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18304 # Source file extension for RC test sources.
18307 # Object file extension for compiled RC test sources.
18311 # Code to be used in simple compile tests
18312 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18314 # Code to be used in simple link tests
18315 lt_simple_link_test_code="$lt_simple_compile_test_code"
18317 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18319 # If no C compiler was specified, use CC.
18322 # If no C compiler flags were specified, use CFLAGS.
18323 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18325 # Allow CC to be a program name with arguments.
18329 # save warnings/boilerplate of simple test code
18330 ac_outfile=conftest.$ac_objext
18331 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18332 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18333 _lt_compiler_boilerplate=`cat conftest.err`
18336 ac_outfile=conftest.$ac_objext
18337 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18338 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18339 _lt_linker_boilerplate=`cat conftest.err`
18343 # Allow CC to be a program name with arguments.
18348 for cc_temp in $compiler""; do
18350 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18351 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18356 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18358 lt_cv_prog_compiler_c_o_RC=yes
18360 # The else clause should only fire when bootstrapping the
18361 # libtool distribution, otherwise you forgot to ship ltmain.sh
18362 # with your package, and you will get complaints that there are
18363 # no rules to generate ltmain.sh.
18364 if test -f "$ltmain"; then
18365 # See if we are running on zsh, and set the options which allow our commands through
18366 # without removal of \ escapes.
18367 if test -n "${ZSH_VERSION+set}" ; then
18368 setopt NO_GLOB_SUBST
18370 # Now quote all the things that may contain metacharacters while being
18371 # careful not to overquote the AC_SUBSTed values. We take copies of the
18372 # variables and quote the copies for generation of the libtool script.
18373 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18375 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18376 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18377 deplibs_check_method reload_flag reload_cmds need_locks \
18378 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18379 lt_cv_sys_global_symbol_to_c_name_address \
18380 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18381 old_postinstall_cmds old_postuninstall_cmds \
18385 lt_prog_compiler_wl_RC \
18386 lt_prog_compiler_pic_RC \
18387 lt_prog_compiler_static_RC \
18388 lt_prog_compiler_no_builtin_flag_RC \
18389 export_dynamic_flag_spec_RC \
18390 thread_safe_flag_spec_RC \
18391 whole_archive_flag_spec_RC \
18392 enable_shared_with_static_runtimes_RC \
18393 old_archive_cmds_RC \
18394 old_archive_from_new_cmds_RC \
18395 predep_objects_RC \
18396 postdep_objects_RC \
18399 compiler_lib_search_path_RC \
18401 archive_expsym_cmds_RC \
18402 postinstall_cmds_RC \
18403 postuninstall_cmds_RC \
18404 old_archive_from_expsyms_cmds_RC \
18405 allow_undefined_flag_RC \
18406 no_undefined_flag_RC \
18407 export_symbols_cmds_RC \
18408 hardcode_libdir_flag_spec_RC \
18409 hardcode_libdir_flag_spec_ld_RC \
18410 hardcode_libdir_separator_RC \
18411 hardcode_automatic_RC \
18413 module_expsym_cmds_RC \
18414 lt_cv_prog_compiler_c_o_RC \
18415 exclude_expsyms_RC \
18416 include_expsyms_RC; do
18419 old_archive_cmds_RC | \
18420 old_archive_from_new_cmds_RC | \
18421 archive_cmds_RC | \
18422 archive_expsym_cmds_RC | \
18424 module_expsym_cmds_RC | \
18425 old_archive_from_expsyms_cmds_RC | \
18426 export_symbols_cmds_RC | \
18427 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18428 postinstall_cmds | postuninstall_cmds | \
18429 old_postinstall_cmds | old_postuninstall_cmds | \
18430 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18431 # Double-quote double-evaled strings.
18432 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18435 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18441 *'\$0 --fallback-echo"')
18442 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18448 cat <<__EOF__ >> "$cfgfile"
18449 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18451 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18453 # Shell to use when invoking shell scripts.
18456 # Whether or not to build shared libraries.
18457 build_libtool_libs=$enable_shared
18459 # Whether or not to build static libraries.
18460 build_old_libs=$enable_static
18462 # Whether or not to add -lc for building shared libraries.
18463 build_libtool_need_lc=$archive_cmds_need_lc_RC
18465 # Whether or not to disallow shared libs when runtime libs are static
18466 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18468 # Whether or not to optimize for fast installation.
18469 fast_install=$enable_fast_install
18472 host_alias=$host_alias
18476 # The build system.
18477 build_alias=$build_alias
18481 # An echo program that does not interpret backslashes.
18486 AR_FLAGS=$lt_AR_FLAGS
18491 # LTCC compiler flags.
18492 LTCFLAGS=$lt_LTCFLAGS
18494 # A language-specific compiler.
18497 # Is the compiler the GNU C compiler?
18503 # The linker used to build libraries.
18506 # Whether we need hard or soft links.
18509 # A BSD-compatible nm program.
18512 # A symbol stripping program
18515 # Used to examine libraries when file_magic_cmd begins "file"
18516 MAGIC_CMD=$MAGIC_CMD
18518 # Used on cygwin: DLL creation program.
18521 # Used on cygwin: object dumper.
18524 # Used on cygwin: assembler.
18527 # The name of the directory that contains temporary libtool files.
18530 # How to create reloadable object files.
18531 reload_flag=$lt_reload_flag
18532 reload_cmds=$lt_reload_cmds
18534 # How to pass a linker flag through the compiler.
18535 wl=$lt_lt_prog_compiler_wl_RC
18537 # Object file suffix (normally "o").
18538 objext="$ac_objext"
18540 # Old archive suffix (normally "a").
18543 # Shared library suffix (normally ".so").
18544 shrext_cmds='$shrext_cmds'
18546 # Executable file suffix (normally "").
18549 # Additional compiler flags for building library objects.
18550 pic_flag=$lt_lt_prog_compiler_pic_RC
18553 # What is the maximum length of a command?
18554 max_cmd_len=$lt_cv_sys_max_cmd_len
18556 # Does compiler simultaneously support -c and -o options?
18557 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18559 # Must we lock files when doing compilation?
18560 need_locks=$lt_need_locks
18562 # Do we need the lib prefix for modules?
18563 need_lib_prefix=$need_lib_prefix
18565 # Do we need a version for libraries?
18566 need_version=$need_version
18568 # Whether dlopen is supported.
18569 dlopen_support=$enable_dlopen
18571 # Whether dlopen of programs is supported.
18572 dlopen_self=$enable_dlopen_self
18574 # Whether dlopen of statically linked programs is supported.
18575 dlopen_self_static=$enable_dlopen_self_static
18577 # Compiler flag to prevent dynamic linking.
18578 link_static_flag=$lt_lt_prog_compiler_static_RC
18580 # Compiler flag to turn off builtin functions.
18581 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18583 # Compiler flag to allow reflexive dlopens.
18584 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18586 # Compiler flag to generate shared objects directly from archives.
18587 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18589 # Compiler flag to generate thread-safe objects.
18590 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18592 # Library versioning type.
18593 version_type=$version_type
18595 # Format of library name prefix.
18596 libname_spec=$lt_libname_spec
18598 # List of archive names. First name is the real one, the rest are links.
18599 # The last name is the one that the linker finds with -lNAME.
18600 library_names_spec=$lt_library_names_spec
18602 # The coded name of the library, if different from the real name.
18603 soname_spec=$lt_soname_spec
18605 # Commands used to build and install an old-style archive.
18607 old_archive_cmds=$lt_old_archive_cmds_RC
18608 old_postinstall_cmds=$lt_old_postinstall_cmds
18609 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18611 # Create an old-style archive from a shared archive.
18612 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18614 # Create a temporary old-style archive to link instead of a shared archive.
18615 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18617 # Commands used to build and install a shared archive.
18618 archive_cmds=$lt_archive_cmds_RC
18619 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18620 postinstall_cmds=$lt_postinstall_cmds
18621 postuninstall_cmds=$lt_postuninstall_cmds
18623 # Commands used to build a loadable module (assumed same as above if empty)
18624 module_cmds=$lt_module_cmds_RC
18625 module_expsym_cmds=$lt_module_expsym_cmds_RC
18627 # Commands to strip libraries.
18628 old_striplib=$lt_old_striplib
18629 striplib=$lt_striplib
18631 # Dependencies to place before the objects being linked to create a
18633 predep_objects=$lt_predep_objects_RC
18635 # Dependencies to place after the objects being linked to create a
18637 postdep_objects=$lt_postdep_objects_RC
18639 # Dependencies to place before the objects being linked to create a
18641 predeps=$lt_predeps_RC
18643 # Dependencies to place after the objects being linked to create a
18645 postdeps=$lt_postdeps_RC
18647 # The library search path used internally by the compiler when linking
18648 # a shared library.
18649 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18651 # Method to check whether dependent libraries are shared objects.
18652 deplibs_check_method=$lt_deplibs_check_method
18654 # Command to use when deplibs_check_method == file_magic.
18655 file_magic_cmd=$lt_file_magic_cmd
18657 # Flag that allows shared libraries with undefined symbols to be built.
18658 allow_undefined_flag=$lt_allow_undefined_flag_RC
18660 # Flag that forces no undefined symbols.
18661 no_undefined_flag=$lt_no_undefined_flag_RC
18663 # Commands used to finish a libtool library installation in a directory.
18664 finish_cmds=$lt_finish_cmds
18666 # Same as above, but a single script fragment to be evaled but not shown.
18667 finish_eval=$lt_finish_eval
18669 # Take the output of nm and produce a listing of raw symbols and C names.
18670 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18672 # Transform the output of nm in a proper C declaration
18673 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18675 # Transform the output of nm in a C name address pair
18676 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18678 # This is the shared library runtime path variable.
18679 runpath_var=$runpath_var
18681 # This is the shared library path variable.
18682 shlibpath_var=$shlibpath_var
18684 # Is shlibpath searched before the hard-coded library search path?
18685 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18687 # How to hardcode a shared library path into an executable.
18688 hardcode_action=$hardcode_action_RC
18690 # Whether we should hardcode library paths into libraries.
18691 hardcode_into_libs=$hardcode_into_libs
18693 # Flag to hardcode \$libdir into a binary during linking.
18694 # This must work even if \$libdir does not exist.
18695 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18697 # If ld is used when linking, flag to hardcode \$libdir into
18698 # a binary during linking. This must work even if \$libdir does
18700 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18702 # Whether we need a single -rpath flag with a separated argument.
18703 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18705 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18706 # resulting binary.
18707 hardcode_direct=$hardcode_direct_RC
18709 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18710 # resulting binary.
18711 hardcode_minus_L=$hardcode_minus_L_RC
18713 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18714 # the resulting binary.
18715 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18717 # Set to yes if building a shared library automatically hardcodes DIR into the library
18718 # and all subsequent libraries and executables linked against it.
18719 hardcode_automatic=$hardcode_automatic_RC
18721 # Variables whose values should be saved in libtool wrapper scripts and
18722 # restored at relink time.
18723 variables_saved_for_relink="$variables_saved_for_relink"
18725 # Whether libtool must link a program against all its dependency libraries.
18726 link_all_deplibs=$link_all_deplibs_RC
18728 # Compile-time system search path for libraries
18729 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18731 # Run-time system search path for libraries
18732 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18734 # Fix the shell variable \$srcfile for the compiler.
18735 fix_srcfile_path="$fix_srcfile_path_RC"
18737 # Set to yes if exported symbols are required.
18738 always_export_symbols=$always_export_symbols_RC
18740 # The commands to list exported symbols.
18741 export_symbols_cmds=$lt_export_symbols_cmds_RC
18743 # The commands to extract the exported symbol list from a shared archive.
18744 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18746 # Symbols that should not be listed in the preloaded symbols.
18747 exclude_expsyms=$lt_exclude_expsyms_RC
18749 # Symbols that must always be exported.
18750 include_expsyms=$lt_include_expsyms_RC
18752 # ### END LIBTOOL TAG CONFIG: $tagname
18758 # If there is no Makefile yet, we rely on a make rule to execute
18759 # `config.status --recheck' to rerun these tests and create the
18760 # libtool script then.
18761 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18762 if test -f "$ltmain_in"; then
18763 test -f Makefile && make "$ltmain"
18769 ac_cpp='$CPP $CPPFLAGS'
18770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18779 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
18783 # Append the new tag name to the list of available tags.
18784 if test -n "$tagname" ; then
18785 available_tags="$available_tags $tagname"
18791 # Now substitute the updated list of available tags.
18792 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18793 mv "${ofile}T" "$ofile"
18797 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
18803 # This can be used to rebuild libtool when needed
18804 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18806 # Always use our own libtool.
18807 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18809 # Prevent multiple expansion
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18832 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
18834 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18835 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
18836 $as_echo_n "(cached) " >&6
18838 cat >conftest.make <<\_ACEOF
18841 @echo '@@@%%%=$(MAKE)=@@@%%%'
18843 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18844 case `${MAKE-make} -f conftest.make 2>/dev/null` in
18845 *@@@%%%=?*=@@@%%%*)
18846 eval ac_cv_prog_make_${ac_make}_set=yes;;
18848 eval ac_cv_prog_make_${ac_make}_set=no;;
18850 rm -f conftest.make
18852 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18854 $as_echo "yes" >&6; }
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18858 $as_echo "no" >&6; }
18859 SET_MAKE="MAKE=${MAKE-make}"
18864 ac_cpp='$CXXCPP $CPPFLAGS'
18865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18868 if test -z "$CXX"; then
18869 if test -n "$CCC"; then
18872 if test -n "$ac_tool_prefix"; then
18873 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC QCC
18875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18878 $as_echo_n "checking for $ac_word... " >&6; }
18879 if ${ac_cv_prog_CXX+:} false; then :
18880 $as_echo_n "(cached) " >&6
18882 if test -n "$CXX"; then
18883 ac_cv_prog_CXX="$CXX" # Let the user override the test.
18885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18886 for as_dir in $PATH
18889 test -z "$as_dir" && as_dir=.
18890 for ac_exec_ext in '' $ac_executable_extensions; do
18891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18892 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
18893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18902 CXX=$ac_cv_prog_CXX
18903 if test -n "$CXX"; then
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
18905 $as_echo "$CXX" >&6; }
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18908 $as_echo "no" >&6; }
18912 test -n "$CXX" && break
18915 if test -z "$CXX"; then
18917 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC QCC
18919 # Extract the first word of "$ac_prog", so it can be a program name with args.
18920 set dummy $ac_prog; ac_word=$2
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18922 $as_echo_n "checking for $ac_word... " >&6; }
18923 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
18924 $as_echo_n "(cached) " >&6
18926 if test -n "$ac_ct_CXX"; then
18927 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
18929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18930 for as_dir in $PATH
18933 test -z "$as_dir" && as_dir=.
18934 for ac_exec_ext in '' $ac_executable_extensions; do
18935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18936 ac_cv_prog_ac_ct_CXX="$ac_prog"
18937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18946 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
18947 if test -n "$ac_ct_CXX"; then
18948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
18949 $as_echo "$ac_ct_CXX" >&6; }
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18952 $as_echo "no" >&6; }
18956 test -n "$ac_ct_CXX" && break
18959 if test "x$ac_ct_CXX" = x; then
18962 case $cross_compiling:$ac_tool_warned in
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18966 ac_tool_warned=yes ;;
18974 # Provide some information about the compiler.
18975 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
18978 for ac_option in --version -v -V -qversion; do
18979 { { ac_try="$ac_compiler $ac_option >&5"
18980 case "(($ac_try" in
18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982 *) ac_try_echo=$ac_try;;
18984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18985 $as_echo "$ac_try_echo"; } >&5
18986 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18988 if test -s conftest.err; then
18990 ... rest of stderr output deleted ...
18991 10q' conftest.err >conftest.er1
18992 cat conftest.er1 >&5
18994 rm -f conftest.er1 conftest.err
18995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18996 test $ac_status = 0; }
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
19000 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
19001 if ${ac_cv_cxx_compiler_gnu+:} false; then :
19002 $as_echo_n "(cached) " >&6
19004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19005 /* end confdefs.h. */
19018 if ac_fn_cxx_try_compile "$LINENO"; then :
19019 ac_compiler_gnu=yes
19023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19024 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
19028 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
19029 if test $ac_compiler_gnu = yes; then
19034 ac_test_CXXFLAGS=${CXXFLAGS+set}
19035 ac_save_CXXFLAGS=$CXXFLAGS
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
19037 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
19038 if ${ac_cv_prog_cxx_g+:} false; then :
19039 $as_echo_n "(cached) " >&6
19041 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
19042 ac_cxx_werror_flag=yes
19043 ac_cv_prog_cxx_g=no
19045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19046 /* end confdefs.h. */
19056 if ac_fn_cxx_try_compile "$LINENO"; then :
19057 ac_cv_prog_cxx_g=yes
19060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19061 /* end confdefs.h. */
19071 if ac_fn_cxx_try_compile "$LINENO"; then :
19074 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
19076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19077 /* end confdefs.h. */
19087 if ac_fn_cxx_try_compile "$LINENO"; then :
19088 ac_cv_prog_cxx_g=yes
19090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19095 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
19098 $as_echo "$ac_cv_prog_cxx_g" >&6; }
19099 if test "$ac_test_CXXFLAGS" = set; then
19100 CXXFLAGS=$ac_save_CXXFLAGS
19101 elif test $ac_cv_prog_cxx_g = yes; then
19102 if test "$GXX" = yes; then
19108 if test "$GXX" = yes; then
19115 ac_cpp='$CPP $CPPFLAGS'
19116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19120 depcc="$CXX" am_compiler_list=
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19123 $as_echo_n "checking dependency style of $depcc... " >&6; }
19124 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
19125 $as_echo_n "(cached) " >&6
19127 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19128 # We make a subdir and do the tests there. Otherwise we can end up
19129 # making bogus files that we don't know about and never remove. For
19130 # instance it was reported that on HP-UX the gcc test will end up
19131 # making a dummy file named `D' -- because `-MD' means `put the output
19134 # Copy depcomp to subdir because otherwise we won't find it if we're
19135 # using a relative directory.
19136 cp "$am_depcomp" conftest.dir
19138 # We will build objects and dependencies in a subdirectory because
19139 # it helps to detect inapplicable dependency modes. For instance
19140 # both Tru64's cc and ICC support -MD to output dependencies as a
19141 # side effect of compilation, but ICC will put the dependencies in
19142 # the current directory while Tru64 will put them in the object
19146 am_cv_CXX_dependencies_compiler_type=none
19147 if test "$am_compiler_list" = ""; then
19148 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19150 for depmode in $am_compiler_list; do
19151 # Setup a source with many dependencies, because some compilers
19152 # like to wrap large dependency lists on column 80 (with \), and
19153 # we should not choose a depcomp mode which is confused by this.
19155 # We need to recreate these files for each test, as the compiler may
19156 # overwrite some of them when testing with obscure command lines.
19157 # This happens at least with the AIX C compiler.
19159 for i in 1 2 3 4 5 6; do
19160 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19161 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19162 # Solaris 8's {/usr,}/bin/sh.
19163 touch sub/conftst$i.h
19165 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19169 # after this tag, mechanisms are not by side-effect, so they'll
19170 # only be used when explicitly requested
19171 if test "x$enable_dependency_tracking" = xyes; then
19179 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19180 # mode. It turns out that the SunPro C++ compiler does not properly
19181 # handle `-M -o', and we need to detect this.
19182 if depmode=$depmode \
19183 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19184 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19185 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19186 >/dev/null 2>conftest.err &&
19187 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19188 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19189 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19190 # icc doesn't choke on unknown options, it will just issue warnings
19191 # or remarks (even with -Werror). So we grep stderr for any message
19192 # that says an option was ignored or not supported.
19193 # When given -MP, icc 7.0 and 7.1 complain thusly:
19194 # icc: Command line warning: ignoring option '-M'; no argument required
19195 # The diagnosis changed in icc 8.0:
19196 # icc: Command line remark: option '-MP' not supported
19197 if (grep 'ignoring option' conftest.err ||
19198 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19199 am_cv_CXX_dependencies_compiler_type=$depmode
19206 rm -rf conftest.dir
19208 am_cv_CXX_dependencies_compiler_type=none
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
19213 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
19214 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19219 test "x$enable_dependency_tracking" != xno \
19220 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19221 am__fastdepCXX_TRUE=
19222 am__fastdepCXX_FALSE='#'
19224 am__fastdepCXX_TRUE='#'
19225 am__fastdepCXX_FALSE=
19231 ac_cpp='$CXXCPP $CPPFLAGS'
19232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19236 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19237 if test -z "$CXXCPP"; then
19238 if ${ac_cv_prog_CXXCPP+:} false; then :
19239 $as_echo_n "(cached) " >&6
19241 # Double quotes because CXXCPP needs to be expanded
19242 for CXXCPP in "$CXX -E" "/lib/cpp"
19244 ac_preproc_ok=false
19245 for ac_cxx_preproc_warn_flag in '' yes
19247 # Use a header file that comes with gcc, so configuring glibc
19248 # with a fresh cross-compiler works.
19249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19250 # <limits.h> exists even on freestanding compilers.
19251 # On the NeXT, cc -E runs the code through the compiler's parser,
19252 # not just through cpp. "Syntax error" is here to catch this case.
19253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19254 /* end confdefs.h. */
19256 # include <limits.h>
19258 # include <assert.h>
19262 if ac_fn_cxx_try_cpp "$LINENO"; then :
19265 # Broken: fails on valid input.
19268 rm -f conftest.err conftest.i conftest.$ac_ext
19270 # OK, works on sane cases. Now check whether nonexistent headers
19271 # can be detected and how.
19272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19273 /* end confdefs.h. */
19274 #include <ac_nonexistent.h>
19276 if ac_fn_cxx_try_cpp "$LINENO"; then :
19277 # Broken: success on invalid input.
19280 # Passes both tests.
19284 rm -f conftest.err conftest.i conftest.$ac_ext
19287 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19288 rm -f conftest.i conftest.err conftest.$ac_ext
19289 if $ac_preproc_ok; then :
19294 ac_cv_prog_CXXCPP=$CXXCPP
19297 CXXCPP=$ac_cv_prog_CXXCPP
19299 ac_cv_prog_CXXCPP=$CXXCPP
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19302 $as_echo "$CXXCPP" >&6; }
19303 ac_preproc_ok=false
19304 for ac_cxx_preproc_warn_flag in '' yes
19306 # Use a header file that comes with gcc, so configuring glibc
19307 # with a fresh cross-compiler works.
19308 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19309 # <limits.h> exists even on freestanding compilers.
19310 # On the NeXT, cc -E runs the code through the compiler's parser,
19311 # not just through cpp. "Syntax error" is here to catch this case.
19312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19313 /* end confdefs.h. */
19315 # include <limits.h>
19317 # include <assert.h>
19321 if ac_fn_cxx_try_cpp "$LINENO"; then :
19324 # Broken: fails on valid input.
19327 rm -f conftest.err conftest.i conftest.$ac_ext
19329 # OK, works on sane cases. Now check whether nonexistent headers
19330 # can be detected and how.
19331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19332 /* end confdefs.h. */
19333 #include <ac_nonexistent.h>
19335 if ac_fn_cxx_try_cpp "$LINENO"; then :
19336 # Broken: success on invalid input.
19339 # Passes both tests.
19343 rm -f conftest.err conftest.i conftest.$ac_ext
19346 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19347 rm -f conftest.i conftest.err conftest.$ac_ext
19348 if $ac_preproc_ok; then :
19351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19353 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19354 See \`config.log' for more details" "$LINENO" 5; }
19358 ac_cpp='$CPP $CPPFLAGS'
19359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19364 ac_cpp='$CXXCPP $CPPFLAGS'
19365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19373 CXXFLAGS="$CXXFLAGS -std strict_ansi_errors"
19381 # Check whether --enable-doxygen was given.
19382 if test "${enable_doxygen+set}" = set; then :
19383 enableval=$enable_doxygen;
19387 # Check whether --enable-dot was given.
19388 if test "${enable_dot+set}" = set; then :
19389 enableval=$enable_dot;
19393 # Check whether --enable-html-docs was given.
19394 if test "${enable_html_docs+set}" = set; then :
19395 enableval=$enable_html_docs;
19397 enable_html_docs=yes
19401 # Check whether --enable-latex-docs was given.
19402 if test "${enable_latex_docs+set}" = set; then :
19403 enableval=$enable_latex_docs;
19405 enable_latex_docs=no
19409 if test "x$enable_doxygen" = xno; then
19412 # Extract the first word of "doxygen", so it can be a program name with args.
19413 set dummy doxygen; ac_word=$2
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19415 $as_echo_n "checking for $ac_word... " >&6; }
19416 if ${ac_cv_path_DOXYGEN+:} false; then :
19417 $as_echo_n "(cached) " >&6
19421 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
19424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19425 for as_dir in $PATH
19428 test -z "$as_dir" && as_dir=.
19429 for ac_exec_ext in '' $ac_executable_extensions; do
19430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19431 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
19432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19442 DOXYGEN=$ac_cv_path_DOXYGEN
19443 if test -n "$DOXYGEN"; then
19444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19445 $as_echo "$DOXYGEN" >&6; }
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19448 $as_echo "no" >&6; }
19452 if test "x$DOXYGEN" = x; then
19453 if test "x$enable_doxygen" = xyes; then
19454 as_fn_error $? "could not find doxygen" "$LINENO" 5
19459 # Extract the first word of "dot", so it can be a program name with args.
19460 set dummy dot; ac_word=$2
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19462 $as_echo_n "checking for $ac_word... " >&6; }
19463 if ${ac_cv_path_DOT+:} false; then :
19464 $as_echo_n "(cached) " >&6
19468 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
19471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19472 for as_dir in $PATH
19475 test -z "$as_dir" && as_dir=.
19476 for ac_exec_ext in '' $ac_executable_extensions; do
19477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19478 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
19479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19489 DOT=$ac_cv_path_DOT
19490 if test -n "$DOT"; then
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
19492 $as_echo "$DOT" >&6; }
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19495 $as_echo "no" >&6; }
19503 if test x$enable_doc = xyes; then
19513 if test x$enable_latex_docs = xyes; then
19515 LATEX_DOC_FALSE='#'
19522 if test x$DOT = x; then
19523 if test "x$enable_dot" = xyes; then
19524 as_fn_error $? "could not find dot" "$LINENO" 5
19531 manual_dest="manual"
19532 base_dir=`(cd $srcdir && pwd)`
19543 # Checks header files
19544 # ----------------------------------------------------------------------------
19548 if test "$target_os" = "os2-emx"; then
19549 # Scripts don't pass test -x on OS/2
19555 acceptable_majors="1"
19557 apr_temp_acceptable_apr_config=""
19558 for apr_temp_major in $acceptable_majors
19560 case $apr_temp_major in
19562 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config"
19565 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
19571 $as_echo_n "checking for APR... " >&6; }
19573 # Check whether --with-apr was given.
19574 if test "${with_apr+set}" = set; then :
19576 if test "$withval" = "no" || test "$withval" = "yes"; then
19577 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5
19580 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19582 for lookdir in "$withval/bin" "$withval"
19584 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
19585 apr_config="$lookdir/$apr_temp_apr_config_file"
19593 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
19594 apr_config="$withval"
19598 if test "$apr_found" != "yes"; then
19599 as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5
19604 if test -n "1" && test "1" = "1"; then
19605 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config
19607 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then
19608 apr_config="$apr_temp_apr_config_file"
19613 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
19614 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
19615 apr_config="$lookdir/bin/$apr_temp_apr_config_file"
19624 if test "$apr_found" = "no" && test -d ""; then
19625 apr_temp_abs_srcdir="`cd && pwd`"
19626 apr_found="reconfig"
19627 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
19628 case $apr_bundled_major in
19630 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5
19633 apr_temp_apr_config_file="apr-config"
19636 apr_temp_apr_config_file="apr-$apr_bundled_major-config"
19639 if test -n ""; then
19640 apr_config="/$apr_temp_apr_config_file"
19642 apr_config="/$apr_temp_apr_config_file"
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
19650 $as_echo "$apr_found" >&6; }
19652 if test "$apr_found" = "no"; then
19653 as_fn_error $? "APR could not be located. Please use the --with-apr option." "$LINENO" 5
19656 CPPFLAGS="$CPPFLAGS `$apr_config --cppflags` `$apr_config --includes`"
19657 APR_LIBS="`$apr_config --link-ld --libs`"
19659 LDFLAGS="$LDFLAGS $APR_LIBS"
19664 if test "$target_os" = "os2-emx"; then
19665 # Scripts don't pass test -x on OS/2
19671 acceptable_majors="1"
19673 apu_temp_acceptable_apu_config=""
19674 for apu_temp_major in $acceptable_majors
19676 case $apu_temp_major in
19678 apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config"
19681 apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config"
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5
19687 $as_echo_n "checking for APR-util... " >&6; }
19689 # Check whether --with-apr-util was given.
19690 if test "${with_apr_util+set}" = set; then :
19691 withval=$with_apr_util;
19692 if test "$withval" = "no" || test "$withval" = "yes"; then
19693 as_fn_error $? "--with-apr-util requires a directory or file to be provided" "$LINENO" 5
19696 for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
19698 for lookdir in "$withval/bin" "$withval"
19700 if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then
19701 apu_config="$lookdir/$apu_temp_apu_config_file"
19709 if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
19710 apu_config="$withval"
19714 if test "$apu_found" != "yes"; then
19715 as_fn_error $? "the --with-apr-util parameter is incorrect. It must specify an install prefix, a build directory, or an apu-config file." "$LINENO" 5
19720 if test -n "1" && test "1" = "1"; then
19721 for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
19723 if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
19724 apu_config="$apu_temp_apu_config_file"
19729 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do
19730 if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
19731 apu_config="$lookdir/bin/$apu_temp_apu_config_file"
19740 if test "$apu_found" = "no" && test -d ""; then
19741 apu_temp_abs_srcdir="`cd && pwd`"
19742 apu_found="reconfig"
19743 apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apu_version.h\"`"
19744 case $apu_bundled_major in
19746 as_fn_error $? "failed to find major version of bundled APU" "$LINENO" 5
19749 apu_temp_apu_config_file="apu-config"
19752 apu_temp_apu_config_file="apu-$apu_bundled_major-config"
19755 if test -n ""; then
19756 apu_config="/$apu_temp_apu_config_file"
19758 apu_config="/$apu_temp_apu_config_file"
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5
19766 $as_echo "$apu_found" >&6; }
19768 if test "$apu_found" = "no"; then
19769 as_fn_error $? "APR-util could not be located. Please use the --with-apr-util option." "$LINENO" 5
19772 CPPFLAGS="$CPPFLAGS `$apu_config --includes`"
19773 APU_LIBS="`$apu_config --link-ld --libs`"
19775 LDFLAGS="$LDFLAGS $APU_LIBS"
19777 # Checks local idioms
19778 # ----------------------------------------------------------------------------
19780 # for local syslog() function for SyslogAppender
19781 for ac_func in mbsrtowcs
19783 ac_fn_cxx_check_func "$LINENO" "mbsrtowcs" "ac_cv_func_mbsrtowcs"
19784 if test "x$ac_cv_func_mbsrtowcs" = xyes; then :
19785 cat >>confdefs.h <<_ACEOF
19786 #define HAVE_MBSRTOWCS 1
19794 if test "$have_mbsrtowcs" = "yes"
19803 for ac_func in wcstombs
19805 ac_fn_cxx_check_func "$LINENO" "wcstombs" "ac_cv_func_wcstombs"
19806 if test "x$ac_cv_func_wcstombs" = xyes; then :
19807 cat >>confdefs.h <<_ACEOF
19808 #define HAVE_WCSTOMBS 1
19816 if test "$have_wcstombs" = "yes"
19825 # for local syslog() function for SyslogAppender
19826 for ac_func in syslog
19828 ac_fn_cxx_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
19829 if test "x$ac_cv_func_syslog" = xyes; then :
19830 cat >>confdefs.h <<_ACEOF
19831 #define HAVE_SYSLOG 1
19839 if test "$have_syslog" = "yes"
19849 ac_fn_cxx_check_header_mongrel "$LINENO" "locale" "ac_cv_header_locale" "$ac_includes_default"
19850 if test "x$ac_cv_header_locale" = xyes; then :
19857 if test "$have_locale" = "yes"
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19867 $as_echo_n "checking for wchar_t... " >&6; }
19868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19869 /* end confdefs.h. */
19874 if ac_fn_cxx_try_compile "$LINENO"; then :
19879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wchar_t" >&5
19881 $as_echo "$have_wchar_t" >&6; }
19882 if test "$have_wchar_t" = "yes"
19891 for ac_func in fwide
19893 ac_fn_cxx_check_func "$LINENO" "fwide" "ac_cv_func_fwide"
19894 if test "x$ac_cv_func_fwide" = xyes; then :
19895 cat >>confdefs.h <<_ACEOF
19896 #define HAVE_FWIDE 1
19904 if test "$have_fwide" = "yes"
19914 # Checks for libraries
19915 # ----------------------------------------------------------------------------
19917 if test -n "$ac_tool_prefix"; then
19918 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19919 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19921 $as_echo_n "checking for $ac_word... " >&6; }
19922 if ${ac_cv_prog_RANLIB+:} false; then :
19923 $as_echo_n "(cached) " >&6
19925 if test -n "$RANLIB"; then
19926 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19929 for as_dir in $PATH
19932 test -z "$as_dir" && as_dir=.
19933 for ac_exec_ext in '' $ac_executable_extensions; do
19934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19935 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19945 RANLIB=$ac_cv_prog_RANLIB
19946 if test -n "$RANLIB"; then
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19948 $as_echo "$RANLIB" >&6; }
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19951 $as_echo "no" >&6; }
19956 if test -z "$ac_cv_prog_RANLIB"; then
19957 ac_ct_RANLIB=$RANLIB
19958 # Extract the first word of "ranlib", so it can be a program name with args.
19959 set dummy ranlib; ac_word=$2
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19961 $as_echo_n "checking for $ac_word... " >&6; }
19962 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19963 $as_echo_n "(cached) " >&6
19965 if test -n "$ac_ct_RANLIB"; then
19966 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19969 for as_dir in $PATH
19972 test -z "$as_dir" && as_dir=.
19973 for ac_exec_ext in '' $ac_executable_extensions; do
19974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19975 ac_cv_prog_ac_ct_RANLIB="ranlib"
19976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19985 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19986 if test -n "$ac_ct_RANLIB"; then
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19988 $as_echo "$ac_ct_RANLIB" >&6; }
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19991 $as_echo "no" >&6; }
19994 if test "x$ac_ct_RANLIB" = x; then
19997 case $cross_compiling:$ac_tool_warned in
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20001 ac_tool_warned=yes ;;
20003 RANLIB=$ac_ct_RANLIB
20006 RANLIB="$ac_cv_prog_RANLIB"
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC support" >&5
20013 $as_echo_n "checking for ODBC support... " >&6; }
20015 # Check whether --with-ODBC was given.
20016 if test "${with_ODBC+set}" = set; then :
20017 withval=$with_ODBC; ac_with_odbc=$withval
20022 case "$ac_with_odbc" in
20026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Microsoft" >&5
20027 $as_echo "Microsoft" >&6; }
20028 LIBS_ODBC="-lodbc32"
20031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unixODBC" >&5
20032 $as_echo "unixODBC" >&6; }
20033 ac_fn_cxx_check_header_mongrel "$LINENO" "sqlext.h" "ac_cv_header_sqlext_h" "$ac_includes_default"
20034 if test "x$ac_cv_header_sqlext_h" = xyes; then :
20037 as_fn_error $? "unixODBC not found !" "$LINENO" 5
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: iODBC" >&5
20047 $as_echo "iODBC" >&6; }
20048 # Extract the first word of "iodbc-config", so it can be a program name with args.
20049 set dummy iodbc-config; ac_word=$2
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20051 $as_echo_n "checking for $ac_word... " >&6; }
20052 if ${ac_cv_prog_IODBC_CONFIG+:} false; then :
20053 $as_echo_n "(cached) " >&6
20055 if test -n "$IODBC_CONFIG"; then
20056 ac_cv_prog_IODBC_CONFIG="$IODBC_CONFIG" # Let the user override the test.
20058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20059 for as_dir in $PATH
20062 test -z "$as_dir" && as_dir=.
20063 for ac_exec_ext in '' $ac_executable_extensions; do
20064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20065 ac_cv_prog_IODBC_CONFIG="yes"
20066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20073 test -z "$ac_cv_prog_IODBC_CONFIG" && ac_cv_prog_IODBC_CONFIG="no"
20076 IODBC_CONFIG=$ac_cv_prog_IODBC_CONFIG
20077 if test -n "$IODBC_CONFIG"; then
20078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IODBC_CONFIG" >&5
20079 $as_echo "$IODBC_CONFIG" >&6; }
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20082 $as_echo "no" >&6; }
20086 if test "x$IODBC_CONFIG" = "xyes"
20090 LIBS_ODBC="`iodbc-config --libs`"
20091 CPPFLAGS_ODBC="`iodbc-config --cflags`"
20093 as_fn_error $? "iODBC not found !" "$LINENO" 5
20099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20100 $as_echo "no" >&6; }
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ???" >&5
20104 $as_echo "???" >&6; }
20105 as_fn_error $? "Unknown option : $ac_with_odbc" "$LINENO" 5
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SMTP support" >&5
20114 $as_echo_n "checking for SMTP support... " >&6; }
20116 # Check whether --with-SMTP was given.
20117 if test "${with_SMTP+set}" = set; then :
20118 withval=$with_SMTP; ac_with_smtp=$withval
20123 case "$ac_with_smtp" in
20125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libesmtp" >&5
20126 $as_echo "libesmtp" >&6; }
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smtp_create_session in -lesmtp" >&5
20128 $as_echo_n "checking for smtp_create_session in -lesmtp... " >&6; }
20129 if ${ac_cv_lib_esmtp_smtp_create_session+:} false; then :
20130 $as_echo_n "(cached) " >&6
20132 ac_check_lib_save_LIBS=$LIBS
20133 LIBS="-lesmtp -lesmtp $LIBS"
20134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20135 /* end confdefs.h. */
20137 /* Override any GCC internal prototype to avoid an error.
20138 Use char because int might match the return type of a GCC
20139 builtin and then its argument prototype would still apply. */
20143 char smtp_create_session ();
20147 return smtp_create_session ();
20152 if ac_fn_cxx_try_link "$LINENO"; then :
20153 ac_cv_lib_esmtp_smtp_create_session=yes
20155 ac_cv_lib_esmtp_smtp_create_session=no
20157 rm -f core conftest.err conftest.$ac_objext \
20158 conftest$ac_exeext conftest.$ac_ext
20159 LIBS=$ac_check_lib_save_LIBS
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
20162 $as_echo "$ac_cv_lib_esmtp_smtp_create_session" >&6; }
20163 if test "x$ac_cv_lib_esmtp_smtp_create_session" = xyes; then :
20164 cat >>confdefs.h <<_ACEOF
20165 #define HAVE_LIBESMTP 1
20168 LIBS="-lesmtp $LIBS"
20171 as_fn_error $? "libesmtp library not found !" "$LINENO" 5
20176 LIBS="-lesmtp $LIBS"
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20180 $as_echo "no" >&6; }
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ???" >&5
20186 $as_echo "???" >&6; }
20187 as_fn_error $? "Unknown option : $ac_with_smtp" "$LINENO" 5
20192 # Check whether --enable-char was given.
20193 if test "${enable_char+set}" = set; then :
20194 enableval=$enable_char;
20197 if test "x$enable_char" = xno; then
20203 if test "$have_char_api" = "yes"
20213 # Check whether --enable-wchar_t was given.
20214 if test "${enable_wchar_t+set}" = set; then :
20215 enableval=$enable_wchar_t;
20218 if test "x$enable_wchar_t" = xno; then
20219 have_wchar_t_api=no
20221 if test "$have_wchar_t" = "yes"
20223 have_wchar_t_api=yes
20225 have_wchar_t_api=no
20229 if test "$have_wchar_t_api" = "yes"
20239 # Check whether --enable-unichar was given.
20240 if test "${enable_unichar+set}" = set; then :
20241 enableval=$enable_unichar;
20244 if test "x$enable_unichar" = "yes"
20254 # Check whether --enable-cfstring was given.
20255 if test "${enable_cfstring+set}" = set; then :
20256 enableval=$enable_cfstring;
20259 if test "x$enable_cfstring" = xyes; then
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cfstring" >&5
20261 $as_echo_n "checking for cfstring... " >&6; }
20262 CPPFLAGS="$CPPFLAGS -framework CoreFoundation"
20263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20264 /* end confdefs.h. */
20266 #include <CoreFoundation/CFString.h>
20267 CFStringRef x = CFSTR("Hello");
20269 if ac_fn_cxx_try_compile "$LINENO"; then :
20270 have_cfstring_api=yes
20272 have_cfstring_api=no
20274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cfstring_api" >&5
20276 $as_echo "$have_cfstring_api" >&6; }
20278 have_cfstring_api=no
20281 if test "$have_cfstring_api" = "yes"
20290 #determine charset type
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking charset type" >&5
20292 $as_echo_n "checking charset type... " >&6; }
20294 # Check whether --with-charset was given.
20295 if test "${with_charset+set}" = set; then :
20296 withval=$with_charset; ac_with_charset=$withval
20298 ac_with_charset=auto
20302 case "$ac_with_charset" in
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: utf-8" >&5
20305 $as_echo "utf-8" >&6; }
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: iso-8859-1" >&5
20318 $as_echo "iso-8859-1" >&6; }
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: usascii" >&5
20331 $as_echo "usascii" >&6; }
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: usascii" >&5
20344 $as_echo "usascii" >&6; }
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
20357 $as_echo "auto" >&6; }
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ???" >&5
20370 $as_echo "???" >&6; }
20371 as_fn_error $? "Invalid charset type: $ac_with_charset" "$LINENO" 5
20377 #determine logchar type
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logchar type" >&5
20379 $as_echo_n "checking logchar type... " >&6; }
20381 # Check whether --with-logchar was given.
20382 if test "${with_logchar+set}" = set; then :
20383 withval=$with_logchar; ac_with_logchar=$withval
20385 ac_with_logchar=utf-8
20389 case "$ac_with_logchar" in
20391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: utf-8" >&5
20392 $as_echo "utf-8" >&6; }
20397 LOGCHAR_IS_UNICHAR=0
20402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: wchar_t" >&5
20403 $as_echo "wchar_t" >&6; }
20408 LOGCHAR_IS_UNICHAR=0
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unichar" >&5
20414 $as_echo "unichar" >&6; }
20419 LOGCHAR_IS_UNICHAR=1
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ???" >&5
20425 $as_echo "???" >&6; }
20426 as_fn_error $? "Invalid logchar type: $ac_with_logchar" "$LINENO" 5
20433 # ----------------------------------------------------------------------------
20435 ac_config_files="$ac_config_files Makefile liblog4cxx.pc src/Makefile src/main/Makefile src/main/cpp/Makefile src/main/include/Makefile src/main/include/log4cxx/log4cxx.h src/main/include/log4cxx/private/log4cxx_private.h src/main/include/log4cxx/private/Makefile src/main/include/log4cxx/Makefile src/main/include/log4cxx/helpers/Makefile src/main/include/log4cxx/net/Makefile src/main/include/log4cxx/nt/Makefile src/main/include/log4cxx/spi/Makefile src/main/include/log4cxx/spi/location/Makefile src/main/include/log4cxx/varia/Makefile src/main/include/log4cxx/xml/Makefile src/main/include/log4cxx/config/Makefile src/main/include/log4cxx/db/Makefile src/main/include/log4cxx/rolling/Makefile src/main/include/log4cxx/pattern/Makefile src/main/include/log4cxx/filter/Makefile src/site/Makefile src/site/doxy/Makefile src/site/doxy/Doxyfile src/test/Makefile src/test/resources/Makefile src/test/resources/input/Makefile src/test/resources/input/ndc/Makefile src/test/resources/input/rolling/Makefile src/test/resources/input/xml/Makefile src/test/cpp/Makefile src/test/resources/witness/Makefile src/test/resources/witness/encoding/Makefile src/test/resources/witness/ndc/Makefile src/test/resources/witness/rolling/Makefile src/examples/Makefile src/examples/cpp/Makefile"
20437 cat >confcache <<\_ACEOF
20438 # This file is a shell script that caches the results of configure
20439 # tests run on this system so they can be shared between configure
20440 # scripts and configure runs, see configure's option --config-cache.
20441 # It is not useful on other systems. If it contains results you don't
20442 # want to keep, you may remove or edit it.
20444 # config.status only pays attention to the cache file if you give it
20445 # the --recheck option to rerun configure.
20447 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20448 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20449 # following values.
20453 # The following way of writing the cache mishandles newlines in values,
20454 # but we know of no workaround that is simple, portable, and efficient.
20455 # So, we kill variables containing newlines.
20456 # Ultrix sh set writes to stderr and can't be redirected directly,
20457 # and sets the high bit in the cache file unless we assign to the vars.
20459 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20460 eval ac_val=\$$ac_var
20464 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20465 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20468 _ | IFS | as_nl) ;; #(
20469 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20470 *) { eval $ac_var=; unset $ac_var;} ;;
20476 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20477 *${as_nl}ac_space=\ *)
20478 # `set' does not quote correctly, so add quotes: double-quote
20479 # substitution turns \\\\ into \\, and sed turns \\ into \.
20482 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20485 # `set' quotes correctly as required by POSIX, so do not add quotes.
20486 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20495 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20497 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20499 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20500 if test -w "$cache_file"; then
20501 if test "x$cache_file" != "x/dev/null"; then
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20503 $as_echo "$as_me: updating cache $cache_file" >&6;}
20504 if test ! -f "$cache_file" || test -h "$cache_file"; then
20505 cat confcache >"$cache_file"
20507 case $cache_file in #(
20509 mv -f confcache "$cache_file"$$ &&
20510 mv -f "$cache_file"$$ "$cache_file" ;; #(
20512 mv -f confcache "$cache_file" ;;
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20518 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20523 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20524 # Let make expand exec_prefix.
20525 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20527 # Transform confdefs.h into DEFS.
20528 # Protect against shell expansion while executing Makefile rules.
20529 # Protect against Makefile macro expansion.
20531 # If the first sed substitution is executed (which looks for macros that
20532 # take arguments), then branch to the quote section. Otherwise,
20533 # look for a macro that doesn't take arguments.
20543 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20545 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20549 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20562 DEFS=`sed -n "$ac_script" confdefs.h`
20568 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20569 # 1. Remove the extension, and $U if already installed.
20570 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20571 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20572 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20573 # will be set to the directory where LIBOBJS objects are built.
20574 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20575 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20577 LIBOBJS=$ac_libobjs
20579 LTLIBOBJS=$ac_ltlibobjs
20582 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20583 as_fn_error $? "conditional \"AMDEP\" was never defined.
20584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20586 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20587 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20590 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20591 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20594 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20595 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20598 if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
20599 as_fn_error $? "conditional \"DOC\" was never defined.
20600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20602 if test -z "${LATEX_DOC_TRUE}" && test -z "${LATEX_DOC_FALSE}"; then
20603 as_fn_error $? "conditional \"LATEX_DOC\" was never defined.
20604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20607 : "${CONFIG_STATUS=./config.status}"
20609 ac_clean_files_save=$ac_clean_files
20610 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20612 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20614 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20616 # Generated by $as_me.
20617 # Run this file to recreate the current configuration.
20618 # Compiler output produced by configure, useful for debugging
20619 # configure, is in config.log if it exists.
20622 ac_cs_recheck=false
20625 SHELL=\${CONFIG_SHELL-$SHELL}
20628 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20629 ## -------------------- ##
20630 ## M4sh Initialization. ##
20631 ## -------------------- ##
20633 # Be more Bourne compatible
20634 DUALCASE=1; export DUALCASE # for MKS sh
20635 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20638 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20639 # is contrary to our usage. Disable this feature.
20640 alias -g '${1+"$@"}'='"$@"'
20641 setopt NO_GLOB_SUBST
20643 case `(set -o) 2>/dev/null` in #(
20655 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20656 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20657 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20658 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20659 # Prefer a ksh shell builtin over an external printf program on Solaris,
20660 # but without wasting forks for bash or zsh.
20661 if test -z "$BASH_VERSION$ZSH_VERSION" \
20662 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20663 as_echo='print -r --'
20664 as_echo_n='print -rn --'
20665 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20666 as_echo='printf %s\n'
20667 as_echo_n='printf %s'
20669 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20670 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20671 as_echo_n='/usr/ucb/echo -n'
20673 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20674 as_echo_n_body='eval
20678 expr "X$arg" : "X\\(.*\\)$as_nl";
20679 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20681 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20683 export as_echo_n_body
20684 as_echo_n='sh -c $as_echo_n_body as_echo'
20686 export as_echo_body
20687 as_echo='sh -c $as_echo_body as_echo'
20690 # The user is always right.
20691 if test "${PATH_SEPARATOR+set}" != set; then
20693 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20694 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20701 # We need space, tab and new line, in precisely that order. Quoting is
20702 # there to prevent editors from complaining about space-tab.
20703 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20704 # splitting by setting IFS to empty value.)
20707 # Find who we are. Look in the path if we contain no directory separator.
20710 *[\\/]* ) as_myself=$0 ;;
20711 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20712 for as_dir in $PATH
20715 test -z "$as_dir" && as_dir=.
20716 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20722 # We did not find ourselves, most probably we were run as `sh COMMAND'
20723 # in which case we are not to be found in the path.
20724 if test "x$as_myself" = x; then
20727 if test ! -f "$as_myself"; then
20728 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20732 # Unset variables that we do not need and which cause bugs (e.g. in
20733 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20734 # suppresses any "Segmentation fault" message there. '((' could
20735 # trigger a bug in pdksh 5.2.14.
20736 for as_var in BASH_ENV ENV MAIL MAILPATH
20737 do eval test x\${$as_var+set} = xset \
20738 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20751 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20754 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20755 # ----------------------------------------
20756 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20757 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20758 # script with STATUS, using 1 if that was 0.
20761 as_status=$1; test $as_status -eq 0 && as_status=1
20763 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20764 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20766 $as_echo "$as_me: error: $2" >&2
20767 as_fn_exit $as_status
20771 # as_fn_set_status STATUS
20772 # -----------------------
20773 # Set $? to STATUS, without forking.
20774 as_fn_set_status ()
20777 } # as_fn_set_status
20779 # as_fn_exit STATUS
20780 # -----------------
20781 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20785 as_fn_set_status $1
20791 # Portably unset VAR.
20794 { eval $1=; unset $1;}
20796 as_unset=as_fn_unset
20797 # as_fn_append VAR VALUE
20798 # ----------------------
20799 # Append the text in VALUE to the end of the definition contained in VAR. Take
20800 # advantage of any shell optimizations that allow amortized linear growth over
20801 # repeated appends, instead of the typical quadratic growth present in naive
20803 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20804 eval 'as_fn_append ()
20815 # as_fn_arith ARG...
20816 # ------------------
20817 # Perform arithmetic evaluation on the ARGs, and store the result in the
20818 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20819 # must be portable across $(()) and expr.
20820 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20821 eval 'as_fn_arith ()
20828 as_val=`expr "$@" || test $? -eq 1`
20833 if expr a : '\(a\)' >/dev/null 2>&1 &&
20834 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20840 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20841 as_basename=basename
20846 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20852 as_me=`$as_basename -- "$0" ||
20853 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20854 X"$0" : 'X\(//\)$' \| \
20855 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20857 sed '/^.*\/\([^/][^/]*\)\/*$/{
20871 # Avoid depending upon Character Ranges.
20872 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20873 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20874 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20875 as_cr_digits='0123456789'
20876 as_cr_alnum=$as_cr_Letters$as_cr_digits
20878 ECHO_C= ECHO_N= ECHO_T=
20879 case `echo -n x` in #(((((
20881 case `echo 'xy\c'` in
20882 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20884 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20891 rm -f conf$$ conf$$.exe conf$$.file
20892 if test -d conf$$.dir; then
20893 rm -f conf$$.dir/conf$$.file
20896 mkdir conf$$.dir 2>/dev/null
20898 if (echo >conf$$.file) 2>/dev/null; then
20899 if ln -s conf$$.file conf$$ 2>/dev/null; then
20901 # ... but there are two gotchas:
20902 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20903 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20904 # In both cases, we have to default to `cp -pR'.
20905 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20907 elif ln conf$$.file conf$$ 2>/dev/null; then
20915 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20916 rmdir conf$$.dir 2>/dev/null
20921 # Create "$as_dir" as a directory, including parents if necessary.
20926 -*) as_dir=./$as_dir;;
20928 test -d "$as_dir" || eval $as_mkdir_p || {
20932 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20933 *) as_qdir=$as_dir;;
20935 as_dirs="'$as_qdir' $as_dirs"
20936 as_dir=`$as_dirname -- "$as_dir" ||
20937 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20938 X"$as_dir" : 'X\(//\)[^/]' \| \
20939 X"$as_dir" : 'X\(//\)$' \| \
20940 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20941 $as_echo X"$as_dir" |
20942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20946 /^X\(\/\/\)[^/].*/{
20959 test -d "$as_dir" && break
20961 test -z "$as_dirs" || eval "mkdir $as_dirs"
20962 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20966 if mkdir -p . 2>/dev/null; then
20967 as_mkdir_p='mkdir -p "$as_dir"'
20969 test -d ./-p && rmdir ./-p
20974 # as_fn_executable_p FILE
20975 # -----------------------
20976 # Test if FILE is an executable regular file.
20977 as_fn_executable_p ()
20979 test -f "$1" && test -x "$1"
20980 } # as_fn_executable_p
20981 as_test_x='test -x'
20982 as_executable_p=as_fn_executable_p
20984 # Sed expression to map a string onto a valid CPP name.
20985 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20987 # Sed expression to map a string onto a valid variable name.
20988 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20992 ## ----------------------------------- ##
20993 ## Main body of $CONFIG_STATUS script. ##
20994 ## ----------------------------------- ##
20996 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20999 # Save the log message, to keep $0 and so on meaningful, and to
21000 # report actual input values of CONFIG_FILES etc. instead of their
21001 # values after options handling.
21003 This file was extended by $as_me, which was
21004 generated by GNU Autoconf 2.69. Invocation command line was
21006 CONFIG_FILES = $CONFIG_FILES
21007 CONFIG_HEADERS = $CONFIG_HEADERS
21008 CONFIG_LINKS = $CONFIG_LINKS
21009 CONFIG_COMMANDS = $CONFIG_COMMANDS
21012 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21017 case $ac_config_files in *"
21018 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21024 # Files that config.status was made for.
21025 config_files="$ac_config_files"
21026 config_commands="$ac_config_commands"
21030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21032 \`$as_me' instantiates files and other configuration actions
21033 from templates according to the current configuration. Unless the files
21034 and actions are specified as TAGs, all are instantiated by default.
21036 Usage: $0 [OPTION]... [TAG]...
21038 -h, --help print this help, then exit
21039 -V, --version print version number and configuration settings, then exit
21040 --config print configuration, then exit
21041 -q, --quiet, --silent
21042 do not print progress messages
21043 -d, --debug don't remove temporary files
21044 --recheck update $as_me by reconfiguring in the same conditions
21045 --file=FILE[:TEMPLATE]
21046 instantiate the configuration file FILE
21048 Configuration files:
21051 Configuration commands:
21054 Report bugs to the package provider."
21057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21058 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21061 configured by $0, generated by GNU Autoconf 2.69,
21062 with options \\"\$ac_cs_config\\"
21064 Copyright (C) 2012 Free Software Foundation, Inc.
21065 This config.status script is free software; the Free Software Foundation
21066 gives unlimited permission to copy, distribute and modify it."
21072 test -n "\$AWK" || AWK=awk
21075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21076 # The default lists apply if the user does not specify any file.
21082 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21083 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21087 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21099 # Handling of the options.
21100 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21102 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21103 $as_echo "$ac_cs_version"; exit ;;
21104 --config | --confi | --conf | --con | --co | --c )
21105 $as_echo "$ac_cs_config"; exit ;;
21106 --debug | --debu | --deb | --de | --d | -d )
21108 --file | --fil | --fi | --f )
21111 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21112 '') as_fn_error $? "missing file argument" ;;
21114 as_fn_append CONFIG_FILES " '$ac_optarg'"
21115 ac_need_defaults=false;;
21116 --he | --h | --help | --hel | -h )
21117 $as_echo "$ac_cs_usage"; exit ;;
21118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21119 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21122 # This is an error.
21123 -*) as_fn_error $? "unrecognized option: \`$1'
21124 Try \`$0 --help' for more information." ;;
21126 *) as_fn_append ac_config_targets " $1"
21127 ac_need_defaults=false ;;
21133 ac_configure_extra_args=
21135 if $ac_cs_silent; then
21137 ac_configure_extra_args="$ac_configure_extra_args --silent"
21141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21142 if \$ac_cs_recheck; then
21143 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21145 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21146 CONFIG_SHELL='$SHELL'
21147 export CONFIG_SHELL
21152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21156 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21157 ## Running $as_me. ##
21163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21167 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21173 # Handling of arguments.
21174 for ac_config_target in $ac_config_targets
21176 case $ac_config_target in
21177 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21178 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21179 "liblog4cxx.pc") CONFIG_FILES="$CONFIG_FILES liblog4cxx.pc" ;;
21180 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21181 "src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
21182 "src/main/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/cpp/Makefile" ;;
21183 "src/main/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/Makefile" ;;
21184 "src/main/include/log4cxx/log4cxx.h") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/log4cxx.h" ;;
21185 "src/main/include/log4cxx/private/log4cxx_private.h") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/private/log4cxx_private.h" ;;
21186 "src/main/include/log4cxx/private/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/private/Makefile" ;;
21187 "src/main/include/log4cxx/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/Makefile" ;;
21188 "src/main/include/log4cxx/helpers/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/helpers/Makefile" ;;
21189 "src/main/include/log4cxx/net/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/net/Makefile" ;;
21190 "src/main/include/log4cxx/nt/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/nt/Makefile" ;;
21191 "src/main/include/log4cxx/spi/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/spi/Makefile" ;;
21192 "src/main/include/log4cxx/spi/location/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/spi/location/Makefile" ;;
21193 "src/main/include/log4cxx/varia/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/varia/Makefile" ;;
21194 "src/main/include/log4cxx/xml/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/xml/Makefile" ;;
21195 "src/main/include/log4cxx/config/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/config/Makefile" ;;
21196 "src/main/include/log4cxx/db/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/db/Makefile" ;;
21197 "src/main/include/log4cxx/rolling/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/rolling/Makefile" ;;
21198 "src/main/include/log4cxx/pattern/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/pattern/Makefile" ;;
21199 "src/main/include/log4cxx/filter/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/include/log4cxx/filter/Makefile" ;;
21200 "src/site/Makefile") CONFIG_FILES="$CONFIG_FILES src/site/Makefile" ;;
21201 "src/site/doxy/Makefile") CONFIG_FILES="$CONFIG_FILES src/site/doxy/Makefile" ;;
21202 "src/site/doxy/Doxyfile") CONFIG_FILES="$CONFIG_FILES src/site/doxy/Doxyfile" ;;
21203 "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
21204 "src/test/resources/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/Makefile" ;;
21205 "src/test/resources/input/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/input/Makefile" ;;
21206 "src/test/resources/input/ndc/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/input/ndc/Makefile" ;;
21207 "src/test/resources/input/rolling/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/input/rolling/Makefile" ;;
21208 "src/test/resources/input/xml/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/input/xml/Makefile" ;;
21209 "src/test/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/cpp/Makefile" ;;
21210 "src/test/resources/witness/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/witness/Makefile" ;;
21211 "src/test/resources/witness/encoding/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/witness/encoding/Makefile" ;;
21212 "src/test/resources/witness/ndc/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/witness/ndc/Makefile" ;;
21213 "src/test/resources/witness/rolling/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/resources/witness/rolling/Makefile" ;;
21214 "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
21215 "src/examples/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/cpp/Makefile" ;;
21217 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21222 # If the user did not use the arguments to specify the items to instantiate,
21223 # then the envvar interface is used. Set only those that are not.
21224 # We use the long form for the default assignment because of an extremely
21225 # bizarre bug on SunOS 4.1.3.
21226 if $ac_need_defaults; then
21227 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21228 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21231 # Have a temporary directory for convenience. Make it in the build tree
21232 # simply because there is no reason against having it here, and in addition,
21233 # creating and moving files from /tmp can sometimes cause problems.
21234 # Hook for its removal unless debugging.
21235 # Note that there is a small window in which the directory will not be cleaned:
21236 # after its creation but before its name has been assigned to `$tmp'.
21240 trap 'exit_status=$?
21241 : "${ac_tmp:=$tmp}"
21242 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21244 trap 'as_fn_exit 1' 1 2 13 15
21246 # Create a (secure) tmp directory for tmp files.
21249 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21253 tmp=./conf$$-$RANDOM
21254 (umask 077 && mkdir "$tmp")
21255 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21258 # Set up the scripts for CONFIG_FILES section.
21259 # No need to generate them if there are no CONFIG_FILES.
21260 # This happens for instance with `./config.status config.h'.
21261 if test -n "$CONFIG_FILES"; then
21264 ac_cr=`echo X | tr X '\015'`
21265 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21266 # But we know of no other shell where ac_cr would be empty at this
21267 # point, so we can use a bashism as a fallback.
21268 if test "x$ac_cr" = x; then
21269 eval ac_cr=\$\'\\r\'
21271 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21272 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21275 ac_cs_awk_cr=$ac_cr
21278 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21283 echo "cat >conf$$subs.awk <<_ACEOF" &&
21284 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21286 } >conf$$subs.sh ||
21287 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21288 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21290 for ac_last_try in false false false false false :; do
21291 . ./conf$$subs.sh ||
21292 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21294 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21295 if test $ac_delim_n = $ac_delim_num; then
21297 elif $ac_last_try; then
21298 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21300 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21303 rm -f conf$$subs.sh
21305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21306 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21310 s/^/S["/; s/!.*/"]=/
21320 s/\(.\{148\}\)..*/\1/
21322 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21327 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21334 s/\(.\{148\}\)..*/\1/
21336 s/["\\]/\\&/g; s/^/"/; s/$/"/
21340 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21345 ' <conf$$subs.awk | sed '
21350 ' >>$CONFIG_STATUS || ac_write_fail=1
21351 rm -f conf$$subs.awk
21352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21354 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21355 for (key in S) S_is_set[key] = 1
21361 nfields = split(line, field, "@")
21363 len = length(field[1])
21364 for (i = 2; i < nfields; i++) {
21366 keylen = length(key)
21367 if (S_is_set[key]) {
21369 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21370 len += length(value) + length(field[++i])
21381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21382 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21383 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21386 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21387 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21390 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21391 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21392 # trailing colons and then remove the whole line if VPATH becomes empty
21393 # (actually we leave an empty line to preserve line numbers).
21394 if test "x$srcdir" = x.; then
21395 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21414 fi # test -n "$CONFIG_FILES"
21417 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
21422 :[FHLC]) ac_mode=$ac_tag; continue;;
21424 case $ac_mode$ac_tag in
21426 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21427 :[FH]-) ac_tag=-:-;;
21428 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21445 -) ac_f="$ac_tmp/stdin";;
21446 *) # Look for the file first in the build tree, then in the source tree
21447 # (if the path is not absolute). The absolute path cannot be DOS-style,
21448 # because $ac_f cannot contain `:'.
21452 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21454 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21456 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21457 as_fn_append ac_file_inputs " '$ac_f'"
21460 # Let's still pretend it is `configure' which instantiates (i.e., don't
21461 # use $as_me), people would be surprised to read:
21462 # /* config.h. Generated by config.status. */
21463 configure_input='Generated from '`
21464 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21466 if test x"$ac_file" != x-; then
21467 configure_input="$ac_file. $configure_input"
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21469 $as_echo "$as_me: creating $ac_file" >&6;}
21471 # Neutralize special characters interpreted by sed in replacement strings.
21472 case $configure_input in #(
21473 *\&* | *\|* | *\\* )
21474 ac_sed_conf_input=`$as_echo "$configure_input" |
21475 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21476 *) ac_sed_conf_input=$configure_input;;
21480 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21481 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21486 ac_dir=`$as_dirname -- "$ac_file" ||
21487 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21488 X"$ac_file" : 'X\(//\)[^/]' \| \
21489 X"$ac_file" : 'X\(//\)$' \| \
21490 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21491 $as_echo X"$ac_file" |
21492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21496 /^X\(\/\/\)[^/].*/{
21509 as_dir="$ac_dir"; as_fn_mkdir_p
21513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21515 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21516 # A ".." for each directory in $ac_dir_suffix.
21517 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21518 case $ac_top_builddir_sub in
21519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21523 ac_abs_top_builddir=$ac_pwd
21524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21525 # for backward compatibility:
21526 ac_top_builddir=$ac_top_build_prefix
21529 .) # We are building in place.
21531 ac_top_srcdir=$ac_top_builddir_sub
21532 ac_abs_top_srcdir=$ac_pwd ;;
21533 [\\/]* | ?:[\\/]* ) # Absolute name.
21534 ac_srcdir=$srcdir$ac_dir_suffix;
21535 ac_top_srcdir=$srcdir
21536 ac_abs_top_srcdir=$srcdir ;;
21537 *) # Relative name.
21538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21539 ac_top_srcdir=$ac_top_build_prefix$srcdir
21540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21552 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21553 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21558 # If the template does not know about datarootdir, expand it.
21559 # FIXME: This hack should be removed a few years after 2.60.
21560 ac_datarootdir_hack=; ac_datarootdir_seen=
21571 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21572 *datarootdir*) ac_datarootdir_seen=yes;;
21573 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21575 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21578 ac_datarootdir_hack='
21579 s&@datadir@&$datadir&g
21580 s&@docdir@&$docdir&g
21581 s&@infodir@&$infodir&g
21582 s&@localedir@&$localedir&g
21583 s&@mandir@&$mandir&g
21584 s&\\\${datarootdir}&$datarootdir&g' ;;
21588 # Neutralize VPATH when `$srcdir' = `.'.
21589 # Shell code in configure.ac might set extrasub.
21590 # FIXME: do we really want to maintain this feature?
21591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21592 ac_sed_extra="$ac_vpsub
21595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21597 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21598 s|@configure_input@|$ac_sed_conf_input|;t t
21599 s&@top_builddir@&$ac_top_builddir_sub&;t t
21600 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21601 s&@srcdir@&$ac_srcdir&;t t
21602 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21603 s&@top_srcdir@&$ac_top_srcdir&;t t
21604 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21605 s&@builddir@&$ac_builddir&;t t
21606 s&@abs_builddir@&$ac_abs_builddir&;t t
21607 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21608 s&@INSTALL@&$ac_INSTALL&;t t
21609 $ac_datarootdir_hack
21611 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21612 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21614 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21615 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21616 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21617 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21619 which seems to be undefined. Please make sure it is defined" >&5
21620 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21621 which seems to be undefined. Please make sure it is defined" >&2;}
21623 rm -f "$ac_tmp/stdin"
21625 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21626 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21628 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21632 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21633 $as_echo "$as_me: executing $ac_file commands" >&6;}
21638 case $ac_file$ac_mode in
21639 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21640 # Strip MF so we end up with the name of the file.
21641 mf=`echo "$mf" | sed -e 's/:.*$//'`
21642 # Check whether this is an Automake generated Makefile or not.
21643 # We used to match only the files named `Makefile.in', but
21644 # some people rename them; so instead we look at the file content.
21645 # Grep'ing the first line is not enough: some people post-process
21646 # each Makefile.in and add a new line on top of each file to say so.
21647 # So let's grep whole file.
21648 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21649 dirpart=`$as_dirname -- "$mf" ||
21650 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21651 X"$mf" : 'X\(//\)[^/]' \| \
21652 X"$mf" : 'X\(//\)$' \| \
21653 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21659 /^X\(\/\/\)[^/].*/{
21675 # Extract the definition of DEPDIR, am__include, and am__quote
21676 # from the Makefile without running `make'.
21677 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21678 test -z "$DEPDIR" && continue
21679 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21680 test -z "am__include" && continue
21681 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21682 # When using ansi2knr, U may be empty or an underscore; expand it
21683 U=`sed -n 's/^U = //p' < "$mf"`
21684 # Find all dependency output files, they are included files with
21685 # $(DEPDIR) in their names. We invoke sed twice because it is the
21686 # simplest approach to changing $(DEPDIR) to its actual value in the
21688 for file in `sed -n "
21689 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21690 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21691 # Make sure the directory exists.
21692 test -f "$dirpart/$file" && continue
21693 fdir=`$as_dirname -- "$file" ||
21694 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21695 X"$file" : 'X\(//\)[^/]' \| \
21696 X"$file" : 'X\(//\)$' \| \
21697 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21698 $as_echo X"$file" |
21699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21703 /^X\(\/\/\)[^/].*/{
21716 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21717 # echo "creating $dirpart/$file"
21718 echo '# dummy' > "$dirpart/$file"
21729 ac_clean_files=$ac_clean_files_save
21731 test $ac_write_fail = 0 ||
21732 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21735 # configure is writing to config.log, and then calls config.status.
21736 # config.status does its own redirection, appending to config.log.
21737 # Unfortunately, on DOS this fails, as config.log is still kept open
21738 # by configure, so config.status won't be able to write to it; its
21739 # output is simply discarded. So we exec the FD to /dev/null,
21740 # effectively closing config.log, so it can be properly (re)opened and
21741 # appended to by config.status. When coming back to configure, we
21742 # need to make the FD available again.
21743 if test "$no_create" != yes; then
21745 ac_config_status_args=
21746 test "$silent" = yes &&
21747 ac_config_status_args="$ac_config_status_args --quiet"
21749 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21751 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21752 # would make configure fail if this is the last instruction.
21753 $ac_cs_success || as_fn_exit 1
21755 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21757 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}