2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir=.
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 *v*x* | *x*v* ) as_opts=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir=./$as_dir;;
293 test -d "$as_dir" || eval $as_mkdir_p || {
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362 as_val=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status=$1; test $as_status -eq 0 && as_status=1
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 elif ln conf$$.file conf$$ 2>/dev/null; then
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
503 test -d ./-p && rmdir ./-p
507 if test -x / >/dev/null 2>&1; then
510 if ls -dL / >/dev/null 2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
543 # Remove one level of quotation (which was required for Make).
544 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 if test "X$1" = X--no-reexec; then
550 # Discard the --no-reexec flag, and continue.
552 elif test "X$1" = X--fallback-echo; then
553 # Avoid inline document here, it may be left over
555 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556 # Yippee, $echo works!
559 # Restart under the correct shell.
560 exec $SHELL "$0" --no-reexec ${1+"$@"}
563 if test "X$1" = X--fallback-echo; then
564 # used as fallback echo
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
576 if test -z "$ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582 echo_test_string=`eval $cmd` &&
583 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
590 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592 test "X$echo_testing_string" = "X$echo_test_string"; then
595 # The Solaris, AIX, and Digital Unix default echo programs unquote
596 # backslashes. This makes it impossible to quote backslashes using
597 # echo "$something" | sed 's/\\/\\\\/g'
599 # So, first we look for a working echo in the user's PATH.
601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602 for dir in $PATH /usr/ucb; do
604 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
614 if test "X$echo" = Xecho; then
615 # We didn't find a better echo, so look for alternatives.
616 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618 test "X$echo_testing_string" = "X$echo_test_string"; then
619 # This shell has a builtin print -r that does the trick.
621 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622 test "X$CONFIG_SHELL" != X/bin/ksh; then
623 # If we have ksh, try running configure again with it.
624 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625 export ORIGINAL_CONFIG_SHELL
626 CONFIG_SHELL=/bin/ksh
628 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
632 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
637 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
643 SHELL="$CONFIG_SHELL"
645 echo="$CONFIG_SHELL $0 --fallback-echo"
646 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647 test "X$echo_testing_string" = 'X\t' &&
648 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 echo="$CONFIG_SHELL $0 --fallback-echo"
652 # maybe with a smaller string...
655 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
663 if test "$prev" != 'sed 50q "$0"'; then
664 echo_test_string=`eval $prev`
665 export echo_test_string
666 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
668 # Oops. We lost completely, so just stick with echo.
677 # Copy echo and quote the copy suitably for passing to libtool from
678 # the Makefile, instead of quoting the original, which is used later.
680 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
687 tagnames=${tagnames+${tagnames},}CXX
689 tagnames=${tagnames+${tagnames},}F77
691 test -n "$DJDIR" || exec 7<&0 </dev/null
695 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
696 # so uname gets run too.
697 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
702 ac_default_prefix=/usr/local
704 ac_config_libobj_dir=.
711 # Identity of this package.
719 ac_unique_file="src/control/control.c"
720 ac_default_prefix=/usr
721 # Factoring default headers for most tests.
722 ac_includes_default="\
724 #ifdef HAVE_SYS_TYPES_H
725 # include <sys/types.h>
727 #ifdef HAVE_SYS_STAT_H
728 # include <sys/stat.h>
734 # ifdef HAVE_STDLIB_H
739 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
744 #ifdef HAVE_STRINGS_H
745 # include <strings.h>
747 #ifdef HAVE_INTTYPES_H
748 # include <inttypes.h>
757 ac_subst_vars='am__EXEEXT_FALSE
761 BUILD_CTL_PLUGIN_EXT_FALSE
762 BUILD_CTL_PLUGIN_EXT_TRUE
763 BUILD_CTL_PLUGIN_SHM_FALSE
764 BUILD_CTL_PLUGIN_SHM_TRUE
765 BUILD_CTL_PLUGIN_FALSE
766 BUILD_CTL_PLUGIN_TRUE
767 BUILD_PCM_PLUGIN_MMAP_EMUL_FALSE
768 BUILD_PCM_PLUGIN_MMAP_EMUL_TRUE
769 BUILD_PCM_PLUGIN_IOPLUG_FALSE
770 BUILD_PCM_PLUGIN_IOPLUG_TRUE
771 BUILD_PCM_PLUGIN_EXTPLUG_FALSE
772 BUILD_PCM_PLUGIN_EXTPLUG_TRUE
773 BUILD_PCM_PLUGIN_SOFTVOL_FALSE
774 BUILD_PCM_PLUGIN_SOFTVOL_TRUE
775 BUILD_PCM_PLUGIN_IEC958_FALSE
776 BUILD_PCM_PLUGIN_IEC958_TRUE
777 BUILD_PCM_PLUGIN_ASYM_FALSE
778 BUILD_PCM_PLUGIN_ASYM_TRUE
779 BUILD_PCM_PLUGIN_DSNOOP_FALSE
780 BUILD_PCM_PLUGIN_DSNOOP_TRUE
781 BUILD_PCM_PLUGIN_DSHARE_FALSE
782 BUILD_PCM_PLUGIN_DSHARE_TRUE
783 BUILD_PCM_PLUGIN_DMIX_FALSE
784 BUILD_PCM_PLUGIN_DMIX_TRUE
785 BUILD_PCM_PLUGIN_LADSPA_FALSE
786 BUILD_PCM_PLUGIN_LADSPA_TRUE
787 BUILD_PCM_PLUGIN_LFLOAT_FALSE
788 BUILD_PCM_PLUGIN_LFLOAT_TRUE
789 BUILD_PCM_PLUGIN_HOOKS_FALSE
790 BUILD_PCM_PLUGIN_HOOKS_TRUE
791 BUILD_PCM_PLUGIN_METER_FALSE
792 BUILD_PCM_PLUGIN_METER_TRUE
793 BUILD_PCM_PLUGIN_SHARE_FALSE
794 BUILD_PCM_PLUGIN_SHARE_TRUE
795 BUILD_PCM_PLUGIN_EMPTY_FALSE
796 BUILD_PCM_PLUGIN_EMPTY_TRUE
797 BUILD_PCM_PLUGIN_NULL_FALSE
798 BUILD_PCM_PLUGIN_NULL_TRUE
799 BUILD_PCM_PLUGIN_FILE_FALSE
800 BUILD_PCM_PLUGIN_FILE_TRUE
801 BUILD_PCM_PLUGIN_SHM_FALSE
802 BUILD_PCM_PLUGIN_SHM_TRUE
803 BUILD_PCM_PLUGIN_MULTI_FALSE
804 BUILD_PCM_PLUGIN_MULTI_TRUE
805 BUILD_PCM_PLUGIN_PLUG_FALSE
806 BUILD_PCM_PLUGIN_PLUG_TRUE
807 BUILD_PCM_PLUGIN_RATE_FALSE
808 BUILD_PCM_PLUGIN_RATE_TRUE
809 BUILD_PCM_PLUGIN_ADPCM_FALSE
810 BUILD_PCM_PLUGIN_ADPCM_TRUE
811 BUILD_PCM_PLUGIN_ALAW_FALSE
812 BUILD_PCM_PLUGIN_ALAW_TRUE
813 BUILD_PCM_PLUGIN_MULAW_FALSE
814 BUILD_PCM_PLUGIN_MULAW_TRUE
815 BUILD_PCM_PLUGIN_ROUTE_FALSE
816 BUILD_PCM_PLUGIN_ROUTE_TRUE
817 BUILD_PCM_PLUGIN_LINEAR_FALSE
818 BUILD_PCM_PLUGIN_LINEAR_TRUE
819 BUILD_PCM_PLUGIN_COPY_FALSE
820 BUILD_PCM_PLUGIN_COPY_TRUE
821 BUILD_PCM_PLUGIN_FALSE
822 BUILD_PCM_PLUGIN_TRUE
841 KEEP_OLD_SYMBOLS_FALSE
842 KEEP_OLD_SYMBOLS_TRUE
847 SYMBOLIC_FUNCTIONS_FALSE
848 SYMBOLIC_FUNCTIONS_TRUE
849 VERSIONED_SYMBOLS_FALSE
850 VERSIONED_SYMBOLS_TRUE
907 INSTALL_STRIP_PROGRAM
957 program_transform_name
970 enable_option_checking
972 enable_dependency_tracking
983 enable_symbolic_functions
1009 ac_precious_vars='build_alias
1026 # Initialize some variables set by options.
1028 ac_init_version=false
1029 ac_unrecognized_opts=
1030 ac_unrecognized_sep=
1031 # The variables have the same names as the options, with
1032 # dashes changed to underlines.
1033 cache_file=/dev/null
1040 program_transform_name=s,x,x,
1048 # Installation directory options.
1049 # These are left unexpanded so users can "make install exec_prefix=/foo"
1050 # and all the variables that are supposed to be based on exec_prefix
1051 # by default will actually change.
1052 # Use braces instead of parens because sh, perl, etc. also accept them.
1053 # (The list follows the same order as the GNU Coding Standards.)
1054 bindir='${exec_prefix}/bin'
1055 sbindir='${exec_prefix}/sbin'
1056 libexecdir='${exec_prefix}/libexec'
1057 datarootdir='${prefix}/share'
1058 datadir='${datarootdir}'
1059 sysconfdir='${prefix}/etc'
1060 sharedstatedir='${prefix}/com'
1061 localstatedir='${prefix}/var'
1062 includedir='${prefix}/include'
1063 oldincludedir='/usr/include'
1064 docdir='${datarootdir}/doc/${PACKAGE}'
1065 infodir='${datarootdir}/info'
1070 libdir='${exec_prefix}/lib'
1071 localedir='${datarootdir}/locale'
1072 mandir='${datarootdir}/man'
1078 # If the previous option needs an argument, assign it.
1079 if test -n "$ac_prev"; then
1080 eval $ac_prev=\$ac_option
1086 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1091 # Accept the important Cygnus configure options, so we can diagnose typos.
1093 case $ac_dashdash$ac_option in
1097 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1099 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1100 bindir=$ac_optarg ;;
1102 -build | --build | --buil | --bui | --bu)
1103 ac_prev=build_alias ;;
1104 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1105 build_alias=$ac_optarg ;;
1107 -cache-file | --cache-file | --cache-fil | --cache-fi \
1108 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1109 ac_prev=cache_file ;;
1110 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1111 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1112 cache_file=$ac_optarg ;;
1114 --config-cache | -C)
1115 cache_file=config.cache ;;
1117 -datadir | --datadir | --datadi | --datad)
1119 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1120 datadir=$ac_optarg ;;
1122 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1123 | --dataroo | --dataro | --datar)
1124 ac_prev=datarootdir ;;
1125 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1126 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1127 datarootdir=$ac_optarg ;;
1129 -disable-* | --disable-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid feature name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1138 "enable_$ac_useropt"
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1143 eval enable_$ac_useropt=no ;;
1145 -docdir | --docdir | --docdi | --doc | --do)
1147 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1148 docdir=$ac_optarg ;;
1150 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1152 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1153 dvidir=$ac_optarg ;;
1155 -enable-* | --enable-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid feature name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1164 "enable_$ac_useropt"
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1169 eval enable_$ac_useropt=\$ac_optarg ;;
1171 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1172 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1173 | --exec | --exe | --ex)
1174 ac_prev=exec_prefix ;;
1175 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1176 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1177 | --exec=* | --exe=* | --ex=*)
1178 exec_prefix=$ac_optarg ;;
1180 -gas | --gas | --ga | --g)
1181 # Obsolete; use --with-gas.
1184 -help | --help | --hel | --he | -h)
1185 ac_init_help=long ;;
1186 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1187 ac_init_help=recursive ;;
1188 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1189 ac_init_help=short ;;
1191 -host | --host | --hos | --ho)
1192 ac_prev=host_alias ;;
1193 -host=* | --host=* | --hos=* | --ho=*)
1194 host_alias=$ac_optarg ;;
1196 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1198 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1200 htmldir=$ac_optarg ;;
1202 -includedir | --includedir | --includedi | --included | --include \
1203 | --includ | --inclu | --incl | --inc)
1204 ac_prev=includedir ;;
1205 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1206 | --includ=* | --inclu=* | --incl=* | --inc=*)
1207 includedir=$ac_optarg ;;
1209 -infodir | --infodir | --infodi | --infod | --info | --inf)
1211 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1212 infodir=$ac_optarg ;;
1214 -libdir | --libdir | --libdi | --libd)
1216 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1217 libdir=$ac_optarg ;;
1219 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1220 | --libexe | --libex | --libe)
1221 ac_prev=libexecdir ;;
1222 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1223 | --libexe=* | --libex=* | --libe=*)
1224 libexecdir=$ac_optarg ;;
1226 -localedir | --localedir | --localedi | --localed | --locale)
1227 ac_prev=localedir ;;
1228 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1229 localedir=$ac_optarg ;;
1231 -localstatedir | --localstatedir | --localstatedi | --localstated \
1232 | --localstate | --localstat | --localsta | --localst | --locals)
1233 ac_prev=localstatedir ;;
1234 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1235 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1236 localstatedir=$ac_optarg ;;
1238 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1240 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1241 mandir=$ac_optarg ;;
1243 -nfp | --nfp | --nf)
1244 # Obsolete; use --without-fp.
1247 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1248 | --no-cr | --no-c | -n)
1251 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1252 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1255 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1256 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1257 | --oldin | --oldi | --old | --ol | --o)
1258 ac_prev=oldincludedir ;;
1259 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1260 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1261 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1262 oldincludedir=$ac_optarg ;;
1264 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1266 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1267 prefix=$ac_optarg ;;
1269 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1270 | --program-pre | --program-pr | --program-p)
1271 ac_prev=program_prefix ;;
1272 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1273 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1274 program_prefix=$ac_optarg ;;
1276 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1277 | --program-suf | --program-su | --program-s)
1278 ac_prev=program_suffix ;;
1279 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1280 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1281 program_suffix=$ac_optarg ;;
1283 -program-transform-name | --program-transform-name \
1284 | --program-transform-nam | --program-transform-na \
1285 | --program-transform-n | --program-transform- \
1286 | --program-transform | --program-transfor \
1287 | --program-transfo | --program-transf \
1288 | --program-trans | --program-tran \
1289 | --progr-tra | --program-tr | --program-t)
1290 ac_prev=program_transform_name ;;
1291 -program-transform-name=* | --program-transform-name=* \
1292 | --program-transform-nam=* | --program-transform-na=* \
1293 | --program-transform-n=* | --program-transform-=* \
1294 | --program-transform=* | --program-transfor=* \
1295 | --program-transfo=* | --program-transf=* \
1296 | --program-trans=* | --program-tran=* \
1297 | --progr-tra=* | --program-tr=* | --program-t=*)
1298 program_transform_name=$ac_optarg ;;
1300 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1302 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1303 pdfdir=$ac_optarg ;;
1305 -psdir | --psdir | --psdi | --psd | --ps)
1307 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1311 | -silent | --silent | --silen | --sile | --sil)
1314 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1316 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1318 sbindir=$ac_optarg ;;
1320 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1321 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1322 | --sharedst | --shareds | --shared | --share | --shar \
1324 ac_prev=sharedstatedir ;;
1325 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1326 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1327 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1329 sharedstatedir=$ac_optarg ;;
1331 -site | --site | --sit)
1333 -site=* | --site=* | --sit=*)
1336 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1338 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1339 srcdir=$ac_optarg ;;
1341 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1342 | --syscon | --sysco | --sysc | --sys | --sy)
1343 ac_prev=sysconfdir ;;
1344 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1345 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1346 sysconfdir=$ac_optarg ;;
1348 -target | --target | --targe | --targ | --tar | --ta | --t)
1349 ac_prev=target_alias ;;
1350 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1351 target_alias=$ac_optarg ;;
1353 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1356 -version | --version | --versio | --versi | --vers | -V)
1357 ac_init_version=: ;;
1360 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1361 # Reject names that are not valid shell variable names.
1362 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1363 as_fn_error $? "invalid package name: $ac_useropt"
1364 ac_useropt_orig=$ac_useropt
1365 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1366 case $ac_user_opts in
1370 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1371 ac_unrecognized_sep=', ';;
1373 eval with_$ac_useropt=\$ac_optarg ;;
1375 -without-* | --without-*)
1376 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1377 # Reject names that are not valid shell variable names.
1378 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1379 as_fn_error $? "invalid package name: $ac_useropt"
1380 ac_useropt_orig=$ac_useropt
1381 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1382 case $ac_user_opts in
1386 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1387 ac_unrecognized_sep=', ';;
1389 eval with_$ac_useropt=no ;;
1392 # Obsolete; use --with-x.
1395 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1396 | --x-incl | --x-inc | --x-in | --x-i)
1397 ac_prev=x_includes ;;
1398 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1399 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1400 x_includes=$ac_optarg ;;
1402 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1403 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1404 ac_prev=x_libraries ;;
1405 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1406 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1407 x_libraries=$ac_optarg ;;
1409 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1410 Try \`$0 --help' for more information"
1414 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1415 # Reject names that are not valid shell variable names.
1416 case $ac_envvar in #(
1417 '' | [0-9]* | *[!_$as_cr_alnum]* )
1418 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1420 eval $ac_envvar=\$ac_optarg
1421 export $ac_envvar ;;
1424 # FIXME: should be removed in autoconf 3.0.
1425 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1426 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1427 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1428 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1434 if test -n "$ac_prev"; then
1435 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1436 as_fn_error $? "missing argument to $ac_option"
1439 if test -n "$ac_unrecognized_opts"; then
1440 case $enable_option_checking in
1442 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1443 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1447 # Check all directory arguments for consistency.
1448 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1449 datadir sysconfdir sharedstatedir localstatedir includedir \
1450 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1451 libdir localedir mandir
1453 eval ac_val=\$$ac_var
1454 # Remove trailing slashes.
1457 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1458 eval $ac_var=\$ac_val;;
1460 # Be sure to have absolute directory names.
1462 [\\/$]* | ?:[\\/]* ) continue;;
1463 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1465 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1468 # There might be people who depend on the old broken behavior: `$host'
1469 # used to hold the argument of --host etc.
1470 # FIXME: To remove some day.
1473 target=$target_alias
1475 # FIXME: To remove some day.
1476 if test "x$host_alias" != x; then
1477 if test "x$build_alias" = x; then
1478 cross_compiling=maybe
1479 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1480 If a cross compiler is detected then cross compile mode will be used" >&2
1481 elif test "x$build_alias" != "x$host_alias"; then
1487 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1489 test "$silent" = yes && exec 6>/dev/null
1492 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1493 ac_ls_di=`ls -di .` &&
1494 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1495 as_fn_error $? "working directory cannot be determined"
1496 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1497 as_fn_error $? "pwd does not report name of working directory"
1500 # Find the source files, if location was not specified.
1501 if test -z "$srcdir"; then
1502 ac_srcdir_defaulted=yes
1503 # Try the directory containing this script, then the parent directory.
1504 ac_confdir=`$as_dirname -- "$as_myself" ||
1505 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1506 X"$as_myself" : 'X\(//\)[^/]' \| \
1507 X"$as_myself" : 'X\(//\)$' \| \
1508 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1509 $as_echo X"$as_myself" |
1510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1528 if test ! -r "$srcdir/$ac_unique_file"; then
1532 ac_srcdir_defaulted=no
1534 if test ! -r "$srcdir/$ac_unique_file"; then
1535 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1536 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1538 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1540 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1542 # When building in place, set srcdir=.
1543 if test "$ac_abs_confdir" = "$ac_pwd"; then
1546 # Remove unnecessary trailing slashes from srcdir.
1547 # Double slashes in file names in object file debugging info
1548 # mess up M-x gdb in Emacs.
1550 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1552 for ac_var in $ac_precious_vars; do
1553 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1554 eval ac_env_${ac_var}_value=\$${ac_var}
1555 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1556 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1560 # Report the --help message.
1562 if test "$ac_init_help" = "long"; then
1563 # Omit some internal or obsolete options to make the list less imposing.
1564 # This message is too long to be a string in the A/UX 3.1 sh.
1566 \`configure' configures this package to adapt to many kinds of systems.
1568 Usage: $0 [OPTION]... [VAR=VALUE]...
1570 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1571 VAR=VALUE. See below for descriptions of some of the useful variables.
1573 Defaults for the options are specified in brackets.
1576 -h, --help display this help and exit
1577 --help=short display options specific to this package
1578 --help=recursive display the short help of all the included packages
1579 -V, --version display version information and exit
1580 -q, --quiet, --silent do not print \`checking ...' messages
1581 --cache-file=FILE cache test results in FILE [disabled]
1582 -C, --config-cache alias for \`--cache-file=config.cache'
1583 -n, --no-create do not create output files
1584 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1586 Installation directories:
1587 --prefix=PREFIX install architecture-independent files in PREFIX
1588 [$ac_default_prefix]
1589 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1592 By default, \`make install' will install all the files in
1593 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1594 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1595 for instance \`--prefix=\$HOME'.
1597 For better control, use the options below.
1599 Fine tuning of the installation directories:
1600 --bindir=DIR user executables [EPREFIX/bin]
1601 --sbindir=DIR system admin executables [EPREFIX/sbin]
1602 --libexecdir=DIR program executables [EPREFIX/libexec]
1603 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1604 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1605 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1606 --libdir=DIR object code libraries [EPREFIX/lib]
1607 --includedir=DIR C header files [PREFIX/include]
1608 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1609 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1610 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1611 --infodir=DIR info documentation [DATAROOTDIR/info]
1612 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1613 --mandir=DIR man documentation [DATAROOTDIR/man]
1614 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1615 --htmldir=DIR html documentation [DOCDIR]
1616 --dvidir=DIR dvi documentation [DOCDIR]
1617 --pdfdir=DIR pdf documentation [DOCDIR]
1618 --psdir=DIR ps documentation [DOCDIR]
1624 --program-prefix=PREFIX prepend PREFIX to installed program names
1625 --program-suffix=SUFFIX append SUFFIX to installed program names
1626 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1629 --build=BUILD configure for building on BUILD [guessed]
1630 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1634 if test -n "$ac_init_help"; then
1639 --disable-option-checking ignore unrecognized --enable/--with options
1640 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1641 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1642 --enable-silent-rules less verbose build output (undo: `make V=1')
1643 --disable-silent-rules verbose build output (undo: `make V=0')
1644 --disable-dependency-tracking speeds up one-time build
1645 --enable-dependency-tracking do not reject slow dependency extractors
1646 --enable-static[=PKGS] build static libraries [default=no]
1647 --enable-shared[=PKGS] build shared libraries [default=yes]
1648 --enable-fast-install[=PKGS]
1649 optimize for fast installation [default=yes]
1650 --disable-libtool-lock avoid locking (might break parallel builds)
1651 --enable-symbolic-functions
1652 use -Bsymbolic-functions option if available
1653 (optmization for size and speed)
1654 --enable-debug enable assert call at the default error message
1656 --enable-resmgr support resmgr (optional)
1657 --disable-aload disable reading /dev/aload*
1658 --disable-mixer disable the mixer component
1659 --disable-pcm disable the PCM component
1660 --disable-rawmidi disable the raw MIDI component
1661 --disable-hwdep disable the hwdep component
1662 --disable-seq disable the sequencer component
1663 --disable-ucm disable the use-case-manager component
1664 --disable-alisp disable the alisp component
1665 --disable-old-symbols disable old obsoleted symbols
1666 --disable-python disable the python components
1669 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1670 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1671 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1672 --with-pic try to use only PIC/non-PIC objects [default=use
1674 --with-tags[=TAGS] include additional configurations [automatic]
1675 --with-configdir=dir path where ALSA config files are stored
1676 --with-plugindir=dir path where ALSA plugin files are stored
1677 --with-versioned shared library will be compiled with versioned
1678 symbols (default = yes)
1679 --with-debug library will be compiled with asserts (default =
1681 --with-tmpdir=directory directory to put tmp socket files (/tmp)
1682 --with-softfloat do you have floating point unit on this machine?
1684 --with-libdl Use libdl for plugins (default = yes)
1685 --with-pthread Use pthread (default = yes)
1686 --with-librt Use librt for monotonic clock (default = yes)
1687 --with-alsa-devdir=dir directory with ALSA device files (default /dev/snd)
1688 --with-aload-devdir=dir directory with aload* device files (default /dev)
1689 --with-pythonlibs=ldflags
1690 specify python libraries (-lpthread -lm -ldl
1692 --with-pythonincludes=Cflags
1693 specify python C header files
1694 (-I/usr/include/python)
1695 --with-pcm-plugins=<list>
1696 build PCM plugins (default = all)
1697 --with-ctl-plugins=<list>
1698 build control plugins (default = all)
1700 Some influential environment variables:
1701 CC C compiler command
1702 CFLAGS C compiler flags
1703 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1704 nonstandard directory <lib dir>
1705 LIBS libraries to pass to the linker, e.g. -l<library>
1706 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1707 you have headers in a nonstandard directory <include dir>
1709 CXX C++ compiler command
1710 CXXFLAGS C++ compiler flags
1711 CXXCPP C++ preprocessor
1712 F77 Fortran 77 compiler command
1713 FFLAGS Fortran 77 compiler flags
1715 Use these variables to override the choices made by `configure' or to help
1716 it to find libraries and programs with nonstandard names/locations.
1718 Report bugs to the package provider.
1723 if test "$ac_init_help" = "recursive"; then
1724 # If there are subdirs, report their specific --help.
1725 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1726 test -d "$ac_dir" ||
1727 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1732 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1734 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1735 # A ".." for each directory in $ac_dir_suffix.
1736 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1737 case $ac_top_builddir_sub in
1738 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1739 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1742 ac_abs_top_builddir=$ac_pwd
1743 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1744 # for backward compatibility:
1745 ac_top_builddir=$ac_top_build_prefix
1748 .) # We are building in place.
1750 ac_top_srcdir=$ac_top_builddir_sub
1751 ac_abs_top_srcdir=$ac_pwd ;;
1752 [\\/]* | ?:[\\/]* ) # Absolute name.
1753 ac_srcdir=$srcdir$ac_dir_suffix;
1754 ac_top_srcdir=$srcdir
1755 ac_abs_top_srcdir=$srcdir ;;
1757 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1758 ac_top_srcdir=$ac_top_build_prefix$srcdir
1759 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1761 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1763 cd "$ac_dir" || { ac_status=$?; continue; }
1764 # Check for guested configure.
1765 if test -f "$ac_srcdir/configure.gnu"; then
1767 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1768 elif test -f "$ac_srcdir/configure"; then
1770 $SHELL "$ac_srcdir/configure" --help=recursive
1772 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1774 cd "$ac_pwd" || { ac_status=$?; break; }
1778 test -n "$ac_init_help" && exit $ac_status
1779 if $ac_init_version; then
1782 generated by GNU Autoconf 2.68
1784 Copyright (C) 2010 Free Software Foundation, Inc.
1785 This configure script is free software; the Free Software Foundation
1786 gives unlimited permission to copy, distribute and modify it.
1791 ## ------------------------ ##
1792 ## Autoconf initialization. ##
1793 ## ------------------------ ##
1795 # ac_fn_c_try_compile LINENO
1796 # --------------------------
1797 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_c_try_compile ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext
1802 if { { ac_try="$ac_compile"
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_c_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.$ac_objext; then :
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1831 } # ac_fn_c_try_compile
1833 # ac_fn_c_try_cpp LINENO
1834 # ----------------------
1835 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 if { { ac_try="$ac_cpp conftest.$ac_ext"
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } > conftest.i && {
1855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 as_fn_set_status $ac_retval
1870 # ac_fn_c_try_link LINENO
1871 # -----------------------
1872 # Try to link conftest.$ac_ext, and return whether this succeeded.
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext conftest$ac_exeext
1877 if { { ac_try="$ac_link"
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_link") 2>conftest.err
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_c_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest$ac_exeext && {
1896 test "$cross_compiling" = yes ||
1897 $as_test_x conftest$ac_exeext
1901 $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1906 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1907 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1908 # interfere with the next link command; also delete a directory that is
1909 # left behind by Apple's compiler. We do this before executing the actions.
1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 as_fn_set_status $ac_retval
1914 } # ac_fn_c_try_link
1916 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1917 # -------------------------------------------------------
1918 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1919 # the include files in INCLUDES and setting the cache variable VAR
1921 ac_fn_c_check_header_mongrel ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if eval \${$3+:} false; then :
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928 $as_echo_n "(cached) " >&6
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1934 # Is the header compilable?
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1936 $as_echo_n "checking $2 usability... " >&6; }
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943 ac_header_compiler=yes
1945 ac_header_compiler=no
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1949 $as_echo "$ac_header_compiler" >&6; }
1951 # Is the header present?
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1953 $as_echo_n "checking $2 presence... " >&6; }
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1958 if ac_fn_c_try_cpp "$LINENO"; then :
1959 ac_header_preproc=yes
1961 ac_header_preproc=no
1963 rm -f conftest.err conftest.i conftest.$ac_ext
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1965 $as_echo "$ac_header_preproc" >&6; }
1967 # So? What about this header?
1968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1971 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1973 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1977 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1979 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1981 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1983 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1985 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if eval \${$3+:} false; then :
1991 $as_echo_n "(cached) " >&6
1993 eval "$3=\$ac_header_compiler"
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001 } # ac_fn_c_check_header_mongrel
2003 # ac_fn_c_try_run LINENO
2004 # ----------------------
2005 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2006 # that executables *can* be run.
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 if { { ac_try="$ac_link"
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017 (eval "$ac_link") 2>&5
2019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2020 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2021 { { case "(($ac_try" in
2022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2023 *) ac_try_echo=$ac_try;;
2025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2026 $as_echo "$ac_try_echo"; } >&5
2027 (eval "$ac_try") 2>&5
2029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2030 test $ac_status = 0; }; }; then :
2033 $as_echo "$as_me: program exited with status $ac_status" >&5
2034 $as_echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2037 ac_retval=$ac_status
2039 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 as_fn_set_status $ac_retval
2045 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2046 # -------------------------------------------------------
2047 # Tests whether HEADER exists and can be compiled using the include files in
2048 # INCLUDES, setting the cache variable VAR accordingly.
2049 ac_fn_c_check_header_compile ()
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053 $as_echo_n "checking for $2... " >&6; }
2054 if eval \${$3+:} false; then :
2055 $as_echo_n "(cached) " >&6
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2062 if ac_fn_c_try_compile "$LINENO"; then :
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074 } # ac_fn_c_check_header_compile
2076 # ac_fn_c_check_func LINENO FUNC VAR
2077 # ----------------------------------
2078 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2079 ac_fn_c_check_func ()
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 $as_echo_n "checking for $2... " >&6; }
2084 if eval \${$3+:} false; then :
2085 $as_echo_n "(cached) " >&6
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2089 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2091 #define $2 innocuous_$2
2093 /* System header to define __stub macros and hopefully few prototypes,
2094 which can conflict with char $2 (); below.
2095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2096 <limits.h> exists even on freestanding compilers. */
2099 # include <limits.h>
2101 # include <assert.h>
2106 /* Override any GCC internal prototype to avoid an error.
2107 Use char because int might match the return type of a GCC
2108 builtin and then its argument prototype would still apply. */
2113 /* The GNU C library defines this for functions which it implements
2114 to always fail with ENOSYS. Some functions are actually named
2115 something starting with __ and the normal name is an alias. */
2116 #if defined __stub_$2 || defined __stub___$2
2128 if ac_fn_c_try_link "$LINENO"; then :
2133 rm -f core conftest.err conftest.$ac_objext \
2134 conftest$ac_exeext conftest.$ac_ext
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138 $as_echo "$ac_res" >&6; }
2139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141 } # ac_fn_c_check_func
2143 # ac_fn_cxx_try_compile LINENO
2144 # ----------------------------
2145 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2146 ac_fn_cxx_try_compile ()
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 rm -f conftest.$ac_objext
2150 if { { ac_try="$ac_compile"
2152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2153 *) ac_try_echo=$ac_try;;
2155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156 $as_echo "$ac_try_echo"; } >&5
2157 (eval "$ac_compile") 2>conftest.err
2159 if test -s conftest.err; then
2160 grep -v '^ *+' conftest.err >conftest.er1
2161 cat conftest.er1 >&5
2162 mv -f conftest.er1 conftest.err
2164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2165 test $ac_status = 0; } && {
2166 test -z "$ac_cxx_werror_flag" ||
2167 test ! -s conftest.err
2168 } && test -s conftest.$ac_objext; then :
2171 $as_echo "$as_me: failed program was:" >&5
2172 sed 's/^/| /' conftest.$ac_ext >&5
2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177 as_fn_set_status $ac_retval
2179 } # ac_fn_cxx_try_compile
2181 # ac_fn_cxx_try_cpp LINENO
2182 # ------------------------
2183 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2184 ac_fn_cxx_try_cpp ()
2186 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187 if { { ac_try="$ac_cpp conftest.$ac_ext"
2189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190 *) ac_try_echo=$ac_try;;
2192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2193 $as_echo "$ac_try_echo"; } >&5
2194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2196 if test -s conftest.err; then
2197 grep -v '^ *+' conftest.err >conftest.er1
2198 cat conftest.er1 >&5
2199 mv -f conftest.er1 conftest.err
2201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2202 test $ac_status = 0; } > conftest.i && {
2203 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2204 test ! -s conftest.err
2208 $as_echo "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.$ac_ext >&5
2213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214 as_fn_set_status $ac_retval
2216 } # ac_fn_cxx_try_cpp
2218 # ac_fn_cxx_try_link LINENO
2219 # -------------------------
2220 # Try to link conftest.$ac_ext, and return whether this succeeded.
2221 ac_fn_cxx_try_link ()
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 rm -f conftest.$ac_objext conftest$ac_exeext
2225 if { { ac_try="$ac_link"
2227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228 *) ac_try_echo=$ac_try;;
2230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2231 $as_echo "$ac_try_echo"; } >&5
2232 (eval "$ac_link") 2>conftest.err
2234 if test -s conftest.err; then
2235 grep -v '^ *+' conftest.err >conftest.er1
2236 cat conftest.er1 >&5
2237 mv -f conftest.er1 conftest.err
2239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2240 test $ac_status = 0; } && {
2241 test -z "$ac_cxx_werror_flag" ||
2242 test ! -s conftest.err
2243 } && test -s conftest$ac_exeext && {
2244 test "$cross_compiling" = yes ||
2245 $as_test_x conftest$ac_exeext
2249 $as_echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2254 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2255 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2256 # interfere with the next link command; also delete a directory that is
2257 # left behind by Apple's compiler. We do this before executing the actions.
2258 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260 as_fn_set_status $ac_retval
2262 } # ac_fn_cxx_try_link
2264 # ac_fn_f77_try_compile LINENO
2265 # ----------------------------
2266 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2267 ac_fn_f77_try_compile ()
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 rm -f conftest.$ac_objext
2271 if { { ac_try="$ac_compile"
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2277 $as_echo "$ac_try_echo"; } >&5
2278 (eval "$ac_compile") 2>conftest.err
2280 if test -s conftest.err; then
2281 grep -v '^ *+' conftest.err >conftest.er1
2282 cat conftest.er1 >&5
2283 mv -f conftest.er1 conftest.err
2285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2286 test $ac_status = 0; } && {
2287 test -z "$ac_f77_werror_flag" ||
2288 test ! -s conftest.err
2289 } && test -s conftest.$ac_objext; then :
2292 $as_echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2297 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2298 as_fn_set_status $ac_retval
2300 } # ac_fn_f77_try_compile
2302 # ac_fn_f77_try_link LINENO
2303 # -------------------------
2304 # Try to link conftest.$ac_ext, and return whether this succeeded.
2305 ac_fn_f77_try_link ()
2307 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2308 rm -f conftest.$ac_objext conftest$ac_exeext
2309 if { { ac_try="$ac_link"
2311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312 *) ac_try_echo=$ac_try;;
2314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2315 $as_echo "$ac_try_echo"; } >&5
2316 (eval "$ac_link") 2>conftest.err
2318 if test -s conftest.err; then
2319 grep -v '^ *+' conftest.err >conftest.er1
2320 cat conftest.er1 >&5
2321 mv -f conftest.er1 conftest.err
2323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2324 test $ac_status = 0; } && {
2325 test -z "$ac_f77_werror_flag" ||
2326 test ! -s conftest.err
2327 } && test -s conftest$ac_exeext && {
2328 test "$cross_compiling" = yes ||
2329 $as_test_x conftest$ac_exeext
2333 $as_echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2338 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2339 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2340 # interfere with the next link command; also delete a directory that is
2341 # left behind by Apple's compiler. We do this before executing the actions.
2342 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2343 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2344 as_fn_set_status $ac_retval
2346 } # ac_fn_f77_try_link
2347 cat >config.log <<_ACEOF
2348 This file contains any messages produced by compilers while
2349 running configure, to aid debugging if configure makes a mistake.
2351 It was created by $as_me, which was
2352 generated by GNU Autoconf 2.68. Invocation command line was
2364 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2365 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2366 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2367 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2368 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2370 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2371 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2373 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2374 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2375 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2376 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2377 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2378 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2379 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 test -z "$as_dir" && as_dir=.
2388 $as_echo "PATH: $as_dir"
2404 # Keep a trace of the command line.
2405 # Strip out --no-create and --no-recursion so they do not pile up.
2406 # Strip out --silent because we don't want to record it for future runs.
2407 # Also quote any args containing shell meta-characters.
2408 # Make two passes to allow for proper duplicate-argument suppression.
2412 ac_must_keep_next=false
2418 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2419 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2420 | -silent | --silent | --silen | --sile | --sil)
2423 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2426 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2428 as_fn_append ac_configure_args1 " '$ac_arg'"
2429 if test $ac_must_keep_next = true; then
2430 ac_must_keep_next=false # Got value, back to normal.
2433 *=* | --config-cache | -C | -disable-* | --disable-* \
2434 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2435 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2436 | -with-* | --with-* | -without-* | --without-* | --x)
2437 case "$ac_configure_args0 " in
2438 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2441 -* ) ac_must_keep_next=true ;;
2444 as_fn_append ac_configure_args " '$ac_arg'"
2449 { ac_configure_args0=; unset ac_configure_args0;}
2450 { ac_configure_args1=; unset ac_configure_args1;}
2452 # When interrupted or exit'd, cleanup temporary files, and complete
2453 # config.log. We remove comments because anyway the quotes in there
2454 # would cause problems or look ugly.
2455 # WARNING: Use '\'' to represent an apostrophe within the trap.
2456 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2457 trap 'exit_status=$?
2458 # Save into config.log some information that might help in debugging.
2462 $as_echo "## ---------------- ##
2463 ## Cache variables. ##
2464 ## ---------------- ##"
2466 # The following way of writing the cache mishandles newlines in values,
2468 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2469 eval ac_val=\$$ac_var
2473 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2474 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2477 _ | IFS | as_nl) ;; #(
2478 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2479 *) { eval $ac_var=; unset $ac_var;} ;;
2484 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2485 *${as_nl}ac_space=\ *)
2487 "s/'\''/'\''\\\\'\'''\''/g;
2488 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2491 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2498 $as_echo "## ----------------- ##
2499 ## Output variables. ##
2500 ## ----------------- ##"
2502 for ac_var in $ac_subst_vars
2504 eval ac_val=\$$ac_var
2506 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2508 $as_echo "$ac_var='\''$ac_val'\''"
2512 if test -n "$ac_subst_files"; then
2513 $as_echo "## ------------------- ##
2514 ## File substitutions. ##
2515 ## ------------------- ##"
2517 for ac_var in $ac_subst_files
2519 eval ac_val=\$$ac_var
2521 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2523 $as_echo "$ac_var='\''$ac_val'\''"
2528 if test -s confdefs.h; then
2529 $as_echo "## ----------- ##
2536 test "$ac_signal" != 0 &&
2537 $as_echo "$as_me: caught signal $ac_signal"
2538 $as_echo "$as_me: exit $exit_status"
2540 rm -f core *.core core.conftest.* &&
2541 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2544 for ac_signal in 1 2 13 15; do
2545 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2549 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2550 rm -f -r conftest* confdefs.h
2552 $as_echo "/* confdefs.h */" > confdefs.h
2554 # Predefined preprocessor variables.
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_NAME "$PACKAGE_NAME"
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_STRING "$PACKAGE_STRING"
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_URL "$PACKAGE_URL"
2581 # Let the site file select an alternate cache file if it wants to.
2582 # Prefer an explicitly selected file to automatically selected ones.
2585 if test -n "$CONFIG_SITE"; then
2586 # We do not want a PATH search for config.site.
2587 case $CONFIG_SITE in #((
2588 -*) ac_site_file1=./$CONFIG_SITE;;
2589 */*) ac_site_file1=$CONFIG_SITE;;
2590 *) ac_site_file1=./$CONFIG_SITE;;
2592 elif test "x$prefix" != xNONE; then
2593 ac_site_file1=$prefix/share/config.site
2594 ac_site_file2=$prefix/etc/config.site
2596 ac_site_file1=$ac_default_prefix/share/config.site
2597 ac_site_file2=$ac_default_prefix/etc/config.site
2599 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2601 test "x$ac_site_file" = xNONE && continue
2602 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2604 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2605 sed 's/^/| /' "$ac_site_file" >&5
2607 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609 as_fn_error $? "failed to load site script $ac_site_file
2610 See \`config.log' for more details" "$LINENO" 5; }
2614 if test -r "$cache_file"; then
2615 # Some versions of bash will fail to source /dev/null (special files
2616 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2617 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2619 $as_echo "$as_me: loading cache $cache_file" >&6;}
2621 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2622 *) . "./$cache_file";;
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2627 $as_echo "$as_me: creating cache $cache_file" >&6;}
2631 # Check that the precious variables saved in the cache have kept the same
2633 ac_cache_corrupted=false
2634 for ac_var in $ac_precious_vars; do
2635 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2636 eval ac_new_set=\$ac_env_${ac_var}_set
2637 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2638 eval ac_new_val=\$ac_env_${ac_var}_value
2639 case $ac_old_set,$ac_new_set in
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2642 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2643 ac_cache_corrupted=: ;;
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2646 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2647 ac_cache_corrupted=: ;;
2650 if test "x$ac_old_val" != "x$ac_new_val"; then
2651 # differences in whitespace do not lead to failure.
2652 ac_old_val_w=`echo x $ac_old_val`
2653 ac_new_val_w=`echo x $ac_new_val`
2654 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2656 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2657 ac_cache_corrupted=:
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2660 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2661 eval $ac_var=\$ac_old_val
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2664 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2666 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2669 # Pass precious variables to config.status.
2670 if test "$ac_new_set" = set; then
2672 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2673 *) ac_arg=$ac_var=$ac_new_val ;;
2675 case " $ac_configure_args " in
2676 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2677 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2681 if $ac_cache_corrupted; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2685 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2686 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2688 ## -------------------- ##
2689 ## Main body of script. ##
2690 ## -------------------- ##
2693 ac_cpp='$CPP $CPPFLAGS'
2694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2703 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2704 if test -f "$ac_dir/install-sh"; then
2706 ac_install_sh="$ac_aux_dir/install-sh -c"
2708 elif test -f "$ac_dir/install.sh"; then
2710 ac_install_sh="$ac_aux_dir/install.sh -c"
2712 elif test -f "$ac_dir/shtool"; then
2714 ac_install_sh="$ac_aux_dir/shtool install -c"
2718 if test -z "$ac_aux_dir"; then
2719 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2722 # These three variables are undocumented and unsupported,
2723 # and are intended to be withdrawn in a future Autoconf release.
2724 # They can cause serious problems if a builder's source tree is in a directory
2725 # whose full name contains unusual characters.
2726 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2727 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2728 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2731 # Make sure we can run config.sub.
2732 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2733 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2736 $as_echo_n "checking build system type... " >&6; }
2737 if ${ac_cv_build+:} false; then :
2738 $as_echo_n "(cached) " >&6
2740 ac_build_alias=$build_alias
2741 test "x$ac_build_alias" = x &&
2742 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2743 test "x$ac_build_alias" = x &&
2744 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2745 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2746 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2750 $as_echo "$ac_cv_build" >&6; }
2751 case $ac_cv_build in
2753 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2756 ac_save_IFS=$IFS; IFS='-'
2762 # Remember, the first character of IFS is used to create $*,
2763 # except with old shells:
2766 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2770 $as_echo_n "checking host system type... " >&6; }
2771 if ${ac_cv_host+:} false; then :
2772 $as_echo_n "(cached) " >&6
2774 if test "x$host_alias" = x; then
2775 ac_cv_host=$ac_cv_build
2777 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2778 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2783 $as_echo "$ac_cv_host" >&6; }
2786 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2789 ac_save_IFS=$IFS; IFS='-'
2795 # Remember, the first character of IFS is used to create $*,
2796 # except with old shells:
2799 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2802 am__api_version='1.11'
2804 # Find a good install program. We prefer a C program (faster),
2805 # so one script is as good as another. But avoid the broken or
2806 # incompatible versions:
2807 # SysV /etc/install, /usr/sbin/install
2808 # SunOS /usr/etc/install
2809 # IRIX /sbin/install
2811 # AmigaOS /C/install, which installs bootblocks on floppy discs
2812 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2813 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2814 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2815 # OS/2's system install, which has a completely different semantic
2816 # ./install, which can be erroneously created by make from ./install.sh.
2817 # Reject install programs that cannot install multiple files.
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2819 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2820 if test -z "$INSTALL"; then
2821 if ${ac_cv_path_install+:} false; then :
2822 $as_echo_n "(cached) " >&6
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 test -z "$as_dir" && as_dir=.
2829 # Account for people who put trailing slashes in PATH elements.
2830 case $as_dir/ in #((
2831 ./ | .// | /[cC]/* | \
2832 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2833 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2836 # OSF1 and SCO ODT 3.0 have their own names for install.
2837 # Don't use installbsd from OSF since it installs stuff as root
2839 for ac_prog in ginstall scoinst install; do
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2842 if test $ac_prog = install &&
2843 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2844 # AIX install. It has an incompatible calling convention.
2846 elif test $ac_prog = install &&
2847 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2848 # program-specific install script used by HP pwplus--don't use.
2851 rm -rf conftest.one conftest.two conftest.dir
2852 echo one > conftest.one
2853 echo two > conftest.two
2855 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2856 test -s conftest.one && test -s conftest.two &&
2857 test -s conftest.dir/conftest.one &&
2858 test -s conftest.dir/conftest.two
2860 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2873 rm -rf conftest.one conftest.two conftest.dir
2876 if test "${ac_cv_path_install+set}" = set; then
2877 INSTALL=$ac_cv_path_install
2879 # As a last resort, use the slow shell script. Don't cache a
2880 # value for INSTALL within a source directory, because that will
2881 # break other packages using the cache if that directory is
2882 # removed, or if the value is a relative name.
2883 INSTALL=$ac_install_sh
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2887 $as_echo "$INSTALL" >&6; }
2889 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2890 # It thinks the first close brace ends the variable substitution.
2891 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2893 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2895 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2898 $as_echo_n "checking whether build environment is sane... " >&6; }
2901 echo timestamp > conftest.file
2902 # Reject unsafe characters in $srcdir or the absolute working directory
2903 # name. Accept space and tab only in the latter.
2907 *[\\\"\#\$\&\'\`$am_lf]*)
2908 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2911 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2912 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2915 # Do `set' in a subshell so we don't clobber the current shell's
2916 # arguments. Must try -L first in case configure is actually a
2917 # symlink; some systems play weird games with the mod time of symlinks
2918 # (eg FreeBSD returns the mod time of the symlink's containing
2921 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2922 if test "$*" = "X"; then
2924 set X `ls -t "$srcdir/configure" conftest.file`
2927 if test "$*" != "X $srcdir/configure conftest.file" \
2928 && test "$*" != "X conftest.file $srcdir/configure"; then
2930 # If neither matched, then we have a broken ls. This can happen
2931 # if, for instance, CONFIG_SHELL is bash and it inherits a
2932 # broken ls alias from the environment. This has actually
2933 # happened. Such a system could not be considered "sane".
2934 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2935 alias in your environment" "$LINENO" 5
2938 test "$2" = conftest.file
2944 as_fn_error $? "newly created file is older than distributed files!
2945 Check your system clock" "$LINENO" 5
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2948 $as_echo "yes" >&6; }
2949 test "$program_prefix" != NONE &&
2950 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2951 # Use a double $ so make ignores it.
2952 test "$program_suffix" != NONE &&
2953 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2954 # Double any \ or $.
2955 # By default was `s,x,x', remove it if useless.
2956 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2957 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2959 # expand $ac_aux_dir to an absolute path
2960 am_aux_dir=`cd $ac_aux_dir && pwd`
2962 if test x"${MISSING+set}" != xset; then
2965 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2967 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2970 # Use eval to expand $SHELL
2971 if eval "$MISSING --run true"; then
2972 am_missing_run="$MISSING --run "
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2976 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2979 if test x"${install_sh}" != xset; then
2982 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2984 install_sh="\${SHELL} $am_aux_dir/install-sh"
2988 # Installed binaries are usually stripped using `strip' when the user
2989 # run `make install-strip'. However `strip' might not be the right
2990 # tool to use in cross-compilation environments, therefore Automake
2991 # will honor the `STRIP' environment variable to overrule this program.
2992 if test "$cross_compiling" != no; then
2993 if test -n "$ac_tool_prefix"; then
2994 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2995 set dummy ${ac_tool_prefix}strip; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if ${ac_cv_prog_STRIP+:} false; then :
2999 $as_echo_n "(cached) " >&6
3001 if test -n "$STRIP"; then
3002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 STRIP=$ac_cv_prog_STRIP
3022 if test -n "$STRIP"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3024 $as_echo "$STRIP" >&6; }
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3032 if test -z "$ac_cv_prog_STRIP"; then
3034 # Extract the first word of "strip", so it can be a program name with args.
3035 set dummy strip; ac_word=$2
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3039 $as_echo_n "(cached) " >&6
3041 if test -n "$ac_ct_STRIP"; then
3042 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051 ac_cv_prog_ac_ct_STRIP="strip"
3052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3062 if test -n "$ac_ct_STRIP"; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3064 $as_echo "$ac_ct_STRIP" >&6; }
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3070 if test "x$ac_ct_STRIP" = x; then
3073 case $cross_compiling:$ac_tool_warned in
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3077 ac_tool_warned=yes ;;
3082 STRIP="$ac_cv_prog_STRIP"
3086 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3089 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3090 if test -z "$MKDIR_P"; then
3091 if ${ac_cv_path_mkdir+:} false; then :
3092 $as_echo_n "(cached) " >&6
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3098 test -z "$as_dir" && as_dir=.
3099 for ac_prog in mkdir gmkdir; do
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3102 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3103 'mkdir (GNU coreutils) '* | \
3104 'mkdir (coreutils) '* | \
3105 'mkdir (fileutils) '4.1*)
3106 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3116 test -d ./--version && rmdir ./--version
3117 if test "${ac_cv_path_mkdir+set}" = set; then
3118 MKDIR_P="$ac_cv_path_mkdir -p"
3120 # As a last resort, use the slow shell script. Don't cache a
3121 # value for MKDIR_P within a source directory, because that will
3122 # break other packages using the cache if that directory is
3123 # removed, or if the value is a relative name.
3124 MKDIR_P="$ac_install_sh -d"
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3128 $as_echo "$MKDIR_P" >&6; }
3132 [\\/$]* | ?:[\\/]*) ;;
3133 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3136 for ac_prog in gawk mawk nawk awk
3138 # Extract the first word of "$ac_prog", so it can be a program name with args.
3139 set dummy $ac_prog; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_AWK+:} false; then :
3143 $as_echo_n "(cached) " >&6
3145 if test -n "$AWK"; then
3146 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155 ac_cv_prog_AWK="$ac_prog"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 if test -n "$AWK"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3168 $as_echo "$AWK" >&6; }
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3175 test -n "$AWK" && break
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3179 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3181 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3182 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3183 $as_echo_n "(cached) " >&6
3185 cat >conftest.make <<\_ACEOF
3188 @echo '@@@%%%=$(MAKE)=@@@%%%'
3190 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3191 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3193 eval ac_cv_prog_make_${ac_make}_set=yes;;
3195 eval ac_cv_prog_make_${ac_make}_set=no;;
3199 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201 $as_echo "yes" >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3206 SET_MAKE="MAKE=${MAKE-make}"
3209 rm -rf .tst 2>/dev/null
3210 mkdir .tst 2>/dev/null
3211 if test -d .tst; then
3216 rmdir .tst 2>/dev/null
3218 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3219 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3220 # is not polluted with repeated "-I."
3221 am__isrc=' -I$(srcdir)'
3222 # test to see if srcdir already configured
3223 if test -f $srcdir/config.status; then
3224 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3228 # test whether we have cygpath
3229 if test -z "$CYGPATH_W"; then
3230 if (cygpath --version) >/dev/null 2>/dev/null; then
3231 CYGPATH_W='cygpath -w'
3238 # Define the identity of the package.
3243 cat >>confdefs.h <<_ACEOF
3244 #define PACKAGE "$PACKAGE"
3248 cat >>confdefs.h <<_ACEOF
3249 #define VERSION "$VERSION"
3252 # Some tools Automake needs.
3254 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3257 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3260 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3263 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3266 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3268 # We need awk for the "check" target. The system "awk" is bad on
3270 # Always define AMTAR for backward compatibility.
3272 AMTAR=${AMTAR-"${am_missing_run}tar"}
3274 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3280 eval LIBTOOL_VERSION_INFO="2:0:0"
3281 if test -n "${ACLOCAL}"; then
3283 INSTALL_M4_FALSE='#'
3290 # Test for new silent rules and enable only if they are available
3291 # Check whether --enable-silent-rules was given.
3292 if test "${enable_silent_rules+set}" = set; then :
3293 enableval=$enable_silent_rules;
3296 case $enable_silent_rules in
3297 yes) AM_DEFAULT_VERBOSITY=0;;
3298 no) AM_DEFAULT_VERBOSITY=1;;
3299 *) AM_DEFAULT_VERBOSITY=0;;
3307 if test "x$host" != "x$build" -a -z "`echo $CC | grep -e '-gcc'`";
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cross-compiler" >&5
3310 $as_echo_n "checking for cross-compiler... " >&6; }
3312 which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc
3313 which ${host_cpu}-${host_os}-gcc >/dev/null 2>&1 \
3314 && CC=${host_cpu}-${host-os}-gcc
3315 which ${host_cpu}-${host_vendor}-${host_os}-gcc >/dev/null 2>&1 \
3316 && CC=${host_cpu}-${host_vendor}-${host_os}-gcc
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3319 $as_echo "$CC" >&6; }
3322 CFLAGS="$CFLAGS -D_GNU_SOURCE"
3326 ac_cpp='$CPP $CPPFLAGS'
3327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330 if test -n "$ac_tool_prefix"; then
3331 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3332 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3334 $as_echo_n "checking for $ac_word... " >&6; }
3335 if ${ac_cv_prog_CC+:} false; then :
3336 $as_echo_n "(cached) " >&6
3338 if test -n "$CC"; then
3339 ac_cv_prog_CC="$CC" # Let the user override the test.
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3348 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 if test -n "$CC"; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3361 $as_echo "$CC" >&6; }
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3369 if test -z "$ac_cv_prog_CC"; then
3371 # Extract the first word of "gcc", so it can be a program name with args.
3372 set dummy gcc; ac_word=$2
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 $as_echo_n "checking for $ac_word... " >&6; }
3375 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3376 $as_echo_n "(cached) " >&6
3378 if test -n "$ac_ct_CC"; then
3379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3388 ac_cv_prog_ac_ct_CC="gcc"
3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3399 if test -n "$ac_ct_CC"; then
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3401 $as_echo "$ac_ct_CC" >&6; }
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 $as_echo "no" >&6; }
3407 if test "x$ac_ct_CC" = x; then
3410 case $cross_compiling:$ac_tool_warned in
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3414 ac_tool_warned=yes ;;
3422 if test -z "$CC"; then
3423 if test -n "$ac_tool_prefix"; then
3424 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3425 set dummy ${ac_tool_prefix}cc; ac_word=$2
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3427 $as_echo_n "checking for $ac_word... " >&6; }
3428 if ${ac_cv_prog_CC+:} false; then :
3429 $as_echo_n "(cached) " >&6
3431 if test -n "$CC"; then
3432 ac_cv_prog_CC="$CC" # Let the user override the test.
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 test -z "$as_dir" && as_dir=.
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3441 ac_cv_prog_CC="${ac_tool_prefix}cc"
3442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 if test -n "$CC"; then
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3454 $as_echo "$CC" >&6; }
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457 $as_echo "no" >&6; }
3463 if test -z "$CC"; then
3464 # Extract the first word of "cc", so it can be a program name with args.
3465 set dummy cc; ac_word=$2
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467 $as_echo_n "checking for $ac_word... " >&6; }
3468 if ${ac_cv_prog_CC+:} false; then :
3469 $as_echo_n "(cached) " >&6
3471 if test -n "$CC"; then
3472 ac_cv_prog_CC="$CC" # Let the user override the test.
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 test -z "$as_dir" && as_dir=.
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3482 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3483 ac_prog_rejected=yes
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 if test $ac_prog_rejected = yes; then
3495 # We found a bogon in the path, so make sure we never use it.
3496 set dummy $ac_cv_prog_CC
3498 if test $# != 0; then
3499 # We chose a different compiler from the bogus one.
3500 # However, it has the same basename, so the bogon will be chosen
3501 # first if we set CC to just the basename; use the full file name.
3503 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3509 if test -n "$CC"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3511 $as_echo "$CC" >&6; }
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514 $as_echo "no" >&6; }
3519 if test -z "$CC"; then
3520 if test -n "$ac_tool_prefix"; then
3521 for ac_prog in cl.exe
3523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3524 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526 $as_echo_n "checking for $ac_word... " >&6; }
3527 if ${ac_cv_prog_CC+:} false; then :
3528 $as_echo_n "(cached) " >&6
3530 if test -n "$CC"; then
3531 ac_cv_prog_CC="$CC" # Let the user override the test.
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 test -z "$as_dir" && as_dir=.
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3540 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 if test -n "$CC"; then
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3553 $as_echo "$CC" >&6; }
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556 $as_echo "no" >&6; }
3560 test -n "$CC" && break
3563 if test -z "$CC"; then
3565 for ac_prog in cl.exe
3567 # Extract the first word of "$ac_prog", so it can be a program name with args.
3568 set dummy $ac_prog; ac_word=$2
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570 $as_echo_n "checking for $ac_word... " >&6; }
3571 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3572 $as_echo_n "(cached) " >&6
3574 if test -n "$ac_ct_CC"; then
3575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 test -z "$as_dir" && as_dir=.
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584 ac_cv_prog_ac_ct_CC="$ac_prog"
3585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3595 if test -n "$ac_ct_CC"; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3597 $as_echo "$ac_ct_CC" >&6; }
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 $as_echo "no" >&6; }
3604 test -n "$ac_ct_CC" && break
3607 if test "x$ac_ct_CC" = x; then
3610 case $cross_compiling:$ac_tool_warned in
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3614 ac_tool_warned=yes ;;
3623 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625 as_fn_error $? "no acceptable C compiler found in \$PATH
3626 See \`config.log' for more details" "$LINENO" 5; }
3628 # Provide some information about the compiler.
3629 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3632 for ac_option in --version -v -V -qversion; do
3633 { { ac_try="$ac_compiler $ac_option >&5"
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639 $as_echo "$ac_try_echo"; } >&5
3640 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3642 if test -s conftest.err; then
3644 ... rest of stderr output deleted ...
3645 10q' conftest.err >conftest.er1
3646 cat conftest.er1 >&5
3648 rm -f conftest.er1 conftest.err
3649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650 test $ac_status = 0; }
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3664 ac_clean_files_save=$ac_clean_files
3665 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3666 # Try to create an executable without -o first, disregard a.out.
3667 # It will help us diagnose broken compilers, and finding out an intuition
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3670 $as_echo_n "checking whether the C compiler works... " >&6; }
3671 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3673 # The possible output files:
3674 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3677 for ac_file in $ac_files
3680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3681 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3686 if { { ac_try="$ac_link_default"
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3692 $as_echo "$ac_try_echo"; } >&5
3693 (eval "$ac_link_default") 2>&5
3695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3696 test $ac_status = 0; }; then :
3697 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3698 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3699 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3700 # so that the user can short-circuit this test for compilers unknown to
3702 for ac_file in $ac_files ''
3704 test -f "$ac_file" || continue
3706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3709 # We found the default executable, but exeext='' is most
3713 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3715 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3717 # We set ac_cv_exeext here because the later test for it is not
3718 # safe: cross compilers may not add the suffix if given an `-o'
3719 # argument, so we may need to know it at that point already.
3720 # Even if this section looks crufty: it has the advantage of
3727 test "$ac_cv_exeext" = no && ac_cv_exeext=
3732 if test -z "$ac_file"; then :
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3735 $as_echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3740 as_fn_error 77 "C compiler cannot create executables
3741 See \`config.log' for more details" "$LINENO" 5; }
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3744 $as_echo "yes" >&6; }
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3747 $as_echo_n "checking for C compiler default output file name... " >&6; }
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3749 $as_echo "$ac_file" >&6; }
3750 ac_exeext=$ac_cv_exeext
3752 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3753 ac_clean_files=$ac_clean_files_save
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3755 $as_echo_n "checking for suffix of executables... " >&6; }
3756 if { { ac_try="$ac_link"
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762 $as_echo "$ac_try_echo"; } >&5
3763 (eval "$ac_link") 2>&5
3765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3766 test $ac_status = 0; }; then :
3767 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3768 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3769 # work properly (i.e., refer to `conftest.exe'), while it won't with
3771 for ac_file in conftest.exe conftest conftest.*; do
3772 test -f "$ac_file" || continue
3774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3775 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3781 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3783 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3784 See \`config.log' for more details" "$LINENO" 5; }
3786 rm -f conftest conftest$ac_cv_exeext
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3788 $as_echo "$ac_cv_exeext" >&6; }
3790 rm -f conftest.$ac_ext
3791 EXEEXT=$ac_cv_exeext
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3799 FILE *f = fopen ("conftest.out", "w");
3800 return ferror (f) || fclose (f) != 0;
3806 ac_clean_files="$ac_clean_files conftest.out"
3807 # Check that the compiler produces executables we can run. If not, either
3808 # the compiler is broken, or we cross compile.
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3810 $as_echo_n "checking whether we are cross compiling... " >&6; }
3811 if test "$cross_compiling" != yes; then
3812 { { ac_try="$ac_link"
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818 $as_echo "$ac_try_echo"; } >&5
3819 (eval "$ac_link") 2>&5
3821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }
3823 if { ac_try='./conftest$ac_cv_exeext'
3824 { { case "(($ac_try" in
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3829 $as_echo "$ac_try_echo"; } >&5
3830 (eval "$ac_try") 2>&5
3832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3833 test $ac_status = 0; }; }; then
3836 if test "$cross_compiling" = maybe; then
3839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3841 as_fn_error $? "cannot run C compiled programs.
3842 If you meant to cross compile, use \`--host'.
3843 See \`config.log' for more details" "$LINENO" 5; }
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3848 $as_echo "$cross_compiling" >&6; }
3850 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3851 ac_clean_files=$ac_clean_files_save
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3853 $as_echo_n "checking for suffix of object files... " >&6; }
3854 if ${ac_cv_objext+:} false; then :
3855 $as_echo_n "(cached) " >&6
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3868 rm -f conftest.o conftest.obj
3869 if { { ac_try="$ac_compile"
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875 $as_echo "$ac_try_echo"; } >&5
3876 (eval "$ac_compile") 2>&5
3878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3879 test $ac_status = 0; }; then :
3880 for ac_file in conftest.o conftest.obj conftest.*; do
3881 test -f "$ac_file" || continue;
3883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3884 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3889 $as_echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3894 as_fn_error $? "cannot compute suffix of object files: cannot compile
3895 See \`config.log' for more details" "$LINENO" 5; }
3897 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3900 $as_echo "$ac_cv_objext" >&6; }
3901 OBJEXT=$ac_cv_objext
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3904 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3905 if ${ac_cv_c_compiler_gnu+:} false; then :
3906 $as_echo_n "(cached) " >&6
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3922 if ac_fn_c_try_compile "$LINENO"; then :
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3932 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3933 if test $ac_compiler_gnu = yes; then
3938 ac_test_CFLAGS=${CFLAGS+set}
3939 ac_save_CFLAGS=$CFLAGS
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3941 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3942 if ${ac_cv_prog_cc_g+:} false; then :
3943 $as_echo_n "(cached) " >&6
3945 ac_save_c_werror_flag=$ac_c_werror_flag
3946 ac_c_werror_flag=yes
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h. */
3960 if ac_fn_c_try_compile "$LINENO"; then :
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3975 if ac_fn_c_try_compile "$LINENO"; then :
3978 ac_c_werror_flag=$ac_save_c_werror_flag
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h. */
3991 if ac_fn_c_try_compile "$LINENO"; then :
3994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999 ac_c_werror_flag=$ac_save_c_werror_flag
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4002 $as_echo "$ac_cv_prog_cc_g" >&6; }
4003 if test "$ac_test_CFLAGS" = set; then
4004 CFLAGS=$ac_save_CFLAGS
4005 elif test $ac_cv_prog_cc_g = yes; then
4006 if test "$GCC" = yes; then
4012 if test "$GCC" = yes; then
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4019 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4020 if ${ac_cv_prog_cc_c89+:} false; then :
4021 $as_echo_n "(cached) " >&6
4023 ac_cv_prog_cc_c89=no
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4029 #include <sys/types.h>
4030 #include <sys/stat.h>
4031 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4032 struct buf { int x; };
4033 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4034 static char *e (p, i)
4040 static char *f (char * (*g) (char **, int), char **p, ...)
4045 s = g (p, va_arg (v,int));
4050 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4051 function prototypes and stuff, but not '\xHH' hex character constants.
4052 These don't provoke an error unfortunately, instead are silently treated
4053 as 'x'. The following induces an error, until -std is added to get
4054 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4055 array size at least. It's necessary to write '\x00'==0 to get something
4056 that's true only with -std. */
4057 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4059 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4060 inside strings and character constants. */
4062 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4064 int test (int i, double x);
4065 struct s1 {int (*f) (int a);};
4066 struct s2 {int (*f) (double a);};
4067 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4073 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4078 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4079 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4081 CC="$ac_save_CC $ac_arg"
4082 if ac_fn_c_try_compile "$LINENO"; then :
4083 ac_cv_prog_cc_c89=$ac_arg
4085 rm -f core conftest.err conftest.$ac_objext
4086 test "x$ac_cv_prog_cc_c89" != "xno" && break
4088 rm -f conftest.$ac_ext
4093 case "x$ac_cv_prog_cc_c89" in
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4096 $as_echo "none needed" >&6; } ;;
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4099 $as_echo "unsupported" >&6; } ;;
4101 CC="$CC $ac_cv_prog_cc_c89"
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4103 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4105 if test "x$ac_cv_prog_cc_c89" != xno; then :
4110 ac_cpp='$CPP $CPPFLAGS'
4111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4114 DEPDIR="${am__leading_dot}deps"
4116 ac_config_commands="$ac_config_commands depfiles"
4119 am_make=${MAKE-make}
4120 cat > confinc << 'END'
4122 @echo this is the am__doit target
4125 # If we don't find an include directive, just comment out the code.
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4127 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4131 # First try GNU make style include.
4132 echo "include confinc" > confmf
4133 # Ignore all kinds of additional output from `make'.
4134 case `$am_make -s -f confmf 2> /dev/null` in #(
4135 *the\ am__doit\ target*)
4141 # Now try BSD make style include.
4142 if test "$am__include" = "#"; then
4143 echo '.include "confinc"' > confmf
4144 case `$am_make -s -f confmf 2> /dev/null` in #(
4145 *the\ am__doit\ target*)
4146 am__include=.include
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4155 $as_echo "$_am_result" >&6; }
4156 rm -f confinc confmf
4158 # Check whether --enable-dependency-tracking was given.
4159 if test "${enable_dependency_tracking+set}" = set; then :
4160 enableval=$enable_dependency_tracking;
4163 if test "x$enable_dependency_tracking" != xno; then
4164 am_depcomp="$ac_aux_dir/depcomp"
4167 if test "x$enable_dependency_tracking" != xno; then
4177 depcc="$CC" am_compiler_list=
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4180 $as_echo_n "checking dependency style of $depcc... " >&6; }
4181 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4182 $as_echo_n "(cached) " >&6
4184 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4185 # We make a subdir and do the tests there. Otherwise we can end up
4186 # making bogus files that we don't know about and never remove. For
4187 # instance it was reported that on HP-UX the gcc test will end up
4188 # making a dummy file named `D' -- because `-MD' means `put the output
4191 # Copy depcomp to subdir because otherwise we won't find it if we're
4192 # using a relative directory.
4193 cp "$am_depcomp" conftest.dir
4195 # We will build objects and dependencies in a subdirectory because
4196 # it helps to detect inapplicable dependency modes. For instance
4197 # both Tru64's cc and ICC support -MD to output dependencies as a
4198 # side effect of compilation, but ICC will put the dependencies in
4199 # the current directory while Tru64 will put them in the object
4203 am_cv_CC_dependencies_compiler_type=none
4204 if test "$am_compiler_list" = ""; then
4205 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4208 case " $depcc " in #(
4209 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4212 for depmode in $am_compiler_list; do
4213 # Setup a source with many dependencies, because some compilers
4214 # like to wrap large dependency lists on column 80 (with \), and
4215 # we should not choose a depcomp mode which is confused by this.
4217 # We need to recreate these files for each test, as the compiler may
4218 # overwrite some of them when testing with obscure command lines.
4219 # This happens at least with the AIX C compiler.
4221 for i in 1 2 3 4 5 6; do
4222 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4223 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4224 # Solaris 8's {/usr,}/bin/sh.
4225 touch sub/conftst$i.h
4227 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4229 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4230 # mode. It turns out that the SunPro C++ compiler does not properly
4231 # handle `-M -o', and we need to detect this. Also, some Intel
4232 # versions had trouble with output in subdirs
4233 am__obj=sub/conftest.${OBJEXT-o}
4234 am__minus_obj="-o $am__obj"
4237 # This depmode causes a compiler race in universal mode.
4238 test "$am__universal" = false || continue
4241 # after this tag, mechanisms are not by side-effect, so they'll
4242 # only be used when explicitly requested
4243 if test "x$enable_dependency_tracking" = xyes; then
4249 msvisualcpp | msvcmsys)
4250 # This compiler won't grok `-c -o', but also, the minuso test has
4251 # not run yet. These depmodes are late enough in the game, and
4252 # so weak that their functioning should not be impacted.
4253 am__obj=conftest.${OBJEXT-o}
4258 if depmode=$depmode \
4259 source=sub/conftest.c object=$am__obj \
4260 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4261 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4262 >/dev/null 2>conftest.err &&
4263 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4264 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4265 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4266 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4267 # icc doesn't choke on unknown options, it will just issue warnings
4268 # or remarks (even with -Werror). So we grep stderr for any message
4269 # that says an option was ignored or not supported.
4270 # When given -MP, icc 7.0 and 7.1 complain thusly:
4271 # icc: Command line warning: ignoring option '-M'; no argument required
4272 # The diagnosis changed in icc 8.0:
4273 # icc: Command line remark: option '-MP' not supported
4274 if (grep 'ignoring option' conftest.err ||
4275 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4276 am_cv_CC_dependencies_compiler_type=$depmode
4285 am_cv_CC_dependencies_compiler_type=none
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4290 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4291 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4294 test "x$enable_dependency_tracking" != xno \
4295 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4297 am__fastdepCC_FALSE='#'
4299 am__fastdepCC_TRUE='#'
4300 am__fastdepCC_FALSE=
4305 ac_cpp='$CPP $CPPFLAGS'
4306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4310 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4311 # On Suns, sometimes $CPP names a directory.
4312 if test -n "$CPP" && test -d "$CPP"; then
4315 if test -z "$CPP"; then
4316 if ${ac_cv_prog_CPP+:} false; then :
4317 $as_echo_n "(cached) " >&6
4319 # Double quotes because CPP needs to be expanded
4320 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4323 for ac_c_preproc_warn_flag in '' yes
4325 # Use a header file that comes with gcc, so configuring glibc
4326 # with a fresh cross-compiler works.
4327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328 # <limits.h> exists even on freestanding compilers.
4329 # On the NeXT, cc -E runs the code through the compiler's parser,
4330 # not just through cpp. "Syntax error" is here to catch this case.
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4334 # include <limits.h>
4336 # include <assert.h>
4340 if ac_fn_c_try_cpp "$LINENO"; then :
4343 # Broken: fails on valid input.
4346 rm -f conftest.err conftest.i conftest.$ac_ext
4348 # OK, works on sane cases. Now check whether nonexistent headers
4349 # can be detected and how.
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352 #include <ac_nonexistent.h>
4354 if ac_fn_c_try_cpp "$LINENO"; then :
4355 # Broken: success on invalid input.
4358 # Passes both tests.
4362 rm -f conftest.err conftest.i conftest.$ac_ext
4365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4366 rm -f conftest.i conftest.err conftest.$ac_ext
4367 if $ac_preproc_ok; then :
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4380 $as_echo "$CPP" >&6; }
4382 for ac_c_preproc_warn_flag in '' yes
4384 # Use a header file that comes with gcc, so configuring glibc
4385 # with a fresh cross-compiler works.
4386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4387 # <limits.h> exists even on freestanding compilers.
4388 # On the NeXT, cc -E runs the code through the compiler's parser,
4389 # not just through cpp. "Syntax error" is here to catch this case.
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4393 # include <limits.h>
4395 # include <assert.h>
4399 if ac_fn_c_try_cpp "$LINENO"; then :
4402 # Broken: fails on valid input.
4405 rm -f conftest.err conftest.i conftest.$ac_ext
4407 # OK, works on sane cases. Now check whether nonexistent headers
4408 # can be detected and how.
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411 #include <ac_nonexistent.h>
4413 if ac_fn_c_try_cpp "$LINENO"; then :
4414 # Broken: success on invalid input.
4417 # Passes both tests.
4421 rm -f conftest.err conftest.i conftest.$ac_ext
4424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4425 rm -f conftest.i conftest.err conftest.$ac_ext
4426 if $ac_preproc_ok; then :
4429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4431 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4432 See \`config.log' for more details" "$LINENO" 5; }
4436 ac_cpp='$CPP $CPPFLAGS'
4437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4443 $as_echo_n "checking whether ln -s works... " >&6; }
4445 if test "$LN_S" = "ln -s"; then
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4447 $as_echo "yes" >&6; }
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4450 $as_echo "no, using $LN_S" >&6; }
4453 # Check whether --enable-static was given.
4454 if test "${enable_static+set}" = set; then :
4455 enableval=$enable_static; p=${PACKAGE-default}
4457 yes) enable_static=yes ;;
4458 no) enable_static=no ;;
4461 # Look at the argument we got. We use all the common list separators.
4462 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4463 for pkg in $enableval; do
4465 if test "X$pkg" = "X$p"; then
4480 # Check whether --enable-shared was given.
4481 if test "${enable_shared+set}" = set; then :
4482 enableval=$enable_shared; p=${PACKAGE-default}
4484 yes) enable_shared=yes ;;
4485 no) enable_shared=no ;;
4488 # Look at the argument we got. We use all the common list separators.
4489 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4490 for pkg in $enableval; do
4492 if test "X$pkg" = "X$p"; then
4504 # Check whether --enable-fast-install was given.
4505 if test "${enable_fast_install+set}" = set; then :
4506 enableval=$enable_fast_install; p=${PACKAGE-default}
4508 yes) enable_fast_install=yes ;;
4509 no) enable_fast_install=no ;;
4511 enable_fast_install=no
4512 # Look at the argument we got. We use all the common list separators.
4513 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4514 for pkg in $enableval; do
4516 if test "X$pkg" = "X$p"; then
4517 enable_fast_install=yes
4524 enable_fast_install=yes
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4529 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4530 if ${lt_cv_path_SED+:} false; then :
4531 $as_echo_n "(cached) " >&6
4533 # Loop through the user's path and test for sed and gsed.
4534 # Then use that list of sed's as ones to test for truncation.
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 test -z "$as_dir" && as_dir=.
4540 for lt_ac_prog in sed gsed; do
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4543 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4550 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4551 # along with /bin/sed that truncates output.
4552 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4553 test ! -f $lt_ac_sed && continue
4554 cat /dev/null > conftest.in
4556 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4557 # Check for GNU sed and select it if it is found.
4558 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4559 lt_cv_path_SED=$lt_ac_sed
4563 cat conftest.in conftest.in >conftest.tmp
4564 mv conftest.tmp conftest.in
4565 cp conftest.in conftest.nl
4567 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4568 cmp -s conftest.out conftest.nl || break
4569 # 10000 chars as input seems more than enough
4570 test $lt_ac_count -gt 10 && break
4571 lt_ac_count=`expr $lt_ac_count + 1`
4572 if test $lt_ac_count -gt $lt_ac_max; then
4573 lt_ac_max=$lt_ac_count
4574 lt_cv_path_SED=$lt_ac_sed
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4583 $as_echo "$SED" >&6; }
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4586 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4587 if ${ac_cv_path_GREP+:} false; then :
4588 $as_echo_n "(cached) " >&6
4590 if test -z "$GREP"; then
4591 ac_path_GREP_found=false
4592 # Loop through the user's path and test for each of PROGNAME-LIST
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4597 test -z "$as_dir" && as_dir=.
4598 for ac_prog in grep ggrep; do
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4601 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4602 # Check for GNU ac_path_GREP and select it if it is found.
4603 # Check for GNU $ac_path_GREP
4604 case `"$ac_path_GREP" --version 2>&1` in
4606 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4609 $as_echo_n 0123456789 >"conftest.in"
4612 cat "conftest.in" "conftest.in" >"conftest.tmp"
4613 mv "conftest.tmp" "conftest.in"
4614 cp "conftest.in" "conftest.nl"
4615 $as_echo 'GREP' >> "conftest.nl"
4616 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4617 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4618 as_fn_arith $ac_count + 1 && ac_count=$as_val
4619 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4620 # Best one so far, save it but keep looking for a better one
4621 ac_cv_path_GREP="$ac_path_GREP"
4622 ac_path_GREP_max=$ac_count
4624 # 10*(2^10) chars as input seems more than enough
4625 test $ac_count -gt 10 && break
4627 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4630 $ac_path_GREP_found && break 3
4635 if test -z "$ac_cv_path_GREP"; then
4636 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4639 ac_cv_path_GREP=$GREP
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4644 $as_echo "$ac_cv_path_GREP" >&6; }
4645 GREP="$ac_cv_path_GREP"
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4649 $as_echo_n "checking for egrep... " >&6; }
4650 if ${ac_cv_path_EGREP+:} false; then :
4651 $as_echo_n "(cached) " >&6
4653 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4654 then ac_cv_path_EGREP="$GREP -E"
4656 if test -z "$EGREP"; then
4657 ac_path_EGREP_found=false
4658 # Loop through the user's path and test for each of PROGNAME-LIST
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4663 test -z "$as_dir" && as_dir=.
4664 for ac_prog in egrep; do
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4667 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4668 # Check for GNU ac_path_EGREP and select it if it is found.
4669 # Check for GNU $ac_path_EGREP
4670 case `"$ac_path_EGREP" --version 2>&1` in
4672 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4675 $as_echo_n 0123456789 >"conftest.in"
4678 cat "conftest.in" "conftest.in" >"conftest.tmp"
4679 mv "conftest.tmp" "conftest.in"
4680 cp "conftest.in" "conftest.nl"
4681 $as_echo 'EGREP' >> "conftest.nl"
4682 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4684 as_fn_arith $ac_count + 1 && ac_count=$as_val
4685 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4686 # Best one so far, save it but keep looking for a better one
4687 ac_cv_path_EGREP="$ac_path_EGREP"
4688 ac_path_EGREP_max=$ac_count
4690 # 10*(2^10) chars as input seems more than enough
4691 test $ac_count -gt 10 && break
4693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4696 $ac_path_EGREP_found && break 3
4701 if test -z "$ac_cv_path_EGREP"; then
4702 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4705 ac_cv_path_EGREP=$EGREP
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4711 $as_echo "$ac_cv_path_EGREP" >&6; }
4712 EGREP="$ac_cv_path_EGREP"
4716 # Check whether --with-gnu-ld was given.
4717 if test "${with_gnu_ld+set}" = set; then :
4718 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4724 if test "$GCC" = yes; then
4725 # Check if gcc -print-prog-name=ld gives a path.
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4727 $as_echo_n "checking for ld used by $CC... " >&6; }
4730 # gcc leaves a trailing carriage return which upsets mingw
4731 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4733 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4736 # Accept absolute paths.
4738 re_direlt='/[^/][^/]*/\.\./'
4739 # Canonicalize the pathname of ld
4740 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4741 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4742 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4744 test -z "$LD" && LD="$ac_prog"
4747 # If it fails, then pretend we aren't using GCC.
4751 # If it is relative, then search for the first ld in PATH.
4755 elif test "$with_gnu_ld" = yes; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4757 $as_echo_n "checking for GNU ld... " >&6; }
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4760 $as_echo_n "checking for non-GNU ld... " >&6; }
4762 if ${lt_cv_path_LD+:} false; then :
4763 $as_echo_n "(cached) " >&6
4765 if test -z "$LD"; then
4766 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4767 for ac_dir in $PATH; do
4769 test -z "$ac_dir" && ac_dir=.
4770 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4771 lt_cv_path_LD="$ac_dir/$ac_prog"
4772 # Check to see if the program is GNU ld. I'd rather use --version,
4773 # but apparently some variants of GNU ld only accept -v.
4774 # Break only if it was the GNU/non-GNU ld that we prefer.
4775 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4776 *GNU* | *'with BFD'*)
4777 test "$with_gnu_ld" != no && break
4780 test "$with_gnu_ld" != yes && break
4787 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4792 if test -n "$LD"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4794 $as_echo "$LD" >&6; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4799 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4801 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4802 if ${lt_cv_prog_gnu_ld+:} false; then :
4803 $as_echo_n "(cached) " >&6
4805 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4806 case `$LD -v 2>&1 </dev/null` in
4807 *GNU* | *'with BFD'*)
4808 lt_cv_prog_gnu_ld=yes
4811 lt_cv_prog_gnu_ld=no
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4816 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4817 with_gnu_ld=$lt_cv_prog_gnu_ld
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4821 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4822 if ${lt_cv_ld_reload_flag+:} false; then :
4823 $as_echo_n "(cached) " >&6
4825 lt_cv_ld_reload_flag='-r'
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4828 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4829 reload_flag=$lt_cv_ld_reload_flag
4830 case $reload_flag in
4832 *) reload_flag=" $reload_flag" ;;
4834 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4837 if test "$GCC" = yes; then
4838 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4840 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4846 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4847 if ${lt_cv_path_NM+:} false; then :
4848 $as_echo_n "(cached) " >&6
4850 if test -n "$NM"; then
4851 # Let the user override the test.
4854 lt_nm_to_check="${ac_tool_prefix}nm"
4855 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4856 lt_nm_to_check="$lt_nm_to_check nm"
4858 for lt_tmp_nm in $lt_nm_to_check; do
4859 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4860 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4862 test -z "$ac_dir" && ac_dir=.
4863 tmp_nm="$ac_dir/$lt_tmp_nm"
4864 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4865 # Check to see if the nm accepts a BSD-compat flag.
4866 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4867 # nm: unknown option "B" ignored
4868 # Tru64's nm complains that /dev/null is an invalid object file
4869 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4870 */dev/null* | *'Invalid file or object type'*)
4871 lt_cv_path_NM="$tmp_nm -B"
4875 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4877 lt_cv_path_NM="$tmp_nm -p"
4881 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4882 continue # so that we can try to find one that supports BSD flags
4891 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4895 $as_echo "$lt_cv_path_NM" >&6; }
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4899 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4900 if ${lt_cv_deplibs_check_method+:} false; then :
4901 $as_echo_n "(cached) " >&6
4903 lt_cv_file_magic_cmd='$MAGIC_CMD'
4904 lt_cv_file_magic_test_file=
4905 lt_cv_deplibs_check_method='unknown'
4906 # Need to set the preceding variable on all platforms that support
4907 # interlibrary dependencies.
4908 # 'none' -- dependencies not supported.
4909 # `unknown' -- same as none, but documents that we really don't know.
4910 # 'pass_all' -- all dependencies passed with no checks.
4911 # 'test_compile' -- check by making test program.
4912 # 'file_magic [[regex]]' -- check by looking for files in library path
4913 # which responds to the $file_magic_cmd with a given extended regex.
4914 # If you have `file' or equivalent on your system and you're not sure
4915 # whether `pass_all' will *always* work, you probably want this one.
4919 lt_cv_deplibs_check_method=pass_all
4923 lt_cv_deplibs_check_method=pass_all
4927 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4928 lt_cv_file_magic_cmd='/usr/bin/file -L'
4929 lt_cv_file_magic_test_file=/shlib/libc.so
4933 # func_win32_libid is a shell function defined in ltmain.sh
4934 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4935 lt_cv_file_magic_cmd='func_win32_libid'
4939 # Base MSYS/MinGW do not provide the 'file' command needed by
4940 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4941 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4942 lt_cv_file_magic_cmd='$OBJDUMP -f'
4945 darwin* | rhapsody*)
4946 lt_cv_deplibs_check_method=pass_all
4949 freebsd* | kfreebsd*-gnu | dragonfly*)
4950 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4953 # Not sure whether the presence of OpenBSD here was a mistake.
4954 # Let's accept both of them until this is cleared up.
4955 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4956 lt_cv_file_magic_cmd=/usr/bin/file
4957 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4961 lt_cv_deplibs_check_method=pass_all
4966 lt_cv_deplibs_check_method=pass_all
4969 hpux10.20* | hpux11*)
4970 lt_cv_file_magic_cmd=/usr/bin/file
4973 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4974 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4977 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]'
4978 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4981 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4982 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4988 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4989 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4992 irix5* | irix6* | nonstopux*)
4994 *-32|*"-32 ") libmagic=32-bit;;
4995 *-n32|*"-n32 ") libmagic=N32;;
4996 *-64|*"-64 ") libmagic=64-bit;;
4997 *) libmagic=never-match;;
4999 lt_cv_deplibs_check_method=pass_all
5002 # This must be Linux ELF.
5004 lt_cv_deplibs_check_method=pass_all
5008 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5016 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5017 lt_cv_file_magic_cmd=/usr/bin/file
5018 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5022 lt_cv_deplibs_check_method=unknown
5026 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5033 osf3* | osf4* | osf5*)
5034 lt_cv_deplibs_check_method=pass_all
5038 lt_cv_deplibs_check_method=pass_all
5042 case $host_vendor in
5044 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]'
5045 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5048 lt_cv_deplibs_check_method=pass_all
5051 lt_cv_file_magic_cmd='/bin/file'
5052 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5055 lt_cv_file_magic_cmd='/bin/file'
5056 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5057 lt_cv_file_magic_test_file=/lib/libc.so
5060 lt_cv_deplibs_check_method=pass_all
5063 lt_cv_deplibs_check_method=pass_all
5068 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5069 lt_cv_deplibs_check_method=pass_all
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5075 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5076 file_magic_cmd=$lt_cv_file_magic_cmd
5077 deplibs_check_method=$lt_cv_deplibs_check_method
5078 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5083 # If no C compiler was specified, use CC.
5086 # If no C compiler flags were specified, use CFLAGS.
5087 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5089 # Allow CC to be a program name with arguments.
5093 # Check whether --enable-libtool-lock was given.
5094 if test "${enable_libtool_lock+set}" = set; then :
5095 enableval=$enable_libtool_lock;
5098 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5100 # Some flags need to be propagated to the compiler or linker for good
5104 # Find out which ABI we are using.
5105 echo 'int i;' > conftest.$ac_ext
5106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5107 (eval $ac_compile) 2>&5
5109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5110 test $ac_status = 0; }; then
5111 case `/usr/bin/file conftest.$ac_objext` in
5123 # Find out which ABI we are using.
5124 echo '#line 5124 "configure"' > conftest.$ac_ext
5125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5126 (eval $ac_compile) 2>&5
5128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5129 test $ac_status = 0; }; then
5130 if test "$lt_cv_prog_gnu_ld" = yes; then
5131 case `/usr/bin/file conftest.$ac_objext` in
5133 LD="${LD-ld} -melf32bsmip"
5136 LD="${LD-ld} -melf32bmipn32"
5139 LD="${LD-ld} -melf64bmip"
5143 case `/usr/bin/file conftest.$ac_objext` in
5159 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5160 # Find out which ABI we are using.
5161 echo 'int i;' > conftest.$ac_ext
5162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5163 (eval $ac_compile) 2>&5
5165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5166 test $ac_status = 0; }; then
5167 case `/usr/bin/file conftest.o` in
5171 LD="${LD-ld} -m elf_i386"
5173 ppc64-*linux*|powerpc64-*linux*)
5174 LD="${LD-ld} -m elf32ppclinux"
5177 LD="${LD-ld} -m elf_s390"
5180 LD="${LD-ld} -m elf32_sparc"
5187 LD="${LD-ld} -m elf_x86_64"
5189 ppc*-*linux*|powerpc*-*linux*)
5190 LD="${LD-ld} -m elf64ppc"
5193 LD="${LD-ld} -m elf64_s390"
5196 LD="${LD-ld} -m elf64_sparc"
5206 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5207 SAVE_CFLAGS="$CFLAGS"
5208 CFLAGS="$CFLAGS -belf"
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5210 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5211 if ${lt_cv_cc_needs_belf+:} false; then :
5212 $as_echo_n "(cached) " >&6
5215 ac_cpp='$CPP $CPPFLAGS'
5216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221 /* end confdefs.h. */
5231 if ac_fn_c_try_link "$LINENO"; then :
5232 lt_cv_cc_needs_belf=yes
5234 lt_cv_cc_needs_belf=no
5236 rm -f core conftest.err conftest.$ac_objext \
5237 conftest$ac_exeext conftest.$ac_ext
5239 ac_cpp='$CPP $CPPFLAGS'
5240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5246 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5247 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5248 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5249 CFLAGS="$SAVE_CFLAGS"
5253 # Find out which ABI we are using.
5254 echo 'int i;' > conftest.$ac_ext
5255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5256 (eval $ac_compile) 2>&5
5258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5259 test $ac_status = 0; }; then
5260 case `/usr/bin/file conftest.o` in
5262 case $lt_cv_prog_gnu_ld in
5263 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5264 *) LD="${LD-ld} -64" ;;
5275 need_locks="$enable_libtool_lock"
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5280 $as_echo_n "checking for ANSI C header files... " >&6; }
5281 if ${ac_cv_header_stdc+:} false; then :
5282 $as_echo_n "(cached) " >&6
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5299 if ac_fn_c_try_compile "$LINENO"; then :
5300 ac_cv_header_stdc=yes
5302 ac_cv_header_stdc=no
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 if test $ac_cv_header_stdc = yes; then
5307 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5314 $EGREP "memchr" >/dev/null 2>&1; then :
5317 ac_cv_header_stdc=no
5323 if test $ac_cv_header_stdc = yes; then
5324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5331 $EGREP "free" >/dev/null 2>&1; then :
5334 ac_cv_header_stdc=no
5340 if test $ac_cv_header_stdc = yes; then
5341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5342 if test "$cross_compiling" = yes; then :
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5349 #if ((' ' & 0x0FF) == 0x020)
5350 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5351 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5353 # define ISLOWER(c) \
5354 (('a' <= (c) && (c) <= 'i') \
5355 || ('j' <= (c) && (c) <= 'r') \
5356 || ('s' <= (c) && (c) <= 'z'))
5357 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5360 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5365 for (i = 0; i < 256; i++)
5366 if (XOR (islower (i), ISLOWER (i))
5367 || toupper (i) != TOUPPER (i))
5372 if ac_fn_c_try_run "$LINENO"; then :
5375 ac_cv_header_stdc=no
5377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5378 conftest.$ac_objext conftest.beam conftest.$ac_ext
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5384 $as_echo "$ac_cv_header_stdc" >&6; }
5385 if test $ac_cv_header_stdc = yes; then
5387 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5391 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5392 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5393 inttypes.h stdint.h unistd.h
5395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5396 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5398 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5399 cat >>confdefs.h <<_ACEOF
5400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5408 for ac_header in dlfcn.h
5410 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5411 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5412 cat >>confdefs.h <<_ACEOF
5413 #define HAVE_DLFCN_H 1
5421 ac_cpp='$CXXCPP $CPPFLAGS'
5422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5425 if test -z "$CXX"; then
5426 if test -n "$CCC"; then
5429 if test -n "$ac_tool_prefix"; then
5430 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if ${ac_cv_prog_CXX+:} false; then :
5437 $as_echo_n "(cached) " >&6
5439 if test -n "$CXX"; then
5440 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5449 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 if test -n "$CXX"; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5462 $as_echo "$CXX" >&6; }
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 $as_echo "no" >&6; }
5469 test -n "$CXX" && break
5472 if test -z "$CXX"; then
5474 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5476 # Extract the first word of "$ac_prog", so it can be a program name with args.
5477 set dummy $ac_prog; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5481 $as_echo_n "(cached) " >&6
5483 if test -n "$ac_ct_CXX"; then
5484 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5493 ac_cv_prog_ac_ct_CXX="$ac_prog"
5494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5504 if test -n "$ac_ct_CXX"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5506 $as_echo "$ac_ct_CXX" >&6; }
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 $as_echo "no" >&6; }
5513 test -n "$ac_ct_CXX" && break
5516 if test "x$ac_ct_CXX" = x; then
5519 case $cross_compiling:$ac_tool_warned in
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5523 ac_tool_warned=yes ;;
5531 # Provide some information about the compiler.
5532 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5535 for ac_option in --version -v -V -qversion; do
5536 { { ac_try="$ac_compiler $ac_option >&5"
5538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5542 $as_echo "$ac_try_echo"; } >&5
5543 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5545 if test -s conftest.err; then
5547 ... rest of stderr output deleted ...
5548 10q' conftest.err >conftest.er1
5549 cat conftest.er1 >&5
5551 rm -f conftest.er1 conftest.err
5552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5553 test $ac_status = 0; }
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5557 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5558 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5559 $as_echo_n "(cached) " >&6
5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5575 if ac_fn_cxx_try_compile "$LINENO"; then :
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5585 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5586 if test $ac_compiler_gnu = yes; then
5591 ac_test_CXXFLAGS=${CXXFLAGS+set}
5592 ac_save_CXXFLAGS=$CXXFLAGS
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5594 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5595 if ${ac_cv_prog_cxx_g+:} false; then :
5596 $as_echo_n "(cached) " >&6
5598 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5599 ac_cxx_werror_flag=yes
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5613 if ac_fn_cxx_try_compile "$LINENO"; then :
5614 ac_cv_prog_cxx_g=yes
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5628 if ac_fn_cxx_try_compile "$LINENO"; then :
5631 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5644 if ac_fn_cxx_try_compile "$LINENO"; then :
5645 ac_cv_prog_cxx_g=yes
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5655 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5656 if test "$ac_test_CXXFLAGS" = set; then
5657 CXXFLAGS=$ac_save_CXXFLAGS
5658 elif test $ac_cv_prog_cxx_g = yes; then
5659 if test "$GXX" = yes; then
5665 if test "$GXX" = yes; then
5672 ac_cpp='$CXXCPP $CPPFLAGS'
5673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5677 depcc="$CXX" am_compiler_list=
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5680 $as_echo_n "checking dependency style of $depcc... " >&6; }
5681 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5682 $as_echo_n "(cached) " >&6
5684 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5685 # We make a subdir and do the tests there. Otherwise we can end up
5686 # making bogus files that we don't know about and never remove. For
5687 # instance it was reported that on HP-UX the gcc test will end up
5688 # making a dummy file named `D' -- because `-MD' means `put the output
5691 # Copy depcomp to subdir because otherwise we won't find it if we're
5692 # using a relative directory.
5693 cp "$am_depcomp" conftest.dir
5695 # We will build objects and dependencies in a subdirectory because
5696 # it helps to detect inapplicable dependency modes. For instance
5697 # both Tru64's cc and ICC support -MD to output dependencies as a
5698 # side effect of compilation, but ICC will put the dependencies in
5699 # the current directory while Tru64 will put them in the object
5703 am_cv_CXX_dependencies_compiler_type=none
5704 if test "$am_compiler_list" = ""; then
5705 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5708 case " $depcc " in #(
5709 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5712 for depmode in $am_compiler_list; do
5713 # Setup a source with many dependencies, because some compilers
5714 # like to wrap large dependency lists on column 80 (with \), and
5715 # we should not choose a depcomp mode which is confused by this.
5717 # We need to recreate these files for each test, as the compiler may
5718 # overwrite some of them when testing with obscure command lines.
5719 # This happens at least with the AIX C compiler.
5721 for i in 1 2 3 4 5 6; do
5722 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5723 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5724 # Solaris 8's {/usr,}/bin/sh.
5725 touch sub/conftst$i.h
5727 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5729 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5730 # mode. It turns out that the SunPro C++ compiler does not properly
5731 # handle `-M -o', and we need to detect this. Also, some Intel
5732 # versions had trouble with output in subdirs
5733 am__obj=sub/conftest.${OBJEXT-o}
5734 am__minus_obj="-o $am__obj"
5737 # This depmode causes a compiler race in universal mode.
5738 test "$am__universal" = false || continue
5741 # after this tag, mechanisms are not by side-effect, so they'll
5742 # only be used when explicitly requested
5743 if test "x$enable_dependency_tracking" = xyes; then
5749 msvisualcpp | msvcmsys)
5750 # This compiler won't grok `-c -o', but also, the minuso test has
5751 # not run yet. These depmodes are late enough in the game, and
5752 # so weak that their functioning should not be impacted.
5753 am__obj=conftest.${OBJEXT-o}
5758 if depmode=$depmode \
5759 source=sub/conftest.c object=$am__obj \
5760 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5761 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5762 >/dev/null 2>conftest.err &&
5763 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5764 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5765 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5766 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5767 # icc doesn't choke on unknown options, it will just issue warnings
5768 # or remarks (even with -Werror). So we grep stderr for any message
5769 # that says an option was ignored or not supported.
5770 # When given -MP, icc 7.0 and 7.1 complain thusly:
5771 # icc: Command line warning: ignoring option '-M'; no argument required
5772 # The diagnosis changed in icc 8.0:
5773 # icc: Command line remark: option '-MP' not supported
5774 if (grep 'ignoring option' conftest.err ||
5775 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5776 am_cv_CXX_dependencies_compiler_type=$depmode
5785 am_cv_CXX_dependencies_compiler_type=none
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5790 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5791 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5794 test "x$enable_dependency_tracking" != xno \
5795 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5796 am__fastdepCXX_TRUE=
5797 am__fastdepCXX_FALSE='#'
5799 am__fastdepCXX_TRUE='#'
5800 am__fastdepCXX_FALSE=
5806 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5807 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5808 (test "X$CXX" != "Xg++"))) ; then
5810 ac_cpp='$CXXCPP $CPPFLAGS'
5811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5815 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5816 if test -z "$CXXCPP"; then
5817 if ${ac_cv_prog_CXXCPP+:} false; then :
5818 $as_echo_n "(cached) " >&6
5820 # Double quotes because CXXCPP needs to be expanded
5821 for CXXCPP in "$CXX -E" "/lib/cpp"
5824 for ac_cxx_preproc_warn_flag in '' yes
5826 # Use a header file that comes with gcc, so configuring glibc
5827 # with a fresh cross-compiler works.
5828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5829 # <limits.h> exists even on freestanding compilers.
5830 # On the NeXT, cc -E runs the code through the compiler's parser,
5831 # not just through cpp. "Syntax error" is here to catch this case.
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5835 # include <limits.h>
5837 # include <assert.h>
5841 if ac_fn_cxx_try_cpp "$LINENO"; then :
5844 # Broken: fails on valid input.
5847 rm -f conftest.err conftest.i conftest.$ac_ext
5849 # OK, works on sane cases. Now check whether nonexistent headers
5850 # can be detected and how.
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5853 #include <ac_nonexistent.h>
5855 if ac_fn_cxx_try_cpp "$LINENO"; then :
5856 # Broken: success on invalid input.
5859 # Passes both tests.
5863 rm -f conftest.err conftest.i conftest.$ac_ext
5866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5867 rm -f conftest.i conftest.err conftest.$ac_ext
5868 if $ac_preproc_ok; then :
5873 ac_cv_prog_CXXCPP=$CXXCPP
5876 CXXCPP=$ac_cv_prog_CXXCPP
5878 ac_cv_prog_CXXCPP=$CXXCPP
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5881 $as_echo "$CXXCPP" >&6; }
5883 for ac_cxx_preproc_warn_flag in '' yes
5885 # Use a header file that comes with gcc, so configuring glibc
5886 # with a fresh cross-compiler works.
5887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5888 # <limits.h> exists even on freestanding compilers.
5889 # On the NeXT, cc -E runs the code through the compiler's parser,
5890 # not just through cpp. "Syntax error" is here to catch this case.
5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h. */
5894 # include <limits.h>
5896 # include <assert.h>
5900 if ac_fn_cxx_try_cpp "$LINENO"; then :
5903 # Broken: fails on valid input.
5906 rm -f conftest.err conftest.i conftest.$ac_ext
5908 # OK, works on sane cases. Now check whether nonexistent headers
5909 # can be detected and how.
5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h. */
5912 #include <ac_nonexistent.h>
5914 if ac_fn_cxx_try_cpp "$LINENO"; then :
5915 # Broken: success on invalid input.
5918 # Passes both tests.
5922 rm -f conftest.err conftest.i conftest.$ac_ext
5925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5926 rm -f conftest.i conftest.err conftest.$ac_ext
5927 if $ac_preproc_ok; then :
5930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5932 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5933 See \`config.log' for more details" "$LINENO" 5; }
5937 ac_cpp='$CXXCPP $CPPFLAGS'
5938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5946 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5947 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5948 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5949 if test -n "$ac_tool_prefix"; then
5950 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
5952 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5953 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5955 $as_echo_n "checking for $ac_word... " >&6; }
5956 if ${ac_cv_prog_F77+:} false; then :
5957 $as_echo_n "(cached) " >&6
5959 if test -n "$F77"; then
5960 ac_cv_prog_F77="$F77" # Let the user override the test.
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5969 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 if test -n "$F77"; then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5982 $as_echo "$F77" >&6; }
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5985 $as_echo "no" >&6; }
5989 test -n "$F77" && break
5992 if test -z "$F77"; then
5994 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
5996 # Extract the first word of "$ac_prog", so it can be a program name with args.
5997 set dummy $ac_prog; ac_word=$2
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6001 $as_echo_n "(cached) " >&6
6003 if test -n "$ac_ct_F77"; then
6004 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6013 ac_cv_prog_ac_ct_F77="$ac_prog"
6014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6023 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6024 if test -n "$ac_ct_F77"; then
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6026 $as_echo "$ac_ct_F77" >&6; }
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 $as_echo "no" >&6; }
6033 test -n "$ac_ct_F77" && break
6036 if test "x$ac_ct_F77" = x; then
6039 case $cross_compiling:$ac_tool_warned in
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6043 ac_tool_warned=yes ;;
6050 # Provide some information about the compiler.
6051 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6054 for ac_option in --version -v -V -qversion; do
6055 { { ac_try="$ac_compiler $ac_option >&5"
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6061 $as_echo "$ac_try_echo"; } >&5
6062 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6064 if test -s conftest.err; then
6066 ... rest of stderr output deleted ...
6067 10q' conftest.err >conftest.er1
6068 cat conftest.er1 >&5
6070 rm -f conftest.er1 conftest.err
6071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6072 test $ac_status = 0; }
6076 # If we don't use `.F' as extension, the preprocessor is not run on the
6077 # input file. (Note that this only needs to work for GNU compilers.)
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6081 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6082 if ${ac_cv_f77_compiler_gnu+:} false; then :
6083 $as_echo_n "(cached) " >&6
6085 cat > conftest.$ac_ext <<_ACEOF
6093 if ac_fn_f77_try_compile "$LINENO"; then :
6098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6103 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6105 ac_test_FFLAGS=${FFLAGS+set}
6106 ac_save_FFLAGS=$FFLAGS
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6109 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6110 if ${ac_cv_prog_f77_g+:} false; then :
6111 $as_echo_n "(cached) " >&6
6114 cat > conftest.$ac_ext <<_ACEOF
6119 if ac_fn_f77_try_compile "$LINENO"; then :
6120 ac_cv_prog_f77_g=yes
6124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6128 $as_echo "$ac_cv_prog_f77_g" >&6; }
6129 if test "$ac_test_FFLAGS" = set; then
6130 FFLAGS=$ac_save_FFLAGS
6131 elif test $ac_cv_prog_f77_g = yes; then
6132 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6138 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6145 if test $ac_compiler_gnu = yes; then
6151 ac_cpp='$CPP $CPPFLAGS'
6152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6158 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6160 # find the maximum length of command line arguments
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6162 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6163 if ${lt_cv_sys_max_cmd_len+:} false; then :
6164 $as_echo_n "(cached) " >&6
6171 # On DJGPP, this test can blow up pretty badly due to problems in libc
6172 # (any single argument exceeding 2000 bytes causes a buffer overrun
6173 # during glob expansion). Even if it were fixed, the result of this
6174 # check would be larger than it should be.
6175 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6179 # Under GNU Hurd, this test is not required because there is
6180 # no limit to the length of command line arguments.
6181 # Libtool will interpret -1 as no limit whatsoever
6182 lt_cv_sys_max_cmd_len=-1;
6186 # On Win9x/ME, this test blows up -- it succeeds, but takes
6187 # about 5 minutes as the teststring grows exponentially.
6188 # Worse, since 9x/ME are not pre-emptively multitasking,
6189 # you end up with a "frozen" computer, even though with patience
6190 # the test eventually succeeds (with a max line length of 256k).
6191 # Instead, let's just punt: use the minimum linelength reported by
6192 # all of the supported platforms: 8192 (on NT/2K/XP).
6193 lt_cv_sys_max_cmd_len=8192;
6197 # On AmigaOS with pdksh, this test takes hours, literally.
6198 # So we just punt and use a minimum line length of 8192.
6199 lt_cv_sys_max_cmd_len=8192;
6202 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6203 # This has been around since 386BSD, at least. Likely further.
6204 if test -x /sbin/sysctl; then
6205 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6206 elif test -x /usr/sbin/sysctl; then
6207 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6209 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6211 # And add a safety zone
6212 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6213 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6217 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6218 lt_cv_sys_max_cmd_len=196608
6222 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6223 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6224 # nice to cause kernel panics so lets avoid the loop below.
6225 # First set a reasonable default.
6226 lt_cv_sys_max_cmd_len=16384
6228 if test -x /sbin/sysconfig; then
6229 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6230 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6235 lt_cv_sys_max_cmd_len=102400
6237 sysv5* | sco5v6* | sysv4.2uw2*)
6238 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6239 if test -n "$kargmax"; then
6240 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6242 lt_cv_sys_max_cmd_len=32768
6246 # If test is not a shell built-in, we'll probably end up computing a
6247 # maximum length that is only half of the actual maximum length, but
6249 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6250 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6251 = "XX$teststring") >/dev/null 2>&1 &&
6252 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6253 lt_cv_sys_max_cmd_len=$new_result &&
6254 test $i != 17 # 1/2 MB should be enough
6257 teststring=$teststring$teststring
6260 # Add a significant safety factor because C++ compilers can tack on massive
6261 # amounts of additional arguments before passing them to the linker.
6262 # It appears as though 1/2 is a usable value.
6263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6269 if test -n $lt_cv_sys_max_cmd_len ; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6271 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6274 $as_echo "none" >&6; }
6280 # Check for command to grab the raw symbol name followed by C symbol from nm.
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6282 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6283 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6284 $as_echo_n "(cached) " >&6
6287 # These are sane defaults that work on at least a few old systems.
6288 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6290 # Character class describing NM global symbol codes.
6291 symcode='[BCDEGRST]'
6293 # Regexp to match symbols that can be accessed directly from C.
6294 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6296 # Transform an extracted symbol line into a proper C declaration
6297 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6299 # Transform an extracted symbol line into symbol name and symbol address
6300 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'"
6302 # Define system-specific variables.
6307 cygwin* | mingw* | pw32*)
6308 symcode='[ABCDGISTW]'
6310 hpux*) # Its linker distinguishes data from code symbols
6311 if test "$host_cpu" = ia64; then
6312 symcode='[ABCDEGRST]'
6314 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6315 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'"
6318 if test "$host_cpu" = ia64; then
6319 symcode='[ABCDGIRSTW]'
6320 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6321 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'"
6325 symcode='[BCDEGRST]'
6328 symcode='[BCDEGQRST]'
6339 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6347 # Handle CRLF in mingw tool chain
6351 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6355 # If we're using GNU nm, then use its standard symbol codes.
6356 case `$NM -V 2>&1` in
6357 *GNU* | *'with BFD'*)
6358 symcode='[ABCDGIRSTW]' ;;
6361 # Try without a prefix undercore, then with it.
6362 for ac_symprfx in "" "_"; do
6364 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6365 symxfrm="\\1 $ac_symprfx\\2 \\2"
6367 # Write the raw and C identifiers.
6368 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6370 # Check to see that the pipe works correctly.
6374 cat > conftest.$ac_ext <<EOF
6379 void nm_test_func(){}
6383 int main(){nm_test_var='a';nm_test_func();return(0);}
6386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6387 (eval $ac_compile) 2>&5
6389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6390 test $ac_status = 0; }; then
6391 # Now try to grab the symbols.
6393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6394 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6397 test $ac_status = 0; } && test -s "$nlist"; then
6398 # Try sorting and uniquifying the output.
6399 if sort "$nlist" | uniq > "$nlist"T; then
6400 mv -f "$nlist"T "$nlist"
6405 # Make sure that we snagged all the symbols we need.
6406 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6407 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6408 cat <<EOF > conftest.$ac_ext
6414 # Now generate the symbol file.
6415 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6417 cat <<EOF >> conftest.$ac_ext
6418 #if defined (__STDC__) && __STDC__
6419 # define lt_ptr_t void *
6421 # define lt_ptr_t char *
6425 /* The mapping between symbol names and symbols. */
6430 lt_preloaded_symbols[] =
6433 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6434 cat <<\EOF >> conftest.$ac_ext
6442 # Now try linking the two files.
6443 mv conftest.$ac_objext conftstm.$ac_objext
6444 lt_save_LIBS="$LIBS"
6445 lt_save_CFLAGS="$CFLAGS"
6446 LIBS="conftstm.$ac_objext"
6447 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6449 (eval $ac_link) 2>&5
6451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6452 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6455 LIBS="$lt_save_LIBS"
6456 CFLAGS="$lt_save_CFLAGS"
6458 echo "cannot find nm_test_func in $nlist" >&5
6461 echo "cannot find nm_test_var in $nlist" >&5
6464 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6467 echo "$progname: failed program was:" >&5
6468 cat conftest.$ac_ext >&5
6470 rm -f conftest* conftst*
6472 # Do not use the global_symbol_pipe unless it works.
6473 if test "$pipe_works" = yes; then
6476 lt_cv_sys_global_symbol_pipe=
6482 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6483 lt_cv_sys_global_symbol_to_cdecl=
6485 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6487 $as_echo "failed" >&6; }
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6490 $as_echo "ok" >&6; }
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6494 $as_echo_n "checking for objdir... " >&6; }
6495 if ${lt_cv_objdir+:} false; then :
6496 $as_echo_n "(cached) " >&6
6498 rm -f .libs 2>/dev/null
6499 mkdir .libs 2>/dev/null
6500 if test -d .libs; then
6503 # MS-DOS does not allow filenames that begin with a dot.
6506 rmdir .libs 2>/dev/null
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6509 $as_echo "$lt_cv_objdir" >&6; }
6510 objdir=$lt_cv_objdir
6518 # AIX sometimes has problems with the GCC collect2 program. For some
6519 # reason, if we set the COLLECT_NAMES environment variable, the problems
6520 # vanish in a puff of smoke.
6521 if test "X${COLLECT_NAMES+set}" != Xset; then
6523 export COLLECT_NAMES
6528 # Sed substitution that helps us do robust quoting. It backslashifies
6529 # metacharacters that are still active within double-quoted strings.
6530 Xsed='sed -e 1s/^X//'
6531 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6533 # Same as above, but do not quote variable references.
6534 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6536 # Sed substitution to delay expansion of an escaped shell variable in a
6537 # double_quote_subst'ed string.
6538 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6540 # Sed substitution to avoid accidental globbing in evaled expressions
6541 no_glob_subst='s/\*/\\\*/g'
6547 default_ofile=libtool
6548 can_build_shared=yes
6550 # All known linkers require a `.a' archive for static linking (except MSVC,
6551 # which needs '.lib').
6553 ltmain="$ac_aux_dir/ltmain.sh"
6554 ofile="$default_ofile"
6555 with_gnu_ld="$lt_cv_prog_gnu_ld"
6557 if test -n "$ac_tool_prefix"; then
6558 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6559 set dummy ${ac_tool_prefix}ar; ac_word=$2
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561 $as_echo_n "checking for $ac_word... " >&6; }
6562 if ${ac_cv_prog_AR+:} false; then :
6563 $as_echo_n "(cached) " >&6
6565 if test -n "$AR"; then
6566 ac_cv_prog_AR="$AR" # Let the user override the test.
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 test -z "$as_dir" && as_dir=.
6573 for ac_exec_ext in '' $ac_executable_extensions; do
6574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6575 ac_cv_prog_AR="${ac_tool_prefix}ar"
6576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6586 if test -n "$AR"; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6588 $as_echo "$AR" >&6; }
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6596 if test -z "$ac_cv_prog_AR"; then
6598 # Extract the first word of "ar", so it can be a program name with args.
6599 set dummy ar; ac_word=$2
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6601 $as_echo_n "checking for $ac_word... " >&6; }
6602 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6603 $as_echo_n "(cached) " >&6
6605 if test -n "$ac_ct_AR"; then
6606 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
6614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6615 ac_cv_prog_ac_ct_AR="ar"
6616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6626 if test -n "$ac_ct_AR"; then
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6628 $as_echo "$ac_ct_AR" >&6; }
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631 $as_echo "no" >&6; }
6634 if test "x$ac_ct_AR" = x; then
6637 case $cross_compiling:$ac_tool_warned in
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6641 ac_tool_warned=yes ;;
6649 if test -n "$ac_tool_prefix"; then
6650 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6651 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653 $as_echo_n "checking for $ac_word... " >&6; }
6654 if ${ac_cv_prog_RANLIB+:} false; then :
6655 $as_echo_n "(cached) " >&6
6657 if test -n "$RANLIB"; then
6658 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 test -z "$as_dir" && as_dir=.
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6667 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6677 RANLIB=$ac_cv_prog_RANLIB
6678 if test -n "$RANLIB"; then
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6680 $as_echo "$RANLIB" >&6; }
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683 $as_echo "no" >&6; }
6688 if test -z "$ac_cv_prog_RANLIB"; then
6689 ac_ct_RANLIB=$RANLIB
6690 # Extract the first word of "ranlib", so it can be a program name with args.
6691 set dummy ranlib; ac_word=$2
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693 $as_echo_n "checking for $ac_word... " >&6; }
6694 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6695 $as_echo_n "(cached) " >&6
6697 if test -n "$ac_ct_RANLIB"; then
6698 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707 ac_cv_prog_ac_ct_RANLIB="ranlib"
6708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6718 if test -n "$ac_ct_RANLIB"; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6720 $as_echo "$ac_ct_RANLIB" >&6; }
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723 $as_echo "no" >&6; }
6726 if test "x$ac_ct_RANLIB" = x; then
6729 case $cross_compiling:$ac_tool_warned in
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6733 ac_tool_warned=yes ;;
6735 RANLIB=$ac_ct_RANLIB
6738 RANLIB="$ac_cv_prog_RANLIB"
6741 if test -n "$ac_tool_prefix"; then
6742 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6743 set dummy ${ac_tool_prefix}strip; ac_word=$2
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6745 $as_echo_n "checking for $ac_word... " >&6; }
6746 if ${ac_cv_prog_STRIP+:} false; then :
6747 $as_echo_n "(cached) " >&6
6749 if test -n "$STRIP"; then
6750 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6759 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 STRIP=$ac_cv_prog_STRIP
6770 if test -n "$STRIP"; then
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6772 $as_echo "$STRIP" >&6; }
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775 $as_echo "no" >&6; }
6780 if test -z "$ac_cv_prog_STRIP"; then
6782 # Extract the first word of "strip", so it can be a program name with args.
6783 set dummy strip; ac_word=$2
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785 $as_echo_n "checking for $ac_word... " >&6; }
6786 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6787 $as_echo_n "(cached) " >&6
6789 if test -n "$ac_ct_STRIP"; then
6790 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6799 ac_cv_prog_ac_ct_STRIP="strip"
6800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6810 if test -n "$ac_ct_STRIP"; then
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6812 $as_echo "$ac_ct_STRIP" >&6; }
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815 $as_echo "no" >&6; }
6818 if test "x$ac_ct_STRIP" = x; then
6821 case $cross_compiling:$ac_tool_warned in
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6825 ac_tool_warned=yes ;;
6830 STRIP="$ac_cv_prog_STRIP"
6835 old_CFLAGS="$CFLAGS"
6837 # Set sane defaults for various variables
6838 test -z "$AR" && AR=ar
6839 test -z "$AR_FLAGS" && AR_FLAGS=cru
6840 test -z "$AS" && AS=as
6841 test -z "$CC" && CC=cc
6842 test -z "$LTCC" && LTCC=$CC
6843 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6844 test -z "$DLLTOOL" && DLLTOOL=dlltool
6845 test -z "$LD" && LD=ld
6846 test -z "$LN_S" && LN_S="ln -s"
6847 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6848 test -z "$NM" && NM=nm
6849 test -z "$SED" && SED=sed
6850 test -z "$OBJDUMP" && OBJDUMP=objdump
6851 test -z "$RANLIB" && RANLIB=:
6852 test -z "$STRIP" && STRIP=:
6853 test -z "$ac_objext" && ac_objext=o
6855 # Determine commands to create old-style static archives.
6856 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6857 old_postinstall_cmds='chmod 644 $oldlib'
6858 old_postuninstall_cmds=
6860 if test -n "$RANLIB"; then
6863 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6866 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6869 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6872 for cc_temp in $compiler""; do
6874 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6875 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6880 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6883 # Only perform the check for file, if the check method requires it
6884 case $deplibs_check_method in
6886 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6888 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6889 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6890 $as_echo_n "(cached) " >&6
6894 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6897 lt_save_MAGIC_CMD="$MAGIC_CMD"
6898 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6899 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6900 for ac_dir in $ac_dummy; do
6902 test -z "$ac_dir" && ac_dir=.
6903 if test -f $ac_dir/${ac_tool_prefix}file; then
6904 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6905 if test -n "$file_magic_test_file"; then
6906 case $deplibs_check_method in
6908 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6909 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6910 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6911 $EGREP "$file_magic_regex" > /dev/null; then
6916 *** Warning: the command libtool uses to detect shared libraries,
6917 *** $file_magic_cmd, produces output that libtool cannot recognize.
6918 *** The result is that libtool may fail to recognize shared libraries
6919 *** as such. This will affect the creation of libtool libraries that
6920 *** depend on shared libraries, but programs linked with such libtool
6921 *** libraries will work regardless of this problem. Nevertheless, you
6922 *** may want to report the problem to your system manager and/or to
6923 *** bug-libtool@gnu.org
6933 MAGIC_CMD="$lt_save_MAGIC_CMD"
6938 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6939 if test -n "$MAGIC_CMD"; then
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6941 $as_echo "$MAGIC_CMD" >&6; }
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6947 if test -z "$lt_cv_path_MAGIC_CMD"; then
6948 if test -n "$ac_tool_prefix"; then
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6950 $as_echo_n "checking for file... " >&6; }
6951 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6952 $as_echo_n "(cached) " >&6
6956 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6959 lt_save_MAGIC_CMD="$MAGIC_CMD"
6960 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6961 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6962 for ac_dir in $ac_dummy; do
6964 test -z "$ac_dir" && ac_dir=.
6965 if test -f $ac_dir/file; then
6966 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6967 if test -n "$file_magic_test_file"; then
6968 case $deplibs_check_method in
6970 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6971 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6972 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6973 $EGREP "$file_magic_regex" > /dev/null; then
6978 *** Warning: the command libtool uses to detect shared libraries,
6979 *** $file_magic_cmd, produces output that libtool cannot recognize.
6980 *** The result is that libtool may fail to recognize shared libraries
6981 *** as such. This will affect the creation of libtool libraries that
6982 *** depend on shared libraries, but programs linked with such libtool
6983 *** libraries will work regardless of this problem. Nevertheless, you
6984 *** may want to report the problem to your system manager and/or to
6985 *** bug-libtool@gnu.org
6995 MAGIC_CMD="$lt_save_MAGIC_CMD"
7000 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7001 if test -n "$MAGIC_CMD"; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7003 $as_echo "$MAGIC_CMD" >&6; }
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 $as_echo "no" >&6; }
7021 # Check whether --enable-libtool-lock was given.
7022 if test "${enable_libtool_lock+set}" = set; then :
7023 enableval=$enable_libtool_lock;
7026 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7029 # Check whether --with-pic was given.
7030 if test "${with_pic+set}" = set; then :
7031 withval=$with_pic; pic_mode="$withval"
7036 test -z "$pic_mode" && pic_mode=default
7038 # Use C for the default configuration in the libtool script
7042 ac_cpp='$CPP $CPPFLAGS'
7043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7048 # Source file extension for C test sources.
7051 # Object file extension for compiled C test sources.
7055 # Code to be used in simple compile tests
7056 lt_simple_compile_test_code="int some_variable = 0;\n"
7058 # Code to be used in simple link tests
7059 lt_simple_link_test_code='int main(){return(0);}\n'
7062 # If no C compiler was specified, use CC.
7065 # If no C compiler flags were specified, use CFLAGS.
7066 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7068 # Allow CC to be a program name with arguments.
7072 # save warnings/boilerplate of simple test code
7073 ac_outfile=conftest.$ac_objext
7074 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7075 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7076 _lt_compiler_boilerplate=`cat conftest.err`
7079 ac_outfile=conftest.$ac_objext
7080 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7081 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7082 _lt_linker_boilerplate=`cat conftest.err`
7087 lt_prog_compiler_no_builtin_flag=
7089 if test "$GCC" = yes; then
7090 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7094 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7095 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7096 $as_echo_n "(cached) " >&6
7098 lt_cv_prog_compiler_rtti_exceptions=no
7099 ac_outfile=conftest.$ac_objext
7100 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7101 lt_compiler_flag="-fno-rtti -fno-exceptions"
7102 # Insert the option either (1) after the last *FLAGS variable, or
7103 # (2) before a word containing "conftest.", or (3) at the end.
7104 # Note that $ac_compile itself does not contain backslashes and begins
7105 # with a dollar sign (not a hyphen), so the echo should work correctly.
7106 # The option is referenced via a variable to avoid confusing sed.
7107 lt_compile=`echo "$ac_compile" | $SED \
7108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7110 -e 's:$: $lt_compiler_flag:'`
7111 (eval echo "\"\$as_me:7111: $lt_compile\"" >&5)
7112 (eval "$lt_compile" 2>conftest.err)
7114 cat conftest.err >&5
7115 echo "$as_me:7115: \$? = $ac_status" >&5
7116 if (exit $ac_status) && test -s "$ac_outfile"; then
7117 # The compiler can only warn and ignore the option if not recognized
7118 # So say no if there are warnings other than the usual output.
7119 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7121 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7122 lt_cv_prog_compiler_rtti_exceptions=yes
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7129 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7131 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7132 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7139 lt_prog_compiler_wl=
7140 lt_prog_compiler_pic=
7141 lt_prog_compiler_static=
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7144 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7146 if test "$GCC" = yes; then
7147 lt_prog_compiler_wl='-Wl,'
7148 lt_prog_compiler_static='-static'
7152 # All AIX code is PIC.
7153 if test "$host_cpu" = ia64; then
7154 # AIX 5 now supports IA64 processor
7155 lt_prog_compiler_static='-Bstatic'
7160 # FIXME: we need at least 68020 code to build shared libraries, but
7161 # adding the `-m68020' flag to GCC prevents building anything better,
7163 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7166 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7167 # PIC is the default for these OSes.
7170 mingw* | pw32* | os2*)
7171 # This hack is so that the source file can tell whether it is being
7172 # built for inclusion in a dll (and should export symbols for example).
7173 lt_prog_compiler_pic='-DDLL_EXPORT'
7176 darwin* | rhapsody*)
7177 # PIC is the default on this platform
7178 # Common symbols not allowed in MH_DYLIB files
7179 lt_prog_compiler_pic='-fno-common'
7183 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7184 # Instead, we relocate shared libraries at runtime.
7188 # Just because we use GCC doesn't mean we suddenly get shared libraries
7189 # on systems that don't support them.
7190 lt_prog_compiler_can_build_shared=no
7195 if test -d /usr/nec; then
7196 lt_prog_compiler_pic=-Kconform_pic
7201 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7208 lt_prog_compiler_pic='-fPIC'
7214 lt_prog_compiler_pic='-fPIC'
7218 # PORTME Check for flag to pass linker flags through the system compiler.
7221 lt_prog_compiler_wl='-Wl,'
7222 if test "$host_cpu" = ia64; then
7223 # AIX 5 now supports IA64 processor
7224 lt_prog_compiler_static='-Bstatic'
7226 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7230 # PIC is the default on this platform
7231 # Common symbols not allowed in MH_DYLIB files
7232 case $cc_basename in
7234 lt_prog_compiler_pic='-qnocommon'
7235 lt_prog_compiler_wl='-Wl,'
7240 mingw* | pw32* | os2*)
7241 # This hack is so that the source file can tell whether it is being
7242 # built for inclusion in a dll (and should export symbols for example).
7243 lt_prog_compiler_pic='-DDLL_EXPORT'
7246 hpux9* | hpux10* | hpux11*)
7247 lt_prog_compiler_wl='-Wl,'
7248 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7255 lt_prog_compiler_pic='+Z'
7258 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7259 lt_prog_compiler_static='${wl}-a ${wl}archive'
7262 irix5* | irix6* | nonstopux*)
7263 lt_prog_compiler_wl='-Wl,'
7264 # PIC (with -KPIC) is the default.
7265 lt_prog_compiler_static='-non_shared'
7269 lt_prog_compiler_pic='-KPIC'
7270 lt_prog_compiler_static='-Bstatic'
7274 case $cc_basename in
7276 lt_prog_compiler_wl='-Wl,'
7277 lt_prog_compiler_pic='-KPIC'
7278 lt_prog_compiler_static='-static'
7280 pgcc* | pgf77* | pgf90* | pgf95*)
7281 # Portland Group compilers (*not* the Pentium gcc compiler,
7282 # which looks to be a dead project)
7283 lt_prog_compiler_wl='-Wl,'
7284 lt_prog_compiler_pic='-fpic'
7285 lt_prog_compiler_static='-Bstatic'
7288 lt_prog_compiler_wl='-Wl,'
7289 # All Alpha code is PIC.
7290 lt_prog_compiler_static='-non_shared'
7295 osf3* | osf4* | osf5*)
7296 lt_prog_compiler_wl='-Wl,'
7297 # All OSF/1 code is PIC.
7298 lt_prog_compiler_static='-non_shared'
7302 lt_prog_compiler_pic='-KPIC'
7303 lt_prog_compiler_static='-Bstatic'
7304 case $cc_basename in
7306 lt_prog_compiler_wl='-Qoption ld ';;
7308 lt_prog_compiler_wl='-Wl,';;
7313 lt_prog_compiler_wl='-Qoption ld '
7314 lt_prog_compiler_pic='-PIC'
7315 lt_prog_compiler_static='-Bstatic'
7318 sysv4 | sysv4.2uw2* | sysv4.3*)
7319 lt_prog_compiler_wl='-Wl,'
7320 lt_prog_compiler_pic='-KPIC'
7321 lt_prog_compiler_static='-Bstatic'
7325 if test -d /usr/nec ;then
7326 lt_prog_compiler_pic='-Kconform_pic'
7327 lt_prog_compiler_static='-Bstatic'
7331 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7332 lt_prog_compiler_wl='-Wl,'
7333 lt_prog_compiler_pic='-KPIC'
7334 lt_prog_compiler_static='-Bstatic'
7338 lt_prog_compiler_wl='-Wl,'
7339 lt_prog_compiler_can_build_shared=no
7343 lt_prog_compiler_pic='-pic'
7344 lt_prog_compiler_static='-Bstatic'
7348 lt_prog_compiler_can_build_shared=no
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7354 $as_echo "$lt_prog_compiler_pic" >&6; }
7357 # Check to make sure the PIC flag actually works.
7359 if test -n "$lt_prog_compiler_pic"; then
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7362 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7363 if ${lt_prog_compiler_pic_works+:} false; then :
7364 $as_echo_n "(cached) " >&6
7366 lt_prog_compiler_pic_works=no
7367 ac_outfile=conftest.$ac_objext
7368 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7369 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7370 # Insert the option either (1) after the last *FLAGS variable, or
7371 # (2) before a word containing "conftest.", or (3) at the end.
7372 # Note that $ac_compile itself does not contain backslashes and begins
7373 # with a dollar sign (not a hyphen), so the echo should work correctly.
7374 # The option is referenced via a variable to avoid confusing sed.
7375 lt_compile=`echo "$ac_compile" | $SED \
7376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7378 -e 's:$: $lt_compiler_flag:'`
7379 (eval echo "\"\$as_me:7379: $lt_compile\"" >&5)
7380 (eval "$lt_compile" 2>conftest.err)
7382 cat conftest.err >&5
7383 echo "$as_me:7383: \$? = $ac_status" >&5
7384 if (exit $ac_status) && test -s "$ac_outfile"; then
7385 # The compiler can only warn and ignore the option if not recognized
7386 # So say no if there are warnings other than the usual output.
7387 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7389 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7390 lt_prog_compiler_pic_works=yes
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
7397 $as_echo "$lt_prog_compiler_pic_works" >&6; }
7399 if test x"$lt_prog_compiler_pic_works" = xyes; then
7400 case $lt_prog_compiler_pic in
7402 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7405 lt_prog_compiler_pic=
7406 lt_prog_compiler_can_build_shared=no
7411 # For platforms which do not support PIC, -DPIC is meaningless:
7413 lt_prog_compiler_pic=
7416 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7421 # Check to make sure the static flag actually works.
7423 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7425 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7426 if ${lt_prog_compiler_static_works+:} false; then :
7427 $as_echo_n "(cached) " >&6
7429 lt_prog_compiler_static_works=no
7430 save_LDFLAGS="$LDFLAGS"
7431 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7432 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7433 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7434 # The linker can only warn and ignore the option if not recognized
7435 # So say no if there are warnings
7436 if test -s conftest.err; then
7437 # Append any errors to the config.log.
7438 cat conftest.err 1>&5
7439 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7441 if diff conftest.exp conftest.er2 >/dev/null; then
7442 lt_prog_compiler_static_works=yes
7445 lt_prog_compiler_static_works=yes
7449 LDFLAGS="$save_LDFLAGS"
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
7453 $as_echo "$lt_prog_compiler_static_works" >&6; }
7455 if test x"$lt_prog_compiler_static_works" = xyes; then
7458 lt_prog_compiler_static=
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7463 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7464 if ${lt_cv_prog_compiler_c_o+:} false; then :
7465 $as_echo_n "(cached) " >&6
7467 lt_cv_prog_compiler_c_o=no
7468 $rm -r conftest 2>/dev/null
7472 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7474 lt_compiler_flag="-o out/conftest2.$ac_objext"
7475 # Insert the option either (1) after the last *FLAGS variable, or
7476 # (2) before a word containing "conftest.", or (3) at the end.
7477 # Note that $ac_compile itself does not contain backslashes and begins
7478 # with a dollar sign (not a hyphen), so the echo should work correctly.
7479 lt_compile=`echo "$ac_compile" | $SED \
7480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7482 -e 's:$: $lt_compiler_flag:'`
7483 (eval echo "\"\$as_me:7483: $lt_compile\"" >&5)
7484 (eval "$lt_compile" 2>out/conftest.err)
7486 cat out/conftest.err >&5
7487 echo "$as_me:7487: \$? = $ac_status" >&5
7488 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7490 # The compiler can only warn and ignore the option if not recognized
7491 # So say no if there are warnings
7492 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7493 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7494 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7495 lt_cv_prog_compiler_c_o=yes
7500 # SGI C++ compiler will create directory out/ii_files/ for
7501 # template instantiation
7502 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7503 $rm out/* && rmdir out
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7510 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7513 hard_links="nottested"
7514 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7515 # do not overwrite the value of need_locks provided by the user
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7517 $as_echo_n "checking if we can lock with hard links... " >&6; }
7520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7522 ln conftest.a conftest.b 2>&5 || hard_links=no
7523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7525 $as_echo "$hard_links" >&6; }
7526 if test "$hard_links" = no; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7528 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7536 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7539 allow_undefined_flag=
7540 enable_shared_with_static_runtimes=no
7542 archive_expsym_cmds=
7543 old_archive_From_new_cmds=
7544 old_archive_from_expsyms_cmds=
7545 export_dynamic_flag_spec=
7546 whole_archive_flag_spec=
7547 thread_safe_flag_spec=
7548 hardcode_libdir_flag_spec=
7549 hardcode_libdir_flag_spec_ld=
7550 hardcode_libdir_separator=
7553 hardcode_shlibpath_var=unsupported
7554 link_all_deplibs=unknown
7555 hardcode_automatic=no
7558 always_export_symbols=no
7559 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7560 # include_expsyms should be a list of space-separated symbols to be *always*
7561 # included in the symbol list
7563 # exclude_expsyms can be an extended regexp of symbols to exclude
7564 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7565 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7566 # as well as any symbol that contains `d'.
7567 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7568 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7569 # platforms (ab)use it in PIC code, but their linkers get confused if
7570 # the symbol is explicitly referenced. Since portable code cannot
7571 # rely on this symbol name, it's probably fine to never include it in
7572 # preloaded symbol tables.
7573 extract_expsyms_cmds=
7574 # Just being paranoid about ensuring that cc_basename is set.
7575 for cc_temp in $compiler""; do
7577 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7578 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7583 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7586 cygwin* | mingw* | pw32*)
7587 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7588 # When not using gcc, we currently assume that we are using
7589 # Microsoft Visual C++.
7590 if test "$GCC" != yes; then
7595 # we just hope/assume this is gcc and not c89 (= MSVC++)
7604 if test "$with_gnu_ld" = yes; then
7605 # If archive_cmds runs LD, not CC, wlarc should be empty
7608 # Set some defaults for GNU ld with shared library support. These
7609 # are reset later if shared libraries are not supported. Putting them
7610 # here allows them to be overridden if necessary.
7611 runpath_var=LD_RUN_PATH
7612 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7613 export_dynamic_flag_spec='${wl}--export-dynamic'
7614 # ancient GNU ld didn't support --whole-archive et. al.
7615 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7616 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7618 whole_archive_flag_spec=
7620 supports_anon_versioning=no
7621 case `$LD -v 2>/dev/null` in
7622 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7623 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7624 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7625 *\ 2.11.*) ;; # other 2.11 versions
7626 *) supports_anon_versioning=yes ;;
7629 # See if GNU ld supports shared libraries.
7631 aix3* | aix4* | aix5*)
7632 # On AIX/PPC, the GNU linker is very broken
7633 if test "$host_cpu" != ia64; then
7637 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7638 *** to be unable to reliably create shared libraries on AIX.
7639 *** Therefore, libtool is disabling shared libraries support. If you
7640 *** really care for shared libraries, you may want to modify your PATH
7641 *** so that a non-GNU linker is found, and then restart.
7648 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)'
7649 hardcode_libdir_flag_spec='-L$libdir'
7650 hardcode_minus_L=yes
7652 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7653 # that the semantics of dynamic libraries on AmigaOS, at least up
7654 # to version 4, is to share data among multiple programs linked
7655 # with the same dynamic library. Since this doesn't match the
7656 # behavior of shared libraries on other platforms, we can't use
7662 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7663 allow_undefined_flag=unsupported
7664 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7665 # support --undefined. This deserves some investigation. FIXME
7666 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7672 cygwin* | mingw* | pw32*)
7673 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7674 # as there is no search path for DLLs.
7675 hardcode_libdir_flag_spec='-L$libdir'
7676 allow_undefined_flag=unsupported
7677 always_export_symbols=no
7678 enable_shared_with_static_runtimes=yes
7679 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7681 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7683 # If the export-symbols file already is a .def file (1st line
7684 # is EXPORTS), use it as is; otherwise, prepend...
7685 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7686 cp $export_symbols $output_objdir/$soname.def;
7688 echo EXPORTS > $output_objdir/$soname.def;
7689 cat $export_symbols >> $output_objdir/$soname.def;
7691 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7699 hardcode_shlibpath_var=no
7700 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7701 export_dynamic_flag_spec='${wl}-E'
7702 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7703 # Instead, shared libraries are loaded at an image base (0x10000000 by
7704 # default) and relocated if they conflict, which is a slow very memory
7705 # consuming and fragmenting process. To avoid this, we pick a random,
7706 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7707 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7708 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7709 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'
7713 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7715 case $cc_basename,$host_cpu in
7716 pgcc*) # Portland Group C compiler
7717 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'
7718 tmp_addflag=' $pic_flag'
7720 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7721 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'
7722 tmp_addflag=' $pic_flag -Mnomain' ;;
7723 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7724 tmp_addflag=' -i_dynamic' ;;
7725 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7726 tmp_addflag=' -i_dynamic -nofor_main' ;;
7727 ifc* | ifort*) # Intel Fortran compiler
7728 tmp_addflag=' -nofor_main' ;;
7730 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7732 if test $supports_anon_versioning = yes; then
7733 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7734 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7735 $echo "local: *; };" >> $output_objdir/$libname.ver~
7736 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7744 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7745 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7749 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7754 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7758 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7759 *** create shared libraries on Solaris systems. Therefore, libtool
7760 *** is disabling shared libraries support. We urge you to upgrade GNU
7761 *** binutils to release 2.9.1 or newer. Another option is to modify
7762 *** your PATH or compiler configuration so that the native linker is
7763 *** used, and then restart.
7766 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7768 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7774 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7775 case `$LD -v 2>&1` in
7776 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7780 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7781 *** reliably create shared libraries on SCO systems. Therefore, libtool
7782 *** is disabling shared libraries support. We urge you to upgrade GNU
7783 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7784 *** your PATH or compiler configuration so that the native linker is
7785 *** used, and then restart.
7790 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7791 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7793 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7802 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7805 hardcode_shlibpath_var=no
7809 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7810 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7811 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7818 if test "$ld_shlibs" = no; then
7820 hardcode_libdir_flag_spec=
7821 export_dynamic_flag_spec=
7822 whole_archive_flag_spec=
7825 # PORTME fill in a description of your system's linker (not GNU ld)
7828 allow_undefined_flag=unsupported
7829 always_export_symbols=yes
7830 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'
7831 # Note: this linker hardcodes the directories in LIBPATH if there
7832 # are no directories specified by -L.
7833 hardcode_minus_L=yes
7834 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7835 # Neither direct hardcoding nor static linking is supported with a
7837 hardcode_direct=unsupported
7842 if test "$host_cpu" = ia64; then
7843 # On IA64, the linker does run time linking by default, so we don't
7844 # have to do anything special.
7845 aix_use_runtimelinking=no
7846 exp_sym_flag='-Bexport'
7849 # If we're using GNU nm, then we don't want the "-C" option.
7850 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7851 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7852 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'
7854 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'
7856 aix_use_runtimelinking=no
7858 # Test if we are trying to use run time linking or normal
7859 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7860 # need to do runtime linking.
7861 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7862 for ld_flag in $LDFLAGS; do
7863 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7864 aix_use_runtimelinking=yes
7871 exp_sym_flag='-bexport'
7872 no_entry_flag='-bnoentry'
7875 # When large executables or shared objects are built, AIX ld can
7876 # have problems creating the table of contents. If linking a library
7877 # or program results in "error TOC overflow" add -mminimal-toc to
7878 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7879 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7883 hardcode_libdir_separator=':'
7884 link_all_deplibs=yes
7886 if test "$GCC" = yes; then
7887 case $host_os in aix4.[012]|aix4.[012].*)
7888 # We only want to do this on AIX 4.2 and lower, the check
7889 # below for broken collect2 doesn't work under 4.3+
7890 collect2name=`${CC} -print-prog-name=collect2`
7891 if test -f "$collect2name" && \
7892 strings "$collect2name" | grep resolve_lib_name >/dev/null
7894 # We have reworked collect2
7897 # We have old collect2
7898 hardcode_direct=unsupported
7899 # It fails to find uninstalled libraries when the uninstalled
7900 # path is not listed in the libpath. Setting hardcode_minus_L
7901 # to unsupported forces relinking
7902 hardcode_minus_L=yes
7903 hardcode_libdir_flag_spec='-L$libdir'
7904 hardcode_libdir_separator=
7908 shared_flag='-shared'
7909 if test "$aix_use_runtimelinking" = yes; then
7910 shared_flag="$shared_flag "'${wl}-G'
7914 if test "$host_cpu" = ia64; then
7915 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7916 # chokes on -Wl,-G. The following line is correct:
7919 if test "$aix_use_runtimelinking" = yes; then
7920 shared_flag='${wl}-G'
7922 shared_flag='${wl}-bM:SRE'
7927 # It seems that -bexpall does not export symbols beginning with
7928 # underscore (_), so it is better to generate a list of symbols to export.
7929 always_export_symbols=yes
7930 if test "$aix_use_runtimelinking" = yes; then
7931 # Warning - without using the other runtime loading flags (-brtl),
7932 # -berok will link without error, but may produce a broken library.
7933 allow_undefined_flag='-berok'
7934 # Determine the default libpath from the value encoded in an empty executable.
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7946 if ac_fn_c_try_link "$LINENO"; then :
7948 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7950 # Check for a 64-bit object if we didn't find anything.
7951 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; }
7954 rm -f core conftest.err conftest.$ac_objext \
7955 conftest$ac_exeext conftest.$ac_ext
7956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7958 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7959 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"
7961 if test "$host_cpu" = ia64; then
7962 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7963 allow_undefined_flag="-z nodefs"
7964 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"
7966 # Determine the default libpath from the value encoded in an empty executable.
7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h. */
7978 if ac_fn_c_try_link "$LINENO"; then :
7980 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7982 # Check for a 64-bit object if we didn't find anything.
7983 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; }
7986 rm -f core conftest.err conftest.$ac_objext \
7987 conftest$ac_exeext conftest.$ac_ext
7988 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7990 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7991 # Warning - without using the other run time loading flags,
7992 # -berok will link without error, but may produce a broken library.
7993 no_undefined_flag=' ${wl}-bernotok'
7994 allow_undefined_flag=' ${wl}-berok'
7995 # Exported symbols can be pulled into shared objects from archives
7996 whole_archive_flag_spec='$convenience'
7997 archive_cmds_need_lc=yes
7998 # This is similar to how AIX traditionally builds its shared libraries.
7999 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'
8005 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)'
8006 hardcode_libdir_flag_spec='-L$libdir'
8007 hardcode_minus_L=yes
8008 # see comment about different semantics on the GNU ld section
8013 export_dynamic_flag_spec=-rdynamic
8016 cygwin* | mingw* | pw32*)
8017 # When not using gcc, we currently assume that we are using
8018 # Microsoft Visual C++.
8019 # hardcode_libdir_flag_spec is actually meaningless, as there is
8020 # no search path for DLLs.
8021 hardcode_libdir_flag_spec=' '
8022 allow_undefined_flag=unsupported
8023 # Tell ltmain to make .lib files, not .a files.
8025 # Tell ltmain to make .dll files, not .so files.
8027 # FIXME: Setting linknames here is a bad hack.
8028 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8029 # The linker will automatically build a .lib file if we build a DLL.
8030 old_archive_From_new_cmds='true'
8031 # FIXME: Should let the user specify the lib program.
8032 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8033 fix_srcfile_path='`cygpath -w "$srcfile"`'
8034 enable_shared_with_static_runtimes=yes
8037 darwin* | rhapsody*)
8039 rhapsody* | darwin1.[012])
8040 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8043 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8044 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8046 case ${MACOSX_DEPLOYMENT_TARGET} in
8048 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8051 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8057 archive_cmds_need_lc=no
8059 hardcode_automatic=yes
8060 hardcode_shlibpath_var=unsupported
8061 whole_archive_flag_spec=''
8062 link_all_deplibs=yes
8063 if test "$GCC" = yes ; then
8064 output_verbose_link_cmd='echo'
8065 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8066 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8067 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8068 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}'
8069 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}'
8071 case $cc_basename in
8073 output_verbose_link_cmd='echo'
8074 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8075 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8076 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8077 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}'
8078 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}'
8088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8089 hardcode_libdir_flag_spec='-L$libdir'
8090 hardcode_shlibpath_var=no
8097 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8098 # support. Future versions do this automatically, but an explicit c++rt0.o
8099 # does not break anything, and helps significantly (at the cost of a little
8102 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8103 hardcode_libdir_flag_spec='-R$libdir'
8105 hardcode_shlibpath_var=no
8108 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8110 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8112 hardcode_minus_L=yes
8113 hardcode_shlibpath_var=no
8116 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8117 freebsd* | kfreebsd*-gnu | dragonfly*)
8118 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8119 hardcode_libdir_flag_spec='-R$libdir'
8121 hardcode_shlibpath_var=no
8125 if test "$GCC" = yes; then
8126 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'
8128 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'
8130 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8131 hardcode_libdir_separator=:
8134 # hardcode_minus_L: Not really in the search PATH,
8135 # but as the default location of the library.
8136 hardcode_minus_L=yes
8137 export_dynamic_flag_spec='${wl}-E'
8141 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8142 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8144 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8146 if test "$with_gnu_ld" = no; then
8147 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8148 hardcode_libdir_separator=:
8151 export_dynamic_flag_spec='${wl}-E'
8153 # hardcode_minus_L: Not really in the search PATH,
8154 # but as the default location of the library.
8155 hardcode_minus_L=yes
8160 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8163 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8166 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8169 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8175 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8178 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8181 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8185 if test "$with_gnu_ld" = no; then
8186 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8187 hardcode_libdir_separator=:
8191 hardcode_libdir_flag_spec_ld='+b $libdir'
8193 hardcode_shlibpath_var=no
8197 export_dynamic_flag_spec='${wl}-E'
8199 # hardcode_minus_L: Not really in the search PATH,
8200 # but as the default location of the library.
8201 hardcode_minus_L=yes
8207 irix5* | irix6* | nonstopux*)
8208 if test "$GCC" = yes; then
8209 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'
8211 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'
8212 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8214 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8215 hardcode_libdir_separator=:
8216 link_all_deplibs=yes
8220 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8221 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8223 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8225 hardcode_libdir_flag_spec='-R$libdir'
8227 hardcode_shlibpath_var=no
8231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8234 hardcode_libdir_separator=:
8235 hardcode_shlibpath_var=no
8240 hardcode_shlibpath_var=no
8241 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8242 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8243 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8244 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8245 export_dynamic_flag_spec='${wl}-E'
8248 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8250 hardcode_libdir_flag_spec='-R$libdir'
8253 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8254 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8261 hardcode_libdir_flag_spec='-L$libdir'
8262 hardcode_minus_L=yes
8263 allow_undefined_flag=unsupported
8264 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'
8265 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8269 if test "$GCC" = yes; then
8270 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8271 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'
8273 allow_undefined_flag=' -expect_unresolved \*'
8274 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'
8276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8277 hardcode_libdir_separator=:
8280 osf4* | osf5*) # as osf3* with the addition of -msym flag
8281 if test "$GCC" = yes; then
8282 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8283 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'
8284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8286 allow_undefined_flag=' -expect_unresolved \*'
8287 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'
8288 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8289 $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'
8291 # Both c and cxx compiler support -rpath directly
8292 hardcode_libdir_flag_spec='-rpath $libdir'
8294 hardcode_libdir_separator=:
8298 no_undefined_flag=' -z text'
8299 if test "$GCC" = yes; then
8301 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8302 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8303 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8306 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8307 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8308 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8310 hardcode_libdir_flag_spec='-R$libdir'
8311 hardcode_shlibpath_var=no
8313 solaris2.[0-5] | solaris2.[0-5].*) ;;
8315 # The compiler driver will combine linker options so we
8316 # cannot just pass the convience library names through
8317 # without $wl, iff we do not link with $LD.
8318 # Luckily, gcc supports the same syntax we need for Sun Studio.
8319 # Supported since Solaris 2.6 (maybe 2.5.1?)
8322 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8324 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' ;;
8327 link_all_deplibs=yes
8331 if test "x$host_vendor" = xsequent; then
8332 # Use $CC to link under sequent, because it throws in some extra .o
8333 # files that make .init and .fini sections work.
8334 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8336 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8338 hardcode_libdir_flag_spec='-L$libdir'
8340 hardcode_minus_L=yes
8341 hardcode_shlibpath_var=no
8345 case $host_vendor in
8347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8348 hardcode_direct=yes # is this really true???
8351 ## LD is ld it makes a PLAMLIB
8352 ## CC just makes a GrossModule.
8353 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8354 reload_cmds='$CC -r -o $output$reload_objs'
8358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8359 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8362 runpath_var='LD_RUN_PATH'
8363 hardcode_shlibpath_var=no
8367 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8368 hardcode_shlibpath_var=no
8369 export_dynamic_flag_spec='-Bexport'
8373 if test -d /usr/nec; then
8374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8375 hardcode_shlibpath_var=no
8376 runpath_var=LD_RUN_PATH
8377 hardcode_runpath_var=yes
8382 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8383 no_undefined_flag='${wl}-z,text'
8384 archive_cmds_need_lc=no
8385 hardcode_shlibpath_var=no
8386 runpath_var='LD_RUN_PATH'
8388 if test "$GCC" = yes; then
8389 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8390 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8392 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8393 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8397 sysv5* | sco3.2v5* | sco5v6*)
8398 # Note: We can NOT use -z defs as we might desire, because we do not
8399 # link with -lc, and that would cause any symbols used from libc to
8400 # always be unresolved, which means just about no library would
8401 # ever link correctly. If we're not using GNU ld we use -z text
8402 # though, which does catch some bad symbols but isn't as heavy-handed
8404 no_undefined_flag='${wl}-z,text'
8405 allow_undefined_flag='${wl}-z,nodefs'
8406 archive_cmds_need_lc=no
8407 hardcode_shlibpath_var=no
8408 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8409 hardcode_libdir_separator=':'
8410 link_all_deplibs=yes
8411 export_dynamic_flag_spec='${wl}-Bexport'
8412 runpath_var='LD_RUN_PATH'
8414 if test "$GCC" = yes; then
8415 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8416 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8418 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8419 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8425 hardcode_libdir_flag_spec='-L$libdir'
8426 hardcode_shlibpath_var=no
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8436 $as_echo "$ld_shlibs" >&6; }
8437 test "$ld_shlibs" = no && can_build_shared=no
8440 # Do we need to explicitly link libc?
8442 case "x$archive_cmds_need_lc" in
8444 # Assume -lc should be added
8445 archive_cmds_need_lc=yes
8447 if test "$enable_shared" = yes && test "$GCC" = yes; then
8448 case $archive_cmds in
8450 # FIXME: we may have to deal with multi-command sequences.
8453 # Test whether the compiler implicitly links with -lc since on some
8454 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8455 # to ld, don't add -lc before -lgcc.
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8457 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8459 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8462 (eval $ac_compile) 2>&5
8464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8465 test $ac_status = 0; } 2>conftest.err; then
8468 libobjs=conftest.$ac_objext
8470 wl=$lt_prog_compiler_wl
8471 pic_flag=$lt_prog_compiler_pic
8477 lt_save_allow_undefined_flag=$allow_undefined_flag
8478 allow_undefined_flag=
8479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8480 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8483 test $ac_status = 0; }
8485 archive_cmds_need_lc=no
8487 archive_cmds_need_lc=yes
8489 allow_undefined_flag=$lt_save_allow_undefined_flag
8491 cat conftest.err 1>&5
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8495 $as_echo "$archive_cmds_need_lc" >&6; }
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8503 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8505 libname_spec='lib$name'
8513 shlibpath_overrides_runpath=unknown
8515 dynamic_linker="$host_os ld.so"
8516 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8517 if test "$GCC" = yes; then
8518 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8519 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8520 # if the path contains ";" then we assume it to be the separator
8521 # otherwise default to the standard path separator (i.e. ":") - it is
8522 # assumed that no part of a normal pathname contains ";" but that should
8523 # okay in the real world where ";" in dirpaths is itself problematic.
8524 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8526 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8529 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8531 need_lib_prefix=unknown
8532 hardcode_into_libs=no
8534 # when you set need_version to no, make sure it does not cause -set_version
8535 # flags to be left without arguments
8536 need_version=unknown
8541 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8542 shlibpath_var=LIBPATH
8544 # AIX 3 has no versioning support, so we append a major version to the name.
8545 soname_spec='${libname}${release}${shared_ext}$major'
8552 hardcode_into_libs=yes
8553 if test "$host_cpu" = ia64; then
8554 # AIX 5 supports IA64
8555 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8556 shlibpath_var=LD_LIBRARY_PATH
8558 # With GCC up to 2.95.x, collect2 would create an import file
8559 # for dependence libraries. The import file would start with
8560 # the line `#! .'. This would cause the generated library to
8561 # depend on `.', always an invalid library. This was fixed in
8562 # development snapshots of GCC prior to 3.0.
8564 aix4 | aix4.[01] | aix4.[01].*)
8565 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8567 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8574 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8575 # soname into executable. Probably we can add versioning support to
8576 # collect2, so additional links can be useful in future.
8577 if test "$aix_use_runtimelinking" = yes; then
8578 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8579 # instead of lib<name>.a to let people know that these are not
8580 # typical AIX shared libraries.
8581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8583 # We preserve .a as extension for shared libraries through AIX4.2
8584 # and later when we are not doing run time linking.
8585 library_names_spec='${libname}${release}.a $libname.a'
8586 soname_spec='${libname}${release}${shared_ext}$major'
8588 shlibpath_var=LIBPATH
8593 library_names_spec='$libname.ixlibrary $libname.a'
8594 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8595 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'
8599 library_names_spec='${libname}${shared_ext}'
8600 dynamic_linker="$host_os ld.so"
8601 shlibpath_var=LIBRARY_PATH
8607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8608 soname_spec='${libname}${release}${shared_ext}$major'
8609 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8610 shlibpath_var=LD_LIBRARY_PATH
8611 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8612 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8613 # the default ld.so.conf also contains /usr/contrib/lib and
8614 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8615 # libtool to hard-code these into programs
8618 cygwin* | mingw* | pw32*)
8619 version_type=windows
8624 case $GCC,$host_os in
8625 yes,cygwin* | yes,mingw* | yes,pw32*)
8626 library_names_spec='$libname.dll.a'
8627 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8628 postinstall_cmds='base_file=`basename \${file}`~
8629 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8630 dldir=$destdir/`dirname \$dlpath`~
8631 test -d \$dldir || mkdir -p \$dldir~
8632 $install_prog $dir/$dlname \$dldir/$dlname~
8633 chmod a+x \$dldir/$dlname'
8634 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8635 dlpath=$dir/\$dldll~
8637 shlibpath_overrides_runpath=yes
8641 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8642 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8643 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8646 # MinGW DLLs use traditional 'lib' prefix
8647 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8648 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8649 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8650 # It is most probably a Windows format PATH printed by
8651 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8652 # path with ; separators, and with drive letters. We can handle the
8653 # drive letters (cygwin fileutils understands them), so leave them,
8654 # especially as we might pass files found there to a mingw objdump,
8655 # which wouldn't understand a cygwinified path. Ahh.
8656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8658 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8662 # pw32 DLLs use 'pw' prefix rather than 'lib'
8663 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8669 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8672 dynamic_linker='Win32 ld.exe'
8673 # FIXME: first we should search . and the directory the executable is in
8677 darwin* | rhapsody*)
8678 dynamic_linker="$host_os dyld"
8682 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8683 soname_spec='${libname}${release}${major}$shared_ext'
8684 shlibpath_overrides_runpath=yes
8685 shlibpath_var=DYLD_LIBRARY_PATH
8686 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8687 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8688 if test "$GCC" = yes; then
8689 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"`
8691 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8693 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8701 soname_spec='${libname}${release}${shared_ext}$major'
8702 shlibpath_var=LD_LIBRARY_PATH
8713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8714 soname_spec='${libname}${release}${shared_ext}$major'
8715 shlibpath_var=LD_LIBRARY_PATH
8716 shlibpath_overrides_runpath=no
8717 hardcode_into_libs=yes
8718 dynamic_linker='GNU ld.so'
8721 freebsd* | dragonfly*)
8722 # DragonFly does not have aout. When/if they implement a new
8723 # versioning mechanism, adjust this.
8724 if test -x /usr/bin/objformat; then
8725 objformat=`/usr/bin/objformat`
8728 freebsd[123]*) objformat=aout ;;
8732 version_type=freebsd-$objformat
8733 case $version_type in
8735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8740 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8744 shlibpath_var=LD_LIBRARY_PATH
8747 shlibpath_overrides_runpath=yes
8749 freebsd3.[01]* | freebsdelf3.[01]*)
8750 shlibpath_overrides_runpath=yes
8751 hardcode_into_libs=yes
8753 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8754 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8755 shlibpath_overrides_runpath=no
8756 hardcode_into_libs=yes
8758 freebsd*) # from 4.6 on
8759 shlibpath_overrides_runpath=yes
8760 hardcode_into_libs=yes
8769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8770 soname_spec='${libname}${release}${shared_ext}$major'
8771 shlibpath_var=LD_LIBRARY_PATH
8772 hardcode_into_libs=yes
8775 hpux9* | hpux10* | hpux11*)
8776 # Give a soname corresponding to the major version so that dld.sl refuses to
8777 # link against other versions.
8784 hardcode_into_libs=yes
8785 dynamic_linker="$host_os dld.so"
8786 shlibpath_var=LD_LIBRARY_PATH
8787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8789 soname_spec='${libname}${release}${shared_ext}$major'
8790 if test "X$HPUX_IA64_MODE" = X32; then
8791 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8793 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8795 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8799 hardcode_into_libs=yes
8800 dynamic_linker="$host_os dld.sl"
8801 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8804 soname_spec='${libname}${release}${shared_ext}$major'
8805 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8810 dynamic_linker="$host_os dld.sl"
8811 shlibpath_var=SHLIB_PATH
8812 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8814 soname_spec='${libname}${release}${shared_ext}$major'
8817 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8818 postinstall_cmds='chmod 555 $lib'
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8828 shlibpath_var=LD_LIBRARY_PATH
8829 shlibpath_overrides_runpath=no
8830 hardcode_into_libs=yes
8833 irix5* | irix6* | nonstopux*)
8835 nonstopux*) version_type=nonstopux ;;
8837 if test "$lt_cv_prog_gnu_ld" = yes; then
8845 soname_spec='${libname}${release}${shared_ext}$major'
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8848 irix5* | nonstopux*)
8852 case $LD in # libtool.m4 will add one of these switches to LD
8853 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8854 libsuff= shlibsuff= libmagic=32-bit;;
8855 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8856 libsuff=32 shlibsuff=N32 libmagic=N32;;
8857 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8858 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8859 *) libsuff= shlibsuff= libmagic=never-match;;
8863 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8864 shlibpath_overrides_runpath=no
8865 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8866 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8867 hardcode_into_libs=yes
8870 # No shared lib support for Linux oldld, aout, or coff.
8871 linux*oldld* | linux*aout* | linux*coff*)
8875 # This must be Linux ELF.
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8883 shlibpath_var=LD_LIBRARY_PATH
8884 shlibpath_overrides_runpath=no
8885 # This implies no fast_install, which is unacceptable.
8886 # Some rework will be needed to allow for fast_install
8887 # before this can be enabled.
8888 hardcode_into_libs=yes
8890 # Append ld.so.conf contents to the search path
8891 if test -f /etc/ld.so.conf; then
8892 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' ' '`
8893 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8896 # We used to test for /lib/ld.so.1 and disable shared libraries on
8897 # powerpc, because MkLinux only supported shared libraries with the
8898 # GNU dynamic linker. Since this was broken with cross compilers,
8899 # most powerpc-linux boxes support dynamic linking these days and
8900 # people can always --disable-shared, the test was removed, and we
8901 # assume the GNU/Linux dynamic linker is in use.
8902 dynamic_linker='GNU/Linux ld.so'
8909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8910 soname_spec='${libname}${release}${shared_ext}$major'
8911 shlibpath_var=LD_LIBRARY_PATH
8912 shlibpath_overrides_runpath=no
8913 hardcode_into_libs=yes
8914 dynamic_linker='GNU ld.so'
8921 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8924 dynamic_linker='NetBSD (a.out) ld.so'
8926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8927 soname_spec='${libname}${release}${shared_ext}$major'
8928 dynamic_linker='NetBSD ld.elf_so'
8930 shlibpath_var=LD_LIBRARY_PATH
8931 shlibpath_overrides_runpath=yes
8932 hardcode_into_libs=yes
8937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8938 shlibpath_var=LD_LIBRARY_PATH
8939 shlibpath_overrides_runpath=yes
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947 soname_spec='${libname}${release}${shared_ext}$major'
8948 shlibpath_var=LD_LIBRARY_PATH
8949 shlibpath_overrides_runpath=yes
8954 sys_lib_dlsearch_path_spec="/usr/lib"
8956 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8958 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8959 *) need_version=no ;;
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8963 shlibpath_var=LD_LIBRARY_PATH
8964 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8966 openbsd2.[89] | openbsd2.[89].*)
8967 shlibpath_overrides_runpath=no
8970 shlibpath_overrides_runpath=yes
8974 shlibpath_overrides_runpath=yes
8979 libname_spec='$name'
8982 library_names_spec='$libname${shared_ext} $libname.a'
8983 dynamic_linker='OS/2 ld.exe'
8984 shlibpath_var=LIBPATH
8987 osf3* | osf4* | osf5*)
8991 soname_spec='${libname}${release}${shared_ext}$major'
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8993 shlibpath_var=LD_LIBRARY_PATH
8994 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8995 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 shlibpath_var=LD_LIBRARY_PATH
9005 shlibpath_overrides_runpath=yes
9006 hardcode_into_libs=yes
9007 # ldd complains unless libraries are executable
9008 postinstall_cmds='chmod +x $lib'
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9014 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9015 shlibpath_var=LD_LIBRARY_PATH
9016 shlibpath_overrides_runpath=yes
9017 if test "$with_gnu_ld" = yes; then
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9026 soname_spec='${libname}${release}${shared_ext}$major'
9027 shlibpath_var=LD_LIBRARY_PATH
9028 case $host_vendor in
9030 shlibpath_overrides_runpath=no
9032 export_dynamic_flag_spec='${wl}-Blargedynsym'
9033 runpath_var=LD_RUN_PATH
9041 shlibpath_overrides_runpath=no
9042 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9048 if test -d /usr/nec ;then
9050 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9051 soname_spec='$libname${shared_ext}.$major'
9052 shlibpath_var=LD_LIBRARY_PATH
9056 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9057 version_type=freebsd-elf
9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9061 soname_spec='${libname}${release}${shared_ext}$major'
9062 shlibpath_var=LD_LIBRARY_PATH
9063 hardcode_into_libs=yes
9064 if test "$with_gnu_ld" = yes; then
9065 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9066 shlibpath_overrides_runpath=no
9068 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9069 shlibpath_overrides_runpath=yes
9072 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9076 sys_lib_dlsearch_path_spec='/usr/lib'
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 shlibpath_var=LD_LIBRARY_PATH
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9091 $as_echo "$dynamic_linker" >&6; }
9092 test "$dynamic_linker" = no && can_build_shared=no
9094 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9095 if test "$GCC" = yes; then
9096 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9100 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9102 if test -n "$hardcode_libdir_flag_spec" || \
9103 test -n "$runpath_var" || \
9104 test "X$hardcode_automatic" = "Xyes" ; then
9106 # We can hardcode non-existant directories.
9107 if test "$hardcode_direct" != no &&
9108 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9109 # have to relink, otherwise we might link with an installed library
9110 # when we should be linking with a yet-to-be-installed one
9111 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9112 test "$hardcode_minus_L" != no; then
9113 # Linking always hardcodes the temporary library directory.
9114 hardcode_action=relink
9116 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9117 hardcode_action=immediate
9120 # We cannot hardcode anything, or else we can only hardcode existing
9122 hardcode_action=unsupported
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9125 $as_echo "$hardcode_action" >&6; }
9127 if test "$hardcode_action" = relink; then
9128 # Fast installation is not supported
9129 enable_fast_install=no
9130 elif test "$shlibpath_overrides_runpath" = yes ||
9131 test "$enable_shared" = no; then
9132 # Fast installation is not necessary
9133 enable_fast_install=needless
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9139 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9140 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9141 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9142 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9144 $as_echo "yes" >&6; }
9146 # FIXME - insert some real tests, host_os isn't really good enough
9149 if test -n "$STRIP" ; then
9150 striplib="$STRIP -x"
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9152 $as_echo "yes" >&6; }
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9155 $as_echo "no" >&6; }
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160 $as_echo "no" >&6; }
9165 if test "x$enable_dlopen" != xyes; then
9166 enable_dlopen=unknown
9167 enable_dlopen_self=unknown
9168 enable_dlopen_self_static=unknown
9175 lt_cv_dlopen="load_add_on"
9177 lt_cv_dlopen_self=yes
9181 lt_cv_dlopen="LoadLibrary"
9186 lt_cv_dlopen="dlopen"
9191 # if libdl is installed we need to link against it
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9193 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9194 if ${ac_cv_lib_dl_dlopen+:} false; then :
9195 $as_echo_n "(cached) " >&6
9197 ac_check_lib_save_LIBS=$LIBS
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9202 /* Override any GCC internal prototype to avoid an error.
9203 Use char because int might match the return type of a GCC
9204 builtin and then its argument prototype would still apply. */
9217 if ac_fn_c_try_link "$LINENO"; then :
9218 ac_cv_lib_dl_dlopen=yes
9220 ac_cv_lib_dl_dlopen=no
9222 rm -f core conftest.err conftest.$ac_objext \
9223 conftest$ac_exeext conftest.$ac_ext
9224 LIBS=$ac_check_lib_save_LIBS
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9227 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9228 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9229 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9234 lt_cv_dlopen_self=yes
9241 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9242 if test "x$ac_cv_func_shl_load" = xyes; then :
9243 lt_cv_dlopen="shl_load"
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9246 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9247 if ${ac_cv_lib_dld_shl_load+:} false; then :
9248 $as_echo_n "(cached) " >&6
9250 ac_check_lib_save_LIBS=$LIBS
9252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h. */
9255 /* Override any GCC internal prototype to avoid an error.
9256 Use char because int might match the return type of a GCC
9257 builtin and then its argument prototype would still apply. */
9270 if ac_fn_c_try_link "$LINENO"; then :
9271 ac_cv_lib_dld_shl_load=yes
9273 ac_cv_lib_dld_shl_load=no
9275 rm -f core conftest.err conftest.$ac_objext \
9276 conftest$ac_exeext conftest.$ac_ext
9277 LIBS=$ac_check_lib_save_LIBS
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9280 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9281 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9282 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9284 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9285 if test "x$ac_cv_func_dlopen" = xyes; then :
9286 lt_cv_dlopen="dlopen"
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9289 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9290 if ${ac_cv_lib_dl_dlopen+:} false; then :
9291 $as_echo_n "(cached) " >&6
9293 ac_check_lib_save_LIBS=$LIBS
9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h. */
9298 /* Override any GCC internal prototype to avoid an error.
9299 Use char because int might match the return type of a GCC
9300 builtin and then its argument prototype would still apply. */
9313 if ac_fn_c_try_link "$LINENO"; then :
9314 ac_cv_lib_dl_dlopen=yes
9316 ac_cv_lib_dl_dlopen=no
9318 rm -f core conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext conftest.$ac_ext
9320 LIBS=$ac_check_lib_save_LIBS
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9323 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9324 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9325 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9328 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9329 if ${ac_cv_lib_svld_dlopen+:} false; then :
9330 $as_echo_n "(cached) " >&6
9332 ac_check_lib_save_LIBS=$LIBS
9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9337 /* Override any GCC internal prototype to avoid an error.
9338 Use char because int might match the return type of a GCC
9339 builtin and then its argument prototype would still apply. */
9352 if ac_fn_c_try_link "$LINENO"; then :
9353 ac_cv_lib_svld_dlopen=yes
9355 ac_cv_lib_svld_dlopen=no
9357 rm -f core conftest.err conftest.$ac_objext \
9358 conftest$ac_exeext conftest.$ac_ext
9359 LIBS=$ac_check_lib_save_LIBS
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9362 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9363 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9364 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9367 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9368 if ${ac_cv_lib_dld_dld_link+:} false; then :
9369 $as_echo_n "(cached) " >&6
9371 ac_check_lib_save_LIBS=$LIBS
9373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374 /* end confdefs.h. */
9376 /* Override any GCC internal prototype to avoid an error.
9377 Use char because int might match the return type of a GCC
9378 builtin and then its argument prototype would still apply. */
9391 if ac_fn_c_try_link "$LINENO"; then :
9392 ac_cv_lib_dld_dld_link=yes
9394 ac_cv_lib_dld_dld_link=no
9396 rm -f core conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
9398 LIBS=$ac_check_lib_save_LIBS
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9401 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9402 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9403 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9424 if test "x$lt_cv_dlopen" != xno; then
9430 case $lt_cv_dlopen in
9432 save_CPPFLAGS="$CPPFLAGS"
9433 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9435 save_LDFLAGS="$LDFLAGS"
9436 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9439 LIBS="$lt_cv_dlopen_libs $LIBS"
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9442 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9443 if ${lt_cv_dlopen_self+:} false; then :
9444 $as_echo_n "(cached) " >&6
9446 if test "$cross_compiling" = yes; then :
9447 lt_cv_dlopen_self=cross
9449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9450 lt_status=$lt_dlunknown
9451 cat > conftest.$ac_ext <<EOF
9452 #line 9452 "configure"
9453 #include "confdefs.h"
9462 # define LT_DLGLOBAL RTLD_GLOBAL
9465 # define LT_DLGLOBAL DL_GLOBAL
9467 # define LT_DLGLOBAL 0
9471 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9472 find out it does not work in some platform. */
9473 #ifndef LT_DLLAZY_OR_NOW
9475 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9478 # define LT_DLLAZY_OR_NOW DL_LAZY
9481 # define LT_DLLAZY_OR_NOW RTLD_NOW
9484 # define LT_DLLAZY_OR_NOW DL_NOW
9486 # define LT_DLLAZY_OR_NOW 0
9494 extern "C" void exit (int);
9497 void fnord() { int i=42;}
9500 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9501 int status = $lt_dlunknown;
9505 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9506 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9507 /* dlclose (self); */
9515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9516 (eval $ac_link) 2>&5
9518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9519 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9520 (./conftest; exit; ) >&5 2>/dev/null
9523 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9524 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9525 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9528 # compilation failed
9529 lt_cv_dlopen_self=no
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9537 $as_echo "$lt_cv_dlopen_self" >&6; }
9539 if test "x$lt_cv_dlopen_self" = xyes; then
9540 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9542 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9543 if ${lt_cv_dlopen_self_static+:} false; then :
9544 $as_echo_n "(cached) " >&6
9546 if test "$cross_compiling" = yes; then :
9547 lt_cv_dlopen_self_static=cross
9549 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9550 lt_status=$lt_dlunknown
9551 cat > conftest.$ac_ext <<EOF
9552 #line 9552 "configure"
9553 #include "confdefs.h"
9562 # define LT_DLGLOBAL RTLD_GLOBAL
9565 # define LT_DLGLOBAL DL_GLOBAL
9567 # define LT_DLGLOBAL 0
9571 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9572 find out it does not work in some platform. */
9573 #ifndef LT_DLLAZY_OR_NOW
9575 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9578 # define LT_DLLAZY_OR_NOW DL_LAZY
9581 # define LT_DLLAZY_OR_NOW RTLD_NOW
9584 # define LT_DLLAZY_OR_NOW DL_NOW
9586 # define LT_DLLAZY_OR_NOW 0
9594 extern "C" void exit (int);
9597 void fnord() { int i=42;}
9600 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9601 int status = $lt_dlunknown;
9605 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9606 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9607 /* dlclose (self); */
9615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9616 (eval $ac_link) 2>&5
9618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9619 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9620 (./conftest; exit; ) >&5 2>/dev/null
9623 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9624 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9625 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9628 # compilation failed
9629 lt_cv_dlopen_self_static=no
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9637 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9640 CPPFLAGS="$save_CPPFLAGS"
9641 LDFLAGS="$save_LDFLAGS"
9646 case $lt_cv_dlopen_self in
9647 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9648 *) enable_dlopen_self=unknown ;;
9651 case $lt_cv_dlopen_self_static in
9652 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9653 *) enable_dlopen_self_static=unknown ;;
9658 # Report which library types will actually be built
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9660 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9662 $as_echo "$can_build_shared" >&6; }
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9665 $as_echo_n "checking whether to build shared libraries... " >&6; }
9666 test "$can_build_shared" = "no" && enable_shared=no
9668 # On AIX, shared libraries and static libraries use the same namespace, and
9669 # are all built from PIC.
9672 test "$enable_shared" = yes && enable_static=no
9673 if test -n "$RANLIB"; then
9674 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9675 postinstall_cmds='$RANLIB $lib'
9680 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9681 test "$enable_shared" = yes && enable_static=no
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9686 $as_echo "$enable_shared" >&6; }
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9689 $as_echo_n "checking whether to build static libraries... " >&6; }
9690 # Make sure either enable_shared or enable_static is yes.
9691 test "$enable_shared" = yes || enable_static=yes
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9693 $as_echo "$enable_static" >&6; }
9695 # The else clause should only fire when bootstrapping the
9696 # libtool distribution, otherwise you forgot to ship ltmain.sh
9697 # with your package, and you will get complaints that there are
9698 # no rules to generate ltmain.sh.
9699 if test -f "$ltmain"; then
9700 # See if we are running on zsh, and set the options which allow our commands through
9701 # without removal of \ escapes.
9702 if test -n "${ZSH_VERSION+set}" ; then
9703 setopt NO_GLOB_SUBST
9705 # Now quote all the things that may contain metacharacters while being
9706 # careful not to overquote the AC_SUBSTed values. We take copies of the
9707 # variables and quote the copies for generation of the libtool script.
9708 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9710 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9711 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9712 deplibs_check_method reload_flag reload_cmds need_locks \
9713 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9714 lt_cv_sys_global_symbol_to_c_name_address \
9715 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9716 old_postinstall_cmds old_postuninstall_cmds \
9720 lt_prog_compiler_wl \
9721 lt_prog_compiler_pic \
9722 lt_prog_compiler_static \
9723 lt_prog_compiler_no_builtin_flag \
9724 export_dynamic_flag_spec \
9725 thread_safe_flag_spec \
9726 whole_archive_flag_spec \
9727 enable_shared_with_static_runtimes \
9729 old_archive_from_new_cmds \
9734 compiler_lib_search_path \
9736 archive_expsym_cmds \
9738 postuninstall_cmds \
9739 old_archive_from_expsyms_cmds \
9740 allow_undefined_flag \
9742 export_symbols_cmds \
9743 hardcode_libdir_flag_spec \
9744 hardcode_libdir_flag_spec_ld \
9745 hardcode_libdir_separator \
9746 hardcode_automatic \
9748 module_expsym_cmds \
9749 lt_cv_prog_compiler_c_o \
9754 old_archive_cmds | \
9755 old_archive_from_new_cmds | \
9757 archive_expsym_cmds | \
9759 module_expsym_cmds | \
9760 old_archive_from_expsyms_cmds | \
9761 export_symbols_cmds | \
9762 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9763 postinstall_cmds | postuninstall_cmds | \
9764 old_postinstall_cmds | old_postuninstall_cmds | \
9765 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9766 # Double-quote double-evaled strings.
9767 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9770 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9776 *'\$0 --fallback-echo"')
9777 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9782 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9785 $as_echo "$as_me: creating $ofile" >&6;}
9787 cat <<__EOF__ >> "$cfgfile"
9790 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9791 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9792 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9794 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9795 # Free Software Foundation, Inc.
9797 # This file is part of GNU Libtool:
9798 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9800 # This program is free software; you can redistribute it and/or modify
9801 # it under the terms of the GNU General Public License as published by
9802 # the Free Software Foundation; either version 2 of the License, or
9803 # (at your option) any later version.
9805 # This program is distributed in the hope that it will be useful, but
9806 # WITHOUT ANY WARRANTY; without even the implied warranty of
9807 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9808 # General Public License for more details.
9810 # You should have received a copy of the GNU General Public License
9811 # along with this program; if not, write to the Free Software
9812 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9814 # As a special exception to the GNU General Public License, if you
9815 # distribute this file as part of a program that contains a
9816 # configuration script generated by Autoconf, you may include it under
9817 # the same distribution terms that you use for the rest of that program.
9819 # A sed program that does not truncate output.
9822 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9823 Xsed="$SED -e 1s/^X//"
9825 # The HP-UX ksh and POSIX shell print the target directory to stdout
9827 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9829 # The names of the tagged configurations supported by this script.
9832 # ### BEGIN LIBTOOL CONFIG
9834 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9836 # Shell to use when invoking shell scripts.
9839 # Whether or not to build shared libraries.
9840 build_libtool_libs=$enable_shared
9842 # Whether or not to build static libraries.
9843 build_old_libs=$enable_static
9845 # Whether or not to add -lc for building shared libraries.
9846 build_libtool_need_lc=$archive_cmds_need_lc
9848 # Whether or not to disallow shared libs when runtime libs are static
9849 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9851 # Whether or not to optimize for fast installation.
9852 fast_install=$enable_fast_install
9855 host_alias=$host_alias
9860 build_alias=$build_alias
9864 # An echo program that does not interpret backslashes.
9869 AR_FLAGS=$lt_AR_FLAGS
9874 # LTCC compiler flags.
9875 LTCFLAGS=$lt_LTCFLAGS
9877 # A language-specific compiler.
9880 # Is the compiler the GNU C compiler?
9886 # The linker used to build libraries.
9889 # Whether we need hard or soft links.
9892 # A BSD-compatible nm program.
9895 # A symbol stripping program
9898 # Used to examine libraries when file_magic_cmd begins "file"
9899 MAGIC_CMD=$MAGIC_CMD
9901 # Used on cygwin: DLL creation program.
9904 # Used on cygwin: object dumper.
9907 # Used on cygwin: assembler.
9910 # The name of the directory that contains temporary libtool files.
9913 # How to create reloadable object files.
9914 reload_flag=$lt_reload_flag
9915 reload_cmds=$lt_reload_cmds
9917 # How to pass a linker flag through the compiler.
9918 wl=$lt_lt_prog_compiler_wl
9920 # Object file suffix (normally "o").
9923 # Old archive suffix (normally "a").
9926 # Shared library suffix (normally ".so").
9927 shrext_cmds='$shrext_cmds'
9929 # Executable file suffix (normally "").
9932 # Additional compiler flags for building library objects.
9933 pic_flag=$lt_lt_prog_compiler_pic
9936 # What is the maximum length of a command?
9937 max_cmd_len=$lt_cv_sys_max_cmd_len
9939 # Does compiler simultaneously support -c and -o options?
9940 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9942 # Must we lock files when doing compilation?
9943 need_locks=$lt_need_locks
9945 # Do we need the lib prefix for modules?
9946 need_lib_prefix=$need_lib_prefix
9948 # Do we need a version for libraries?
9949 need_version=$need_version
9951 # Whether dlopen is supported.
9952 dlopen_support=$enable_dlopen
9954 # Whether dlopen of programs is supported.
9955 dlopen_self=$enable_dlopen_self
9957 # Whether dlopen of statically linked programs is supported.
9958 dlopen_self_static=$enable_dlopen_self_static
9960 # Compiler flag to prevent dynamic linking.
9961 link_static_flag=$lt_lt_prog_compiler_static
9963 # Compiler flag to turn off builtin functions.
9964 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9966 # Compiler flag to allow reflexive dlopens.
9967 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9969 # Compiler flag to generate shared objects directly from archives.
9970 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9972 # Compiler flag to generate thread-safe objects.
9973 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9975 # Library versioning type.
9976 version_type=$version_type
9978 # Format of library name prefix.
9979 libname_spec=$lt_libname_spec
9981 # List of archive names. First name is the real one, the rest are links.
9982 # The last name is the one that the linker finds with -lNAME.
9983 library_names_spec=$lt_library_names_spec
9985 # The coded name of the library, if different from the real name.
9986 soname_spec=$lt_soname_spec
9988 # Commands used to build and install an old-style archive.
9990 old_archive_cmds=$lt_old_archive_cmds
9991 old_postinstall_cmds=$lt_old_postinstall_cmds
9992 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9994 # Create an old-style archive from a shared archive.
9995 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9997 # Create a temporary old-style archive to link instead of a shared archive.
9998 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10000 # Commands used to build and install a shared archive.
10001 archive_cmds=$lt_archive_cmds
10002 archive_expsym_cmds=$lt_archive_expsym_cmds
10003 postinstall_cmds=$lt_postinstall_cmds
10004 postuninstall_cmds=$lt_postuninstall_cmds
10006 # Commands used to build a loadable module (assumed same as above if empty)
10007 module_cmds=$lt_module_cmds
10008 module_expsym_cmds=$lt_module_expsym_cmds
10010 # Commands to strip libraries.
10011 old_striplib=$lt_old_striplib
10012 striplib=$lt_striplib
10014 # Dependencies to place before the objects being linked to create a
10016 predep_objects=$lt_predep_objects
10018 # Dependencies to place after the objects being linked to create a
10020 postdep_objects=$lt_postdep_objects
10022 # Dependencies to place before the objects being linked to create a
10024 predeps=$lt_predeps
10026 # Dependencies to place after the objects being linked to create a
10028 postdeps=$lt_postdeps
10030 # The library search path used internally by the compiler when linking
10031 # a shared library.
10032 compiler_lib_search_path=$lt_compiler_lib_search_path
10034 # Method to check whether dependent libraries are shared objects.
10035 deplibs_check_method=$lt_deplibs_check_method
10037 # Command to use when deplibs_check_method == file_magic.
10038 file_magic_cmd=$lt_file_magic_cmd
10040 # Flag that allows shared libraries with undefined symbols to be built.
10041 allow_undefined_flag=$lt_allow_undefined_flag
10043 # Flag that forces no undefined symbols.
10044 no_undefined_flag=$lt_no_undefined_flag
10046 # Commands used to finish a libtool library installation in a directory.
10047 finish_cmds=$lt_finish_cmds
10049 # Same as above, but a single script fragment to be evaled but not shown.
10050 finish_eval=$lt_finish_eval
10052 # Take the output of nm and produce a listing of raw symbols and C names.
10053 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10055 # Transform the output of nm in a proper C declaration
10056 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10058 # Transform the output of nm in a C name address pair
10059 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10061 # This is the shared library runtime path variable.
10062 runpath_var=$runpath_var
10064 # This is the shared library path variable.
10065 shlibpath_var=$shlibpath_var
10067 # Is shlibpath searched before the hard-coded library search path?
10068 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10070 # How to hardcode a shared library path into an executable.
10071 hardcode_action=$hardcode_action
10073 # Whether we should hardcode library paths into libraries.
10074 hardcode_into_libs=$hardcode_into_libs
10076 # Flag to hardcode \$libdir into a binary during linking.
10077 # This must work even if \$libdir does not exist.
10078 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10080 # If ld is used when linking, flag to hardcode \$libdir into
10081 # a binary during linking. This must work even if \$libdir does
10083 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10085 # Whether we need a single -rpath flag with a separated argument.
10086 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10088 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10089 # resulting binary.
10090 hardcode_direct=$hardcode_direct
10092 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10093 # resulting binary.
10094 hardcode_minus_L=$hardcode_minus_L
10096 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10097 # the resulting binary.
10098 hardcode_shlibpath_var=$hardcode_shlibpath_var
10100 # Set to yes if building a shared library automatically hardcodes DIR into the library
10101 # and all subsequent libraries and executables linked against it.
10102 hardcode_automatic=$hardcode_automatic
10104 # Variables whose values should be saved in libtool wrapper scripts and
10105 # restored at relink time.
10106 variables_saved_for_relink="$variables_saved_for_relink"
10108 # Whether libtool must link a program against all its dependency libraries.
10109 link_all_deplibs=$link_all_deplibs
10111 # Compile-time system search path for libraries
10112 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10114 # Run-time system search path for libraries
10115 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10117 # Fix the shell variable \$srcfile for the compiler.
10118 fix_srcfile_path="$fix_srcfile_path"
10120 # Set to yes if exported symbols are required.
10121 always_export_symbols=$always_export_symbols
10123 # The commands to list exported symbols.
10124 export_symbols_cmds=$lt_export_symbols_cmds
10126 # The commands to extract the exported symbol list from a shared archive.
10127 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10129 # Symbols that should not be listed in the preloaded symbols.
10130 exclude_expsyms=$lt_exclude_expsyms
10132 # Symbols that must always be exported.
10133 include_expsyms=$lt_include_expsyms
10135 # ### END LIBTOOL CONFIG
10142 cat <<\EOF >> "$cfgfile"
10144 # AIX sometimes has problems with the GCC collect2 program. For some
10145 # reason, if we set the COLLECT_NAMES environment variable, the problems
10146 # vanish in a puff of smoke.
10147 if test "X${COLLECT_NAMES+set}" != Xset; then
10149 export COLLECT_NAMES
10155 # We use sed instead of cat because bash on DJGPP gets confused if
10156 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10157 # text mode, it properly converts lines to CR/LF. This bash problem
10158 # is reportedly fixed, but why not run on old versions too?
10159 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10161 mv -f "$cfgfile" "$ofile" || \
10162 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10166 # If there is no Makefile yet, we rely on a make rule to execute
10167 # `config.status --recheck' to rerun these tests and create the
10168 # libtool script then.
10169 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10170 if test -f "$ltmain_in"; then
10171 test -f Makefile && make "$ltmain"
10177 ac_cpp='$CPP $CPPFLAGS'
10178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10185 # Check whether --with-tags was given.
10186 if test "${with_tags+set}" = set; then :
10187 withval=$with_tags; tagnames="$withval"
10191 if test -f "$ltmain" && test -n "$tagnames"; then
10192 if test ! -f "${ofile}"; then
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10194 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10197 if test -z "$LTCC"; then
10198 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10199 if test -z "$LTCC"; then
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10201 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10204 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10207 if test -z "$LTCFLAGS"; then
10208 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10211 # Extract list of available tagged configurations in $ofile.
10212 # Note that this assumes the entire list is on one line.
10213 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10215 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10216 for tagname in $tagnames; do
10218 # Check whether tagname contains only valid characters
10219 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10221 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10225 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10227 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10230 # Update the list of available tags.
10231 if test -n "$tagname"; then
10232 echo appending configuration tag \"$tagname\" to $ofile
10236 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10237 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10238 (test "X$CXX" != "Xg++"))) ; then
10240 ac_cpp='$CXXCPP $CPPFLAGS'
10241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10248 archive_cmds_need_lc_CXX=no
10249 allow_undefined_flag_CXX=
10250 always_export_symbols_CXX=no
10251 archive_expsym_cmds_CXX=
10252 export_dynamic_flag_spec_CXX=
10253 hardcode_direct_CXX=no
10254 hardcode_libdir_flag_spec_CXX=
10255 hardcode_libdir_flag_spec_ld_CXX=
10256 hardcode_libdir_separator_CXX=
10257 hardcode_minus_L_CXX=no
10258 hardcode_shlibpath_var_CXX=unsupported
10259 hardcode_automatic_CXX=no
10261 module_expsym_cmds_CXX=
10262 link_all_deplibs_CXX=unknown
10263 old_archive_cmds_CXX=$old_archive_cmds
10264 no_undefined_flag_CXX=
10265 whole_archive_flag_spec_CXX=
10266 enable_shared_with_static_runtimes_CXX=no
10268 # Dependencies to place before and after the object being linked:
10269 predep_objects_CXX=
10270 postdep_objects_CXX=
10273 compiler_lib_search_path_CXX=
10275 # Source file extension for C++ test sources.
10278 # Object file extension for compiled C++ test sources.
10282 # Code to be used in simple compile tests
10283 lt_simple_compile_test_code="int some_variable = 0;\n"
10285 # Code to be used in simple link tests
10286 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10288 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10290 # If no C compiler was specified, use CC.
10293 # If no C compiler flags were specified, use CFLAGS.
10294 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10296 # Allow CC to be a program name with arguments.
10300 # save warnings/boilerplate of simple test code
10301 ac_outfile=conftest.$ac_objext
10302 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10303 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10304 _lt_compiler_boilerplate=`cat conftest.err`
10307 ac_outfile=conftest.$ac_objext
10308 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10309 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10310 _lt_linker_boilerplate=`cat conftest.err`
10314 # Allow CC to be a program name with arguments.
10319 lt_save_with_gnu_ld=$with_gnu_ld
10320 lt_save_path_LD=$lt_cv_path_LD
10321 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10322 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10324 $as_unset lt_cv_prog_gnu_ld
10326 if test -n "${lt_cv_path_LDCXX+set}"; then
10327 lt_cv_path_LD=$lt_cv_path_LDCXX
10329 $as_unset lt_cv_path_LD
10331 test -z "${LDCXX+set}" || LD=$LDCXX
10335 for cc_temp in $compiler""; do
10337 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10338 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10343 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10346 # We don't want -fno-exception wen compiling C++ code, so set the
10347 # no_builtin_flag separately
10348 if test "$GXX" = yes; then
10349 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10351 lt_prog_compiler_no_builtin_flag_CXX=
10354 if test "$GXX" = yes; then
10355 # Set up default GNU C++ configuration
10358 # Check whether --with-gnu-ld was given.
10359 if test "${with_gnu_ld+set}" = set; then :
10360 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10366 if test "$GCC" = yes; then
10367 # Check if gcc -print-prog-name=ld gives a path.
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10369 $as_echo_n "checking for ld used by $CC... " >&6; }
10372 # gcc leaves a trailing carriage return which upsets mingw
10373 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10375 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10378 # Accept absolute paths.
10380 re_direlt='/[^/][^/]*/\.\./'
10381 # Canonicalize the pathname of ld
10382 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10383 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10384 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10386 test -z "$LD" && LD="$ac_prog"
10389 # If it fails, then pretend we aren't using GCC.
10393 # If it is relative, then search for the first ld in PATH.
10394 with_gnu_ld=unknown
10397 elif test "$with_gnu_ld" = yes; then
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10399 $as_echo_n "checking for GNU ld... " >&6; }
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10402 $as_echo_n "checking for non-GNU ld... " >&6; }
10404 if ${lt_cv_path_LD+:} false; then :
10405 $as_echo_n "(cached) " >&6
10407 if test -z "$LD"; then
10408 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10409 for ac_dir in $PATH; do
10411 test -z "$ac_dir" && ac_dir=.
10412 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10413 lt_cv_path_LD="$ac_dir/$ac_prog"
10414 # Check to see if the program is GNU ld. I'd rather use --version,
10415 # but apparently some variants of GNU ld only accept -v.
10416 # Break only if it was the GNU/non-GNU ld that we prefer.
10417 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10418 *GNU* | *'with BFD'*)
10419 test "$with_gnu_ld" != no && break
10422 test "$with_gnu_ld" != yes && break
10429 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10433 LD="$lt_cv_path_LD"
10434 if test -n "$LD"; then
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10436 $as_echo "$LD" >&6; }
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10439 $as_echo "no" >&6; }
10441 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10443 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10444 if ${lt_cv_prog_gnu_ld+:} false; then :
10445 $as_echo_n "(cached) " >&6
10447 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10448 case `$LD -v 2>&1 </dev/null` in
10449 *GNU* | *'with BFD'*)
10450 lt_cv_prog_gnu_ld=yes
10453 lt_cv_prog_gnu_ld=no
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10458 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10459 with_gnu_ld=$lt_cv_prog_gnu_ld
10463 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10464 # archiving commands below assume that GNU ld is being used.
10465 if test "$with_gnu_ld" = yes; then
10466 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10467 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'
10469 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10470 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10472 # If archive_cmds runs LD, not CC, wlarc should be empty
10473 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10474 # investigate it a little bit more. (MM)
10477 # ancient GNU ld didn't support --whole-archive et. al.
10478 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10479 grep 'no-whole-archive' > /dev/null; then
10480 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10482 whole_archive_flag_spec_CXX=
10488 # A generic and very simple default shared library creation
10489 # command for GNU C++ for the case where it uses the native
10490 # linker, instead of GNU ld. If possible, this setting should
10491 # overridden to take advantage of the native linker features on
10492 # the platform it is being used on.
10493 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10496 # Commands to make compiler produce verbose output that lists
10497 # what "hidden" libraries, object files and flags are used when
10498 # linking a shared library.
10499 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10507 # PORTME: fill in a description of your system's C++ link characteristics
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10509 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10513 # FIXME: insert proper C++ library support
10517 if test "$host_cpu" = ia64; then
10518 # On IA64, the linker does run time linking by default, so we don't
10519 # have to do anything special.
10520 aix_use_runtimelinking=no
10521 exp_sym_flag='-Bexport'
10524 aix_use_runtimelinking=no
10526 # Test if we are trying to use run time linking or normal
10527 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10528 # need to do runtime linking.
10529 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10530 for ld_flag in $LDFLAGS; do
10533 aix_use_runtimelinking=yes
10541 exp_sym_flag='-bexport'
10542 no_entry_flag='-bnoentry'
10545 # When large executables or shared objects are built, AIX ld can
10546 # have problems creating the table of contents. If linking a library
10547 # or program results in "error TOC overflow" add -mminimal-toc to
10548 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10549 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10551 archive_cmds_CXX=''
10552 hardcode_direct_CXX=yes
10553 hardcode_libdir_separator_CXX=':'
10554 link_all_deplibs_CXX=yes
10556 if test "$GXX" = yes; then
10557 case $host_os in aix4.[012]|aix4.[012].*)
10558 # We only want to do this on AIX 4.2 and lower, the check
10559 # below for broken collect2 doesn't work under 4.3+
10560 collect2name=`${CC} -print-prog-name=collect2`
10561 if test -f "$collect2name" && \
10562 strings "$collect2name" | grep resolve_lib_name >/dev/null
10564 # We have reworked collect2
10565 hardcode_direct_CXX=yes
10567 # We have old collect2
10568 hardcode_direct_CXX=unsupported
10569 # It fails to find uninstalled libraries when the uninstalled
10570 # path is not listed in the libpath. Setting hardcode_minus_L
10571 # to unsupported forces relinking
10572 hardcode_minus_L_CXX=yes
10573 hardcode_libdir_flag_spec_CXX='-L$libdir'
10574 hardcode_libdir_separator_CXX=
10578 shared_flag='-shared'
10579 if test "$aix_use_runtimelinking" = yes; then
10580 shared_flag="$shared_flag "'${wl}-G'
10584 if test "$host_cpu" = ia64; then
10585 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10586 # chokes on -Wl,-G. The following line is correct:
10589 if test "$aix_use_runtimelinking" = yes; then
10590 shared_flag='${wl}-G'
10592 shared_flag='${wl}-bM:SRE'
10597 # It seems that -bexpall does not export symbols beginning with
10598 # underscore (_), so it is better to generate a list of symbols to export.
10599 always_export_symbols_CXX=yes
10600 if test "$aix_use_runtimelinking" = yes; then
10601 # Warning - without using the other runtime loading flags (-brtl),
10602 # -berok will link without error, but may produce a broken library.
10603 allow_undefined_flag_CXX='-berok'
10604 # Determine the default libpath from the value encoded in an empty executable.
10605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10606 /* end confdefs.h. */
10616 if ac_fn_cxx_try_link "$LINENO"; then :
10618 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10620 # Check for a 64-bit object if we didn't find anything.
10621 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; }
10624 rm -f core conftest.err conftest.$ac_objext \
10625 conftest$ac_exeext conftest.$ac_ext
10626 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10628 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10630 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"
10632 if test "$host_cpu" = ia64; then
10633 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10634 allow_undefined_flag_CXX="-z nodefs"
10635 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"
10637 # Determine the default libpath from the value encoded in an empty executable.
10638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h. */
10649 if ac_fn_cxx_try_link "$LINENO"; then :
10651 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10653 # Check for a 64-bit object if we didn't find anything.
10654 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; }
10657 rm -f core conftest.err conftest.$ac_objext \
10658 conftest$ac_exeext conftest.$ac_ext
10659 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10661 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10662 # Warning - without using the other run time loading flags,
10663 # -berok will link without error, but may produce a broken library.
10664 no_undefined_flag_CXX=' ${wl}-bernotok'
10665 allow_undefined_flag_CXX=' ${wl}-berok'
10666 # Exported symbols can be pulled into shared objects from archives
10667 whole_archive_flag_spec_CXX='$convenience'
10668 archive_cmds_need_lc_CXX=yes
10669 # This is similar to how AIX traditionally builds its shared libraries.
10670 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'
10676 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10677 allow_undefined_flag_CXX=unsupported
10678 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10679 # support --undefined. This deserves some investigation. FIXME
10680 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10687 case $cc_basename in
10689 # FIXME: insert proper C++ library support
10695 cygwin* | mingw* | pw32*)
10696 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10697 # as there is no search path for DLLs.
10698 hardcode_libdir_flag_spec_CXX='-L$libdir'
10699 allow_undefined_flag_CXX=unsupported
10700 always_export_symbols_CXX=no
10701 enable_shared_with_static_runtimes_CXX=yes
10703 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10704 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'
10705 # If the export-symbols file already is a .def file (1st line
10706 # is EXPORTS), use it as is; otherwise, prepend...
10707 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10708 cp $export_symbols $output_objdir/$soname.def;
10710 echo EXPORTS > $output_objdir/$soname.def;
10711 cat $export_symbols >> $output_objdir/$soname.def;
10713 $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'
10718 darwin* | rhapsody*)
10720 rhapsody* | darwin1.[012])
10721 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10724 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10725 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10727 case ${MACOSX_DEPLOYMENT_TARGET} in
10729 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10732 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10738 archive_cmds_need_lc_CXX=no
10739 hardcode_direct_CXX=no
10740 hardcode_automatic_CXX=yes
10741 hardcode_shlibpath_var_CXX=unsupported
10742 whole_archive_flag_spec_CXX=''
10743 link_all_deplibs_CXX=yes
10745 if test "$GXX" = yes ; then
10746 lt_int_apple_cc_single_mod=no
10747 output_verbose_link_cmd='echo'
10748 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10749 lt_int_apple_cc_single_mod=yes
10751 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10752 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10754 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'
10756 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10757 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10758 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10759 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}'
10761 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}'
10763 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}'
10765 case $cc_basename in
10767 output_verbose_link_cmd='echo'
10768 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'
10769 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10770 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10771 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}'
10772 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}'
10782 case $cc_basename in
10784 # FIXME: insert proper C++ library support
10788 # Green Hills C++ Compiler
10789 # FIXME: insert proper C++ library support
10793 # FIXME: insert proper C++ library support
10799 # C++ shared libraries reported to be fairly broken before switch to ELF
10803 archive_cmds_need_lc_CXX=no
10805 freebsd* | kfreebsd*-gnu | dragonfly*)
10806 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10813 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10814 hardcode_libdir_separator_CXX=:
10815 export_dynamic_flag_spec_CXX='${wl}-E'
10816 hardcode_direct_CXX=yes
10817 hardcode_minus_L_CXX=yes # Not in the search PATH,
10818 # but as the default
10819 # location of the library.
10821 case $cc_basename in
10823 # FIXME: insert proper C++ library support
10827 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'
10828 # Commands to make compiler produce verbose output that lists
10829 # what "hidden" libraries, object files and flags are used when
10830 # linking a shared library.
10832 # There doesn't appear to be a way to prevent this compiler from
10833 # explicitly linking system object files so we need to strip them
10834 # from the output so that they don't get included in the library
10836 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'
10839 if test "$GXX" = yes; then
10840 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'
10842 # FIXME: insert proper C++ library support
10849 if test $with_gnu_ld = no; then
10850 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10851 hardcode_libdir_separator_CXX=:
10855 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10858 export_dynamic_flag_spec_CXX='${wl}-E'
10864 hardcode_direct_CXX=no
10865 hardcode_shlibpath_var_CXX=no
10868 hardcode_direct_CXX=yes
10869 hardcode_minus_L_CXX=yes # Not in the search PATH,
10870 # but as the default
10871 # location of the library.
10875 case $cc_basename in
10877 # FIXME: insert proper C++ library support
10883 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10886 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10889 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10892 # Commands to make compiler produce verbose output that lists
10893 # what "hidden" libraries, object files and flags are used when
10894 # linking a shared library.
10896 # There doesn't appear to be a way to prevent this compiler from
10897 # explicitly linking system object files so we need to strip them
10898 # from the output so that they don't get included in the library
10900 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'
10903 if test "$GXX" = yes; then
10904 if test $with_gnu_ld = no; then
10907 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10910 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10913 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'
10918 # FIXME: insert proper C++ library support
10925 hardcode_direct_CXX=no
10926 hardcode_shlibpath_var_CXX=no
10927 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10928 export_dynamic_flag_spec_CXX='${wl}-E'
10929 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10930 # Instead, shared libraries are loaded at an image base (0x10000000 by
10931 # default) and relocated if they conflict, which is a slow very memory
10932 # consuming and fragmenting process. To avoid this, we pick a random,
10933 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10934 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10935 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'
10936 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'
10939 case $cc_basename in
10942 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'
10944 # Archives containing C++ object files must be created using
10945 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10946 # necessary to make sure instantiated templates are included
10948 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10951 if test "$GXX" = yes; then
10952 if test "$with_gnu_ld" = no; then
10953 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'
10955 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'
10958 link_all_deplibs_CXX=yes
10961 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10962 hardcode_libdir_separator_CXX=:
10965 case $cc_basename in
10967 # Kuck and Associates, Inc. (KAI) C++ Compiler
10969 # KCC will only create a shared library if the output file
10970 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10971 # to its proper name (with version) after linking.
10972 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'
10973 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'
10974 # Commands to make compiler produce verbose output that lists
10975 # what "hidden" libraries, object files and flags are used when
10976 # linking a shared library.
10978 # There doesn't appear to be a way to prevent this compiler from
10979 # explicitly linking system object files so we need to strip them
10980 # from the output so that they don't get included in the library
10982 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'
10984 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10985 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10987 # Archives containing C++ object files must be created using
10988 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10989 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10994 # version 8.0 and above of icpc choke on multiply defined symbols
10995 # if we add $predep_objects and $postdep_objects, however 7.1 and
10996 # earlier do not add the objects themselves.
10997 case `$CC -V 2>&1` in
10999 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11000 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'
11002 *) # Version 8.0 or newer
11005 ia64*) tmp_idyn=' -i_dynamic';;
11007 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11008 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'
11011 archive_cmds_need_lc_CXX=no
11012 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11013 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11014 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11017 # Portland Group C++ compiler
11018 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11019 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'
11021 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11022 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11023 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'
11027 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11028 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'
11030 runpath_var=LD_RUN_PATH
11031 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11032 hardcode_libdir_separator_CXX=:
11034 # Commands to make compiler produce verbose output that lists
11035 # what "hidden" libraries, object files and flags are used when
11036 # linking a shared library.
11038 # There doesn't appear to be a way to prevent this compiler from
11039 # explicitly linking system object files so we need to strip them
11040 # from the output so that they don't get included in the library
11042 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'
11047 # FIXME: insert proper C++ library support
11051 # FIXME: insert proper C++ library support
11055 case $cc_basename in
11057 # FIXME: insert proper C++ library support
11061 # FIXME: insert proper C++ library support
11067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11068 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11070 hardcode_libdir_flag_spec_CXX='-R$libdir'
11071 hardcode_direct_CXX=yes
11072 hardcode_shlibpath_var_CXX=no
11074 # Workaround some broken pre-1.5 toolchains
11075 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11078 # C++ shared libraries are fairly broken
11082 hardcode_direct_CXX=yes
11083 hardcode_shlibpath_var_CXX=no
11084 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11085 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11086 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11087 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11088 export_dynamic_flag_spec_CXX='${wl}-E'
11089 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11091 output_verbose_link_cmd='echo'
11094 case $cc_basename in
11096 # Kuck and Associates, Inc. (KAI) C++ Compiler
11098 # KCC will only create a shared library if the output file
11099 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11100 # to its proper name (with version) after linking.
11101 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'
11103 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11104 hardcode_libdir_separator_CXX=:
11106 # Archives containing C++ object files must be created using
11107 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11108 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11112 # Rational C++ 2.4.1
11113 # FIXME: insert proper C++ library support
11117 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11118 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'
11120 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11121 hardcode_libdir_separator_CXX=:
11123 # Commands to make compiler produce verbose output that lists
11124 # what "hidden" libraries, object files and flags are used when
11125 # linking a shared library.
11127 # There doesn't appear to be a way to prevent this compiler from
11128 # explicitly linking system object files so we need to strip them
11129 # from the output so that they don't get included in the library
11131 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'
11134 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11135 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11136 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'
11138 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11139 hardcode_libdir_separator_CXX=:
11141 # Commands to make compiler produce verbose output that lists
11142 # what "hidden" libraries, object files and flags are used when
11143 # linking a shared library.
11144 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11147 # FIXME: insert proper C++ library support
11154 case $cc_basename in
11156 # Kuck and Associates, Inc. (KAI) C++ Compiler
11158 # KCC will only create a shared library if the output file
11159 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11160 # to its proper name (with version) after linking.
11161 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'
11163 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11164 hardcode_libdir_separator_CXX=:
11166 # Archives containing C++ object files must be created using
11167 # the KAI C++ compiler.
11168 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11171 # Rational C++ 2.4.1
11172 # FIXME: insert proper C++ library support
11176 allow_undefined_flag_CXX=' -expect_unresolved \*'
11177 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'
11178 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11179 echo "-hidden">> $lib.exp~
11180 $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~
11183 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11184 hardcode_libdir_separator_CXX=:
11186 # Commands to make compiler produce verbose output that lists
11187 # what "hidden" libraries, object files and flags are used when
11188 # linking a shared library.
11190 # There doesn't appear to be a way to prevent this compiler from
11191 # explicitly linking system object files so we need to strip them
11192 # from the output so that they don't get included in the library
11194 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'
11197 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11198 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11199 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'
11201 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11202 hardcode_libdir_separator_CXX=:
11204 # Commands to make compiler produce verbose output that lists
11205 # what "hidden" libraries, object files and flags are used when
11206 # linking a shared library.
11207 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11210 # FIXME: insert proper C++ library support
11217 # FIXME: insert proper C++ library support
11221 case $cc_basename in
11224 # FIXME: insert proper C++ library support
11229 # FIXME: insert proper C++ library support
11233 # FIXME: insert proper C++ library support
11239 case $cc_basename in
11241 # Sun C++ 4.2, 5.x and Centerline C++
11242 archive_cmds_need_lc_CXX=yes
11243 no_undefined_flag_CXX=' -zdefs'
11244 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11245 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11246 $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'
11248 hardcode_libdir_flag_spec_CXX='-R$libdir'
11249 hardcode_shlibpath_var_CXX=no
11251 solaris2.[0-5] | solaris2.[0-5].*) ;;
11253 # The C++ compiler is used as linker so we must use $wl
11254 # flag to pass the commands to the underlying system
11255 # linker. We must also pass each convience library through
11256 # to the system linker between allextract/defaultextract.
11257 # The C++ compiler will combine linker options so we
11258 # cannot just pass the convience library names through
11260 # Supported since Solaris 2.6 (maybe 2.5.1?)
11261 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'
11264 link_all_deplibs_CXX=yes
11266 output_verbose_link_cmd='echo'
11268 # Archives containing C++ object files must be created using
11269 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11270 # necessary to make sure instantiated templates are included
11272 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11275 # Green Hills C++ Compiler
11276 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11278 # The C++ compiler must be used to create the archive.
11279 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11282 # GNU C++ compiler with Solaris linker
11283 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11284 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11285 if $CC --version | grep -v '^2\.7' > /dev/null; then
11286 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11287 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11288 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11290 # Commands to make compiler produce verbose output that lists
11291 # what "hidden" libraries, object files and flags are used when
11292 # linking a shared library.
11293 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11295 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11297 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11298 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11299 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11301 # Commands to make compiler produce verbose output that lists
11302 # what "hidden" libraries, object files and flags are used when
11303 # linking a shared library.
11304 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11307 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11312 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11313 no_undefined_flag_CXX='${wl}-z,text'
11314 archive_cmds_need_lc_CXX=no
11315 hardcode_shlibpath_var_CXX=no
11316 runpath_var='LD_RUN_PATH'
11318 case $cc_basename in
11320 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11321 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11324 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11325 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11329 sysv5* | sco3.2v5* | sco5v6*)
11330 # Note: We can NOT use -z defs as we might desire, because we do not
11331 # link with -lc, and that would cause any symbols used from libc to
11332 # always be unresolved, which means just about no library would
11333 # ever link correctly. If we're not using GNU ld we use -z text
11334 # though, which does catch some bad symbols but isn't as heavy-handed
11336 # For security reasons, it is highly recommended that you always
11337 # use absolute paths for naming shared libraries, and exclude the
11338 # DT_RUNPATH tag from executables and libraries. But doing so
11339 # requires that you compile everything twice, which is a pain.
11340 # So that behaviour is only enabled if SCOABSPATH is set to a
11341 # non-empty value in the environment. Most likely only useful for
11342 # creating official distributions of packages.
11343 # This is a hack until libtool officially supports absolute path
11344 # names for shared libraries.
11345 no_undefined_flag_CXX='${wl}-z,text'
11346 allow_undefined_flag_CXX='${wl}-z,nodefs'
11347 archive_cmds_need_lc_CXX=no
11348 hardcode_shlibpath_var_CXX=no
11349 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11350 hardcode_libdir_separator_CXX=':'
11351 link_all_deplibs_CXX=yes
11352 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11353 runpath_var='LD_RUN_PATH'
11355 case $cc_basename in
11357 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11358 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11361 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11362 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11367 case $cc_basename in
11369 # NonStop-UX NCC 3.20
11370 # FIXME: insert proper C++ library support
11374 # FIXME: insert proper C++ library support
11380 # FIXME: insert proper C++ library support
11384 # FIXME: insert proper C++ library support
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11389 $as_echo "$ld_shlibs_CXX" >&6; }
11390 test "$ld_shlibs_CXX" = no && can_build_shared=no
11396 cat > conftest.$ac_ext <<EOF
11400 Foo (void) { a = 0; }
11406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11407 (eval $ac_compile) 2>&5
11409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11410 test $ac_status = 0; }; then
11411 # Parse the compiler output and extract the necessary
11412 # objects, libraries and library flags.
11414 # Sentinel used to keep track of whether or not we are before
11415 # the conftest object file.
11416 pre_test_object_deps_done=no
11418 # The `*' in the case matches for architectures that use `case' in
11419 # $output_verbose_cmd can trigger glob expansion during the loop
11420 # eval without this substitution.
11421 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11423 for p in `eval $output_verbose_link_cmd`; do
11427 # Some compilers place space between "-{L,R}" and the path.
11428 # Remove the space.
11429 if test $p = "-L" \
11430 || test $p = "-R"; then
11437 if test "$pre_test_object_deps_done" = no; then
11440 # Internal compiler library paths should come after those
11441 # provided the user. The postdeps already come after the
11442 # user supplied libs so there is no need to process them.
11443 if test -z "$compiler_lib_search_path_CXX"; then
11444 compiler_lib_search_path_CXX="${prev}${p}"
11446 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11449 # The "-l" case would never come before the object being
11450 # linked, so don't bother handling this case.
11453 if test -z "$postdeps_CXX"; then
11454 postdeps_CXX="${prev}${p}"
11456 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11462 # This assumes that the test object file only shows up
11463 # once in the compiler output.
11464 if test "$p" = "conftest.$objext"; then
11465 pre_test_object_deps_done=yes
11469 if test "$pre_test_object_deps_done" = no; then
11470 if test -z "$predep_objects_CXX"; then
11471 predep_objects_CXX="$p"
11473 predep_objects_CXX="$predep_objects_CXX $p"
11476 if test -z "$postdep_objects_CXX"; then
11477 postdep_objects_CXX="$p"
11479 postdep_objects_CXX="$postdep_objects_CXX $p"
11484 *) ;; # Ignore the rest.
11492 echo "libtool.m4: error: problem compiling CXX test program"
11495 $rm -f confest.$objext
11497 # PORTME: override above test on systems where it is broken
11500 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11501 # hack all around it, let's just trust "g++" to DTRT.
11502 predep_objects_CXX=
11503 postdep_objects_CXX=
11508 case $cc_basename in
11510 # Adding this requires a known-good setup of shared libraries for
11511 # Sun compiler versions before 5.6, else PIC objects from an old
11512 # archive will be linked into the output, leading to subtle bugs.
11513 postdeps_CXX='-lCstd -lCrun'
11520 case " $postdeps_CXX " in
11521 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11524 lt_prog_compiler_wl_CXX=
11525 lt_prog_compiler_pic_CXX=
11526 lt_prog_compiler_static_CXX=
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11529 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11531 # C++ specific cases for pic, static, wl, etc.
11532 if test "$GXX" = yes; then
11533 lt_prog_compiler_wl_CXX='-Wl,'
11534 lt_prog_compiler_static_CXX='-static'
11538 # All AIX code is PIC.
11539 if test "$host_cpu" = ia64; then
11540 # AIX 5 now supports IA64 processor
11541 lt_prog_compiler_static_CXX='-Bstatic'
11545 # FIXME: we need at least 68020 code to build shared libraries, but
11546 # adding the `-m68020' flag to GCC prevents building anything better,
11548 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11550 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11551 # PIC is the default for these OSes.
11553 mingw* | os2* | pw32*)
11554 # This hack is so that the source file can tell whether it is being
11555 # built for inclusion in a dll (and should export symbols for example).
11556 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11558 darwin* | rhapsody*)
11559 # PIC is the default on this platform
11560 # Common symbols not allowed in MH_DYLIB files
11561 lt_prog_compiler_pic_CXX='-fno-common'
11564 # DJGPP does not support shared libraries at all
11565 lt_prog_compiler_pic_CXX=
11568 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11569 # Instead, we relocate shared libraries at runtime.
11572 if test -d /usr/nec; then
11573 lt_prog_compiler_pic_CXX=-Kconform_pic
11577 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11578 # not for PA HP-UX.
11583 lt_prog_compiler_pic_CXX='-fPIC'
11588 lt_prog_compiler_pic_CXX='-fPIC'
11594 # All AIX code is PIC.
11595 if test "$host_cpu" = ia64; then
11596 # AIX 5 now supports IA64 processor
11597 lt_prog_compiler_static_CXX='-Bstatic'
11599 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11603 case $cc_basename in
11605 # Green Hills C++ Compiler
11606 # _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"
11611 # PIC is the default on this platform
11612 # Common symbols not allowed in MH_DYLIB files
11613 case $cc_basename in
11615 lt_prog_compiler_pic_CXX='-qnocommon'
11616 lt_prog_compiler_wl_CXX='-Wl,'
11621 case $cc_basename in
11623 lt_prog_compiler_pic_CXX='-KPIC'
11626 # Green Hills C++ Compiler
11627 lt_prog_compiler_pic_CXX='-pic'
11633 freebsd* | kfreebsd*-gnu | dragonfly*)
11634 # FreeBSD uses GNU C++
11636 hpux9* | hpux10* | hpux11*)
11637 case $cc_basename in
11639 lt_prog_compiler_wl_CXX='-Wl,'
11640 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11641 if test "$host_cpu" != ia64; then
11642 lt_prog_compiler_pic_CXX='+Z'
11646 lt_prog_compiler_wl_CXX='-Wl,'
11647 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11653 lt_prog_compiler_pic_CXX='+Z'
11662 # This is c89, which is MS Visual C++ (no shared libs)
11663 # Anyone wants to do a port?
11665 irix5* | irix6* | nonstopux*)
11666 case $cc_basename in
11668 lt_prog_compiler_wl_CXX='-Wl,'
11669 lt_prog_compiler_static_CXX='-non_shared'
11670 # CC pic flag -KPIC is the default.
11677 case $cc_basename in
11680 lt_prog_compiler_wl_CXX='--backend -Wl,'
11681 lt_prog_compiler_pic_CXX='-fPIC'
11685 lt_prog_compiler_wl_CXX='-Wl,'
11686 lt_prog_compiler_pic_CXX='-KPIC'
11687 lt_prog_compiler_static_CXX='-static'
11690 # Portland Group C++ compiler.
11691 lt_prog_compiler_wl_CXX='-Wl,'
11692 lt_prog_compiler_pic_CXX='-fpic'
11693 lt_prog_compiler_static_CXX='-Bstatic'
11697 # Make sure the PIC flag is empty. It appears that all Alpha
11698 # Linux and Compaq Tru64 Unix objects are PIC.
11699 lt_prog_compiler_pic_CXX=
11700 lt_prog_compiler_static_CXX='-non_shared'
11711 case $cc_basename in
11713 lt_prog_compiler_pic_CXX='-W c,exportall'
11721 osf3* | osf4* | osf5*)
11722 case $cc_basename in
11724 lt_prog_compiler_wl_CXX='--backend -Wl,'
11727 # Rational C++ 2.4.1
11728 lt_prog_compiler_pic_CXX='-pic'
11731 # Digital/Compaq C++
11732 lt_prog_compiler_wl_CXX='-Wl,'
11733 # Make sure the PIC flag is empty. It appears that all Alpha
11734 # Linux and Compaq Tru64 Unix objects are PIC.
11735 lt_prog_compiler_pic_CXX=
11736 lt_prog_compiler_static_CXX='-non_shared'
11745 case $cc_basename in
11747 # Sun C++ 4.2, 5.x and Centerline C++
11748 lt_prog_compiler_pic_CXX='-KPIC'
11749 lt_prog_compiler_static_CXX='-Bstatic'
11750 lt_prog_compiler_wl_CXX='-Qoption ld '
11753 # Green Hills C++ Compiler
11754 lt_prog_compiler_pic_CXX='-PIC'
11761 case $cc_basename in
11764 lt_prog_compiler_pic_CXX='-pic'
11765 lt_prog_compiler_static_CXX='-Bstatic'
11769 lt_prog_compiler_pic_CXX='-pic'
11776 case $cc_basename in
11778 # NonStop-UX NCC 3.20
11779 lt_prog_compiler_pic_CXX='-KPIC'
11785 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11786 case $cc_basename in
11788 lt_prog_compiler_wl_CXX='-Wl,'
11789 lt_prog_compiler_pic_CXX='-KPIC'
11790 lt_prog_compiler_static_CXX='-Bstatic'
11797 lt_prog_compiler_can_build_shared_CXX=no
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
11803 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11806 # Check to make sure the PIC flag actually works.
11808 if test -n "$lt_prog_compiler_pic_CXX"; then
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11811 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11812 if ${lt_prog_compiler_pic_works_CXX+:} false; then :
11813 $as_echo_n "(cached) " >&6
11815 lt_prog_compiler_pic_works_CXX=no
11816 ac_outfile=conftest.$ac_objext
11817 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11818 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11819 # Insert the option either (1) after the last *FLAGS variable, or
11820 # (2) before a word containing "conftest.", or (3) at the end.
11821 # Note that $ac_compile itself does not contain backslashes and begins
11822 # with a dollar sign (not a hyphen), so the echo should work correctly.
11823 # The option is referenced via a variable to avoid confusing sed.
11824 lt_compile=`echo "$ac_compile" | $SED \
11825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11827 -e 's:$: $lt_compiler_flag:'`
11828 (eval echo "\"\$as_me:11828: $lt_compile\"" >&5)
11829 (eval "$lt_compile" 2>conftest.err)
11831 cat conftest.err >&5
11832 echo "$as_me:11832: \$? = $ac_status" >&5
11833 if (exit $ac_status) && test -s "$ac_outfile"; then
11834 # The compiler can only warn and ignore the option if not recognized
11835 # So say no if there are warnings other than the usual output.
11836 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11838 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11839 lt_prog_compiler_pic_works_CXX=yes
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
11846 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
11848 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11849 case $lt_prog_compiler_pic_CXX in
11851 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11854 lt_prog_compiler_pic_CXX=
11855 lt_prog_compiler_can_build_shared_CXX=no
11860 # For platforms which do not support PIC, -DPIC is meaningless:
11862 lt_prog_compiler_pic_CXX=
11865 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11870 # Check to make sure the static flag actually works.
11872 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11874 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11875 if ${lt_prog_compiler_static_works_CXX+:} false; then :
11876 $as_echo_n "(cached) " >&6
11878 lt_prog_compiler_static_works_CXX=no
11879 save_LDFLAGS="$LDFLAGS"
11880 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11881 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11882 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11883 # The linker can only warn and ignore the option if not recognized
11884 # So say no if there are warnings
11885 if test -s conftest.err; then
11886 # Append any errors to the config.log.
11887 cat conftest.err 1>&5
11888 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11889 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11890 if diff conftest.exp conftest.er2 >/dev/null; then
11891 lt_prog_compiler_static_works_CXX=yes
11894 lt_prog_compiler_static_works_CXX=yes
11898 LDFLAGS="$save_LDFLAGS"
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_CXX" >&5
11902 $as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
11904 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11907 lt_prog_compiler_static_CXX=
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11912 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11913 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
11914 $as_echo_n "(cached) " >&6
11916 lt_cv_prog_compiler_c_o_CXX=no
11917 $rm -r conftest 2>/dev/null
11921 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11923 lt_compiler_flag="-o out/conftest2.$ac_objext"
11924 # Insert the option either (1) after the last *FLAGS variable, or
11925 # (2) before a word containing "conftest.", or (3) at the end.
11926 # Note that $ac_compile itself does not contain backslashes and begins
11927 # with a dollar sign (not a hyphen), so the echo should work correctly.
11928 lt_compile=`echo "$ac_compile" | $SED \
11929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11931 -e 's:$: $lt_compiler_flag:'`
11932 (eval echo "\"\$as_me:11932: $lt_compile\"" >&5)
11933 (eval "$lt_compile" 2>out/conftest.err)
11935 cat out/conftest.err >&5
11936 echo "$as_me:11936: \$? = $ac_status" >&5
11937 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11939 # The compiler can only warn and ignore the option if not recognized
11940 # So say no if there are warnings
11941 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11942 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11943 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11944 lt_cv_prog_compiler_c_o_CXX=yes
11949 # SGI C++ compiler will create directory out/ii_files/ for
11950 # template instantiation
11951 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11952 $rm out/* && rmdir out
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11959 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
11962 hard_links="nottested"
11963 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11964 # do not overwrite the value of need_locks provided by the user
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11966 $as_echo_n "checking if we can lock with hard links... " >&6; }
11969 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11971 ln conftest.a conftest.b 2>&5 || hard_links=no
11972 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11974 $as_echo "$hard_links" >&6; }
11975 if test "$hard_links" = no; then
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11977 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11985 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11987 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11990 # If we're using GNU nm, then we don't want the "-C" option.
11991 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11992 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11993 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'
11995 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'
11999 export_symbols_cmds_CXX="$ltdll_cmds"
12002 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'
12005 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12010 $as_echo "$ld_shlibs_CXX" >&6; }
12011 test "$ld_shlibs_CXX" = no && can_build_shared=no
12014 # Do we need to explicitly link libc?
12016 case "x$archive_cmds_need_lc_CXX" in
12018 # Assume -lc should be added
12019 archive_cmds_need_lc_CXX=yes
12021 if test "$enable_shared" = yes && test "$GCC" = yes; then
12022 case $archive_cmds_CXX in
12024 # FIXME: we may have to deal with multi-command sequences.
12027 # Test whether the compiler implicitly links with -lc since on some
12028 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12029 # to ld, don't add -lc before -lgcc.
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12031 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12033 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12036 (eval $ac_compile) 2>&5
12038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12039 test $ac_status = 0; } 2>conftest.err; then
12042 libobjs=conftest.$ac_objext
12044 wl=$lt_prog_compiler_wl_CXX
12045 pic_flag=$lt_prog_compiler_pic_CXX
12051 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12052 allow_undefined_flag_CXX=
12053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12054 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12057 test $ac_status = 0; }
12059 archive_cmds_need_lc_CXX=no
12061 archive_cmds_need_lc_CXX=yes
12063 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12065 cat conftest.err 1>&5
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12069 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12077 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12078 library_names_spec=
12079 libname_spec='lib$name'
12083 postuninstall_cmds=
12087 shlibpath_overrides_runpath=unknown
12089 dynamic_linker="$host_os ld.so"
12090 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12091 if test "$GCC" = yes; then
12092 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12093 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12094 # if the path contains ";" then we assume it to be the separator
12095 # otherwise default to the standard path separator (i.e. ":") - it is
12096 # assumed that no part of a normal pathname contains ";" but that should
12097 # okay in the real world where ";" in dirpaths is itself problematic.
12098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12100 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12103 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12105 need_lib_prefix=unknown
12106 hardcode_into_libs=no
12108 # when you set need_version to no, make sure it does not cause -set_version
12109 # flags to be left without arguments
12110 need_version=unknown
12115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12116 shlibpath_var=LIBPATH
12118 # AIX 3 has no versioning support, so we append a major version to the name.
12119 soname_spec='${libname}${release}${shared_ext}$major'
12126 hardcode_into_libs=yes
12127 if test "$host_cpu" = ia64; then
12128 # AIX 5 supports IA64
12129 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12130 shlibpath_var=LD_LIBRARY_PATH
12132 # With GCC up to 2.95.x, collect2 would create an import file
12133 # for dependence libraries. The import file would start with
12134 # the line `#! .'. This would cause the generated library to
12135 # depend on `.', always an invalid library. This was fixed in
12136 # development snapshots of GCC prior to 3.0.
12138 aix4 | aix4.[01] | aix4.[01].*)
12139 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12141 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12144 can_build_shared=no
12148 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12149 # soname into executable. Probably we can add versioning support to
12150 # collect2, so additional links can be useful in future.
12151 if test "$aix_use_runtimelinking" = yes; then
12152 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12153 # instead of lib<name>.a to let people know that these are not
12154 # typical AIX shared libraries.
12155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12157 # We preserve .a as extension for shared libraries through AIX4.2
12158 # and later when we are not doing run time linking.
12159 library_names_spec='${libname}${release}.a $libname.a'
12160 soname_spec='${libname}${release}${shared_ext}$major'
12162 shlibpath_var=LIBPATH
12167 library_names_spec='$libname.ixlibrary $libname.a'
12168 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12169 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'
12173 library_names_spec='${libname}${shared_ext}'
12174 dynamic_linker="$host_os ld.so"
12175 shlibpath_var=LIBRARY_PATH
12181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12182 soname_spec='${libname}${release}${shared_ext}$major'
12183 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12184 shlibpath_var=LD_LIBRARY_PATH
12185 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12186 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12187 # the default ld.so.conf also contains /usr/contrib/lib and
12188 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12189 # libtool to hard-code these into programs
12192 cygwin* | mingw* | pw32*)
12193 version_type=windows
12198 case $GCC,$host_os in
12199 yes,cygwin* | yes,mingw* | yes,pw32*)
12200 library_names_spec='$libname.dll.a'
12201 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12202 postinstall_cmds='base_file=`basename \${file}`~
12203 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12204 dldir=$destdir/`dirname \$dlpath`~
12205 test -d \$dldir || mkdir -p \$dldir~
12206 $install_prog $dir/$dlname \$dldir/$dlname~
12207 chmod a+x \$dldir/$dlname'
12208 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12209 dlpath=$dir/\$dldll~
12211 shlibpath_overrides_runpath=yes
12215 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12216 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12217 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12220 # MinGW DLLs use traditional 'lib' prefix
12221 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12222 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12223 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12224 # It is most probably a Windows format PATH printed by
12225 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12226 # path with ; separators, and with drive letters. We can handle the
12227 # drive letters (cygwin fileutils understands them), so leave them,
12228 # especially as we might pass files found there to a mingw objdump,
12229 # which wouldn't understand a cygwinified path. Ahh.
12230 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12232 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12236 # pw32 DLLs use 'pw' prefix rather than 'lib'
12237 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12243 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12246 dynamic_linker='Win32 ld.exe'
12247 # FIXME: first we should search . and the directory the executable is in
12251 darwin* | rhapsody*)
12252 dynamic_linker="$host_os dyld"
12253 version_type=darwin
12256 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12257 soname_spec='${libname}${release}${major}$shared_ext'
12258 shlibpath_overrides_runpath=yes
12259 shlibpath_var=DYLD_LIBRARY_PATH
12260 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12261 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12262 if test "$GCC" = yes; then
12263 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"`
12265 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12267 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12275 soname_spec='${libname}${release}${shared_ext}$major'
12276 shlibpath_var=LD_LIBRARY_PATH
12287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12288 soname_spec='${libname}${release}${shared_ext}$major'
12289 shlibpath_var=LD_LIBRARY_PATH
12290 shlibpath_overrides_runpath=no
12291 hardcode_into_libs=yes
12292 dynamic_linker='GNU ld.so'
12295 freebsd* | dragonfly*)
12296 # DragonFly does not have aout. When/if they implement a new
12297 # versioning mechanism, adjust this.
12298 if test -x /usr/bin/objformat; then
12299 objformat=`/usr/bin/objformat`
12302 freebsd[123]*) objformat=aout ;;
12303 *) objformat=elf ;;
12306 version_type=freebsd-$objformat
12307 case $version_type in
12309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12318 shlibpath_var=LD_LIBRARY_PATH
12321 shlibpath_overrides_runpath=yes
12323 freebsd3.[01]* | freebsdelf3.[01]*)
12324 shlibpath_overrides_runpath=yes
12325 hardcode_into_libs=yes
12327 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12328 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12329 shlibpath_overrides_runpath=no
12330 hardcode_into_libs=yes
12332 freebsd*) # from 4.6 on
12333 shlibpath_overrides_runpath=yes
12334 hardcode_into_libs=yes
12343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12344 soname_spec='${libname}${release}${shared_ext}$major'
12345 shlibpath_var=LD_LIBRARY_PATH
12346 hardcode_into_libs=yes
12349 hpux9* | hpux10* | hpux11*)
12350 # Give a soname corresponding to the major version so that dld.sl refuses to
12351 # link against other versions.
12358 hardcode_into_libs=yes
12359 dynamic_linker="$host_os dld.so"
12360 shlibpath_var=LD_LIBRARY_PATH
12361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12363 soname_spec='${libname}${release}${shared_ext}$major'
12364 if test "X$HPUX_IA64_MODE" = X32; then
12365 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12367 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12373 hardcode_into_libs=yes
12374 dynamic_linker="$host_os dld.sl"
12375 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12378 soname_spec='${libname}${release}${shared_ext}$major'
12379 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12384 dynamic_linker="$host_os dld.sl"
12385 shlibpath_var=SHLIB_PATH
12386 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12388 soname_spec='${libname}${release}${shared_ext}$major'
12391 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12392 postinstall_cmds='chmod 555 $lib'
12399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12400 soname_spec='${libname}${release}${shared_ext}$major'
12401 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12402 shlibpath_var=LD_LIBRARY_PATH
12403 shlibpath_overrides_runpath=no
12404 hardcode_into_libs=yes
12407 irix5* | irix6* | nonstopux*)
12409 nonstopux*) version_type=nonstopux ;;
12411 if test "$lt_cv_prog_gnu_ld" = yes; then
12419 soname_spec='${libname}${release}${shared_ext}$major'
12420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12422 irix5* | nonstopux*)
12423 libsuff= shlibsuff=
12426 case $LD in # libtool.m4 will add one of these switches to LD
12427 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12428 libsuff= shlibsuff= libmagic=32-bit;;
12429 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12430 libsuff=32 shlibsuff=N32 libmagic=N32;;
12431 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12432 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12433 *) libsuff= shlibsuff= libmagic=never-match;;
12437 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12438 shlibpath_overrides_runpath=no
12439 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12440 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12441 hardcode_into_libs=yes
12444 # No shared lib support for Linux oldld, aout, or coff.
12445 linux*oldld* | linux*aout* | linux*coff*)
12449 # This must be Linux ELF.
12454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12455 soname_spec='${libname}${release}${shared_ext}$major'
12456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12457 shlibpath_var=LD_LIBRARY_PATH
12458 shlibpath_overrides_runpath=no
12459 # This implies no fast_install, which is unacceptable.
12460 # Some rework will be needed to allow for fast_install
12461 # before this can be enabled.
12462 hardcode_into_libs=yes
12464 # Append ld.so.conf contents to the search path
12465 if test -f /etc/ld.so.conf; then
12466 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' ' '`
12467 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12470 # We used to test for /lib/ld.so.1 and disable shared libraries on
12471 # powerpc, because MkLinux only supported shared libraries with the
12472 # GNU dynamic linker. Since this was broken with cross compilers,
12473 # most powerpc-linux boxes support dynamic linking these days and
12474 # people can always --disable-shared, the test was removed, and we
12475 # assume the GNU/Linux dynamic linker is in use.
12476 dynamic_linker='GNU/Linux ld.so'
12483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12484 soname_spec='${libname}${release}${shared_ext}$major'
12485 shlibpath_var=LD_LIBRARY_PATH
12486 shlibpath_overrides_runpath=no
12487 hardcode_into_libs=yes
12488 dynamic_linker='GNU ld.so'
12495 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12498 dynamic_linker='NetBSD (a.out) ld.so'
12500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12501 soname_spec='${libname}${release}${shared_ext}$major'
12502 dynamic_linker='NetBSD ld.elf_so'
12504 shlibpath_var=LD_LIBRARY_PATH
12505 shlibpath_overrides_runpath=yes
12506 hardcode_into_libs=yes
12511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12512 shlibpath_var=LD_LIBRARY_PATH
12513 shlibpath_overrides_runpath=yes
12520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12521 soname_spec='${libname}${release}${shared_ext}$major'
12522 shlibpath_var=LD_LIBRARY_PATH
12523 shlibpath_overrides_runpath=yes
12528 sys_lib_dlsearch_path_spec="/usr/lib"
12530 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12532 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12533 *) need_version=no ;;
12535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12537 shlibpath_var=LD_LIBRARY_PATH
12538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12540 openbsd2.[89] | openbsd2.[89].*)
12541 shlibpath_overrides_runpath=no
12544 shlibpath_overrides_runpath=yes
12548 shlibpath_overrides_runpath=yes
12553 libname_spec='$name'
12556 library_names_spec='$libname${shared_ext} $libname.a'
12557 dynamic_linker='OS/2 ld.exe'
12558 shlibpath_var=LIBPATH
12561 osf3* | osf4* | osf5*)
12565 soname_spec='${libname}${release}${shared_ext}$major'
12566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12567 shlibpath_var=LD_LIBRARY_PATH
12568 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12569 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12577 soname_spec='${libname}${release}${shared_ext}$major'
12578 shlibpath_var=LD_LIBRARY_PATH
12579 shlibpath_overrides_runpath=yes
12580 hardcode_into_libs=yes
12581 # ldd complains unless libraries are executable
12582 postinstall_cmds='chmod +x $lib'
12587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12588 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12589 shlibpath_var=LD_LIBRARY_PATH
12590 shlibpath_overrides_runpath=yes
12591 if test "$with_gnu_ld" = yes; then
12599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12600 soname_spec='${libname}${release}${shared_ext}$major'
12601 shlibpath_var=LD_LIBRARY_PATH
12602 case $host_vendor in
12604 shlibpath_overrides_runpath=no
12606 export_dynamic_flag_spec='${wl}-Blargedynsym'
12607 runpath_var=LD_RUN_PATH
12615 shlibpath_overrides_runpath=no
12616 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12622 if test -d /usr/nec ;then
12624 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12625 soname_spec='$libname${shared_ext}.$major'
12626 shlibpath_var=LD_LIBRARY_PATH
12630 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12631 version_type=freebsd-elf
12634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12635 soname_spec='${libname}${release}${shared_ext}$major'
12636 shlibpath_var=LD_LIBRARY_PATH
12637 hardcode_into_libs=yes
12638 if test "$with_gnu_ld" = yes; then
12639 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12640 shlibpath_overrides_runpath=no
12642 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12643 shlibpath_overrides_runpath=yes
12646 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12650 sys_lib_dlsearch_path_spec='/usr/lib'
12655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12656 soname_spec='${libname}${release}${shared_ext}$major'
12657 shlibpath_var=LD_LIBRARY_PATH
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12665 $as_echo "$dynamic_linker" >&6; }
12666 test "$dynamic_linker" = no && can_build_shared=no
12668 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12669 if test "$GCC" = yes; then
12670 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12674 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12675 hardcode_action_CXX=
12676 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12677 test -n "$runpath_var_CXX" || \
12678 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12680 # We can hardcode non-existant directories.
12681 if test "$hardcode_direct_CXX" != no &&
12682 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12683 # have to relink, otherwise we might link with an installed library
12684 # when we should be linking with a yet-to-be-installed one
12685 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12686 test "$hardcode_minus_L_CXX" != no; then
12687 # Linking always hardcodes the temporary library directory.
12688 hardcode_action_CXX=relink
12690 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12691 hardcode_action_CXX=immediate
12694 # We cannot hardcode anything, or else we can only hardcode existing
12696 hardcode_action_CXX=unsupported
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
12699 $as_echo "$hardcode_action_CXX" >&6; }
12701 if test "$hardcode_action_CXX" = relink; then
12702 # Fast installation is not supported
12703 enable_fast_install=no
12704 elif test "$shlibpath_overrides_runpath" = yes ||
12705 test "$enable_shared" = no; then
12706 # Fast installation is not necessary
12707 enable_fast_install=needless
12711 # The else clause should only fire when bootstrapping the
12712 # libtool distribution, otherwise you forgot to ship ltmain.sh
12713 # with your package, and you will get complaints that there are
12714 # no rules to generate ltmain.sh.
12715 if test -f "$ltmain"; then
12716 # See if we are running on zsh, and set the options which allow our commands through
12717 # without removal of \ escapes.
12718 if test -n "${ZSH_VERSION+set}" ; then
12719 setopt NO_GLOB_SUBST
12721 # Now quote all the things that may contain metacharacters while being
12722 # careful not to overquote the AC_SUBSTed values. We take copies of the
12723 # variables and quote the copies for generation of the libtool script.
12724 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12726 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12727 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12728 deplibs_check_method reload_flag reload_cmds need_locks \
12729 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12730 lt_cv_sys_global_symbol_to_c_name_address \
12731 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12732 old_postinstall_cmds old_postuninstall_cmds \
12736 lt_prog_compiler_wl_CXX \
12737 lt_prog_compiler_pic_CXX \
12738 lt_prog_compiler_static_CXX \
12739 lt_prog_compiler_no_builtin_flag_CXX \
12740 export_dynamic_flag_spec_CXX \
12741 thread_safe_flag_spec_CXX \
12742 whole_archive_flag_spec_CXX \
12743 enable_shared_with_static_runtimes_CXX \
12744 old_archive_cmds_CXX \
12745 old_archive_from_new_cmds_CXX \
12746 predep_objects_CXX \
12747 postdep_objects_CXX \
12750 compiler_lib_search_path_CXX \
12752 archive_expsym_cmds_CXX \
12753 postinstall_cmds_CXX \
12754 postuninstall_cmds_CXX \
12755 old_archive_from_expsyms_cmds_CXX \
12756 allow_undefined_flag_CXX \
12757 no_undefined_flag_CXX \
12758 export_symbols_cmds_CXX \
12759 hardcode_libdir_flag_spec_CXX \
12760 hardcode_libdir_flag_spec_ld_CXX \
12761 hardcode_libdir_separator_CXX \
12762 hardcode_automatic_CXX \
12764 module_expsym_cmds_CXX \
12765 lt_cv_prog_compiler_c_o_CXX \
12766 exclude_expsyms_CXX \
12767 include_expsyms_CXX; do
12770 old_archive_cmds_CXX | \
12771 old_archive_from_new_cmds_CXX | \
12772 archive_cmds_CXX | \
12773 archive_expsym_cmds_CXX | \
12774 module_cmds_CXX | \
12775 module_expsym_cmds_CXX | \
12776 old_archive_from_expsyms_cmds_CXX | \
12777 export_symbols_cmds_CXX | \
12778 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12779 postinstall_cmds | postuninstall_cmds | \
12780 old_postinstall_cmds | old_postuninstall_cmds | \
12781 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12782 # Double-quote double-evaled strings.
12783 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12786 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12792 *'\$0 --fallback-echo"')
12793 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12799 cat <<__EOF__ >> "$cfgfile"
12800 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12802 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12804 # Shell to use when invoking shell scripts.
12807 # Whether or not to build shared libraries.
12808 build_libtool_libs=$enable_shared
12810 # Whether or not to build static libraries.
12811 build_old_libs=$enable_static
12813 # Whether or not to add -lc for building shared libraries.
12814 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12816 # Whether or not to disallow shared libs when runtime libs are static
12817 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12819 # Whether or not to optimize for fast installation.
12820 fast_install=$enable_fast_install
12823 host_alias=$host_alias
12827 # The build system.
12828 build_alias=$build_alias
12832 # An echo program that does not interpret backslashes.
12837 AR_FLAGS=$lt_AR_FLAGS
12842 # LTCC compiler flags.
12843 LTCFLAGS=$lt_LTCFLAGS
12845 # A language-specific compiler.
12846 CC=$lt_compiler_CXX
12848 # Is the compiler the GNU C compiler?
12854 # The linker used to build libraries.
12857 # Whether we need hard or soft links.
12860 # A BSD-compatible nm program.
12863 # A symbol stripping program
12866 # Used to examine libraries when file_magic_cmd begins "file"
12867 MAGIC_CMD=$MAGIC_CMD
12869 # Used on cygwin: DLL creation program.
12872 # Used on cygwin: object dumper.
12875 # Used on cygwin: assembler.
12878 # The name of the directory that contains temporary libtool files.
12881 # How to create reloadable object files.
12882 reload_flag=$lt_reload_flag
12883 reload_cmds=$lt_reload_cmds
12885 # How to pass a linker flag through the compiler.
12886 wl=$lt_lt_prog_compiler_wl_CXX
12888 # Object file suffix (normally "o").
12889 objext="$ac_objext"
12891 # Old archive suffix (normally "a").
12894 # Shared library suffix (normally ".so").
12895 shrext_cmds='$shrext_cmds'
12897 # Executable file suffix (normally "").
12900 # Additional compiler flags for building library objects.
12901 pic_flag=$lt_lt_prog_compiler_pic_CXX
12904 # What is the maximum length of a command?
12905 max_cmd_len=$lt_cv_sys_max_cmd_len
12907 # Does compiler simultaneously support -c and -o options?
12908 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12910 # Must we lock files when doing compilation?
12911 need_locks=$lt_need_locks
12913 # Do we need the lib prefix for modules?
12914 need_lib_prefix=$need_lib_prefix
12916 # Do we need a version for libraries?
12917 need_version=$need_version
12919 # Whether dlopen is supported.
12920 dlopen_support=$enable_dlopen
12922 # Whether dlopen of programs is supported.
12923 dlopen_self=$enable_dlopen_self
12925 # Whether dlopen of statically linked programs is supported.
12926 dlopen_self_static=$enable_dlopen_self_static
12928 # Compiler flag to prevent dynamic linking.
12929 link_static_flag=$lt_lt_prog_compiler_static_CXX
12931 # Compiler flag to turn off builtin functions.
12932 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12934 # Compiler flag to allow reflexive dlopens.
12935 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12937 # Compiler flag to generate shared objects directly from archives.
12938 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12940 # Compiler flag to generate thread-safe objects.
12941 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12943 # Library versioning type.
12944 version_type=$version_type
12946 # Format of library name prefix.
12947 libname_spec=$lt_libname_spec
12949 # List of archive names. First name is the real one, the rest are links.
12950 # The last name is the one that the linker finds with -lNAME.
12951 library_names_spec=$lt_library_names_spec
12953 # The coded name of the library, if different from the real name.
12954 soname_spec=$lt_soname_spec
12956 # Commands used to build and install an old-style archive.
12958 old_archive_cmds=$lt_old_archive_cmds_CXX
12959 old_postinstall_cmds=$lt_old_postinstall_cmds
12960 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12962 # Create an old-style archive from a shared archive.
12963 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12965 # Create a temporary old-style archive to link instead of a shared archive.
12966 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12968 # Commands used to build and install a shared archive.
12969 archive_cmds=$lt_archive_cmds_CXX
12970 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12971 postinstall_cmds=$lt_postinstall_cmds
12972 postuninstall_cmds=$lt_postuninstall_cmds
12974 # Commands used to build a loadable module (assumed same as above if empty)
12975 module_cmds=$lt_module_cmds_CXX
12976 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12978 # Commands to strip libraries.
12979 old_striplib=$lt_old_striplib
12980 striplib=$lt_striplib
12982 # Dependencies to place before the objects being linked to create a
12984 predep_objects=$lt_predep_objects_CXX
12986 # Dependencies to place after the objects being linked to create a
12988 postdep_objects=$lt_postdep_objects_CXX
12990 # Dependencies to place before the objects being linked to create a
12992 predeps=$lt_predeps_CXX
12994 # Dependencies to place after the objects being linked to create a
12996 postdeps=$lt_postdeps_CXX
12998 # The library search path used internally by the compiler when linking
12999 # a shared library.
13000 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13002 # Method to check whether dependent libraries are shared objects.
13003 deplibs_check_method=$lt_deplibs_check_method
13005 # Command to use when deplibs_check_method == file_magic.
13006 file_magic_cmd=$lt_file_magic_cmd
13008 # Flag that allows shared libraries with undefined symbols to be built.
13009 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13011 # Flag that forces no undefined symbols.
13012 no_undefined_flag=$lt_no_undefined_flag_CXX
13014 # Commands used to finish a libtool library installation in a directory.
13015 finish_cmds=$lt_finish_cmds
13017 # Same as above, but a single script fragment to be evaled but not shown.
13018 finish_eval=$lt_finish_eval
13020 # Take the output of nm and produce a listing of raw symbols and C names.
13021 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13023 # Transform the output of nm in a proper C declaration
13024 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13026 # Transform the output of nm in a C name address pair
13027 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13029 # This is the shared library runtime path variable.
13030 runpath_var=$runpath_var
13032 # This is the shared library path variable.
13033 shlibpath_var=$shlibpath_var
13035 # Is shlibpath searched before the hard-coded library search path?
13036 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13038 # How to hardcode a shared library path into an executable.
13039 hardcode_action=$hardcode_action_CXX
13041 # Whether we should hardcode library paths into libraries.
13042 hardcode_into_libs=$hardcode_into_libs
13044 # Flag to hardcode \$libdir into a binary during linking.
13045 # This must work even if \$libdir does not exist.
13046 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13048 # If ld is used when linking, flag to hardcode \$libdir into
13049 # a binary during linking. This must work even if \$libdir does
13051 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13053 # Whether we need a single -rpath flag with a separated argument.
13054 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13056 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13057 # resulting binary.
13058 hardcode_direct=$hardcode_direct_CXX
13060 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13061 # resulting binary.
13062 hardcode_minus_L=$hardcode_minus_L_CXX
13064 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13065 # the resulting binary.
13066 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13068 # Set to yes if building a shared library automatically hardcodes DIR into the library
13069 # and all subsequent libraries and executables linked against it.
13070 hardcode_automatic=$hardcode_automatic_CXX
13072 # Variables whose values should be saved in libtool wrapper scripts and
13073 # restored at relink time.
13074 variables_saved_for_relink="$variables_saved_for_relink"
13076 # Whether libtool must link a program against all its dependency libraries.
13077 link_all_deplibs=$link_all_deplibs_CXX
13079 # Compile-time system search path for libraries
13080 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13082 # Run-time system search path for libraries
13083 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13085 # Fix the shell variable \$srcfile for the compiler.
13086 fix_srcfile_path="$fix_srcfile_path_CXX"
13088 # Set to yes if exported symbols are required.
13089 always_export_symbols=$always_export_symbols_CXX
13091 # The commands to list exported symbols.
13092 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13094 # The commands to extract the exported symbol list from a shared archive.
13095 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13097 # Symbols that should not be listed in the preloaded symbols.
13098 exclude_expsyms=$lt_exclude_expsyms_CXX
13100 # Symbols that must always be exported.
13101 include_expsyms=$lt_include_expsyms_CXX
13103 # ### END LIBTOOL TAG CONFIG: $tagname
13109 # If there is no Makefile yet, we rely on a make rule to execute
13110 # `config.status --recheck' to rerun these tests and create the
13111 # libtool script then.
13112 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13113 if test -f "$ltmain_in"; then
13114 test -f Makefile && make "$ltmain"
13120 ac_cpp='$CPP $CPPFLAGS'
13121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13129 with_gnu_ldcxx=$with_gnu_ld
13130 with_gnu_ld=$lt_save_with_gnu_ld
13131 lt_cv_path_LDCXX=$lt_cv_path_LD
13132 lt_cv_path_LD=$lt_save_path_LD
13133 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13134 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13142 if test -n "$F77" && test "X$F77" != "Xno"; then
13145 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13146 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13147 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13150 archive_cmds_need_lc_F77=no
13151 allow_undefined_flag_F77=
13152 always_export_symbols_F77=no
13153 archive_expsym_cmds_F77=
13154 export_dynamic_flag_spec_F77=
13155 hardcode_direct_F77=no
13156 hardcode_libdir_flag_spec_F77=
13157 hardcode_libdir_flag_spec_ld_F77=
13158 hardcode_libdir_separator_F77=
13159 hardcode_minus_L_F77=no
13160 hardcode_automatic_F77=no
13162 module_expsym_cmds_F77=
13163 link_all_deplibs_F77=unknown
13164 old_archive_cmds_F77=$old_archive_cmds
13165 no_undefined_flag_F77=
13166 whole_archive_flag_spec_F77=
13167 enable_shared_with_static_runtimes_F77=no
13169 # Source file extension for f77 test sources.
13172 # Object file extension for compiled f77 test sources.
13176 # Code to be used in simple compile tests
13177 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13179 # Code to be used in simple link tests
13180 lt_simple_link_test_code=" program t\n end\n"
13182 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13184 # If no C compiler was specified, use CC.
13187 # If no C compiler flags were specified, use CFLAGS.
13188 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13190 # Allow CC to be a program name with arguments.
13194 # save warnings/boilerplate of simple test code
13195 ac_outfile=conftest.$ac_objext
13196 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13197 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13198 _lt_compiler_boilerplate=`cat conftest.err`
13201 ac_outfile=conftest.$ac_objext
13202 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13203 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13204 _lt_linker_boilerplate=`cat conftest.err`
13208 # Allow CC to be a program name with arguments.
13213 for cc_temp in $compiler""; do
13215 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13216 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13221 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13225 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13227 $as_echo "$can_build_shared" >&6; }
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13230 $as_echo_n "checking whether to build shared libraries... " >&6; }
13231 test "$can_build_shared" = "no" && enable_shared=no
13233 # On AIX, shared libraries and static libraries use the same namespace, and
13234 # are all built from PIC.
13237 test "$enable_shared" = yes && enable_static=no
13238 if test -n "$RANLIB"; then
13239 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13240 postinstall_cmds='$RANLIB $lib'
13244 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13245 test "$enable_shared" = yes && enable_static=no
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13250 $as_echo "$enable_shared" >&6; }
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13253 $as_echo_n "checking whether to build static libraries... " >&6; }
13254 # Make sure either enable_shared or enable_static is yes.
13255 test "$enable_shared" = yes || enable_static=yes
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13257 $as_echo "$enable_static" >&6; }
13262 lt_prog_compiler_wl_F77=
13263 lt_prog_compiler_pic_F77=
13264 lt_prog_compiler_static_F77=
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13267 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13269 if test "$GCC" = yes; then
13270 lt_prog_compiler_wl_F77='-Wl,'
13271 lt_prog_compiler_static_F77='-static'
13275 # All AIX code is PIC.
13276 if test "$host_cpu" = ia64; then
13277 # AIX 5 now supports IA64 processor
13278 lt_prog_compiler_static_F77='-Bstatic'
13283 # FIXME: we need at least 68020 code to build shared libraries, but
13284 # adding the `-m68020' flag to GCC prevents building anything better,
13286 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13289 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13290 # PIC is the default for these OSes.
13293 mingw* | pw32* | os2*)
13294 # This hack is so that the source file can tell whether it is being
13295 # built for inclusion in a dll (and should export symbols for example).
13296 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13299 darwin* | rhapsody*)
13300 # PIC is the default on this platform
13301 # Common symbols not allowed in MH_DYLIB files
13302 lt_prog_compiler_pic_F77='-fno-common'
13306 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13307 # Instead, we relocate shared libraries at runtime.
13311 # Just because we use GCC doesn't mean we suddenly get shared libraries
13312 # on systems that don't support them.
13313 lt_prog_compiler_can_build_shared_F77=no
13318 if test -d /usr/nec; then
13319 lt_prog_compiler_pic_F77=-Kconform_pic
13324 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13325 # not for PA HP-UX.
13331 lt_prog_compiler_pic_F77='-fPIC'
13337 lt_prog_compiler_pic_F77='-fPIC'
13341 # PORTME Check for flag to pass linker flags through the system compiler.
13344 lt_prog_compiler_wl_F77='-Wl,'
13345 if test "$host_cpu" = ia64; then
13346 # AIX 5 now supports IA64 processor
13347 lt_prog_compiler_static_F77='-Bstatic'
13349 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13353 # PIC is the default on this platform
13354 # Common symbols not allowed in MH_DYLIB files
13355 case $cc_basename in
13357 lt_prog_compiler_pic_F77='-qnocommon'
13358 lt_prog_compiler_wl_F77='-Wl,'
13363 mingw* | pw32* | os2*)
13364 # This hack is so that the source file can tell whether it is being
13365 # built for inclusion in a dll (and should export symbols for example).
13366 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13369 hpux9* | hpux10* | hpux11*)
13370 lt_prog_compiler_wl_F77='-Wl,'
13371 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13372 # not for PA HP-UX.
13378 lt_prog_compiler_pic_F77='+Z'
13381 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13382 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13385 irix5* | irix6* | nonstopux*)
13386 lt_prog_compiler_wl_F77='-Wl,'
13387 # PIC (with -KPIC) is the default.
13388 lt_prog_compiler_static_F77='-non_shared'
13392 lt_prog_compiler_pic_F77='-KPIC'
13393 lt_prog_compiler_static_F77='-Bstatic'
13397 case $cc_basename in
13399 lt_prog_compiler_wl_F77='-Wl,'
13400 lt_prog_compiler_pic_F77='-KPIC'
13401 lt_prog_compiler_static_F77='-static'
13403 pgcc* | pgf77* | pgf90* | pgf95*)
13404 # Portland Group compilers (*not* the Pentium gcc compiler,
13405 # which looks to be a dead project)
13406 lt_prog_compiler_wl_F77='-Wl,'
13407 lt_prog_compiler_pic_F77='-fpic'
13408 lt_prog_compiler_static_F77='-Bstatic'
13411 lt_prog_compiler_wl_F77='-Wl,'
13412 # All Alpha code is PIC.
13413 lt_prog_compiler_static_F77='-non_shared'
13418 osf3* | osf4* | osf5*)
13419 lt_prog_compiler_wl_F77='-Wl,'
13420 # All OSF/1 code is PIC.
13421 lt_prog_compiler_static_F77='-non_shared'
13425 lt_prog_compiler_pic_F77='-KPIC'
13426 lt_prog_compiler_static_F77='-Bstatic'
13427 case $cc_basename in
13428 f77* | f90* | f95*)
13429 lt_prog_compiler_wl_F77='-Qoption ld ';;
13431 lt_prog_compiler_wl_F77='-Wl,';;
13436 lt_prog_compiler_wl_F77='-Qoption ld '
13437 lt_prog_compiler_pic_F77='-PIC'
13438 lt_prog_compiler_static_F77='-Bstatic'
13441 sysv4 | sysv4.2uw2* | sysv4.3*)
13442 lt_prog_compiler_wl_F77='-Wl,'
13443 lt_prog_compiler_pic_F77='-KPIC'
13444 lt_prog_compiler_static_F77='-Bstatic'
13448 if test -d /usr/nec ;then
13449 lt_prog_compiler_pic_F77='-Kconform_pic'
13450 lt_prog_compiler_static_F77='-Bstatic'
13454 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13455 lt_prog_compiler_wl_F77='-Wl,'
13456 lt_prog_compiler_pic_F77='-KPIC'
13457 lt_prog_compiler_static_F77='-Bstatic'
13461 lt_prog_compiler_wl_F77='-Wl,'
13462 lt_prog_compiler_can_build_shared_F77=no
13466 lt_prog_compiler_pic_F77='-pic'
13467 lt_prog_compiler_static_F77='-Bstatic'
13471 lt_prog_compiler_can_build_shared_F77=no
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13477 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13480 # Check to make sure the PIC flag actually works.
13482 if test -n "$lt_prog_compiler_pic_F77"; then
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13485 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13486 if ${lt_prog_compiler_pic_works_F77+:} false; then :
13487 $as_echo_n "(cached) " >&6
13489 lt_prog_compiler_pic_works_F77=no
13490 ac_outfile=conftest.$ac_objext
13491 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13492 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13493 # Insert the option either (1) after the last *FLAGS variable, or
13494 # (2) before a word containing "conftest.", or (3) at the end.
13495 # Note that $ac_compile itself does not contain backslashes and begins
13496 # with a dollar sign (not a hyphen), so the echo should work correctly.
13497 # The option is referenced via a variable to avoid confusing sed.
13498 lt_compile=`echo "$ac_compile" | $SED \
13499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13501 -e 's:$: $lt_compiler_flag:'`
13502 (eval echo "\"\$as_me:13502: $lt_compile\"" >&5)
13503 (eval "$lt_compile" 2>conftest.err)
13505 cat conftest.err >&5
13506 echo "$as_me:13506: \$? = $ac_status" >&5
13507 if (exit $ac_status) && test -s "$ac_outfile"; then
13508 # The compiler can only warn and ignore the option if not recognized
13509 # So say no if there are warnings other than the usual output.
13510 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13512 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13513 lt_prog_compiler_pic_works_F77=yes
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
13520 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
13522 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13523 case $lt_prog_compiler_pic_F77 in
13525 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13528 lt_prog_compiler_pic_F77=
13529 lt_prog_compiler_can_build_shared_F77=no
13534 # For platforms which do not support PIC, -DPIC is meaningless:
13536 lt_prog_compiler_pic_F77=
13539 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13544 # Check to make sure the static flag actually works.
13546 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13548 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13549 if ${lt_prog_compiler_static_works_F77+:} false; then :
13550 $as_echo_n "(cached) " >&6
13552 lt_prog_compiler_static_works_F77=no
13553 save_LDFLAGS="$LDFLAGS"
13554 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13555 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13556 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13557 # The linker can only warn and ignore the option if not recognized
13558 # So say no if there are warnings
13559 if test -s conftest.err; then
13560 # Append any errors to the config.log.
13561 cat conftest.err 1>&5
13562 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13564 if diff conftest.exp conftest.er2 >/dev/null; then
13565 lt_prog_compiler_static_works_F77=yes
13568 lt_prog_compiler_static_works_F77=yes
13572 LDFLAGS="$save_LDFLAGS"
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_F77" >&5
13576 $as_echo "$lt_prog_compiler_static_works_F77" >&6; }
13578 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13581 lt_prog_compiler_static_F77=
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13586 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13587 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
13588 $as_echo_n "(cached) " >&6
13590 lt_cv_prog_compiler_c_o_F77=no
13591 $rm -r conftest 2>/dev/null
13595 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13597 lt_compiler_flag="-o out/conftest2.$ac_objext"
13598 # Insert the option either (1) after the last *FLAGS variable, or
13599 # (2) before a word containing "conftest.", or (3) at the end.
13600 # Note that $ac_compile itself does not contain backslashes and begins
13601 # with a dollar sign (not a hyphen), so the echo should work correctly.
13602 lt_compile=`echo "$ac_compile" | $SED \
13603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13605 -e 's:$: $lt_compiler_flag:'`
13606 (eval echo "\"\$as_me:13606: $lt_compile\"" >&5)
13607 (eval "$lt_compile" 2>out/conftest.err)
13609 cat out/conftest.err >&5
13610 echo "$as_me:13610: \$? = $ac_status" >&5
13611 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13613 # The compiler can only warn and ignore the option if not recognized
13614 # So say no if there are warnings
13615 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13616 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13617 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13618 lt_cv_prog_compiler_c_o_F77=yes
13623 # SGI C++ compiler will create directory out/ii_files/ for
13624 # template instantiation
13625 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13626 $rm out/* && rmdir out
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13633 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13636 hard_links="nottested"
13637 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13638 # do not overwrite the value of need_locks provided by the user
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13640 $as_echo_n "checking if we can lock with hard links... " >&6; }
13643 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13645 ln conftest.a conftest.b 2>&5 || hard_links=no
13646 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13648 $as_echo "$hard_links" >&6; }
13649 if test "$hard_links" = no; then
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13651 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13659 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13662 allow_undefined_flag_F77=
13663 enable_shared_with_static_runtimes_F77=no
13665 archive_expsym_cmds_F77=
13666 old_archive_From_new_cmds_F77=
13667 old_archive_from_expsyms_cmds_F77=
13668 export_dynamic_flag_spec_F77=
13669 whole_archive_flag_spec_F77=
13670 thread_safe_flag_spec_F77=
13671 hardcode_libdir_flag_spec_F77=
13672 hardcode_libdir_flag_spec_ld_F77=
13673 hardcode_libdir_separator_F77=
13674 hardcode_direct_F77=no
13675 hardcode_minus_L_F77=no
13676 hardcode_shlibpath_var_F77=unsupported
13677 link_all_deplibs_F77=unknown
13678 hardcode_automatic_F77=no
13680 module_expsym_cmds_F77=
13681 always_export_symbols_F77=no
13682 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13683 # include_expsyms should be a list of space-separated symbols to be *always*
13684 # included in the symbol list
13685 include_expsyms_F77=
13686 # exclude_expsyms can be an extended regexp of symbols to exclude
13687 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13688 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13689 # as well as any symbol that contains `d'.
13690 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13691 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13692 # platforms (ab)use it in PIC code, but their linkers get confused if
13693 # the symbol is explicitly referenced. Since portable code cannot
13694 # rely on this symbol name, it's probably fine to never include it in
13695 # preloaded symbol tables.
13696 extract_expsyms_cmds=
13697 # Just being paranoid about ensuring that cc_basename is set.
13698 for cc_temp in $compiler""; do
13700 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13701 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13706 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13709 cygwin* | mingw* | pw32*)
13710 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13711 # When not using gcc, we currently assume that we are using
13712 # Microsoft Visual C++.
13713 if test "$GCC" != yes; then
13718 # we just hope/assume this is gcc and not c89 (= MSVC++)
13727 if test "$with_gnu_ld" = yes; then
13728 # If archive_cmds runs LD, not CC, wlarc should be empty
13731 # Set some defaults for GNU ld with shared library support. These
13732 # are reset later if shared libraries are not supported. Putting them
13733 # here allows them to be overridden if necessary.
13734 runpath_var=LD_RUN_PATH
13735 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13736 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13737 # ancient GNU ld didn't support --whole-archive et. al.
13738 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13739 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13741 whole_archive_flag_spec_F77=
13743 supports_anon_versioning=no
13744 case `$LD -v 2>/dev/null` in
13745 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13746 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13747 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13748 *\ 2.11.*) ;; # other 2.11 versions
13749 *) supports_anon_versioning=yes ;;
13752 # See if GNU ld supports shared libraries.
13754 aix3* | aix4* | aix5*)
13755 # On AIX/PPC, the GNU linker is very broken
13756 if test "$host_cpu" != ia64; then
13760 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13761 *** to be unable to reliably create shared libraries on AIX.
13762 *** Therefore, libtool is disabling shared libraries support. If you
13763 *** really care for shared libraries, you may want to modify your PATH
13764 *** so that a non-GNU linker is found, and then restart.
13771 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)'
13772 hardcode_libdir_flag_spec_F77='-L$libdir'
13773 hardcode_minus_L_F77=yes
13775 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13776 # that the semantics of dynamic libraries on AmigaOS, at least up
13777 # to version 4, is to share data among multiple programs linked
13778 # with the same dynamic library. Since this doesn't match the
13779 # behavior of shared libraries on other platforms, we can't use
13785 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13786 allow_undefined_flag_F77=unsupported
13787 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13788 # support --undefined. This deserves some investigation. FIXME
13789 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13795 cygwin* | mingw* | pw32*)
13796 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13797 # as there is no search path for DLLs.
13798 hardcode_libdir_flag_spec_F77='-L$libdir'
13799 allow_undefined_flag_F77=unsupported
13800 always_export_symbols_F77=no
13801 enable_shared_with_static_runtimes_F77=yes
13802 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13804 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13805 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13806 # If the export-symbols file already is a .def file (1st line
13807 # is EXPORTS), use it as is; otherwise, prepend...
13808 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13809 cp $export_symbols $output_objdir/$soname.def;
13811 echo EXPORTS > $output_objdir/$soname.def;
13812 cat $export_symbols >> $output_objdir/$soname.def;
13814 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13821 hardcode_direct_F77=no
13822 hardcode_shlibpath_var_F77=no
13823 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13824 export_dynamic_flag_spec_F77='${wl}-E'
13825 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13826 # Instead, shared libraries are loaded at an image base (0x10000000 by
13827 # default) and relocated if they conflict, which is a slow very memory
13828 # consuming and fragmenting process. To avoid this, we pick a random,
13829 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13830 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13831 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'
13832 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'
13836 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13838 case $cc_basename,$host_cpu in
13839 pgcc*) # Portland Group C compiler
13840 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'
13841 tmp_addflag=' $pic_flag'
13843 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13844 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'
13845 tmp_addflag=' $pic_flag -Mnomain' ;;
13846 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13847 tmp_addflag=' -i_dynamic' ;;
13848 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13849 tmp_addflag=' -i_dynamic -nofor_main' ;;
13850 ifc* | ifort*) # Intel Fortran compiler
13851 tmp_addflag=' -nofor_main' ;;
13853 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13855 if test $supports_anon_versioning = yes; then
13856 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13858 $echo "local: *; };" >> $output_objdir/$libname.ver~
13859 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13867 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13868 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13871 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13872 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13877 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13881 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13882 *** create shared libraries on Solaris systems. Therefore, libtool
13883 *** is disabling shared libraries support. We urge you to upgrade GNU
13884 *** binutils to release 2.9.1 or newer. Another option is to modify
13885 *** your PATH or compiler configuration so that the native linker is
13886 *** used, and then restart.
13889 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13890 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13891 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13898 case `$LD -v 2>&1` in
13899 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13903 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13904 *** reliably create shared libraries on SCO systems. Therefore, libtool
13905 *** is disabling shared libraries support. We urge you to upgrade GNU
13906 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13907 *** your PATH or compiler configuration so that the native linker is
13908 *** used, and then restart.
13913 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13914 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13915 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13916 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13925 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13927 hardcode_direct_F77=yes
13928 hardcode_shlibpath_var_F77=no
13932 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13933 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13934 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13941 if test "$ld_shlibs_F77" = no; then
13943 hardcode_libdir_flag_spec_F77=
13944 export_dynamic_flag_spec_F77=
13945 whole_archive_flag_spec_F77=
13948 # PORTME fill in a description of your system's linker (not GNU ld)
13951 allow_undefined_flag_F77=unsupported
13952 always_export_symbols_F77=yes
13953 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'
13954 # Note: this linker hardcodes the directories in LIBPATH if there
13955 # are no directories specified by -L.
13956 hardcode_minus_L_F77=yes
13957 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13958 # Neither direct hardcoding nor static linking is supported with a
13960 hardcode_direct_F77=unsupported
13965 if test "$host_cpu" = ia64; then
13966 # On IA64, the linker does run time linking by default, so we don't
13967 # have to do anything special.
13968 aix_use_runtimelinking=no
13969 exp_sym_flag='-Bexport'
13972 # If we're using GNU nm, then we don't want the "-C" option.
13973 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13974 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13975 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'
13977 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'
13979 aix_use_runtimelinking=no
13981 # Test if we are trying to use run time linking or normal
13982 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13983 # need to do runtime linking.
13984 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13985 for ld_flag in $LDFLAGS; do
13986 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13987 aix_use_runtimelinking=yes
13994 exp_sym_flag='-bexport'
13995 no_entry_flag='-bnoentry'
13998 # When large executables or shared objects are built, AIX ld can
13999 # have problems creating the table of contents. If linking a library
14000 # or program results in "error TOC overflow" add -mminimal-toc to
14001 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14002 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14004 archive_cmds_F77=''
14005 hardcode_direct_F77=yes
14006 hardcode_libdir_separator_F77=':'
14007 link_all_deplibs_F77=yes
14009 if test "$GCC" = yes; then
14010 case $host_os in aix4.[012]|aix4.[012].*)
14011 # We only want to do this on AIX 4.2 and lower, the check
14012 # below for broken collect2 doesn't work under 4.3+
14013 collect2name=`${CC} -print-prog-name=collect2`
14014 if test -f "$collect2name" && \
14015 strings "$collect2name" | grep resolve_lib_name >/dev/null
14017 # We have reworked collect2
14018 hardcode_direct_F77=yes
14020 # We have old collect2
14021 hardcode_direct_F77=unsupported
14022 # It fails to find uninstalled libraries when the uninstalled
14023 # path is not listed in the libpath. Setting hardcode_minus_L
14024 # to unsupported forces relinking
14025 hardcode_minus_L_F77=yes
14026 hardcode_libdir_flag_spec_F77='-L$libdir'
14027 hardcode_libdir_separator_F77=
14031 shared_flag='-shared'
14032 if test "$aix_use_runtimelinking" = yes; then
14033 shared_flag="$shared_flag "'${wl}-G'
14037 if test "$host_cpu" = ia64; then
14038 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14039 # chokes on -Wl,-G. The following line is correct:
14042 if test "$aix_use_runtimelinking" = yes; then
14043 shared_flag='${wl}-G'
14045 shared_flag='${wl}-bM:SRE'
14050 # It seems that -bexpall does not export symbols beginning with
14051 # underscore (_), so it is better to generate a list of symbols to export.
14052 always_export_symbols_F77=yes
14053 if test "$aix_use_runtimelinking" = yes; then
14054 # Warning - without using the other runtime loading flags (-brtl),
14055 # -berok will link without error, but may produce a broken library.
14056 allow_undefined_flag_F77='-berok'
14057 # Determine the default libpath from the value encoded in an empty executable.
14058 cat > conftest.$ac_ext <<_ACEOF
14063 if ac_fn_f77_try_link "$LINENO"; then :
14065 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14067 # Check for a 64-bit object if we didn't find anything.
14068 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; }
14071 rm -f core conftest.err conftest.$ac_objext \
14072 conftest$ac_exeext conftest.$ac_ext
14073 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14075 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14076 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"
14078 if test "$host_cpu" = ia64; then
14079 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14080 allow_undefined_flag_F77="-z nodefs"
14081 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"
14083 # Determine the default libpath from the value encoded in an empty executable.
14084 cat > conftest.$ac_ext <<_ACEOF
14089 if ac_fn_f77_try_link "$LINENO"; then :
14091 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14093 # Check for a 64-bit object if we didn't find anything.
14094 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; }
14097 rm -f core conftest.err conftest.$ac_objext \
14098 conftest$ac_exeext conftest.$ac_ext
14099 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14101 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14102 # Warning - without using the other run time loading flags,
14103 # -berok will link without error, but may produce a broken library.
14104 no_undefined_flag_F77=' ${wl}-bernotok'
14105 allow_undefined_flag_F77=' ${wl}-berok'
14106 # Exported symbols can be pulled into shared objects from archives
14107 whole_archive_flag_spec_F77='$convenience'
14108 archive_cmds_need_lc_F77=yes
14109 # This is similar to how AIX traditionally builds its shared libraries.
14110 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'
14116 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)'
14117 hardcode_libdir_flag_spec_F77='-L$libdir'
14118 hardcode_minus_L_F77=yes
14119 # see comment about different semantics on the GNU ld section
14124 export_dynamic_flag_spec_F77=-rdynamic
14127 cygwin* | mingw* | pw32*)
14128 # When not using gcc, we currently assume that we are using
14129 # Microsoft Visual C++.
14130 # hardcode_libdir_flag_spec is actually meaningless, as there is
14131 # no search path for DLLs.
14132 hardcode_libdir_flag_spec_F77=' '
14133 allow_undefined_flag_F77=unsupported
14134 # Tell ltmain to make .lib files, not .a files.
14136 # Tell ltmain to make .dll files, not .so files.
14138 # FIXME: Setting linknames here is a bad hack.
14139 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14140 # The linker will automatically build a .lib file if we build a DLL.
14141 old_archive_From_new_cmds_F77='true'
14142 # FIXME: Should let the user specify the lib program.
14143 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14144 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14145 enable_shared_with_static_runtimes_F77=yes
14148 darwin* | rhapsody*)
14150 rhapsody* | darwin1.[012])
14151 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14154 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14155 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14157 case ${MACOSX_DEPLOYMENT_TARGET} in
14159 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14162 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14168 archive_cmds_need_lc_F77=no
14169 hardcode_direct_F77=no
14170 hardcode_automatic_F77=yes
14171 hardcode_shlibpath_var_F77=unsupported
14172 whole_archive_flag_spec_F77=''
14173 link_all_deplibs_F77=yes
14174 if test "$GCC" = yes ; then
14175 output_verbose_link_cmd='echo'
14176 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14177 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14178 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14179 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}'
14180 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}'
14182 case $cc_basename in
14184 output_verbose_link_cmd='echo'
14185 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14186 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14187 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14188 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}'
14189 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}'
14199 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14200 hardcode_libdir_flag_spec_F77='-L$libdir'
14201 hardcode_shlibpath_var_F77=no
14208 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14209 # support. Future versions do this automatically, but an explicit c++rt0.o
14210 # does not break anything, and helps significantly (at the cost of a little
14213 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14214 hardcode_libdir_flag_spec_F77='-R$libdir'
14215 hardcode_direct_F77=yes
14216 hardcode_shlibpath_var_F77=no
14219 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14221 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14222 hardcode_direct_F77=yes
14223 hardcode_minus_L_F77=yes
14224 hardcode_shlibpath_var_F77=no
14227 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14228 freebsd* | kfreebsd*-gnu | dragonfly*)
14229 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14230 hardcode_libdir_flag_spec_F77='-R$libdir'
14231 hardcode_direct_F77=yes
14232 hardcode_shlibpath_var_F77=no
14236 if test "$GCC" = yes; then
14237 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'
14239 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'
14241 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14242 hardcode_libdir_separator_F77=:
14243 hardcode_direct_F77=yes
14245 # hardcode_minus_L: Not really in the search PATH,
14246 # but as the default location of the library.
14247 hardcode_minus_L_F77=yes
14248 export_dynamic_flag_spec_F77='${wl}-E'
14252 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14253 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14255 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14257 if test "$with_gnu_ld" = no; then
14258 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14259 hardcode_libdir_separator_F77=:
14261 hardcode_direct_F77=yes
14262 export_dynamic_flag_spec_F77='${wl}-E'
14264 # hardcode_minus_L: Not really in the search PATH,
14265 # but as the default location of the library.
14266 hardcode_minus_L_F77=yes
14271 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14274 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14277 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14280 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14286 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14289 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14292 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14296 if test "$with_gnu_ld" = no; then
14297 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14298 hardcode_libdir_separator_F77=:
14302 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14303 hardcode_direct_F77=no
14304 hardcode_shlibpath_var_F77=no
14307 hardcode_direct_F77=yes
14308 export_dynamic_flag_spec_F77='${wl}-E'
14310 # hardcode_minus_L: Not really in the search PATH,
14311 # but as the default location of the library.
14312 hardcode_minus_L_F77=yes
14318 irix5* | irix6* | nonstopux*)
14319 if test "$GCC" = yes; then
14320 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'
14322 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'
14323 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14325 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14326 hardcode_libdir_separator_F77=:
14327 link_all_deplibs_F77=yes
14331 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14332 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14334 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14336 hardcode_libdir_flag_spec_F77='-R$libdir'
14337 hardcode_direct_F77=yes
14338 hardcode_shlibpath_var_F77=no
14342 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14343 hardcode_direct_F77=yes
14344 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14345 hardcode_libdir_separator_F77=:
14346 hardcode_shlibpath_var_F77=no
14350 hardcode_direct_F77=yes
14351 hardcode_shlibpath_var_F77=no
14352 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14353 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14354 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14355 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14356 export_dynamic_flag_spec_F77='${wl}-E'
14359 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14360 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14361 hardcode_libdir_flag_spec_F77='-R$libdir'
14364 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14365 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14372 hardcode_libdir_flag_spec_F77='-L$libdir'
14373 hardcode_minus_L_F77=yes
14374 allow_undefined_flag_F77=unsupported
14375 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'
14376 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14380 if test "$GCC" = yes; then
14381 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14382 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'
14384 allow_undefined_flag_F77=' -expect_unresolved \*'
14385 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'
14387 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14388 hardcode_libdir_separator_F77=:
14391 osf4* | osf5*) # as osf3* with the addition of -msym flag
14392 if test "$GCC" = yes; then
14393 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14394 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'
14395 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14397 allow_undefined_flag_F77=' -expect_unresolved \*'
14398 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'
14399 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~
14400 $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'
14402 # Both c and cxx compiler support -rpath directly
14403 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14405 hardcode_libdir_separator_F77=:
14409 no_undefined_flag_F77=' -z text'
14410 if test "$GCC" = yes; then
14412 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14413 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14414 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14417 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14418 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14419 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14421 hardcode_libdir_flag_spec_F77='-R$libdir'
14422 hardcode_shlibpath_var_F77=no
14424 solaris2.[0-5] | solaris2.[0-5].*) ;;
14426 # The compiler driver will combine linker options so we
14427 # cannot just pass the convience library names through
14428 # without $wl, iff we do not link with $LD.
14429 # Luckily, gcc supports the same syntax we need for Sun Studio.
14430 # Supported since Solaris 2.6 (maybe 2.5.1?)
14433 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14435 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' ;;
14438 link_all_deplibs_F77=yes
14442 if test "x$host_vendor" = xsequent; then
14443 # Use $CC to link under sequent, because it throws in some extra .o
14444 # files that make .init and .fini sections work.
14445 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14447 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14449 hardcode_libdir_flag_spec_F77='-L$libdir'
14450 hardcode_direct_F77=yes
14451 hardcode_minus_L_F77=yes
14452 hardcode_shlibpath_var_F77=no
14456 case $host_vendor in
14458 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14459 hardcode_direct_F77=yes # is this really true???
14462 ## LD is ld it makes a PLAMLIB
14463 ## CC just makes a GrossModule.
14464 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14465 reload_cmds_F77='$CC -r -o $output$reload_objs'
14466 hardcode_direct_F77=no
14469 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14470 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14473 runpath_var='LD_RUN_PATH'
14474 hardcode_shlibpath_var_F77=no
14478 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14479 hardcode_shlibpath_var_F77=no
14480 export_dynamic_flag_spec_F77='-Bexport'
14484 if test -d /usr/nec; then
14485 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14486 hardcode_shlibpath_var_F77=no
14487 runpath_var=LD_RUN_PATH
14488 hardcode_runpath_var=yes
14493 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14494 no_undefined_flag_F77='${wl}-z,text'
14495 archive_cmds_need_lc_F77=no
14496 hardcode_shlibpath_var_F77=no
14497 runpath_var='LD_RUN_PATH'
14499 if test "$GCC" = yes; then
14500 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14501 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14503 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14504 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14508 sysv5* | sco3.2v5* | sco5v6*)
14509 # Note: We can NOT use -z defs as we might desire, because we do not
14510 # link with -lc, and that would cause any symbols used from libc to
14511 # always be unresolved, which means just about no library would
14512 # ever link correctly. If we're not using GNU ld we use -z text
14513 # though, which does catch some bad symbols but isn't as heavy-handed
14515 no_undefined_flag_F77='${wl}-z,text'
14516 allow_undefined_flag_F77='${wl}-z,nodefs'
14517 archive_cmds_need_lc_F77=no
14518 hardcode_shlibpath_var_F77=no
14519 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14520 hardcode_libdir_separator_F77=':'
14521 link_all_deplibs_F77=yes
14522 export_dynamic_flag_spec_F77='${wl}-Bexport'
14523 runpath_var='LD_RUN_PATH'
14525 if test "$GCC" = yes; then
14526 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14527 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14529 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14530 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14535 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14536 hardcode_libdir_flag_spec_F77='-L$libdir'
14537 hardcode_shlibpath_var_F77=no
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14547 $as_echo "$ld_shlibs_F77" >&6; }
14548 test "$ld_shlibs_F77" = no && can_build_shared=no
14551 # Do we need to explicitly link libc?
14553 case "x$archive_cmds_need_lc_F77" in
14555 # Assume -lc should be added
14556 archive_cmds_need_lc_F77=yes
14558 if test "$enable_shared" = yes && test "$GCC" = yes; then
14559 case $archive_cmds_F77 in
14561 # FIXME: we may have to deal with multi-command sequences.
14564 # Test whether the compiler implicitly links with -lc since on some
14565 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14566 # to ld, don't add -lc before -lgcc.
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14568 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14570 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14573 (eval $ac_compile) 2>&5
14575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14576 test $ac_status = 0; } 2>conftest.err; then
14579 libobjs=conftest.$ac_objext
14581 wl=$lt_prog_compiler_wl_F77
14582 pic_flag=$lt_prog_compiler_pic_F77
14588 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14589 allow_undefined_flag_F77=
14590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14591 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14594 test $ac_status = 0; }
14596 archive_cmds_need_lc_F77=no
14598 archive_cmds_need_lc_F77=yes
14600 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14602 cat conftest.err 1>&5
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14606 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14614 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14615 library_names_spec=
14616 libname_spec='lib$name'
14620 postuninstall_cmds=
14624 shlibpath_overrides_runpath=unknown
14626 dynamic_linker="$host_os ld.so"
14627 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14628 if test "$GCC" = yes; then
14629 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14630 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14631 # if the path contains ";" then we assume it to be the separator
14632 # otherwise default to the standard path separator (i.e. ":") - it is
14633 # assumed that no part of a normal pathname contains ";" but that should
14634 # okay in the real world where ";" in dirpaths is itself problematic.
14635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14637 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14640 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14642 need_lib_prefix=unknown
14643 hardcode_into_libs=no
14645 # when you set need_version to no, make sure it does not cause -set_version
14646 # flags to be left without arguments
14647 need_version=unknown
14652 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14653 shlibpath_var=LIBPATH
14655 # AIX 3 has no versioning support, so we append a major version to the name.
14656 soname_spec='${libname}${release}${shared_ext}$major'
14663 hardcode_into_libs=yes
14664 if test "$host_cpu" = ia64; then
14665 # AIX 5 supports IA64
14666 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14667 shlibpath_var=LD_LIBRARY_PATH
14669 # With GCC up to 2.95.x, collect2 would create an import file
14670 # for dependence libraries. The import file would start with
14671 # the line `#! .'. This would cause the generated library to
14672 # depend on `.', always an invalid library. This was fixed in
14673 # development snapshots of GCC prior to 3.0.
14675 aix4 | aix4.[01] | aix4.[01].*)
14676 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14678 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14681 can_build_shared=no
14685 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14686 # soname into executable. Probably we can add versioning support to
14687 # collect2, so additional links can be useful in future.
14688 if test "$aix_use_runtimelinking" = yes; then
14689 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14690 # instead of lib<name>.a to let people know that these are not
14691 # typical AIX shared libraries.
14692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694 # We preserve .a as extension for shared libraries through AIX4.2
14695 # and later when we are not doing run time linking.
14696 library_names_spec='${libname}${release}.a $libname.a'
14697 soname_spec='${libname}${release}${shared_ext}$major'
14699 shlibpath_var=LIBPATH
14704 library_names_spec='$libname.ixlibrary $libname.a'
14705 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14706 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'
14710 library_names_spec='${libname}${shared_ext}'
14711 dynamic_linker="$host_os ld.so"
14712 shlibpath_var=LIBRARY_PATH
14718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14719 soname_spec='${libname}${release}${shared_ext}$major'
14720 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14721 shlibpath_var=LD_LIBRARY_PATH
14722 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14723 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14724 # the default ld.so.conf also contains /usr/contrib/lib and
14725 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14726 # libtool to hard-code these into programs
14729 cygwin* | mingw* | pw32*)
14730 version_type=windows
14735 case $GCC,$host_os in
14736 yes,cygwin* | yes,mingw* | yes,pw32*)
14737 library_names_spec='$libname.dll.a'
14738 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14739 postinstall_cmds='base_file=`basename \${file}`~
14740 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14741 dldir=$destdir/`dirname \$dlpath`~
14742 test -d \$dldir || mkdir -p \$dldir~
14743 $install_prog $dir/$dlname \$dldir/$dlname~
14744 chmod a+x \$dldir/$dlname'
14745 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14746 dlpath=$dir/\$dldll~
14748 shlibpath_overrides_runpath=yes
14752 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14753 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14754 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14757 # MinGW DLLs use traditional 'lib' prefix
14758 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14759 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14760 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14761 # It is most probably a Windows format PATH printed by
14762 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14763 # path with ; separators, and with drive letters. We can handle the
14764 # drive letters (cygwin fileutils understands them), so leave them,
14765 # especially as we might pass files found there to a mingw objdump,
14766 # which wouldn't understand a cygwinified path. Ahh.
14767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14773 # pw32 DLLs use 'pw' prefix rather than 'lib'
14774 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14780 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14783 dynamic_linker='Win32 ld.exe'
14784 # FIXME: first we should search . and the directory the executable is in
14788 darwin* | rhapsody*)
14789 dynamic_linker="$host_os dyld"
14790 version_type=darwin
14793 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14794 soname_spec='${libname}${release}${major}$shared_ext'
14795 shlibpath_overrides_runpath=yes
14796 shlibpath_var=DYLD_LIBRARY_PATH
14797 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14798 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14799 if test "$GCC" = yes; then
14800 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"`
14802 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14804 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14812 soname_spec='${libname}${release}${shared_ext}$major'
14813 shlibpath_var=LD_LIBRARY_PATH
14824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14825 soname_spec='${libname}${release}${shared_ext}$major'
14826 shlibpath_var=LD_LIBRARY_PATH
14827 shlibpath_overrides_runpath=no
14828 hardcode_into_libs=yes
14829 dynamic_linker='GNU ld.so'
14832 freebsd* | dragonfly*)
14833 # DragonFly does not have aout. When/if they implement a new
14834 # versioning mechanism, adjust this.
14835 if test -x /usr/bin/objformat; then
14836 objformat=`/usr/bin/objformat`
14839 freebsd[123]*) objformat=aout ;;
14840 *) objformat=elf ;;
14843 version_type=freebsd-$objformat
14844 case $version_type in
14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14855 shlibpath_var=LD_LIBRARY_PATH
14858 shlibpath_overrides_runpath=yes
14860 freebsd3.[01]* | freebsdelf3.[01]*)
14861 shlibpath_overrides_runpath=yes
14862 hardcode_into_libs=yes
14864 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14865 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14866 shlibpath_overrides_runpath=no
14867 hardcode_into_libs=yes
14869 freebsd*) # from 4.6 on
14870 shlibpath_overrides_runpath=yes
14871 hardcode_into_libs=yes
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14881 soname_spec='${libname}${release}${shared_ext}$major'
14882 shlibpath_var=LD_LIBRARY_PATH
14883 hardcode_into_libs=yes
14886 hpux9* | hpux10* | hpux11*)
14887 # Give a soname corresponding to the major version so that dld.sl refuses to
14888 # link against other versions.
14895 hardcode_into_libs=yes
14896 dynamic_linker="$host_os dld.so"
14897 shlibpath_var=LD_LIBRARY_PATH
14898 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14900 soname_spec='${libname}${release}${shared_ext}$major'
14901 if test "X$HPUX_IA64_MODE" = X32; then
14902 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14904 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14910 hardcode_into_libs=yes
14911 dynamic_linker="$host_os dld.sl"
14912 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14913 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14915 soname_spec='${libname}${release}${shared_ext}$major'
14916 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14917 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14921 dynamic_linker="$host_os dld.sl"
14922 shlibpath_var=SHLIB_PATH
14923 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14925 soname_spec='${libname}${release}${shared_ext}$major'
14928 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14929 postinstall_cmds='chmod 555 $lib'
14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14937 soname_spec='${libname}${release}${shared_ext}$major'
14938 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14939 shlibpath_var=LD_LIBRARY_PATH
14940 shlibpath_overrides_runpath=no
14941 hardcode_into_libs=yes
14944 irix5* | irix6* | nonstopux*)
14946 nonstopux*) version_type=nonstopux ;;
14948 if test "$lt_cv_prog_gnu_ld" = yes; then
14956 soname_spec='${libname}${release}${shared_ext}$major'
14957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14959 irix5* | nonstopux*)
14960 libsuff= shlibsuff=
14963 case $LD in # libtool.m4 will add one of these switches to LD
14964 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14965 libsuff= shlibsuff= libmagic=32-bit;;
14966 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14967 libsuff=32 shlibsuff=N32 libmagic=N32;;
14968 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14969 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14970 *) libsuff= shlibsuff= libmagic=never-match;;
14974 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14975 shlibpath_overrides_runpath=no
14976 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14977 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14978 hardcode_into_libs=yes
14981 # No shared lib support for Linux oldld, aout, or coff.
14982 linux*oldld* | linux*aout* | linux*coff*)
14986 # This must be Linux ELF.
14991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14992 soname_spec='${libname}${release}${shared_ext}$major'
14993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14994 shlibpath_var=LD_LIBRARY_PATH
14995 shlibpath_overrides_runpath=no
14996 # This implies no fast_install, which is unacceptable.
14997 # Some rework will be needed to allow for fast_install
14998 # before this can be enabled.
14999 hardcode_into_libs=yes
15001 # Append ld.so.conf contents to the search path
15002 if test -f /etc/ld.so.conf; then
15003 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' ' '`
15004 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15007 # We used to test for /lib/ld.so.1 and disable shared libraries on
15008 # powerpc, because MkLinux only supported shared libraries with the
15009 # GNU dynamic linker. Since this was broken with cross compilers,
15010 # most powerpc-linux boxes support dynamic linking these days and
15011 # people can always --disable-shared, the test was removed, and we
15012 # assume the GNU/Linux dynamic linker is in use.
15013 dynamic_linker='GNU/Linux ld.so'
15020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15021 soname_spec='${libname}${release}${shared_ext}$major'
15022 shlibpath_var=LD_LIBRARY_PATH
15023 shlibpath_overrides_runpath=no
15024 hardcode_into_libs=yes
15025 dynamic_linker='GNU ld.so'
15032 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15035 dynamic_linker='NetBSD (a.out) ld.so'
15037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15038 soname_spec='${libname}${release}${shared_ext}$major'
15039 dynamic_linker='NetBSD ld.elf_so'
15041 shlibpath_var=LD_LIBRARY_PATH
15042 shlibpath_overrides_runpath=yes
15043 hardcode_into_libs=yes
15048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15049 shlibpath_var=LD_LIBRARY_PATH
15050 shlibpath_overrides_runpath=yes
15057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15058 soname_spec='${libname}${release}${shared_ext}$major'
15059 shlibpath_var=LD_LIBRARY_PATH
15060 shlibpath_overrides_runpath=yes
15065 sys_lib_dlsearch_path_spec="/usr/lib"
15067 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15069 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15070 *) need_version=no ;;
15072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15073 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15074 shlibpath_var=LD_LIBRARY_PATH
15075 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15077 openbsd2.[89] | openbsd2.[89].*)
15078 shlibpath_overrides_runpath=no
15081 shlibpath_overrides_runpath=yes
15085 shlibpath_overrides_runpath=yes
15090 libname_spec='$name'
15093 library_names_spec='$libname${shared_ext} $libname.a'
15094 dynamic_linker='OS/2 ld.exe'
15095 shlibpath_var=LIBPATH
15098 osf3* | osf4* | osf5*)
15102 soname_spec='${libname}${release}${shared_ext}$major'
15103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15104 shlibpath_var=LD_LIBRARY_PATH
15105 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15106 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15114 soname_spec='${libname}${release}${shared_ext}$major'
15115 shlibpath_var=LD_LIBRARY_PATH
15116 shlibpath_overrides_runpath=yes
15117 hardcode_into_libs=yes
15118 # ldd complains unless libraries are executable
15119 postinstall_cmds='chmod +x $lib'
15124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15125 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15126 shlibpath_var=LD_LIBRARY_PATH
15127 shlibpath_overrides_runpath=yes
15128 if test "$with_gnu_ld" = yes; then
15136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15137 soname_spec='${libname}${release}${shared_ext}$major'
15138 shlibpath_var=LD_LIBRARY_PATH
15139 case $host_vendor in
15141 shlibpath_overrides_runpath=no
15143 export_dynamic_flag_spec='${wl}-Blargedynsym'
15144 runpath_var=LD_RUN_PATH
15152 shlibpath_overrides_runpath=no
15153 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15159 if test -d /usr/nec ;then
15161 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15162 soname_spec='$libname${shared_ext}.$major'
15163 shlibpath_var=LD_LIBRARY_PATH
15167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15168 version_type=freebsd-elf
15171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15172 soname_spec='${libname}${release}${shared_ext}$major'
15173 shlibpath_var=LD_LIBRARY_PATH
15174 hardcode_into_libs=yes
15175 if test "$with_gnu_ld" = yes; then
15176 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15177 shlibpath_overrides_runpath=no
15179 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15180 shlibpath_overrides_runpath=yes
15183 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15187 sys_lib_dlsearch_path_spec='/usr/lib'
15192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15193 soname_spec='${libname}${release}${shared_ext}$major'
15194 shlibpath_var=LD_LIBRARY_PATH
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15202 $as_echo "$dynamic_linker" >&6; }
15203 test "$dynamic_linker" = no && can_build_shared=no
15205 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15206 if test "$GCC" = yes; then
15207 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15211 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15212 hardcode_action_F77=
15213 if test -n "$hardcode_libdir_flag_spec_F77" || \
15214 test -n "$runpath_var_F77" || \
15215 test "X$hardcode_automatic_F77" = "Xyes" ; then
15217 # We can hardcode non-existant directories.
15218 if test "$hardcode_direct_F77" != no &&
15219 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15220 # have to relink, otherwise we might link with an installed library
15221 # when we should be linking with a yet-to-be-installed one
15222 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15223 test "$hardcode_minus_L_F77" != no; then
15224 # Linking always hardcodes the temporary library directory.
15225 hardcode_action_F77=relink
15227 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15228 hardcode_action_F77=immediate
15231 # We cannot hardcode anything, or else we can only hardcode existing
15233 hardcode_action_F77=unsupported
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15236 $as_echo "$hardcode_action_F77" >&6; }
15238 if test "$hardcode_action_F77" = relink; then
15239 # Fast installation is not supported
15240 enable_fast_install=no
15241 elif test "$shlibpath_overrides_runpath" = yes ||
15242 test "$enable_shared" = no; then
15243 # Fast installation is not necessary
15244 enable_fast_install=needless
15248 # The else clause should only fire when bootstrapping the
15249 # libtool distribution, otherwise you forgot to ship ltmain.sh
15250 # with your package, and you will get complaints that there are
15251 # no rules to generate ltmain.sh.
15252 if test -f "$ltmain"; then
15253 # See if we are running on zsh, and set the options which allow our commands through
15254 # without removal of \ escapes.
15255 if test -n "${ZSH_VERSION+set}" ; then
15256 setopt NO_GLOB_SUBST
15258 # Now quote all the things that may contain metacharacters while being
15259 # careful not to overquote the AC_SUBSTed values. We take copies of the
15260 # variables and quote the copies for generation of the libtool script.
15261 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15263 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15264 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15265 deplibs_check_method reload_flag reload_cmds need_locks \
15266 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15267 lt_cv_sys_global_symbol_to_c_name_address \
15268 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15269 old_postinstall_cmds old_postuninstall_cmds \
15273 lt_prog_compiler_wl_F77 \
15274 lt_prog_compiler_pic_F77 \
15275 lt_prog_compiler_static_F77 \
15276 lt_prog_compiler_no_builtin_flag_F77 \
15277 export_dynamic_flag_spec_F77 \
15278 thread_safe_flag_spec_F77 \
15279 whole_archive_flag_spec_F77 \
15280 enable_shared_with_static_runtimes_F77 \
15281 old_archive_cmds_F77 \
15282 old_archive_from_new_cmds_F77 \
15283 predep_objects_F77 \
15284 postdep_objects_F77 \
15287 compiler_lib_search_path_F77 \
15289 archive_expsym_cmds_F77 \
15290 postinstall_cmds_F77 \
15291 postuninstall_cmds_F77 \
15292 old_archive_from_expsyms_cmds_F77 \
15293 allow_undefined_flag_F77 \
15294 no_undefined_flag_F77 \
15295 export_symbols_cmds_F77 \
15296 hardcode_libdir_flag_spec_F77 \
15297 hardcode_libdir_flag_spec_ld_F77 \
15298 hardcode_libdir_separator_F77 \
15299 hardcode_automatic_F77 \
15301 module_expsym_cmds_F77 \
15302 lt_cv_prog_compiler_c_o_F77 \
15303 exclude_expsyms_F77 \
15304 include_expsyms_F77; do
15307 old_archive_cmds_F77 | \
15308 old_archive_from_new_cmds_F77 | \
15309 archive_cmds_F77 | \
15310 archive_expsym_cmds_F77 | \
15311 module_cmds_F77 | \
15312 module_expsym_cmds_F77 | \
15313 old_archive_from_expsyms_cmds_F77 | \
15314 export_symbols_cmds_F77 | \
15315 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15316 postinstall_cmds | postuninstall_cmds | \
15317 old_postinstall_cmds | old_postuninstall_cmds | \
15318 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15319 # Double-quote double-evaled strings.
15320 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15323 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15329 *'\$0 --fallback-echo"')
15330 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15336 cat <<__EOF__ >> "$cfgfile"
15337 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15339 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15341 # Shell to use when invoking shell scripts.
15344 # Whether or not to build shared libraries.
15345 build_libtool_libs=$enable_shared
15347 # Whether or not to build static libraries.
15348 build_old_libs=$enable_static
15350 # Whether or not to add -lc for building shared libraries.
15351 build_libtool_need_lc=$archive_cmds_need_lc_F77
15353 # Whether or not to disallow shared libs when runtime libs are static
15354 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15356 # Whether or not to optimize for fast installation.
15357 fast_install=$enable_fast_install
15360 host_alias=$host_alias
15364 # The build system.
15365 build_alias=$build_alias
15369 # An echo program that does not interpret backslashes.
15374 AR_FLAGS=$lt_AR_FLAGS
15379 # LTCC compiler flags.
15380 LTCFLAGS=$lt_LTCFLAGS
15382 # A language-specific compiler.
15383 CC=$lt_compiler_F77
15385 # Is the compiler the GNU C compiler?
15391 # The linker used to build libraries.
15394 # Whether we need hard or soft links.
15397 # A BSD-compatible nm program.
15400 # A symbol stripping program
15403 # Used to examine libraries when file_magic_cmd begins "file"
15404 MAGIC_CMD=$MAGIC_CMD
15406 # Used on cygwin: DLL creation program.
15409 # Used on cygwin: object dumper.
15412 # Used on cygwin: assembler.
15415 # The name of the directory that contains temporary libtool files.
15418 # How to create reloadable object files.
15419 reload_flag=$lt_reload_flag
15420 reload_cmds=$lt_reload_cmds
15422 # How to pass a linker flag through the compiler.
15423 wl=$lt_lt_prog_compiler_wl_F77
15425 # Object file suffix (normally "o").
15426 objext="$ac_objext"
15428 # Old archive suffix (normally "a").
15431 # Shared library suffix (normally ".so").
15432 shrext_cmds='$shrext_cmds'
15434 # Executable file suffix (normally "").
15437 # Additional compiler flags for building library objects.
15438 pic_flag=$lt_lt_prog_compiler_pic_F77
15441 # What is the maximum length of a command?
15442 max_cmd_len=$lt_cv_sys_max_cmd_len
15444 # Does compiler simultaneously support -c and -o options?
15445 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15447 # Must we lock files when doing compilation?
15448 need_locks=$lt_need_locks
15450 # Do we need the lib prefix for modules?
15451 need_lib_prefix=$need_lib_prefix
15453 # Do we need a version for libraries?
15454 need_version=$need_version
15456 # Whether dlopen is supported.
15457 dlopen_support=$enable_dlopen
15459 # Whether dlopen of programs is supported.
15460 dlopen_self=$enable_dlopen_self
15462 # Whether dlopen of statically linked programs is supported.
15463 dlopen_self_static=$enable_dlopen_self_static
15465 # Compiler flag to prevent dynamic linking.
15466 link_static_flag=$lt_lt_prog_compiler_static_F77
15468 # Compiler flag to turn off builtin functions.
15469 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15471 # Compiler flag to allow reflexive dlopens.
15472 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15474 # Compiler flag to generate shared objects directly from archives.
15475 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15477 # Compiler flag to generate thread-safe objects.
15478 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15480 # Library versioning type.
15481 version_type=$version_type
15483 # Format of library name prefix.
15484 libname_spec=$lt_libname_spec
15486 # List of archive names. First name is the real one, the rest are links.
15487 # The last name is the one that the linker finds with -lNAME.
15488 library_names_spec=$lt_library_names_spec
15490 # The coded name of the library, if different from the real name.
15491 soname_spec=$lt_soname_spec
15493 # Commands used to build and install an old-style archive.
15495 old_archive_cmds=$lt_old_archive_cmds_F77
15496 old_postinstall_cmds=$lt_old_postinstall_cmds
15497 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15499 # Create an old-style archive from a shared archive.
15500 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15502 # Create a temporary old-style archive to link instead of a shared archive.
15503 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15505 # Commands used to build and install a shared archive.
15506 archive_cmds=$lt_archive_cmds_F77
15507 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15508 postinstall_cmds=$lt_postinstall_cmds
15509 postuninstall_cmds=$lt_postuninstall_cmds
15511 # Commands used to build a loadable module (assumed same as above if empty)
15512 module_cmds=$lt_module_cmds_F77
15513 module_expsym_cmds=$lt_module_expsym_cmds_F77
15515 # Commands to strip libraries.
15516 old_striplib=$lt_old_striplib
15517 striplib=$lt_striplib
15519 # Dependencies to place before the objects being linked to create a
15521 predep_objects=$lt_predep_objects_F77
15523 # Dependencies to place after the objects being linked to create a
15525 postdep_objects=$lt_postdep_objects_F77
15527 # Dependencies to place before the objects being linked to create a
15529 predeps=$lt_predeps_F77
15531 # Dependencies to place after the objects being linked to create a
15533 postdeps=$lt_postdeps_F77
15535 # The library search path used internally by the compiler when linking
15536 # a shared library.
15537 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15539 # Method to check whether dependent libraries are shared objects.
15540 deplibs_check_method=$lt_deplibs_check_method
15542 # Command to use when deplibs_check_method == file_magic.
15543 file_magic_cmd=$lt_file_magic_cmd
15545 # Flag that allows shared libraries with undefined symbols to be built.
15546 allow_undefined_flag=$lt_allow_undefined_flag_F77
15548 # Flag that forces no undefined symbols.
15549 no_undefined_flag=$lt_no_undefined_flag_F77
15551 # Commands used to finish a libtool library installation in a directory.
15552 finish_cmds=$lt_finish_cmds
15554 # Same as above, but a single script fragment to be evaled but not shown.
15555 finish_eval=$lt_finish_eval
15557 # Take the output of nm and produce a listing of raw symbols and C names.
15558 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15560 # Transform the output of nm in a proper C declaration
15561 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15563 # Transform the output of nm in a C name address pair
15564 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15566 # This is the shared library runtime path variable.
15567 runpath_var=$runpath_var
15569 # This is the shared library path variable.
15570 shlibpath_var=$shlibpath_var
15572 # Is shlibpath searched before the hard-coded library search path?
15573 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15575 # How to hardcode a shared library path into an executable.
15576 hardcode_action=$hardcode_action_F77
15578 # Whether we should hardcode library paths into libraries.
15579 hardcode_into_libs=$hardcode_into_libs
15581 # Flag to hardcode \$libdir into a binary during linking.
15582 # This must work even if \$libdir does not exist.
15583 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15585 # If ld is used when linking, flag to hardcode \$libdir into
15586 # a binary during linking. This must work even if \$libdir does
15588 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15590 # Whether we need a single -rpath flag with a separated argument.
15591 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15593 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15594 # resulting binary.
15595 hardcode_direct=$hardcode_direct_F77
15597 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15598 # resulting binary.
15599 hardcode_minus_L=$hardcode_minus_L_F77
15601 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15602 # the resulting binary.
15603 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15605 # Set to yes if building a shared library automatically hardcodes DIR into the library
15606 # and all subsequent libraries and executables linked against it.
15607 hardcode_automatic=$hardcode_automatic_F77
15609 # Variables whose values should be saved in libtool wrapper scripts and
15610 # restored at relink time.
15611 variables_saved_for_relink="$variables_saved_for_relink"
15613 # Whether libtool must link a program against all its dependency libraries.
15614 link_all_deplibs=$link_all_deplibs_F77
15616 # Compile-time system search path for libraries
15617 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15619 # Run-time system search path for libraries
15620 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15622 # Fix the shell variable \$srcfile for the compiler.
15623 fix_srcfile_path="$fix_srcfile_path_F77"
15625 # Set to yes if exported symbols are required.
15626 always_export_symbols=$always_export_symbols_F77
15628 # The commands to list exported symbols.
15629 export_symbols_cmds=$lt_export_symbols_cmds_F77
15631 # The commands to extract the exported symbol list from a shared archive.
15632 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15634 # Symbols that should not be listed in the preloaded symbols.
15635 exclude_expsyms=$lt_exclude_expsyms_F77
15637 # Symbols that must always be exported.
15638 include_expsyms=$lt_include_expsyms_F77
15640 # ### END LIBTOOL TAG CONFIG: $tagname
15646 # If there is no Makefile yet, we rely on a make rule to execute
15647 # `config.status --recheck' to rerun these tests and create the
15648 # libtool script then.
15649 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15650 if test -f "$ltmain_in"; then
15651 test -f Makefile && make "$ltmain"
15657 ac_cpp='$CPP $CPPFLAGS'
15658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15670 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15673 # Source file extension for Java test sources.
15676 # Object file extension for compiled Java test sources.
15680 # Code to be used in simple compile tests
15681 lt_simple_compile_test_code="class foo {}\n"
15683 # Code to be used in simple link tests
15684 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15686 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15688 # If no C compiler was specified, use CC.
15691 # If no C compiler flags were specified, use CFLAGS.
15692 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15694 # Allow CC to be a program name with arguments.
15698 # save warnings/boilerplate of simple test code
15699 ac_outfile=conftest.$ac_objext
15700 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15701 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15702 _lt_compiler_boilerplate=`cat conftest.err`
15705 ac_outfile=conftest.$ac_objext
15706 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15707 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15708 _lt_linker_boilerplate=`cat conftest.err`
15712 # Allow CC to be a program name with arguments.
15717 for cc_temp in $compiler""; do
15719 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15720 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15725 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15728 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15729 archive_cmds_need_lc_GCJ=no
15731 old_archive_cmds_GCJ=$old_archive_cmds
15734 lt_prog_compiler_no_builtin_flag_GCJ=
15736 if test "$GCC" = yes; then
15737 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15741 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15742 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15743 $as_echo_n "(cached) " >&6
15745 lt_cv_prog_compiler_rtti_exceptions=no
15746 ac_outfile=conftest.$ac_objext
15747 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15748 lt_compiler_flag="-fno-rtti -fno-exceptions"
15749 # Insert the option either (1) after the last *FLAGS variable, or
15750 # (2) before a word containing "conftest.", or (3) at the end.
15751 # Note that $ac_compile itself does not contain backslashes and begins
15752 # with a dollar sign (not a hyphen), so the echo should work correctly.
15753 # The option is referenced via a variable to avoid confusing sed.
15754 lt_compile=`echo "$ac_compile" | $SED \
15755 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15756 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15757 -e 's:$: $lt_compiler_flag:'`
15758 (eval echo "\"\$as_me:15758: $lt_compile\"" >&5)
15759 (eval "$lt_compile" 2>conftest.err)
15761 cat conftest.err >&5
15762 echo "$as_me:15762: \$? = $ac_status" >&5
15763 if (exit $ac_status) && test -s "$ac_outfile"; then
15764 # The compiler can only warn and ignore the option if not recognized
15765 # So say no if there are warnings other than the usual output.
15766 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15767 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15768 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15769 lt_cv_prog_compiler_rtti_exceptions=yes
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15776 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15778 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15779 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15786 lt_prog_compiler_wl_GCJ=
15787 lt_prog_compiler_pic_GCJ=
15788 lt_prog_compiler_static_GCJ=
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15791 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15793 if test "$GCC" = yes; then
15794 lt_prog_compiler_wl_GCJ='-Wl,'
15795 lt_prog_compiler_static_GCJ='-static'
15799 # All AIX code is PIC.
15800 if test "$host_cpu" = ia64; then
15801 # AIX 5 now supports IA64 processor
15802 lt_prog_compiler_static_GCJ='-Bstatic'
15807 # FIXME: we need at least 68020 code to build shared libraries, but
15808 # adding the `-m68020' flag to GCC prevents building anything better,
15810 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15813 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15814 # PIC is the default for these OSes.
15817 mingw* | pw32* | os2*)
15818 # This hack is so that the source file can tell whether it is being
15819 # built for inclusion in a dll (and should export symbols for example).
15820 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15823 darwin* | rhapsody*)
15824 # PIC is the default on this platform
15825 # Common symbols not allowed in MH_DYLIB files
15826 lt_prog_compiler_pic_GCJ='-fno-common'
15830 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15831 # Instead, we relocate shared libraries at runtime.
15835 # Just because we use GCC doesn't mean we suddenly get shared libraries
15836 # on systems that don't support them.
15837 lt_prog_compiler_can_build_shared_GCJ=no
15842 if test -d /usr/nec; then
15843 lt_prog_compiler_pic_GCJ=-Kconform_pic
15848 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15849 # not for PA HP-UX.
15855 lt_prog_compiler_pic_GCJ='-fPIC'
15861 lt_prog_compiler_pic_GCJ='-fPIC'
15865 # PORTME Check for flag to pass linker flags through the system compiler.
15868 lt_prog_compiler_wl_GCJ='-Wl,'
15869 if test "$host_cpu" = ia64; then
15870 # AIX 5 now supports IA64 processor
15871 lt_prog_compiler_static_GCJ='-Bstatic'
15873 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15877 # PIC is the default on this platform
15878 # Common symbols not allowed in MH_DYLIB files
15879 case $cc_basename in
15881 lt_prog_compiler_pic_GCJ='-qnocommon'
15882 lt_prog_compiler_wl_GCJ='-Wl,'
15887 mingw* | pw32* | os2*)
15888 # This hack is so that the source file can tell whether it is being
15889 # built for inclusion in a dll (and should export symbols for example).
15890 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15893 hpux9* | hpux10* | hpux11*)
15894 lt_prog_compiler_wl_GCJ='-Wl,'
15895 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15896 # not for PA HP-UX.
15902 lt_prog_compiler_pic_GCJ='+Z'
15905 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15906 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15909 irix5* | irix6* | nonstopux*)
15910 lt_prog_compiler_wl_GCJ='-Wl,'
15911 # PIC (with -KPIC) is the default.
15912 lt_prog_compiler_static_GCJ='-non_shared'
15916 lt_prog_compiler_pic_GCJ='-KPIC'
15917 lt_prog_compiler_static_GCJ='-Bstatic'
15921 case $cc_basename in
15923 lt_prog_compiler_wl_GCJ='-Wl,'
15924 lt_prog_compiler_pic_GCJ='-KPIC'
15925 lt_prog_compiler_static_GCJ='-static'
15927 pgcc* | pgf77* | pgf90* | pgf95*)
15928 # Portland Group compilers (*not* the Pentium gcc compiler,
15929 # which looks to be a dead project)
15930 lt_prog_compiler_wl_GCJ='-Wl,'
15931 lt_prog_compiler_pic_GCJ='-fpic'
15932 lt_prog_compiler_static_GCJ='-Bstatic'
15935 lt_prog_compiler_wl_GCJ='-Wl,'
15936 # All Alpha code is PIC.
15937 lt_prog_compiler_static_GCJ='-non_shared'
15942 osf3* | osf4* | osf5*)
15943 lt_prog_compiler_wl_GCJ='-Wl,'
15944 # All OSF/1 code is PIC.
15945 lt_prog_compiler_static_GCJ='-non_shared'
15949 lt_prog_compiler_pic_GCJ='-KPIC'
15950 lt_prog_compiler_static_GCJ='-Bstatic'
15951 case $cc_basename in
15952 f77* | f90* | f95*)
15953 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15955 lt_prog_compiler_wl_GCJ='-Wl,';;
15960 lt_prog_compiler_wl_GCJ='-Qoption ld '
15961 lt_prog_compiler_pic_GCJ='-PIC'
15962 lt_prog_compiler_static_GCJ='-Bstatic'
15965 sysv4 | sysv4.2uw2* | sysv4.3*)
15966 lt_prog_compiler_wl_GCJ='-Wl,'
15967 lt_prog_compiler_pic_GCJ='-KPIC'
15968 lt_prog_compiler_static_GCJ='-Bstatic'
15972 if test -d /usr/nec ;then
15973 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15974 lt_prog_compiler_static_GCJ='-Bstatic'
15978 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15979 lt_prog_compiler_wl_GCJ='-Wl,'
15980 lt_prog_compiler_pic_GCJ='-KPIC'
15981 lt_prog_compiler_static_GCJ='-Bstatic'
15985 lt_prog_compiler_wl_GCJ='-Wl,'
15986 lt_prog_compiler_can_build_shared_GCJ=no
15990 lt_prog_compiler_pic_GCJ='-pic'
15991 lt_prog_compiler_static_GCJ='-Bstatic'
15995 lt_prog_compiler_can_build_shared_GCJ=no
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16001 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16004 # Check to make sure the PIC flag actually works.
16006 if test -n "$lt_prog_compiler_pic_GCJ"; then
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16009 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16010 if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
16011 $as_echo_n "(cached) " >&6
16013 lt_prog_compiler_pic_works_GCJ=no
16014 ac_outfile=conftest.$ac_objext
16015 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16016 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16017 # Insert the option either (1) after the last *FLAGS variable, or
16018 # (2) before a word containing "conftest.", or (3) at the end.
16019 # Note that $ac_compile itself does not contain backslashes and begins
16020 # with a dollar sign (not a hyphen), so the echo should work correctly.
16021 # The option is referenced via a variable to avoid confusing sed.
16022 lt_compile=`echo "$ac_compile" | $SED \
16023 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16025 -e 's:$: $lt_compiler_flag:'`
16026 (eval echo "\"\$as_me:16026: $lt_compile\"" >&5)
16027 (eval "$lt_compile" 2>conftest.err)
16029 cat conftest.err >&5
16030 echo "$as_me:16030: \$? = $ac_status" >&5
16031 if (exit $ac_status) && test -s "$ac_outfile"; then
16032 # The compiler can only warn and ignore the option if not recognized
16033 # So say no if there are warnings other than the usual output.
16034 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16035 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16036 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16037 lt_prog_compiler_pic_works_GCJ=yes
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
16044 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
16046 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16047 case $lt_prog_compiler_pic_GCJ in
16049 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16052 lt_prog_compiler_pic_GCJ=
16053 lt_prog_compiler_can_build_shared_GCJ=no
16058 # For platforms which do not support PIC, -DPIC is meaningless:
16060 lt_prog_compiler_pic_GCJ=
16063 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16068 # Check to make sure the static flag actually works.
16070 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16072 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16073 if ${lt_prog_compiler_static_works_GCJ+:} false; then :
16074 $as_echo_n "(cached) " >&6
16076 lt_prog_compiler_static_works_GCJ=no
16077 save_LDFLAGS="$LDFLAGS"
16078 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16079 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16080 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16081 # The linker can only warn and ignore the option if not recognized
16082 # So say no if there are warnings
16083 if test -s conftest.err; then
16084 # Append any errors to the config.log.
16085 cat conftest.err 1>&5
16086 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16087 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16088 if diff conftest.exp conftest.er2 >/dev/null; then
16089 lt_prog_compiler_static_works_GCJ=yes
16092 lt_prog_compiler_static_works_GCJ=yes
16096 LDFLAGS="$save_LDFLAGS"
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_GCJ" >&5
16100 $as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
16102 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16105 lt_prog_compiler_static_GCJ=
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16110 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16111 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16112 $as_echo_n "(cached) " >&6
16114 lt_cv_prog_compiler_c_o_GCJ=no
16115 $rm -r conftest 2>/dev/null
16119 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16121 lt_compiler_flag="-o out/conftest2.$ac_objext"
16122 # Insert the option either (1) after the last *FLAGS variable, or
16123 # (2) before a word containing "conftest.", or (3) at the end.
16124 # Note that $ac_compile itself does not contain backslashes and begins
16125 # with a dollar sign (not a hyphen), so the echo should work correctly.
16126 lt_compile=`echo "$ac_compile" | $SED \
16127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16129 -e 's:$: $lt_compiler_flag:'`
16130 (eval echo "\"\$as_me:16130: $lt_compile\"" >&5)
16131 (eval "$lt_compile" 2>out/conftest.err)
16133 cat out/conftest.err >&5
16134 echo "$as_me:16134: \$? = $ac_status" >&5
16135 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16137 # The compiler can only warn and ignore the option if not recognized
16138 # So say no if there are warnings
16139 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16140 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16141 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16142 lt_cv_prog_compiler_c_o_GCJ=yes
16147 # SGI C++ compiler will create directory out/ii_files/ for
16148 # template instantiation
16149 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16150 $rm out/* && rmdir out
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16157 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16160 hard_links="nottested"
16161 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16162 # do not overwrite the value of need_locks provided by the user
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16164 $as_echo_n "checking if we can lock with hard links... " >&6; }
16167 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16169 ln conftest.a conftest.b 2>&5 || hard_links=no
16170 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16172 $as_echo "$hard_links" >&6; }
16173 if test "$hard_links" = no; then
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16175 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16183 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16186 allow_undefined_flag_GCJ=
16187 enable_shared_with_static_runtimes_GCJ=no
16189 archive_expsym_cmds_GCJ=
16190 old_archive_From_new_cmds_GCJ=
16191 old_archive_from_expsyms_cmds_GCJ=
16192 export_dynamic_flag_spec_GCJ=
16193 whole_archive_flag_spec_GCJ=
16194 thread_safe_flag_spec_GCJ=
16195 hardcode_libdir_flag_spec_GCJ=
16196 hardcode_libdir_flag_spec_ld_GCJ=
16197 hardcode_libdir_separator_GCJ=
16198 hardcode_direct_GCJ=no
16199 hardcode_minus_L_GCJ=no
16200 hardcode_shlibpath_var_GCJ=unsupported
16201 link_all_deplibs_GCJ=unknown
16202 hardcode_automatic_GCJ=no
16204 module_expsym_cmds_GCJ=
16205 always_export_symbols_GCJ=no
16206 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16207 # include_expsyms should be a list of space-separated symbols to be *always*
16208 # included in the symbol list
16209 include_expsyms_GCJ=
16210 # exclude_expsyms can be an extended regexp of symbols to exclude
16211 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16212 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16213 # as well as any symbol that contains `d'.
16214 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16215 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16216 # platforms (ab)use it in PIC code, but their linkers get confused if
16217 # the symbol is explicitly referenced. Since portable code cannot
16218 # rely on this symbol name, it's probably fine to never include it in
16219 # preloaded symbol tables.
16220 extract_expsyms_cmds=
16221 # Just being paranoid about ensuring that cc_basename is set.
16222 for cc_temp in $compiler""; do
16224 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16225 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16230 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16233 cygwin* | mingw* | pw32*)
16234 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16235 # When not using gcc, we currently assume that we are using
16236 # Microsoft Visual C++.
16237 if test "$GCC" != yes; then
16242 # we just hope/assume this is gcc and not c89 (= MSVC++)
16251 if test "$with_gnu_ld" = yes; then
16252 # If archive_cmds runs LD, not CC, wlarc should be empty
16255 # Set some defaults for GNU ld with shared library support. These
16256 # are reset later if shared libraries are not supported. Putting them
16257 # here allows them to be overridden if necessary.
16258 runpath_var=LD_RUN_PATH
16259 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16260 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16261 # ancient GNU ld didn't support --whole-archive et. al.
16262 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16263 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16265 whole_archive_flag_spec_GCJ=
16267 supports_anon_versioning=no
16268 case `$LD -v 2>/dev/null` in
16269 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16270 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16271 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16272 *\ 2.11.*) ;; # other 2.11 versions
16273 *) supports_anon_versioning=yes ;;
16276 # See if GNU ld supports shared libraries.
16278 aix3* | aix4* | aix5*)
16279 # On AIX/PPC, the GNU linker is very broken
16280 if test "$host_cpu" != ia64; then
16284 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16285 *** to be unable to reliably create shared libraries on AIX.
16286 *** Therefore, libtool is disabling shared libraries support. If you
16287 *** really care for shared libraries, you may want to modify your PATH
16288 *** so that a non-GNU linker is found, and then restart.
16295 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)'
16296 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16297 hardcode_minus_L_GCJ=yes
16299 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16300 # that the semantics of dynamic libraries on AmigaOS, at least up
16301 # to version 4, is to share data among multiple programs linked
16302 # with the same dynamic library. Since this doesn't match the
16303 # behavior of shared libraries on other platforms, we can't use
16309 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16310 allow_undefined_flag_GCJ=unsupported
16311 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16312 # support --undefined. This deserves some investigation. FIXME
16313 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16319 cygwin* | mingw* | pw32*)
16320 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16321 # as there is no search path for DLLs.
16322 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16323 allow_undefined_flag_GCJ=unsupported
16324 always_export_symbols_GCJ=no
16325 enable_shared_with_static_runtimes_GCJ=yes
16326 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16328 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16329 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16330 # If the export-symbols file already is a .def file (1st line
16331 # is EXPORTS), use it as is; otherwise, prepend...
16332 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16333 cp $export_symbols $output_objdir/$soname.def;
16335 echo EXPORTS > $output_objdir/$soname.def;
16336 cat $export_symbols >> $output_objdir/$soname.def;
16338 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16345 hardcode_direct_GCJ=no
16346 hardcode_shlibpath_var_GCJ=no
16347 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16348 export_dynamic_flag_spec_GCJ='${wl}-E'
16349 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16350 # Instead, shared libraries are loaded at an image base (0x10000000 by
16351 # default) and relocated if they conflict, which is a slow very memory
16352 # consuming and fragmenting process. To avoid this, we pick a random,
16353 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16354 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16355 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'
16356 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'
16360 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16362 case $cc_basename,$host_cpu in
16363 pgcc*) # Portland Group C compiler
16364 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'
16365 tmp_addflag=' $pic_flag'
16367 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16368 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'
16369 tmp_addflag=' $pic_flag -Mnomain' ;;
16370 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16371 tmp_addflag=' -i_dynamic' ;;
16372 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16373 tmp_addflag=' -i_dynamic -nofor_main' ;;
16374 ifc* | ifort*) # Intel Fortran compiler
16375 tmp_addflag=' -nofor_main' ;;
16377 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16379 if test $supports_anon_versioning = yes; then
16380 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16381 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16382 $echo "local: *; };" >> $output_objdir/$libname.ver~
16383 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16391 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16392 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16395 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16396 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16401 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16405 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16406 *** create shared libraries on Solaris systems. Therefore, libtool
16407 *** is disabling shared libraries support. We urge you to upgrade GNU
16408 *** binutils to release 2.9.1 or newer. Another option is to modify
16409 *** your PATH or compiler configuration so that the native linker is
16410 *** used, and then restart.
16413 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16414 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16415 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16421 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16422 case `$LD -v 2>&1` in
16423 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16427 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16428 *** reliably create shared libraries on SCO systems. Therefore, libtool
16429 *** is disabling shared libraries support. We urge you to upgrade GNU
16430 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16431 *** your PATH or compiler configuration so that the native linker is
16432 *** used, and then restart.
16437 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16438 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16439 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16440 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16449 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16451 hardcode_direct_GCJ=yes
16452 hardcode_shlibpath_var_GCJ=no
16456 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16457 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16458 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16465 if test "$ld_shlibs_GCJ" = no; then
16467 hardcode_libdir_flag_spec_GCJ=
16468 export_dynamic_flag_spec_GCJ=
16469 whole_archive_flag_spec_GCJ=
16472 # PORTME fill in a description of your system's linker (not GNU ld)
16475 allow_undefined_flag_GCJ=unsupported
16476 always_export_symbols_GCJ=yes
16477 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'
16478 # Note: this linker hardcodes the directories in LIBPATH if there
16479 # are no directories specified by -L.
16480 hardcode_minus_L_GCJ=yes
16481 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16482 # Neither direct hardcoding nor static linking is supported with a
16484 hardcode_direct_GCJ=unsupported
16489 if test "$host_cpu" = ia64; then
16490 # On IA64, the linker does run time linking by default, so we don't
16491 # have to do anything special.
16492 aix_use_runtimelinking=no
16493 exp_sym_flag='-Bexport'
16496 # If we're using GNU nm, then we don't want the "-C" option.
16497 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16498 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16499 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'
16501 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'
16503 aix_use_runtimelinking=no
16505 # Test if we are trying to use run time linking or normal
16506 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16507 # need to do runtime linking.
16508 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16509 for ld_flag in $LDFLAGS; do
16510 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16511 aix_use_runtimelinking=yes
16518 exp_sym_flag='-bexport'
16519 no_entry_flag='-bnoentry'
16522 # When large executables or shared objects are built, AIX ld can
16523 # have problems creating the table of contents. If linking a library
16524 # or program results in "error TOC overflow" add -mminimal-toc to
16525 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16526 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16528 archive_cmds_GCJ=''
16529 hardcode_direct_GCJ=yes
16530 hardcode_libdir_separator_GCJ=':'
16531 link_all_deplibs_GCJ=yes
16533 if test "$GCC" = yes; then
16534 case $host_os in aix4.[012]|aix4.[012].*)
16535 # We only want to do this on AIX 4.2 and lower, the check
16536 # below for broken collect2 doesn't work under 4.3+
16537 collect2name=`${CC} -print-prog-name=collect2`
16538 if test -f "$collect2name" && \
16539 strings "$collect2name" | grep resolve_lib_name >/dev/null
16541 # We have reworked collect2
16542 hardcode_direct_GCJ=yes
16544 # We have old collect2
16545 hardcode_direct_GCJ=unsupported
16546 # It fails to find uninstalled libraries when the uninstalled
16547 # path is not listed in the libpath. Setting hardcode_minus_L
16548 # to unsupported forces relinking
16549 hardcode_minus_L_GCJ=yes
16550 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16551 hardcode_libdir_separator_GCJ=
16555 shared_flag='-shared'
16556 if test "$aix_use_runtimelinking" = yes; then
16557 shared_flag="$shared_flag "'${wl}-G'
16561 if test "$host_cpu" = ia64; then
16562 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16563 # chokes on -Wl,-G. The following line is correct:
16566 if test "$aix_use_runtimelinking" = yes; then
16567 shared_flag='${wl}-G'
16569 shared_flag='${wl}-bM:SRE'
16574 # It seems that -bexpall does not export symbols beginning with
16575 # underscore (_), so it is better to generate a list of symbols to export.
16576 always_export_symbols_GCJ=yes
16577 if test "$aix_use_runtimelinking" = yes; then
16578 # Warning - without using the other runtime loading flags (-brtl),
16579 # -berok will link without error, but may produce a broken library.
16580 allow_undefined_flag_GCJ='-berok'
16581 # Determine the default libpath from the value encoded in an empty executable.
16582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16583 /* end confdefs.h. */
16593 if ac_fn_c_try_link "$LINENO"; then :
16595 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16597 # Check for a 64-bit object if we didn't find anything.
16598 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; }
16601 rm -f core conftest.err conftest.$ac_objext \
16602 conftest$ac_exeext conftest.$ac_ext
16603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16605 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16606 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"
16608 if test "$host_cpu" = ia64; then
16609 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16610 allow_undefined_flag_GCJ="-z nodefs"
16611 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"
16613 # Determine the default libpath from the value encoded in an empty executable.
16614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16615 /* end confdefs.h. */
16625 if ac_fn_c_try_link "$LINENO"; then :
16627 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16629 # Check for a 64-bit object if we didn't find anything.
16630 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; }
16633 rm -f core conftest.err conftest.$ac_objext \
16634 conftest$ac_exeext conftest.$ac_ext
16635 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16637 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16638 # Warning - without using the other run time loading flags,
16639 # -berok will link without error, but may produce a broken library.
16640 no_undefined_flag_GCJ=' ${wl}-bernotok'
16641 allow_undefined_flag_GCJ=' ${wl}-berok'
16642 # Exported symbols can be pulled into shared objects from archives
16643 whole_archive_flag_spec_GCJ='$convenience'
16644 archive_cmds_need_lc_GCJ=yes
16645 # This is similar to how AIX traditionally builds its shared libraries.
16646 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'
16652 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)'
16653 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16654 hardcode_minus_L_GCJ=yes
16655 # see comment about different semantics on the GNU ld section
16660 export_dynamic_flag_spec_GCJ=-rdynamic
16663 cygwin* | mingw* | pw32*)
16664 # When not using gcc, we currently assume that we are using
16665 # Microsoft Visual C++.
16666 # hardcode_libdir_flag_spec is actually meaningless, as there is
16667 # no search path for DLLs.
16668 hardcode_libdir_flag_spec_GCJ=' '
16669 allow_undefined_flag_GCJ=unsupported
16670 # Tell ltmain to make .lib files, not .a files.
16672 # Tell ltmain to make .dll files, not .so files.
16674 # FIXME: Setting linknames here is a bad hack.
16675 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16676 # The linker will automatically build a .lib file if we build a DLL.
16677 old_archive_From_new_cmds_GCJ='true'
16678 # FIXME: Should let the user specify the lib program.
16679 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16680 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16681 enable_shared_with_static_runtimes_GCJ=yes
16684 darwin* | rhapsody*)
16686 rhapsody* | darwin1.[012])
16687 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16690 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16691 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16693 case ${MACOSX_DEPLOYMENT_TARGET} in
16695 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16698 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16704 archive_cmds_need_lc_GCJ=no
16705 hardcode_direct_GCJ=no
16706 hardcode_automatic_GCJ=yes
16707 hardcode_shlibpath_var_GCJ=unsupported
16708 whole_archive_flag_spec_GCJ=''
16709 link_all_deplibs_GCJ=yes
16710 if test "$GCC" = yes ; then
16711 output_verbose_link_cmd='echo'
16712 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16713 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16714 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16715 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}'
16716 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}'
16718 case $cc_basename in
16720 output_verbose_link_cmd='echo'
16721 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16722 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16723 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16724 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}'
16725 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}'
16735 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16736 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16737 hardcode_shlibpath_var_GCJ=no
16744 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16745 # support. Future versions do this automatically, but an explicit c++rt0.o
16746 # does not break anything, and helps significantly (at the cost of a little
16749 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16750 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16751 hardcode_direct_GCJ=yes
16752 hardcode_shlibpath_var_GCJ=no
16755 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16757 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16758 hardcode_direct_GCJ=yes
16759 hardcode_minus_L_GCJ=yes
16760 hardcode_shlibpath_var_GCJ=no
16763 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16764 freebsd* | kfreebsd*-gnu | dragonfly*)
16765 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16766 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16767 hardcode_direct_GCJ=yes
16768 hardcode_shlibpath_var_GCJ=no
16772 if test "$GCC" = yes; then
16773 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'
16775 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'
16777 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16778 hardcode_libdir_separator_GCJ=:
16779 hardcode_direct_GCJ=yes
16781 # hardcode_minus_L: Not really in the search PATH,
16782 # but as the default location of the library.
16783 hardcode_minus_L_GCJ=yes
16784 export_dynamic_flag_spec_GCJ='${wl}-E'
16788 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16789 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16791 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16793 if test "$with_gnu_ld" = no; then
16794 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16795 hardcode_libdir_separator_GCJ=:
16797 hardcode_direct_GCJ=yes
16798 export_dynamic_flag_spec_GCJ='${wl}-E'
16800 # hardcode_minus_L: Not really in the search PATH,
16801 # but as the default location of the library.
16802 hardcode_minus_L_GCJ=yes
16807 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16810 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16813 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16816 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16822 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16825 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16828 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16832 if test "$with_gnu_ld" = no; then
16833 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16834 hardcode_libdir_separator_GCJ=:
16838 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16839 hardcode_direct_GCJ=no
16840 hardcode_shlibpath_var_GCJ=no
16843 hardcode_direct_GCJ=yes
16844 export_dynamic_flag_spec_GCJ='${wl}-E'
16846 # hardcode_minus_L: Not really in the search PATH,
16847 # but as the default location of the library.
16848 hardcode_minus_L_GCJ=yes
16854 irix5* | irix6* | nonstopux*)
16855 if test "$GCC" = yes; then
16856 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'
16858 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'
16859 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16861 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16862 hardcode_libdir_separator_GCJ=:
16863 link_all_deplibs_GCJ=yes
16867 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16868 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16870 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16872 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16873 hardcode_direct_GCJ=yes
16874 hardcode_shlibpath_var_GCJ=no
16878 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16879 hardcode_direct_GCJ=yes
16880 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16881 hardcode_libdir_separator_GCJ=:
16882 hardcode_shlibpath_var_GCJ=no
16886 hardcode_direct_GCJ=yes
16887 hardcode_shlibpath_var_GCJ=no
16888 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16889 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16890 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16891 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16892 export_dynamic_flag_spec_GCJ='${wl}-E'
16895 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16896 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16897 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16900 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16901 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16908 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16909 hardcode_minus_L_GCJ=yes
16910 allow_undefined_flag_GCJ=unsupported
16911 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'
16912 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16916 if test "$GCC" = yes; then
16917 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16918 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'
16920 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16921 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'
16923 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16924 hardcode_libdir_separator_GCJ=:
16927 osf4* | osf5*) # as osf3* with the addition of -msym flag
16928 if test "$GCC" = yes; then
16929 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16930 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'
16931 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16933 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16934 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'
16935 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~
16936 $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'
16938 # Both c and cxx compiler support -rpath directly
16939 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16941 hardcode_libdir_separator_GCJ=:
16945 no_undefined_flag_GCJ=' -z text'
16946 if test "$GCC" = yes; then
16948 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16949 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16950 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16953 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16954 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16955 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16957 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16958 hardcode_shlibpath_var_GCJ=no
16960 solaris2.[0-5] | solaris2.[0-5].*) ;;
16962 # The compiler driver will combine linker options so we
16963 # cannot just pass the convience library names through
16964 # without $wl, iff we do not link with $LD.
16965 # Luckily, gcc supports the same syntax we need for Sun Studio.
16966 # Supported since Solaris 2.6 (maybe 2.5.1?)
16969 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16971 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' ;;
16974 link_all_deplibs_GCJ=yes
16978 if test "x$host_vendor" = xsequent; then
16979 # Use $CC to link under sequent, because it throws in some extra .o
16980 # files that make .init and .fini sections work.
16981 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16983 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16985 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16986 hardcode_direct_GCJ=yes
16987 hardcode_minus_L_GCJ=yes
16988 hardcode_shlibpath_var_GCJ=no
16992 case $host_vendor in
16994 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16995 hardcode_direct_GCJ=yes # is this really true???
16998 ## LD is ld it makes a PLAMLIB
16999 ## CC just makes a GrossModule.
17000 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17001 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17002 hardcode_direct_GCJ=no
17005 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17006 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17009 runpath_var='LD_RUN_PATH'
17010 hardcode_shlibpath_var_GCJ=no
17014 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17015 hardcode_shlibpath_var_GCJ=no
17016 export_dynamic_flag_spec_GCJ='-Bexport'
17020 if test -d /usr/nec; then
17021 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17022 hardcode_shlibpath_var_GCJ=no
17023 runpath_var=LD_RUN_PATH
17024 hardcode_runpath_var=yes
17029 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17030 no_undefined_flag_GCJ='${wl}-z,text'
17031 archive_cmds_need_lc_GCJ=no
17032 hardcode_shlibpath_var_GCJ=no
17033 runpath_var='LD_RUN_PATH'
17035 if test "$GCC" = yes; then
17036 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17037 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17039 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17040 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17044 sysv5* | sco3.2v5* | sco5v6*)
17045 # Note: We can NOT use -z defs as we might desire, because we do not
17046 # link with -lc, and that would cause any symbols used from libc to
17047 # always be unresolved, which means just about no library would
17048 # ever link correctly. If we're not using GNU ld we use -z text
17049 # though, which does catch some bad symbols but isn't as heavy-handed
17051 no_undefined_flag_GCJ='${wl}-z,text'
17052 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17053 archive_cmds_need_lc_GCJ=no
17054 hardcode_shlibpath_var_GCJ=no
17055 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17056 hardcode_libdir_separator_GCJ=':'
17057 link_all_deplibs_GCJ=yes
17058 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17059 runpath_var='LD_RUN_PATH'
17061 if test "$GCC" = yes; then
17062 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17063 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17065 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17066 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17071 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17072 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17073 hardcode_shlibpath_var_GCJ=no
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17083 $as_echo "$ld_shlibs_GCJ" >&6; }
17084 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17087 # Do we need to explicitly link libc?
17089 case "x$archive_cmds_need_lc_GCJ" in
17091 # Assume -lc should be added
17092 archive_cmds_need_lc_GCJ=yes
17094 if test "$enable_shared" = yes && test "$GCC" = yes; then
17095 case $archive_cmds_GCJ in
17097 # FIXME: we may have to deal with multi-command sequences.
17100 # Test whether the compiler implicitly links with -lc since on some
17101 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17102 # to ld, don't add -lc before -lgcc.
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17104 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17106 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17109 (eval $ac_compile) 2>&5
17111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17112 test $ac_status = 0; } 2>conftest.err; then
17115 libobjs=conftest.$ac_objext
17117 wl=$lt_prog_compiler_wl_GCJ
17118 pic_flag=$lt_prog_compiler_pic_GCJ
17124 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17125 allow_undefined_flag_GCJ=
17126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17127 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17130 test $ac_status = 0; }
17132 archive_cmds_need_lc_GCJ=no
17134 archive_cmds_need_lc_GCJ=yes
17136 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17138 cat conftest.err 1>&5
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17142 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17150 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17151 library_names_spec=
17152 libname_spec='lib$name'
17156 postuninstall_cmds=
17160 shlibpath_overrides_runpath=unknown
17162 dynamic_linker="$host_os ld.so"
17163 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17164 if test "$GCC" = yes; then
17165 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17166 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17167 # if the path contains ";" then we assume it to be the separator
17168 # otherwise default to the standard path separator (i.e. ":") - it is
17169 # assumed that no part of a normal pathname contains ";" but that should
17170 # okay in the real world where ";" in dirpaths is itself problematic.
17171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17173 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17176 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17178 need_lib_prefix=unknown
17179 hardcode_into_libs=no
17181 # when you set need_version to no, make sure it does not cause -set_version
17182 # flags to be left without arguments
17183 need_version=unknown
17188 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17189 shlibpath_var=LIBPATH
17191 # AIX 3 has no versioning support, so we append a major version to the name.
17192 soname_spec='${libname}${release}${shared_ext}$major'
17199 hardcode_into_libs=yes
17200 if test "$host_cpu" = ia64; then
17201 # AIX 5 supports IA64
17202 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17203 shlibpath_var=LD_LIBRARY_PATH
17205 # With GCC up to 2.95.x, collect2 would create an import file
17206 # for dependence libraries. The import file would start with
17207 # the line `#! .'. This would cause the generated library to
17208 # depend on `.', always an invalid library. This was fixed in
17209 # development snapshots of GCC prior to 3.0.
17211 aix4 | aix4.[01] | aix4.[01].*)
17212 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17214 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17217 can_build_shared=no
17221 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17222 # soname into executable. Probably we can add versioning support to
17223 # collect2, so additional links can be useful in future.
17224 if test "$aix_use_runtimelinking" = yes; then
17225 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17226 # instead of lib<name>.a to let people know that these are not
17227 # typical AIX shared libraries.
17228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17230 # We preserve .a as extension for shared libraries through AIX4.2
17231 # and later when we are not doing run time linking.
17232 library_names_spec='${libname}${release}.a $libname.a'
17233 soname_spec='${libname}${release}${shared_ext}$major'
17235 shlibpath_var=LIBPATH
17240 library_names_spec='$libname.ixlibrary $libname.a'
17241 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17242 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'
17246 library_names_spec='${libname}${shared_ext}'
17247 dynamic_linker="$host_os ld.so"
17248 shlibpath_var=LIBRARY_PATH
17254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17255 soname_spec='${libname}${release}${shared_ext}$major'
17256 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17257 shlibpath_var=LD_LIBRARY_PATH
17258 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17259 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17260 # the default ld.so.conf also contains /usr/contrib/lib and
17261 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17262 # libtool to hard-code these into programs
17265 cygwin* | mingw* | pw32*)
17266 version_type=windows
17271 case $GCC,$host_os in
17272 yes,cygwin* | yes,mingw* | yes,pw32*)
17273 library_names_spec='$libname.dll.a'
17274 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17275 postinstall_cmds='base_file=`basename \${file}`~
17276 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17277 dldir=$destdir/`dirname \$dlpath`~
17278 test -d \$dldir || mkdir -p \$dldir~
17279 $install_prog $dir/$dlname \$dldir/$dlname~
17280 chmod a+x \$dldir/$dlname'
17281 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17282 dlpath=$dir/\$dldll~
17284 shlibpath_overrides_runpath=yes
17288 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17289 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17290 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17293 # MinGW DLLs use traditional 'lib' prefix
17294 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17295 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17296 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17297 # It is most probably a Windows format PATH printed by
17298 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17299 # path with ; separators, and with drive letters. We can handle the
17300 # drive letters (cygwin fileutils understands them), so leave them,
17301 # especially as we might pass files found there to a mingw objdump,
17302 # which wouldn't understand a cygwinified path. Ahh.
17303 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17305 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17309 # pw32 DLLs use 'pw' prefix rather than 'lib'
17310 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17316 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17319 dynamic_linker='Win32 ld.exe'
17320 # FIXME: first we should search . and the directory the executable is in
17324 darwin* | rhapsody*)
17325 dynamic_linker="$host_os dyld"
17326 version_type=darwin
17329 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17330 soname_spec='${libname}${release}${major}$shared_ext'
17331 shlibpath_overrides_runpath=yes
17332 shlibpath_var=DYLD_LIBRARY_PATH
17333 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17334 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17335 if test "$GCC" = yes; then
17336 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"`
17338 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17340 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17348 soname_spec='${libname}${release}${shared_ext}$major'
17349 shlibpath_var=LD_LIBRARY_PATH
17360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17361 soname_spec='${libname}${release}${shared_ext}$major'
17362 shlibpath_var=LD_LIBRARY_PATH
17363 shlibpath_overrides_runpath=no
17364 hardcode_into_libs=yes
17365 dynamic_linker='GNU ld.so'
17368 freebsd* | dragonfly*)
17369 # DragonFly does not have aout. When/if they implement a new
17370 # versioning mechanism, adjust this.
17371 if test -x /usr/bin/objformat; then
17372 objformat=`/usr/bin/objformat`
17375 freebsd[123]*) objformat=aout ;;
17376 *) objformat=elf ;;
17379 version_type=freebsd-$objformat
17380 case $version_type in
17382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17387 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17391 shlibpath_var=LD_LIBRARY_PATH
17394 shlibpath_overrides_runpath=yes
17396 freebsd3.[01]* | freebsdelf3.[01]*)
17397 shlibpath_overrides_runpath=yes
17398 hardcode_into_libs=yes
17400 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17401 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17402 shlibpath_overrides_runpath=no
17403 hardcode_into_libs=yes
17405 freebsd*) # from 4.6 on
17406 shlibpath_overrides_runpath=yes
17407 hardcode_into_libs=yes
17416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17417 soname_spec='${libname}${release}${shared_ext}$major'
17418 shlibpath_var=LD_LIBRARY_PATH
17419 hardcode_into_libs=yes
17422 hpux9* | hpux10* | hpux11*)
17423 # Give a soname corresponding to the major version so that dld.sl refuses to
17424 # link against other versions.
17431 hardcode_into_libs=yes
17432 dynamic_linker="$host_os dld.so"
17433 shlibpath_var=LD_LIBRARY_PATH
17434 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17436 soname_spec='${libname}${release}${shared_ext}$major'
17437 if test "X$HPUX_IA64_MODE" = X32; then
17438 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17440 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17446 hardcode_into_libs=yes
17447 dynamic_linker="$host_os dld.sl"
17448 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17449 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17451 soname_spec='${libname}${release}${shared_ext}$major'
17452 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17453 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17457 dynamic_linker="$host_os dld.sl"
17458 shlibpath_var=SHLIB_PATH
17459 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17461 soname_spec='${libname}${release}${shared_ext}$major'
17464 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17465 postinstall_cmds='chmod 555 $lib'
17472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17473 soname_spec='${libname}${release}${shared_ext}$major'
17474 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17475 shlibpath_var=LD_LIBRARY_PATH
17476 shlibpath_overrides_runpath=no
17477 hardcode_into_libs=yes
17480 irix5* | irix6* | nonstopux*)
17482 nonstopux*) version_type=nonstopux ;;
17484 if test "$lt_cv_prog_gnu_ld" = yes; then
17492 soname_spec='${libname}${release}${shared_ext}$major'
17493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17495 irix5* | nonstopux*)
17496 libsuff= shlibsuff=
17499 case $LD in # libtool.m4 will add one of these switches to LD
17500 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17501 libsuff= shlibsuff= libmagic=32-bit;;
17502 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17503 libsuff=32 shlibsuff=N32 libmagic=N32;;
17504 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17505 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17506 *) libsuff= shlibsuff= libmagic=never-match;;
17510 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17511 shlibpath_overrides_runpath=no
17512 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17513 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17514 hardcode_into_libs=yes
17517 # No shared lib support for Linux oldld, aout, or coff.
17518 linux*oldld* | linux*aout* | linux*coff*)
17522 # This must be Linux ELF.
17527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17528 soname_spec='${libname}${release}${shared_ext}$major'
17529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17530 shlibpath_var=LD_LIBRARY_PATH
17531 shlibpath_overrides_runpath=no
17532 # This implies no fast_install, which is unacceptable.
17533 # Some rework will be needed to allow for fast_install
17534 # before this can be enabled.
17535 hardcode_into_libs=yes
17537 # Append ld.so.conf contents to the search path
17538 if test -f /etc/ld.so.conf; then
17539 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' ' '`
17540 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17543 # We used to test for /lib/ld.so.1 and disable shared libraries on
17544 # powerpc, because MkLinux only supported shared libraries with the
17545 # GNU dynamic linker. Since this was broken with cross compilers,
17546 # most powerpc-linux boxes support dynamic linking these days and
17547 # people can always --disable-shared, the test was removed, and we
17548 # assume the GNU/Linux dynamic linker is in use.
17549 dynamic_linker='GNU/Linux ld.so'
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 shlibpath_var=LD_LIBRARY_PATH
17559 shlibpath_overrides_runpath=no
17560 hardcode_into_libs=yes
17561 dynamic_linker='GNU ld.so'
17568 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17571 dynamic_linker='NetBSD (a.out) ld.so'
17573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17574 soname_spec='${libname}${release}${shared_ext}$major'
17575 dynamic_linker='NetBSD ld.elf_so'
17577 shlibpath_var=LD_LIBRARY_PATH
17578 shlibpath_overrides_runpath=yes
17579 hardcode_into_libs=yes
17584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17585 shlibpath_var=LD_LIBRARY_PATH
17586 shlibpath_overrides_runpath=yes
17593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17594 soname_spec='${libname}${release}${shared_ext}$major'
17595 shlibpath_var=LD_LIBRARY_PATH
17596 shlibpath_overrides_runpath=yes
17601 sys_lib_dlsearch_path_spec="/usr/lib"
17603 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17605 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17606 *) need_version=no ;;
17608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17610 shlibpath_var=LD_LIBRARY_PATH
17611 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17613 openbsd2.[89] | openbsd2.[89].*)
17614 shlibpath_overrides_runpath=no
17617 shlibpath_overrides_runpath=yes
17621 shlibpath_overrides_runpath=yes
17626 libname_spec='$name'
17629 library_names_spec='$libname${shared_ext} $libname.a'
17630 dynamic_linker='OS/2 ld.exe'
17631 shlibpath_var=LIBPATH
17634 osf3* | osf4* | osf5*)
17638 soname_spec='${libname}${release}${shared_ext}$major'
17639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17640 shlibpath_var=LD_LIBRARY_PATH
17641 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17642 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17650 soname_spec='${libname}${release}${shared_ext}$major'
17651 shlibpath_var=LD_LIBRARY_PATH
17652 shlibpath_overrides_runpath=yes
17653 hardcode_into_libs=yes
17654 # ldd complains unless libraries are executable
17655 postinstall_cmds='chmod +x $lib'
17660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17661 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17662 shlibpath_var=LD_LIBRARY_PATH
17663 shlibpath_overrides_runpath=yes
17664 if test "$with_gnu_ld" = yes; then
17672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17673 soname_spec='${libname}${release}${shared_ext}$major'
17674 shlibpath_var=LD_LIBRARY_PATH
17675 case $host_vendor in
17677 shlibpath_overrides_runpath=no
17679 export_dynamic_flag_spec='${wl}-Blargedynsym'
17680 runpath_var=LD_RUN_PATH
17688 shlibpath_overrides_runpath=no
17689 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17695 if test -d /usr/nec ;then
17697 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17698 soname_spec='$libname${shared_ext}.$major'
17699 shlibpath_var=LD_LIBRARY_PATH
17703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17704 version_type=freebsd-elf
17707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17708 soname_spec='${libname}${release}${shared_ext}$major'
17709 shlibpath_var=LD_LIBRARY_PATH
17710 hardcode_into_libs=yes
17711 if test "$with_gnu_ld" = yes; then
17712 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17713 shlibpath_overrides_runpath=no
17715 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17716 shlibpath_overrides_runpath=yes
17719 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17723 sys_lib_dlsearch_path_spec='/usr/lib'
17728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17729 soname_spec='${libname}${release}${shared_ext}$major'
17730 shlibpath_var=LD_LIBRARY_PATH
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17738 $as_echo "$dynamic_linker" >&6; }
17739 test "$dynamic_linker" = no && can_build_shared=no
17741 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17742 if test "$GCC" = yes; then
17743 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17747 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17748 hardcode_action_GCJ=
17749 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17750 test -n "$runpath_var_GCJ" || \
17751 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17753 # We can hardcode non-existant directories.
17754 if test "$hardcode_direct_GCJ" != no &&
17755 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17756 # have to relink, otherwise we might link with an installed library
17757 # when we should be linking with a yet-to-be-installed one
17758 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17759 test "$hardcode_minus_L_GCJ" != no; then
17760 # Linking always hardcodes the temporary library directory.
17761 hardcode_action_GCJ=relink
17763 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17764 hardcode_action_GCJ=immediate
17767 # We cannot hardcode anything, or else we can only hardcode existing
17769 hardcode_action_GCJ=unsupported
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
17772 $as_echo "$hardcode_action_GCJ" >&6; }
17774 if test "$hardcode_action_GCJ" = relink; then
17775 # Fast installation is not supported
17776 enable_fast_install=no
17777 elif test "$shlibpath_overrides_runpath" = yes ||
17778 test "$enable_shared" = no; then
17779 # Fast installation is not necessary
17780 enable_fast_install=needless
17784 # The else clause should only fire when bootstrapping the
17785 # libtool distribution, otherwise you forgot to ship ltmain.sh
17786 # with your package, and you will get complaints that there are
17787 # no rules to generate ltmain.sh.
17788 if test -f "$ltmain"; then
17789 # See if we are running on zsh, and set the options which allow our commands through
17790 # without removal of \ escapes.
17791 if test -n "${ZSH_VERSION+set}" ; then
17792 setopt NO_GLOB_SUBST
17794 # Now quote all the things that may contain metacharacters while being
17795 # careful not to overquote the AC_SUBSTed values. We take copies of the
17796 # variables and quote the copies for generation of the libtool script.
17797 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17799 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17800 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17801 deplibs_check_method reload_flag reload_cmds need_locks \
17802 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17803 lt_cv_sys_global_symbol_to_c_name_address \
17804 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17805 old_postinstall_cmds old_postuninstall_cmds \
17809 lt_prog_compiler_wl_GCJ \
17810 lt_prog_compiler_pic_GCJ \
17811 lt_prog_compiler_static_GCJ \
17812 lt_prog_compiler_no_builtin_flag_GCJ \
17813 export_dynamic_flag_spec_GCJ \
17814 thread_safe_flag_spec_GCJ \
17815 whole_archive_flag_spec_GCJ \
17816 enable_shared_with_static_runtimes_GCJ \
17817 old_archive_cmds_GCJ \
17818 old_archive_from_new_cmds_GCJ \
17819 predep_objects_GCJ \
17820 postdep_objects_GCJ \
17823 compiler_lib_search_path_GCJ \
17825 archive_expsym_cmds_GCJ \
17826 postinstall_cmds_GCJ \
17827 postuninstall_cmds_GCJ \
17828 old_archive_from_expsyms_cmds_GCJ \
17829 allow_undefined_flag_GCJ \
17830 no_undefined_flag_GCJ \
17831 export_symbols_cmds_GCJ \
17832 hardcode_libdir_flag_spec_GCJ \
17833 hardcode_libdir_flag_spec_ld_GCJ \
17834 hardcode_libdir_separator_GCJ \
17835 hardcode_automatic_GCJ \
17837 module_expsym_cmds_GCJ \
17838 lt_cv_prog_compiler_c_o_GCJ \
17839 exclude_expsyms_GCJ \
17840 include_expsyms_GCJ; do
17843 old_archive_cmds_GCJ | \
17844 old_archive_from_new_cmds_GCJ | \
17845 archive_cmds_GCJ | \
17846 archive_expsym_cmds_GCJ | \
17847 module_cmds_GCJ | \
17848 module_expsym_cmds_GCJ | \
17849 old_archive_from_expsyms_cmds_GCJ | \
17850 export_symbols_cmds_GCJ | \
17851 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17852 postinstall_cmds | postuninstall_cmds | \
17853 old_postinstall_cmds | old_postuninstall_cmds | \
17854 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17855 # Double-quote double-evaled strings.
17856 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17859 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17865 *'\$0 --fallback-echo"')
17866 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17872 cat <<__EOF__ >> "$cfgfile"
17873 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17875 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17877 # Shell to use when invoking shell scripts.
17880 # Whether or not to build shared libraries.
17881 build_libtool_libs=$enable_shared
17883 # Whether or not to build static libraries.
17884 build_old_libs=$enable_static
17886 # Whether or not to add -lc for building shared libraries.
17887 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17889 # Whether or not to disallow shared libs when runtime libs are static
17890 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17892 # Whether or not to optimize for fast installation.
17893 fast_install=$enable_fast_install
17896 host_alias=$host_alias
17900 # The build system.
17901 build_alias=$build_alias
17905 # An echo program that does not interpret backslashes.
17910 AR_FLAGS=$lt_AR_FLAGS
17915 # LTCC compiler flags.
17916 LTCFLAGS=$lt_LTCFLAGS
17918 # A language-specific compiler.
17919 CC=$lt_compiler_GCJ
17921 # Is the compiler the GNU C compiler?
17927 # The linker used to build libraries.
17930 # Whether we need hard or soft links.
17933 # A BSD-compatible nm program.
17936 # A symbol stripping program
17939 # Used to examine libraries when file_magic_cmd begins "file"
17940 MAGIC_CMD=$MAGIC_CMD
17942 # Used on cygwin: DLL creation program.
17945 # Used on cygwin: object dumper.
17948 # Used on cygwin: assembler.
17951 # The name of the directory that contains temporary libtool files.
17954 # How to create reloadable object files.
17955 reload_flag=$lt_reload_flag
17956 reload_cmds=$lt_reload_cmds
17958 # How to pass a linker flag through the compiler.
17959 wl=$lt_lt_prog_compiler_wl_GCJ
17961 # Object file suffix (normally "o").
17962 objext="$ac_objext"
17964 # Old archive suffix (normally "a").
17967 # Shared library suffix (normally ".so").
17968 shrext_cmds='$shrext_cmds'
17970 # Executable file suffix (normally "").
17973 # Additional compiler flags for building library objects.
17974 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17977 # What is the maximum length of a command?
17978 max_cmd_len=$lt_cv_sys_max_cmd_len
17980 # Does compiler simultaneously support -c and -o options?
17981 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17983 # Must we lock files when doing compilation?
17984 need_locks=$lt_need_locks
17986 # Do we need the lib prefix for modules?
17987 need_lib_prefix=$need_lib_prefix
17989 # Do we need a version for libraries?
17990 need_version=$need_version
17992 # Whether dlopen is supported.
17993 dlopen_support=$enable_dlopen
17995 # Whether dlopen of programs is supported.
17996 dlopen_self=$enable_dlopen_self
17998 # Whether dlopen of statically linked programs is supported.
17999 dlopen_self_static=$enable_dlopen_self_static
18001 # Compiler flag to prevent dynamic linking.
18002 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18004 # Compiler flag to turn off builtin functions.
18005 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18007 # Compiler flag to allow reflexive dlopens.
18008 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18010 # Compiler flag to generate shared objects directly from archives.
18011 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18013 # Compiler flag to generate thread-safe objects.
18014 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18016 # Library versioning type.
18017 version_type=$version_type
18019 # Format of library name prefix.
18020 libname_spec=$lt_libname_spec
18022 # List of archive names. First name is the real one, the rest are links.
18023 # The last name is the one that the linker finds with -lNAME.
18024 library_names_spec=$lt_library_names_spec
18026 # The coded name of the library, if different from the real name.
18027 soname_spec=$lt_soname_spec
18029 # Commands used to build and install an old-style archive.
18031 old_archive_cmds=$lt_old_archive_cmds_GCJ
18032 old_postinstall_cmds=$lt_old_postinstall_cmds
18033 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18035 # Create an old-style archive from a shared archive.
18036 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18038 # Create a temporary old-style archive to link instead of a shared archive.
18039 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18041 # Commands used to build and install a shared archive.
18042 archive_cmds=$lt_archive_cmds_GCJ
18043 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18044 postinstall_cmds=$lt_postinstall_cmds
18045 postuninstall_cmds=$lt_postuninstall_cmds
18047 # Commands used to build a loadable module (assumed same as above if empty)
18048 module_cmds=$lt_module_cmds_GCJ
18049 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18051 # Commands to strip libraries.
18052 old_striplib=$lt_old_striplib
18053 striplib=$lt_striplib
18055 # Dependencies to place before the objects being linked to create a
18057 predep_objects=$lt_predep_objects_GCJ
18059 # Dependencies to place after the objects being linked to create a
18061 postdep_objects=$lt_postdep_objects_GCJ
18063 # Dependencies to place before the objects being linked to create a
18065 predeps=$lt_predeps_GCJ
18067 # Dependencies to place after the objects being linked to create a
18069 postdeps=$lt_postdeps_GCJ
18071 # The library search path used internally by the compiler when linking
18072 # a shared library.
18073 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18075 # Method to check whether dependent libraries are shared objects.
18076 deplibs_check_method=$lt_deplibs_check_method
18078 # Command to use when deplibs_check_method == file_magic.
18079 file_magic_cmd=$lt_file_magic_cmd
18081 # Flag that allows shared libraries with undefined symbols to be built.
18082 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18084 # Flag that forces no undefined symbols.
18085 no_undefined_flag=$lt_no_undefined_flag_GCJ
18087 # Commands used to finish a libtool library installation in a directory.
18088 finish_cmds=$lt_finish_cmds
18090 # Same as above, but a single script fragment to be evaled but not shown.
18091 finish_eval=$lt_finish_eval
18093 # Take the output of nm and produce a listing of raw symbols and C names.
18094 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18096 # Transform the output of nm in a proper C declaration
18097 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18099 # Transform the output of nm in a C name address pair
18100 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18102 # This is the shared library runtime path variable.
18103 runpath_var=$runpath_var
18105 # This is the shared library path variable.
18106 shlibpath_var=$shlibpath_var
18108 # Is shlibpath searched before the hard-coded library search path?
18109 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18111 # How to hardcode a shared library path into an executable.
18112 hardcode_action=$hardcode_action_GCJ
18114 # Whether we should hardcode library paths into libraries.
18115 hardcode_into_libs=$hardcode_into_libs
18117 # Flag to hardcode \$libdir into a binary during linking.
18118 # This must work even if \$libdir does not exist.
18119 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18121 # If ld is used when linking, flag to hardcode \$libdir into
18122 # a binary during linking. This must work even if \$libdir does
18124 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18126 # Whether we need a single -rpath flag with a separated argument.
18127 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18129 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18130 # resulting binary.
18131 hardcode_direct=$hardcode_direct_GCJ
18133 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18134 # resulting binary.
18135 hardcode_minus_L=$hardcode_minus_L_GCJ
18137 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18138 # the resulting binary.
18139 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18141 # Set to yes if building a shared library automatically hardcodes DIR into the library
18142 # and all subsequent libraries and executables linked against it.
18143 hardcode_automatic=$hardcode_automatic_GCJ
18145 # Variables whose values should be saved in libtool wrapper scripts and
18146 # restored at relink time.
18147 variables_saved_for_relink="$variables_saved_for_relink"
18149 # Whether libtool must link a program against all its dependency libraries.
18150 link_all_deplibs=$link_all_deplibs_GCJ
18152 # Compile-time system search path for libraries
18153 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18155 # Run-time system search path for libraries
18156 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18158 # Fix the shell variable \$srcfile for the compiler.
18159 fix_srcfile_path="$fix_srcfile_path_GCJ"
18161 # Set to yes if exported symbols are required.
18162 always_export_symbols=$always_export_symbols_GCJ
18164 # The commands to list exported symbols.
18165 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18167 # The commands to extract the exported symbol list from a shared archive.
18168 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18170 # Symbols that should not be listed in the preloaded symbols.
18171 exclude_expsyms=$lt_exclude_expsyms_GCJ
18173 # Symbols that must always be exported.
18174 include_expsyms=$lt_include_expsyms_GCJ
18176 # ### END LIBTOOL TAG CONFIG: $tagname
18182 # If there is no Makefile yet, we rely on a make rule to execute
18183 # `config.status --recheck' to rerun these tests and create the
18184 # libtool script then.
18185 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18186 if test -f "$ltmain_in"; then
18187 test -f Makefile && make "$ltmain"
18193 ac_cpp='$CPP $CPPFLAGS'
18194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18208 # Source file extension for RC test sources.
18211 # Object file extension for compiled RC test sources.
18215 # Code to be used in simple compile tests
18216 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18218 # Code to be used in simple link tests
18219 lt_simple_link_test_code="$lt_simple_compile_test_code"
18221 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18223 # If no C compiler was specified, use CC.
18226 # If no C compiler flags were specified, use CFLAGS.
18227 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18229 # Allow CC to be a program name with arguments.
18233 # save warnings/boilerplate of simple test code
18234 ac_outfile=conftest.$ac_objext
18235 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18236 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18237 _lt_compiler_boilerplate=`cat conftest.err`
18240 ac_outfile=conftest.$ac_objext
18241 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18242 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18243 _lt_linker_boilerplate=`cat conftest.err`
18247 # Allow CC to be a program name with arguments.
18252 for cc_temp in $compiler""; do
18254 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18255 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18260 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18262 lt_cv_prog_compiler_c_o_RC=yes
18264 # The else clause should only fire when bootstrapping the
18265 # libtool distribution, otherwise you forgot to ship ltmain.sh
18266 # with your package, and you will get complaints that there are
18267 # no rules to generate ltmain.sh.
18268 if test -f "$ltmain"; then
18269 # See if we are running on zsh, and set the options which allow our commands through
18270 # without removal of \ escapes.
18271 if test -n "${ZSH_VERSION+set}" ; then
18272 setopt NO_GLOB_SUBST
18274 # Now quote all the things that may contain metacharacters while being
18275 # careful not to overquote the AC_SUBSTed values. We take copies of the
18276 # variables and quote the copies for generation of the libtool script.
18277 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18279 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18280 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18281 deplibs_check_method reload_flag reload_cmds need_locks \
18282 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18283 lt_cv_sys_global_symbol_to_c_name_address \
18284 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18285 old_postinstall_cmds old_postuninstall_cmds \
18289 lt_prog_compiler_wl_RC \
18290 lt_prog_compiler_pic_RC \
18291 lt_prog_compiler_static_RC \
18292 lt_prog_compiler_no_builtin_flag_RC \
18293 export_dynamic_flag_spec_RC \
18294 thread_safe_flag_spec_RC \
18295 whole_archive_flag_spec_RC \
18296 enable_shared_with_static_runtimes_RC \
18297 old_archive_cmds_RC \
18298 old_archive_from_new_cmds_RC \
18299 predep_objects_RC \
18300 postdep_objects_RC \
18303 compiler_lib_search_path_RC \
18305 archive_expsym_cmds_RC \
18306 postinstall_cmds_RC \
18307 postuninstall_cmds_RC \
18308 old_archive_from_expsyms_cmds_RC \
18309 allow_undefined_flag_RC \
18310 no_undefined_flag_RC \
18311 export_symbols_cmds_RC \
18312 hardcode_libdir_flag_spec_RC \
18313 hardcode_libdir_flag_spec_ld_RC \
18314 hardcode_libdir_separator_RC \
18315 hardcode_automatic_RC \
18317 module_expsym_cmds_RC \
18318 lt_cv_prog_compiler_c_o_RC \
18319 exclude_expsyms_RC \
18320 include_expsyms_RC; do
18323 old_archive_cmds_RC | \
18324 old_archive_from_new_cmds_RC | \
18325 archive_cmds_RC | \
18326 archive_expsym_cmds_RC | \
18328 module_expsym_cmds_RC | \
18329 old_archive_from_expsyms_cmds_RC | \
18330 export_symbols_cmds_RC | \
18331 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18332 postinstall_cmds | postuninstall_cmds | \
18333 old_postinstall_cmds | old_postuninstall_cmds | \
18334 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18335 # Double-quote double-evaled strings.
18336 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18339 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18345 *'\$0 --fallback-echo"')
18346 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18352 cat <<__EOF__ >> "$cfgfile"
18353 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18355 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18357 # Shell to use when invoking shell scripts.
18360 # Whether or not to build shared libraries.
18361 build_libtool_libs=$enable_shared
18363 # Whether or not to build static libraries.
18364 build_old_libs=$enable_static
18366 # Whether or not to add -lc for building shared libraries.
18367 build_libtool_need_lc=$archive_cmds_need_lc_RC
18369 # Whether or not to disallow shared libs when runtime libs are static
18370 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18372 # Whether or not to optimize for fast installation.
18373 fast_install=$enable_fast_install
18376 host_alias=$host_alias
18380 # The build system.
18381 build_alias=$build_alias
18385 # An echo program that does not interpret backslashes.
18390 AR_FLAGS=$lt_AR_FLAGS
18395 # LTCC compiler flags.
18396 LTCFLAGS=$lt_LTCFLAGS
18398 # A language-specific compiler.
18401 # Is the compiler the GNU C compiler?
18407 # The linker used to build libraries.
18410 # Whether we need hard or soft links.
18413 # A BSD-compatible nm program.
18416 # A symbol stripping program
18419 # Used to examine libraries when file_magic_cmd begins "file"
18420 MAGIC_CMD=$MAGIC_CMD
18422 # Used on cygwin: DLL creation program.
18425 # Used on cygwin: object dumper.
18428 # Used on cygwin: assembler.
18431 # The name of the directory that contains temporary libtool files.
18434 # How to create reloadable object files.
18435 reload_flag=$lt_reload_flag
18436 reload_cmds=$lt_reload_cmds
18438 # How to pass a linker flag through the compiler.
18439 wl=$lt_lt_prog_compiler_wl_RC
18441 # Object file suffix (normally "o").
18442 objext="$ac_objext"
18444 # Old archive suffix (normally "a").
18447 # Shared library suffix (normally ".so").
18448 shrext_cmds='$shrext_cmds'
18450 # Executable file suffix (normally "").
18453 # Additional compiler flags for building library objects.
18454 pic_flag=$lt_lt_prog_compiler_pic_RC
18457 # What is the maximum length of a command?
18458 max_cmd_len=$lt_cv_sys_max_cmd_len
18460 # Does compiler simultaneously support -c and -o options?
18461 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18463 # Must we lock files when doing compilation?
18464 need_locks=$lt_need_locks
18466 # Do we need the lib prefix for modules?
18467 need_lib_prefix=$need_lib_prefix
18469 # Do we need a version for libraries?
18470 need_version=$need_version
18472 # Whether dlopen is supported.
18473 dlopen_support=$enable_dlopen
18475 # Whether dlopen of programs is supported.
18476 dlopen_self=$enable_dlopen_self
18478 # Whether dlopen of statically linked programs is supported.
18479 dlopen_self_static=$enable_dlopen_self_static
18481 # Compiler flag to prevent dynamic linking.
18482 link_static_flag=$lt_lt_prog_compiler_static_RC
18484 # Compiler flag to turn off builtin functions.
18485 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18487 # Compiler flag to allow reflexive dlopens.
18488 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18490 # Compiler flag to generate shared objects directly from archives.
18491 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18493 # Compiler flag to generate thread-safe objects.
18494 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18496 # Library versioning type.
18497 version_type=$version_type
18499 # Format of library name prefix.
18500 libname_spec=$lt_libname_spec
18502 # List of archive names. First name is the real one, the rest are links.
18503 # The last name is the one that the linker finds with -lNAME.
18504 library_names_spec=$lt_library_names_spec
18506 # The coded name of the library, if different from the real name.
18507 soname_spec=$lt_soname_spec
18509 # Commands used to build and install an old-style archive.
18511 old_archive_cmds=$lt_old_archive_cmds_RC
18512 old_postinstall_cmds=$lt_old_postinstall_cmds
18513 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18515 # Create an old-style archive from a shared archive.
18516 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18518 # Create a temporary old-style archive to link instead of a shared archive.
18519 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18521 # Commands used to build and install a shared archive.
18522 archive_cmds=$lt_archive_cmds_RC
18523 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18524 postinstall_cmds=$lt_postinstall_cmds
18525 postuninstall_cmds=$lt_postuninstall_cmds
18527 # Commands used to build a loadable module (assumed same as above if empty)
18528 module_cmds=$lt_module_cmds_RC
18529 module_expsym_cmds=$lt_module_expsym_cmds_RC
18531 # Commands to strip libraries.
18532 old_striplib=$lt_old_striplib
18533 striplib=$lt_striplib
18535 # Dependencies to place before the objects being linked to create a
18537 predep_objects=$lt_predep_objects_RC
18539 # Dependencies to place after the objects being linked to create a
18541 postdep_objects=$lt_postdep_objects_RC
18543 # Dependencies to place before the objects being linked to create a
18545 predeps=$lt_predeps_RC
18547 # Dependencies to place after the objects being linked to create a
18549 postdeps=$lt_postdeps_RC
18551 # The library search path used internally by the compiler when linking
18552 # a shared library.
18553 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18555 # Method to check whether dependent libraries are shared objects.
18556 deplibs_check_method=$lt_deplibs_check_method
18558 # Command to use when deplibs_check_method == file_magic.
18559 file_magic_cmd=$lt_file_magic_cmd
18561 # Flag that allows shared libraries with undefined symbols to be built.
18562 allow_undefined_flag=$lt_allow_undefined_flag_RC
18564 # Flag that forces no undefined symbols.
18565 no_undefined_flag=$lt_no_undefined_flag_RC
18567 # Commands used to finish a libtool library installation in a directory.
18568 finish_cmds=$lt_finish_cmds
18570 # Same as above, but a single script fragment to be evaled but not shown.
18571 finish_eval=$lt_finish_eval
18573 # Take the output of nm and produce a listing of raw symbols and C names.
18574 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18576 # Transform the output of nm in a proper C declaration
18577 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18579 # Transform the output of nm in a C name address pair
18580 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18582 # This is the shared library runtime path variable.
18583 runpath_var=$runpath_var
18585 # This is the shared library path variable.
18586 shlibpath_var=$shlibpath_var
18588 # Is shlibpath searched before the hard-coded library search path?
18589 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18591 # How to hardcode a shared library path into an executable.
18592 hardcode_action=$hardcode_action_RC
18594 # Whether we should hardcode library paths into libraries.
18595 hardcode_into_libs=$hardcode_into_libs
18597 # Flag to hardcode \$libdir into a binary during linking.
18598 # This must work even if \$libdir does not exist.
18599 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18601 # If ld is used when linking, flag to hardcode \$libdir into
18602 # a binary during linking. This must work even if \$libdir does
18604 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18606 # Whether we need a single -rpath flag with a separated argument.
18607 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18609 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18610 # resulting binary.
18611 hardcode_direct=$hardcode_direct_RC
18613 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18614 # resulting binary.
18615 hardcode_minus_L=$hardcode_minus_L_RC
18617 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18618 # the resulting binary.
18619 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18621 # Set to yes if building a shared library automatically hardcodes DIR into the library
18622 # and all subsequent libraries and executables linked against it.
18623 hardcode_automatic=$hardcode_automatic_RC
18625 # Variables whose values should be saved in libtool wrapper scripts and
18626 # restored at relink time.
18627 variables_saved_for_relink="$variables_saved_for_relink"
18629 # Whether libtool must link a program against all its dependency libraries.
18630 link_all_deplibs=$link_all_deplibs_RC
18632 # Compile-time system search path for libraries
18633 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18635 # Run-time system search path for libraries
18636 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18638 # Fix the shell variable \$srcfile for the compiler.
18639 fix_srcfile_path="$fix_srcfile_path_RC"
18641 # Set to yes if exported symbols are required.
18642 always_export_symbols=$always_export_symbols_RC
18644 # The commands to list exported symbols.
18645 export_symbols_cmds=$lt_export_symbols_cmds_RC
18647 # The commands to extract the exported symbol list from a shared archive.
18648 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18650 # Symbols that should not be listed in the preloaded symbols.
18651 exclude_expsyms=$lt_exclude_expsyms_RC
18653 # Symbols that must always be exported.
18654 include_expsyms=$lt_include_expsyms_RC
18656 # ### END LIBTOOL TAG CONFIG: $tagname
18662 # If there is no Makefile yet, we rely on a make rule to execute
18663 # `config.status --recheck' to rerun these tests and create the
18664 # libtool script then.
18665 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18666 if test -f "$ltmain_in"; then
18667 test -f Makefile && make "$ltmain"
18673 ac_cpp='$CPP $CPPFLAGS'
18674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18683 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
18687 # Append the new tag name to the list of available tags.
18688 if test -n "$tagname" ; then
18689 available_tags="$available_tags $tagname"
18695 # Now substitute the updated list of available tags.
18696 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18697 mv "${ofile}T" "$ofile"
18701 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
18707 # This can be used to rebuild libtool when needed
18708 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18710 # Always use our own libtool.
18711 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18713 # Prevent multiple expansion
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18738 $as_echo_n "checking for ANSI C header files... " >&6; }
18739 if ${ac_cv_header_stdc+:} false; then :
18740 $as_echo_n "(cached) " >&6
18742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18743 /* end confdefs.h. */
18744 #include <stdlib.h>
18745 #include <stdarg.h>
18746 #include <string.h>
18757 if ac_fn_c_try_compile "$LINENO"; then :
18758 ac_cv_header_stdc=yes
18760 ac_cv_header_stdc=no
18762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18764 if test $ac_cv_header_stdc = yes; then
18765 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18767 /* end confdefs.h. */
18768 #include <string.h>
18771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18772 $EGREP "memchr" >/dev/null 2>&1; then :
18775 ac_cv_header_stdc=no
18781 if test $ac_cv_header_stdc = yes; then
18782 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18784 /* end confdefs.h. */
18785 #include <stdlib.h>
18788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18789 $EGREP "free" >/dev/null 2>&1; then :
18792 ac_cv_header_stdc=no
18798 if test $ac_cv_header_stdc = yes; then
18799 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18800 if test "$cross_compiling" = yes; then :
18803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18804 /* end confdefs.h. */
18806 #include <stdlib.h>
18807 #if ((' ' & 0x0FF) == 0x020)
18808 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18809 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18811 # define ISLOWER(c) \
18812 (('a' <= (c) && (c) <= 'i') \
18813 || ('j' <= (c) && (c) <= 'r') \
18814 || ('s' <= (c) && (c) <= 'z'))
18815 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18818 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18823 for (i = 0; i < 256; i++)
18824 if (XOR (islower (i), ISLOWER (i))
18825 || toupper (i) != TOUPPER (i))
18830 if ac_fn_c_try_run "$LINENO"; then :
18833 ac_cv_header_stdc=no
18835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18836 conftest.$ac_objext conftest.beam conftest.$ac_ext
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18842 $as_echo "$ac_cv_header_stdc" >&6; }
18843 if test $ac_cv_header_stdc = yes; then
18845 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18849 ac_config_headers="$ac_config_headers include/config.h"
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18853 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18854 if ${ac_cv_c_const+:} false; then :
18855 $as_echo_n "(cached) " >&6
18857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18858 /* end confdefs.h. */
18863 /* FIXME: Include the comments suggested by Paul. */
18864 #ifndef __cplusplus
18865 /* Ultrix mips cc rejects this. */
18866 typedef int charset[2];
18868 /* SunOS 4.1.1 cc rejects this. */
18869 char const *const *pcpcc;
18871 /* NEC SVR4.0.2 mips cc rejects this. */
18872 struct point {int x, y;};
18873 static struct point const zero = {0,0};
18874 /* AIX XL C 1.02.0.0 rejects this.
18875 It does not let you subtract one const X* pointer from another in
18876 an arm of an if-expression whose if-part is not a constant
18878 const char *g = "string";
18879 pcpcc = &g + (g ? g-g : 0);
18880 /* HPUX 7.0 cc rejects these. */
18882 ppc = (char**) pcpcc;
18883 pcpcc = (char const *const *) ppc;
18884 { /* SCO 3.2v4 cc rejects this. */
18886 char const *s = 0 ? (char *) 0 : (char const *) 0;
18891 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18892 int x[] = {25, 17};
18893 const int *foo = &x[0];
18896 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18897 typedef const int *iptr;
18901 { /* AIX XL C 1.02.0.0 rejects this saying
18902 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18903 struct s { int j; const int *ap[3]; };
18904 struct s *b; b->j = 5;
18906 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18907 const int foo = 10;
18908 if (!foo) return 0;
18910 return !cs[0] && !zero.x;
18917 if ac_fn_c_try_compile "$LINENO"; then :
18922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18925 $as_echo "$ac_cv_c_const" >&6; }
18926 if test $ac_cv_c_const = no; then
18928 $as_echo "#define const /**/" >>confdefs.h
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18933 $as_echo_n "checking for inline... " >&6; }
18934 if ${ac_cv_c_inline+:} false; then :
18935 $as_echo_n "(cached) " >&6
18938 for ac_kw in inline __inline__ __inline; do
18939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18940 /* end confdefs.h. */
18941 #ifndef __cplusplus
18943 static $ac_kw foo_t static_foo () {return 0; }
18944 $ac_kw foo_t foo () {return 0; }
18948 if ac_fn_c_try_compile "$LINENO"; then :
18949 ac_cv_c_inline=$ac_kw
18951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18952 test "$ac_cv_c_inline" != no && break
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18957 $as_echo "$ac_cv_c_inline" >&6; }
18959 case $ac_cv_c_inline in
18962 case $ac_cv_c_inline in
18964 *) ac_val=$ac_cv_c_inline;;
18966 cat >>confdefs.h <<_ACEOF
18967 #ifndef __cplusplus
18968 #define inline $ac_val
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18975 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18976 if ${ac_cv_header_time+:} false; then :
18977 $as_echo_n "(cached) " >&6
18979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18980 /* end confdefs.h. */
18981 #include <sys/types.h>
18982 #include <sys/time.h>
18988 if ((struct tm *) 0)
18994 if ac_fn_c_try_compile "$LINENO"; then :
18995 ac_cv_header_time=yes
18997 ac_cv_header_time=no
18999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19002 $as_echo "$ac_cv_header_time" >&6; }
19003 if test $ac_cv_header_time = yes; then
19005 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19010 if test $ac_cv_c_compiler_gnu = yes; then
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
19012 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
19013 if ${ac_cv_prog_gcc_traditional+:} false; then :
19014 $as_echo_n "(cached) " >&6
19016 ac_pattern="Autoconf.*'x'"
19017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19018 /* end confdefs.h. */
19022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19023 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
19024 ac_cv_prog_gcc_traditional=yes
19026 ac_cv_prog_gcc_traditional=no
19031 if test $ac_cv_prog_gcc_traditional = no; then
19032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19033 /* end confdefs.h. */
19034 #include <termio.h>
19037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19038 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
19039 ac_cv_prog_gcc_traditional=yes
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
19046 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
19047 if test $ac_cv_prog_gcc_traditional = yes; then
19048 CC="$CC -traditional"
19052 ac_fn_c_check_func "$LINENO" "hsearch_r" "ac_cv_func_hsearch_r"
19053 if test "x$ac_cv_func_hsearch_r" = xyes; then :
19057 if test "x$HAVE_HSEARCH_R" != xyes; then
19058 ALSA_HSEARCH_R_TRUE=
19059 ALSA_HSEARCH_R_FALSE='#'
19061 ALSA_HSEARCH_R_TRUE='#'
19062 ALSA_HSEARCH_R_FALSE=
19065 for ac_func in uselocale
19067 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
19068 if test "x$ac_cv_func_uselocale" = xyes; then :
19069 cat >>confdefs.h <<_ACEOF
19070 #define HAVE_USELOCALE 1
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library version" >&5
19079 $as_echo_n "checking for library version... " >&6; }
19080 SND_LIB_VERSION=$VERSION
19081 echo $VERSION > $srcdir/version
19083 cat >>confdefs.h <<_ACEOF
19084 #define VERSION "$SND_LIB_VERSION"
19088 SND_LIB_MAJOR=`echo $VERSION | cut -d . -f 1`
19090 SND_LIB_MINOR=`echo $VERSION | cut -d . -f 2`
19092 SND_LIB_SUBMINOR=`echo $VERSION | cut -d . -f 3 | sed -e 's/^\([^[:alpha:]]*\)\(.*\)$/\1/g'`
19094 SND_LIB_EXTRASTR=`echo $VERSION | cut -d . -f 3 | sed -e 's/^\([^[:alpha:]]*\)\([[:alpha:]]*\)\([[:digit:]]*\)\(.*\)$/\2/g'`
19095 SND_LIB_EXTRAVER=`echo $VERSION | cut -d . -f 3 | sed -e 's/^\([^[:alpha:]]*\)\([[:alpha:]]*\)\([[:digit:]]*\)\(.*\)$/\3/g'`
19096 case "$SND_LIB_EXTRASTR" in
19097 pre) SND_LIB_EXTRAVER=`expr $SND_LIB_EXTRAVER + 00000` ;;
19098 alpha) SND_LIB_EXTRAVER=`expr $SND_LIB_EXTRAVER + 10000` ;;
19099 beta) SND_LIB_EXTRAVER=`expr $SND_LIB_EXTRAVER + 20000` ;;
19100 rc) SND_LIB_EXTRAVER=`expr $SND_LIB_EXTRAVER + 100000` ;;
19101 *) SND_LIB_EXTRAVER=1000000 ;;
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: major $SND_LIB_MAJOR minor $SND_LIB_MINOR subminor $SND_LIB_SUBMINOR extrastr $SND_LIB_EXTRASTR extraver $SND_LIB_EXTRAVER" >&5
19104 $as_echo "major $SND_LIB_MAJOR minor $SND_LIB_MINOR subminor $SND_LIB_SUBMINOR extrastr $SND_LIB_EXTRASTR extraver $SND_LIB_EXTRAVER" >&6; }
19109 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19112 # Check whether --with-configdir was given.
19113 if test "${with_configdir+set}" = set; then :
19114 withval=$with_configdir; confdir="$withval"
19119 if test -z "$confdir"; then
19120 eval dir="$datadir"
19123 *) dir="$prefix/share"
19125 confdir="$dir/alsa"
19127 ALSA_CONFIG_DIR="$confdir"
19129 cat >>confdefs.h <<_ACEOF
19130 #define ALSA_CONFIG_DIR "$confdir"
19135 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
19138 # Check whether --with-plugindir was given.
19139 if test "${with_plugindir+set}" = set; then :
19140 withval=$with_plugindir; plugindir="$withval"
19145 if test -z "$plugindir"; then
19151 plugindir="$dir/$PACKAGE"
19154 cat >>confdefs.h <<_ACEOF
19155 #define ALSA_PLUGIN_DIR "$plugindir"
19158 ALSA_PLUGIN_DIR="$plugindir"
19161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for versioned symbols" >&5
19162 $as_echo_n "checking for versioned symbols... " >&6; }
19164 # Check whether --with-versioned was given.
19165 if test "${with_versioned+set}" = set; then :
19166 withval=$with_versioned; versioned="$withval"
19171 if test "$versioned" = "yes"; then
19172 # it seems that GNU ld versions since 2.10 are not broken
19173 xres=`grep '^VERSION=' ${srcdir}/ltmain.sh | cut -d = -f 2 | cut -d \" -f 2`
19174 major=`echo $xres | cut -d . -f 1`
19175 minor=`echo $xres | cut -d . -f 2`
19177 if test $major -eq 1 && test $minor -gt 3; then
19180 if test $major -gt 1; then
19184 if test $pass -eq 1; then
19186 $as_echo "#define VERSIONED_SYMBOLS /**/" >>confdefs.h
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19189 $as_echo "yes" >&6; }
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken libtool - use libtool v1.4+; no versions" >&5
19192 $as_echo "broken libtool - use libtool v1.4+; no versions" >&6; }
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19196 $as_echo "no" >&6; }
19198 if test x$versioned = xyes; then
19199 VERSIONED_SYMBOLS_TRUE=
19200 VERSIONED_SYMBOLS_FALSE='#'
19202 VERSIONED_SYMBOLS_TRUE='#'
19203 VERSIONED_SYMBOLS_FALSE=
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbolic-functions" >&5
19208 $as_echo_n "checking for symbolic-functions... " >&6; }
19209 # Check whether --enable-symbolic-functions was given.
19210 if test "${enable_symbolic_functions+set}" = set; then :
19211 enableval=$enable_symbolic_functions; symfuncs="$enableval"
19216 if test "$symfuncs" = "yes"; then
19217 if ld --help | grep -q -- '-Bsymbolic-functions'; then
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19219 $as_echo "yes" >&6; }
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported by ld" >&5
19222 $as_echo "not supported by ld" >&6; }
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19227 $as_echo "no" >&6; }
19229 if test x"$symfuncs" = xyes; then
19230 SYMBOLIC_FUNCTIONS_TRUE=
19231 SYMBOLIC_FUNCTIONS_FALSE='#'
19233 SYMBOLIC_FUNCTIONS_TRUE='#'
19234 SYMBOLIC_FUNCTIONS_FALSE=
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for custom symbol prefixes" >&5
19239 $as_echo_n "checking for custom symbol prefixes... " >&6; }
19241 echo "PREFIX=__USER_LABEL_PREFIX__" \
19242 | ${CPP-${CC-gcc} -E} - 2>&1 \
19243 | ${EGREP-grep} "^PREFIX=" \
19244 | ${SED-sed} "s:^PREFIX=::"`
19246 cat >>confdefs.h <<_ACEOF
19247 #define __SYMBOL_PREFIX "$SYMBOL_PREFIX"
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
19252 $as_echo "$SYMBOL_PREFIX" >&6; }
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug" >&5
19255 $as_echo_n "checking for debug... " >&6; }
19257 # Check whether --with-debug was given.
19258 if test "${with_debug+set}" = set; then :
19259 withval=$with_debug; debug="$withval"
19264 if test "$debug" = "yes"; then
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19266 $as_echo "yes" >&6; }
19269 $as_echo "#define NDEBUG /**/" >>confdefs.h
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19272 $as_echo "no" >&6; }
19275 if test "$debug" = "yes"; then
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug assert" >&5
19277 $as_echo_n "checking for debug assert... " >&6; }
19278 # Check whether --enable-debug-assert was given.
19279 if test "${enable_debug_assert+set}" = set; then :
19280 enableval=$enable_debug_assert; debug_assert="$enableval"
19285 if test "$debug_assert" = "yes"; then
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19287 $as_echo "yes" >&6; }
19289 $as_echo "#define ALSA_DEBUG_ASSERT /**/" >>confdefs.h
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19293 $as_echo "no" >&6; }
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tmpdir" >&5
19298 $as_echo_n "checking for tmpdir... " >&6; }
19300 # Check whether --with-tmpdir was given.
19301 if test "${with_tmpdir+set}" = set; then :
19302 withval=$with_tmpdir; tmpdir="$withval"
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tmpdir" >&5
19308 $as_echo "$tmpdir" >&6; }
19310 cat >>confdefs.h <<_ACEOF
19311 #define TMPDIR "$tmpdir"
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for softfloat" >&5
19316 $as_echo_n "checking for softfloat... " >&6; }
19318 # Check whether --with-softfloat was given.
19319 if test "${with_softfloat+set}" = set; then :
19320 withval=$with_softfloat; case "$withval" in
19321 y|yes) softfloat=yes ;;
19326 if test "$softfloat" = "yes" ; then
19328 $as_echo "#define HAVE_SOFT_FLOAT \"1\"" >>confdefs.h
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19331 $as_echo "yes" >&6; }
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19334 $as_echo "no" >&6; }
19338 if test "$softfloat" != "yes"; then
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdl" >&5
19343 $as_echo_n "checking for libdl... " >&6; }
19345 # Check whether --with-libdl was given.
19346 if test "${with_libdl+set}" = set; then :
19347 withval=$with_libdl; have_libdl="$withval"
19352 if test "$have_libdl" = "yes"; then
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
19354 $as_echo_n "checking for dlsym in -ldl... " >&6; }
19355 if ${ac_cv_lib_dl_dlsym+:} false; then :
19356 $as_echo_n "(cached) " >&6
19358 ac_check_lib_save_LIBS=$LIBS
19360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19361 /* end confdefs.h. */
19363 /* Override any GCC internal prototype to avoid an error.
19364 Use char because int might match the return type of a GCC
19365 builtin and then its argument prototype would still apply. */
19378 if ac_fn_c_try_link "$LINENO"; then :
19379 ac_cv_lib_dl_dlsym=yes
19381 ac_cv_lib_dl_dlsym=no
19383 rm -f core conftest.err conftest.$ac_objext \
19384 conftest$ac_exeext conftest.$ac_ext
19385 LIBS=$ac_check_lib_save_LIBS
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
19388 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
19389 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
19393 if test "$HAVE_LIBDL" = "yes" ; then
19394 ALSA_DEPLIBS="$ALSA_DEPLIBS -ldl"
19396 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19401 $as_echo "no" >&6; }
19403 if test "$HAVE_LIBDL"="yes"; then
19404 BUILD_MODULES_TRUE=
19405 BUILD_MODULES_FALSE='#'
19407 BUILD_MODULES_TRUE='#'
19408 BUILD_MODULES_FALSE=
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread" >&5
19413 $as_echo_n "checking for pthread... " >&6; }
19415 # Check whether --with-pthread was given.
19416 if test "${with_pthread+set}" = set; then :
19417 withval=$with_pthread; have_pthread="$withval"
19422 if test "$have_pthread" = "yes"; then
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
19424 $as_echo_n "checking for pthread_join in -lpthread... " >&6; }
19425 if ${ac_cv_lib_pthread_pthread_join+:} false; then :
19426 $as_echo_n "(cached) " >&6
19428 ac_check_lib_save_LIBS=$LIBS
19429 LIBS="-lpthread $LIBS"
19430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19431 /* end confdefs.h. */
19433 /* Override any GCC internal prototype to avoid an error.
19434 Use char because int might match the return type of a GCC
19435 builtin and then its argument prototype would still apply. */
19439 char pthread_join ();
19443 return pthread_join ();
19448 if ac_fn_c_try_link "$LINENO"; then :
19449 ac_cv_lib_pthread_pthread_join=yes
19451 ac_cv_lib_pthread_pthread_join=no
19453 rm -f core conftest.err conftest.$ac_objext \
19454 conftest$ac_exeext conftest.$ac_ext
19455 LIBS=$ac_check_lib_save_LIBS
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
19458 $as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
19459 if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then :
19460 HAVE_LIBPTHREAD="yes"
19463 if test "$HAVE_LIBPTHREAD" = "yes"; then
19464 ALSA_DEPLIBS="$ALSA_DEPLIBS -lpthread"
19466 $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19471 $as_echo "no" >&6; }
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
19475 $as_echo_n "checking for librt... " >&6; }
19477 # Check whether --with-librt was given.
19478 if test "${with_librt+set}" = set; then :
19479 withval=$with_librt; have_librt="$withval"
19484 if test "$have_librt" = "yes"; then
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
19486 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
19487 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
19488 $as_echo_n "(cached) " >&6
19490 ac_check_lib_save_LIBS=$LIBS
19492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19493 /* end confdefs.h. */
19495 /* Override any GCC internal prototype to avoid an error.
19496 Use char because int might match the return type of a GCC
19497 builtin and then its argument prototype would still apply. */
19501 char clock_gettime ();
19505 return clock_gettime ();
19510 if ac_fn_c_try_link "$LINENO"; then :
19511 ac_cv_lib_rt_clock_gettime=yes
19513 ac_cv_lib_rt_clock_gettime=no
19515 rm -f core conftest.err conftest.$ac_objext \
19516 conftest$ac_exeext conftest.$ac_ext
19517 LIBS=$ac_check_lib_save_LIBS
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
19520 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
19521 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
19525 if test "$HAVE_LIBRT" = "yes" ; then
19526 ALSA_DEPLIBS="$ALSA_DEPLIBS -lrt"
19528 $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
19531 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19536 $as_echo "no" >&6; }
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for architecture" >&5
19542 $as_echo_n "checking for architecture... " >&6; }
19545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: x86" >&5
19546 $as_echo "x86" >&6; }
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: x86" >&5
19550 $as_echo "x86" >&6; }
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alpha" >&5
19554 $as_echo "alpha" >&6; }
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ppc" >&5
19558 $as_echo "ppc" >&6; }
19559 CPPFLAGS="$CPPFLAGS -D__ppc__"
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ia64" >&5
19563 $as_echo "ia64" >&6; }
19564 CPPFLAGS="$CPPFLAGS -D__ia64__"
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mips" >&5
19568 $as_echo "mips" >&6; }
19569 CPPFLAGS="$CPPFLAGS -D__mips__"
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arm" >&5
19573 $as_echo "arm" >&6; }
19574 CPPFLAGS="$CPPFLAGS -D__arm__"
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
19578 $as_echo "$host_cpu" >&6; }
19579 echo "No atomic operations supported.."
19583 for ac_header in wordexp.h
19585 ac_fn_c_check_header_mongrel "$LINENO" "wordexp.h" "ac_cv_header_wordexp_h" "$ac_includes_default"
19586 if test "x$ac_cv_header_wordexp_h" = xyes; then :
19587 cat >>confdefs.h <<_ACEOF
19588 #define HAVE_WORDEXP_H 1
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resmgr support" >&5
19597 $as_echo_n "checking for resmgr support... " >&6; }
19598 # Check whether --enable-resmgr was given.
19599 if test "${enable_resmgr+set}" = set; then :
19600 enableval=$enable_resmgr; resmgr="$enableval"
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $resmgr" >&5
19606 $as_echo "$resmgr" >&6; }
19607 if test "$resmgr" = "yes"; then
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rsm_open_device in -lresmgr" >&5
19609 $as_echo_n "checking for rsm_open_device in -lresmgr... " >&6; }
19610 if ${ac_cv_lib_resmgr_rsm_open_device+:} false; then :
19611 $as_echo_n "(cached) " >&6
19613 ac_check_lib_save_LIBS=$LIBS
19614 LIBS="-lresmgr $LIBS"
19615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19616 /* end confdefs.h. */
19618 /* Override any GCC internal prototype to avoid an error.
19619 Use char because int might match the return type of a GCC
19620 builtin and then its argument prototype would still apply. */
19624 char rsm_open_device ();
19628 return rsm_open_device ();
19633 if ac_fn_c_try_link "$LINENO"; then :
19634 ac_cv_lib_resmgr_rsm_open_device=yes
19636 ac_cv_lib_resmgr_rsm_open_device=no
19638 rm -f core conftest.err conftest.$ac_objext \
19639 conftest$ac_exeext conftest.$ac_ext
19640 LIBS=$ac_check_lib_save_LIBS
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resmgr_rsm_open_device" >&5
19643 $as_echo "$ac_cv_lib_resmgr_rsm_open_device" >&6; }
19644 if test "x$ac_cv_lib_resmgr_rsm_open_device" = xyes; then :
19645 cat >>confdefs.h <<_ACEOF
19646 #define HAVE_LIBRESMGR 1
19649 LIBS="-lresmgr $LIBS"
19652 as_fn_error $? "Cannot find libresmgr" "$LINENO" 5
19656 $as_echo "#define SUPPORT_RESMGR \"1\"" >>confdefs.h
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aload* support" >&5
19661 $as_echo_n "checking for aload* support... " >&6; }
19662 # Check whether --enable-aload was given.
19663 if test "${enable_aload+set}" = set; then :
19664 enableval=$enable_aload; aload="$enableval"
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aload" >&5
19670 $as_echo "$aload" >&6; }
19671 if test "$aload" = "yes"; then
19673 $as_echo "#define SUPPORT_ALOAD \"1\"" >>confdefs.h
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA device file directory" >&5
19678 $as_echo_n "checking for ALSA device file directory... " >&6; }
19680 # Check whether --with-alsa-devdir was given.
19681 if test "${with_alsa_devdir+set}" = set; then :
19682 withval=$with_alsa_devdir; alsa_dev_dir="$withval"
19684 alsa_dev_dir="/dev/snd"
19687 if echo "$alsa_dev_dir" | grep -v '/$' > /dev/null; then
19688 alsa_dev_dir="$alsa_dev_dir/"
19691 cat >>confdefs.h <<_ACEOF
19692 #define ALSA_DEVICE_DIRECTORY "$alsa_dev_dir"
19695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alsa_dev_dir" >&5
19696 $as_echo "$alsa_dev_dir" >&6; }
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aload* device file directory" >&5
19699 $as_echo_n "checking for aload* device file directory... " >&6; }
19701 # Check whether --with-aload-devdir was given.
19702 if test "${with_aload_devdir+set}" = set; then :
19703 withval=$with_aload_devdir; aload_dev_dir="$withval"
19705 aload_dev_dir="/dev"
19708 if echo "$aload_dev_dir" | grep -v '/$' > /dev/null; then
19709 aload_dev_dir="$aload_dev_dir/"
19712 cat >>confdefs.h <<_ACEOF
19713 #define ALOAD_DEVICE_DIRECTORY "$aload_dev_dir"
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aload_dev_dir" >&5
19717 $as_echo "$aload_dev_dir" >&6; }
19719 # Check whether --enable-mixer was given.
19720 if test "${enable_mixer+set}" = set; then :
19721 enableval=$enable_mixer; build_mixer="$enableval"
19726 # Check whether --enable-pcm was given.
19727 if test "${enable_pcm+set}" = set; then :
19728 enableval=$enable_pcm; build_pcm="$enableval"
19733 # Check whether --enable-rawmidi was given.
19734 if test "${enable_rawmidi+set}" = set; then :
19735 enableval=$enable_rawmidi; build_rawmidi="$enableval"
19737 build_rawmidi="yes"
19740 # Check whether --enable-hwdep was given.
19741 if test "${enable_hwdep+set}" = set; then :
19742 enableval=$enable_hwdep; build_hwdep="$enableval"
19747 # Check whether --enable-seq was given.
19748 if test "${enable_seq+set}" = set; then :
19749 enableval=$enable_seq; build_seq="$enableval"
19754 # Check whether --enable-ucm was given.
19755 if test "${enable_ucm+set}" = set; then :
19756 enableval=$enable_ucm; build_ucm="$enableval"
19761 # Check whether --enable-alisp was given.
19762 if test "${enable_alisp+set}" = set; then :
19763 enableval=$enable_alisp; build_alisp="$enableval"
19768 test "$softfloat" = "yes" && build_alisp="no"
19769 # Check whether --enable-old-symbols was given.
19770 if test "${enable_old_symbols+set}" = set; then :
19771 enableval=$enable_old_symbols; keep_old_symbols="$enableval"
19773 keep_old_symbols="yes"
19776 if test x$keep_old_symbols = xyes; then
19777 KEEP_OLD_SYMBOLS_TRUE=
19778 KEEP_OLD_SYMBOLS_FALSE='#'
19780 KEEP_OLD_SYMBOLS_TRUE='#'
19781 KEEP_OLD_SYMBOLS_FALSE=
19785 # Check whether --enable-python was given.
19786 if test "${enable_python+set}" = set; then :
19787 enableval=$enable_python; build_python="$enableval"
19794 if test "$build_python" = "yes"; then
19796 # Check whether --with-pythonlibs was given.
19797 if test "${with_pythonlibs+set}" = set; then :
19798 withval=$with_pythonlibs; pythonlibs="$withval"
19800 pythonlibs=`python-config --libs`
19804 # Check whether --with-pythonincludes was given.
19805 if test "${with_pythonincludes+set}" = set; then :
19806 withval=$with_pythonincludes; pythonincludes="$withval"
19808 pythonincludes=`python-config --includes`
19811 if test -z "$pythonlibs"; then
19812 echo "Unable to determine python libraries! Probably python-config is not"
19813 echo "available on this system. Please, use --with-pythonlibs and"
19814 echo "--with-pythonincludes options. Python components are disabled in this build."
19817 PYTHON_LIBS="$pythonlibs"
19818 PYTHON_INCLUDES="$pythonincludes"
19824 if test x$build_mixer = xyes; then
19826 BUILD_MIXER_FALSE='#'
19828 BUILD_MIXER_TRUE='#'
19832 if test x$build_pcm = xyes; then
19834 BUILD_PCM_FALSE='#'
19840 if test x$build_rawmidi = xyes; then
19841 BUILD_RAWMIDI_TRUE=
19842 BUILD_RAWMIDI_FALSE='#'
19844 BUILD_RAWMIDI_TRUE='#'
19845 BUILD_RAWMIDI_FALSE=
19848 if test x$build_hwdep = xyes; then
19850 BUILD_HWDEP_FALSE='#'
19852 BUILD_HWDEP_TRUE='#'
19856 if test x$build_seq = xyes; then
19858 BUILD_SEQ_FALSE='#'
19864 if test x$build_ucm = xyes; then
19866 BUILD_UCM_FALSE='#'
19872 if test x$build_alisp = xyes; then
19874 BUILD_ALISP_FALSE='#'
19876 BUILD_ALISP_TRUE='#'
19880 if test x$build_python = xyes; then
19882 BUILD_PYTHON_FALSE='#'
19884 BUILD_PYTHON_TRUE='#'
19885 BUILD_PYTHON_FALSE=
19889 if test "$build_mixer" = "yes"; then
19891 $as_echo "#define BUILD_MIXER \"1\"" >>confdefs.h
19894 if test "$build_pcm" = "yes"; then
19896 $as_echo "#define BUILD_PCM \"1\"" >>confdefs.h
19899 if test "$build_rawmidi" = "yes"; then
19901 $as_echo "#define BUILD_RAWMIDI \"1\"" >>confdefs.h
19904 if test "$build_hwdep" = "yes"; then
19906 $as_echo "#define BUILD_HWDEP \"1\"" >>confdefs.h
19909 if test "$build_seq" = "yes"; then
19911 $as_echo "#define BUILD_SEQ \"1\"" >>confdefs.h
19914 if test "$build_ucm" = "yes"; then
19916 $as_echo "#define BUILD_UCM \"1\"" >>confdefs.h
19921 if test "$build_pcm" = "yes"; then
19923 # Check whether --with-pcm-plugins was given.
19924 if test "${with_pcm_plugins+set}" = set; then :
19925 withval=$with_pcm_plugins; pcm_plugins="$withval"
19934 PCM_PLUGIN_LIST="copy linear route mulaw alaw adpcm rate plug multi shm file null empty share meter hooks lfloat ladspa dmix dshare dsnoop asym iec958 softvol extplug ioplug mmap_emul"
19936 build_pcm_plugin="no"
19937 for t in $PCM_PLUGIN_LIST; do
19938 eval build_pcm_$t="no"
19941 pcm_plugins=`echo $pcm_plugins | sed 's/,/ /g'`
19942 for p in $pcm_plugins; do
19943 for t in $PCM_PLUGIN_LIST; do
19944 if test "$p" = "$t" -o "$p" = "all"; then
19945 eval build_pcm_$t="yes"
19946 build_pcm_plugin="yes"
19951 if test "$build_pcm_plug" = "yes"; then
19952 build_pcm_linear="yes"
19953 build_pcm_copy="yes"
19956 if test "$build_pcm_ioplug" = "yes"; then
19957 build_pcm_extplug="yes"
19960 if test "$HAVE_LIBDL" != "yes"; then
19961 build_pcm_meter="no"
19962 build_pcm_ladspa="no"
19963 build_pcm_pcm_ioplug="no"
19964 build_pcm_pcm_extplug="no"
19967 if test "$HAVE_LIBPTHREAD" != "yes"; then
19968 build_pcm_share="no"
19971 if test "$softfloat" = "yes"; then
19972 build_pcm_lfloat="no"
19973 build_pcm_ladspa="no"
19976 if test x$build_pcm_plugin = xyes; then
19977 BUILD_PCM_PLUGIN_TRUE=
19978 BUILD_PCM_PLUGIN_FALSE='#'
19980 BUILD_PCM_PLUGIN_TRUE='#'
19981 BUILD_PCM_PLUGIN_FALSE=
19984 if test x$build_pcm_copy = xyes; then
19985 BUILD_PCM_PLUGIN_COPY_TRUE=
19986 BUILD_PCM_PLUGIN_COPY_FALSE='#'
19988 BUILD_PCM_PLUGIN_COPY_TRUE='#'
19989 BUILD_PCM_PLUGIN_COPY_FALSE=
19992 if test x$build_pcm_linear = xyes; then
19993 BUILD_PCM_PLUGIN_LINEAR_TRUE=
19994 BUILD_PCM_PLUGIN_LINEAR_FALSE='#'
19996 BUILD_PCM_PLUGIN_LINEAR_TRUE='#'
19997 BUILD_PCM_PLUGIN_LINEAR_FALSE=
20000 if test x$build_pcm_route = xyes; then
20001 BUILD_PCM_PLUGIN_ROUTE_TRUE=
20002 BUILD_PCM_PLUGIN_ROUTE_FALSE='#'
20004 BUILD_PCM_PLUGIN_ROUTE_TRUE='#'
20005 BUILD_PCM_PLUGIN_ROUTE_FALSE=
20008 if test x$build_pcm_mulaw = xyes; then
20009 BUILD_PCM_PLUGIN_MULAW_TRUE=
20010 BUILD_PCM_PLUGIN_MULAW_FALSE='#'
20012 BUILD_PCM_PLUGIN_MULAW_TRUE='#'
20013 BUILD_PCM_PLUGIN_MULAW_FALSE=
20016 if test x$build_pcm_alaw = xyes; then
20017 BUILD_PCM_PLUGIN_ALAW_TRUE=
20018 BUILD_PCM_PLUGIN_ALAW_FALSE='#'
20020 BUILD_PCM_PLUGIN_ALAW_TRUE='#'
20021 BUILD_PCM_PLUGIN_ALAW_FALSE=
20024 if test x$build_pcm_adpcm = xyes; then
20025 BUILD_PCM_PLUGIN_ADPCM_TRUE=
20026 BUILD_PCM_PLUGIN_ADPCM_FALSE='#'
20028 BUILD_PCM_PLUGIN_ADPCM_TRUE='#'
20029 BUILD_PCM_PLUGIN_ADPCM_FALSE=
20032 if test x$build_pcm_rate = xyes; then
20033 BUILD_PCM_PLUGIN_RATE_TRUE=
20034 BUILD_PCM_PLUGIN_RATE_FALSE='#'
20036 BUILD_PCM_PLUGIN_RATE_TRUE='#'
20037 BUILD_PCM_PLUGIN_RATE_FALSE=
20040 if test x$build_pcm_plug = xyes; then
20041 BUILD_PCM_PLUGIN_PLUG_TRUE=
20042 BUILD_PCM_PLUGIN_PLUG_FALSE='#'
20044 BUILD_PCM_PLUGIN_PLUG_TRUE='#'
20045 BUILD_PCM_PLUGIN_PLUG_FALSE=
20048 if test x$build_pcm_multi = xyes; then
20049 BUILD_PCM_PLUGIN_MULTI_TRUE=
20050 BUILD_PCM_PLUGIN_MULTI_FALSE='#'
20052 BUILD_PCM_PLUGIN_MULTI_TRUE='#'
20053 BUILD_PCM_PLUGIN_MULTI_FALSE=
20056 if test x$build_pcm_shm = xyes; then
20057 BUILD_PCM_PLUGIN_SHM_TRUE=
20058 BUILD_PCM_PLUGIN_SHM_FALSE='#'
20060 BUILD_PCM_PLUGIN_SHM_TRUE='#'
20061 BUILD_PCM_PLUGIN_SHM_FALSE=
20064 if test x$build_pcm_file = xyes; then
20065 BUILD_PCM_PLUGIN_FILE_TRUE=
20066 BUILD_PCM_PLUGIN_FILE_FALSE='#'
20068 BUILD_PCM_PLUGIN_FILE_TRUE='#'
20069 BUILD_PCM_PLUGIN_FILE_FALSE=
20072 if test x$build_pcm_null = xyes; then
20073 BUILD_PCM_PLUGIN_NULL_TRUE=
20074 BUILD_PCM_PLUGIN_NULL_FALSE='#'
20076 BUILD_PCM_PLUGIN_NULL_TRUE='#'
20077 BUILD_PCM_PLUGIN_NULL_FALSE=
20080 if test x$build_pcm_empty = xyes; then
20081 BUILD_PCM_PLUGIN_EMPTY_TRUE=
20082 BUILD_PCM_PLUGIN_EMPTY_FALSE='#'
20084 BUILD_PCM_PLUGIN_EMPTY_TRUE='#'
20085 BUILD_PCM_PLUGIN_EMPTY_FALSE=
20088 if test x$build_pcm_share = xyes; then
20089 BUILD_PCM_PLUGIN_SHARE_TRUE=
20090 BUILD_PCM_PLUGIN_SHARE_FALSE='#'
20092 BUILD_PCM_PLUGIN_SHARE_TRUE='#'
20093 BUILD_PCM_PLUGIN_SHARE_FALSE=
20096 if test x$build_pcm_meter = xyes; then
20097 BUILD_PCM_PLUGIN_METER_TRUE=
20098 BUILD_PCM_PLUGIN_METER_FALSE='#'
20100 BUILD_PCM_PLUGIN_METER_TRUE='#'
20101 BUILD_PCM_PLUGIN_METER_FALSE=
20104 if test x$build_pcm_hooks = xyes; then
20105 BUILD_PCM_PLUGIN_HOOKS_TRUE=
20106 BUILD_PCM_PLUGIN_HOOKS_FALSE='#'
20108 BUILD_PCM_PLUGIN_HOOKS_TRUE='#'
20109 BUILD_PCM_PLUGIN_HOOKS_FALSE=
20112 if test x$build_pcm_lfloat = xyes; then
20113 BUILD_PCM_PLUGIN_LFLOAT_TRUE=
20114 BUILD_PCM_PLUGIN_LFLOAT_FALSE='#'
20116 BUILD_PCM_PLUGIN_LFLOAT_TRUE='#'
20117 BUILD_PCM_PLUGIN_LFLOAT_FALSE=
20120 if test x$build_pcm_ladspa = xyes; then
20121 BUILD_PCM_PLUGIN_LADSPA_TRUE=
20122 BUILD_PCM_PLUGIN_LADSPA_FALSE='#'
20124 BUILD_PCM_PLUGIN_LADSPA_TRUE='#'
20125 BUILD_PCM_PLUGIN_LADSPA_FALSE=
20128 if test x$build_pcm_dmix = xyes; then
20129 BUILD_PCM_PLUGIN_DMIX_TRUE=
20130 BUILD_PCM_PLUGIN_DMIX_FALSE='#'
20132 BUILD_PCM_PLUGIN_DMIX_TRUE='#'
20133 BUILD_PCM_PLUGIN_DMIX_FALSE=
20136 if test x$build_pcm_dshare = xyes; then
20137 BUILD_PCM_PLUGIN_DSHARE_TRUE=
20138 BUILD_PCM_PLUGIN_DSHARE_FALSE='#'
20140 BUILD_PCM_PLUGIN_DSHARE_TRUE='#'
20141 BUILD_PCM_PLUGIN_DSHARE_FALSE=
20144 if test x$build_pcm_dsnoop = xyes; then
20145 BUILD_PCM_PLUGIN_DSNOOP_TRUE=
20146 BUILD_PCM_PLUGIN_DSNOOP_FALSE='#'
20148 BUILD_PCM_PLUGIN_DSNOOP_TRUE='#'
20149 BUILD_PCM_PLUGIN_DSNOOP_FALSE=
20152 if test x$build_pcm_asym = xyes; then
20153 BUILD_PCM_PLUGIN_ASYM_TRUE=
20154 BUILD_PCM_PLUGIN_ASYM_FALSE='#'
20156 BUILD_PCM_PLUGIN_ASYM_TRUE='#'
20157 BUILD_PCM_PLUGIN_ASYM_FALSE=
20160 if test x$build_pcm_iec958 = xyes; then
20161 BUILD_PCM_PLUGIN_IEC958_TRUE=
20162 BUILD_PCM_PLUGIN_IEC958_FALSE='#'
20164 BUILD_PCM_PLUGIN_IEC958_TRUE='#'
20165 BUILD_PCM_PLUGIN_IEC958_FALSE=
20168 if test x$build_pcm_softvol = xyes; then
20169 BUILD_PCM_PLUGIN_SOFTVOL_TRUE=
20170 BUILD_PCM_PLUGIN_SOFTVOL_FALSE='#'
20172 BUILD_PCM_PLUGIN_SOFTVOL_TRUE='#'
20173 BUILD_PCM_PLUGIN_SOFTVOL_FALSE=
20176 if test x$build_pcm_extplug = xyes; then
20177 BUILD_PCM_PLUGIN_EXTPLUG_TRUE=
20178 BUILD_PCM_PLUGIN_EXTPLUG_FALSE='#'
20180 BUILD_PCM_PLUGIN_EXTPLUG_TRUE='#'
20181 BUILD_PCM_PLUGIN_EXTPLUG_FALSE=
20184 if test x$build_pcm_ioplug = xyes; then
20185 BUILD_PCM_PLUGIN_IOPLUG_TRUE=
20186 BUILD_PCM_PLUGIN_IOPLUG_FALSE='#'
20188 BUILD_PCM_PLUGIN_IOPLUG_TRUE='#'
20189 BUILD_PCM_PLUGIN_IOPLUG_FALSE=
20192 if test x$build_pcm_mmap_emul = xyes; then
20193 BUILD_PCM_PLUGIN_MMAP_EMUL_TRUE=
20194 BUILD_PCM_PLUGIN_MMAP_EMUL_FALSE='#'
20196 BUILD_PCM_PLUGIN_MMAP_EMUL_TRUE='#'
20197 BUILD_PCM_PLUGIN_MMAP_EMUL_FALSE=
20201 if test "$build_pcm_rate" = "yes"; then
20203 $as_echo "#define BUILD_PCM_PLUGIN_RATE \"1\"" >>confdefs.h
20206 if test "$build_pcm_route" = "yes"; then
20208 $as_echo "#define BUILD_PCM_PLUGIN_ROUTE \"1\"" >>confdefs.h
20211 if test "$build_pcm_lfloat" = "yes"; then
20213 $as_echo "#define BUILD_PCM_PLUGIN_LFLOAT \"1\"" >>confdefs.h
20216 if test "$build_pcm_adpcm" = "yes"; then
20218 $as_echo "#define BUILD_PCM_PLUGIN_ADPCM \"1\"" >>confdefs.h
20221 if test "$build_pcm_mulaw" = "yes"; then
20223 $as_echo "#define BUILD_PCM_PLUGIN_MULAW \"1\"" >>confdefs.h
20226 if test "$build_pcm_alaw" = "yes"; then
20228 $as_echo "#define BUILD_PCM_PLUGIN_ALAW \"1\"" >>confdefs.h
20231 if test "$build_pcm_mmap_emul" = "yes"; then
20233 $as_echo "#define BUILD_PCM_PLUGIN_MMAP_EMUL \"1\"" >>confdefs.h
20238 rm -f "$srcdir"/src/pcm/pcm_symbols_list.c
20239 touch "$srcdir"/src/pcm/pcm_symbols_list.c
20240 for t in $PCM_PLUGIN_LIST; do
20241 if eval test \$build_pcm_$t = yes; then
20242 echo \&_snd_module_pcm_$t, >> "$srcdir"/src/pcm/pcm_symbols_list.c
20248 # Check whether --with-ctl-plugins was given.
20249 if test "${with_ctl_plugins+set}" = set; then :
20250 withval=$with_ctl_plugins; ctl_plugins="$withval"
20256 CTL_PLUGIN_LIST="shm ext"
20258 build_ctl_plugin="no"
20259 for t in $CTL_PLUGIN_LIST; do
20260 eval build_ctl_$t="no"
20263 ctl_plugins=`echo $ctl_plugins | sed 's/,/ /g'`
20264 for p in $ctl_plugins; do
20265 for t in $CTL_PLUGIN_LIST; do
20266 if test "$p" = "$t" -o "$p" = "all"; then
20267 eval build_ctl_$t="yes"
20268 build_ctl_plugin="yes"
20273 if test x$build_ctl_plugin = xyes; then
20274 BUILD_CTL_PLUGIN_TRUE=
20275 BUILD_CTL_PLUGIN_FALSE='#'
20277 BUILD_CTL_PLUGIN_TRUE='#'
20278 BUILD_CTL_PLUGIN_FALSE=
20281 if test x$build_ctl_shm = xyes; then
20282 BUILD_CTL_PLUGIN_SHM_TRUE=
20283 BUILD_CTL_PLUGIN_SHM_FALSE='#'
20285 BUILD_CTL_PLUGIN_SHM_TRUE='#'
20286 BUILD_CTL_PLUGIN_SHM_FALSE=
20289 if test x$build_ctl_ext = xyes; then
20290 BUILD_CTL_PLUGIN_EXT_TRUE=
20291 BUILD_CTL_PLUGIN_EXT_FALSE='#'
20293 BUILD_CTL_PLUGIN_EXT_TRUE='#'
20294 BUILD_CTL_PLUGIN_EXT_FALSE=
20298 rm -f "$srcdir"/src/control/ctl_symbols_list.c
20299 touch "$srcdir"/src/control/ctl_symbols_list.c
20300 for t in $CTL_PLUGIN_LIST; do
20301 if eval test \$build_ctl_$t = yes; then
20302 echo \&_snd_module_control_$t, >> "$srcdir"/src/control/ctl_symbols_list.c
20306 if test ! -L "$srcdir"/include/alsa ; then
20307 echo "Making a symlink include/alsa"
20308 rm -f "$srcdir"/include/alsa
20309 ln -sf . "$srcdir"/include/alsa
20312 ac_config_files="$ac_config_files Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg include/Makefile include/sound/Makefile src/Versions src/Makefile src/control/Makefile src/mixer/Makefile src/pcm/Makefile src/pcm/scopes/Makefile src/rawmidi/Makefile src/timer/Makefile src/hwdep/Makefile src/seq/Makefile src/ucm/Makefile src/compat/Makefile src/alisp/Makefile src/conf/Makefile src/conf/cards/Makefile src/conf/pcm/Makefile modules/Makefile modules/mixer/Makefile modules/mixer/simple/Makefile alsalisp/Makefile aserver/Makefile test/Makefile test/lsb/Makefile utils/Makefile utils/alsa-lib.spec utils/alsa.pc"
20314 cat >confcache <<\_ACEOF
20315 # This file is a shell script that caches the results of configure
20316 # tests run on this system so they can be shared between configure
20317 # scripts and configure runs, see configure's option --config-cache.
20318 # It is not useful on other systems. If it contains results you don't
20319 # want to keep, you may remove or edit it.
20321 # config.status only pays attention to the cache file if you give it
20322 # the --recheck option to rerun configure.
20324 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20325 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20326 # following values.
20330 # The following way of writing the cache mishandles newlines in values,
20331 # but we know of no workaround that is simple, portable, and efficient.
20332 # So, we kill variables containing newlines.
20333 # Ultrix sh set writes to stderr and can't be redirected directly,
20334 # and sets the high bit in the cache file unless we assign to the vars.
20336 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20337 eval ac_val=\$$ac_var
20341 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20342 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20345 _ | IFS | as_nl) ;; #(
20346 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20347 *) { eval $ac_var=; unset $ac_var;} ;;
20353 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20354 *${as_nl}ac_space=\ *)
20355 # `set' does not quote correctly, so add quotes: double-quote
20356 # substitution turns \\\\ into \\, and sed turns \\ into \.
20359 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20362 # `set' quotes correctly as required by POSIX, so do not add quotes.
20363 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20372 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20374 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20376 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20377 if test -w "$cache_file"; then
20378 if test "x$cache_file" != "x/dev/null"; then
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20380 $as_echo "$as_me: updating cache $cache_file" >&6;}
20381 if test ! -f "$cache_file" || test -h "$cache_file"; then
20382 cat confcache >"$cache_file"
20384 case $cache_file in #(
20386 mv -f confcache "$cache_file"$$ &&
20387 mv -f "$cache_file"$$ "$cache_file" ;; #(
20389 mv -f confcache "$cache_file" ;;
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20395 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20400 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20401 # Let make expand exec_prefix.
20402 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20404 DEFS=-DHAVE_CONFIG_H
20409 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20410 # 1. Remove the extension, and $U if already installed.
20411 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20412 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20413 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20414 # will be set to the directory where LIBOBJS objects are built.
20415 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20416 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20418 LIBOBJS=$ac_libobjs
20420 LTLIBOBJS=$ac_ltlibobjs
20423 if test -n "$EXEEXT"; then
20425 am__EXEEXT_FALSE='#'
20427 am__EXEEXT_TRUE='#'
20431 if test -z "${INSTALL_M4_TRUE}" && test -z "${INSTALL_M4_FALSE}"; then
20432 as_fn_error $? "conditional \"INSTALL_M4\" was never defined.
20433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20435 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20436 as_fn_error $? "conditional \"AMDEP\" was never defined.
20437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20439 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20440 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20443 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20444 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20447 if test -z "${ALSA_HSEARCH_R_TRUE}" && test -z "${ALSA_HSEARCH_R_FALSE}"; then
20448 as_fn_error $? "conditional \"ALSA_HSEARCH_R\" was never defined.
20449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20451 if test -z "${VERSIONED_SYMBOLS_TRUE}" && test -z "${VERSIONED_SYMBOLS_FALSE}"; then
20452 as_fn_error $? "conditional \"VERSIONED_SYMBOLS\" was never defined.
20453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20455 if test -z "${SYMBOLIC_FUNCTIONS_TRUE}" && test -z "${SYMBOLIC_FUNCTIONS_FALSE}"; then
20456 as_fn_error $? "conditional \"SYMBOLIC_FUNCTIONS\" was never defined.
20457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20459 if test -z "${BUILD_MODULES_TRUE}" && test -z "${BUILD_MODULES_FALSE}"; then
20460 as_fn_error $? "conditional \"BUILD_MODULES\" was never defined.
20461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20463 if test -z "${KEEP_OLD_SYMBOLS_TRUE}" && test -z "${KEEP_OLD_SYMBOLS_FALSE}"; then
20464 as_fn_error $? "conditional \"KEEP_OLD_SYMBOLS\" was never defined.
20465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20467 if test -z "${BUILD_MIXER_TRUE}" && test -z "${BUILD_MIXER_FALSE}"; then
20468 as_fn_error $? "conditional \"BUILD_MIXER\" was never defined.
20469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20471 if test -z "${BUILD_PCM_TRUE}" && test -z "${BUILD_PCM_FALSE}"; then
20472 as_fn_error $? "conditional \"BUILD_PCM\" was never defined.
20473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20475 if test -z "${BUILD_RAWMIDI_TRUE}" && test -z "${BUILD_RAWMIDI_FALSE}"; then
20476 as_fn_error $? "conditional \"BUILD_RAWMIDI\" was never defined.
20477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20479 if test -z "${BUILD_HWDEP_TRUE}" && test -z "${BUILD_HWDEP_FALSE}"; then
20480 as_fn_error $? "conditional \"BUILD_HWDEP\" was never defined.
20481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20483 if test -z "${BUILD_SEQ_TRUE}" && test -z "${BUILD_SEQ_FALSE}"; then
20484 as_fn_error $? "conditional \"BUILD_SEQ\" was never defined.
20485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20487 if test -z "${BUILD_UCM_TRUE}" && test -z "${BUILD_UCM_FALSE}"; then
20488 as_fn_error $? "conditional \"BUILD_UCM\" was never defined.
20489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20491 if test -z "${BUILD_ALISP_TRUE}" && test -z "${BUILD_ALISP_FALSE}"; then
20492 as_fn_error $? "conditional \"BUILD_ALISP\" was never defined.
20493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20495 if test -z "${BUILD_PYTHON_TRUE}" && test -z "${BUILD_PYTHON_FALSE}"; then
20496 as_fn_error $? "conditional \"BUILD_PYTHON\" was never defined.
20497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20499 if test -z "${BUILD_PCM_PLUGIN_TRUE}" && test -z "${BUILD_PCM_PLUGIN_FALSE}"; then
20500 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN\" was never defined.
20501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20503 if test -z "${BUILD_PCM_PLUGIN_COPY_TRUE}" && test -z "${BUILD_PCM_PLUGIN_COPY_FALSE}"; then
20504 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_COPY\" was never defined.
20505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20507 if test -z "${BUILD_PCM_PLUGIN_LINEAR_TRUE}" && test -z "${BUILD_PCM_PLUGIN_LINEAR_FALSE}"; then
20508 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_LINEAR\" was never defined.
20509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20511 if test -z "${BUILD_PCM_PLUGIN_ROUTE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_ROUTE_FALSE}"; then
20512 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_ROUTE\" was never defined.
20513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20515 if test -z "${BUILD_PCM_PLUGIN_MULAW_TRUE}" && test -z "${BUILD_PCM_PLUGIN_MULAW_FALSE}"; then
20516 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_MULAW\" was never defined.
20517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20519 if test -z "${BUILD_PCM_PLUGIN_ALAW_TRUE}" && test -z "${BUILD_PCM_PLUGIN_ALAW_FALSE}"; then
20520 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_ALAW\" was never defined.
20521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20523 if test -z "${BUILD_PCM_PLUGIN_ADPCM_TRUE}" && test -z "${BUILD_PCM_PLUGIN_ADPCM_FALSE}"; then
20524 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_ADPCM\" was never defined.
20525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20527 if test -z "${BUILD_PCM_PLUGIN_RATE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_RATE_FALSE}"; then
20528 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_RATE\" was never defined.
20529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20531 if test -z "${BUILD_PCM_PLUGIN_PLUG_TRUE}" && test -z "${BUILD_PCM_PLUGIN_PLUG_FALSE}"; then
20532 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_PLUG\" was never defined.
20533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20535 if test -z "${BUILD_PCM_PLUGIN_MULTI_TRUE}" && test -z "${BUILD_PCM_PLUGIN_MULTI_FALSE}"; then
20536 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_MULTI\" was never defined.
20537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20539 if test -z "${BUILD_PCM_PLUGIN_SHM_TRUE}" && test -z "${BUILD_PCM_PLUGIN_SHM_FALSE}"; then
20540 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_SHM\" was never defined.
20541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20543 if test -z "${BUILD_PCM_PLUGIN_FILE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_FILE_FALSE}"; then
20544 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_FILE\" was never defined.
20545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20547 if test -z "${BUILD_PCM_PLUGIN_NULL_TRUE}" && test -z "${BUILD_PCM_PLUGIN_NULL_FALSE}"; then
20548 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_NULL\" was never defined.
20549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20551 if test -z "${BUILD_PCM_PLUGIN_EMPTY_TRUE}" && test -z "${BUILD_PCM_PLUGIN_EMPTY_FALSE}"; then
20552 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_EMPTY\" was never defined.
20553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20555 if test -z "${BUILD_PCM_PLUGIN_SHARE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_SHARE_FALSE}"; then
20556 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_SHARE\" was never defined.
20557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20559 if test -z "${BUILD_PCM_PLUGIN_METER_TRUE}" && test -z "${BUILD_PCM_PLUGIN_METER_FALSE}"; then
20560 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_METER\" was never defined.
20561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20563 if test -z "${BUILD_PCM_PLUGIN_HOOKS_TRUE}" && test -z "${BUILD_PCM_PLUGIN_HOOKS_FALSE}"; then
20564 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_HOOKS\" was never defined.
20565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20567 if test -z "${BUILD_PCM_PLUGIN_LFLOAT_TRUE}" && test -z "${BUILD_PCM_PLUGIN_LFLOAT_FALSE}"; then
20568 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_LFLOAT\" was never defined.
20569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20571 if test -z "${BUILD_PCM_PLUGIN_LADSPA_TRUE}" && test -z "${BUILD_PCM_PLUGIN_LADSPA_FALSE}"; then
20572 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_LADSPA\" was never defined.
20573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20575 if test -z "${BUILD_PCM_PLUGIN_DMIX_TRUE}" && test -z "${BUILD_PCM_PLUGIN_DMIX_FALSE}"; then
20576 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_DMIX\" was never defined.
20577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20579 if test -z "${BUILD_PCM_PLUGIN_DSHARE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_DSHARE_FALSE}"; then
20580 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_DSHARE\" was never defined.
20581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20583 if test -z "${BUILD_PCM_PLUGIN_DSNOOP_TRUE}" && test -z "${BUILD_PCM_PLUGIN_DSNOOP_FALSE}"; then
20584 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_DSNOOP\" was never defined.
20585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20587 if test -z "${BUILD_PCM_PLUGIN_ASYM_TRUE}" && test -z "${BUILD_PCM_PLUGIN_ASYM_FALSE}"; then
20588 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_ASYM\" was never defined.
20589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20591 if test -z "${BUILD_PCM_PLUGIN_IEC958_TRUE}" && test -z "${BUILD_PCM_PLUGIN_IEC958_FALSE}"; then
20592 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_IEC958\" was never defined.
20593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20595 if test -z "${BUILD_PCM_PLUGIN_SOFTVOL_TRUE}" && test -z "${BUILD_PCM_PLUGIN_SOFTVOL_FALSE}"; then
20596 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_SOFTVOL\" was never defined.
20597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20599 if test -z "${BUILD_PCM_PLUGIN_EXTPLUG_TRUE}" && test -z "${BUILD_PCM_PLUGIN_EXTPLUG_FALSE}"; then
20600 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_EXTPLUG\" was never defined.
20601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20603 if test -z "${BUILD_PCM_PLUGIN_IOPLUG_TRUE}" && test -z "${BUILD_PCM_PLUGIN_IOPLUG_FALSE}"; then
20604 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_IOPLUG\" was never defined.
20605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20607 if test -z "${BUILD_PCM_PLUGIN_MMAP_EMUL_TRUE}" && test -z "${BUILD_PCM_PLUGIN_MMAP_EMUL_FALSE}"; then
20608 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_MMAP_EMUL\" was never defined.
20609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20611 if test -z "${BUILD_CTL_PLUGIN_TRUE}" && test -z "${BUILD_CTL_PLUGIN_FALSE}"; then
20612 as_fn_error $? "conditional \"BUILD_CTL_PLUGIN\" was never defined.
20613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20615 if test -z "${BUILD_CTL_PLUGIN_SHM_TRUE}" && test -z "${BUILD_CTL_PLUGIN_SHM_FALSE}"; then
20616 as_fn_error $? "conditional \"BUILD_CTL_PLUGIN_SHM\" was never defined.
20617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20619 if test -z "${BUILD_CTL_PLUGIN_EXT_TRUE}" && test -z "${BUILD_CTL_PLUGIN_EXT_FALSE}"; then
20620 as_fn_error $? "conditional \"BUILD_CTL_PLUGIN_EXT\" was never defined.
20621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20624 : "${CONFIG_STATUS=./config.status}"
20626 ac_clean_files_save=$ac_clean_files
20627 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20629 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20631 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20633 # Generated by $as_me.
20634 # Run this file to recreate the current configuration.
20635 # Compiler output produced by configure, useful for debugging
20636 # configure, is in config.log if it exists.
20639 ac_cs_recheck=false
20642 SHELL=\${CONFIG_SHELL-$SHELL}
20645 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20646 ## -------------------- ##
20647 ## M4sh Initialization. ##
20648 ## -------------------- ##
20650 # Be more Bourne compatible
20651 DUALCASE=1; export DUALCASE # for MKS sh
20652 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20655 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20656 # is contrary to our usage. Disable this feature.
20657 alias -g '${1+"$@"}'='"$@"'
20658 setopt NO_GLOB_SUBST
20660 case `(set -o) 2>/dev/null` in #(
20672 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20673 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20674 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20675 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20676 # Prefer a ksh shell builtin over an external printf program on Solaris,
20677 # but without wasting forks for bash or zsh.
20678 if test -z "$BASH_VERSION$ZSH_VERSION" \
20679 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20680 as_echo='print -r --'
20681 as_echo_n='print -rn --'
20682 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20683 as_echo='printf %s\n'
20684 as_echo_n='printf %s'
20686 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20687 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20688 as_echo_n='/usr/ucb/echo -n'
20690 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20691 as_echo_n_body='eval
20695 expr "X$arg" : "X\\(.*\\)$as_nl";
20696 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20698 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20700 export as_echo_n_body
20701 as_echo_n='sh -c $as_echo_n_body as_echo'
20703 export as_echo_body
20704 as_echo='sh -c $as_echo_body as_echo'
20707 # The user is always right.
20708 if test "${PATH_SEPARATOR+set}" != set; then
20710 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20711 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20718 # We need space, tab and new line, in precisely that order. Quoting is
20719 # there to prevent editors from complaining about space-tab.
20720 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20721 # splitting by setting IFS to empty value.)
20724 # Find who we are. Look in the path if we contain no directory separator.
20727 *[\\/]* ) as_myself=$0 ;;
20728 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20729 for as_dir in $PATH
20732 test -z "$as_dir" && as_dir=.
20733 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20739 # We did not find ourselves, most probably we were run as `sh COMMAND'
20740 # in which case we are not to be found in the path.
20741 if test "x$as_myself" = x; then
20744 if test ! -f "$as_myself"; then
20745 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20749 # Unset variables that we do not need and which cause bugs (e.g. in
20750 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20751 # suppresses any "Segmentation fault" message there. '((' could
20752 # trigger a bug in pdksh 5.2.14.
20753 for as_var in BASH_ENV ENV MAIL MAILPATH
20754 do eval test x\${$as_var+set} = xset \
20755 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20768 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20771 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20772 # ----------------------------------------
20773 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20774 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20775 # script with STATUS, using 1 if that was 0.
20778 as_status=$1; test $as_status -eq 0 && as_status=1
20780 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20781 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20783 $as_echo "$as_me: error: $2" >&2
20784 as_fn_exit $as_status
20788 # as_fn_set_status STATUS
20789 # -----------------------
20790 # Set $? to STATUS, without forking.
20791 as_fn_set_status ()
20794 } # as_fn_set_status
20796 # as_fn_exit STATUS
20797 # -----------------
20798 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20802 as_fn_set_status $1
20808 # Portably unset VAR.
20811 { eval $1=; unset $1;}
20813 as_unset=as_fn_unset
20814 # as_fn_append VAR VALUE
20815 # ----------------------
20816 # Append the text in VALUE to the end of the definition contained in VAR. Take
20817 # advantage of any shell optimizations that allow amortized linear growth over
20818 # repeated appends, instead of the typical quadratic growth present in naive
20820 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20821 eval 'as_fn_append ()
20832 # as_fn_arith ARG...
20833 # ------------------
20834 # Perform arithmetic evaluation on the ARGs, and store the result in the
20835 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20836 # must be portable across $(()) and expr.
20837 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20838 eval 'as_fn_arith ()
20845 as_val=`expr "$@" || test $? -eq 1`
20850 if expr a : '\(a\)' >/dev/null 2>&1 &&
20851 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20857 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20858 as_basename=basename
20863 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20869 as_me=`$as_basename -- "$0" ||
20870 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20871 X"$0" : 'X\(//\)$' \| \
20872 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20874 sed '/^.*\/\([^/][^/]*\)\/*$/{
20888 # Avoid depending upon Character Ranges.
20889 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20890 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20891 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20892 as_cr_digits='0123456789'
20893 as_cr_alnum=$as_cr_Letters$as_cr_digits
20895 ECHO_C= ECHO_N= ECHO_T=
20896 case `echo -n x` in #(((((
20898 case `echo 'xy\c'` in
20899 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20901 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20908 rm -f conf$$ conf$$.exe conf$$.file
20909 if test -d conf$$.dir; then
20910 rm -f conf$$.dir/conf$$.file
20913 mkdir conf$$.dir 2>/dev/null
20915 if (echo >conf$$.file) 2>/dev/null; then
20916 if ln -s conf$$.file conf$$ 2>/dev/null; then
20918 # ... but there are two gotchas:
20919 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20920 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20921 # In both cases, we have to default to `cp -p'.
20922 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20924 elif ln conf$$.file conf$$ 2>/dev/null; then
20932 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20933 rmdir conf$$.dir 2>/dev/null
20938 # Create "$as_dir" as a directory, including parents if necessary.
20943 -*) as_dir=./$as_dir;;
20945 test -d "$as_dir" || eval $as_mkdir_p || {
20949 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20950 *) as_qdir=$as_dir;;
20952 as_dirs="'$as_qdir' $as_dirs"
20953 as_dir=`$as_dirname -- "$as_dir" ||
20954 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20955 X"$as_dir" : 'X\(//\)[^/]' \| \
20956 X"$as_dir" : 'X\(//\)$' \| \
20957 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20958 $as_echo X"$as_dir" |
20959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20963 /^X\(\/\/\)[^/].*/{
20976 test -d "$as_dir" && break
20978 test -z "$as_dirs" || eval "mkdir $as_dirs"
20979 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20983 if mkdir -p . 2>/dev/null; then
20984 as_mkdir_p='mkdir -p "$as_dir"'
20986 test -d ./-p && rmdir ./-p
20990 if test -x / >/dev/null 2>&1; then
20991 as_test_x='test -x'
20993 if ls -dL / >/dev/null 2>&1; then
21000 if test -d "$1"; then
21006 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21007 ???[sx]*):;;*)false;;esac;fi
21011 as_executable_p=$as_test_x
21013 # Sed expression to map a string onto a valid CPP name.
21014 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21016 # Sed expression to map a string onto a valid variable name.
21017 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21021 ## ----------------------------------- ##
21022 ## Main body of $CONFIG_STATUS script. ##
21023 ## ----------------------------------- ##
21025 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21028 # Save the log message, to keep $0 and so on meaningful, and to
21029 # report actual input values of CONFIG_FILES etc. instead of their
21030 # values after options handling.
21032 This file was extended by $as_me, which was
21033 generated by GNU Autoconf 2.68. Invocation command line was
21035 CONFIG_FILES = $CONFIG_FILES
21036 CONFIG_HEADERS = $CONFIG_HEADERS
21037 CONFIG_LINKS = $CONFIG_LINKS
21038 CONFIG_COMMANDS = $CONFIG_COMMANDS
21041 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21046 case $ac_config_files in *"
21047 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21050 case $ac_config_headers in *"
21051 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21056 # Files that config.status was made for.
21057 config_files="$ac_config_files"
21058 config_headers="$ac_config_headers"
21059 config_commands="$ac_config_commands"
21063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21065 \`$as_me' instantiates files and other configuration actions
21066 from templates according to the current configuration. Unless the files
21067 and actions are specified as TAGs, all are instantiated by default.
21069 Usage: $0 [OPTION]... [TAG]...
21071 -h, --help print this help, then exit
21072 -V, --version print version number and configuration settings, then exit
21073 --config print configuration, then exit
21074 -q, --quiet, --silent
21075 do not print progress messages
21076 -d, --debug don't remove temporary files
21077 --recheck update $as_me by reconfiguring in the same conditions
21078 --file=FILE[:TEMPLATE]
21079 instantiate the configuration file FILE
21080 --header=FILE[:TEMPLATE]
21081 instantiate the configuration header FILE
21083 Configuration files:
21086 Configuration headers:
21089 Configuration commands:
21092 Report bugs to the package provider."
21095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21096 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21099 configured by $0, generated by GNU Autoconf 2.68,
21100 with options \\"\$ac_cs_config\\"
21102 Copyright (C) 2010 Free Software Foundation, Inc.
21103 This config.status script is free software; the Free Software Foundation
21104 gives unlimited permission to copy, distribute and modify it."
21111 test -n "\$AWK" || AWK=awk
21114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21115 # The default lists apply if the user does not specify any file.
21121 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21122 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21126 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21138 # Handling of the options.
21139 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21141 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21142 $as_echo "$ac_cs_version"; exit ;;
21143 --config | --confi | --conf | --con | --co | --c )
21144 $as_echo "$ac_cs_config"; exit ;;
21145 --debug | --debu | --deb | --de | --d | -d )
21147 --file | --fil | --fi | --f )
21150 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21151 '') as_fn_error $? "missing file argument" ;;
21153 as_fn_append CONFIG_FILES " '$ac_optarg'"
21154 ac_need_defaults=false;;
21155 --header | --heade | --head | --hea )
21158 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21160 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21161 ac_need_defaults=false;;
21163 # Conflict between --help and --header
21164 as_fn_error $? "ambiguous option: \`$1'
21165 Try \`$0 --help' for more information.";;
21166 --help | --hel | -h )
21167 $as_echo "$ac_cs_usage"; exit ;;
21168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21169 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21172 # This is an error.
21173 -*) as_fn_error $? "unrecognized option: \`$1'
21174 Try \`$0 --help' for more information." ;;
21176 *) as_fn_append ac_config_targets " $1"
21177 ac_need_defaults=false ;;
21183 ac_configure_extra_args=
21185 if $ac_cs_silent; then
21187 ac_configure_extra_args="$ac_configure_extra_args --silent"
21191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21192 if \$ac_cs_recheck; then
21193 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21195 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21196 CONFIG_SHELL='$SHELL'
21197 export CONFIG_SHELL
21202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21206 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21207 ## Running $as_me. ##
21213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21217 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21223 # Handling of arguments.
21224 for ac_config_target in $ac_config_targets
21226 case $ac_config_target in
21227 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21228 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21229 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21230 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21231 "doc/pictures/Makefile") CONFIG_FILES="$CONFIG_FILES doc/pictures/Makefile" ;;
21232 "doc/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doc/doxygen.cfg" ;;
21233 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21234 "include/sound/Makefile") CONFIG_FILES="$CONFIG_FILES include/sound/Makefile" ;;
21235 "src/Versions") CONFIG_FILES="$CONFIG_FILES src/Versions" ;;
21236 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21237 "src/control/Makefile") CONFIG_FILES="$CONFIG_FILES src/control/Makefile" ;;
21238 "src/mixer/Makefile") CONFIG_FILES="$CONFIG_FILES src/mixer/Makefile" ;;
21239 "src/pcm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pcm/Makefile" ;;
21240 "src/pcm/scopes/Makefile") CONFIG_FILES="$CONFIG_FILES src/pcm/scopes/Makefile" ;;
21241 "src/rawmidi/Makefile") CONFIG_FILES="$CONFIG_FILES src/rawmidi/Makefile" ;;
21242 "src/timer/Makefile") CONFIG_FILES="$CONFIG_FILES src/timer/Makefile" ;;
21243 "src/hwdep/Makefile") CONFIG_FILES="$CONFIG_FILES src/hwdep/Makefile" ;;
21244 "src/seq/Makefile") CONFIG_FILES="$CONFIG_FILES src/seq/Makefile" ;;
21245 "src/ucm/Makefile") CONFIG_FILES="$CONFIG_FILES src/ucm/Makefile" ;;
21246 "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
21247 "src/alisp/Makefile") CONFIG_FILES="$CONFIG_FILES src/alisp/Makefile" ;;
21248 "src/conf/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/Makefile" ;;
21249 "src/conf/cards/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/cards/Makefile" ;;
21250 "src/conf/pcm/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/pcm/Makefile" ;;
21251 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
21252 "modules/mixer/Makefile") CONFIG_FILES="$CONFIG_FILES modules/mixer/Makefile" ;;
21253 "modules/mixer/simple/Makefile") CONFIG_FILES="$CONFIG_FILES modules/mixer/simple/Makefile" ;;
21254 "alsalisp/Makefile") CONFIG_FILES="$CONFIG_FILES alsalisp/Makefile" ;;
21255 "aserver/Makefile") CONFIG_FILES="$CONFIG_FILES aserver/Makefile" ;;
21256 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21257 "test/lsb/Makefile") CONFIG_FILES="$CONFIG_FILES test/lsb/Makefile" ;;
21258 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
21259 "utils/alsa-lib.spec") CONFIG_FILES="$CONFIG_FILES utils/alsa-lib.spec" ;;
21260 "utils/alsa.pc") CONFIG_FILES="$CONFIG_FILES utils/alsa.pc" ;;
21262 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21267 # If the user did not use the arguments to specify the items to instantiate,
21268 # then the envvar interface is used. Set only those that are not.
21269 # We use the long form for the default assignment because of an extremely
21270 # bizarre bug on SunOS 4.1.3.
21271 if $ac_need_defaults; then
21272 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21273 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21274 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21277 # Have a temporary directory for convenience. Make it in the build tree
21278 # simply because there is no reason against having it here, and in addition,
21279 # creating and moving files from /tmp can sometimes cause problems.
21280 # Hook for its removal unless debugging.
21281 # Note that there is a small window in which the directory will not be cleaned:
21282 # after its creation but before its name has been assigned to `$tmp'.
21286 trap 'exit_status=$?
21287 : "${ac_tmp:=$tmp}"
21288 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21290 trap 'as_fn_exit 1' 1 2 13 15
21292 # Create a (secure) tmp directory for tmp files.
21295 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21299 tmp=./conf$$-$RANDOM
21300 (umask 077 && mkdir "$tmp")
21301 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21304 # Set up the scripts for CONFIG_FILES section.
21305 # No need to generate them if there are no CONFIG_FILES.
21306 # This happens for instance with `./config.status config.h'.
21307 if test -n "$CONFIG_FILES"; then
21310 ac_cr=`echo X | tr X '\015'`
21311 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21312 # But we know of no other shell where ac_cr would be empty at this
21313 # point, so we can use a bashism as a fallback.
21314 if test "x$ac_cr" = x; then
21315 eval ac_cr=\$\'\\r\'
21317 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21318 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21321 ac_cs_awk_cr=$ac_cr
21324 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21329 echo "cat >conf$$subs.awk <<_ACEOF" &&
21330 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21332 } >conf$$subs.sh ||
21333 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21334 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21336 for ac_last_try in false false false false false :; do
21337 . ./conf$$subs.sh ||
21338 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21340 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21341 if test $ac_delim_n = $ac_delim_num; then
21343 elif $ac_last_try; then
21344 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21346 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21349 rm -f conf$$subs.sh
21351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21352 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21356 s/^/S["/; s/!.*/"]=/
21366 s/\(.\{148\}\)..*/\1/
21368 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21373 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21380 s/\(.\{148\}\)..*/\1/
21382 s/["\\]/\\&/g; s/^/"/; s/$/"/
21386 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21391 ' <conf$$subs.awk | sed '
21396 ' >>$CONFIG_STATUS || ac_write_fail=1
21397 rm -f conf$$subs.awk
21398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21400 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21401 for (key in S) S_is_set[key] = 1
21407 nfields = split(line, field, "@")
21409 len = length(field[1])
21410 for (i = 2; i < nfields; i++) {
21412 keylen = length(key)
21413 if (S_is_set[key]) {
21415 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21416 len += length(value) + length(field[++i])
21427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21428 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21429 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21432 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21433 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21436 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21437 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21438 # trailing colons and then remove the whole line if VPATH becomes empty
21439 # (actually we leave an empty line to preserve line numbers).
21440 if test "x$srcdir" = x.; then
21441 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21460 fi # test -n "$CONFIG_FILES"
21462 # Set up the scripts for CONFIG_HEADERS section.
21463 # No need to generate them if there are no CONFIG_HEADERS.
21464 # This happens for instance with `./config.status Makefile'.
21465 if test -n "$CONFIG_HEADERS"; then
21466 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21470 # Transform confdefs.h into an awk script `defines.awk', embedded as
21471 # here-document in config.status, that substitutes the proper values into
21472 # config.h.in to produce config.h.
21474 # Create a delimiter string that does not exist in confdefs.h, to ease
21475 # handling of long lines.
21477 for ac_last_try in false false :; do
21478 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21479 if test -z "$ac_tt"; then
21481 elif $ac_last_try; then
21482 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21484 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21488 # For the awk script, D is an array of macro values keyed by name,
21489 # likewise P contains macro parameters if any. Preserve backslash
21490 # newline sequences.
21492 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21494 s/.\{148\}/&'"$ac_delim"'/g
21497 s/^[ ]*#[ ]*define[ ][ ]*/ /
21504 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21506 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21510 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21511 D["\1"]=" \3\\\\\\n"\\/p
21513 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21518 s/.\{148\}/&'"$ac_delim"'/g
21523 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21526 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21528 ' <confdefs.h | sed '
21529 s/'"$ac_delim"'/"\\\
21530 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21533 for (key in D) D_is_set[key] = 1
21536 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21538 split(line, arg, " ")
21539 if (arg[1] == "#") {
21543 defundef = substr(arg[1], 2)
21546 split(mac1, mac2, "(") #)
21548 prefix = substr(line, 1, index(line, defundef) - 1)
21549 if (D_is_set[macro]) {
21550 # Preserve the white space surrounding the "#".
21551 print prefix "define", macro P[macro] D[macro]
21554 # Replace #undef with comments. This is necessary, for example,
21555 # in the case of _POSIX_SOURCE, which is predefined and required
21556 # on some systems where configure will not decide to define it.
21557 if (defundef == "undef") {
21558 print "/*", prefix defundef, macro, "*/"
21566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21567 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21568 fi # test -n "$CONFIG_HEADERS"
21571 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21576 :[FHLC]) ac_mode=$ac_tag; continue;;
21578 case $ac_mode$ac_tag in
21580 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21581 :[FH]-) ac_tag=-:-;;
21582 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21599 -) ac_f="$ac_tmp/stdin";;
21600 *) # Look for the file first in the build tree, then in the source tree
21601 # (if the path is not absolute). The absolute path cannot be DOS-style,
21602 # because $ac_f cannot contain `:'.
21606 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21608 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21610 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21611 as_fn_append ac_file_inputs " '$ac_f'"
21614 # Let's still pretend it is `configure' which instantiates (i.e., don't
21615 # use $as_me), people would be surprised to read:
21616 # /* config.h. Generated by config.status. */
21617 configure_input='Generated from '`
21618 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21620 if test x"$ac_file" != x-; then
21621 configure_input="$ac_file. $configure_input"
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21623 $as_echo "$as_me: creating $ac_file" >&6;}
21625 # Neutralize special characters interpreted by sed in replacement strings.
21626 case $configure_input in #(
21627 *\&* | *\|* | *\\* )
21628 ac_sed_conf_input=`$as_echo "$configure_input" |
21629 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21630 *) ac_sed_conf_input=$configure_input;;
21634 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21635 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21640 ac_dir=`$as_dirname -- "$ac_file" ||
21641 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21642 X"$ac_file" : 'X\(//\)[^/]' \| \
21643 X"$ac_file" : 'X\(//\)$' \| \
21644 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21645 $as_echo X"$ac_file" |
21646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21650 /^X\(\/\/\)[^/].*/{
21663 as_dir="$ac_dir"; as_fn_mkdir_p
21667 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21669 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21670 # A ".." for each directory in $ac_dir_suffix.
21671 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21672 case $ac_top_builddir_sub in
21673 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21674 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21677 ac_abs_top_builddir=$ac_pwd
21678 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21679 # for backward compatibility:
21680 ac_top_builddir=$ac_top_build_prefix
21683 .) # We are building in place.
21685 ac_top_srcdir=$ac_top_builddir_sub
21686 ac_abs_top_srcdir=$ac_pwd ;;
21687 [\\/]* | ?:[\\/]* ) # Absolute name.
21688 ac_srcdir=$srcdir$ac_dir_suffix;
21689 ac_top_srcdir=$srcdir
21690 ac_abs_top_srcdir=$srcdir ;;
21691 *) # Relative name.
21692 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21693 ac_top_srcdir=$ac_top_build_prefix$srcdir
21694 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21696 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21706 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21707 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21709 ac_MKDIR_P=$MKDIR_P
21711 [\\/$]* | ?:[\\/]* ) ;;
21712 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21717 # If the template does not know about datarootdir, expand it.
21718 # FIXME: This hack should be removed a few years after 2.60.
21719 ac_datarootdir_hack=; ac_datarootdir_seen=
21730 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21731 *datarootdir*) ac_datarootdir_seen=yes;;
21732 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21734 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21737 ac_datarootdir_hack='
21738 s&@datadir@&$datadir&g
21739 s&@docdir@&$docdir&g
21740 s&@infodir@&$infodir&g
21741 s&@localedir@&$localedir&g
21742 s&@mandir@&$mandir&g
21743 s&\\\${datarootdir}&$datarootdir&g' ;;
21747 # Neutralize VPATH when `$srcdir' = `.'.
21748 # Shell code in configure.ac might set extrasub.
21749 # FIXME: do we really want to maintain this feature?
21750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21751 ac_sed_extra="$ac_vpsub
21754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21756 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21757 s|@configure_input@|$ac_sed_conf_input|;t t
21758 s&@top_builddir@&$ac_top_builddir_sub&;t t
21759 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21760 s&@srcdir@&$ac_srcdir&;t t
21761 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21762 s&@top_srcdir@&$ac_top_srcdir&;t t
21763 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21764 s&@builddir@&$ac_builddir&;t t
21765 s&@abs_builddir@&$ac_abs_builddir&;t t
21766 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21767 s&@INSTALL@&$ac_INSTALL&;t t
21768 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21769 $ac_datarootdir_hack
21771 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21772 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21774 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21775 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21776 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21777 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21779 which seems to be undefined. Please make sure it is defined" >&5
21780 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21781 which seems to be undefined. Please make sure it is defined" >&2;}
21783 rm -f "$ac_tmp/stdin"
21785 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21786 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21788 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21794 if test x"$ac_file" != x-; then
21796 $as_echo "/* $configure_input */" \
21797 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21798 } >"$ac_tmp/config.h" \
21799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21800 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21802 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21805 mv "$ac_tmp/config.h" "$ac_file" \
21806 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21809 $as_echo "/* $configure_input */" \
21810 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21811 || as_fn_error $? "could not create -" "$LINENO" 5
21813 # Compute "$ac_file"'s index in $config_headers.
21816 for _am_header in $config_headers :; do
21817 case $_am_header in
21818 $_am_arg | $_am_arg:* )
21821 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21824 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21825 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21826 X"$_am_arg" : 'X\(//\)[^/]' \| \
21827 X"$_am_arg" : 'X\(//\)$' \| \
21828 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21829 $as_echo X"$_am_arg" |
21830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21834 /^X\(\/\/\)[^/].*/{
21846 s/.*/./; q'`/stamp-h$_am_stamp_count
21849 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21850 $as_echo "$as_me: executing $ac_file commands" >&6;}
21855 case $ac_file$ac_mode in
21856 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21857 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21858 # are listed without --file. Let's play safe and only enable the eval
21859 # if we detect the quoting.
21860 case $CONFIG_FILES in
21861 *\'*) eval set x "$CONFIG_FILES" ;;
21862 *) set x $CONFIG_FILES ;;
21867 # Strip MF so we end up with the name of the file.
21868 mf=`echo "$mf" | sed -e 's/:.*$//'`
21869 # Check whether this is an Automake generated Makefile or not.
21870 # We used to match only the files named `Makefile.in', but
21871 # some people rename them; so instead we look at the file content.
21872 # Grep'ing the first line is not enough: some people post-process
21873 # each Makefile.in and add a new line on top of each file to say so.
21874 # Grep'ing the whole file is not good either: AIX grep has a line
21875 # limit of 2048, but all sed's we know have understand at least 4000.
21876 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21877 dirpart=`$as_dirname -- "$mf" ||
21878 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21879 X"$mf" : 'X\(//\)[^/]' \| \
21880 X"$mf" : 'X\(//\)$' \| \
21881 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21887 /^X\(\/\/\)[^/].*/{
21903 # Extract the definition of DEPDIR, am__include, and am__quote
21904 # from the Makefile without running `make'.
21905 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21906 test -z "$DEPDIR" && continue
21907 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21908 test -z "am__include" && continue
21909 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21910 # When using ansi2knr, U may be empty or an underscore; expand it
21911 U=`sed -n 's/^U = //p' < "$mf"`
21912 # Find all dependency output files, they are included files with
21913 # $(DEPDIR) in their names. We invoke sed twice because it is the
21914 # simplest approach to changing $(DEPDIR) to its actual value in the
21916 for file in `sed -n "
21917 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21918 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21919 # Make sure the directory exists.
21920 test -f "$dirpart/$file" && continue
21921 fdir=`$as_dirname -- "$file" ||
21922 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21923 X"$file" : 'X\(//\)[^/]' \| \
21924 X"$file" : 'X\(//\)$' \| \
21925 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21926 $as_echo X"$file" |
21927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21931 /^X\(\/\/\)[^/].*/{
21944 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21945 # echo "creating $dirpart/$file"
21946 echo '# dummy' > "$dirpart/$file"
21958 ac_clean_files=$ac_clean_files_save
21960 test $ac_write_fail = 0 ||
21961 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21964 # configure is writing to config.log, and then calls config.status.
21965 # config.status does its own redirection, appending to config.log.
21966 # Unfortunately, on DOS this fails, as config.log is still kept open
21967 # by configure, so config.status won't be able to write to it; its
21968 # output is simply discarded. So we exec the FD to /dev/null,
21969 # effectively closing config.log, so it can be properly (re)opened and
21970 # appended to by config.status. When coming back to configure, we
21971 # need to make the FD available again.
21972 if test "$no_create" != yes; then
21974 ac_config_status_args=
21975 test "$silent" = yes &&
21976 ac_config_status_args="$ac_config_status_args --quiet"
21978 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21980 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21981 # would make configure fail if this is the last instruction.
21982 $ac_cs_success || as_fn_exit 1
21984 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21986 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21990 echo "Creating asoundlib.h..."
21991 cp "$srcdir"/include/asoundlib-head.h include/asoundlib.h
21992 test "$build_pcm" = "yes" && echo "#include <alsa/pcm.h>" >> include/asoundlib.h
21993 test "$build_rawmidi" = "yes" && echo "#include <alsa/rawmidi.h>" >> include/asoundlib.h
21994 test "$build_pcm" = "yes" && echo "#include <alsa/timer.h>" >> include/asoundlib.h
21995 test "$build_hwdep" = "yes" && echo "#include <alsa/hwdep.h>" >> include/asoundlib.h
21996 echo "#include <alsa/control.h>" >> include/asoundlib.h
21997 test "$build_mixer" = "yes" && echo "#include <alsa/mixer.h>" >> include/asoundlib.h
21998 test "$build_seq" = "yes" && echo "#include <alsa/seq_event.h>" >> include/asoundlib.h
21999 test "$build_seq" = "yes" && echo "#include <alsa/seq.h>" >> include/asoundlib.h
22000 test "$build_seq" = "yes" && echo "#include <alsa/seqmid.h>" >> include/asoundlib.h
22001 test "$build_seq" = "yes" && echo "#include <alsa/seq_midi_event.h>" >> include/asoundlib.h
22002 cat "$srcdir"/include/asoundlib-tail.h >> include/asoundlib.h