2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for alsa-lib 1.0.28.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
588 PACKAGE_NAME='alsa-lib'
589 PACKAGE_TARNAME='alsa-lib'
590 PACKAGE_VERSION='1.0.28'
591 PACKAGE_STRING='alsa-lib 1.0.28'
595 ac_unique_file="src/control/control.c"
596 ac_default_prefix=/usr
597 # Factoring default headers for most tests.
598 ac_includes_default="\
600 #ifdef HAVE_SYS_TYPES_H
601 # include <sys/types.h>
603 #ifdef HAVE_SYS_STAT_H
604 # include <sys/stat.h>
610 # ifdef HAVE_STDLIB_H
615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 #ifdef HAVE_STRINGS_H
621 # include <strings.h>
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
633 ac_subst_vars='am__EXEEXT_FALSE
637 BUILD_CTL_PLUGIN_EXT_FALSE
638 BUILD_CTL_PLUGIN_EXT_TRUE
639 BUILD_CTL_PLUGIN_SHM_FALSE
640 BUILD_CTL_PLUGIN_SHM_TRUE
641 BUILD_CTL_PLUGIN_FALSE
642 BUILD_CTL_PLUGIN_TRUE
643 BUILD_PCM_PLUGIN_MMAP_EMUL_FALSE
644 BUILD_PCM_PLUGIN_MMAP_EMUL_TRUE
645 BUILD_PCM_PLUGIN_IOPLUG_FALSE
646 BUILD_PCM_PLUGIN_IOPLUG_TRUE
647 BUILD_PCM_PLUGIN_EXTPLUG_FALSE
648 BUILD_PCM_PLUGIN_EXTPLUG_TRUE
649 BUILD_PCM_PLUGIN_SOFTVOL_FALSE
650 BUILD_PCM_PLUGIN_SOFTVOL_TRUE
651 BUILD_PCM_PLUGIN_IEC958_FALSE
652 BUILD_PCM_PLUGIN_IEC958_TRUE
653 BUILD_PCM_PLUGIN_ASYM_FALSE
654 BUILD_PCM_PLUGIN_ASYM_TRUE
655 BUILD_PCM_PLUGIN_DSNOOP_FALSE
656 BUILD_PCM_PLUGIN_DSNOOP_TRUE
657 BUILD_PCM_PLUGIN_DSHARE_FALSE
658 BUILD_PCM_PLUGIN_DSHARE_TRUE
659 BUILD_PCM_PLUGIN_DMIX_FALSE
660 BUILD_PCM_PLUGIN_DMIX_TRUE
661 BUILD_PCM_PLUGIN_LADSPA_FALSE
662 BUILD_PCM_PLUGIN_LADSPA_TRUE
663 BUILD_PCM_PLUGIN_LFLOAT_FALSE
664 BUILD_PCM_PLUGIN_LFLOAT_TRUE
665 BUILD_PCM_PLUGIN_HOOKS_FALSE
666 BUILD_PCM_PLUGIN_HOOKS_TRUE
667 BUILD_PCM_PLUGIN_METER_FALSE
668 BUILD_PCM_PLUGIN_METER_TRUE
669 BUILD_PCM_PLUGIN_SHARE_FALSE
670 BUILD_PCM_PLUGIN_SHARE_TRUE
671 BUILD_PCM_PLUGIN_EMPTY_FALSE
672 BUILD_PCM_PLUGIN_EMPTY_TRUE
673 BUILD_PCM_PLUGIN_NULL_FALSE
674 BUILD_PCM_PLUGIN_NULL_TRUE
675 BUILD_PCM_PLUGIN_FILE_FALSE
676 BUILD_PCM_PLUGIN_FILE_TRUE
677 BUILD_PCM_PLUGIN_SHM_FALSE
678 BUILD_PCM_PLUGIN_SHM_TRUE
679 BUILD_PCM_PLUGIN_MULTI_FALSE
680 BUILD_PCM_PLUGIN_MULTI_TRUE
681 BUILD_PCM_PLUGIN_PLUG_FALSE
682 BUILD_PCM_PLUGIN_PLUG_TRUE
683 BUILD_PCM_PLUGIN_RATE_FALSE
684 BUILD_PCM_PLUGIN_RATE_TRUE
685 BUILD_PCM_PLUGIN_ADPCM_FALSE
686 BUILD_PCM_PLUGIN_ADPCM_TRUE
687 BUILD_PCM_PLUGIN_ALAW_FALSE
688 BUILD_PCM_PLUGIN_ALAW_TRUE
689 BUILD_PCM_PLUGIN_MULAW_FALSE
690 BUILD_PCM_PLUGIN_MULAW_TRUE
691 BUILD_PCM_PLUGIN_ROUTE_FALSE
692 BUILD_PCM_PLUGIN_ROUTE_TRUE
693 BUILD_PCM_PLUGIN_LINEAR_FALSE
694 BUILD_PCM_PLUGIN_LINEAR_TRUE
695 BUILD_PCM_PLUGIN_COPY_FALSE
696 BUILD_PCM_PLUGIN_COPY_TRUE
697 BUILD_PCM_PLUGIN_FALSE
698 BUILD_PCM_PLUGIN_TRUE
717 KEEP_OLD_SYMBOLS_FALSE
718 KEEP_OLD_SYMBOLS_TRUE
723 SYMBOLIC_FUNCTIONS_FALSE
724 SYMBOLIC_FUNCTIONS_TRUE
725 VERSIONED_SYMBOLS_FALSE
726 VERSIONED_SYMBOLS_TRUE
780 MAINTAINER_MODE_FALSE
792 INSTALL_STRIP_PROGRAM
842 program_transform_name
855 enable_option_checking
856 enable_maintainer_mode
858 enable_dependency_tracking
870 enable_symbolic_functions
897 ac_precious_vars='build_alias
908 # Initialize some variables set by options.
910 ac_init_version=false
911 ac_unrecognized_opts=
913 # The variables have the same names as the options, with
914 # dashes changed to underlines.
922 program_transform_name=s,x,x,
930 # Installation directory options.
931 # These are left unexpanded so users can "make install exec_prefix=/foo"
932 # and all the variables that are supposed to be based on exec_prefix
933 # by default will actually change.
934 # Use braces instead of parens because sh, perl, etc. also accept them.
935 # (The list follows the same order as the GNU Coding Standards.)
936 bindir='${exec_prefix}/bin'
937 sbindir='${exec_prefix}/sbin'
938 libexecdir='${exec_prefix}/libexec'
939 datarootdir='${prefix}/share'
940 datadir='${datarootdir}'
941 sysconfdir='${prefix}/etc'
942 sharedstatedir='${prefix}/com'
943 localstatedir='${prefix}/var'
944 includedir='${prefix}/include'
945 oldincludedir='/usr/include'
946 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
947 infodir='${datarootdir}/info'
952 libdir='${exec_prefix}/lib'
953 localedir='${datarootdir}/locale'
954 mandir='${datarootdir}/man'
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\$ac_option
968 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 # Accept the important Cygnus configure options, so we can diagnose typos.
975 case $ac_dashdash$ac_option in
979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984 -build | --build | --buil | --bui | --bu)
985 ac_prev=build_alias ;;
986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987 build_alias=$ac_optarg ;;
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994 cache_file=$ac_optarg ;;
997 cache_file=config.cache ;;
999 -datadir | --datadir | --datadi | --datad)
1001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002 datadir=$ac_optarg ;;
1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1011 -disable-* | --disable-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error $? "invalid feature name: $ac_useropt"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1020 "enable_$ac_useropt"
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1025 eval enable_$ac_useropt=no ;;
1027 -docdir | --docdir | --docdi | --doc | --do)
1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030 docdir=$ac_optarg ;;
1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035 dvidir=$ac_optarg ;;
1037 -enable-* | --enable-*)
1038 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 as_fn_error $? "invalid feature name: $ac_useropt"
1042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1046 "enable_$ac_useropt"
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1051 eval enable_$ac_useropt=\$ac_optarg ;;
1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1055 | --exec | --exe | --ex)
1056 ac_prev=exec_prefix ;;
1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1059 | --exec=* | --exe=* | --ex=*)
1060 exec_prefix=$ac_optarg ;;
1062 -gas | --gas | --ga | --g)
1063 # Obsolete; use --with-gas.
1066 -help | --help | --hel | --he | -h)
1067 ac_init_help=long ;;
1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1069 ac_init_help=recursive ;;
1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1071 ac_init_help=short ;;
1073 -host | --host | --hos | --ho)
1074 ac_prev=host_alias ;;
1075 -host=* | --host=* | --hos=* | --ho=*)
1076 host_alias=$ac_optarg ;;
1078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1082 htmldir=$ac_optarg ;;
1084 -includedir | --includedir | --includedi | --included | --include \
1085 | --includ | --inclu | --incl | --inc)
1086 ac_prev=includedir ;;
1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1088 | --includ=* | --inclu=* | --incl=* | --inc=*)
1089 includedir=$ac_optarg ;;
1091 -infodir | --infodir | --infodi | --infod | --info | --inf)
1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1094 infodir=$ac_optarg ;;
1096 -libdir | --libdir | --libdi | --libd)
1098 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1099 libdir=$ac_optarg ;;
1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1102 | --libexe | --libex | --libe)
1103 ac_prev=libexecdir ;;
1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1105 | --libexe=* | --libex=* | --libe=*)
1106 libexecdir=$ac_optarg ;;
1108 -localedir | --localedir | --localedi | --localed | --locale)
1109 ac_prev=localedir ;;
1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1111 localedir=$ac_optarg ;;
1113 -localstatedir | --localstatedir | --localstatedi | --localstated \
1114 | --localstate | --localstat | --localsta | --localst | --locals)
1115 ac_prev=localstatedir ;;
1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1118 localstatedir=$ac_optarg ;;
1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1123 mandir=$ac_optarg ;;
1125 -nfp | --nfp | --nf)
1126 # Obsolete; use --without-fp.
1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1130 | --no-cr | --no-c | -n)
1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1139 | --oldin | --oldi | --old | --ol | --o)
1140 ac_prev=oldincludedir ;;
1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1144 oldincludedir=$ac_optarg ;;
1146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1149 prefix=$ac_optarg ;;
1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1152 | --program-pre | --program-pr | --program-p)
1153 ac_prev=program_prefix ;;
1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1156 program_prefix=$ac_optarg ;;
1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1159 | --program-suf | --program-su | --program-s)
1160 ac_prev=program_suffix ;;
1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1163 program_suffix=$ac_optarg ;;
1165 -program-transform-name | --program-transform-name \
1166 | --program-transform-nam | --program-transform-na \
1167 | --program-transform-n | --program-transform- \
1168 | --program-transform | --program-transfor \
1169 | --program-transfo | --program-transf \
1170 | --program-trans | --program-tran \
1171 | --progr-tra | --program-tr | --program-t)
1172 ac_prev=program_transform_name ;;
1173 -program-transform-name=* | --program-transform-name=* \
1174 | --program-transform-nam=* | --program-transform-na=* \
1175 | --program-transform-n=* | --program-transform-=* \
1176 | --program-transform=* | --program-transfor=* \
1177 | --program-transfo=* | --program-transf=* \
1178 | --program-trans=* | --program-tran=* \
1179 | --progr-tra=* | --program-tr=* | --program-t=*)
1180 program_transform_name=$ac_optarg ;;
1182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1185 pdfdir=$ac_optarg ;;
1187 -psdir | --psdir | --psdi | --psd | --ps)
1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193 | -silent | --silent | --silen | --sile | --sil)
1196 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1198 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1200 sbindir=$ac_optarg ;;
1202 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1203 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1204 | --sharedst | --shareds | --shared | --share | --shar \
1206 ac_prev=sharedstatedir ;;
1207 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1208 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1209 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1211 sharedstatedir=$ac_optarg ;;
1213 -site | --site | --sit)
1215 -site=* | --site=* | --sit=*)
1218 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1220 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1221 srcdir=$ac_optarg ;;
1223 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1224 | --syscon | --sysco | --sysc | --sys | --sy)
1225 ac_prev=sysconfdir ;;
1226 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1227 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1228 sysconfdir=$ac_optarg ;;
1230 -target | --target | --targe | --targ | --tar | --ta | --t)
1231 ac_prev=target_alias ;;
1232 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1233 target_alias=$ac_optarg ;;
1235 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1238 -version | --version | --versio | --versi | --vers | -V)
1239 ac_init_version=: ;;
1242 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 as_fn_error $? "invalid package name: $ac_useropt"
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1255 eval with_$ac_useropt=\$ac_optarg ;;
1257 -without-* | --without-*)
1258 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 as_fn_error $? "invalid package name: $ac_useropt"
1262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1271 eval with_$ac_useropt=no ;;
1274 # Obsolete; use --with-x.
1277 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1278 | --x-incl | --x-inc | --x-in | --x-i)
1279 ac_prev=x_includes ;;
1280 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1281 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1282 x_includes=$ac_optarg ;;
1284 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1285 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1286 ac_prev=x_libraries ;;
1287 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1288 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1289 x_libraries=$ac_optarg ;;
1291 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1292 Try \`$0 --help' for more information"
1296 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1297 # Reject names that are not valid shell variable names.
1298 case $ac_envvar in #(
1299 '' | [0-9]* | *[!_$as_cr_alnum]* )
1300 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1302 eval $ac_envvar=\$ac_optarg
1303 export $ac_envvar ;;
1306 # FIXME: should be removed in autoconf 3.0.
1307 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1309 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1316 if test -n "$ac_prev"; then
1317 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1318 as_fn_error $? "missing argument to $ac_option"
1321 if test -n "$ac_unrecognized_opts"; then
1322 case $enable_option_checking in
1324 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1325 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1329 # Check all directory arguments for consistency.
1330 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331 datadir sysconfdir sharedstatedir localstatedir includedir \
1332 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333 libdir localedir mandir
1335 eval ac_val=\$$ac_var
1336 # Remove trailing slashes.
1339 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1340 eval $ac_var=\$ac_val;;
1342 # Be sure to have absolute directory names.
1344 [\\/$]* | ?:[\\/]* ) continue;;
1345 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1347 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1350 # There might be people who depend on the old broken behavior: `$host'
1351 # used to hold the argument of --host etc.
1352 # FIXME: To remove some day.
1355 target=$target_alias
1357 # FIXME: To remove some day.
1358 if test "x$host_alias" != x; then
1359 if test "x$build_alias" = x; then
1360 cross_compiling=maybe
1361 elif test "x$build_alias" != "x$host_alias"; then
1367 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369 test "$silent" = yes && exec 6>/dev/null
1372 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373 ac_ls_di=`ls -di .` &&
1374 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375 as_fn_error $? "working directory cannot be determined"
1376 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1377 as_fn_error $? "pwd does not report name of working directory"
1380 # Find the source files, if location was not specified.
1381 if test -z "$srcdir"; then
1382 ac_srcdir_defaulted=yes
1383 # Try the directory containing this script, then the parent directory.
1384 ac_confdir=`$as_dirname -- "$as_myself" ||
1385 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386 X"$as_myself" : 'X\(//\)[^/]' \| \
1387 X"$as_myself" : 'X\(//\)$' \| \
1388 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1389 $as_echo X"$as_myself" |
1390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1412 ac_srcdir_defaulted=no
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1416 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1418 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1420 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1422 # When building in place, set srcdir=.
1423 if test "$ac_abs_confdir" = "$ac_pwd"; then
1426 # Remove unnecessary trailing slashes from srcdir.
1427 # Double slashes in file names in object file debugging info
1428 # mess up M-x gdb in Emacs.
1430 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432 for ac_var in $ac_precious_vars; do
1433 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_env_${ac_var}_value=\$${ac_var}
1435 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1440 # Report the --help message.
1442 if test "$ac_init_help" = "long"; then
1443 # Omit some internal or obsolete options to make the list less imposing.
1444 # This message is too long to be a string in the A/UX 3.1 sh.
1446 \`configure' configures alsa-lib 1.0.28 to adapt to many kinds of systems.
1448 Usage: $0 [OPTION]... [VAR=VALUE]...
1450 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451 VAR=VALUE. See below for descriptions of some of the useful variables.
1453 Defaults for the options are specified in brackets.
1456 -h, --help display this help and exit
1457 --help=short display options specific to this package
1458 --help=recursive display the short help of all the included packages
1459 -V, --version display version information and exit
1460 -q, --quiet, --silent do not print \`checking ...' messages
1461 --cache-file=FILE cache test results in FILE [disabled]
1462 -C, --config-cache alias for \`--cache-file=config.cache'
1463 -n, --no-create do not create output files
1464 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1466 Installation directories:
1467 --prefix=PREFIX install architecture-independent files in PREFIX
1468 [$ac_default_prefix]
1469 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1472 By default, \`make install' will install all the files in
1473 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1474 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475 for instance \`--prefix=\$HOME'.
1477 For better control, use the options below.
1479 Fine tuning of the installation directories:
1480 --bindir=DIR user executables [EPREFIX/bin]
1481 --sbindir=DIR system admin executables [EPREFIX/sbin]
1482 --libexecdir=DIR program executables [EPREFIX/libexec]
1483 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1484 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1485 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1486 --libdir=DIR object code libraries [EPREFIX/lib]
1487 --includedir=DIR C header files [PREFIX/include]
1488 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1489 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1490 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1491 --infodir=DIR info documentation [DATAROOTDIR/info]
1492 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1493 --mandir=DIR man documentation [DATAROOTDIR/man]
1494 --docdir=DIR documentation root [DATAROOTDIR/doc/alsa-lib]
1495 --htmldir=DIR html documentation [DOCDIR]
1496 --dvidir=DIR dvi documentation [DOCDIR]
1497 --pdfdir=DIR pdf documentation [DOCDIR]
1498 --psdir=DIR ps documentation [DOCDIR]
1504 --program-prefix=PREFIX prepend PREFIX to installed program names
1505 --program-suffix=SUFFIX append SUFFIX to installed program names
1506 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1509 --build=BUILD configure for building on BUILD [guessed]
1510 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1514 if test -n "$ac_init_help"; then
1515 case $ac_init_help in
1516 short | recursive ) echo "Configuration of alsa-lib 1.0.28:";;
1521 --disable-option-checking ignore unrecognized --enable/--with options
1522 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1523 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1524 --disable-maintainer-mode
1525 disable make rules and dependencies not useful (and
1526 sometimes confusing) to the casual installer
1527 --enable-silent-rules less verbose build output (undo: "make V=1")
1528 --disable-silent-rules verbose build output (undo: "make V=0")
1529 --enable-dependency-tracking
1530 do not reject slow dependency extractors
1531 --disable-dependency-tracking
1532 speeds up one-time build
1533 --enable-static[=PKGS] build static libraries [default=no]
1534 --enable-shared[=PKGS] build shared libraries [default=yes]
1535 --enable-fast-install[=PKGS]
1536 optimize for fast installation [default=yes]
1537 --disable-libtool-lock avoid locking (might break parallel builds)
1538 --enable-symbolic-functions
1539 use -Bsymbolic-functions option if available
1540 (optmization for size and speed)
1541 --enable-debug enable assert call at the default error message
1543 --enable-resmgr support resmgr (optional)
1544 --disable-aload disable reading /dev/aload*
1545 --disable-mixer disable the mixer component
1546 --disable-pcm disable the PCM component
1547 --disable-rawmidi disable the raw MIDI component
1548 --disable-hwdep disable the hwdep component
1549 --disable-seq disable the sequencer component
1550 --disable-ucm disable the use-case-manager component
1551 --disable-alisp disable the alisp component
1552 --disable-old-symbols disable old obsoleted symbols
1553 --disable-python disable the python components
1556 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1557 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1558 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1560 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1561 --with-sysroot=DIR Search for dependent libraries within DIR
1562 (or the compiler's sysroot if not specified).
1563 --with-configdir=dir path where ALSA config files are stored
1564 --with-plugindir=dir path where ALSA plugin files are stored
1565 --with-pkgconfdir=dir path where pkgconfig files are stored
1566 --with-versioned shared library will be compiled with versioned
1567 symbols (default = yes)
1568 --with-debug library will be compiled with asserts (default =
1570 --with-tmpdir=directory directory to put tmp socket files (/tmp)
1571 --with-softfloat do you have floating point unit on this machine?
1573 --with-libdl Use libdl for plugins (default = yes)
1574 --with-pthread Use pthread (default = yes)
1575 --with-librt Use librt for monotonic clock (default = yes)
1576 --with-alsa-devdir=dir directory with ALSA device files (default /dev/snd)
1577 --with-aload-devdir=dir directory with aload* device files (default /dev)
1578 --with-pythonlibs=ldflags
1579 specify python libraries (-lpthread -lm -ldl
1581 --with-pythonincludes=Cflags
1582 specify python C header files
1583 (-I/usr/include/python)
1584 --with-pcm-plugins=<list>
1585 build PCM plugins (default = all)
1586 --with-ctl-plugins=<list>
1587 build control plugins (default = all)
1588 --with-max-cards Specify the max number of cards (default = 32)
1590 Some influential environment variables:
1591 CC C compiler command
1592 CFLAGS C compiler flags
1593 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1594 nonstandard directory <lib dir>
1595 LIBS libraries to pass to the linker, e.g. -l<library>
1596 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1597 you have headers in a nonstandard directory <include dir>
1600 Use these variables to override the choices made by `configure' or to help
1601 it to find libraries and programs with nonstandard names/locations.
1603 Report bugs to the package provider.
1608 if test "$ac_init_help" = "recursive"; then
1609 # If there are subdirs, report their specific --help.
1610 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1611 test -d "$ac_dir" ||
1612 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1617 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1620 # A ".." for each directory in $ac_dir_suffix.
1621 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1622 case $ac_top_builddir_sub in
1623 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627 ac_abs_top_builddir=$ac_pwd
1628 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629 # for backward compatibility:
1630 ac_top_builddir=$ac_top_build_prefix
1633 .) # We are building in place.
1635 ac_top_srcdir=$ac_top_builddir_sub
1636 ac_abs_top_srcdir=$ac_pwd ;;
1637 [\\/]* | ?:[\\/]* ) # Absolute name.
1638 ac_srcdir=$srcdir$ac_dir_suffix;
1639 ac_top_srcdir=$srcdir
1640 ac_abs_top_srcdir=$srcdir ;;
1642 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643 ac_top_srcdir=$ac_top_build_prefix$srcdir
1644 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1646 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1648 cd "$ac_dir" || { ac_status=$?; continue; }
1649 # Check for guested configure.
1650 if test -f "$ac_srcdir/configure.gnu"; then
1652 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653 elif test -f "$ac_srcdir/configure"; then
1655 $SHELL "$ac_srcdir/configure" --help=recursive
1657 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659 cd "$ac_pwd" || { ac_status=$?; break; }
1663 test -n "$ac_init_help" && exit $ac_status
1664 if $ac_init_version; then
1666 alsa-lib configure 1.0.28
1667 generated by GNU Autoconf 2.69
1669 Copyright (C) 2012 Free Software Foundation, Inc.
1670 This configure script is free software; the Free Software Foundation
1671 gives unlimited permission to copy, distribute and modify it.
1676 ## ------------------------ ##
1677 ## Autoconf initialization. ##
1678 ## ------------------------ ##
1680 # ac_fn_c_try_compile LINENO
1681 # --------------------------
1682 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_compile ()
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext
1687 if { { ac_try="$ac_compile"
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_compile") 2>conftest.err
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest.$ac_objext; then :
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status $ac_retval
1716 } # ac_fn_c_try_compile
1718 # ac_fn_c_try_cpp LINENO
1719 # ----------------------
1720 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 if { { ac_try="$ac_cpp conftest.$ac_ext"
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } > conftest.i && {
1740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1755 # ac_fn_c_try_link LINENO
1756 # -----------------------
1757 # Try to link conftest.$ac_ext, and return whether this succeeded.
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 rm -f conftest.$ac_objext conftest$ac_exeext
1762 if { { ac_try="$ac_link"
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_link") 2>conftest.err
1771 if test -s conftest.err; then
1772 grep -v '^ *+' conftest.err >conftest.er1
1773 cat conftest.er1 >&5
1774 mv -f conftest.er1 conftest.err
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; } && {
1778 test -z "$ac_c_werror_flag" ||
1779 test ! -s conftest.err
1780 } && test -s conftest$ac_exeext && {
1781 test "$cross_compiling" = yes ||
1782 test -x conftest$ac_exeext
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1791 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1792 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1793 # interfere with the next link command; also delete a directory that is
1794 # left behind by Apple's compiler. We do this before executing the actions.
1795 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 as_fn_set_status $ac_retval
1799 } # ac_fn_c_try_link
1801 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1802 # -------------------------------------------------------
1803 # Tests whether HEADER exists and can be compiled using the include files in
1804 # INCLUDES, setting the cache variable VAR accordingly.
1805 ac_fn_c_check_header_compile ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if eval \${$3+:} false; then :
1811 $as_echo_n "(cached) " >&6
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1818 if ac_fn_c_try_compile "$LINENO"; then :
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 } # ac_fn_c_check_header_compile
1832 # ac_fn_c_try_run LINENO
1833 # ----------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1835 # that executables *can* be run.
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 if { { ac_try="$ac_link"
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_link") 2>&5
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1850 { { case "(($ac_try" in
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_try") 2>&5
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; }; }; then :
1862 $as_echo "$as_me: program exited with status $ac_status" >&5
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1866 ac_retval=$ac_status
1868 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 as_fn_set_status $ac_retval
1874 # ac_fn_c_check_func LINENO FUNC VAR
1875 # ----------------------------------
1876 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1877 ac_fn_c_check_func ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if eval \${$3+:} false; then :
1883 $as_echo_n "(cached) " >&6
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1887 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1889 #define $2 innocuous_$2
1891 /* System header to define __stub macros and hopefully few prototypes,
1892 which can conflict with char $2 (); below.
1893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1894 <limits.h> exists even on freestanding compilers. */
1897 # include <limits.h>
1899 # include <assert.h>
1904 /* Override any GCC internal prototype to avoid an error.
1905 Use char because int might match the return type of a GCC
1906 builtin and then its argument prototype would still apply. */
1911 /* The GNU C library defines this for functions which it implements
1912 to always fail with ENOSYS. Some functions are actually named
1913 something starting with __ and the normal name is an alias. */
1914 #if defined __stub_$2 || defined __stub___$2
1926 if ac_fn_c_try_link "$LINENO"; then :
1931 rm -f core conftest.err conftest.$ac_objext \
1932 conftest$ac_exeext conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 } # ac_fn_c_check_func
1941 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1942 # -------------------------------------------------------
1943 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1944 # the include files in INCLUDES and setting the cache variable VAR
1946 ac_fn_c_check_header_mongrel ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 if eval \${$3+:} false; then :
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951 $as_echo_n "checking for $2... " >&6; }
1952 if eval \${$3+:} false; then :
1953 $as_echo_n "(cached) " >&6
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1959 # Is the header compilable?
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1961 $as_echo_n "checking $2 usability... " >&6; }
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1967 if ac_fn_c_try_compile "$LINENO"; then :
1968 ac_header_compiler=yes
1970 ac_header_compiler=no
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1974 $as_echo "$ac_header_compiler" >&6; }
1976 # Is the header present?
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1978 $as_echo_n "checking $2 presence... " >&6; }
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1983 if ac_fn_c_try_cpp "$LINENO"; then :
1984 ac_header_preproc=yes
1986 ac_header_preproc=no
1988 rm -f conftest.err conftest.i conftest.$ac_ext
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1990 $as_echo "$ac_header_preproc" >&6; }
1992 # So? What about this header?
1993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1996 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1998 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2002 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2004 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2006 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2008 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2010 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if eval \${$3+:} false; then :
2016 $as_echo_n "(cached) " >&6
2018 eval "$3=\$ac_header_compiler"
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026 } # ac_fn_c_check_header_mongrel
2027 cat >config.log <<_ACEOF
2028 This file contains any messages produced by compilers while
2029 running configure, to aid debugging if configure makes a mistake.
2031 It was created by alsa-lib $as_me 1.0.28, which was
2032 generated by GNU Autoconf 2.69. Invocation command line was
2044 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2045 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2046 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2047 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2048 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2050 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2051 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2053 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2054 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2055 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2056 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2057 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2058 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2059 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 test -z "$as_dir" && as_dir=.
2068 $as_echo "PATH: $as_dir"
2084 # Keep a trace of the command line.
2085 # Strip out --no-create and --no-recursion so they do not pile up.
2086 # Strip out --silent because we don't want to record it for future runs.
2087 # Also quote any args containing shell meta-characters.
2088 # Make two passes to allow for proper duplicate-argument suppression.
2092 ac_must_keep_next=false
2098 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2100 | -silent | --silent | --silen | --sile | --sil)
2103 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2106 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2108 as_fn_append ac_configure_args1 " '$ac_arg'"
2109 if test $ac_must_keep_next = true; then
2110 ac_must_keep_next=false # Got value, back to normal.
2113 *=* | --config-cache | -C | -disable-* | --disable-* \
2114 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2115 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2116 | -with-* | --with-* | -without-* | --without-* | --x)
2117 case "$ac_configure_args0 " in
2118 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2121 -* ) ac_must_keep_next=true ;;
2124 as_fn_append ac_configure_args " '$ac_arg'"
2129 { ac_configure_args0=; unset ac_configure_args0;}
2130 { ac_configure_args1=; unset ac_configure_args1;}
2132 # When interrupted or exit'd, cleanup temporary files, and complete
2133 # config.log. We remove comments because anyway the quotes in there
2134 # would cause problems or look ugly.
2135 # WARNING: Use '\'' to represent an apostrophe within the trap.
2136 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2137 trap 'exit_status=$?
2138 # Save into config.log some information that might help in debugging.
2142 $as_echo "## ---------------- ##
2143 ## Cache variables. ##
2144 ## ---------------- ##"
2146 # The following way of writing the cache mishandles newlines in values,
2148 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2149 eval ac_val=\$$ac_var
2153 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2154 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2157 _ | IFS | as_nl) ;; #(
2158 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2159 *) { eval $ac_var=; unset $ac_var;} ;;
2164 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2165 *${as_nl}ac_space=\ *)
2167 "s/'\''/'\''\\\\'\'''\''/g;
2168 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2171 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2178 $as_echo "## ----------------- ##
2179 ## Output variables. ##
2180 ## ----------------- ##"
2182 for ac_var in $ac_subst_vars
2184 eval ac_val=\$$ac_var
2186 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2188 $as_echo "$ac_var='\''$ac_val'\''"
2192 if test -n "$ac_subst_files"; then
2193 $as_echo "## ------------------- ##
2194 ## File substitutions. ##
2195 ## ------------------- ##"
2197 for ac_var in $ac_subst_files
2199 eval ac_val=\$$ac_var
2201 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2203 $as_echo "$ac_var='\''$ac_val'\''"
2208 if test -s confdefs.h; then
2209 $as_echo "## ----------- ##
2216 test "$ac_signal" != 0 &&
2217 $as_echo "$as_me: caught signal $ac_signal"
2218 $as_echo "$as_me: exit $exit_status"
2220 rm -f core *.core core.conftest.* &&
2221 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2224 for ac_signal in 1 2 13 15; do
2225 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2229 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2230 rm -f -r conftest* confdefs.h
2232 $as_echo "/* confdefs.h */" > confdefs.h
2234 # Predefined preprocessor variables.
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_NAME "$PACKAGE_NAME"
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_STRING "$PACKAGE_STRING"
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_URL "$PACKAGE_URL"
2261 # Let the site file select an alternate cache file if it wants to.
2262 # Prefer an explicitly selected file to automatically selected ones.
2265 if test -n "$CONFIG_SITE"; then
2266 # We do not want a PATH search for config.site.
2267 case $CONFIG_SITE in #((
2268 -*) ac_site_file1=./$CONFIG_SITE;;
2269 */*) ac_site_file1=$CONFIG_SITE;;
2270 *) ac_site_file1=./$CONFIG_SITE;;
2272 elif test "x$prefix" != xNONE; then
2273 ac_site_file1=$prefix/share/config.site
2274 ac_site_file2=$prefix/etc/config.site
2276 ac_site_file1=$ac_default_prefix/share/config.site
2277 ac_site_file2=$ac_default_prefix/etc/config.site
2279 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2281 test "x$ac_site_file" = xNONE && continue
2282 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2284 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2285 sed 's/^/| /' "$ac_site_file" >&5
2287 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2289 as_fn_error $? "failed to load site script $ac_site_file
2290 See \`config.log' for more details" "$LINENO" 5; }
2294 if test -r "$cache_file"; then
2295 # Some versions of bash will fail to source /dev/null (special files
2296 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2297 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2299 $as_echo "$as_me: loading cache $cache_file" >&6;}
2301 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2302 *) . "./$cache_file";;
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2307 $as_echo "$as_me: creating cache $cache_file" >&6;}
2311 # Check that the precious variables saved in the cache have kept the same
2313 ac_cache_corrupted=false
2314 for ac_var in $ac_precious_vars; do
2315 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2316 eval ac_new_set=\$ac_env_${ac_var}_set
2317 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2318 eval ac_new_val=\$ac_env_${ac_var}_value
2319 case $ac_old_set,$ac_new_set in
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2322 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2323 ac_cache_corrupted=: ;;
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2326 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2327 ac_cache_corrupted=: ;;
2330 if test "x$ac_old_val" != "x$ac_new_val"; then
2331 # differences in whitespace do not lead to failure.
2332 ac_old_val_w=`echo x $ac_old_val`
2333 ac_new_val_w=`echo x $ac_new_val`
2334 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2336 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2337 ac_cache_corrupted=:
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2340 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2341 eval $ac_var=\$ac_old_val
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2344 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2346 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2349 # Pass precious variables to config.status.
2350 if test "$ac_new_set" = set; then
2352 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2353 *) ac_arg=$ac_var=$ac_new_val ;;
2355 case " $ac_configure_args " in
2356 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2357 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2361 if $ac_cache_corrupted; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2365 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2366 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2368 ## -------------------- ##
2369 ## Main body of script. ##
2370 ## -------------------- ##
2373 ac_cpp='$CPP $CPPFLAGS'
2374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2384 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2385 if test -f "$ac_dir/install-sh"; then
2387 ac_install_sh="$ac_aux_dir/install-sh -c"
2389 elif test -f "$ac_dir/install.sh"; then
2391 ac_install_sh="$ac_aux_dir/install.sh -c"
2393 elif test -f "$ac_dir/shtool"; then
2395 ac_install_sh="$ac_aux_dir/shtool install -c"
2399 if test -z "$ac_aux_dir"; then
2400 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2403 # These three variables are undocumented and unsupported,
2404 # and are intended to be withdrawn in a future Autoconf release.
2405 # They can cause serious problems if a builder's source tree is in a directory
2406 # whose full name contains unusual characters.
2407 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2408 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2409 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2412 # Make sure we can run config.sub.
2413 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2414 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2417 $as_echo_n "checking build system type... " >&6; }
2418 if ${ac_cv_build+:} false; then :
2419 $as_echo_n "(cached) " >&6
2421 ac_build_alias=$build_alias
2422 test "x$ac_build_alias" = x &&
2423 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2424 test "x$ac_build_alias" = x &&
2425 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2426 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2427 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2431 $as_echo "$ac_cv_build" >&6; }
2432 case $ac_cv_build in
2434 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2437 ac_save_IFS=$IFS; IFS='-'
2443 # Remember, the first character of IFS is used to create $*,
2444 # except with old shells:
2447 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2451 $as_echo_n "checking host system type... " >&6; }
2452 if ${ac_cv_host+:} false; then :
2453 $as_echo_n "(cached) " >&6
2455 if test "x$host_alias" = x; then
2456 ac_cv_host=$ac_cv_build
2458 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2459 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2464 $as_echo "$ac_cv_host" >&6; }
2467 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2470 ac_save_IFS=$IFS; IFS='-'
2476 # Remember, the first character of IFS is used to create $*,
2477 # except with old shells:
2480 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2483 am__api_version='1.12'
2485 # Find a good install program. We prefer a C program (faster),
2486 # so one script is as good as another. But avoid the broken or
2487 # incompatible versions:
2488 # SysV /etc/install, /usr/sbin/install
2489 # SunOS /usr/etc/install
2490 # IRIX /sbin/install
2492 # AmigaOS /C/install, which installs bootblocks on floppy discs
2493 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2494 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2495 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2496 # OS/2's system install, which has a completely different semantic
2497 # ./install, which can be erroneously created by make from ./install.sh.
2498 # Reject install programs that cannot install multiple files.
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2500 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2501 if test -z "$INSTALL"; then
2502 if ${ac_cv_path_install+:} false; then :
2503 $as_echo_n "(cached) " >&6
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 test -z "$as_dir" && as_dir=.
2510 # Account for people who put trailing slashes in PATH elements.
2511 case $as_dir/ in #((
2512 ./ | .// | /[cC]/* | \
2513 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2514 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2517 # OSF1 and SCO ODT 3.0 have their own names for install.
2518 # Don't use installbsd from OSF since it installs stuff as root
2520 for ac_prog in ginstall scoinst install; do
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2523 if test $ac_prog = install &&
2524 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2525 # AIX install. It has an incompatible calling convention.
2527 elif test $ac_prog = install &&
2528 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529 # program-specific install script used by HP pwplus--don't use.
2532 rm -rf conftest.one conftest.two conftest.dir
2533 echo one > conftest.one
2534 echo two > conftest.two
2536 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2537 test -s conftest.one && test -s conftest.two &&
2538 test -s conftest.dir/conftest.one &&
2539 test -s conftest.dir/conftest.two
2541 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2554 rm -rf conftest.one conftest.two conftest.dir
2557 if test "${ac_cv_path_install+set}" = set; then
2558 INSTALL=$ac_cv_path_install
2560 # As a last resort, use the slow shell script. Don't cache a
2561 # value for INSTALL within a source directory, because that will
2562 # break other packages using the cache if that directory is
2563 # removed, or if the value is a relative name.
2564 INSTALL=$ac_install_sh
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2568 $as_echo "$INSTALL" >&6; }
2570 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2571 # It thinks the first close brace ends the variable substitution.
2572 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2574 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2576 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2579 $as_echo_n "checking whether build environment is sane... " >&6; }
2580 # Reject unsafe characters in $srcdir or the absolute working directory
2581 # name. Accept space and tab only in the latter.
2585 *[\\\"\#\$\&\'\`$am_lf]*)
2586 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2589 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2590 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2593 # Do 'set' in a subshell so we don't clobber the current shell's
2594 # arguments. Must try -L first in case configure is actually a
2595 # symlink; some systems play weird games with the mod time of symlinks
2596 # (eg FreeBSD returns the mod time of the symlink's containing
2600 for am_try in 1 2; do
2601 echo "timestamp, slept: $am_has_slept" > conftest.file
2602 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2603 if test "$*" = "X"; then
2605 set X `ls -t "$srcdir/configure" conftest.file`
2607 if test "$*" != "X $srcdir/configure conftest.file" \
2608 && test "$*" != "X conftest.file $srcdir/configure"; then
2610 # If neither matched, then we have a broken ls. This can happen
2611 # if, for instance, CONFIG_SHELL is bash and it inherits a
2612 # broken ls alias from the environment. This has actually
2613 # happened. Such a system could not be considered "sane".
2614 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2615 alias in your environment" "$LINENO" 5
2617 if test "$2" = conftest.file || test $am_try -eq 2; then
2624 test "$2" = conftest.file
2630 as_fn_error $? "newly created file is older than distributed files!
2631 Check your system clock" "$LINENO" 5
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2634 $as_echo "yes" >&6; }
2635 # If we didn't sleep, we still need to ensure time stamps of config.status and
2636 # generated files are strictly newer.
2638 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2645 test "$program_prefix" != NONE &&
2646 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2647 # Use a double $ so make ignores it.
2648 test "$program_suffix" != NONE &&
2649 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2650 # Double any \ or $.
2651 # By default was `s,x,x', remove it if useless.
2652 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2653 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2655 # expand $ac_aux_dir to an absolute path
2656 am_aux_dir=`cd $ac_aux_dir && pwd`
2658 if test x"${MISSING+set}" != xset; then
2661 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2663 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2666 # Use eval to expand $SHELL
2667 if eval "$MISSING --run true"; then
2668 am_missing_run="$MISSING --run "
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2672 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2675 if test x"${install_sh}" != xset; then
2678 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2680 install_sh="\${SHELL} $am_aux_dir/install-sh"
2684 # Installed binaries are usually stripped using 'strip' when the user
2685 # run "make install-strip". However 'strip' might not be the right
2686 # tool to use in cross-compilation environments, therefore Automake
2687 # will honor the 'STRIP' environment variable to overrule this program.
2688 if test "$cross_compiling" != no; then
2689 if test -n "$ac_tool_prefix"; then
2690 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2691 set dummy ${ac_tool_prefix}strip; ac_word=$2
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if ${ac_cv_prog_STRIP+:} false; then :
2695 $as_echo_n "(cached) " >&6
2697 if test -n "$STRIP"; then
2698 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2707 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 STRIP=$ac_cv_prog_STRIP
2718 if test -n "$STRIP"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2720 $as_echo "$STRIP" >&6; }
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2728 if test -z "$ac_cv_prog_STRIP"; then
2730 # Extract the first word of "strip", so it can be a program name with args.
2731 set dummy strip; ac_word=$2
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2735 $as_echo_n "(cached) " >&6
2737 if test -n "$ac_ct_STRIP"; then
2738 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747 ac_cv_prog_ac_ct_STRIP="strip"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2758 if test -n "$ac_ct_STRIP"; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2760 $as_echo "$ac_ct_STRIP" >&6; }
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2766 if test "x$ac_ct_STRIP" = x; then
2769 case $cross_compiling:$ac_tool_warned in
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2773 ac_tool_warned=yes ;;
2778 STRIP="$ac_cv_prog_STRIP"
2782 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2785 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2786 if test -z "$MKDIR_P"; then
2787 if ${ac_cv_path_mkdir+:} false; then :
2788 $as_echo_n "(cached) " >&6
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2794 test -z "$as_dir" && as_dir=.
2795 for ac_prog in mkdir gmkdir; do
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2798 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2799 'mkdir (GNU coreutils) '* | \
2800 'mkdir (coreutils) '* | \
2801 'mkdir (fileutils) '4.1*)
2802 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2812 test -d ./--version && rmdir ./--version
2813 if test "${ac_cv_path_mkdir+set}" = set; then
2814 MKDIR_P="$ac_cv_path_mkdir -p"
2816 # As a last resort, use the slow shell script. Don't cache a
2817 # value for MKDIR_P within a source directory, because that will
2818 # break other packages using the cache if that directory is
2819 # removed, or if the value is a relative name.
2820 MKDIR_P="$ac_install_sh -d"
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2824 $as_echo "$MKDIR_P" >&6; }
2826 for ac_prog in gawk mawk nawk awk
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829 set dummy $ac_prog; ac_word=$2
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831 $as_echo_n "checking for $ac_word... " >&6; }
2832 if ${ac_cv_prog_AWK+:} false; then :
2833 $as_echo_n "(cached) " >&6
2835 if test -n "$AWK"; then
2836 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_AWK="$ac_prog"
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 if test -n "$AWK"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2858 $as_echo "$AWK" >&6; }
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2865 test -n "$AWK" && break
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2869 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2871 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2872 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2873 $as_echo_n "(cached) " >&6
2875 cat >conftest.make <<\_ACEOF
2878 @echo '@@@%%%=$(MAKE)=@@@%%%'
2880 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2881 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2883 eval ac_cv_prog_make_${ac_make}_set=yes;;
2885 eval ac_cv_prog_make_${ac_make}_set=no;;
2889 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2891 $as_echo "yes" >&6; }
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2896 SET_MAKE="MAKE=${MAKE-make}"
2899 rm -rf .tst 2>/dev/null
2900 mkdir .tst 2>/dev/null
2901 if test -d .tst; then
2906 rmdir .tst 2>/dev/null
2908 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2909 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2910 # is not polluted with repeated "-I."
2911 am__isrc=' -I$(srcdir)'
2912 # test to see if srcdir already configured
2913 if test -f $srcdir/config.status; then
2914 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2918 # test whether we have cygpath
2919 if test -z "$CYGPATH_W"; then
2920 if (cygpath --version) >/dev/null 2>/dev/null; then
2921 CYGPATH_W='cygpath -w'
2928 # Define the identity of the package.
2933 cat >>confdefs.h <<_ACEOF
2934 #define PACKAGE "$PACKAGE"
2938 cat >>confdefs.h <<_ACEOF
2939 #define VERSION "$VERSION"
2942 # Some tools Automake needs.
2944 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2947 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2950 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2953 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2956 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2958 # For better backward compatibility. To be removed once Automake 1.9.x
2959 # dies out for good. For more background, see:
2960 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2961 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2962 mkdir_p='$(MKDIR_P)'
2964 # We need awk for the "check" target. The system "awk" is bad on
2966 # Always define AMTAR for backward compatibility. Yes, it's still used
2967 # in the wild :-( We should find a proper way to deprecate it ...
2970 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2976 eval LIBTOOL_VERSION_INFO="2:0:0"
2977 if test -n "${ACLOCAL}"; then
2979 INSTALL_M4_FALSE='#'
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2988 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2989 # Check whether --enable-maintainer-mode was given.
2990 if test "${enable_maintainer_mode+set}" = set; then :
2991 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2993 USE_MAINTAINER_MODE=yes
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2997 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2998 if test $USE_MAINTAINER_MODE = yes; then
2999 MAINTAINER_MODE_TRUE=
3000 MAINTAINER_MODE_FALSE='#'
3002 MAINTAINER_MODE_TRUE='#'
3003 MAINTAINER_MODE_FALSE=
3006 MAINT=$MAINTAINER_MODE_TRUE
3010 # Test for new silent rules and enable only if they are available
3011 # Check whether --enable-silent-rules was given.
3012 if test "${enable_silent_rules+set}" = set; then :
3013 enableval=$enable_silent_rules;
3016 case $enable_silent_rules in # (((
3017 yes) AM_DEFAULT_VERBOSITY=0;;
3018 no) AM_DEFAULT_VERBOSITY=1;;
3019 *) AM_DEFAULT_VERBOSITY=0;;
3021 am_make=${MAKE-make}
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3023 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3024 if ${am_cv_make_support_nested_variables+:} false; then :
3025 $as_echo_n "(cached) " >&6
3027 if $as_echo 'TRUE=$(BAR$(V))
3033 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3034 am_cv_make_support_nested_variables=yes
3036 am_cv_make_support_nested_variables=no
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3040 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3041 if test $am_cv_make_support_nested_variables = yes; then
3043 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3045 AM_V=$AM_DEFAULT_VERBOSITY
3046 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3054 if test "x$host" != "x$build" -a -z "`echo $CC | grep -e '-gcc'`";
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cross-compiler" >&5
3057 $as_echo_n "checking for cross-compiler... " >&6; }
3059 which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc
3060 which ${host_cpu}-${host_os}-gcc >/dev/null 2>&1 \
3061 && CC=${host_cpu}-${host_os}-gcc
3062 which ${host_cpu}-${host_vendor}-${host_os}-gcc >/dev/null 2>&1 \
3063 && CC=${host_cpu}-${host_vendor}-${host_os}-gcc
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3066 $as_echo "$CC" >&6; }
3069 CFLAGS="$CFLAGS -D_GNU_SOURCE"
3073 ac_cpp='$CPP $CPPFLAGS'
3074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077 if test -n "$ac_tool_prefix"; then
3078 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3079 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if ${ac_cv_prog_CC+:} false; then :
3083 $as_echo_n "(cached) " >&6
3085 if test -n "$CC"; then
3086 ac_cv_prog_CC="$CC" # Let the user override the test.
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3095 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 if test -n "$CC"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108 $as_echo "$CC" >&6; }
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3116 if test -z "$ac_cv_prog_CC"; then
3118 # Extract the first word of "gcc", so it can be a program name with args.
3119 set dummy gcc; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3123 $as_echo_n "(cached) " >&6
3125 if test -n "$ac_ct_CC"; then
3126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135 ac_cv_prog_ac_ct_CC="gcc"
3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3146 if test -n "$ac_ct_CC"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3148 $as_echo "$ac_ct_CC" >&6; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3154 if test "x$ac_ct_CC" = x; then
3157 case $cross_compiling:$ac_tool_warned in
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3161 ac_tool_warned=yes ;;
3169 if test -z "$CC"; then
3170 if test -n "$ac_tool_prefix"; then
3171 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3172 set dummy ${ac_tool_prefix}cc; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if ${ac_cv_prog_CC+:} false; then :
3176 $as_echo_n "(cached) " >&6
3178 if test -n "$CC"; then
3179 ac_cv_prog_CC="$CC" # Let the user override the test.
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_prog_CC="${ac_tool_prefix}cc"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 if test -n "$CC"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201 $as_echo "$CC" >&6; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3210 if test -z "$CC"; then
3211 # Extract the first word of "cc", so it can be a program name with args.
3212 set dummy cc; ac_word=$2
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214 $as_echo_n "checking for $ac_word... " >&6; }
3215 if ${ac_cv_prog_CC+:} false; then :
3216 $as_echo_n "(cached) " >&6
3218 if test -n "$CC"; then
3219 ac_cv_prog_CC="$CC" # Let the user override the test.
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 test -z "$as_dir" && as_dir=.
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3230 ac_prog_rejected=yes
3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 if test $ac_prog_rejected = yes; then
3242 # We found a bogon in the path, so make sure we never use it.
3243 set dummy $ac_cv_prog_CC
3245 if test $# != 0; then
3246 # We chose a different compiler from the bogus one.
3247 # However, it has the same basename, so the bogon will be chosen
3248 # first if we set CC to just the basename; use the full file name.
3250 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3256 if test -n "$CC"; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258 $as_echo "$CC" >&6; }
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3266 if test -z "$CC"; then
3267 if test -n "$ac_tool_prefix"; then
3268 for ac_prog in cl.exe
3270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if ${ac_cv_prog_CC+:} false; then :
3275 $as_echo_n "(cached) " >&6
3277 if test -n "$CC"; then
3278 ac_cv_prog_CC="$CC" # Let the user override the test.
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 if test -n "$CC"; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3300 $as_echo "$CC" >&6; }
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 $as_echo "no" >&6; }
3307 test -n "$CC" && break
3310 if test -z "$CC"; then
3312 for ac_prog in cl.exe
3314 # Extract the first word of "$ac_prog", so it can be a program name with args.
3315 set dummy $ac_prog; ac_word=$2
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317 $as_echo_n "checking for $ac_word... " >&6; }
3318 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3319 $as_echo_n "(cached) " >&6
3321 if test -n "$ac_ct_CC"; then
3322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_ac_ct_CC="$ac_prog"
3332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3342 if test -n "$ac_ct_CC"; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3344 $as_echo "$ac_ct_CC" >&6; }
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 $as_echo "no" >&6; }
3351 test -n "$ac_ct_CC" && break
3354 if test "x$ac_ct_CC" = x; then
3357 case $cross_compiling:$ac_tool_warned in
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3361 ac_tool_warned=yes ;;
3370 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 as_fn_error $? "no acceptable C compiler found in \$PATH
3373 See \`config.log' for more details" "$LINENO" 5; }
3375 # Provide some information about the compiler.
3376 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3379 for ac_option in --version -v -V -qversion; do
3380 { { ac_try="$ac_compiler $ac_option >&5"
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 $as_echo "$ac_try_echo"; } >&5
3387 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3389 if test -s conftest.err; then
3391 ... rest of stderr output deleted ...
3392 10q' conftest.err >conftest.er1
3393 cat conftest.er1 >&5
3395 rm -f conftest.er1 conftest.err
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h. */
3411 ac_clean_files_save=$ac_clean_files
3412 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3413 # Try to create an executable without -o first, disregard a.out.
3414 # It will help us diagnose broken compilers, and finding out an intuition
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3417 $as_echo_n "checking whether the C compiler works... " >&6; }
3418 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3420 # The possible output files:
3421 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3424 for ac_file in $ac_files
3427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3428 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3433 if { { ac_try="$ac_link_default"
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439 $as_echo "$ac_try_echo"; } >&5
3440 (eval "$ac_link_default") 2>&5
3442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443 test $ac_status = 0; }; then :
3444 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3445 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3446 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3447 # so that the user can short-circuit this test for compilers unknown to
3449 for ac_file in $ac_files ''
3451 test -f "$ac_file" || continue
3453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3456 # We found the default executable, but exeext='' is most
3460 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3462 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3464 # We set ac_cv_exeext here because the later test for it is not
3465 # safe: cross compilers may not add the suffix if given an `-o'
3466 # argument, so we may need to know it at that point already.
3467 # Even if this section looks crufty: it has the advantage of
3474 test "$ac_cv_exeext" = no && ac_cv_exeext=
3479 if test -z "$ac_file"; then :
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3482 $as_echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487 as_fn_error 77 "C compiler cannot create executables
3488 See \`config.log' for more details" "$LINENO" 5; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3491 $as_echo "yes" >&6; }
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3494 $as_echo_n "checking for C compiler default output file name... " >&6; }
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3496 $as_echo "$ac_file" >&6; }
3497 ac_exeext=$ac_cv_exeext
3499 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3500 ac_clean_files=$ac_clean_files_save
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3502 $as_echo_n "checking for suffix of executables... " >&6; }
3503 if { { ac_try="$ac_link"
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509 $as_echo "$ac_try_echo"; } >&5
3510 (eval "$ac_link") 2>&5
3512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513 test $ac_status = 0; }; then :
3514 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3515 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3516 # work properly (i.e., refer to `conftest.exe'), while it won't with
3518 for ac_file in conftest.exe conftest conftest.*; do
3519 test -f "$ac_file" || continue
3521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3522 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3531 See \`config.log' for more details" "$LINENO" 5; }
3533 rm -f conftest conftest$ac_cv_exeext
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3535 $as_echo "$ac_cv_exeext" >&6; }
3537 rm -f conftest.$ac_ext
3538 EXEEXT=$ac_cv_exeext
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3546 FILE *f = fopen ("conftest.out", "w");
3547 return ferror (f) || fclose (f) != 0;
3553 ac_clean_files="$ac_clean_files conftest.out"
3554 # Check that the compiler produces executables we can run. If not, either
3555 # the compiler is broken, or we cross compile.
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3557 $as_echo_n "checking whether we are cross compiling... " >&6; }
3558 if test "$cross_compiling" != yes; then
3559 { { ac_try="$ac_link"
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565 $as_echo "$ac_try_echo"; } >&5
3566 (eval "$ac_link") 2>&5
3568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3569 test $ac_status = 0; }
3570 if { ac_try='./conftest$ac_cv_exeext'
3571 { { case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576 $as_echo "$ac_try_echo"; } >&5
3577 (eval "$ac_try") 2>&5
3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580 test $ac_status = 0; }; }; then
3583 if test "$cross_compiling" = maybe; then
3586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588 as_fn_error $? "cannot run C compiled programs.
3589 If you meant to cross compile, use \`--host'.
3590 See \`config.log' for more details" "$LINENO" 5; }
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3595 $as_echo "$cross_compiling" >&6; }
3597 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3598 ac_clean_files=$ac_clean_files_save
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3600 $as_echo_n "checking for suffix of object files... " >&6; }
3601 if ${ac_cv_objext+:} false; then :
3602 $as_echo_n "(cached) " >&6
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3615 rm -f conftest.o conftest.obj
3616 if { { ac_try="$ac_compile"
3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619 *) ac_try_echo=$ac_try;;
3621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622 $as_echo "$ac_try_echo"; } >&5
3623 (eval "$ac_compile") 2>&5
3625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626 test $ac_status = 0; }; then :
3627 for ac_file in conftest.o conftest.obj conftest.*; do
3628 test -f "$ac_file" || continue;
3630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3631 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3636 $as_echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3641 as_fn_error $? "cannot compute suffix of object files: cannot compile
3642 See \`config.log' for more details" "$LINENO" 5; }
3644 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3647 $as_echo "$ac_cv_objext" >&6; }
3648 OBJEXT=$ac_cv_objext
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3651 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3652 if ${ac_cv_c_compiler_gnu+:} false; then :
3653 $as_echo_n "(cached) " >&6
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3669 if ac_fn_c_try_compile "$LINENO"; then :
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3679 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3680 if test $ac_compiler_gnu = yes; then
3685 ac_test_CFLAGS=${CFLAGS+set}
3686 ac_save_CFLAGS=$CFLAGS
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3688 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3689 if ${ac_cv_prog_cc_g+:} false; then :
3690 $as_echo_n "(cached) " >&6
3692 ac_save_c_werror_flag=$ac_c_werror_flag
3693 ac_c_werror_flag=yes
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3707 if ac_fn_c_try_compile "$LINENO"; then :
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3722 if ac_fn_c_try_compile "$LINENO"; then :
3725 ac_c_werror_flag=$ac_save_c_werror_flag
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3738 if ac_fn_c_try_compile "$LINENO"; then :
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 ac_c_werror_flag=$ac_save_c_werror_flag
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3749 $as_echo "$ac_cv_prog_cc_g" >&6; }
3750 if test "$ac_test_CFLAGS" = set; then
3751 CFLAGS=$ac_save_CFLAGS
3752 elif test $ac_cv_prog_cc_g = yes; then
3753 if test "$GCC" = yes; then
3759 if test "$GCC" = yes; then
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3766 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3767 if ${ac_cv_prog_cc_c89+:} false; then :
3768 $as_echo_n "(cached) " >&6
3770 ac_cv_prog_cc_c89=no
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3777 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3778 struct buf { int x; };
3779 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3780 static char *e (p, i)
3786 static char *f (char * (*g) (char **, int), char **p, ...)
3791 s = g (p, va_arg (v,int));
3796 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3797 function prototypes and stuff, but not '\xHH' hex character constants.
3798 These don't provoke an error unfortunately, instead are silently treated
3799 as 'x'. The following induces an error, until -std is added to get
3800 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3801 array size at least. It's necessary to write '\x00'==0 to get something
3802 that's true only with -std. */
3803 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3805 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3806 inside strings and character constants. */
3808 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3810 int test (int i, double x);
3811 struct s1 {int (*f) (int a);};
3812 struct s2 {int (*f) (double a);};
3813 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3819 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3824 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3825 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3827 CC="$ac_save_CC $ac_arg"
3828 if ac_fn_c_try_compile "$LINENO"; then :
3829 ac_cv_prog_cc_c89=$ac_arg
3831 rm -f core conftest.err conftest.$ac_objext
3832 test "x$ac_cv_prog_cc_c89" != "xno" && break
3834 rm -f conftest.$ac_ext
3839 case "x$ac_cv_prog_cc_c89" in
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3842 $as_echo "none needed" >&6; } ;;
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3845 $as_echo "unsupported" >&6; } ;;
3847 CC="$CC $ac_cv_prog_cc_c89"
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3849 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3851 if test "x$ac_cv_prog_cc_c89" != xno; then :
3856 ac_cpp='$CPP $CPPFLAGS'
3857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3860 DEPDIR="${am__leading_dot}deps"
3862 ac_config_commands="$ac_config_commands depfiles"
3865 am_make=${MAKE-make}
3866 cat > confinc << 'END'
3868 @echo this is the am__doit target
3871 # If we don't find an include directive, just comment out the code.
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3873 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3877 # First try GNU make style include.
3878 echo "include confinc" > confmf
3879 # Ignore all kinds of additional output from 'make'.
3880 case `$am_make -s -f confmf 2> /dev/null` in #(
3881 *the\ am__doit\ target*)
3887 # Now try BSD make style include.
3888 if test "$am__include" = "#"; then
3889 echo '.include "confinc"' > confmf
3890 case `$am_make -s -f confmf 2> /dev/null` in #(
3891 *the\ am__doit\ target*)
3892 am__include=.include
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3901 $as_echo "$_am_result" >&6; }
3902 rm -f confinc confmf
3904 # Check whether --enable-dependency-tracking was given.
3905 if test "${enable_dependency_tracking+set}" = set; then :
3906 enableval=$enable_dependency_tracking;
3909 if test "x$enable_dependency_tracking" != xno; then
3910 am_depcomp="$ac_aux_dir/depcomp"
3914 if test "x$enable_dependency_tracking" != xno; then
3924 depcc="$CC" am_compiler_list=
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3927 $as_echo_n "checking dependency style of $depcc... " >&6; }
3928 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3929 $as_echo_n "(cached) " >&6
3931 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3932 # We make a subdir and do the tests there. Otherwise we can end up
3933 # making bogus files that we don't know about and never remove. For
3934 # instance it was reported that on HP-UX the gcc test will end up
3935 # making a dummy file named 'D' -- because '-MD' means "put the output
3939 # Copy depcomp to subdir because otherwise we won't find it if we're
3940 # using a relative directory.
3941 cp "$am_depcomp" conftest.dir
3943 # We will build objects and dependencies in a subdirectory because
3944 # it helps to detect inapplicable dependency modes. For instance
3945 # both Tru64's cc and ICC support -MD to output dependencies as a
3946 # side effect of compilation, but ICC will put the dependencies in
3947 # the current directory while Tru64 will put them in the object
3951 am_cv_CC_dependencies_compiler_type=none
3952 if test "$am_compiler_list" = ""; then
3953 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3956 case " $depcc " in #(
3957 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3960 for depmode in $am_compiler_list; do
3961 # Setup a source with many dependencies, because some compilers
3962 # like to wrap large dependency lists on column 80 (with \), and
3963 # we should not choose a depcomp mode which is confused by this.
3965 # We need to recreate these files for each test, as the compiler may
3966 # overwrite some of them when testing with obscure command lines.
3967 # This happens at least with the AIX C compiler.
3969 for i in 1 2 3 4 5 6; do
3970 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3971 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3972 # Solaris 10 /bin/sh.
3973 echo '/* dummy */' > sub/conftst$i.h
3975 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3977 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3978 # mode. It turns out that the SunPro C++ compiler does not properly
3979 # handle '-M -o', and we need to detect this. Also, some Intel
3980 # versions had trouble with output in subdirs.
3981 am__obj=sub/conftest.${OBJEXT-o}
3982 am__minus_obj="-o $am__obj"
3985 # This depmode causes a compiler race in universal mode.
3986 test "$am__universal" = false || continue
3989 # After this tag, mechanisms are not by side-effect, so they'll
3990 # only be used when explicitly requested.
3991 if test "x$enable_dependency_tracking" = xyes; then
3997 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3998 # This compiler won't grok '-c -o', but also, the minuso test has
3999 # not run yet. These depmodes are late enough in the game, and
4000 # so weak that their functioning should not be impacted.
4001 am__obj=conftest.${OBJEXT-o}
4006 if depmode=$depmode \
4007 source=sub/conftest.c object=$am__obj \
4008 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4009 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4010 >/dev/null 2>conftest.err &&
4011 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4012 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4013 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4014 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4015 # icc doesn't choke on unknown options, it will just issue warnings
4016 # or remarks (even with -Werror). So we grep stderr for any message
4017 # that says an option was ignored or not supported.
4018 # When given -MP, icc 7.0 and 7.1 complain thusly:
4019 # icc: Command line warning: ignoring option '-M'; no argument required
4020 # The diagnosis changed in icc 8.0:
4021 # icc: Command line remark: option '-MP' not supported
4022 if (grep 'ignoring option' conftest.err ||
4023 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4024 am_cv_CC_dependencies_compiler_type=$depmode
4033 am_cv_CC_dependencies_compiler_type=none
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4038 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4039 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4042 test "x$enable_dependency_tracking" != xno \
4043 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4045 am__fastdepCC_FALSE='#'
4047 am__fastdepCC_TRUE='#'
4048 am__fastdepCC_FALSE=
4053 ac_cpp='$CPP $CPPFLAGS'
4054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4058 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4059 # On Suns, sometimes $CPP names a directory.
4060 if test -n "$CPP" && test -d "$CPP"; then
4063 if test -z "$CPP"; then
4064 if ${ac_cv_prog_CPP+:} false; then :
4065 $as_echo_n "(cached) " >&6
4067 # Double quotes because CPP needs to be expanded
4068 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4071 for ac_c_preproc_warn_flag in '' yes
4073 # Use a header file that comes with gcc, so configuring glibc
4074 # with a fresh cross-compiler works.
4075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4076 # <limits.h> exists even on freestanding compilers.
4077 # On the NeXT, cc -E runs the code through the compiler's parser,
4078 # not just through cpp. "Syntax error" is here to catch this case.
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4082 # include <limits.h>
4084 # include <assert.h>
4088 if ac_fn_c_try_cpp "$LINENO"; then :
4091 # Broken: fails on valid input.
4094 rm -f conftest.err conftest.i conftest.$ac_ext
4096 # OK, works on sane cases. Now check whether nonexistent headers
4097 # can be detected and how.
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4100 #include <ac_nonexistent.h>
4102 if ac_fn_c_try_cpp "$LINENO"; then :
4103 # Broken: success on invalid input.
4106 # Passes both tests.
4110 rm -f conftest.err conftest.i conftest.$ac_ext
4113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4114 rm -f conftest.i conftest.err conftest.$ac_ext
4115 if $ac_preproc_ok; then :
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4128 $as_echo "$CPP" >&6; }
4130 for ac_c_preproc_warn_flag in '' yes
4132 # Use a header file that comes with gcc, so configuring glibc
4133 # with a fresh cross-compiler works.
4134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4135 # <limits.h> exists even on freestanding compilers.
4136 # On the NeXT, cc -E runs the code through the compiler's parser,
4137 # not just through cpp. "Syntax error" is here to catch this case.
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4141 # include <limits.h>
4143 # include <assert.h>
4147 if ac_fn_c_try_cpp "$LINENO"; then :
4150 # Broken: fails on valid input.
4153 rm -f conftest.err conftest.i conftest.$ac_ext
4155 # OK, works on sane cases. Now check whether nonexistent headers
4156 # can be detected and how.
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4159 #include <ac_nonexistent.h>
4161 if ac_fn_c_try_cpp "$LINENO"; then :
4162 # Broken: success on invalid input.
4165 # Passes both tests.
4169 rm -f conftest.err conftest.i conftest.$ac_ext
4172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4173 rm -f conftest.i conftest.err conftest.$ac_ext
4174 if $ac_preproc_ok; then :
4177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4179 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4180 See \`config.log' for more details" "$LINENO" 5; }
4184 ac_cpp='$CPP $CPPFLAGS'
4185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4191 $as_echo_n "checking whether ln -s works... " >&6; }
4193 if test "$LN_S" = "ln -s"; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4195 $as_echo "yes" >&6; }
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4198 $as_echo "no, using $LN_S" >&6; }
4201 # Check whether --enable-static was given.
4202 if test "${enable_static+set}" = set; then :
4203 enableval=$enable_static; p=${PACKAGE-default}
4205 yes) enable_static=yes ;;
4206 no) enable_static=no ;;
4209 # Look at the argument we got. We use all the common list separators.
4210 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4211 for pkg in $enableval; do
4213 if test "X$pkg" = "X$p"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4239 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4244 macro_version='2.4.2'
4245 macro_revision='1.3337'
4259 ltmain="$ac_aux_dir/ltmain.sh"
4261 # Backslashify metacharacters that are still active within
4262 # double-quoted strings.
4263 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4265 # Same as above, but do not quote variable references.
4266 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4268 # Sed substitution to delay expansion of an escaped shell variable in a
4269 # double_quote_subst'ed string.
4270 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4272 # Sed substitution to delay expansion of an escaped single quote.
4273 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4275 # Sed substitution to avoid accidental globbing in evaled expressions
4276 no_glob_subst='s/\*/\\\*/g'
4278 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4279 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4280 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4283 $as_echo_n "checking how to print strings... " >&6; }
4284 # Test print first, because it will be a builtin if present.
4285 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4286 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4288 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4291 # Use this function as a fallback that always works.
4292 func_fallback_echo ()
4294 eval 'cat <<_LTECHO_EOF
4298 ECHO='func_fallback_echo'
4301 # func_echo_all arg...
4302 # Invoke $ECHO with all args, space-separated.
4309 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4310 $as_echo "printf" >&6; } ;;
4311 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4312 $as_echo "print -r" >&6; } ;;
4313 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4314 $as_echo "cat" >&6; } ;;
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4331 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4332 if ${ac_cv_path_SED+:} false; then :
4333 $as_echo_n "(cached) " >&6
4335 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4336 for ac_i in 1 2 3 4 5 6 7; do
4337 ac_script="$ac_script$as_nl$ac_script"
4339 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4340 { ac_script=; unset ac_script;}
4341 if test -z "$SED"; then
4342 ac_path_SED_found=false
4343 # Loop through the user's path and test for each of PROGNAME-LIST
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 test -z "$as_dir" && as_dir=.
4349 for ac_prog in sed gsed; do
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4352 as_fn_executable_p "$ac_path_SED" || continue
4353 # Check for GNU ac_path_SED and select it if it is found.
4354 # Check for GNU $ac_path_SED
4355 case `"$ac_path_SED" --version 2>&1` in
4357 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4360 $as_echo_n 0123456789 >"conftest.in"
4363 cat "conftest.in" "conftest.in" >"conftest.tmp"
4364 mv "conftest.tmp" "conftest.in"
4365 cp "conftest.in" "conftest.nl"
4366 $as_echo '' >> "conftest.nl"
4367 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4368 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4369 as_fn_arith $ac_count + 1 && ac_count=$as_val
4370 if test $ac_count -gt ${ac_path_SED_max-0}; then
4371 # Best one so far, save it but keep looking for a better one
4372 ac_cv_path_SED="$ac_path_SED"
4373 ac_path_SED_max=$ac_count
4375 # 10*(2^10) chars as input seems more than enough
4376 test $ac_count -gt 10 && break
4378 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4381 $ac_path_SED_found && break 3
4386 if test -z "$ac_cv_path_SED"; then
4387 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4395 $as_echo "$ac_cv_path_SED" >&6; }
4396 SED="$ac_cv_path_SED"
4399 test -z "$SED" && SED=sed
4400 Xsed="$SED -e 1s/^X//"
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4413 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4414 if ${ac_cv_path_GREP+:} false; then :
4415 $as_echo_n "(cached) " >&6
4417 if test -z "$GREP"; then
4418 ac_path_GREP_found=false
4419 # Loop through the user's path and test for each of PROGNAME-LIST
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4424 test -z "$as_dir" && as_dir=.
4425 for ac_prog in grep ggrep; do
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4428 as_fn_executable_p "$ac_path_GREP" || continue
4429 # Check for GNU ac_path_GREP and select it if it is found.
4430 # Check for GNU $ac_path_GREP
4431 case `"$ac_path_GREP" --version 2>&1` in
4433 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4436 $as_echo_n 0123456789 >"conftest.in"
4439 cat "conftest.in" "conftest.in" >"conftest.tmp"
4440 mv "conftest.tmp" "conftest.in"
4441 cp "conftest.in" "conftest.nl"
4442 $as_echo 'GREP' >> "conftest.nl"
4443 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4444 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4445 as_fn_arith $ac_count + 1 && ac_count=$as_val
4446 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4447 # Best one so far, save it but keep looking for a better one
4448 ac_cv_path_GREP="$ac_path_GREP"
4449 ac_path_GREP_max=$ac_count
4451 # 10*(2^10) chars as input seems more than enough
4452 test $ac_count -gt 10 && break
4454 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4457 $ac_path_GREP_found && break 3
4462 if test -z "$ac_cv_path_GREP"; then
4463 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4466 ac_cv_path_GREP=$GREP
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4471 $as_echo "$ac_cv_path_GREP" >&6; }
4472 GREP="$ac_cv_path_GREP"
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4476 $as_echo_n "checking for egrep... " >&6; }
4477 if ${ac_cv_path_EGREP+:} false; then :
4478 $as_echo_n "(cached) " >&6
4480 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4481 then ac_cv_path_EGREP="$GREP -E"
4483 if test -z "$EGREP"; then
4484 ac_path_EGREP_found=false
4485 # Loop through the user's path and test for each of PROGNAME-LIST
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4490 test -z "$as_dir" && as_dir=.
4491 for ac_prog in egrep; do
4492 for ac_exec_ext in '' $ac_executable_extensions; do
4493 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4494 as_fn_executable_p "$ac_path_EGREP" || continue
4495 # Check for GNU ac_path_EGREP and select it if it is found.
4496 # Check for GNU $ac_path_EGREP
4497 case `"$ac_path_EGREP" --version 2>&1` in
4499 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4502 $as_echo_n 0123456789 >"conftest.in"
4505 cat "conftest.in" "conftest.in" >"conftest.tmp"
4506 mv "conftest.tmp" "conftest.in"
4507 cp "conftest.in" "conftest.nl"
4508 $as_echo 'EGREP' >> "conftest.nl"
4509 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4510 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4511 as_fn_arith $ac_count + 1 && ac_count=$as_val
4512 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4513 # Best one so far, save it but keep looking for a better one
4514 ac_cv_path_EGREP="$ac_path_EGREP"
4515 ac_path_EGREP_max=$ac_count
4517 # 10*(2^10) chars as input seems more than enough
4518 test $ac_count -gt 10 && break
4520 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4523 $ac_path_EGREP_found && break 3
4528 if test -z "$ac_cv_path_EGREP"; then
4529 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4532 ac_cv_path_EGREP=$EGREP
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4538 $as_echo "$ac_cv_path_EGREP" >&6; }
4539 EGREP="$ac_cv_path_EGREP"
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4543 $as_echo_n "checking for fgrep... " >&6; }
4544 if ${ac_cv_path_FGREP+:} false; then :
4545 $as_echo_n "(cached) " >&6
4547 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4548 then ac_cv_path_FGREP="$GREP -F"
4550 if test -z "$FGREP"; then
4551 ac_path_FGREP_found=false
4552 # Loop through the user's path and test for each of PROGNAME-LIST
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4557 test -z "$as_dir" && as_dir=.
4558 for ac_prog in fgrep; do
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4561 as_fn_executable_p "$ac_path_FGREP" || continue
4562 # Check for GNU ac_path_FGREP and select it if it is found.
4563 # Check for GNU $ac_path_FGREP
4564 case `"$ac_path_FGREP" --version 2>&1` in
4566 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4569 $as_echo_n 0123456789 >"conftest.in"
4572 cat "conftest.in" "conftest.in" >"conftest.tmp"
4573 mv "conftest.tmp" "conftest.in"
4574 cp "conftest.in" "conftest.nl"
4575 $as_echo 'FGREP' >> "conftest.nl"
4576 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4577 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4578 as_fn_arith $ac_count + 1 && ac_count=$as_val
4579 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4580 # Best one so far, save it but keep looking for a better one
4581 ac_cv_path_FGREP="$ac_path_FGREP"
4582 ac_path_FGREP_max=$ac_count
4584 # 10*(2^10) chars as input seems more than enough
4585 test $ac_count -gt 10 && break
4587 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4590 $ac_path_FGREP_found && break 3
4595 if test -z "$ac_cv_path_FGREP"; then
4596 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4599 ac_cv_path_FGREP=$FGREP
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4605 $as_echo "$ac_cv_path_FGREP" >&6; }
4606 FGREP="$ac_cv_path_FGREP"
4609 test -z "$GREP" && GREP=grep
4629 # Check whether --with-gnu-ld was given.
4630 if test "${with_gnu_ld+set}" = set; then :
4631 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4637 if test "$GCC" = yes; then
4638 # Check if gcc -print-prog-name=ld gives a path.
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4640 $as_echo_n "checking for ld used by $CC... " >&6; }
4643 # gcc leaves a trailing carriage return which upsets mingw
4644 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4646 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4649 # Accept absolute paths.
4651 re_direlt='/[^/][^/]*/\.\./'
4652 # Canonicalize the pathname of ld
4653 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4654 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4655 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4657 test -z "$LD" && LD="$ac_prog"
4660 # If it fails, then pretend we aren't using GCC.
4664 # If it is relative, then search for the first ld in PATH.
4668 elif test "$with_gnu_ld" = yes; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4670 $as_echo_n "checking for GNU ld... " >&6; }
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4673 $as_echo_n "checking for non-GNU ld... " >&6; }
4675 if ${lt_cv_path_LD+:} false; then :
4676 $as_echo_n "(cached) " >&6
4678 if test -z "$LD"; then
4679 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4680 for ac_dir in $PATH; do
4682 test -z "$ac_dir" && ac_dir=.
4683 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4684 lt_cv_path_LD="$ac_dir/$ac_prog"
4685 # Check to see if the program is GNU ld. I'd rather use --version,
4686 # but apparently some variants of GNU ld only accept -v.
4687 # Break only if it was the GNU/non-GNU ld that we prefer.
4688 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4689 *GNU* | *'with BFD'*)
4690 test "$with_gnu_ld" != no && break
4693 test "$with_gnu_ld" != yes && break
4700 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4705 if test -n "$LD"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4707 $as_echo "$LD" >&6; }
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4712 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4714 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4715 if ${lt_cv_prog_gnu_ld+:} false; then :
4716 $as_echo_n "(cached) " >&6
4718 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4719 case `$LD -v 2>&1 </dev/null` in
4720 *GNU* | *'with BFD'*)
4721 lt_cv_prog_gnu_ld=yes
4724 lt_cv_prog_gnu_ld=no
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4729 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4730 with_gnu_ld=$lt_cv_prog_gnu_ld
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4741 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4742 if ${lt_cv_path_NM+:} false; then :
4743 $as_echo_n "(cached) " >&6
4745 if test -n "$NM"; then
4746 # Let the user override the test.
4749 lt_nm_to_check="${ac_tool_prefix}nm"
4750 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4751 lt_nm_to_check="$lt_nm_to_check nm"
4753 for lt_tmp_nm in $lt_nm_to_check; do
4754 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4755 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4757 test -z "$ac_dir" && ac_dir=.
4758 tmp_nm="$ac_dir/$lt_tmp_nm"
4759 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4760 # Check to see if the nm accepts a BSD-compat flag.
4761 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4762 # nm: unknown option "B" ignored
4763 # Tru64's nm complains that /dev/null is an invalid object file
4764 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4765 */dev/null* | *'Invalid file or object type'*)
4766 lt_cv_path_NM="$tmp_nm -B"
4770 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4772 lt_cv_path_NM="$tmp_nm -p"
4776 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4777 continue # so that we can try to find one that supports BSD flags
4786 : ${lt_cv_path_NM=no}
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4790 $as_echo "$lt_cv_path_NM" >&6; }
4791 if test "$lt_cv_path_NM" != "no"; then
4794 # Didn't find any BSD compatible name lister, look for dumpbin.
4795 if test -n "$DUMPBIN"; then :
4796 # Let the user override the test.
4798 if test -n "$ac_tool_prefix"; then
4799 for ac_prog in dumpbin "link -dump"
4801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804 $as_echo_n "checking for $ac_word... " >&6; }
4805 if ${ac_cv_prog_DUMPBIN+:} false; then :
4806 $as_echo_n "(cached) " >&6
4808 if test -n "$DUMPBIN"; then
4809 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 test -z "$as_dir" && as_dir=.
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4818 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 DUMPBIN=$ac_cv_prog_DUMPBIN
4829 if test -n "$DUMPBIN"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4831 $as_echo "$DUMPBIN" >&6; }
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4838 test -n "$DUMPBIN" && break
4841 if test -z "$DUMPBIN"; then
4842 ac_ct_DUMPBIN=$DUMPBIN
4843 for ac_prog in dumpbin "link -dump"
4845 # Extract the first word of "$ac_prog", so it can be a program name with args.
4846 set dummy $ac_prog; ac_word=$2
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848 $as_echo_n "checking for $ac_word... " >&6; }
4849 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4850 $as_echo_n "(cached) " >&6
4852 if test -n "$ac_ct_DUMPBIN"; then
4853 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4862 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4873 if test -n "$ac_ct_DUMPBIN"; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4875 $as_echo "$ac_ct_DUMPBIN" >&6; }
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878 $as_echo "no" >&6; }
4882 test -n "$ac_ct_DUMPBIN" && break
4885 if test "x$ac_ct_DUMPBIN" = x; then
4888 case $cross_compiling:$ac_tool_warned in
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4892 ac_tool_warned=yes ;;
4894 DUMPBIN=$ac_ct_DUMPBIN
4898 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4900 DUMPBIN="$DUMPBIN -symbols"
4908 if test "$DUMPBIN" != ":"; then
4912 test -z "$NM" && NM=nm
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4920 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4921 if ${lt_cv_nm_interface+:} false; then :
4922 $as_echo_n "(cached) " >&6
4924 lt_cv_nm_interface="BSD nm"
4925 echo "int some_variable = 0;" > conftest.$ac_ext
4926 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4927 (eval "$ac_compile" 2>conftest.err)
4928 cat conftest.err >&5
4929 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4930 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4931 cat conftest.err >&5
4932 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4933 cat conftest.out >&5
4934 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4935 lt_cv_nm_interface="MS dumpbin"
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4940 $as_echo "$lt_cv_nm_interface" >&6; }
4942 # find the maximum length of command line arguments
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4944 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4945 if ${lt_cv_sys_max_cmd_len+:} false; then :
4946 $as_echo_n "(cached) " >&6
4953 # On DJGPP, this test can blow up pretty badly due to problems in libc
4954 # (any single argument exceeding 2000 bytes causes a buffer overrun
4955 # during glob expansion). Even if it were fixed, the result of this
4956 # check would be larger than it should be.
4957 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4961 # Under GNU Hurd, this test is not required because there is
4962 # no limit to the length of command line arguments.
4963 # Libtool will interpret -1 as no limit whatsoever
4964 lt_cv_sys_max_cmd_len=-1;
4967 cygwin* | mingw* | cegcc*)
4968 # On Win9x/ME, this test blows up -- it succeeds, but takes
4969 # about 5 minutes as the teststring grows exponentially.
4970 # Worse, since 9x/ME are not pre-emptively multitasking,
4971 # you end up with a "frozen" computer, even though with patience
4972 # the test eventually succeeds (with a max line length of 256k).
4973 # Instead, let's just punt: use the minimum linelength reported by
4974 # all of the supported platforms: 8192 (on NT/2K/XP).
4975 lt_cv_sys_max_cmd_len=8192;
4979 # On MiNT this can take a long time and run out of memory.
4980 lt_cv_sys_max_cmd_len=8192;
4984 # On AmigaOS with pdksh, this test takes hours, literally.
4985 # So we just punt and use a minimum line length of 8192.
4986 lt_cv_sys_max_cmd_len=8192;
4989 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4990 # This has been around since 386BSD, at least. Likely further.
4991 if test -x /sbin/sysctl; then
4992 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4993 elif test -x /usr/sbin/sysctl; then
4994 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4996 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4998 # And add a safety zone
4999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5004 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5005 lt_cv_sys_max_cmd_len=196608
5009 # The test takes a long time on OS/2.
5010 lt_cv_sys_max_cmd_len=8192
5014 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5015 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5016 # nice to cause kernel panics so lets avoid the loop below.
5017 # First set a reasonable default.
5018 lt_cv_sys_max_cmd_len=16384
5020 if test -x /sbin/sysconfig; then
5021 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5022 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5027 lt_cv_sys_max_cmd_len=102400
5029 sysv5* | sco5v6* | sysv4.2uw2*)
5030 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5031 if test -n "$kargmax"; then
5032 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5034 lt_cv_sys_max_cmd_len=32768
5038 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5039 if test -n "$lt_cv_sys_max_cmd_len"; then
5040 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5041 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5043 # Make teststring a little bigger before we do anything with it.
5044 # a 1K string should be a reasonable start.
5045 for i in 1 2 3 4 5 6 7 8 ; do
5046 teststring=$teststring$teststring
5048 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5049 # If test is not a shell built-in, we'll probably end up computing a
5050 # maximum length that is only half of the actual maximum length, but
5052 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5053 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5054 test $i != 17 # 1/2 MB should be enough
5057 teststring=$teststring$teststring
5059 # Only check the string length outside the loop.
5060 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5062 # Add a significant safety factor because C++ compilers can tack on
5063 # massive amounts of additional arguments before passing them to the
5064 # linker. It appears as though 1/2 is a usable value.
5065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5072 if test -n $lt_cv_sys_max_cmd_len ; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5074 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5077 $as_echo "none" >&6; }
5079 max_cmd_len=$lt_cv_sys_max_cmd_len
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5091 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5092 # Try some XSI features
5095 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5097 && eval 'test $(( 1 + 1 )) -eq 2 \
5098 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5101 $as_echo "$xsi_shell" >&6; }
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5105 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5107 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5109 && lt_shell_append=yes
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5111 $as_echo "$lt_shell_append" >&6; }
5114 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5124 # test EBCDIC or ASCII
5125 case `echo X|tr X '\101'` in
5126 A) # ASCII based system
5127 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5128 lt_SP2NL='tr \040 \012'
5129 lt_NL2SP='tr \015\012 \040\040'
5131 *) # EBCDIC based system
5132 lt_SP2NL='tr \100 \n'
5133 lt_NL2SP='tr \r\n \100\100'
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5146 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5147 if ${lt_cv_to_host_file_cmd+:} false; then :
5148 $as_echo_n "(cached) " >&6
5153 *-*-mingw* ) # actually msys
5154 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5157 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5159 * ) # otherwise, assume *nix
5160 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5166 *-*-mingw* ) # actually msys
5167 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5170 lt_cv_to_host_file_cmd=func_convert_file_noop
5172 * ) # otherwise, assume *nix
5173 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5177 * ) # unhandled hosts (and "normal" native builds)
5178 lt_cv_to_host_file_cmd=func_convert_file_noop
5184 to_host_file_cmd=$lt_cv_to_host_file_cmd
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5186 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5193 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5194 if ${lt_cv_to_tool_file_cmd+:} false; then :
5195 $as_echo_n "(cached) " >&6
5197 #assume ordinary cross tools, or native build.
5198 lt_cv_to_tool_file_cmd=func_convert_file_noop
5202 *-*-mingw* ) # actually msys
5203 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5211 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5213 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5220 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5221 if ${lt_cv_ld_reload_flag+:} false; then :
5222 $as_echo_n "(cached) " >&6
5224 lt_cv_ld_reload_flag='-r'
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5227 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5228 reload_flag=$lt_cv_ld_reload_flag
5229 case $reload_flag in
5231 *) reload_flag=" $reload_flag" ;;
5233 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5235 cygwin* | mingw* | pw32* | cegcc*)
5236 if test "$GCC" != yes; then
5241 if test "$GCC" = yes; then
5242 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5244 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5257 if test -n "$ac_tool_prefix"; then
5258 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5259 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if ${ac_cv_prog_OBJDUMP+:} false; then :
5263 $as_echo_n "(cached) " >&6
5265 if test -n "$OBJDUMP"; then
5266 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 OBJDUMP=$ac_cv_prog_OBJDUMP
5286 if test -n "$OBJDUMP"; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5288 $as_echo "$OBJDUMP" >&6; }
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5296 if test -z "$ac_cv_prog_OBJDUMP"; then
5297 ac_ct_OBJDUMP=$OBJDUMP
5298 # Extract the first word of "objdump", so it can be a program name with args.
5299 set dummy objdump; ac_word=$2
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301 $as_echo_n "checking for $ac_word... " >&6; }
5302 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5303 $as_echo_n "(cached) " >&6
5305 if test -n "$ac_ct_OBJDUMP"; then
5306 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 test -z "$as_dir" && as_dir=.
5313 for ac_exec_ext in '' $ac_executable_extensions; do
5314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5315 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5325 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5326 if test -n "$ac_ct_OBJDUMP"; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5328 $as_echo "$ac_ct_OBJDUMP" >&6; }
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 $as_echo "no" >&6; }
5334 if test "x$ac_ct_OBJDUMP" = x; then
5337 case $cross_compiling:$ac_tool_warned in
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5341 ac_tool_warned=yes ;;
5343 OBJDUMP=$ac_ct_OBJDUMP
5346 OBJDUMP="$ac_cv_prog_OBJDUMP"
5349 test -z "$OBJDUMP" && OBJDUMP=objdump
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5360 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5361 if ${lt_cv_deplibs_check_method+:} false; then :
5362 $as_echo_n "(cached) " >&6
5364 lt_cv_file_magic_cmd='$MAGIC_CMD'
5365 lt_cv_file_magic_test_file=
5366 lt_cv_deplibs_check_method='unknown'
5367 # Need to set the preceding variable on all platforms that support
5368 # interlibrary dependencies.
5369 # 'none' -- dependencies not supported.
5370 # `unknown' -- same as none, but documents that we really don't know.
5371 # 'pass_all' -- all dependencies passed with no checks.
5372 # 'test_compile' -- check by making test program.
5373 # 'file_magic [[regex]]' -- check by looking for files in library path
5374 # which responds to the $file_magic_cmd with a given extended regex.
5375 # If you have `file' or equivalent on your system and you're not sure
5376 # whether `pass_all' will *always* work, you probably want this one.
5380 lt_cv_deplibs_check_method=pass_all
5384 lt_cv_deplibs_check_method=pass_all
5388 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5389 lt_cv_file_magic_cmd='/usr/bin/file -L'
5390 lt_cv_file_magic_test_file=/shlib/libc.so
5394 # func_win32_libid is a shell function defined in ltmain.sh
5395 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5396 lt_cv_file_magic_cmd='func_win32_libid'
5400 # Base MSYS/MinGW do not provide the 'file' command needed by
5401 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5402 # unless we find 'file', for example because we are cross-compiling.
5403 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5404 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5405 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5406 lt_cv_file_magic_cmd='func_win32_libid'
5408 # Keep this pattern in sync with the one in func_win32_libid.
5409 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5410 lt_cv_file_magic_cmd='$OBJDUMP -f'
5415 # use the weaker test based on 'objdump'. See mingw*.
5416 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5417 lt_cv_file_magic_cmd='$OBJDUMP -f'
5420 darwin* | rhapsody*)
5421 lt_cv_deplibs_check_method=pass_all
5424 freebsd* | dragonfly*)
5425 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5428 # Not sure whether the presence of OpenBSD here was a mistake.
5429 # Let's accept both of them until this is cleared up.
5430 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5431 lt_cv_file_magic_cmd=/usr/bin/file
5432 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5436 lt_cv_deplibs_check_method=pass_all
5441 lt_cv_deplibs_check_method=pass_all
5445 lt_cv_deplibs_check_method=pass_all
5448 hpux10.20* | hpux11*)
5449 lt_cv_file_magic_cmd=/usr/bin/file
5452 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5453 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5456 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5457 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5460 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5461 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5467 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5471 irix5* | irix6* | nonstopux*)
5473 *-32|*"-32 ") libmagic=32-bit;;
5474 *-n32|*"-n32 ") libmagic=N32;;
5475 *-64|*"-64 ") libmagic=64-bit;;
5476 *) libmagic=never-match;;
5478 lt_cv_deplibs_check_method=pass_all
5481 # This must be glibc/ELF.
5482 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5483 lt_cv_deplibs_check_method=pass_all
5487 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5488 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5495 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5496 lt_cv_file_magic_cmd=/usr/bin/file
5497 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5501 lt_cv_deplibs_check_method=pass_all
5505 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5512 osf3* | osf4* | osf5*)
5513 lt_cv_deplibs_check_method=pass_all
5517 lt_cv_deplibs_check_method=pass_all
5521 lt_cv_deplibs_check_method=pass_all
5524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5525 lt_cv_deplibs_check_method=pass_all
5529 case $host_vendor in
5531 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]'
5532 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5535 lt_cv_deplibs_check_method=pass_all
5538 lt_cv_file_magic_cmd='/bin/file'
5539 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5542 lt_cv_file_magic_cmd='/bin/file'
5543 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5544 lt_cv_file_magic_test_file=/lib/libc.so
5547 lt_cv_deplibs_check_method=pass_all
5550 lt_cv_deplibs_check_method=pass_all
5556 lt_cv_deplibs_check_method=pass_all
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5562 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5566 if test "$build" = "$host"; then
5569 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5572 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5578 file_magic_cmd=$lt_cv_file_magic_cmd
5579 deplibs_check_method=$lt_cv_deplibs_check_method
5580 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5603 if test -n "$ac_tool_prefix"; then
5604 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5605 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_prog_DLLTOOL+:} false; then :
5609 $as_echo_n "(cached) " >&6
5611 if test -n "$DLLTOOL"; then
5612 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 DLLTOOL=$ac_cv_prog_DLLTOOL
5632 if test -n "$DLLTOOL"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5634 $as_echo "$DLLTOOL" >&6; }
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5642 if test -z "$ac_cv_prog_DLLTOOL"; then
5643 ac_ct_DLLTOOL=$DLLTOOL
5644 # Extract the first word of "dlltool", so it can be a program name with args.
5645 set dummy dlltool; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5649 $as_echo_n "(cached) " >&6
5651 if test -n "$ac_ct_DLLTOOL"; then
5652 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 test -z "$as_dir" && as_dir=.
5659 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5661 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5672 if test -n "$ac_ct_DLLTOOL"; then
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5674 $as_echo "$ac_ct_DLLTOOL" >&6; }
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677 $as_echo "no" >&6; }
5680 if test "x$ac_ct_DLLTOOL" = x; then
5683 case $cross_compiling:$ac_tool_warned in
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5687 ac_tool_warned=yes ;;
5689 DLLTOOL=$ac_ct_DLLTOOL
5692 DLLTOOL="$ac_cv_prog_DLLTOOL"
5695 test -z "$DLLTOOL" && DLLTOOL=dlltool
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5707 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5708 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5709 $as_echo_n "(cached) " >&6
5711 lt_cv_sharedlib_from_linklib_cmd='unknown'
5714 cygwin* | mingw* | pw32* | cegcc*)
5715 # two different shell functions defined in ltmain.sh
5716 # decide which to use based on capabilities of $DLLTOOL
5717 case `$DLLTOOL --help 2>&1` in
5718 *--identify-strict*)
5719 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5722 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5727 # fallback: assume linklib IS sharedlib
5728 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5734 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5735 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5736 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5745 if test -n "$ac_tool_prefix"; then
5748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5749 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751 $as_echo_n "checking for $ac_word... " >&6; }
5752 if ${ac_cv_prog_AR+:} false; then :
5753 $as_echo_n "(cached) " >&6
5755 if test -n "$AR"; then
5756 ac_cv_prog_AR="$AR" # Let the user override the test.
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5765 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 if test -n "$AR"; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5778 $as_echo "$AR" >&6; }
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 $as_echo "no" >&6; }
5785 test -n "$AR" && break
5788 if test -z "$AR"; then
5792 # Extract the first word of "$ac_prog", so it can be a program name with args.
5793 set dummy $ac_prog; ac_word=$2
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 $as_echo_n "checking for $ac_word... " >&6; }
5796 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5797 $as_echo_n "(cached) " >&6
5799 if test -n "$ac_ct_AR"; then
5800 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_ac_ct_AR="$ac_prog"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5820 if test -n "$ac_ct_AR"; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5822 $as_echo "$ac_ct_AR" >&6; }
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 $as_echo "no" >&6; }
5829 test -n "$ac_ct_AR" && break
5832 if test "x$ac_ct_AR" = x; then
5835 case $cross_compiling:$ac_tool_warned in
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5839 ac_tool_warned=yes ;;
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5859 $as_echo_n "checking for archiver @FILE support... " >&6; }
5860 if ${lt_cv_ar_at_file+:} false; then :
5861 $as_echo_n "(cached) " >&6
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5875 if ac_fn_c_try_compile "$LINENO"; then :
5876 echo conftest.$ac_objext > conftest.lst
5877 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5879 (eval $lt_ar_try) 2>&5
5881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5882 test $ac_status = 0; }
5883 if test "$ac_status" -eq 0; then
5884 # Ensure the archiver fails upon bogus file names.
5885 rm -f conftest.$ac_objext libconftest.a
5886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5887 (eval $lt_ar_try) 2>&5
5889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5890 test $ac_status = 0; }
5891 if test "$ac_status" -ne 0; then
5895 rm -f conftest.* libconftest.a
5898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5902 $as_echo "$lt_cv_ar_at_file" >&6; }
5904 if test "x$lt_cv_ar_at_file" = xno; then
5907 archiver_list_spec=$lt_cv_ar_at_file
5916 if test -n "$ac_tool_prefix"; then
5917 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5918 set dummy ${ac_tool_prefix}strip; ac_word=$2
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920 $as_echo_n "checking for $ac_word... " >&6; }
5921 if ${ac_cv_prog_STRIP+:} false; then :
5922 $as_echo_n "(cached) " >&6
5924 if test -n "$STRIP"; then
5925 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 STRIP=$ac_cv_prog_STRIP
5945 if test -n "$STRIP"; then
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5947 $as_echo "$STRIP" >&6; }
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950 $as_echo "no" >&6; }
5955 if test -z "$ac_cv_prog_STRIP"; then
5957 # Extract the first word of "strip", so it can be a program name with args.
5958 set dummy strip; ac_word=$2
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5960 $as_echo_n "checking for $ac_word... " >&6; }
5961 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5962 $as_echo_n "(cached) " >&6
5964 if test -n "$ac_ct_STRIP"; then
5965 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 test -z "$as_dir" && as_dir=.
5972 for ac_exec_ext in '' $ac_executable_extensions; do
5973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5974 ac_cv_prog_ac_ct_STRIP="strip"
5975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5984 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5985 if test -n "$ac_ct_STRIP"; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5987 $as_echo "$ac_ct_STRIP" >&6; }
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990 $as_echo "no" >&6; }
5993 if test "x$ac_ct_STRIP" = x; then
5996 case $cross_compiling:$ac_tool_warned in
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6000 ac_tool_warned=yes ;;
6005 STRIP="$ac_cv_prog_STRIP"
6008 test -z "$STRIP" && STRIP=:
6015 if test -n "$ac_tool_prefix"; then
6016 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6017 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6019 $as_echo_n "checking for $ac_word... " >&6; }
6020 if ${ac_cv_prog_RANLIB+:} false; then :
6021 $as_echo_n "(cached) " >&6
6023 if test -n "$RANLIB"; then
6024 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6033 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043 RANLIB=$ac_cv_prog_RANLIB
6044 if test -n "$RANLIB"; then
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6046 $as_echo "$RANLIB" >&6; }
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049 $as_echo "no" >&6; }
6054 if test -z "$ac_cv_prog_RANLIB"; then
6055 ac_ct_RANLIB=$RANLIB
6056 # Extract the first word of "ranlib", so it can be a program name with args.
6057 set dummy ranlib; ac_word=$2
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059 $as_echo_n "checking for $ac_word... " >&6; }
6060 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6061 $as_echo_n "(cached) " >&6
6063 if test -n "$ac_ct_RANLIB"; then
6064 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6073 ac_cv_prog_ac_ct_RANLIB="ranlib"
6074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6083 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6084 if test -n "$ac_ct_RANLIB"; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6086 $as_echo "$ac_ct_RANLIB" >&6; }
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6092 if test "x$ac_ct_RANLIB" = x; then
6095 case $cross_compiling:$ac_tool_warned in
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6099 ac_tool_warned=yes ;;
6101 RANLIB=$ac_ct_RANLIB
6104 RANLIB="$ac_cv_prog_RANLIB"
6107 test -z "$RANLIB" && RANLIB=:
6114 # Determine commands to create old-style static archives.
6115 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6116 old_postinstall_cmds='chmod 644 $oldlib'
6117 old_postuninstall_cmds=
6119 if test -n "$RANLIB"; then
6122 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6125 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6128 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6133 lock_old_archive_extraction=yes ;;
6135 lock_old_archive_extraction=no ;;
6176 # If no C compiler was specified, use CC.
6179 # If no C compiler flags were specified, use CFLAGS.
6180 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6182 # Allow CC to be a program name with arguments.
6186 # Check for command to grab the raw symbol name followed by C symbol from nm.
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6188 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6189 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6190 $as_echo_n "(cached) " >&6
6193 # These are sane defaults that work on at least a few old systems.
6194 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6196 # Character class describing NM global symbol codes.
6197 symcode='[BCDEGRST]'
6199 # Regexp to match symbols that can be accessed directly from C.
6200 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6202 # Define system-specific variables.
6207 cygwin* | mingw* | pw32* | cegcc*)
6208 symcode='[ABCDGISTW]'
6211 if test "$host_cpu" = ia64; then
6212 symcode='[ABCDEGRST]'
6216 symcode='[BCDEGRST]'
6219 symcode='[BCDEGQRST]'
6230 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6238 # If we're using GNU nm, then use its standard symbol codes.
6239 case `$NM -V 2>&1` in
6240 *GNU* | *'with BFD'*)
6241 symcode='[ABCDGIRSTW]' ;;
6244 # Transform an extracted symbol line into a proper C declaration.
6245 # Some systems (esp. on ia64) link data and code symbols differently,
6246 # so use this general approach.
6247 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6249 # Transform an extracted symbol line into symbol name and symbol address
6250 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6251 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6253 # Handle CRLF in mingw tool chain
6257 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6261 # Try without a prefix underscore, then with it.
6262 for ac_symprfx in "" "_"; do
6264 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6265 symxfrm="\\1 $ac_symprfx\\2 \\2"
6267 # Write the raw and C identifiers.
6268 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6269 # Fake it for dumpbin and say T for any non-static function
6270 # and D for any global variable.
6271 # Also find C++ and __fastcall symbols from MSVC++,
6272 # which start with @ or ?.
6273 lt_cv_sys_global_symbol_pipe="$AWK '"\
6274 " {last_section=section; section=\$ 3};"\
6275 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6276 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6277 " \$ 0!~/External *\|/{next};"\
6278 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6279 " {if(hide[section]) next};"\
6280 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6281 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6282 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6283 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6284 " ' prfx=^$ac_symprfx"
6286 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6288 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6290 # Check to see that the pipe works correctly.
6294 cat > conftest.$ac_ext <<_LT_EOF
6299 void nm_test_func(void);
6300 void nm_test_func(void){}
6304 int main(){nm_test_var='a';nm_test_func();return(0);}
6307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6308 (eval $ac_compile) 2>&5
6310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6311 test $ac_status = 0; }; then
6312 # Now try to grab the symbols.
6314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6315 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6318 test $ac_status = 0; } && test -s "$nlist"; then
6319 # Try sorting and uniquifying the output.
6320 if sort "$nlist" | uniq > "$nlist"T; then
6321 mv -f "$nlist"T "$nlist"
6326 # Make sure that we snagged all the symbols we need.
6327 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6328 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6329 cat <<_LT_EOF > conftest.$ac_ext
6330 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6331 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6332 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6333 relocations are performed -- see ld's documentation on pseudo-relocs. */
6334 # define LT_DLSYM_CONST
6335 #elif defined(__osf__)
6336 /* This system does not cope well with relocations in const data. */
6337 # define LT_DLSYM_CONST
6339 # define LT_DLSYM_CONST const
6347 # Now generate the symbol file.
6348 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6350 cat <<_LT_EOF >> conftest.$ac_ext
6352 /* The mapping between symbol names and symbols. */
6353 LT_DLSYM_CONST struct {
6357 lt__PROGRAM__LTX_preloaded_symbols[] =
6359 { "@PROGRAM@", (void *) 0 },
6361 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6362 cat <<\_LT_EOF >> conftest.$ac_ext
6366 /* This works around a problem in FreeBSD linker */
6367 #ifdef FREEBSD_WORKAROUND
6368 static const void *lt_preloaded_setup() {
6369 return lt__PROGRAM__LTX_preloaded_symbols;
6377 # Now try linking the two files.
6378 mv conftest.$ac_objext conftstm.$ac_objext
6379 lt_globsym_save_LIBS=$LIBS
6380 lt_globsym_save_CFLAGS=$CFLAGS
6381 LIBS="conftstm.$ac_objext"
6382 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6384 (eval $ac_link) 2>&5
6386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6387 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6390 LIBS=$lt_globsym_save_LIBS
6391 CFLAGS=$lt_globsym_save_CFLAGS
6393 echo "cannot find nm_test_func in $nlist" >&5
6396 echo "cannot find nm_test_var in $nlist" >&5
6399 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6402 echo "$progname: failed program was:" >&5
6403 cat conftest.$ac_ext >&5
6405 rm -rf conftest* conftst*
6407 # Do not use the global_symbol_pipe unless it works.
6408 if test "$pipe_works" = yes; then
6411 lt_cv_sys_global_symbol_pipe=
6417 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6418 lt_cv_sys_global_symbol_to_cdecl=
6420 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6422 $as_echo "failed" >&6; }
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6425 $as_echo "ok" >&6; }
6428 # Response file support.
6429 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6430 nm_file_list_spec='@'
6431 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6432 nm_file_list_spec='@'
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6462 $as_echo_n "checking for sysroot... " >&6; }
6464 # Check whether --with-sysroot was given.
6465 if test "${with_sysroot+set}" = set; then :
6466 withval=$with_sysroot;
6473 case ${with_sysroot} in #(
6475 if test "$GCC" = yes; then
6476 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6480 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6486 $as_echo "${with_sysroot}" >&6; }
6487 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6492 $as_echo "${lt_sysroot:-no}" >&6; }
6498 # Check whether --enable-libtool-lock was given.
6499 if test "${enable_libtool_lock+set}" = set; then :
6500 enableval=$enable_libtool_lock;
6503 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6505 # Some flags need to be propagated to the compiler or linker for good
6509 # Find out which ABI we are using.
6510 echo 'int i;' > conftest.$ac_ext
6511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6512 (eval $ac_compile) 2>&5
6514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6515 test $ac_status = 0; }; then
6516 case `/usr/bin/file conftest.$ac_objext` in
6528 # Find out which ABI we are using.
6529 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6531 (eval $ac_compile) 2>&5
6533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6534 test $ac_status = 0; }; then
6535 if test "$lt_cv_prog_gnu_ld" = yes; then
6536 case `/usr/bin/file conftest.$ac_objext` in
6538 LD="${LD-ld} -melf32bsmip"
6541 LD="${LD-ld} -melf32bmipn32"
6544 LD="${LD-ld} -melf64bmip"
6548 case `/usr/bin/file conftest.$ac_objext` in
6564 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6565 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6566 # Find out which ABI we are using.
6567 echo 'int i;' > conftest.$ac_ext
6568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6569 (eval $ac_compile) 2>&5
6571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6572 test $ac_status = 0; }; then
6573 case `/usr/bin/file conftest.o` in
6576 x86_64-*kfreebsd*-gnu)
6577 LD="${LD-ld} -m elf_i386_fbsd"
6580 LD="${LD-ld} -m elf_i386"
6582 ppc64-*linux*|powerpc64-*linux*)
6583 LD="${LD-ld} -m elf32ppclinux"
6586 LD="${LD-ld} -m elf_s390"
6589 LD="${LD-ld} -m elf32_sparc"
6595 x86_64-*kfreebsd*-gnu)
6596 LD="${LD-ld} -m elf_x86_64_fbsd"
6599 LD="${LD-ld} -m elf_x86_64"
6601 ppc*-*linux*|powerpc*-*linux*)
6602 LD="${LD-ld} -m elf64ppc"
6604 s390*-*linux*|s390*-*tpf*)
6605 LD="${LD-ld} -m elf64_s390"
6608 LD="${LD-ld} -m elf64_sparc"
6618 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6619 SAVE_CFLAGS="$CFLAGS"
6620 CFLAGS="$CFLAGS -belf"
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6622 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6623 if ${lt_cv_cc_needs_belf+:} false; then :
6624 $as_echo_n "(cached) " >&6
6627 ac_cpp='$CPP $CPPFLAGS'
6628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h. */
6643 if ac_fn_c_try_link "$LINENO"; then :
6644 lt_cv_cc_needs_belf=yes
6646 lt_cv_cc_needs_belf=no
6648 rm -f core conftest.err conftest.$ac_objext \
6649 conftest$ac_exeext conftest.$ac_ext
6651 ac_cpp='$CPP $CPPFLAGS'
6652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6658 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6659 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6660 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6661 CFLAGS="$SAVE_CFLAGS"
6665 # Find out which ABI we are using.
6666 echo 'int i;' > conftest.$ac_ext
6667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6668 (eval $ac_compile) 2>&5
6670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6671 test $ac_status = 0; }; then
6672 case `/usr/bin/file conftest.o` in
6674 case $lt_cv_prog_gnu_ld in
6678 LD="${LD-ld} -m elf_x86_64"
6681 LD="${LD-ld} -m elf64_sparc"
6684 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6685 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6690 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6702 need_locks="$enable_libtool_lock"
6704 if test -n "$ac_tool_prefix"; then
6705 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6706 set dummy ${ac_tool_prefix}mt; ac_word=$2
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6708 $as_echo_n "checking for $ac_word... " >&6; }
6709 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6710 $as_echo_n "(cached) " >&6
6712 if test -n "$MANIFEST_TOOL"; then
6713 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6722 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6733 if test -n "$MANIFEST_TOOL"; then
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6735 $as_echo "$MANIFEST_TOOL" >&6; }
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6738 $as_echo "no" >&6; }
6743 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6744 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6745 # Extract the first word of "mt", so it can be a program name with args.
6746 set dummy mt; ac_word=$2
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6750 $as_echo_n "(cached) " >&6
6752 if test -n "$ac_ct_MANIFEST_TOOL"; then
6753 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6762 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6773 if test -n "$ac_ct_MANIFEST_TOOL"; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6775 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778 $as_echo "no" >&6; }
6781 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6784 case $cross_compiling:$ac_tool_warned in
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6788 ac_tool_warned=yes ;;
6790 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6793 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6796 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6798 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6799 if ${lt_cv_path_mainfest_tool+:} false; then :
6800 $as_echo_n "(cached) " >&6
6802 lt_cv_path_mainfest_tool=no
6803 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6804 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6805 cat conftest.err >&5
6806 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6807 lt_cv_path_mainfest_tool=yes
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6812 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6813 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6823 rhapsody* | darwin*)
6824 if test -n "$ac_tool_prefix"; then
6825 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6826 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6830 $as_echo_n "(cached) " >&6
6832 if test -n "$DSYMUTIL"; then
6833 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6842 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6853 if test -n "$DSYMUTIL"; then
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6855 $as_echo "$DSYMUTIL" >&6; }
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 $as_echo "no" >&6; }
6863 if test -z "$ac_cv_prog_DSYMUTIL"; then
6864 ac_ct_DSYMUTIL=$DSYMUTIL
6865 # Extract the first word of "dsymutil", so it can be a program name with args.
6866 set dummy dsymutil; ac_word=$2
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868 $as_echo_n "checking for $ac_word... " >&6; }
6869 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6870 $as_echo_n "(cached) " >&6
6872 if test -n "$ac_ct_DSYMUTIL"; then
6873 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6882 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6893 if test -n "$ac_ct_DSYMUTIL"; then
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6895 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898 $as_echo "no" >&6; }
6901 if test "x$ac_ct_DSYMUTIL" = x; then
6904 case $cross_compiling:$ac_tool_warned in
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6908 ac_tool_warned=yes ;;
6910 DSYMUTIL=$ac_ct_DSYMUTIL
6913 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6916 if test -n "$ac_tool_prefix"; then
6917 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6918 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920 $as_echo_n "checking for $ac_word... " >&6; }
6921 if ${ac_cv_prog_NMEDIT+:} false; then :
6922 $as_echo_n "(cached) " >&6
6924 if test -n "$NMEDIT"; then
6925 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
6933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6934 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 NMEDIT=$ac_cv_prog_NMEDIT
6945 if test -n "$NMEDIT"; then
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6947 $as_echo "$NMEDIT" >&6; }
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950 $as_echo "no" >&6; }
6955 if test -z "$ac_cv_prog_NMEDIT"; then
6956 ac_ct_NMEDIT=$NMEDIT
6957 # Extract the first word of "nmedit", so it can be a program name with args.
6958 set dummy nmedit; ac_word=$2
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6960 $as_echo_n "checking for $ac_word... " >&6; }
6961 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6962 $as_echo_n "(cached) " >&6
6964 if test -n "$ac_ct_NMEDIT"; then
6965 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 test -z "$as_dir" && as_dir=.
6972 for ac_exec_ext in '' $ac_executable_extensions; do
6973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6974 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6985 if test -n "$ac_ct_NMEDIT"; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6987 $as_echo "$ac_ct_NMEDIT" >&6; }
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6993 if test "x$ac_ct_NMEDIT" = x; then
6996 case $cross_compiling:$ac_tool_warned in
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7000 ac_tool_warned=yes ;;
7002 NMEDIT=$ac_ct_NMEDIT
7005 NMEDIT="$ac_cv_prog_NMEDIT"
7008 if test -n "$ac_tool_prefix"; then
7009 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7010 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7012 $as_echo_n "checking for $ac_word... " >&6; }
7013 if ${ac_cv_prog_LIPO+:} false; then :
7014 $as_echo_n "(cached) " >&6
7016 if test -n "$LIPO"; then
7017 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 test -z "$as_dir" && as_dir=.
7024 for ac_exec_ext in '' $ac_executable_extensions; do
7025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7026 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 LIPO=$ac_cv_prog_LIPO
7037 if test -n "$LIPO"; then
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7039 $as_echo "$LIPO" >&6; }
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7042 $as_echo "no" >&6; }
7047 if test -z "$ac_cv_prog_LIPO"; then
7049 # Extract the first word of "lipo", so it can be a program name with args.
7050 set dummy lipo; ac_word=$2
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7052 $as_echo_n "checking for $ac_word... " >&6; }
7053 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7054 $as_echo_n "(cached) " >&6
7056 if test -n "$ac_ct_LIPO"; then
7057 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 test -z "$as_dir" && as_dir=.
7064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7066 ac_cv_prog_ac_ct_LIPO="lipo"
7067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7076 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7077 if test -n "$ac_ct_LIPO"; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7079 $as_echo "$ac_ct_LIPO" >&6; }
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7082 $as_echo "no" >&6; }
7085 if test "x$ac_ct_LIPO" = x; then
7088 case $cross_compiling:$ac_tool_warned in
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7092 ac_tool_warned=yes ;;
7097 LIPO="$ac_cv_prog_LIPO"
7100 if test -n "$ac_tool_prefix"; then
7101 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7102 set dummy ${ac_tool_prefix}otool; ac_word=$2
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7104 $as_echo_n "checking for $ac_word... " >&6; }
7105 if ${ac_cv_prog_OTOOL+:} false; then :
7106 $as_echo_n "(cached) " >&6
7108 if test -n "$OTOOL"; then
7109 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7118 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 OTOOL=$ac_cv_prog_OTOOL
7129 if test -n "$OTOOL"; then
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7131 $as_echo "$OTOOL" >&6; }
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134 $as_echo "no" >&6; }
7139 if test -z "$ac_cv_prog_OTOOL"; then
7141 # Extract the first word of "otool", so it can be a program name with args.
7142 set dummy otool; ac_word=$2
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144 $as_echo_n "checking for $ac_word... " >&6; }
7145 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7146 $as_echo_n "(cached) " >&6
7148 if test -n "$ac_ct_OTOOL"; then
7149 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 test -z "$as_dir" && as_dir=.
7156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158 ac_cv_prog_ac_ct_OTOOL="otool"
7159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7169 if test -n "$ac_ct_OTOOL"; then
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7171 $as_echo "$ac_ct_OTOOL" >&6; }
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174 $as_echo "no" >&6; }
7177 if test "x$ac_ct_OTOOL" = x; then
7180 case $cross_compiling:$ac_tool_warned in
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7184 ac_tool_warned=yes ;;
7189 OTOOL="$ac_cv_prog_OTOOL"
7192 if test -n "$ac_tool_prefix"; then
7193 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7194 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196 $as_echo_n "checking for $ac_word... " >&6; }
7197 if ${ac_cv_prog_OTOOL64+:} false; then :
7198 $as_echo_n "(cached) " >&6
7200 if test -n "$OTOOL64"; then
7201 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207 test -z "$as_dir" && as_dir=.
7208 for ac_exec_ext in '' $ac_executable_extensions; do
7209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7210 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220 OTOOL64=$ac_cv_prog_OTOOL64
7221 if test -n "$OTOOL64"; then
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7223 $as_echo "$OTOOL64" >&6; }
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226 $as_echo "no" >&6; }
7231 if test -z "$ac_cv_prog_OTOOL64"; then
7232 ac_ct_OTOOL64=$OTOOL64
7233 # Extract the first word of "otool64", so it can be a program name with args.
7234 set dummy otool64; ac_word=$2
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236 $as_echo_n "checking for $ac_word... " >&6; }
7237 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7238 $as_echo_n "(cached) " >&6
7240 if test -n "$ac_ct_OTOOL64"; then
7241 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7250 ac_cv_prog_ac_ct_OTOOL64="otool64"
7251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7261 if test -n "$ac_ct_OTOOL64"; then
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7263 $as_echo "$ac_ct_OTOOL64" >&6; }
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266 $as_echo "no" >&6; }
7269 if test "x$ac_ct_OTOOL64" = x; then
7272 case $cross_compiling:$ac_tool_warned in
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7276 ac_tool_warned=yes ;;
7278 OTOOL64=$ac_ct_OTOOL64
7281 OTOOL64="$ac_cv_prog_OTOOL64"
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7311 $as_echo_n "checking for -single_module linker flag... " >&6; }
7312 if ${lt_cv_apple_cc_single_mod+:} false; then :
7313 $as_echo_n "(cached) " >&6
7315 lt_cv_apple_cc_single_mod=no
7316 if test -z "${LT_MULTI_MODULE}"; then
7317 # By default we will add the -single_module flag. You can override
7318 # by either setting the environment variable LT_MULTI_MODULE
7319 # non-empty at configure time, or by adding -multi_module to the
7321 rm -rf libconftest.dylib*
7322 echo "int foo(void){return 1;}" > conftest.c
7323 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7324 -dynamiclib -Wl,-single_module conftest.c" >&5
7325 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7326 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7328 # If there is a non-empty error log, and "single_module"
7329 # appears in it, assume the flag caused a linker warning
7330 if test -s conftest.err && $GREP single_module conftest.err; then
7331 cat conftest.err >&5
7332 # Otherwise, if the output was created with a 0 exit code from
7333 # the compiler, it worked.
7334 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7335 lt_cv_apple_cc_single_mod=yes
7337 cat conftest.err >&5
7339 rm -rf libconftest.dylib*
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7344 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7347 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7348 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7349 $as_echo_n "(cached) " >&6
7351 lt_cv_ld_exported_symbols_list=no
7352 save_LDFLAGS=$LDFLAGS
7353 echo "_main" > conftest.sym
7354 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7366 if ac_fn_c_try_link "$LINENO"; then :
7367 lt_cv_ld_exported_symbols_list=yes
7369 lt_cv_ld_exported_symbols_list=no
7371 rm -f core conftest.err conftest.$ac_objext \
7372 conftest$ac_exeext conftest.$ac_ext
7373 LDFLAGS="$save_LDFLAGS"
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7377 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7380 $as_echo_n "checking for -force_load linker flag... " >&6; }
7381 if ${lt_cv_ld_force_load+:} false; then :
7382 $as_echo_n "(cached) " >&6
7384 lt_cv_ld_force_load=no
7385 cat > conftest.c << _LT_EOF
7386 int forced_loaded() { return 2;}
7388 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7389 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7390 echo "$AR cru libconftest.a conftest.o" >&5
7391 $AR cru libconftest.a conftest.o 2>&5
7392 echo "$RANLIB libconftest.a" >&5
7393 $RANLIB libconftest.a 2>&5
7394 cat > conftest.c << _LT_EOF
7395 int main() { return 0;}
7397 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7398 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7400 if test -s conftest.err && $GREP force_load conftest.err; then
7401 cat conftest.err >&5
7402 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7403 lt_cv_ld_force_load=yes
7405 cat conftest.err >&5
7407 rm -f conftest.err libconftest.a conftest conftest.c
7408 rm -rf conftest.dSYM
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7412 $as_echo "$lt_cv_ld_force_load" >&6; }
7414 rhapsody* | darwin1.[012])
7415 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7417 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7418 darwin*) # darwin 5.x on
7419 # if running on 10.5 or later, the deployment target defaults
7420 # to the OS version, if on x86, and 10.4, the deployment
7421 # target defaults to 10.4. Don't you love it?
7422 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7423 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7424 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7426 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7428 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7432 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7433 _lt_dar_single_mod='$single_module'
7435 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7436 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7438 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7440 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7441 _lt_dsymutil='~$DSYMUTIL $lib || :'
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7450 $as_echo_n "checking for ANSI C header files... " >&6; }
7451 if ${ac_cv_header_stdc+:} false; then :
7452 $as_echo_n "(cached) " >&6
7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455 /* end confdefs.h. */
7469 if ac_fn_c_try_compile "$LINENO"; then :
7470 ac_cv_header_stdc=yes
7472 ac_cv_header_stdc=no
7474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7476 if test $ac_cv_header_stdc = yes; then
7477 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7484 $EGREP "memchr" >/dev/null 2>&1; then :
7487 ac_cv_header_stdc=no
7493 if test $ac_cv_header_stdc = yes; then
7494 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7501 $EGREP "free" >/dev/null 2>&1; then :
7504 ac_cv_header_stdc=no
7510 if test $ac_cv_header_stdc = yes; then
7511 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7512 if test "$cross_compiling" = yes; then :
7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h. */
7519 #if ((' ' & 0x0FF) == 0x020)
7520 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7521 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7523 # define ISLOWER(c) \
7524 (('a' <= (c) && (c) <= 'i') \
7525 || ('j' <= (c) && (c) <= 'r') \
7526 || ('s' <= (c) && (c) <= 'z'))
7527 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7530 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7535 for (i = 0; i < 256; i++)
7536 if (XOR (islower (i), ISLOWER (i))
7537 || toupper (i) != TOUPPER (i))
7542 if ac_fn_c_try_run "$LINENO"; then :
7545 ac_cv_header_stdc=no
7547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7548 conftest.$ac_objext conftest.beam conftest.$ac_ext
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7554 $as_echo "$ac_cv_header_stdc" >&6; }
7555 if test $ac_cv_header_stdc = yes; then
7557 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7561 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7562 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7563 inttypes.h stdint.h unistd.h
7565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7566 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7568 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7569 cat >>confdefs.h <<_ACEOF
7570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7578 for ac_header in dlfcn.h
7580 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7582 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7583 cat >>confdefs.h <<_ACEOF
7584 #define HAVE_DLFCN_H 1
7603 # Check whether --enable-shared was given.
7604 if test "${enable_shared+set}" = set; then :
7605 enableval=$enable_shared; p=${PACKAGE-default}
7607 yes) enable_shared=yes ;;
7608 no) enable_shared=no ;;
7611 # Look at the argument we got. We use all the common list separators.
7612 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7613 for pkg in $enableval; do
7615 if test "X$pkg" = "X$p"; then
7636 # Check whether --with-pic was given.
7637 if test "${with_pic+set}" = set; then :
7638 withval=$with_pic; lt_p=${PACKAGE-default}
7640 yes|no) pic_mode=$withval ;;
7643 # Look at the argument we got. We use all the common list separators.
7644 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7645 for lt_pkg in $withval; do
7647 if test "X$lt_pkg" = "X$lt_p"; then
7659 test -z "$pic_mode" && pic_mode=default
7667 # Check whether --enable-fast-install was given.
7668 if test "${enable_fast_install+set}" = set; then :
7669 enableval=$enable_fast_install; p=${PACKAGE-default}
7671 yes) enable_fast_install=yes ;;
7672 no) enable_fast_install=no ;;
7674 enable_fast_install=no
7675 # Look at the argument we got. We use all the common list separators.
7676 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7677 for pkg in $enableval; do
7679 if test "X$pkg" = "X$p"; then
7680 enable_fast_install=yes
7687 enable_fast_install=yes
7700 # This can be used to rebuild libtool when needed
7701 LIBTOOL_DEPS="$ltmain"
7703 # Always use our own libtool.
7704 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7735 test -z "$LN_S" && LN_S="ln -s"
7750 if test -n "${ZSH_VERSION+set}" ; then
7751 setopt NO_GLOB_SUBST
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7755 $as_echo_n "checking for objdir... " >&6; }
7756 if ${lt_cv_objdir+:} false; then :
7757 $as_echo_n "(cached) " >&6
7759 rm -f .libs 2>/dev/null
7760 mkdir .libs 2>/dev/null
7761 if test -d .libs; then
7764 # MS-DOS does not allow filenames that begin with a dot.
7767 rmdir .libs 2>/dev/null
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7770 $as_echo "$lt_cv_objdir" >&6; }
7771 objdir=$lt_cv_objdir
7777 cat >>confdefs.h <<_ACEOF
7778 #define LT_OBJDIR "$lt_cv_objdir/"
7786 # AIX sometimes has problems with the GCC collect2 program. For some
7787 # reason, if we set the COLLECT_NAMES environment variable, the problems
7788 # vanish in a puff of smoke.
7789 if test "X${COLLECT_NAMES+set}" != Xset; then
7791 export COLLECT_NAMES
7798 can_build_shared=yes
7800 # All known linkers require a `.a' archive for static linking (except MSVC,
7801 # which needs '.lib').
7804 with_gnu_ld="$lt_cv_prog_gnu_ld"
7807 old_CFLAGS="$CFLAGS"
7809 # Set sane defaults for various variables
7810 test -z "$CC" && CC=cc
7811 test -z "$LTCC" && LTCC=$CC
7812 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7813 test -z "$LD" && LD=ld
7814 test -z "$ac_objext" && ac_objext=o
7816 for cc_temp in $compiler""; do
7818 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7819 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7824 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7827 # Only perform the check for file, if the check method requires it
7828 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7829 case $deplibs_check_method in
7831 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7833 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7834 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7835 $as_echo_n "(cached) " >&6
7839 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7842 lt_save_MAGIC_CMD="$MAGIC_CMD"
7843 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7844 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7845 for ac_dir in $ac_dummy; do
7847 test -z "$ac_dir" && ac_dir=.
7848 if test -f $ac_dir/${ac_tool_prefix}file; then
7849 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7850 if test -n "$file_magic_test_file"; then
7851 case $deplibs_check_method in
7853 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7854 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7855 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7856 $EGREP "$file_magic_regex" > /dev/null; then
7861 *** Warning: the command libtool uses to detect shared libraries,
7862 *** $file_magic_cmd, produces output that libtool cannot recognize.
7863 *** The result is that libtool may fail to recognize shared libraries
7864 *** as such. This will affect the creation of libtool libraries that
7865 *** depend on shared libraries, but programs linked with such libtool
7866 *** libraries will work regardless of this problem. Nevertheless, you
7867 *** may want to report the problem to your system manager and/or to
7868 *** bug-libtool@gnu.org
7878 MAGIC_CMD="$lt_save_MAGIC_CMD"
7883 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7884 if test -n "$MAGIC_CMD"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7886 $as_echo "$MAGIC_CMD" >&6; }
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7896 if test -z "$lt_cv_path_MAGIC_CMD"; then
7897 if test -n "$ac_tool_prefix"; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7899 $as_echo_n "checking for file... " >&6; }
7900 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7901 $as_echo_n "(cached) " >&6
7905 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7908 lt_save_MAGIC_CMD="$MAGIC_CMD"
7909 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7910 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7911 for ac_dir in $ac_dummy; do
7913 test -z "$ac_dir" && ac_dir=.
7914 if test -f $ac_dir/file; then
7915 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7916 if test -n "$file_magic_test_file"; then
7917 case $deplibs_check_method in
7919 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7920 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7921 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7922 $EGREP "$file_magic_regex" > /dev/null; then
7927 *** Warning: the command libtool uses to detect shared libraries,
7928 *** $file_magic_cmd, produces output that libtool cannot recognize.
7929 *** The result is that libtool may fail to recognize shared libraries
7930 *** as such. This will affect the creation of libtool libraries that
7931 *** depend on shared libraries, but programs linked with such libtool
7932 *** libraries will work regardless of this problem. Nevertheless, you
7933 *** may want to report the problem to your system manager and/or to
7934 *** bug-libtool@gnu.org
7944 MAGIC_CMD="$lt_save_MAGIC_CMD"
7949 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7950 if test -n "$MAGIC_CMD"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7952 $as_echo "$MAGIC_CMD" >&6; }
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7968 # Use C for the default configuration in the libtool script
7972 ac_cpp='$CPP $CPPFLAGS'
7973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7978 # Source file extension for C test sources.
7981 # Object file extension for compiled C test sources.
7985 # Code to be used in simple compile tests
7986 lt_simple_compile_test_code="int some_variable = 0;"
7988 # Code to be used in simple link tests
7989 lt_simple_link_test_code='int main(){return(0);}'
7997 # If no C compiler was specified, use CC.
8000 # If no C compiler flags were specified, use CFLAGS.
8001 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8003 # Allow CC to be a program name with arguments.
8006 # Save the default compiler, since it gets overwritten when the other
8007 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8008 compiler_DEFAULT=$CC
8010 # save warnings/boilerplate of simple test code
8011 ac_outfile=conftest.$ac_objext
8012 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8013 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8014 _lt_compiler_boilerplate=`cat conftest.err`
8017 ac_outfile=conftest.$ac_objext
8018 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8019 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8020 _lt_linker_boilerplate=`cat conftest.err`
8024 if test -n "$compiler"; then
8026 lt_prog_compiler_no_builtin_flag=
8028 if test "$GCC" = yes; then
8029 case $cc_basename in
8031 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8033 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8037 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8038 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8039 $as_echo_n "(cached) " >&6
8041 lt_cv_prog_compiler_rtti_exceptions=no
8042 ac_outfile=conftest.$ac_objext
8043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8044 lt_compiler_flag="-fno-rtti -fno-exceptions"
8045 # Insert the option either (1) after the last *FLAGS variable, or
8046 # (2) before a word containing "conftest.", or (3) at the end.
8047 # Note that $ac_compile itself does not contain backslashes and begins
8048 # with a dollar sign (not a hyphen), so the echo should work correctly.
8049 # The option is referenced via a variable to avoid confusing sed.
8050 lt_compile=`echo "$ac_compile" | $SED \
8051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8053 -e 's:$: $lt_compiler_flag:'`
8054 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8055 (eval "$lt_compile" 2>conftest.err)
8057 cat conftest.err >&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 if (exit $ac_status) && test -s "$ac_outfile"; then
8060 # The compiler can only warn and ignore the option if not recognized
8061 # So say no if there are warnings other than the usual output.
8062 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8063 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8064 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8065 lt_cv_prog_compiler_rtti_exceptions=yes
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8072 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8074 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8075 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8087 lt_prog_compiler_wl=
8088 lt_prog_compiler_pic=
8089 lt_prog_compiler_static=
8092 if test "$GCC" = yes; then
8093 lt_prog_compiler_wl='-Wl,'
8094 lt_prog_compiler_static='-static'
8098 # All AIX code is PIC.
8099 if test "$host_cpu" = ia64; then
8100 # AIX 5 now supports IA64 processor
8101 lt_prog_compiler_static='-Bstatic'
8108 # see comment about AmigaOS4 .so support
8109 lt_prog_compiler_pic='-fPIC'
8112 # FIXME: we need at least 68020 code to build shared libraries, but
8113 # adding the `-m68020' flag to GCC prevents building anything better,
8115 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8120 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8121 # PIC is the default for these OSes.
8124 mingw* | cygwin* | pw32* | os2* | cegcc*)
8125 # This hack is so that the source file can tell whether it is being
8126 # built for inclusion in a dll (and should export symbols for example).
8127 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8128 # (--disable-auto-import) libraries
8129 lt_prog_compiler_pic='-DDLL_EXPORT'
8132 darwin* | rhapsody*)
8133 # PIC is the default on this platform
8134 # Common symbols not allowed in MH_DYLIB files
8135 lt_prog_compiler_pic='-fno-common'
8139 # PIC is the default for Haiku.
8140 # The "-static" flag exists, but is broken.
8141 lt_prog_compiler_static=
8145 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8146 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8147 # sets the default TLS model and affects inlining.
8153 lt_prog_compiler_pic='-fPIC'
8159 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8160 # Instead, we relocate shared libraries at runtime.
8164 # Just because we use GCC doesn't mean we suddenly get shared libraries
8165 # on systems that don't support them.
8166 lt_prog_compiler_can_build_shared=no
8171 # QNX uses GNU C++, but need to define -shared option too, otherwise
8173 lt_prog_compiler_pic='-fPIC -shared'
8177 if test -d /usr/nec; then
8178 lt_prog_compiler_pic=-Kconform_pic
8183 lt_prog_compiler_pic='-fPIC'
8187 case $cc_basename in
8188 nvcc*) # Cuda Compiler Driver 2.2
8189 lt_prog_compiler_wl='-Xlinker '
8190 if test -n "$lt_prog_compiler_pic"; then
8191 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8196 # PORTME Check for flag to pass linker flags through the system compiler.
8199 lt_prog_compiler_wl='-Wl,'
8200 if test "$host_cpu" = ia64; then
8201 # AIX 5 now supports IA64 processor
8202 lt_prog_compiler_static='-Bstatic'
8204 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8208 mingw* | cygwin* | pw32* | os2* | cegcc*)
8209 # This hack is so that the source file can tell whether it is being
8210 # built for inclusion in a dll (and should export symbols for example).
8211 lt_prog_compiler_pic='-DDLL_EXPORT'
8214 hpux9* | hpux10* | hpux11*)
8215 lt_prog_compiler_wl='-Wl,'
8216 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8223 lt_prog_compiler_pic='+Z'
8226 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8227 lt_prog_compiler_static='${wl}-a ${wl}archive'
8230 irix5* | irix6* | nonstopux*)
8231 lt_prog_compiler_wl='-Wl,'
8232 # PIC (with -KPIC) is the default.
8233 lt_prog_compiler_static='-non_shared'
8236 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8237 case $cc_basename in
8238 # old Intel for x86_64 which still supported -KPIC.
8240 lt_prog_compiler_wl='-Wl,'
8241 lt_prog_compiler_pic='-KPIC'
8242 lt_prog_compiler_static='-static'
8244 # icc used to be incompatible with GCC.
8245 # ICC 10 doesn't accept -KPIC any more.
8247 lt_prog_compiler_wl='-Wl,'
8248 lt_prog_compiler_pic='-fPIC'
8249 lt_prog_compiler_static='-static'
8251 # Lahey Fortran 8.1.
8253 lt_prog_compiler_wl='-Wl,'
8254 lt_prog_compiler_pic='--shared'
8255 lt_prog_compiler_static='--static'
8258 # NAG Fortran compiler
8259 lt_prog_compiler_wl='-Wl,-Wl,,'
8260 lt_prog_compiler_pic='-PIC'
8261 lt_prog_compiler_static='-Bstatic'
8263 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8264 # Portland Group compilers (*not* the Pentium gcc compiler,
8265 # which looks to be a dead project)
8266 lt_prog_compiler_wl='-Wl,'
8267 lt_prog_compiler_pic='-fpic'
8268 lt_prog_compiler_static='-Bstatic'
8271 lt_prog_compiler_wl='-Wl,'
8272 # All Alpha code is PIC.
8273 lt_prog_compiler_static='-non_shared'
8275 xl* | bgxl* | bgf* | mpixl*)
8276 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8277 lt_prog_compiler_wl='-Wl,'
8278 lt_prog_compiler_pic='-qpic'
8279 lt_prog_compiler_static='-qstaticlink'
8282 case `$CC -V 2>&1 | sed 5q` in
8283 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8284 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8285 lt_prog_compiler_pic='-KPIC'
8286 lt_prog_compiler_static='-Bstatic'
8287 lt_prog_compiler_wl=''
8289 *Sun\ F* | *Sun*Fortran*)
8290 lt_prog_compiler_pic='-KPIC'
8291 lt_prog_compiler_static='-Bstatic'
8292 lt_prog_compiler_wl='-Qoption ld '
8296 lt_prog_compiler_pic='-KPIC'
8297 lt_prog_compiler_static='-Bstatic'
8298 lt_prog_compiler_wl='-Wl,'
8300 *Intel*\ [CF]*Compiler*)
8301 lt_prog_compiler_wl='-Wl,'
8302 lt_prog_compiler_pic='-fPIC'
8303 lt_prog_compiler_static='-static'
8306 lt_prog_compiler_wl='-Wl,'
8307 lt_prog_compiler_pic='-fpic'
8308 lt_prog_compiler_static='-Bstatic'
8316 lt_prog_compiler_pic='-KPIC'
8317 lt_prog_compiler_static='-Bstatic'
8321 # QNX uses GNU C++, but need to define -shared option too, otherwise
8323 lt_prog_compiler_pic='-fPIC -shared'
8326 osf3* | osf4* | osf5*)
8327 lt_prog_compiler_wl='-Wl,'
8328 # All OSF/1 code is PIC.
8329 lt_prog_compiler_static='-non_shared'
8333 lt_prog_compiler_static='-non_shared'
8337 lt_prog_compiler_pic='-KPIC'
8338 lt_prog_compiler_static='-Bstatic'
8339 case $cc_basename in
8340 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8341 lt_prog_compiler_wl='-Qoption ld ';;
8343 lt_prog_compiler_wl='-Wl,';;
8348 lt_prog_compiler_wl='-Qoption ld '
8349 lt_prog_compiler_pic='-PIC'
8350 lt_prog_compiler_static='-Bstatic'
8353 sysv4 | sysv4.2uw2* | sysv4.3*)
8354 lt_prog_compiler_wl='-Wl,'
8355 lt_prog_compiler_pic='-KPIC'
8356 lt_prog_compiler_static='-Bstatic'
8360 if test -d /usr/nec ;then
8361 lt_prog_compiler_pic='-Kconform_pic'
8362 lt_prog_compiler_static='-Bstatic'
8366 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8367 lt_prog_compiler_wl='-Wl,'
8368 lt_prog_compiler_pic='-KPIC'
8369 lt_prog_compiler_static='-Bstatic'
8373 lt_prog_compiler_wl='-Wl,'
8374 lt_prog_compiler_can_build_shared=no
8378 lt_prog_compiler_pic='-pic'
8379 lt_prog_compiler_static='-Bstatic'
8383 lt_prog_compiler_can_build_shared=no
8389 # For platforms which do not support PIC, -DPIC is meaningless:
8391 lt_prog_compiler_pic=
8394 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8399 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8400 if ${lt_cv_prog_compiler_pic+:} false; then :
8401 $as_echo_n "(cached) " >&6
8403 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8406 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8407 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8410 # Check to make sure the PIC flag actually works.
8412 if test -n "$lt_prog_compiler_pic"; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8414 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8415 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8416 $as_echo_n "(cached) " >&6
8418 lt_cv_prog_compiler_pic_works=no
8419 ac_outfile=conftest.$ac_objext
8420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8421 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8422 # Insert the option either (1) after the last *FLAGS variable, or
8423 # (2) before a word containing "conftest.", or (3) at the end.
8424 # Note that $ac_compile itself does not contain backslashes and begins
8425 # with a dollar sign (not a hyphen), so the echo should work correctly.
8426 # The option is referenced via a variable to avoid confusing sed.
8427 lt_compile=`echo "$ac_compile" | $SED \
8428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8430 -e 's:$: $lt_compiler_flag:'`
8431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8432 (eval "$lt_compile" 2>conftest.err)
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 if (exit $ac_status) && test -s "$ac_outfile"; then
8437 # The compiler can only warn and ignore the option if not recognized
8438 # So say no if there are warnings other than the usual output.
8439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8441 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8442 lt_cv_prog_compiler_pic_works=yes
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8449 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8451 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8452 case $lt_prog_compiler_pic in
8454 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8457 lt_prog_compiler_pic=
8458 lt_prog_compiler_can_build_shared=no
8474 # Check to make sure the static flag actually works.
8476 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8478 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8479 if ${lt_cv_prog_compiler_static_works+:} false; then :
8480 $as_echo_n "(cached) " >&6
8482 lt_cv_prog_compiler_static_works=no
8483 save_LDFLAGS="$LDFLAGS"
8484 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8485 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8487 # The linker can only warn and ignore the option if not recognized
8488 # So say no if there are warnings
8489 if test -s conftest.err; then
8490 # Append any errors to the config.log.
8491 cat conftest.err 1>&5
8492 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8494 if diff conftest.exp conftest.er2 >/dev/null; then
8495 lt_cv_prog_compiler_static_works=yes
8498 lt_cv_prog_compiler_static_works=yes
8502 LDFLAGS="$save_LDFLAGS"
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8506 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8508 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8511 lt_prog_compiler_static=
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8521 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8522 if ${lt_cv_prog_compiler_c_o+:} false; then :
8523 $as_echo_n "(cached) " >&6
8525 lt_cv_prog_compiler_c_o=no
8526 $RM -r conftest 2>/dev/null
8530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8532 lt_compiler_flag="-o out/conftest2.$ac_objext"
8533 # Insert the option either (1) after the last *FLAGS variable, or
8534 # (2) before a word containing "conftest.", or (3) at the end.
8535 # Note that $ac_compile itself does not contain backslashes and begins
8536 # with a dollar sign (not a hyphen), so the echo should work correctly.
8537 lt_compile=`echo "$ac_compile" | $SED \
8538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8540 -e 's:$: $lt_compiler_flag:'`
8541 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8542 (eval "$lt_compile" 2>out/conftest.err)
8544 cat out/conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8548 # The compiler can only warn and ignore the option if not recognized
8549 # So say no if there are warnings
8550 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8551 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8552 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8553 lt_cv_prog_compiler_c_o=yes
8558 # SGI C++ compiler will create directory out/ii_files/ for
8559 # template instantiation
8560 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8561 $RM out/* && rmdir out
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8568 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8576 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8577 if ${lt_cv_prog_compiler_c_o+:} false; then :
8578 $as_echo_n "(cached) " >&6
8580 lt_cv_prog_compiler_c_o=no
8581 $RM -r conftest 2>/dev/null
8585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8587 lt_compiler_flag="-o out/conftest2.$ac_objext"
8588 # Insert the option either (1) after the last *FLAGS variable, or
8589 # (2) before a word containing "conftest.", or (3) at the end.
8590 # Note that $ac_compile itself does not contain backslashes and begins
8591 # with a dollar sign (not a hyphen), so the echo should work correctly.
8592 lt_compile=`echo "$ac_compile" | $SED \
8593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8595 -e 's:$: $lt_compiler_flag:'`
8596 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8597 (eval "$lt_compile" 2>out/conftest.err)
8599 cat out/conftest.err >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8603 # The compiler can only warn and ignore the option if not recognized
8604 # So say no if there are warnings
8605 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8606 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8607 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8608 lt_cv_prog_compiler_c_o=yes
8613 # SGI C++ compiler will create directory out/ii_files/ for
8614 # template instantiation
8615 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8616 $RM out/* && rmdir out
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8623 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8628 hard_links="nottested"
8629 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8630 # do not overwrite the value of need_locks provided by the user
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8632 $as_echo_n "checking if we can lock with hard links... " >&6; }
8635 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8637 ln conftest.a conftest.b 2>&5 || hard_links=no
8638 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8640 $as_echo "$hard_links" >&6; }
8641 if test "$hard_links" = no; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8643 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8656 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8659 allow_undefined_flag=
8660 always_export_symbols=no
8662 archive_expsym_cmds=
8663 compiler_needs_object=no
8664 enable_shared_with_static_runtimes=no
8665 export_dynamic_flag_spec=
8666 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8667 hardcode_automatic=no
8669 hardcode_direct_absolute=no
8670 hardcode_libdir_flag_spec=
8671 hardcode_libdir_separator=
8673 hardcode_shlibpath_var=unsupported
8675 link_all_deplibs=unknown
8678 old_archive_from_new_cmds=
8679 old_archive_from_expsyms_cmds=
8680 thread_safe_flag_spec=
8681 whole_archive_flag_spec=
8682 # include_expsyms should be a list of space-separated symbols to be *always*
8683 # included in the symbol list
8685 # exclude_expsyms can be an extended regexp of symbols to exclude
8686 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8687 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8688 # as well as any symbol that contains `d'.
8689 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8690 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8691 # platforms (ab)use it in PIC code, but their linkers get confused if
8692 # the symbol is explicitly referenced. Since portable code cannot
8693 # rely on this symbol name, it's probably fine to never include it in
8694 # preloaded symbol tables.
8695 # Exclude shared library initialization/finalization symbols.
8696 extract_expsyms_cmds=
8699 cygwin* | mingw* | pw32* | cegcc*)
8700 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8701 # When not using gcc, we currently assume that we are using
8702 # Microsoft Visual C++.
8703 if test "$GCC" != yes; then
8708 # we just hope/assume this is gcc and not c89 (= MSVC++)
8718 # On some targets, GNU ld is compatible enough with the native linker
8719 # that we're better off using the native interface for both.
8720 lt_use_gnu_ld_interface=no
8721 if test "$with_gnu_ld" = yes; then
8724 # The AIX port of GNU ld has always aspired to compatibility
8725 # with the native linker. However, as the warning in the GNU ld
8726 # block says, versions before 2.19.5* couldn't really create working
8727 # shared libraries, regardless of the interface used.
8728 case `$LD -v 2>&1` in
8729 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8730 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8731 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8733 lt_use_gnu_ld_interface=yes
8738 lt_use_gnu_ld_interface=yes
8743 if test "$lt_use_gnu_ld_interface" = yes; then
8744 # If archive_cmds runs LD, not CC, wlarc should be empty
8747 # Set some defaults for GNU ld with shared library support. These
8748 # are reset later if shared libraries are not supported. Putting them
8749 # here allows them to be overridden if necessary.
8750 runpath_var=LD_RUN_PATH
8751 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8752 export_dynamic_flag_spec='${wl}--export-dynamic'
8753 # ancient GNU ld didn't support --whole-archive et. al.
8754 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8755 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8757 whole_archive_flag_spec=
8759 supports_anon_versioning=no
8760 case `$LD -v 2>&1` in
8761 *GNU\ gold*) supports_anon_versioning=yes ;;
8762 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8763 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8764 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8765 *\ 2.11.*) ;; # other 2.11 versions
8766 *) supports_anon_versioning=yes ;;
8769 # See if GNU ld supports shared libraries.
8772 # On AIX/PPC, the GNU linker is very broken
8773 if test "$host_cpu" != ia64; then
8777 *** Warning: the GNU linker, at least up to release 2.19, is reported
8778 *** to be unable to reliably create shared libraries on AIX.
8779 *** Therefore, libtool is disabling shared libraries support. If you
8780 *** really care for shared libraries, you may want to install binutils
8781 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8782 *** You will then need to restart the configuration process.
8791 # see comment about AmigaOS4 .so support
8792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8793 archive_expsym_cmds=''
8796 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)'
8797 hardcode_libdir_flag_spec='-L$libdir'
8798 hardcode_minus_L=yes
8804 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8805 allow_undefined_flag=unsupported
8806 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8807 # support --undefined. This deserves some investigation. FIXME
8808 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8814 cygwin* | mingw* | pw32* | cegcc*)
8815 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8816 # as there is no search path for DLLs.
8817 hardcode_libdir_flag_spec='-L$libdir'
8818 export_dynamic_flag_spec='${wl}--export-all-symbols'
8819 allow_undefined_flag=unsupported
8820 always_export_symbols=no
8821 enable_shared_with_static_runtimes=yes
8822 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8823 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8825 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8827 # If the export-symbols file already is a .def file (1st line
8828 # is EXPORTS), use it as is; otherwise, prepend...
8829 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8830 cp $export_symbols $output_objdir/$soname.def;
8832 echo EXPORTS > $output_objdir/$soname.def;
8833 cat $export_symbols >> $output_objdir/$soname.def;
8835 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8843 link_all_deplibs=yes
8848 hardcode_shlibpath_var=no
8849 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8850 export_dynamic_flag_spec='${wl}-E'
8851 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8852 # Instead, shared libraries are loaded at an image base (0x10000000 by
8853 # default) and relocated if they conflict, which is a slow very memory
8854 # consuming and fragmenting process. To avoid this, we pick a random,
8855 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8856 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8857 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8858 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'
8861 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8863 if test "$host_os" = linux-dietlibc; then
8864 case $cc_basename in
8865 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8868 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8869 && test "$tmp_diet" = no
8871 tmp_addflag=' $pic_flag'
8872 tmp_sharedflag='-shared'
8873 case $cc_basename,$host_cpu in
8874 pgcc*) # Portland Group C compiler
8875 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8876 tmp_addflag=' $pic_flag'
8878 pgf77* | pgf90* | pgf95* | pgfortran*)
8879 # Portland Group f77 and f90 compilers
8880 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8881 tmp_addflag=' $pic_flag -Mnomain' ;;
8882 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8883 tmp_addflag=' -i_dynamic' ;;
8884 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8885 tmp_addflag=' -i_dynamic -nofor_main' ;;
8886 ifc* | ifort*) # Intel Fortran compiler
8887 tmp_addflag=' -nofor_main' ;;
8888 lf95*) # Lahey Fortran 8.1
8889 whole_archive_flag_spec=
8890 tmp_sharedflag='--shared' ;;
8891 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8892 tmp_sharedflag='-qmkshrobj'
8894 nvcc*) # Cuda Compiler Driver 2.2
8895 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8896 compiler_needs_object=yes
8899 case `$CC -V 2>&1 | sed 5q` in
8900 *Sun\ C*) # Sun C 5.9
8901 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8902 compiler_needs_object=yes
8903 tmp_sharedflag='-G' ;;
8904 *Sun\ F*) # Sun Fortran 8.3
8905 tmp_sharedflag='-G' ;;
8907 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8909 if test "x$supports_anon_versioning" = xyes; then
8910 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8911 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8912 echo "local: *; };" >> $output_objdir/$libname.ver~
8913 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8916 case $cc_basename in
8917 xlf* | bgf* | bgxlf* | mpixlf*)
8918 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8919 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8921 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8922 if test "x$supports_anon_versioning" = xyes; then
8923 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8924 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8925 echo "local: *; };" >> $output_objdir/$libname.ver~
8926 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8936 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8937 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8940 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8941 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8946 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8950 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8951 *** create shared libraries on Solaris systems. Therefore, libtool
8952 *** is disabling shared libraries support. We urge you to upgrade GNU
8953 *** binutils to release 2.9.1 or newer. Another option is to modify
8954 *** your PATH or compiler configuration so that the native linker is
8955 *** used, and then restart.
8958 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8959 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8960 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8966 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8967 case `$LD -v 2>&1` in
8968 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8972 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8973 *** reliably create shared libraries on SCO systems. Therefore, libtool
8974 *** is disabling shared libraries support. We urge you to upgrade GNU
8975 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8976 *** your PATH or compiler configuration so that the native linker is
8977 *** used, and then restart.
8982 # For security reasons, it is highly recommended that you always
8983 # use absolute paths for naming shared libraries, and exclude the
8984 # DT_RUNPATH tag from executables and libraries. But doing so
8985 # requires that you compile everything twice, which is a pain.
8986 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8987 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8998 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9001 hardcode_shlibpath_var=no
9005 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9006 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9007 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9014 if test "$ld_shlibs" = no; then
9016 hardcode_libdir_flag_spec=
9017 export_dynamic_flag_spec=
9018 whole_archive_flag_spec=
9021 # PORTME fill in a description of your system's linker (not GNU ld)
9024 allow_undefined_flag=unsupported
9025 always_export_symbols=yes
9026 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'
9027 # Note: this linker hardcodes the directories in LIBPATH if there
9028 # are no directories specified by -L.
9029 hardcode_minus_L=yes
9030 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9031 # Neither direct hardcoding nor static linking is supported with a
9033 hardcode_direct=unsupported
9038 if test "$host_cpu" = ia64; then
9039 # On IA64, the linker does run time linking by default, so we don't
9040 # have to do anything special.
9041 aix_use_runtimelinking=no
9042 exp_sym_flag='-Bexport'
9045 # If we're using GNU nm, then we don't want the "-C" option.
9046 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9047 # Also, AIX nm treats weak defined symbols like other global
9048 # defined symbols, whereas GNU nm marks them as "W".
9049 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9050 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9052 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'
9054 aix_use_runtimelinking=no
9056 # Test if we are trying to use run time linking or normal
9057 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9058 # need to do runtime linking.
9059 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9060 for ld_flag in $LDFLAGS; do
9061 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9062 aix_use_runtimelinking=yes
9069 exp_sym_flag='-bexport'
9070 no_entry_flag='-bnoentry'
9073 # When large executables or shared objects are built, AIX ld can
9074 # have problems creating the table of contents. If linking a library
9075 # or program results in "error TOC overflow" add -mminimal-toc to
9076 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9077 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9081 hardcode_direct_absolute=yes
9082 hardcode_libdir_separator=':'
9083 link_all_deplibs=yes
9084 file_list_spec='${wl}-f,'
9086 if test "$GCC" = yes; then
9087 case $host_os in aix4.[012]|aix4.[012].*)
9088 # We only want to do this on AIX 4.2 and lower, the check
9089 # below for broken collect2 doesn't work under 4.3+
9090 collect2name=`${CC} -print-prog-name=collect2`
9091 if test -f "$collect2name" &&
9092 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9094 # We have reworked collect2
9097 # We have old collect2
9098 hardcode_direct=unsupported
9099 # It fails to find uninstalled libraries when the uninstalled
9100 # path is not listed in the libpath. Setting hardcode_minus_L
9101 # to unsupported forces relinking
9102 hardcode_minus_L=yes
9103 hardcode_libdir_flag_spec='-L$libdir'
9104 hardcode_libdir_separator=
9108 shared_flag='-shared'
9109 if test "$aix_use_runtimelinking" = yes; then
9110 shared_flag="$shared_flag "'${wl}-G'
9114 if test "$host_cpu" = ia64; then
9115 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9116 # chokes on -Wl,-G. The following line is correct:
9119 if test "$aix_use_runtimelinking" = yes; then
9120 shared_flag='${wl}-G'
9122 shared_flag='${wl}-bM:SRE'
9127 export_dynamic_flag_spec='${wl}-bexpall'
9128 # It seems that -bexpall does not export symbols beginning with
9129 # underscore (_), so it is better to generate a list of symbols to export.
9130 always_export_symbols=yes
9131 if test "$aix_use_runtimelinking" = yes; then
9132 # Warning - without using the other runtime loading flags (-brtl),
9133 # -berok will link without error, but may produce a broken library.
9134 allow_undefined_flag='-berok'
9135 # Determine the default libpath from the value encoded in an
9137 if test "${lt_cv_aix_libpath+set}" = set; then
9138 aix_libpath=$lt_cv_aix_libpath
9140 if ${lt_cv_aix_libpath_+:} false; then :
9141 $as_echo_n "(cached) " >&6
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h. */
9154 if ac_fn_c_try_link "$LINENO"; then :
9156 lt_aix_libpath_sed='
9157 /Import File Strings/,/^$/ {
9159 s/^0 *\([^ ]*\) *$/\1/
9163 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9164 # Check for a 64-bit object if we didn't find anything.
9165 if test -z "$lt_cv_aix_libpath_"; then
9166 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9169 rm -f core conftest.err conftest.$ac_objext \
9170 conftest$ac_exeext conftest.$ac_ext
9171 if test -z "$lt_cv_aix_libpath_"; then
9172 lt_cv_aix_libpath_="/usr/lib:/lib"
9177 aix_libpath=$lt_cv_aix_libpath_
9180 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9181 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9183 if test "$host_cpu" = ia64; then
9184 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9185 allow_undefined_flag="-z nodefs"
9186 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"
9188 # Determine the default libpath from the value encoded in an
9190 if test "${lt_cv_aix_libpath+set}" = set; then
9191 aix_libpath=$lt_cv_aix_libpath
9193 if ${lt_cv_aix_libpath_+:} false; then :
9194 $as_echo_n "(cached) " >&6
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9207 if ac_fn_c_try_link "$LINENO"; then :
9209 lt_aix_libpath_sed='
9210 /Import File Strings/,/^$/ {
9212 s/^0 *\([^ ]*\) *$/\1/
9216 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9217 # Check for a 64-bit object if we didn't find anything.
9218 if test -z "$lt_cv_aix_libpath_"; then
9219 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9222 rm -f core conftest.err conftest.$ac_objext \
9223 conftest$ac_exeext conftest.$ac_ext
9224 if test -z "$lt_cv_aix_libpath_"; then
9225 lt_cv_aix_libpath_="/usr/lib:/lib"
9230 aix_libpath=$lt_cv_aix_libpath_
9233 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9234 # Warning - without using the other run time loading flags,
9235 # -berok will link without error, but may produce a broken library.
9236 no_undefined_flag=' ${wl}-bernotok'
9237 allow_undefined_flag=' ${wl}-berok'
9238 if test "$with_gnu_ld" = yes; then
9239 # We only use this code for GNU lds that support --whole-archive.
9240 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9242 # Exported symbols can be pulled into shared objects from archives
9243 whole_archive_flag_spec='$convenience'
9245 archive_cmds_need_lc=yes
9246 # This is similar to how AIX traditionally builds its shared libraries.
9247 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'
9255 # see comment about AmigaOS4 .so support
9256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9257 archive_expsym_cmds=''
9260 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)'
9261 hardcode_libdir_flag_spec='-L$libdir'
9262 hardcode_minus_L=yes
9268 export_dynamic_flag_spec=-rdynamic
9271 cygwin* | mingw* | pw32* | cegcc*)
9272 # When not using gcc, we currently assume that we are using
9273 # Microsoft Visual C++.
9274 # hardcode_libdir_flag_spec is actually meaningless, as there is
9275 # no search path for DLLs.
9276 case $cc_basename in
9279 hardcode_libdir_flag_spec=' '
9280 allow_undefined_flag=unsupported
9281 always_export_symbols=yes
9283 # Tell ltmain to make .lib files, not .a files.
9285 # Tell ltmain to make .dll files, not .so files.
9287 # FIXME: Setting linknames here is a bad hack.
9288 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9289 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9290 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9292 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9294 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9296 # The linker will not automatically build a static lib if we build a DLL.
9297 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9298 enable_shared_with_static_runtimes=yes
9299 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9300 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9302 old_postinstall_cmds='chmod 644 $oldlib'
9303 postlink_cmds='lt_outputfile="@OUTPUT@"~
9304 lt_tool_outputfile="@TOOL_OUTPUT@"~
9305 case $lt_outputfile in
9308 lt_outputfile="$lt_outputfile.exe"
9309 lt_tool_outputfile="$lt_tool_outputfile.exe"
9312 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9313 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9314 $RM "$lt_outputfile.manifest";
9318 # Assume MSVC wrapper
9319 hardcode_libdir_flag_spec=' '
9320 allow_undefined_flag=unsupported
9321 # Tell ltmain to make .lib files, not .a files.
9323 # Tell ltmain to make .dll files, not .so files.
9325 # FIXME: Setting linknames here is a bad hack.
9326 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9327 # The linker will automatically build a .lib file if we build a DLL.
9328 old_archive_from_new_cmds='true'
9329 # FIXME: Should let the user specify the lib program.
9330 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9331 enable_shared_with_static_runtimes=yes
9336 darwin* | rhapsody*)
9339 archive_cmds_need_lc=no
9341 hardcode_automatic=yes
9342 hardcode_shlibpath_var=unsupported
9343 if test "$lt_cv_ld_force_load" = "yes"; then
9344 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9347 whole_archive_flag_spec=''
9349 link_all_deplibs=yes
9350 allow_undefined_flag="$_lt_dar_allow_undefined"
9351 case $cc_basename in
9352 ifort*) _lt_dar_can_shared=yes ;;
9353 *) _lt_dar_can_shared=$GCC ;;
9355 if test "$_lt_dar_can_shared" = "yes"; then
9356 output_verbose_link_cmd=func_echo_all
9357 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9358 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9359 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9360 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9370 hardcode_libdir_flag_spec='-L$libdir'
9371 hardcode_shlibpath_var=no
9374 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9375 # support. Future versions do this automatically, but an explicit c++rt0.o
9376 # does not break anything, and helps significantly (at the cost of a little
9379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9380 hardcode_libdir_flag_spec='-R$libdir'
9382 hardcode_shlibpath_var=no
9385 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9387 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9389 hardcode_minus_L=yes
9390 hardcode_shlibpath_var=no
9393 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9394 freebsd* | dragonfly*)
9395 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9396 hardcode_libdir_flag_spec='-R$libdir'
9398 hardcode_shlibpath_var=no
9402 if test "$GCC" = yes; then
9403 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9405 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'
9407 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9408 hardcode_libdir_separator=:
9411 # hardcode_minus_L: Not really in the search PATH,
9412 # but as the default location of the library.
9413 hardcode_minus_L=yes
9414 export_dynamic_flag_spec='${wl}-E'
9418 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9419 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9421 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9423 if test "$with_gnu_ld" = no; then
9424 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9425 hardcode_libdir_separator=:
9427 hardcode_direct_absolute=yes
9428 export_dynamic_flag_spec='${wl}-E'
9429 # hardcode_minus_L: Not really in the search PATH,
9430 # but as the default location of the library.
9431 hardcode_minus_L=yes
9436 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9439 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9442 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9445 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9451 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9454 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9458 # Older versions of the 11.00 compiler do not understand -b yet
9459 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9461 $as_echo_n "checking if $CC understands -b... " >&6; }
9462 if ${lt_cv_prog_compiler__b+:} false; then :
9463 $as_echo_n "(cached) " >&6
9465 lt_cv_prog_compiler__b=no
9466 save_LDFLAGS="$LDFLAGS"
9467 LDFLAGS="$LDFLAGS -b"
9468 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9469 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9470 # The linker can only warn and ignore the option if not recognized
9471 # So say no if there are warnings
9472 if test -s conftest.err; then
9473 # Append any errors to the config.log.
9474 cat conftest.err 1>&5
9475 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9477 if diff conftest.exp conftest.er2 >/dev/null; then
9478 lt_cv_prog_compiler__b=yes
9481 lt_cv_prog_compiler__b=yes
9485 LDFLAGS="$save_LDFLAGS"
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9489 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9491 if test x"$lt_cv_prog_compiler__b" = xyes; then
9492 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9494 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9500 if test "$with_gnu_ld" = no; then
9501 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9502 hardcode_libdir_separator=:
9507 hardcode_shlibpath_var=no
9511 hardcode_direct_absolute=yes
9512 export_dynamic_flag_spec='${wl}-E'
9514 # hardcode_minus_L: Not really in the search PATH,
9515 # but as the default location of the library.
9516 hardcode_minus_L=yes
9522 irix5* | irix6* | nonstopux*)
9523 if test "$GCC" = yes; then
9524 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9525 # Try to use the -exported_symbol ld option, if it does not
9526 # work, assume that -exports_file does not work either and
9527 # implicitly export all symbols.
9528 # This should be the same for all languages, so no per-tag cache variable.
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9530 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9531 if ${lt_cv_irix_exported_symbol+:} false; then :
9532 $as_echo_n "(cached) " >&6
9534 save_LDFLAGS="$LDFLAGS"
9535 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9537 /* end confdefs.h. */
9538 int foo (void) { return 0; }
9540 if ac_fn_c_try_link "$LINENO"; then :
9541 lt_cv_irix_exported_symbol=yes
9543 lt_cv_irix_exported_symbol=no
9545 rm -f core conftest.err conftest.$ac_objext \
9546 conftest$ac_exeext conftest.$ac_ext
9547 LDFLAGS="$save_LDFLAGS"
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9550 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9551 if test "$lt_cv_irix_exported_symbol" = yes; then
9552 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9556 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9558 archive_cmds_need_lc='no'
9559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9560 hardcode_libdir_separator=:
9562 link_all_deplibs=yes
9566 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9567 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9569 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9571 hardcode_libdir_flag_spec='-R$libdir'
9573 hardcode_shlibpath_var=no
9577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9580 hardcode_libdir_separator=:
9581 hardcode_shlibpath_var=no
9588 if test -f /usr/libexec/ld.so; then
9590 hardcode_shlibpath_var=no
9591 hardcode_direct_absolute=yes
9592 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9593 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9594 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9595 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9596 export_dynamic_flag_spec='${wl}-E'
9599 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9600 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9601 hardcode_libdir_flag_spec='-R$libdir'
9604 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9605 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9615 hardcode_libdir_flag_spec='-L$libdir'
9616 hardcode_minus_L=yes
9617 allow_undefined_flag=unsupported
9618 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'
9619 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9623 if test "$GCC" = yes; then
9624 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9625 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9627 allow_undefined_flag=' -expect_unresolved \*'
9628 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9630 archive_cmds_need_lc='no'
9631 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9632 hardcode_libdir_separator=:
9635 osf4* | osf5*) # as osf3* with the addition of -msym flag
9636 if test "$GCC" = yes; then
9637 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9638 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9639 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9641 allow_undefined_flag=' -expect_unresolved \*'
9642 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9643 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9644 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9646 # Both c and cxx compiler support -rpath directly
9647 hardcode_libdir_flag_spec='-rpath $libdir'
9649 archive_cmds_need_lc='no'
9650 hardcode_libdir_separator=:
9654 no_undefined_flag=' -z defs'
9655 if test "$GCC" = yes; then
9657 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9658 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9659 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9661 case `$CC -V 2>&1` in
9664 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9665 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9666 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9670 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9671 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9672 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9676 hardcode_libdir_flag_spec='-R$libdir'
9677 hardcode_shlibpath_var=no
9679 solaris2.[0-5] | solaris2.[0-5].*) ;;
9681 # The compiler driver will combine and reorder linker options,
9682 # but understands `-z linker_flag'. GCC discards it without `$wl',
9683 # but is careful enough not to reorder.
9684 # Supported since Solaris 2.6 (maybe 2.5.1?)
9685 if test "$GCC" = yes; then
9686 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9688 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9692 link_all_deplibs=yes
9696 if test "x$host_vendor" = xsequent; then
9697 # Use $CC to link under sequent, because it throws in some extra .o
9698 # files that make .init and .fini sections work.
9699 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9701 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9703 hardcode_libdir_flag_spec='-L$libdir'
9705 hardcode_minus_L=yes
9706 hardcode_shlibpath_var=no
9710 case $host_vendor in
9712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9713 hardcode_direct=yes # is this really true???
9716 ## LD is ld it makes a PLAMLIB
9717 ## CC just makes a GrossModule.
9718 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9719 reload_cmds='$CC -r -o $output$reload_objs'
9723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9724 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9727 runpath_var='LD_RUN_PATH'
9728 hardcode_shlibpath_var=no
9732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9733 hardcode_shlibpath_var=no
9734 export_dynamic_flag_spec='-Bexport'
9738 if test -d /usr/nec; then
9739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9740 hardcode_shlibpath_var=no
9741 runpath_var=LD_RUN_PATH
9742 hardcode_runpath_var=yes
9747 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9748 no_undefined_flag='${wl}-z,text'
9749 archive_cmds_need_lc=no
9750 hardcode_shlibpath_var=no
9751 runpath_var='LD_RUN_PATH'
9753 if test "$GCC" = yes; then
9754 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9755 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9757 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9758 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9762 sysv5* | sco3.2v5* | sco5v6*)
9763 # Note: We can NOT use -z defs as we might desire, because we do not
9764 # link with -lc, and that would cause any symbols used from libc to
9765 # always be unresolved, which means just about no library would
9766 # ever link correctly. If we're not using GNU ld we use -z text
9767 # though, which does catch some bad symbols but isn't as heavy-handed
9769 no_undefined_flag='${wl}-z,text'
9770 allow_undefined_flag='${wl}-z,nodefs'
9771 archive_cmds_need_lc=no
9772 hardcode_shlibpath_var=no
9773 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9774 hardcode_libdir_separator=':'
9775 link_all_deplibs=yes
9776 export_dynamic_flag_spec='${wl}-Bexport'
9777 runpath_var='LD_RUN_PATH'
9779 if test "$GCC" = yes; then
9780 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9781 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9783 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9784 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9790 hardcode_libdir_flag_spec='-L$libdir'
9791 hardcode_shlibpath_var=no
9799 if test x$host_vendor = xsni; then
9801 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9802 export_dynamic_flag_spec='${wl}-Blargedynsym'
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9809 $as_echo "$ld_shlibs" >&6; }
9810 test "$ld_shlibs" = no && can_build_shared=no
9812 with_gnu_ld=$with_gnu_ld
9829 # Do we need to explicitly link libc?
9831 case "x$archive_cmds_need_lc" in
9833 # Assume -lc should be added
9834 archive_cmds_need_lc=yes
9836 if test "$enable_shared" = yes && test "$GCC" = yes; then
9837 case $archive_cmds in
9839 # FIXME: we may have to deal with multi-command sequences.
9842 # Test whether the compiler implicitly links with -lc since on some
9843 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9844 # to ld, don't add -lc before -lgcc.
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9846 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9847 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9848 $as_echo_n "(cached) " >&6
9851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9854 (eval $ac_compile) 2>&5
9856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9857 test $ac_status = 0; } 2>conftest.err; then
9860 libobjs=conftest.$ac_objext
9862 wl=$lt_prog_compiler_wl
9863 pic_flag=$lt_prog_compiler_pic
9869 lt_save_allow_undefined_flag=$allow_undefined_flag
9870 allow_undefined_flag=
9871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9872 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9875 test $ac_status = 0; }
9877 lt_cv_archive_cmds_need_lc=no
9879 lt_cv_archive_cmds_need_lc=yes
9881 allow_undefined_flag=$lt_save_allow_undefined_flag
9883 cat conftest.err 1>&5
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9889 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9890 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10049 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10051 if test "$GCC" = yes; then
10053 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10054 *) lt_awk_arg="/^libraries:/" ;;
10057 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10058 *) lt_sed_strip_eq="s,=/,/,g" ;;
10060 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10061 case $lt_search_path_spec in
10063 # if the path contains ";" then we assume it to be the separator
10064 # otherwise default to the standard path separator (i.e. ":") - it is
10065 # assumed that no part of a normal pathname contains ";" but that should
10066 # okay in the real world where ";" in dirpaths is itself problematic.
10067 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10070 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10073 # Ok, now we have the path, separated by spaces, we can step through it
10074 # and add multilib dir if necessary.
10075 lt_tmp_lt_search_path_spec=
10076 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10077 for lt_sys_path in $lt_search_path_spec; do
10078 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10079 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10081 test -d "$lt_sys_path" && \
10082 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10085 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10086 BEGIN {RS=" "; FS="/|\n";} {
10089 for (lt_i = NF; lt_i > 0; lt_i--) {
10090 if ($lt_i != "" && $lt_i != ".") {
10091 if ($lt_i == "..") {
10094 if (lt_count == 0) {
10095 lt_foo="/" $lt_i lt_foo;
10102 if (lt_foo != "") { lt_freq[lt_foo]++; }
10103 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10105 # AWK program above erroneously prepends '/' to C:/dos/paths
10108 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10109 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10111 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10113 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10115 library_names_spec=
10116 libname_spec='lib$name'
10120 postuninstall_cmds=
10124 shlibpath_overrides_runpath=unknown
10126 dynamic_linker="$host_os ld.so"
10127 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10128 need_lib_prefix=unknown
10129 hardcode_into_libs=no
10131 # when you set need_version to no, make sure it does not cause -set_version
10132 # flags to be left without arguments
10133 need_version=unknown
10137 version_type=linux # correct to gnu/linux during the next big refactor
10138 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10139 shlibpath_var=LIBPATH
10141 # AIX 3 has no versioning support, so we append a major version to the name.
10142 soname_spec='${libname}${release}${shared_ext}$major'
10146 version_type=linux # correct to gnu/linux during the next big refactor
10149 hardcode_into_libs=yes
10150 if test "$host_cpu" = ia64; then
10151 # AIX 5 supports IA64
10152 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10153 shlibpath_var=LD_LIBRARY_PATH
10155 # With GCC up to 2.95.x, collect2 would create an import file
10156 # for dependence libraries. The import file would start with
10157 # the line `#! .'. This would cause the generated library to
10158 # depend on `.', always an invalid library. This was fixed in
10159 # development snapshots of GCC prior to 3.0.
10161 aix4 | aix4.[01] | aix4.[01].*)
10162 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10164 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10167 can_build_shared=no
10171 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10172 # soname into executable. Probably we can add versioning support to
10173 # collect2, so additional links can be useful in future.
10174 if test "$aix_use_runtimelinking" = yes; then
10175 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10176 # instead of lib<name>.a to let people know that these are not
10177 # typical AIX shared libraries.
10178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180 # We preserve .a as extension for shared libraries through AIX4.2
10181 # and later when we are not doing run time linking.
10182 library_names_spec='${libname}${release}.a $libname.a'
10183 soname_spec='${libname}${release}${shared_ext}$major'
10185 shlibpath_var=LIBPATH
10192 # Since July 2007 AmigaOS4 officially supports .so libraries.
10193 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197 library_names_spec='$libname.ixlibrary $libname.a'
10198 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10199 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10205 library_names_spec='${libname}${shared_ext}'
10206 dynamic_linker="$host_os ld.so"
10207 shlibpath_var=LIBRARY_PATH
10211 version_type=linux # correct to gnu/linux during the next big refactor
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10216 shlibpath_var=LD_LIBRARY_PATH
10217 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10218 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10219 # the default ld.so.conf also contains /usr/contrib/lib and
10220 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10221 # libtool to hard-code these into programs
10224 cygwin* | mingw* | pw32* | cegcc*)
10225 version_type=windows
10230 case $GCC,$cc_basename in
10233 library_names_spec='$libname.dll.a'
10234 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10235 postinstall_cmds='base_file=`basename \${file}`~
10236 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10237 dldir=$destdir/`dirname \$dlpath`~
10238 test -d \$dldir || mkdir -p \$dldir~
10239 $install_prog $dir/$dlname \$dldir/$dlname~
10240 chmod a+x \$dldir/$dlname~
10241 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10242 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10244 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10245 dlpath=$dir/\$dldll~
10247 shlibpath_overrides_runpath=yes
10251 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10252 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10254 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10257 # MinGW DLLs use traditional 'lib' prefix
10258 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10261 # pw32 DLLs use 'pw' prefix rather than 'lib'
10262 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10265 dynamic_linker='Win32 ld.exe'
10270 libname_spec='$name'
10271 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10272 library_names_spec='${libname}.dll.lib'
10276 sys_lib_search_path_spec=
10279 for lt_path in $LIB
10282 # Let DOS variable expansion print the short 8.3 style file name.
10283 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10284 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10287 # Convert to MSYS style.
10288 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10291 # Convert to unix form, then to dos form, then back to unix form
10292 # but this time dos style (no spaces!) so that the unix form looks
10293 # like /cygdrive/c/PROGRA~1:/cygdr...
10294 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10295 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10296 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10299 sys_lib_search_path_spec="$LIB"
10300 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10301 # It is most probably a Windows format PATH.
10302 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10304 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10306 # FIXME: find the short name or the path components, as spaces are
10307 # common. (e.g. "Program Files" -> "PROGRA~1")
10311 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10312 postinstall_cmds='base_file=`basename \${file}`~
10313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10314 dldir=$destdir/`dirname \$dlpath`~
10315 test -d \$dldir || mkdir -p \$dldir~
10316 $install_prog $dir/$dlname \$dldir/$dlname'
10317 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10318 dlpath=$dir/\$dldll~
10320 shlibpath_overrides_runpath=yes
10321 dynamic_linker='Win32 link.exe'
10325 # Assume MSVC wrapper
10326 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10327 dynamic_linker='Win32 ld.exe'
10330 # FIXME: first we should search . and the directory the executable is in
10334 darwin* | rhapsody*)
10335 dynamic_linker="$host_os dyld"
10336 version_type=darwin
10339 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10340 soname_spec='${libname}${release}${major}$shared_ext'
10341 shlibpath_overrides_runpath=yes
10342 shlibpath_var=DYLD_LIBRARY_PATH
10343 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10345 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10346 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10350 version_type=linux # correct to gnu/linux during the next big refactor
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 shlibpath_var=LD_LIBRARY_PATH
10358 freebsd* | dragonfly*)
10359 # DragonFly does not have aout. When/if they implement a new
10360 # versioning mechanism, adjust this.
10361 if test -x /usr/bin/objformat; then
10362 objformat=`/usr/bin/objformat`
10365 freebsd[23].*) objformat=aout ;;
10366 *) objformat=elf ;;
10369 version_type=freebsd-$objformat
10370 case $version_type in
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10381 shlibpath_var=LD_LIBRARY_PATH
10384 shlibpath_overrides_runpath=yes
10386 freebsd3.[01]* | freebsdelf3.[01]*)
10387 shlibpath_overrides_runpath=yes
10388 hardcode_into_libs=yes
10390 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10391 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10392 shlibpath_overrides_runpath=no
10393 hardcode_into_libs=yes
10395 *) # from 4.6 on, and DragonFly
10396 shlibpath_overrides_runpath=yes
10397 hardcode_into_libs=yes
10403 version_type=linux # correct to gnu/linux during the next big refactor
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10407 soname_spec='${libname}${release}${shared_ext}$major'
10408 shlibpath_var=LD_LIBRARY_PATH
10409 shlibpath_overrides_runpath=no
10410 hardcode_into_libs=yes
10414 version_type=linux # correct to gnu/linux during the next big refactor
10417 dynamic_linker="$host_os runtime_loader"
10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10419 soname_spec='${libname}${release}${shared_ext}$major'
10420 shlibpath_var=LIBRARY_PATH
10421 shlibpath_overrides_runpath=yes
10422 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10423 hardcode_into_libs=yes
10426 hpux9* | hpux10* | hpux11*)
10427 # Give a soname corresponding to the major version so that dld.sl refuses to
10428 # link against other versions.
10435 hardcode_into_libs=yes
10436 dynamic_linker="$host_os dld.so"
10437 shlibpath_var=LD_LIBRARY_PATH
10438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 if test "X$HPUX_IA64_MODE" = X32; then
10442 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10444 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10450 hardcode_into_libs=yes
10451 dynamic_linker="$host_os dld.sl"
10452 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455 soname_spec='${libname}${release}${shared_ext}$major'
10456 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10461 dynamic_linker="$host_os dld.sl"
10462 shlibpath_var=SHLIB_PATH
10463 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465 soname_spec='${libname}${release}${shared_ext}$major'
10468 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10469 postinstall_cmds='chmod 555 $lib'
10470 # or fails outright, so override atomically:
10471 install_override_mode=555
10475 version_type=linux # correct to gnu/linux during the next big refactor
10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10479 soname_spec='${libname}${release}${shared_ext}$major'
10480 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10481 shlibpath_var=LD_LIBRARY_PATH
10482 shlibpath_overrides_runpath=no
10483 hardcode_into_libs=yes
10486 irix5* | irix6* | nonstopux*)
10488 nonstopux*) version_type=nonstopux ;;
10490 if test "$lt_cv_prog_gnu_ld" = yes; then
10491 version_type=linux # correct to gnu/linux during the next big refactor
10498 soname_spec='${libname}${release}${shared_ext}$major'
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10501 irix5* | nonstopux*)
10502 libsuff= shlibsuff=
10505 case $LD in # libtool.m4 will add one of these switches to LD
10506 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10507 libsuff= shlibsuff= libmagic=32-bit;;
10508 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10509 libsuff=32 shlibsuff=N32 libmagic=N32;;
10510 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10511 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10512 *) libsuff= shlibsuff= libmagic=never-match;;
10516 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10517 shlibpath_overrides_runpath=no
10518 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10519 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10520 hardcode_into_libs=yes
10523 # No shared lib support for Linux oldld, aout, or coff.
10524 linux*oldld* | linux*aout* | linux*coff*)
10528 # This must be glibc/ELF.
10529 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10530 version_type=linux # correct to gnu/linux during the next big refactor
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10534 soname_spec='${libname}${release}${shared_ext}$major'
10535 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10536 shlibpath_var=LD_LIBRARY_PATH
10537 shlibpath_overrides_runpath=no
10539 # Some binutils ld are patched to set DT_RUNPATH
10540 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10541 $as_echo_n "(cached) " >&6
10543 lt_cv_shlibpath_overrides_runpath=no
10544 save_LDFLAGS=$LDFLAGS
10545 save_libdir=$libdir
10546 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10547 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10549 /* end confdefs.h. */
10559 if ac_fn_c_try_link "$LINENO"; then :
10560 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10561 lt_cv_shlibpath_overrides_runpath=yes
10564 rm -f core conftest.err conftest.$ac_objext \
10565 conftest$ac_exeext conftest.$ac_ext
10566 LDFLAGS=$save_LDFLAGS
10567 libdir=$save_libdir
10571 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10573 # This implies no fast_install, which is unacceptable.
10574 # Some rework will be needed to allow for fast_install
10575 # before this can be enabled.
10576 hardcode_into_libs=yes
10578 # Add ABI-specific directories to the system library path.
10579 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10581 # Append ld.so.conf contents to the search path
10582 if test -f /etc/ld.so.conf; then
10583 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10584 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10588 # We used to test for /lib/ld.so.1 and disable shared libraries on
10589 # powerpc, because MkLinux only supported shared libraries with the
10590 # GNU dynamic linker. Since this was broken with cross compilers,
10591 # most powerpc-linux boxes support dynamic linking these days and
10592 # people can always --disable-shared, the test was removed, and we
10593 # assume the GNU/Linux dynamic linker is in use.
10594 dynamic_linker='GNU/Linux ld.so'
10601 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10604 dynamic_linker='NetBSD (a.out) ld.so'
10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10607 soname_spec='${libname}${release}${shared_ext}$major'
10608 dynamic_linker='NetBSD ld.elf_so'
10610 shlibpath_var=LD_LIBRARY_PATH
10611 shlibpath_overrides_runpath=yes
10612 hardcode_into_libs=yes
10616 version_type=linux # correct to gnu/linux during the next big refactor
10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 shlibpath_overrides_runpath=yes
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10627 soname_spec='${libname}${release}${shared_ext}$major'
10628 shlibpath_var=LD_LIBRARY_PATH
10629 shlibpath_overrides_runpath=no
10630 hardcode_into_libs=yes
10631 dynamic_linker='ldqnx.so'
10636 sys_lib_dlsearch_path_spec="/usr/lib"
10638 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10640 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10641 *) need_version=no ;;
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10645 shlibpath_var=LD_LIBRARY_PATH
10646 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10648 openbsd2.[89] | openbsd2.[89].*)
10649 shlibpath_overrides_runpath=no
10652 shlibpath_overrides_runpath=yes
10656 shlibpath_overrides_runpath=yes
10661 libname_spec='$name'
10664 library_names_spec='$libname${shared_ext} $libname.a'
10665 dynamic_linker='OS/2 ld.exe'
10666 shlibpath_var=LIBPATH
10669 osf3* | osf4* | osf5*)
10673 soname_spec='${libname}${release}${shared_ext}$major'
10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10675 shlibpath_var=LD_LIBRARY_PATH
10676 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10677 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10685 version_type=linux # correct to gnu/linux during the next big refactor
10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689 soname_spec='${libname}${release}${shared_ext}$major'
10690 shlibpath_var=LD_LIBRARY_PATH
10691 shlibpath_overrides_runpath=yes
10692 hardcode_into_libs=yes
10693 # ldd complains unless libraries are executable
10694 postinstall_cmds='chmod +x $lib'
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10700 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10701 shlibpath_var=LD_LIBRARY_PATH
10702 shlibpath_overrides_runpath=yes
10703 if test "$with_gnu_ld" = yes; then
10710 version_type=linux # correct to gnu/linux during the next big refactor
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10712 soname_spec='${libname}${release}${shared_ext}$major'
10713 shlibpath_var=LD_LIBRARY_PATH
10714 case $host_vendor in
10716 shlibpath_overrides_runpath=no
10718 runpath_var=LD_RUN_PATH
10726 shlibpath_overrides_runpath=no
10727 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10733 if test -d /usr/nec ;then
10734 version_type=linux # correct to gnu/linux during the next big refactor
10735 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10736 soname_spec='$libname${shared_ext}.$major'
10737 shlibpath_var=LD_LIBRARY_PATH
10741 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10742 version_type=freebsd-elf
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10746 soname_spec='${libname}${release}${shared_ext}$major'
10747 shlibpath_var=LD_LIBRARY_PATH
10748 shlibpath_overrides_runpath=yes
10749 hardcode_into_libs=yes
10750 if test "$with_gnu_ld" = yes; then
10751 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10753 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10756 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10760 sys_lib_dlsearch_path_spec='/usr/lib'
10764 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10765 version_type=linux # correct to gnu/linux during the next big refactor
10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10769 shlibpath_var=LD_LIBRARY_PATH
10770 shlibpath_overrides_runpath=no
10771 hardcode_into_libs=yes
10775 version_type=linux # correct to gnu/linux during the next big refactor
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10777 soname_spec='${libname}${release}${shared_ext}$major'
10778 shlibpath_var=LD_LIBRARY_PATH
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10786 $as_echo "$dynamic_linker" >&6; }
10787 test "$dynamic_linker" = no && can_build_shared=no
10789 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10790 if test "$GCC" = yes; then
10791 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10794 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10795 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10797 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10798 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10893 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10895 if test -n "$hardcode_libdir_flag_spec" ||
10896 test -n "$runpath_var" ||
10897 test "X$hardcode_automatic" = "Xyes" ; then
10899 # We can hardcode non-existent directories.
10900 if test "$hardcode_direct" != no &&
10901 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10902 # have to relink, otherwise we might link with an installed library
10903 # when we should be linking with a yet-to-be-installed one
10904 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10905 test "$hardcode_minus_L" != no; then
10906 # Linking always hardcodes the temporary library directory.
10907 hardcode_action=relink
10909 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10910 hardcode_action=immediate
10913 # We cannot hardcode anything, or else we can only hardcode existing
10915 hardcode_action=unsupported
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10918 $as_echo "$hardcode_action" >&6; }
10920 if test "$hardcode_action" = relink ||
10921 test "$inherit_rpath" = yes; then
10922 # Fast installation is not supported
10923 enable_fast_install=no
10924 elif test "$shlibpath_overrides_runpath" = yes ||
10925 test "$enable_shared" = no; then
10926 # Fast installation is not necessary
10927 enable_fast_install=needless
10935 if test "x$enable_dlopen" != xyes; then
10936 enable_dlopen=unknown
10937 enable_dlopen_self=unknown
10938 enable_dlopen_self_static=unknown
10945 lt_cv_dlopen="load_add_on"
10947 lt_cv_dlopen_self=yes
10950 mingw* | pw32* | cegcc*)
10951 lt_cv_dlopen="LoadLibrary"
10956 lt_cv_dlopen="dlopen"
10961 # if libdl is installed we need to link against it
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10963 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10964 if ${ac_cv_lib_dl_dlopen+:} false; then :
10965 $as_echo_n "(cached) " >&6
10967 ac_check_lib_save_LIBS=$LIBS
10969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10970 /* end confdefs.h. */
10972 /* Override any GCC internal prototype to avoid an error.
10973 Use char because int might match the return type of a GCC
10974 builtin and then its argument prototype would still apply. */
10987 if ac_fn_c_try_link "$LINENO"; then :
10988 ac_cv_lib_dl_dlopen=yes
10990 ac_cv_lib_dl_dlopen=no
10992 rm -f core conftest.err conftest.$ac_objext \
10993 conftest$ac_exeext conftest.$ac_ext
10994 LIBS=$ac_check_lib_save_LIBS
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10997 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10998 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10999 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11002 lt_cv_dlopen="dyld"
11004 lt_cv_dlopen_self=yes
11011 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11012 if test "x$ac_cv_func_shl_load" = xyes; then :
11013 lt_cv_dlopen="shl_load"
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11016 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11017 if ${ac_cv_lib_dld_shl_load+:} false; then :
11018 $as_echo_n "(cached) " >&6
11020 ac_check_lib_save_LIBS=$LIBS
11022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11023 /* end confdefs.h. */
11025 /* Override any GCC internal prototype to avoid an error.
11026 Use char because int might match the return type of a GCC
11027 builtin and then its argument prototype would still apply. */
11035 return shl_load ();
11040 if ac_fn_c_try_link "$LINENO"; then :
11041 ac_cv_lib_dld_shl_load=yes
11043 ac_cv_lib_dld_shl_load=no
11045 rm -f core conftest.err conftest.$ac_objext \
11046 conftest$ac_exeext conftest.$ac_ext
11047 LIBS=$ac_check_lib_save_LIBS
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11050 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11051 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11052 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11054 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11055 if test "x$ac_cv_func_dlopen" = xyes; then :
11056 lt_cv_dlopen="dlopen"
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11059 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11060 if ${ac_cv_lib_dl_dlopen+:} false; then :
11061 $as_echo_n "(cached) " >&6
11063 ac_check_lib_save_LIBS=$LIBS
11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h. */
11068 /* Override any GCC internal prototype to avoid an error.
11069 Use char because int might match the return type of a GCC
11070 builtin and then its argument prototype would still apply. */
11083 if ac_fn_c_try_link "$LINENO"; then :
11084 ac_cv_lib_dl_dlopen=yes
11086 ac_cv_lib_dl_dlopen=no
11088 rm -f core conftest.err conftest.$ac_objext \
11089 conftest$ac_exeext conftest.$ac_ext
11090 LIBS=$ac_check_lib_save_LIBS
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11093 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11094 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11095 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11098 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11099 if ${ac_cv_lib_svld_dlopen+:} false; then :
11100 $as_echo_n "(cached) " >&6
11102 ac_check_lib_save_LIBS=$LIBS
11103 LIBS="-lsvld $LIBS"
11104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105 /* end confdefs.h. */
11107 /* Override any GCC internal prototype to avoid an error.
11108 Use char because int might match the return type of a GCC
11109 builtin and then its argument prototype would still apply. */
11122 if ac_fn_c_try_link "$LINENO"; then :
11123 ac_cv_lib_svld_dlopen=yes
11125 ac_cv_lib_svld_dlopen=no
11127 rm -f core conftest.err conftest.$ac_objext \
11128 conftest$ac_exeext conftest.$ac_ext
11129 LIBS=$ac_check_lib_save_LIBS
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11132 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11133 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11134 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11137 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11138 if ${ac_cv_lib_dld_dld_link+:} false; then :
11139 $as_echo_n "(cached) " >&6
11141 ac_check_lib_save_LIBS=$LIBS
11143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h. */
11146 /* Override any GCC internal prototype to avoid an error.
11147 Use char because int might match the return type of a GCC
11148 builtin and then its argument prototype would still apply. */
11156 return dld_link ();
11161 if ac_fn_c_try_link "$LINENO"; then :
11162 ac_cv_lib_dld_dld_link=yes
11164 ac_cv_lib_dld_dld_link=no
11166 rm -f core conftest.err conftest.$ac_objext \
11167 conftest$ac_exeext conftest.$ac_ext
11168 LIBS=$ac_check_lib_save_LIBS
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11171 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11172 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11173 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11194 if test "x$lt_cv_dlopen" != xno; then
11200 case $lt_cv_dlopen in
11202 save_CPPFLAGS="$CPPFLAGS"
11203 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11205 save_LDFLAGS="$LDFLAGS"
11206 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11209 LIBS="$lt_cv_dlopen_libs $LIBS"
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11212 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11213 if ${lt_cv_dlopen_self+:} false; then :
11214 $as_echo_n "(cached) " >&6
11216 if test "$cross_compiling" = yes; then :
11217 lt_cv_dlopen_self=cross
11219 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11220 lt_status=$lt_dlunknown
11221 cat > conftest.$ac_ext <<_LT_EOF
11222 #line $LINENO "configure"
11223 #include "confdefs.h"
11232 # define LT_DLGLOBAL RTLD_GLOBAL
11235 # define LT_DLGLOBAL DL_GLOBAL
11237 # define LT_DLGLOBAL 0
11241 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11242 find out it does not work in some platform. */
11243 #ifndef LT_DLLAZY_OR_NOW
11245 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11248 # define LT_DLLAZY_OR_NOW DL_LAZY
11251 # define LT_DLLAZY_OR_NOW RTLD_NOW
11254 # define LT_DLLAZY_OR_NOW DL_NOW
11256 # define LT_DLLAZY_OR_NOW 0
11263 /* When -fvisbility=hidden is used, assume the code has been annotated
11264 correspondingly for the symbols needed. */
11265 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11266 int fnord () __attribute__((visibility("default")));
11269 int fnord () { return 42; }
11272 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11273 int status = $lt_dlunknown;
11277 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11280 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11281 else puts (dlerror ());
11283 /* dlclose (self); */
11291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11292 (eval $ac_link) 2>&5
11294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11295 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11296 (./conftest; exit; ) >&5 2>/dev/null
11298 case x$lt_status in
11299 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11300 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11301 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11304 # compilation failed
11305 lt_cv_dlopen_self=no
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11313 $as_echo "$lt_cv_dlopen_self" >&6; }
11315 if test "x$lt_cv_dlopen_self" = xyes; then
11316 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11318 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11319 if ${lt_cv_dlopen_self_static+:} false; then :
11320 $as_echo_n "(cached) " >&6
11322 if test "$cross_compiling" = yes; then :
11323 lt_cv_dlopen_self_static=cross
11325 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11326 lt_status=$lt_dlunknown
11327 cat > conftest.$ac_ext <<_LT_EOF
11328 #line $LINENO "configure"
11329 #include "confdefs.h"
11338 # define LT_DLGLOBAL RTLD_GLOBAL
11341 # define LT_DLGLOBAL DL_GLOBAL
11343 # define LT_DLGLOBAL 0
11347 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11348 find out it does not work in some platform. */
11349 #ifndef LT_DLLAZY_OR_NOW
11351 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11354 # define LT_DLLAZY_OR_NOW DL_LAZY
11357 # define LT_DLLAZY_OR_NOW RTLD_NOW
11360 # define LT_DLLAZY_OR_NOW DL_NOW
11362 # define LT_DLLAZY_OR_NOW 0
11369 /* When -fvisbility=hidden is used, assume the code has been annotated
11370 correspondingly for the symbols needed. */
11371 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11372 int fnord () __attribute__((visibility("default")));
11375 int fnord () { return 42; }
11378 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11379 int status = $lt_dlunknown;
11383 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11386 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11387 else puts (dlerror ());
11389 /* dlclose (self); */
11397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11398 (eval $ac_link) 2>&5
11400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11401 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11402 (./conftest; exit; ) >&5 2>/dev/null
11404 case x$lt_status in
11405 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11406 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11407 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11410 # compilation failed
11411 lt_cv_dlopen_self_static=no
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11419 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11422 CPPFLAGS="$save_CPPFLAGS"
11423 LDFLAGS="$save_LDFLAGS"
11428 case $lt_cv_dlopen_self in
11429 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11430 *) enable_dlopen_self=unknown ;;
11433 case $lt_cv_dlopen_self_static in
11434 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11435 *) enable_dlopen_self_static=unknown ;;
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11458 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11459 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11460 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11461 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11463 $as_echo "yes" >&6; }
11465 # FIXME - insert some real tests, host_os isn't really good enough
11468 if test -n "$STRIP" ; then
11469 striplib="$STRIP -x"
11470 old_striplib="$STRIP -S"
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11472 $as_echo "yes" >&6; }
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11475 $as_echo "no" >&6; }
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11480 $as_echo "no" >&6; }
11496 # Report which library types will actually be built
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11498 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11500 $as_echo "$can_build_shared" >&6; }
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11503 $as_echo_n "checking whether to build shared libraries... " >&6; }
11504 test "$can_build_shared" = "no" && enable_shared=no
11506 # On AIX, shared libraries and static libraries use the same namespace, and
11507 # are all built from PIC.
11510 test "$enable_shared" = yes && enable_static=no
11511 if test -n "$RANLIB"; then
11512 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11513 postinstall_cmds='$RANLIB $lib'
11518 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11519 test "$enable_shared" = yes && enable_static=no
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11524 $as_echo "$enable_shared" >&6; }
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11527 $as_echo_n "checking whether to build static libraries... " >&6; }
11528 # Make sure either enable_shared or enable_static is yes.
11529 test "$enable_shared" = yes || enable_static=yes
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11531 $as_echo "$enable_static" >&6; }
11538 ac_cpp='$CPP $CPPFLAGS'
11539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11559 ac_config_commands="$ac_config_commands libtool"
11564 # Only expand once:
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11571 $as_echo_n "checking for ANSI C header files... " >&6; }
11572 if ${ac_cv_header_stdc+:} false; then :
11573 $as_echo_n "(cached) " >&6
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h. */
11577 #include <stdlib.h>
11578 #include <stdarg.h>
11579 #include <string.h>
11590 if ac_fn_c_try_compile "$LINENO"; then :
11591 ac_cv_header_stdc=yes
11593 ac_cv_header_stdc=no
11595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11597 if test $ac_cv_header_stdc = yes; then
11598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600 /* end confdefs.h. */
11601 #include <string.h>
11604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11605 $EGREP "memchr" >/dev/null 2>&1; then :
11608 ac_cv_header_stdc=no
11614 if test $ac_cv_header_stdc = yes; then
11615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11617 /* end confdefs.h. */
11618 #include <stdlib.h>
11621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11622 $EGREP "free" >/dev/null 2>&1; then :
11625 ac_cv_header_stdc=no
11631 if test $ac_cv_header_stdc = yes; then
11632 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11633 if test "$cross_compiling" = yes; then :
11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637 /* end confdefs.h. */
11639 #include <stdlib.h>
11640 #if ((' ' & 0x0FF) == 0x020)
11641 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11642 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11644 # define ISLOWER(c) \
11645 (('a' <= (c) && (c) <= 'i') \
11646 || ('j' <= (c) && (c) <= 'r') \
11647 || ('s' <= (c) && (c) <= 'z'))
11648 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11651 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11656 for (i = 0; i < 256; i++)
11657 if (XOR (islower (i), ISLOWER (i))
11658 || toupper (i) != TOUPPER (i))
11663 if ac_fn_c_try_run "$LINENO"; then :
11666 ac_cv_header_stdc=no
11668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11669 conftest.$ac_objext conftest.beam conftest.$ac_ext
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11675 $as_echo "$ac_cv_header_stdc" >&6; }
11676 if test $ac_cv_header_stdc = yes; then
11678 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11682 ac_config_headers="$ac_config_headers include/config.h"
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11686 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11687 if ${ac_cv_c_const+:} false; then :
11688 $as_echo_n "(cached) " >&6
11690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11691 /* end confdefs.h. */
11697 #ifndef __cplusplus
11698 /* Ultrix mips cc rejects this sort of thing. */
11699 typedef int charset[2];
11700 const charset cs = { 0, 0 };
11701 /* SunOS 4.1.1 cc rejects this. */
11702 char const *const *pcpcc;
11704 /* NEC SVR4.0.2 mips cc rejects this. */
11705 struct point {int x, y;};
11706 static struct point const zero = {0,0};
11707 /* AIX XL C 1.02.0.0 rejects this.
11708 It does not let you subtract one const X* pointer from another in
11709 an arm of an if-expression whose if-part is not a constant
11711 const char *g = "string";
11712 pcpcc = &g + (g ? g-g : 0);
11713 /* HPUX 7.0 cc rejects these. */
11715 ppc = (char**) pcpcc;
11716 pcpcc = (char const *const *) ppc;
11717 { /* SCO 3.2v4 cc rejects this sort of thing. */
11720 char const *s = 0 ? (char *) 0 : (char const *) 0;
11725 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11726 int x[] = {25, 17};
11727 const int *foo = &x[0];
11730 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11731 typedef const int *iptr;
11735 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11736 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11737 struct s { int j; const int *ap[3]; } bx;
11738 struct s *b = &bx; b->j = 5;
11740 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11741 const int foo = 10;
11742 if (!foo) return 0;
11744 return !cs[0] && !zero.x;
11751 if ac_fn_c_try_compile "$LINENO"; then :
11756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11759 $as_echo "$ac_cv_c_const" >&6; }
11760 if test $ac_cv_c_const = no; then
11762 $as_echo "#define const /**/" >>confdefs.h
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11767 $as_echo_n "checking for inline... " >&6; }
11768 if ${ac_cv_c_inline+:} false; then :
11769 $as_echo_n "(cached) " >&6
11772 for ac_kw in inline __inline__ __inline; do
11773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774 /* end confdefs.h. */
11775 #ifndef __cplusplus
11777 static $ac_kw foo_t static_foo () {return 0; }
11778 $ac_kw foo_t foo () {return 0; }
11782 if ac_fn_c_try_compile "$LINENO"; then :
11783 ac_cv_c_inline=$ac_kw
11785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11786 test "$ac_cv_c_inline" != no && break
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11791 $as_echo "$ac_cv_c_inline" >&6; }
11793 case $ac_cv_c_inline in
11796 case $ac_cv_c_inline in
11798 *) ac_val=$ac_cv_c_inline;;
11800 cat >>confdefs.h <<_ACEOF
11801 #ifndef __cplusplus
11802 #define inline $ac_val
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11809 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11810 if ${ac_cv_header_time+:} false; then :
11811 $as_echo_n "(cached) " >&6
11813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814 /* end confdefs.h. */
11815 #include <sys/types.h>
11816 #include <sys/time.h>
11822 if ((struct tm *) 0)
11828 if ac_fn_c_try_compile "$LINENO"; then :
11829 ac_cv_header_time=yes
11831 ac_cv_header_time=no
11833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11836 $as_echo "$ac_cv_header_time" >&6; }
11837 if test $ac_cv_header_time = yes; then
11839 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11844 if test $ac_cv_c_compiler_gnu = yes; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11846 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11847 if ${ac_cv_prog_gcc_traditional+:} false; then :
11848 $as_echo_n "(cached) " >&6
11850 ac_pattern="Autoconf.*'x'"
11851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852 /* end confdefs.h. */
11856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11857 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11858 ac_cv_prog_gcc_traditional=yes
11860 ac_cv_prog_gcc_traditional=no
11865 if test $ac_cv_prog_gcc_traditional = no; then
11866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867 /* end confdefs.h. */
11868 #include <termio.h>
11871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11872 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11873 ac_cv_prog_gcc_traditional=yes
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11880 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11881 if test $ac_cv_prog_gcc_traditional = yes; then
11882 CC="$CC -traditional"
11886 for ac_func in uselocale
11888 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
11889 if test "x$ac_cv_func_uselocale" = xyes; then :
11890 cat >>confdefs.h <<_ACEOF
11891 #define HAVE_USELOCALE 1
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library version" >&5
11900 $as_echo_n "checking for library version... " >&6; }
11901 SND_LIB_VERSION=$VERSION
11902 echo $VERSION > $srcdir/version
11904 cat >>confdefs.h <<_ACEOF
11905 #define VERSION "$SND_LIB_VERSION"
11909 SND_LIB_MAJOR=`echo $VERSION | cut -d . -f 1`
11911 SND_LIB_MINOR=`echo $VERSION | cut -d . -f 2`
11913 SND_LIB_SUBMINOR=`echo $VERSION | cut -d . -f 3 | sed -e 's/^\([^[:alpha:]]*\)\(.*\)$/\1/g'`
11915 SND_LIB_EXTRASTR=`echo $VERSION | cut -d . -f 3 | sed -e 's/^\([^[:alpha:]]*\)\([[:alpha:]]*\)\([[:digit:]]*\)\(.*\)$/\2/g'`
11916 SND_LIB_EXTRAVER=`echo $VERSION | cut -d . -f 3 | sed -e 's/^\([^[:alpha:]]*\)\([[:alpha:]]*\)\([[:digit:]]*\)\(.*\)$/\3/g'`
11917 case "$SND_LIB_EXTRASTR" in
11918 pre) SND_LIB_EXTRAVER=`expr $SND_LIB_EXTRAVER + 00000` ;;
11919 alpha) SND_LIB_EXTRAVER=`expr $SND_LIB_EXTRAVER + 10000` ;;
11920 beta) SND_LIB_EXTRAVER=`expr $SND_LIB_EXTRAVER + 20000` ;;
11921 rc) SND_LIB_EXTRAVER=`expr $SND_LIB_EXTRAVER + 100000` ;;
11922 *) SND_LIB_EXTRAVER=1000000 ;;
11924 { $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
11925 $as_echo "major $SND_LIB_MAJOR minor $SND_LIB_MINOR subminor $SND_LIB_SUBMINOR extrastr $SND_LIB_EXTRASTR extraver $SND_LIB_EXTRAVER" >&6; }
11930 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11932 if test "$enable_static" = "$enable_shared" -a "$enable_static" = "yes"; then
11934 Please, do not try to compile static and shared libraries together.
11935 See INSTALL file for more details (do not use --enable-shared=yes with
11936 --enable-static=yes).
11942 # Check whether --with-configdir was given.
11943 if test "${with_configdir+set}" = set; then :
11944 withval=$with_configdir; confdir="$withval"
11949 if test -z "$confdir"; then
11950 eval dir="$datadir"
11953 *) dir="$prefix/share"
11955 confdir="$dir/alsa"
11957 ALSA_CONFIG_DIR="$confdir"
11959 cat >>confdefs.h <<_ACEOF
11960 #define ALSA_CONFIG_DIR "$confdir"
11965 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
11968 # Check whether --with-plugindir was given.
11969 if test "${with_plugindir+set}" = set; then :
11970 withval=$with_plugindir; plugindir="$withval"
11975 if test -z "$plugindir"; then
11981 plugindir="$dir/$PACKAGE"
11984 cat >>confdefs.h <<_ACEOF
11985 #define ALSA_PLUGIN_DIR "$plugindir"
11988 ALSA_PLUGIN_DIR="$plugindir"
11992 # Check whether --with-pkgconfdir was given.
11993 if test "${with_pkgconfdir+set}" = set; then :
11994 withval=$with_pkgconfdir; pkgconfdir="$withval"
11999 if test -z "$pkgconfdir"; then
12005 pkgconfdir="$dir/pkgconfig"
12008 cat >>confdefs.h <<_ACEOF
12009 #define ALSA_PKGCONF_DIR "$pkgconfdir"
12012 ALSA_PKGCONF_DIR="$pkgconfdir"
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for versioned symbols" >&5
12016 $as_echo_n "checking for versioned symbols... " >&6; }
12018 # Check whether --with-versioned was given.
12019 if test "${with_versioned+set}" = set; then :
12020 withval=$with_versioned; versioned="$withval"
12025 if test "$versioned" = "yes"; then
12026 # it seems that GNU ld versions since 2.10 are not broken
12027 xres=`grep '^VERSION=' ${srcdir}/ltmain.sh | cut -d = -f 2 | cut -d \" -f 2`
12028 major=`echo $xres | cut -d . -f 1`
12029 minor=`echo $xres | cut -d . -f 2`
12031 if test $major -eq 1 && test $minor -gt 3; then
12034 if test $major -gt 1; then
12038 if test $pass -eq 1; then
12040 $as_echo "#define VERSIONED_SYMBOLS /**/" >>confdefs.h
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12043 $as_echo "yes" >&6; }
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken libtool - use libtool v1.4+; no versions" >&5
12046 $as_echo "broken libtool - use libtool v1.4+; no versions" >&6; }
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050 $as_echo "no" >&6; }
12052 if test x$versioned = xyes; then
12053 VERSIONED_SYMBOLS_TRUE=
12054 VERSIONED_SYMBOLS_FALSE='#'
12056 VERSIONED_SYMBOLS_TRUE='#'
12057 VERSIONED_SYMBOLS_FALSE=
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbolic-functions" >&5
12062 $as_echo_n "checking for symbolic-functions... " >&6; }
12063 # Check whether --enable-symbolic-functions was given.
12064 if test "${enable_symbolic_functions+set}" = set; then :
12065 enableval=$enable_symbolic_functions; symfuncs="$enableval"
12070 if test "$symfuncs" = "yes"; then
12071 if ld --help | grep -q -- '-Bsymbolic-functions'; then
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12073 $as_echo "yes" >&6; }
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported by ld" >&5
12076 $as_echo "not supported by ld" >&6; }
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 $as_echo "no" >&6; }
12083 if test x"$symfuncs" = xyes; then
12084 SYMBOLIC_FUNCTIONS_TRUE=
12085 SYMBOLIC_FUNCTIONS_FALSE='#'
12087 SYMBOLIC_FUNCTIONS_TRUE='#'
12088 SYMBOLIC_FUNCTIONS_FALSE=
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for custom symbol prefixes" >&5
12093 $as_echo_n "checking for custom symbol prefixes... " >&6; }
12095 echo "PREFIX=__USER_LABEL_PREFIX__" \
12096 | ${CPP-${CC-gcc} -E} - 2>&1 \
12097 | ${EGREP-grep} "^PREFIX=" \
12098 | ${SED-sed} "s:^PREFIX=::"`
12100 cat >>confdefs.h <<_ACEOF
12101 #define __SYMBOL_PREFIX "$SYMBOL_PREFIX"
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
12106 $as_echo "$SYMBOL_PREFIX" >&6; }
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug" >&5
12109 $as_echo_n "checking for debug... " >&6; }
12111 # Check whether --with-debug was given.
12112 if test "${with_debug+set}" = set; then :
12113 withval=$with_debug; debug="$withval"
12118 if test "$debug" = "yes"; then
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12120 $as_echo "yes" >&6; }
12123 $as_echo "#define NDEBUG /**/" >>confdefs.h
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126 $as_echo "no" >&6; }
12129 if test "$debug" = "yes"; then
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug assert" >&5
12131 $as_echo_n "checking for debug assert... " >&6; }
12132 # Check whether --enable-debug-assert was given.
12133 if test "${enable_debug_assert+set}" = set; then :
12134 enableval=$enable_debug_assert; debug_assert="$enableval"
12139 if test "$debug_assert" = "yes"; then
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12141 $as_echo "yes" >&6; }
12143 $as_echo "#define ALSA_DEBUG_ASSERT /**/" >>confdefs.h
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147 $as_echo "no" >&6; }
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tmpdir" >&5
12152 $as_echo_n "checking for tmpdir... " >&6; }
12154 # Check whether --with-tmpdir was given.
12155 if test "${with_tmpdir+set}" = set; then :
12156 withval=$with_tmpdir; tmpdir="$withval"
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tmpdir" >&5
12162 $as_echo "$tmpdir" >&6; }
12164 cat >>confdefs.h <<_ACEOF
12165 #define TMPDIR "$tmpdir"
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for softfloat" >&5
12170 $as_echo_n "checking for softfloat... " >&6; }
12172 # Check whether --with-softfloat was given.
12173 if test "${with_softfloat+set}" = set; then :
12174 withval=$with_softfloat; case "$withval" in
12175 y|yes) softfloat=yes ;;
12180 if test "$softfloat" = "yes" ; then
12182 $as_echo "#define HAVE_SOFT_FLOAT \"1\"" >>confdefs.h
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12185 $as_echo "yes" >&6; }
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188 $as_echo "no" >&6; }
12192 if test "$softfloat" != "yes"; then
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdl" >&5
12197 $as_echo_n "checking for libdl... " >&6; }
12199 # Check whether --with-libdl was given.
12200 if test "${with_libdl+set}" = set; then :
12201 withval=$with_libdl; have_libdl="$withval"
12207 if test "$have_libdl" = "yes"; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
12209 $as_echo_n "checking for dlsym in -ldl... " >&6; }
12210 if ${ac_cv_lib_dl_dlsym+:} false; then :
12211 $as_echo_n "(cached) " >&6
12213 ac_check_lib_save_LIBS=$LIBS
12215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h. */
12218 /* Override any GCC internal prototype to avoid an error.
12219 Use char because int might match the return type of a GCC
12220 builtin and then its argument prototype would still apply. */
12233 if ac_fn_c_try_link "$LINENO"; then :
12234 ac_cv_lib_dl_dlsym=yes
12236 ac_cv_lib_dl_dlsym=no
12238 rm -f core conftest.err conftest.$ac_objext \
12239 conftest$ac_exeext conftest.$ac_ext
12240 LIBS=$ac_check_lib_save_LIBS
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
12243 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
12244 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
12248 if test "$HAVE_LIBDL" = "yes" ; then
12249 ALSA_DEPLIBS="$ALSA_DEPLIBS -ldl"
12251 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256 $as_echo "no" >&6; }
12258 if test "$HAVE_LIBDL" = "yes"; then
12259 BUILD_MODULES_TRUE=
12260 BUILD_MODULES_FALSE='#'
12262 BUILD_MODULES_TRUE='#'
12263 BUILD_MODULES_FALSE=
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread" >&5
12268 $as_echo_n "checking for pthread... " >&6; }
12270 # Check whether --with-pthread was given.
12271 if test "${with_pthread+set}" = set; then :
12272 withval=$with_pthread; have_pthread="$withval"
12277 if test "$have_pthread" = "yes"; then
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
12279 $as_echo_n "checking for pthread_join in -lpthread... " >&6; }
12280 if ${ac_cv_lib_pthread_pthread_join+:} false; then :
12281 $as_echo_n "(cached) " >&6
12283 ac_check_lib_save_LIBS=$LIBS
12284 LIBS="-lpthread $LIBS"
12285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12286 /* end confdefs.h. */
12288 /* Override any GCC internal prototype to avoid an error.
12289 Use char because int might match the return type of a GCC
12290 builtin and then its argument prototype would still apply. */
12294 char pthread_join ();
12298 return pthread_join ();
12303 if ac_fn_c_try_link "$LINENO"; then :
12304 ac_cv_lib_pthread_pthread_join=yes
12306 ac_cv_lib_pthread_pthread_join=no
12308 rm -f core conftest.err conftest.$ac_objext \
12309 conftest$ac_exeext conftest.$ac_ext
12310 LIBS=$ac_check_lib_save_LIBS
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
12313 $as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
12314 if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then :
12315 HAVE_LIBPTHREAD="yes"
12318 if test "$HAVE_LIBPTHREAD" = "yes"; then
12319 ALSA_DEPLIBS="$ALSA_DEPLIBS -lpthread"
12321 $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326 $as_echo "no" >&6; }
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
12330 $as_echo_n "checking for __thread... " >&6; }
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12333 #if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) && ((__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 1) || (__GNUC__ == 4 && __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ < 2))
12334 #error gcc has this bug: http://gcc.gnu.org/ml/gcc-bugs/2006-09/msg02275.html
12339 static __thread int p = 0
12344 if ac_fn_c_try_link "$LINENO"; then :
12346 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12349 $as_echo "yes" >&6; }
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352 $as_echo "no" >&6; }
12354 rm -f core conftest.err conftest.$ac_objext \
12355 conftest$ac_exeext conftest.$ac_ext
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
12358 $as_echo_n "checking for librt... " >&6; }
12360 # Check whether --with-librt was given.
12361 if test "${with_librt+set}" = set; then :
12362 withval=$with_librt; have_librt="$withval"
12367 if test "$have_librt" = "yes"; then
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12369 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12370 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
12371 $as_echo_n "(cached) " >&6
12373 ac_check_lib_save_LIBS=$LIBS
12375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376 /* end confdefs.h. */
12378 /* Override any GCC internal prototype to avoid an error.
12379 Use char because int might match the return type of a GCC
12380 builtin and then its argument prototype would still apply. */
12384 char clock_gettime ();
12388 return clock_gettime ();
12393 if ac_fn_c_try_link "$LINENO"; then :
12394 ac_cv_lib_rt_clock_gettime=yes
12396 ac_cv_lib_rt_clock_gettime=no
12398 rm -f core conftest.err conftest.$ac_objext \
12399 conftest$ac_exeext conftest.$ac_ext
12400 LIBS=$ac_check_lib_save_LIBS
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12403 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12404 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
12408 if test "$HAVE_LIBRT" = "yes" ; then
12409 ALSA_DEPLIBS="$ALSA_DEPLIBS -lrt"
12411 $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
12414 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; }
12424 for ac_header in wordexp.h endian.h sys/endian.h
12426 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12427 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12428 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12429 cat >>confdefs.h <<_ACEOF
12430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resmgr support" >&5
12439 $as_echo_n "checking for resmgr support... " >&6; }
12440 # Check whether --enable-resmgr was given.
12441 if test "${enable_resmgr+set}" = set; then :
12442 enableval=$enable_resmgr; resmgr="$enableval"
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $resmgr" >&5
12448 $as_echo "$resmgr" >&6; }
12449 if test "$resmgr" = "yes"; then
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rsm_open_device in -lresmgr" >&5
12451 $as_echo_n "checking for rsm_open_device in -lresmgr... " >&6; }
12452 if ${ac_cv_lib_resmgr_rsm_open_device+:} false; then :
12453 $as_echo_n "(cached) " >&6
12455 ac_check_lib_save_LIBS=$LIBS
12456 LIBS="-lresmgr $LIBS"
12457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458 /* end confdefs.h. */
12460 /* Override any GCC internal prototype to avoid an error.
12461 Use char because int might match the return type of a GCC
12462 builtin and then its argument prototype would still apply. */
12466 char rsm_open_device ();
12470 return rsm_open_device ();
12475 if ac_fn_c_try_link "$LINENO"; then :
12476 ac_cv_lib_resmgr_rsm_open_device=yes
12478 ac_cv_lib_resmgr_rsm_open_device=no
12480 rm -f core conftest.err conftest.$ac_objext \
12481 conftest$ac_exeext conftest.$ac_ext
12482 LIBS=$ac_check_lib_save_LIBS
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resmgr_rsm_open_device" >&5
12485 $as_echo "$ac_cv_lib_resmgr_rsm_open_device" >&6; }
12486 if test "x$ac_cv_lib_resmgr_rsm_open_device" = xyes; then :
12487 cat >>confdefs.h <<_ACEOF
12488 #define HAVE_LIBRESMGR 1
12491 LIBS="-lresmgr $LIBS"
12494 as_fn_error $? "Cannot find libresmgr" "$LINENO" 5
12498 $as_echo "#define SUPPORT_RESMGR \"1\"" >>confdefs.h
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aload* support" >&5
12503 $as_echo_n "checking for aload* support... " >&6; }
12504 # Check whether --enable-aload was given.
12505 if test "${enable_aload+set}" = set; then :
12506 enableval=$enable_aload; aload="$enableval"
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aload" >&5
12512 $as_echo "$aload" >&6; }
12513 if test "$aload" = "yes"; then
12515 $as_echo "#define SUPPORT_ALOAD \"1\"" >>confdefs.h
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA device file directory" >&5
12520 $as_echo_n "checking for ALSA device file directory... " >&6; }
12522 # Check whether --with-alsa-devdir was given.
12523 if test "${with_alsa_devdir+set}" = set; then :
12524 withval=$with_alsa_devdir; alsa_dev_dir="$withval"
12526 alsa_dev_dir="/dev/snd"
12529 if echo "$alsa_dev_dir" | grep -v '/$' > /dev/null; then
12530 alsa_dev_dir="$alsa_dev_dir/"
12533 cat >>confdefs.h <<_ACEOF
12534 #define ALSA_DEVICE_DIRECTORY "$alsa_dev_dir"
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $alsa_dev_dir" >&5
12538 $as_echo "$alsa_dev_dir" >&6; }
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aload* device file directory" >&5
12541 $as_echo_n "checking for aload* device file directory... " >&6; }
12543 # Check whether --with-aload-devdir was given.
12544 if test "${with_aload_devdir+set}" = set; then :
12545 withval=$with_aload_devdir; aload_dev_dir="$withval"
12547 aload_dev_dir="/dev"
12550 if echo "$aload_dev_dir" | grep -v '/$' > /dev/null; then
12551 aload_dev_dir="$aload_dev_dir/"
12554 cat >>confdefs.h <<_ACEOF
12555 #define ALOAD_DEVICE_DIRECTORY "$aload_dev_dir"
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aload_dev_dir" >&5
12559 $as_echo "$aload_dev_dir" >&6; }
12561 # Check whether --enable-mixer was given.
12562 if test "${enable_mixer+set}" = set; then :
12563 enableval=$enable_mixer; build_mixer="$enableval"
12568 # Check whether --enable-pcm was given.
12569 if test "${enable_pcm+set}" = set; then :
12570 enableval=$enable_pcm; build_pcm="$enableval"
12575 # Check whether --enable-rawmidi was given.
12576 if test "${enable_rawmidi+set}" = set; then :
12577 enableval=$enable_rawmidi; build_rawmidi="$enableval"
12579 build_rawmidi="yes"
12582 # Check whether --enable-hwdep was given.
12583 if test "${enable_hwdep+set}" = set; then :
12584 enableval=$enable_hwdep; build_hwdep="$enableval"
12589 # Check whether --enable-seq was given.
12590 if test "${enable_seq+set}" = set; then :
12591 enableval=$enable_seq; build_seq="$enableval"
12596 # Check whether --enable-ucm was given.
12597 if test "${enable_ucm+set}" = set; then :
12598 enableval=$enable_ucm; build_ucm="$enableval"
12603 # Check whether --enable-alisp was given.
12604 if test "${enable_alisp+set}" = set; then :
12605 enableval=$enable_alisp; build_alisp="$enableval"
12610 test "$softfloat" = "yes" && build_alisp="no"
12611 # Check whether --enable-old-symbols was given.
12612 if test "${enable_old_symbols+set}" = set; then :
12613 enableval=$enable_old_symbols; keep_old_symbols="$enableval"
12615 keep_old_symbols="yes"
12618 if test x$keep_old_symbols = xyes; then
12619 KEEP_OLD_SYMBOLS_TRUE=
12620 KEEP_OLD_SYMBOLS_FALSE='#'
12622 KEEP_OLD_SYMBOLS_TRUE='#'
12623 KEEP_OLD_SYMBOLS_FALSE=
12627 # Check whether --enable-python was given.
12628 if test "${enable_python+set}" = set; then :
12629 enableval=$enable_python; build_python="$enableval"
12636 if test "$build_python" = "yes"; then
12638 # Check whether --with-pythonlibs was given.
12639 if test "${with_pythonlibs+set}" = set; then :
12640 withval=$with_pythonlibs; pythonlibs="$withval"
12642 pythonlibs=`python-config --libs`
12646 # Check whether --with-pythonincludes was given.
12647 if test "${with_pythonincludes+set}" = set; then :
12648 withval=$with_pythonincludes; pythonincludes="$withval"
12650 pythonincludes=`python-config --includes`
12653 if test -z "$pythonlibs"; then
12654 echo "Unable to determine python libraries! Probably python-config is not"
12655 echo "available on this system. Please, use --with-pythonlibs and"
12656 echo "--with-pythonincludes options. Python components are disabled in this build."
12659 PYTHON_LIBS="$pythonlibs"
12660 PYTHON_INCLUDES="$pythonincludes"
12666 if test x$build_mixer = xyes; then
12668 BUILD_MIXER_FALSE='#'
12670 BUILD_MIXER_TRUE='#'
12674 if test x$build_pcm = xyes; then
12676 BUILD_PCM_FALSE='#'
12682 if test x$build_rawmidi = xyes; then
12683 BUILD_RAWMIDI_TRUE=
12684 BUILD_RAWMIDI_FALSE='#'
12686 BUILD_RAWMIDI_TRUE='#'
12687 BUILD_RAWMIDI_FALSE=
12690 if test x$build_hwdep = xyes; then
12692 BUILD_HWDEP_FALSE='#'
12694 BUILD_HWDEP_TRUE='#'
12698 if test x$build_seq = xyes; then
12700 BUILD_SEQ_FALSE='#'
12706 if test x$build_ucm = xyes; then
12708 BUILD_UCM_FALSE='#'
12714 if test x$build_alisp = xyes; then
12716 BUILD_ALISP_FALSE='#'
12718 BUILD_ALISP_TRUE='#'
12722 if test x$build_python = xyes; then
12724 BUILD_PYTHON_FALSE='#'
12726 BUILD_PYTHON_TRUE='#'
12727 BUILD_PYTHON_FALSE=
12731 if test "$build_mixer" = "yes"; then
12733 $as_echo "#define BUILD_MIXER \"1\"" >>confdefs.h
12736 if test "$build_pcm" = "yes"; then
12738 $as_echo "#define BUILD_PCM \"1\"" >>confdefs.h
12741 if test "$build_rawmidi" = "yes"; then
12743 $as_echo "#define BUILD_RAWMIDI \"1\"" >>confdefs.h
12746 if test "$build_hwdep" = "yes"; then
12748 $as_echo "#define BUILD_HWDEP \"1\"" >>confdefs.h
12751 if test "$build_seq" = "yes"; then
12753 $as_echo "#define BUILD_SEQ \"1\"" >>confdefs.h
12756 if test "$build_ucm" = "yes"; then
12758 $as_echo "#define BUILD_UCM \"1\"" >>confdefs.h
12763 if test "$build_pcm" = "yes"; then
12765 # Check whether --with-pcm-plugins was given.
12766 if test "${with_pcm_plugins+set}" = set; then :
12767 withval=$with_pcm_plugins; pcm_plugins="$withval"
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC supports builtin atomic intrinsics" >&5
12778 $as_echo_n "checking whether GCC supports builtin atomic intrinsics... " >&6; }
12779 if test -z "$gcc_have_atomics"; then
12780 gcc_have_atomics=no
12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 /* end confdefs.h. */
12788 __atomic_load_n(&i, __ATOMIC_SEQ_CST);
12789 __atomic_add_fetch(&i, 0, __ATOMIC_SEQ_CST);
12795 if ac_fn_c_try_link "$LINENO"; then :
12796 gcc_have_atomics=yes
12798 gcc_have_atomics=no
12800 rm -f core conftest.err conftest.$ac_objext \
12801 conftest$ac_exeext conftest.$ac_ext
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_have_atomics" >&5
12804 $as_echo "$gcc_have_atomics" >&6; }
12806 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"
12808 build_pcm_plugin="no"
12809 for t in $PCM_PLUGIN_LIST; do
12810 eval build_pcm_$t="no"
12813 pcm_plugins=`echo $pcm_plugins | sed 's/,/ /g'`
12814 for p in $pcm_plugins; do
12815 for t in $PCM_PLUGIN_LIST; do
12816 if test "$p" = "$t" -o "$p" = "all"; then
12817 eval build_pcm_$t="yes"
12818 build_pcm_plugin="yes"
12823 if test "$build_pcm_plug" = "yes"; then
12824 build_pcm_linear="yes"
12825 build_pcm_copy="yes"
12828 if test "$build_pcm_ioplug" = "yes"; then
12829 build_pcm_extplug="yes"
12832 if test "$HAVE_LIBDL" != "yes"; then
12833 build_pcm_meter="no"
12834 build_pcm_ladspa="no"
12835 build_pcm_pcm_ioplug="no"
12836 build_pcm_pcm_extplug="no"
12839 if test "$HAVE_LIBPTHREAD" != "yes"; then
12840 build_pcm_share="no"
12843 if test "$softfloat" = "yes"; then
12844 build_pcm_lfloat="no"
12845 build_pcm_ladspa="no"
12848 if test "$gcc_have_atomics" != "yes"; then
12849 build_pcm_meter="no"
12852 if test x$build_pcm_plugin = xyes; then
12853 BUILD_PCM_PLUGIN_TRUE=
12854 BUILD_PCM_PLUGIN_FALSE='#'
12856 BUILD_PCM_PLUGIN_TRUE='#'
12857 BUILD_PCM_PLUGIN_FALSE=
12860 if test x$build_pcm_copy = xyes; then
12861 BUILD_PCM_PLUGIN_COPY_TRUE=
12862 BUILD_PCM_PLUGIN_COPY_FALSE='#'
12864 BUILD_PCM_PLUGIN_COPY_TRUE='#'
12865 BUILD_PCM_PLUGIN_COPY_FALSE=
12868 if test x$build_pcm_linear = xyes; then
12869 BUILD_PCM_PLUGIN_LINEAR_TRUE=
12870 BUILD_PCM_PLUGIN_LINEAR_FALSE='#'
12872 BUILD_PCM_PLUGIN_LINEAR_TRUE='#'
12873 BUILD_PCM_PLUGIN_LINEAR_FALSE=
12876 if test x$build_pcm_route = xyes; then
12877 BUILD_PCM_PLUGIN_ROUTE_TRUE=
12878 BUILD_PCM_PLUGIN_ROUTE_FALSE='#'
12880 BUILD_PCM_PLUGIN_ROUTE_TRUE='#'
12881 BUILD_PCM_PLUGIN_ROUTE_FALSE=
12884 if test x$build_pcm_mulaw = xyes; then
12885 BUILD_PCM_PLUGIN_MULAW_TRUE=
12886 BUILD_PCM_PLUGIN_MULAW_FALSE='#'
12888 BUILD_PCM_PLUGIN_MULAW_TRUE='#'
12889 BUILD_PCM_PLUGIN_MULAW_FALSE=
12892 if test x$build_pcm_alaw = xyes; then
12893 BUILD_PCM_PLUGIN_ALAW_TRUE=
12894 BUILD_PCM_PLUGIN_ALAW_FALSE='#'
12896 BUILD_PCM_PLUGIN_ALAW_TRUE='#'
12897 BUILD_PCM_PLUGIN_ALAW_FALSE=
12900 if test x$build_pcm_adpcm = xyes; then
12901 BUILD_PCM_PLUGIN_ADPCM_TRUE=
12902 BUILD_PCM_PLUGIN_ADPCM_FALSE='#'
12904 BUILD_PCM_PLUGIN_ADPCM_TRUE='#'
12905 BUILD_PCM_PLUGIN_ADPCM_FALSE=
12908 if test x$build_pcm_rate = xyes; then
12909 BUILD_PCM_PLUGIN_RATE_TRUE=
12910 BUILD_PCM_PLUGIN_RATE_FALSE='#'
12912 BUILD_PCM_PLUGIN_RATE_TRUE='#'
12913 BUILD_PCM_PLUGIN_RATE_FALSE=
12916 if test x$build_pcm_plug = xyes; then
12917 BUILD_PCM_PLUGIN_PLUG_TRUE=
12918 BUILD_PCM_PLUGIN_PLUG_FALSE='#'
12920 BUILD_PCM_PLUGIN_PLUG_TRUE='#'
12921 BUILD_PCM_PLUGIN_PLUG_FALSE=
12924 if test x$build_pcm_multi = xyes; then
12925 BUILD_PCM_PLUGIN_MULTI_TRUE=
12926 BUILD_PCM_PLUGIN_MULTI_FALSE='#'
12928 BUILD_PCM_PLUGIN_MULTI_TRUE='#'
12929 BUILD_PCM_PLUGIN_MULTI_FALSE=
12932 if test x$build_pcm_shm = xyes; then
12933 BUILD_PCM_PLUGIN_SHM_TRUE=
12934 BUILD_PCM_PLUGIN_SHM_FALSE='#'
12936 BUILD_PCM_PLUGIN_SHM_TRUE='#'
12937 BUILD_PCM_PLUGIN_SHM_FALSE=
12940 if test x$build_pcm_file = xyes; then
12941 BUILD_PCM_PLUGIN_FILE_TRUE=
12942 BUILD_PCM_PLUGIN_FILE_FALSE='#'
12944 BUILD_PCM_PLUGIN_FILE_TRUE='#'
12945 BUILD_PCM_PLUGIN_FILE_FALSE=
12948 if test x$build_pcm_null = xyes; then
12949 BUILD_PCM_PLUGIN_NULL_TRUE=
12950 BUILD_PCM_PLUGIN_NULL_FALSE='#'
12952 BUILD_PCM_PLUGIN_NULL_TRUE='#'
12953 BUILD_PCM_PLUGIN_NULL_FALSE=
12956 if test x$build_pcm_empty = xyes; then
12957 BUILD_PCM_PLUGIN_EMPTY_TRUE=
12958 BUILD_PCM_PLUGIN_EMPTY_FALSE='#'
12960 BUILD_PCM_PLUGIN_EMPTY_TRUE='#'
12961 BUILD_PCM_PLUGIN_EMPTY_FALSE=
12964 if test x$build_pcm_share = xyes; then
12965 BUILD_PCM_PLUGIN_SHARE_TRUE=
12966 BUILD_PCM_PLUGIN_SHARE_FALSE='#'
12968 BUILD_PCM_PLUGIN_SHARE_TRUE='#'
12969 BUILD_PCM_PLUGIN_SHARE_FALSE=
12972 if test x$build_pcm_meter = xyes; then
12973 BUILD_PCM_PLUGIN_METER_TRUE=
12974 BUILD_PCM_PLUGIN_METER_FALSE='#'
12976 BUILD_PCM_PLUGIN_METER_TRUE='#'
12977 BUILD_PCM_PLUGIN_METER_FALSE=
12980 if test x$build_pcm_hooks = xyes; then
12981 BUILD_PCM_PLUGIN_HOOKS_TRUE=
12982 BUILD_PCM_PLUGIN_HOOKS_FALSE='#'
12984 BUILD_PCM_PLUGIN_HOOKS_TRUE='#'
12985 BUILD_PCM_PLUGIN_HOOKS_FALSE=
12988 if test x$build_pcm_lfloat = xyes; then
12989 BUILD_PCM_PLUGIN_LFLOAT_TRUE=
12990 BUILD_PCM_PLUGIN_LFLOAT_FALSE='#'
12992 BUILD_PCM_PLUGIN_LFLOAT_TRUE='#'
12993 BUILD_PCM_PLUGIN_LFLOAT_FALSE=
12996 if test x$build_pcm_ladspa = xyes; then
12997 BUILD_PCM_PLUGIN_LADSPA_TRUE=
12998 BUILD_PCM_PLUGIN_LADSPA_FALSE='#'
13000 BUILD_PCM_PLUGIN_LADSPA_TRUE='#'
13001 BUILD_PCM_PLUGIN_LADSPA_FALSE=
13004 if test x$build_pcm_dmix = xyes; then
13005 BUILD_PCM_PLUGIN_DMIX_TRUE=
13006 BUILD_PCM_PLUGIN_DMIX_FALSE='#'
13008 BUILD_PCM_PLUGIN_DMIX_TRUE='#'
13009 BUILD_PCM_PLUGIN_DMIX_FALSE=
13012 if test x$build_pcm_dshare = xyes; then
13013 BUILD_PCM_PLUGIN_DSHARE_TRUE=
13014 BUILD_PCM_PLUGIN_DSHARE_FALSE='#'
13016 BUILD_PCM_PLUGIN_DSHARE_TRUE='#'
13017 BUILD_PCM_PLUGIN_DSHARE_FALSE=
13020 if test x$build_pcm_dsnoop = xyes; then
13021 BUILD_PCM_PLUGIN_DSNOOP_TRUE=
13022 BUILD_PCM_PLUGIN_DSNOOP_FALSE='#'
13024 BUILD_PCM_PLUGIN_DSNOOP_TRUE='#'
13025 BUILD_PCM_PLUGIN_DSNOOP_FALSE=
13028 if test x$build_pcm_asym = xyes; then
13029 BUILD_PCM_PLUGIN_ASYM_TRUE=
13030 BUILD_PCM_PLUGIN_ASYM_FALSE='#'
13032 BUILD_PCM_PLUGIN_ASYM_TRUE='#'
13033 BUILD_PCM_PLUGIN_ASYM_FALSE=
13036 if test x$build_pcm_iec958 = xyes; then
13037 BUILD_PCM_PLUGIN_IEC958_TRUE=
13038 BUILD_PCM_PLUGIN_IEC958_FALSE='#'
13040 BUILD_PCM_PLUGIN_IEC958_TRUE='#'
13041 BUILD_PCM_PLUGIN_IEC958_FALSE=
13044 if test x$build_pcm_softvol = xyes; then
13045 BUILD_PCM_PLUGIN_SOFTVOL_TRUE=
13046 BUILD_PCM_PLUGIN_SOFTVOL_FALSE='#'
13048 BUILD_PCM_PLUGIN_SOFTVOL_TRUE='#'
13049 BUILD_PCM_PLUGIN_SOFTVOL_FALSE=
13052 if test x$build_pcm_extplug = xyes; then
13053 BUILD_PCM_PLUGIN_EXTPLUG_TRUE=
13054 BUILD_PCM_PLUGIN_EXTPLUG_FALSE='#'
13056 BUILD_PCM_PLUGIN_EXTPLUG_TRUE='#'
13057 BUILD_PCM_PLUGIN_EXTPLUG_FALSE=
13060 if test x$build_pcm_ioplug = xyes; then
13061 BUILD_PCM_PLUGIN_IOPLUG_TRUE=
13062 BUILD_PCM_PLUGIN_IOPLUG_FALSE='#'
13064 BUILD_PCM_PLUGIN_IOPLUG_TRUE='#'
13065 BUILD_PCM_PLUGIN_IOPLUG_FALSE=
13068 if test x$build_pcm_mmap_emul = xyes; then
13069 BUILD_PCM_PLUGIN_MMAP_EMUL_TRUE=
13070 BUILD_PCM_PLUGIN_MMAP_EMUL_FALSE='#'
13072 BUILD_PCM_PLUGIN_MMAP_EMUL_TRUE='#'
13073 BUILD_PCM_PLUGIN_MMAP_EMUL_FALSE=
13077 if test "$build_pcm_rate" = "yes"; then
13079 $as_echo "#define BUILD_PCM_PLUGIN_RATE \"1\"" >>confdefs.h
13082 if test "$build_pcm_route" = "yes"; then
13084 $as_echo "#define BUILD_PCM_PLUGIN_ROUTE \"1\"" >>confdefs.h
13087 if test "$build_pcm_lfloat" = "yes"; then
13089 $as_echo "#define BUILD_PCM_PLUGIN_LFLOAT \"1\"" >>confdefs.h
13092 if test "$build_pcm_adpcm" = "yes"; then
13094 $as_echo "#define BUILD_PCM_PLUGIN_ADPCM \"1\"" >>confdefs.h
13097 if test "$build_pcm_mulaw" = "yes"; then
13099 $as_echo "#define BUILD_PCM_PLUGIN_MULAW \"1\"" >>confdefs.h
13102 if test "$build_pcm_alaw" = "yes"; then
13104 $as_echo "#define BUILD_PCM_PLUGIN_ALAW \"1\"" >>confdefs.h
13107 if test "$build_pcm_mmap_emul" = "yes"; then
13109 $as_echo "#define BUILD_PCM_PLUGIN_MMAP_EMUL \"1\"" >>confdefs.h
13114 rm -f "$srcdir"/src/pcm/pcm_symbols_list.c
13115 touch "$srcdir"/src/pcm/pcm_symbols_list.c
13116 for t in $PCM_PLUGIN_LIST; do
13117 if eval test \$build_pcm_$t = yes; then
13118 echo \&_snd_module_pcm_$t, >> "$srcdir"/src/pcm/pcm_symbols_list.c
13124 # Check whether --with-ctl-plugins was given.
13125 if test "${with_ctl_plugins+set}" = set; then :
13126 withval=$with_ctl_plugins; ctl_plugins="$withval"
13132 CTL_PLUGIN_LIST="shm ext"
13134 build_ctl_plugin="no"
13135 for t in $CTL_PLUGIN_LIST; do
13136 eval build_ctl_$t="no"
13139 ctl_plugins=`echo $ctl_plugins | sed 's/,/ /g'`
13140 for p in $ctl_plugins; do
13141 for t in $CTL_PLUGIN_LIST; do
13142 if test "$p" = "$t" -o "$p" = "all"; then
13143 eval build_ctl_$t="yes"
13144 build_ctl_plugin="yes"
13149 if test x$build_ctl_plugin = xyes; then
13150 BUILD_CTL_PLUGIN_TRUE=
13151 BUILD_CTL_PLUGIN_FALSE='#'
13153 BUILD_CTL_PLUGIN_TRUE='#'
13154 BUILD_CTL_PLUGIN_FALSE=
13157 if test x$build_ctl_shm = xyes; then
13158 BUILD_CTL_PLUGIN_SHM_TRUE=
13159 BUILD_CTL_PLUGIN_SHM_FALSE='#'
13161 BUILD_CTL_PLUGIN_SHM_TRUE='#'
13162 BUILD_CTL_PLUGIN_SHM_FALSE=
13165 if test x$build_ctl_ext = xyes; then
13166 BUILD_CTL_PLUGIN_EXT_TRUE=
13167 BUILD_CTL_PLUGIN_EXT_FALSE='#'
13169 BUILD_CTL_PLUGIN_EXT_TRUE='#'
13170 BUILD_CTL_PLUGIN_EXT_FALSE=
13174 rm -f "$srcdir"/src/control/ctl_symbols_list.c
13175 touch "$srcdir"/src/control/ctl_symbols_list.c
13176 for t in $CTL_PLUGIN_LIST; do
13177 if eval test \$build_ctl_$t = yes; then
13178 echo \&_snd_module_control_$t, >> "$srcdir"/src/control/ctl_symbols_list.c
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for max number of cards" >&5
13183 $as_echo_n "checking for max number of cards... " >&6; }
13185 # Check whether --with-max-cards was given.
13186 if test "${with_max_cards+set}" = set; then :
13187 withval=$with_max_cards; max_cards="$withval"
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $max_cards" >&5
13193 $as_echo "$max_cards" >&6; }
13195 if test "$max_cards" -lt 1; then
13196 as_fn_error $? "Invalid max cards $max_cards" "$LINENO" 5
13197 elif test "$max_cards" -gt 256; then
13198 as_fn_error $? "Invalid max cards $max_cards" "$LINENO" 5
13201 cat >>confdefs.h <<_ACEOF
13202 #define SND_MAX_CARDS $max_cards
13206 if test ! -L "$srcdir"/include/alsa ; then
13207 echo "Making a symlink include/alsa"
13208 rm -f "$srcdir"/include/alsa
13209 ln -sf . "$srcdir"/include/alsa
13212 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/alisp/Makefile src/conf/Makefile src/conf/alsa.conf.d/Makefile src/conf/cards/Makefile src/conf/pcm/Makefile src/conf/ucm/Makefile src/conf/ucm/DAISY-I2S/Makefile src/conf/ucm/PandaBoard/Makefile src/conf/ucm/PandaBoardES/Makefile src/conf/ucm/SDP4430/Makefile src/conf/ucm/tegraalc5632/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"
13214 cat >confcache <<\_ACEOF
13215 # This file is a shell script that caches the results of configure
13216 # tests run on this system so they can be shared between configure
13217 # scripts and configure runs, see configure's option --config-cache.
13218 # It is not useful on other systems. If it contains results you don't
13219 # want to keep, you may remove or edit it.
13221 # config.status only pays attention to the cache file if you give it
13222 # the --recheck option to rerun configure.
13224 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13225 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13226 # following values.
13230 # The following way of writing the cache mishandles newlines in values,
13231 # but we know of no workaround that is simple, portable, and efficient.
13232 # So, we kill variables containing newlines.
13233 # Ultrix sh set writes to stderr and can't be redirected directly,
13234 # and sets the high bit in the cache file unless we assign to the vars.
13236 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13237 eval ac_val=\$$ac_var
13241 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13242 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13245 _ | IFS | as_nl) ;; #(
13246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13247 *) { eval $ac_var=; unset $ac_var;} ;;
13253 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13254 *${as_nl}ac_space=\ *)
13255 # `set' does not quote correctly, so add quotes: double-quote
13256 # substitution turns \\\\ into \\, and sed turns \\ into \.
13259 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13262 # `set' quotes correctly as required by POSIX, so do not add quotes.
13263 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13272 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13274 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13276 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13277 if test -w "$cache_file"; then
13278 if test "x$cache_file" != "x/dev/null"; then
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13280 $as_echo "$as_me: updating cache $cache_file" >&6;}
13281 if test ! -f "$cache_file" || test -h "$cache_file"; then
13282 cat confcache >"$cache_file"
13284 case $cache_file in #(
13286 mv -f confcache "$cache_file"$$ &&
13287 mv -f "$cache_file"$$ "$cache_file" ;; #(
13289 mv -f confcache "$cache_file" ;;
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13295 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13300 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13301 # Let make expand exec_prefix.
13302 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13304 DEFS=-DHAVE_CONFIG_H
13309 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13310 # 1. Remove the extension, and $U if already installed.
13311 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13312 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13313 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13314 # will be set to the directory where LIBOBJS objects are built.
13315 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13316 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13318 LIBOBJS=$ac_libobjs
13320 LTLIBOBJS=$ac_ltlibobjs
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13324 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13325 if test -n "$am_sleep_pid"; then
13326 # Hide warnings about reused PIDs.
13327 wait $am_sleep_pid 2>/dev/null
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13330 $as_echo "done" >&6; }
13331 if test -n "$EXEEXT"; then
13333 am__EXEEXT_FALSE='#'
13335 am__EXEEXT_TRUE='#'
13339 if test -z "${INSTALL_M4_TRUE}" && test -z "${INSTALL_M4_FALSE}"; then
13340 as_fn_error $? "conditional \"INSTALL_M4\" was never defined.
13341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13343 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13344 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13347 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13348 as_fn_error $? "conditional \"AMDEP\" was never defined.
13349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13351 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13352 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13355 if test -z "${VERSIONED_SYMBOLS_TRUE}" && test -z "${VERSIONED_SYMBOLS_FALSE}"; then
13356 as_fn_error $? "conditional \"VERSIONED_SYMBOLS\" was never defined.
13357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13359 if test -z "${SYMBOLIC_FUNCTIONS_TRUE}" && test -z "${SYMBOLIC_FUNCTIONS_FALSE}"; then
13360 as_fn_error $? "conditional \"SYMBOLIC_FUNCTIONS\" was never defined.
13361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13363 if test -z "${BUILD_MODULES_TRUE}" && test -z "${BUILD_MODULES_FALSE}"; then
13364 as_fn_error $? "conditional \"BUILD_MODULES\" was never defined.
13365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13367 if test -z "${KEEP_OLD_SYMBOLS_TRUE}" && test -z "${KEEP_OLD_SYMBOLS_FALSE}"; then
13368 as_fn_error $? "conditional \"KEEP_OLD_SYMBOLS\" was never defined.
13369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13371 if test -z "${BUILD_MIXER_TRUE}" && test -z "${BUILD_MIXER_FALSE}"; then
13372 as_fn_error $? "conditional \"BUILD_MIXER\" was never defined.
13373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13375 if test -z "${BUILD_PCM_TRUE}" && test -z "${BUILD_PCM_FALSE}"; then
13376 as_fn_error $? "conditional \"BUILD_PCM\" was never defined.
13377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13379 if test -z "${BUILD_RAWMIDI_TRUE}" && test -z "${BUILD_RAWMIDI_FALSE}"; then
13380 as_fn_error $? "conditional \"BUILD_RAWMIDI\" was never defined.
13381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13383 if test -z "${BUILD_HWDEP_TRUE}" && test -z "${BUILD_HWDEP_FALSE}"; then
13384 as_fn_error $? "conditional \"BUILD_HWDEP\" was never defined.
13385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13387 if test -z "${BUILD_SEQ_TRUE}" && test -z "${BUILD_SEQ_FALSE}"; then
13388 as_fn_error $? "conditional \"BUILD_SEQ\" was never defined.
13389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13391 if test -z "${BUILD_UCM_TRUE}" && test -z "${BUILD_UCM_FALSE}"; then
13392 as_fn_error $? "conditional \"BUILD_UCM\" was never defined.
13393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13395 if test -z "${BUILD_ALISP_TRUE}" && test -z "${BUILD_ALISP_FALSE}"; then
13396 as_fn_error $? "conditional \"BUILD_ALISP\" was never defined.
13397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13399 if test -z "${BUILD_PYTHON_TRUE}" && test -z "${BUILD_PYTHON_FALSE}"; then
13400 as_fn_error $? "conditional \"BUILD_PYTHON\" was never defined.
13401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13403 if test -z "${BUILD_PCM_PLUGIN_TRUE}" && test -z "${BUILD_PCM_PLUGIN_FALSE}"; then
13404 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN\" was never defined.
13405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13407 if test -z "${BUILD_PCM_PLUGIN_COPY_TRUE}" && test -z "${BUILD_PCM_PLUGIN_COPY_FALSE}"; then
13408 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_COPY\" was never defined.
13409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13411 if test -z "${BUILD_PCM_PLUGIN_LINEAR_TRUE}" && test -z "${BUILD_PCM_PLUGIN_LINEAR_FALSE}"; then
13412 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_LINEAR\" was never defined.
13413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13415 if test -z "${BUILD_PCM_PLUGIN_ROUTE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_ROUTE_FALSE}"; then
13416 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_ROUTE\" was never defined.
13417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13419 if test -z "${BUILD_PCM_PLUGIN_MULAW_TRUE}" && test -z "${BUILD_PCM_PLUGIN_MULAW_FALSE}"; then
13420 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_MULAW\" was never defined.
13421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13423 if test -z "${BUILD_PCM_PLUGIN_ALAW_TRUE}" && test -z "${BUILD_PCM_PLUGIN_ALAW_FALSE}"; then
13424 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_ALAW\" was never defined.
13425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13427 if test -z "${BUILD_PCM_PLUGIN_ADPCM_TRUE}" && test -z "${BUILD_PCM_PLUGIN_ADPCM_FALSE}"; then
13428 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_ADPCM\" was never defined.
13429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13431 if test -z "${BUILD_PCM_PLUGIN_RATE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_RATE_FALSE}"; then
13432 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_RATE\" was never defined.
13433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13435 if test -z "${BUILD_PCM_PLUGIN_PLUG_TRUE}" && test -z "${BUILD_PCM_PLUGIN_PLUG_FALSE}"; then
13436 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_PLUG\" was never defined.
13437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13439 if test -z "${BUILD_PCM_PLUGIN_MULTI_TRUE}" && test -z "${BUILD_PCM_PLUGIN_MULTI_FALSE}"; then
13440 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_MULTI\" was never defined.
13441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13443 if test -z "${BUILD_PCM_PLUGIN_SHM_TRUE}" && test -z "${BUILD_PCM_PLUGIN_SHM_FALSE}"; then
13444 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_SHM\" was never defined.
13445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13447 if test -z "${BUILD_PCM_PLUGIN_FILE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_FILE_FALSE}"; then
13448 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_FILE\" was never defined.
13449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13451 if test -z "${BUILD_PCM_PLUGIN_NULL_TRUE}" && test -z "${BUILD_PCM_PLUGIN_NULL_FALSE}"; then
13452 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_NULL\" was never defined.
13453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13455 if test -z "${BUILD_PCM_PLUGIN_EMPTY_TRUE}" && test -z "${BUILD_PCM_PLUGIN_EMPTY_FALSE}"; then
13456 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_EMPTY\" was never defined.
13457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13459 if test -z "${BUILD_PCM_PLUGIN_SHARE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_SHARE_FALSE}"; then
13460 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_SHARE\" was never defined.
13461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13463 if test -z "${BUILD_PCM_PLUGIN_METER_TRUE}" && test -z "${BUILD_PCM_PLUGIN_METER_FALSE}"; then
13464 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_METER\" was never defined.
13465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13467 if test -z "${BUILD_PCM_PLUGIN_HOOKS_TRUE}" && test -z "${BUILD_PCM_PLUGIN_HOOKS_FALSE}"; then
13468 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_HOOKS\" was never defined.
13469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13471 if test -z "${BUILD_PCM_PLUGIN_LFLOAT_TRUE}" && test -z "${BUILD_PCM_PLUGIN_LFLOAT_FALSE}"; then
13472 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_LFLOAT\" was never defined.
13473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13475 if test -z "${BUILD_PCM_PLUGIN_LADSPA_TRUE}" && test -z "${BUILD_PCM_PLUGIN_LADSPA_FALSE}"; then
13476 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_LADSPA\" was never defined.
13477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13479 if test -z "${BUILD_PCM_PLUGIN_DMIX_TRUE}" && test -z "${BUILD_PCM_PLUGIN_DMIX_FALSE}"; then
13480 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_DMIX\" was never defined.
13481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13483 if test -z "${BUILD_PCM_PLUGIN_DSHARE_TRUE}" && test -z "${BUILD_PCM_PLUGIN_DSHARE_FALSE}"; then
13484 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_DSHARE\" was never defined.
13485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13487 if test -z "${BUILD_PCM_PLUGIN_DSNOOP_TRUE}" && test -z "${BUILD_PCM_PLUGIN_DSNOOP_FALSE}"; then
13488 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_DSNOOP\" was never defined.
13489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13491 if test -z "${BUILD_PCM_PLUGIN_ASYM_TRUE}" && test -z "${BUILD_PCM_PLUGIN_ASYM_FALSE}"; then
13492 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_ASYM\" was never defined.
13493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13495 if test -z "${BUILD_PCM_PLUGIN_IEC958_TRUE}" && test -z "${BUILD_PCM_PLUGIN_IEC958_FALSE}"; then
13496 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_IEC958\" was never defined.
13497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13499 if test -z "${BUILD_PCM_PLUGIN_SOFTVOL_TRUE}" && test -z "${BUILD_PCM_PLUGIN_SOFTVOL_FALSE}"; then
13500 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_SOFTVOL\" was never defined.
13501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13503 if test -z "${BUILD_PCM_PLUGIN_EXTPLUG_TRUE}" && test -z "${BUILD_PCM_PLUGIN_EXTPLUG_FALSE}"; then
13504 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_EXTPLUG\" was never defined.
13505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13507 if test -z "${BUILD_PCM_PLUGIN_IOPLUG_TRUE}" && test -z "${BUILD_PCM_PLUGIN_IOPLUG_FALSE}"; then
13508 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_IOPLUG\" was never defined.
13509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13511 if test -z "${BUILD_PCM_PLUGIN_MMAP_EMUL_TRUE}" && test -z "${BUILD_PCM_PLUGIN_MMAP_EMUL_FALSE}"; then
13512 as_fn_error $? "conditional \"BUILD_PCM_PLUGIN_MMAP_EMUL\" was never defined.
13513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13515 if test -z "${BUILD_CTL_PLUGIN_TRUE}" && test -z "${BUILD_CTL_PLUGIN_FALSE}"; then
13516 as_fn_error $? "conditional \"BUILD_CTL_PLUGIN\" was never defined.
13517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13519 if test -z "${BUILD_CTL_PLUGIN_SHM_TRUE}" && test -z "${BUILD_CTL_PLUGIN_SHM_FALSE}"; then
13520 as_fn_error $? "conditional \"BUILD_CTL_PLUGIN_SHM\" was never defined.
13521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13523 if test -z "${BUILD_CTL_PLUGIN_EXT_TRUE}" && test -z "${BUILD_CTL_PLUGIN_EXT_FALSE}"; then
13524 as_fn_error $? "conditional \"BUILD_CTL_PLUGIN_EXT\" was never defined.
13525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13528 : "${CONFIG_STATUS=./config.status}"
13530 ac_clean_files_save=$ac_clean_files
13531 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13533 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13535 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13537 # Generated by $as_me.
13538 # Run this file to recreate the current configuration.
13539 # Compiler output produced by configure, useful for debugging
13540 # configure, is in config.log if it exists.
13543 ac_cs_recheck=false
13546 SHELL=\${CONFIG_SHELL-$SHELL}
13549 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13550 ## -------------------- ##
13551 ## M4sh Initialization. ##
13552 ## -------------------- ##
13554 # Be more Bourne compatible
13555 DUALCASE=1; export DUALCASE # for MKS sh
13556 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13559 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13560 # is contrary to our usage. Disable this feature.
13561 alias -g '${1+"$@"}'='"$@"'
13562 setopt NO_GLOB_SUBST
13564 case `(set -o) 2>/dev/null` in #(
13576 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13577 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13578 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13579 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13580 # Prefer a ksh shell builtin over an external printf program on Solaris,
13581 # but without wasting forks for bash or zsh.
13582 if test -z "$BASH_VERSION$ZSH_VERSION" \
13583 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13584 as_echo='print -r --'
13585 as_echo_n='print -rn --'
13586 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13587 as_echo='printf %s\n'
13588 as_echo_n='printf %s'
13590 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13591 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13592 as_echo_n='/usr/ucb/echo -n'
13594 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13595 as_echo_n_body='eval
13599 expr "X$arg" : "X\\(.*\\)$as_nl";
13600 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13602 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13604 export as_echo_n_body
13605 as_echo_n='sh -c $as_echo_n_body as_echo'
13607 export as_echo_body
13608 as_echo='sh -c $as_echo_body as_echo'
13611 # The user is always right.
13612 if test "${PATH_SEPARATOR+set}" != set; then
13614 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13615 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13622 # We need space, tab and new line, in precisely that order. Quoting is
13623 # there to prevent editors from complaining about space-tab.
13624 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13625 # splitting by setting IFS to empty value.)
13628 # Find who we are. Look in the path if we contain no directory separator.
13631 *[\\/]* ) as_myself=$0 ;;
13632 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13633 for as_dir in $PATH
13636 test -z "$as_dir" && as_dir=.
13637 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13643 # We did not find ourselves, most probably we were run as `sh COMMAND'
13644 # in which case we are not to be found in the path.
13645 if test "x$as_myself" = x; then
13648 if test ! -f "$as_myself"; then
13649 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13653 # Unset variables that we do not need and which cause bugs (e.g. in
13654 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13655 # suppresses any "Segmentation fault" message there. '((' could
13656 # trigger a bug in pdksh 5.2.14.
13657 for as_var in BASH_ENV ENV MAIL MAILPATH
13658 do eval test x\${$as_var+set} = xset \
13659 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13672 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13675 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13676 # ----------------------------------------
13677 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13678 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13679 # script with STATUS, using 1 if that was 0.
13682 as_status=$1; test $as_status -eq 0 && as_status=1
13684 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13685 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13687 $as_echo "$as_me: error: $2" >&2
13688 as_fn_exit $as_status
13692 # as_fn_set_status STATUS
13693 # -----------------------
13694 # Set $? to STATUS, without forking.
13695 as_fn_set_status ()
13698 } # as_fn_set_status
13700 # as_fn_exit STATUS
13701 # -----------------
13702 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13706 as_fn_set_status $1
13712 # Portably unset VAR.
13715 { eval $1=; unset $1;}
13717 as_unset=as_fn_unset
13718 # as_fn_append VAR VALUE
13719 # ----------------------
13720 # Append the text in VALUE to the end of the definition contained in VAR. Take
13721 # advantage of any shell optimizations that allow amortized linear growth over
13722 # repeated appends, instead of the typical quadratic growth present in naive
13724 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13725 eval 'as_fn_append ()
13736 # as_fn_arith ARG...
13737 # ------------------
13738 # Perform arithmetic evaluation on the ARGs, and store the result in the
13739 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13740 # must be portable across $(()) and expr.
13741 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13742 eval 'as_fn_arith ()
13749 as_val=`expr "$@" || test $? -eq 1`
13754 if expr a : '\(a\)' >/dev/null 2>&1 &&
13755 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13761 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13762 as_basename=basename
13767 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13773 as_me=`$as_basename -- "$0" ||
13774 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13775 X"$0" : 'X\(//\)$' \| \
13776 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13778 sed '/^.*\/\([^/][^/]*\)\/*$/{
13792 # Avoid depending upon Character Ranges.
13793 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13794 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13795 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13796 as_cr_digits='0123456789'
13797 as_cr_alnum=$as_cr_Letters$as_cr_digits
13799 ECHO_C= ECHO_N= ECHO_T=
13800 case `echo -n x` in #(((((
13802 case `echo 'xy\c'` in
13803 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13805 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13812 rm -f conf$$ conf$$.exe conf$$.file
13813 if test -d conf$$.dir; then
13814 rm -f conf$$.dir/conf$$.file
13817 mkdir conf$$.dir 2>/dev/null
13819 if (echo >conf$$.file) 2>/dev/null; then
13820 if ln -s conf$$.file conf$$ 2>/dev/null; then
13822 # ... but there are two gotchas:
13823 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13824 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13825 # In both cases, we have to default to `cp -pR'.
13826 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13828 elif ln conf$$.file conf$$ 2>/dev/null; then
13836 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13837 rmdir conf$$.dir 2>/dev/null
13842 # Create "$as_dir" as a directory, including parents if necessary.
13847 -*) as_dir=./$as_dir;;
13849 test -d "$as_dir" || eval $as_mkdir_p || {
13853 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13854 *) as_qdir=$as_dir;;
13856 as_dirs="'$as_qdir' $as_dirs"
13857 as_dir=`$as_dirname -- "$as_dir" ||
13858 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13859 X"$as_dir" : 'X\(//\)[^/]' \| \
13860 X"$as_dir" : 'X\(//\)$' \| \
13861 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13862 $as_echo X"$as_dir" |
13863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13867 /^X\(\/\/\)[^/].*/{
13880 test -d "$as_dir" && break
13882 test -z "$as_dirs" || eval "mkdir $as_dirs"
13883 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13887 if mkdir -p . 2>/dev/null; then
13888 as_mkdir_p='mkdir -p "$as_dir"'
13890 test -d ./-p && rmdir ./-p
13895 # as_fn_executable_p FILE
13896 # -----------------------
13897 # Test if FILE is an executable regular file.
13898 as_fn_executable_p ()
13900 test -f "$1" && test -x "$1"
13901 } # as_fn_executable_p
13902 as_test_x='test -x'
13903 as_executable_p=as_fn_executable_p
13905 # Sed expression to map a string onto a valid CPP name.
13906 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13908 # Sed expression to map a string onto a valid variable name.
13909 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13913 ## ----------------------------------- ##
13914 ## Main body of $CONFIG_STATUS script. ##
13915 ## ----------------------------------- ##
13917 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13920 # Save the log message, to keep $0 and so on meaningful, and to
13921 # report actual input values of CONFIG_FILES etc. instead of their
13922 # values after options handling.
13924 This file was extended by alsa-lib $as_me 1.0.28, which was
13925 generated by GNU Autoconf 2.69. Invocation command line was
13927 CONFIG_FILES = $CONFIG_FILES
13928 CONFIG_HEADERS = $CONFIG_HEADERS
13929 CONFIG_LINKS = $CONFIG_LINKS
13930 CONFIG_COMMANDS = $CONFIG_COMMANDS
13933 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13938 case $ac_config_files in *"
13939 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13942 case $ac_config_headers in *"
13943 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13948 # Files that config.status was made for.
13949 config_files="$ac_config_files"
13950 config_headers="$ac_config_headers"
13951 config_commands="$ac_config_commands"
13955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13957 \`$as_me' instantiates files and other configuration actions
13958 from templates according to the current configuration. Unless the files
13959 and actions are specified as TAGs, all are instantiated by default.
13961 Usage: $0 [OPTION]... [TAG]...
13963 -h, --help print this help, then exit
13964 -V, --version print version number and configuration settings, then exit
13965 --config print configuration, then exit
13966 -q, --quiet, --silent
13967 do not print progress messages
13968 -d, --debug don't remove temporary files
13969 --recheck update $as_me by reconfiguring in the same conditions
13970 --file=FILE[:TEMPLATE]
13971 instantiate the configuration file FILE
13972 --header=FILE[:TEMPLATE]
13973 instantiate the configuration header FILE
13975 Configuration files:
13978 Configuration headers:
13981 Configuration commands:
13984 Report bugs to the package provider."
13987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13988 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13990 alsa-lib config.status 1.0.28
13991 configured by $0, generated by GNU Autoconf 2.69,
13992 with options \\"\$ac_cs_config\\"
13994 Copyright (C) 2012 Free Software Foundation, Inc.
13995 This config.status script is free software; the Free Software Foundation
13996 gives unlimited permission to copy, distribute and modify it."
14003 test -n "\$AWK" || AWK=awk
14006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14007 # The default lists apply if the user does not specify any file.
14013 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14014 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14018 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14030 # Handling of the options.
14031 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14033 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14034 $as_echo "$ac_cs_version"; exit ;;
14035 --config | --confi | --conf | --con | --co | --c )
14036 $as_echo "$ac_cs_config"; exit ;;
14037 --debug | --debu | --deb | --de | --d | -d )
14039 --file | --fil | --fi | --f )
14042 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14043 '') as_fn_error $? "missing file argument" ;;
14045 as_fn_append CONFIG_FILES " '$ac_optarg'"
14046 ac_need_defaults=false;;
14047 --header | --heade | --head | --hea )
14050 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14052 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14053 ac_need_defaults=false;;
14055 # Conflict between --help and --header
14056 as_fn_error $? "ambiguous option: \`$1'
14057 Try \`$0 --help' for more information.";;
14058 --help | --hel | -h )
14059 $as_echo "$ac_cs_usage"; exit ;;
14060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14061 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14064 # This is an error.
14065 -*) as_fn_error $? "unrecognized option: \`$1'
14066 Try \`$0 --help' for more information." ;;
14068 *) as_fn_append ac_config_targets " $1"
14069 ac_need_defaults=false ;;
14075 ac_configure_extra_args=
14077 if $ac_cs_silent; then
14079 ac_configure_extra_args="$ac_configure_extra_args --silent"
14083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14084 if \$ac_cs_recheck; then
14085 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14087 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14088 CONFIG_SHELL='$SHELL'
14089 export CONFIG_SHELL
14094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14098 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14099 ## Running $as_me. ##
14105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14109 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14112 # The HP-UX ksh and POSIX shell print the target directory to stdout
14113 # if CDPATH is set.
14114 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14116 sed_quote_subst='$sed_quote_subst'
14117 double_quote_subst='$double_quote_subst'
14118 delay_variable_subst='$delay_variable_subst'
14119 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14120 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14121 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14122 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14123 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14124 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14125 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14126 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14127 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14128 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14129 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14130 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14131 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14132 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14133 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14134 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14135 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14136 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14137 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14138 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14139 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14140 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14141 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14142 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14143 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14144 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14145 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14146 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14147 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14148 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14149 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14150 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14151 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14152 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14153 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14154 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14155 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14156 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14157 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14158 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14159 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14160 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14161 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14162 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14163 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14164 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14165 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14166 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14167 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14168 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14169 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14170 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14171 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14172 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14173 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14174 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14175 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14176 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14177 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14178 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14179 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14180 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14181 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14182 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14183 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14184 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14185 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14186 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14187 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14188 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14189 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14190 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14191 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14192 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14193 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14194 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14195 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14196 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14197 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14198 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14199 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14200 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14201 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14202 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14203 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14204 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14205 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14206 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14207 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14208 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14209 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14210 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14211 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14212 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14213 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14214 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14215 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14216 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14217 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14218 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14219 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14220 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14221 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14222 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14223 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14224 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14225 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14226 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14227 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14228 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14229 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14230 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14231 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14232 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14233 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14234 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14235 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14236 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14237 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14238 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14239 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14240 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14241 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14242 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14243 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14244 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14245 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14246 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14247 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14248 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14251 LTCFLAGS='$LTCFLAGS'
14252 compiler='$compiler_DEFAULT'
14254 # A function that is used when there is no print builtin or printf.
14255 func_fallback_echo ()
14257 eval 'cat <<_LTECHO_EOF
14262 # Quote evaled strings.
14277 deplibs_check_method \
14282 sharedlib_from_linklib_cmd \
14285 archiver_list_spec \
14291 lt_cv_sys_global_symbol_pipe \
14292 lt_cv_sys_global_symbol_to_cdecl \
14293 lt_cv_sys_global_symbol_to_c_name_address \
14294 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14295 nm_file_list_spec \
14296 lt_prog_compiler_no_builtin_flag \
14297 lt_prog_compiler_pic \
14298 lt_prog_compiler_wl \
14299 lt_prog_compiler_static \
14300 lt_cv_prog_compiler_c_o \
14309 export_dynamic_flag_spec \
14310 whole_archive_flag_spec \
14311 compiler_needs_object \
14313 allow_undefined_flag \
14314 no_undefined_flag \
14315 hardcode_libdir_flag_spec \
14316 hardcode_libdir_separator \
14320 variables_saved_for_relink \
14322 library_names_spec \
14324 install_override_mode \
14328 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14329 *[\\\\\\\`\\"\\\$]*)
14330 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14333 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14338 # Double-quote double-evaled strings.
14339 for var in reload_cmds \
14340 old_postinstall_cmds \
14341 old_postuninstall_cmds \
14343 extract_expsyms_cmds \
14344 old_archive_from_new_cmds \
14345 old_archive_from_expsyms_cmds \
14347 archive_expsym_cmds \
14349 module_expsym_cmds \
14350 export_symbols_cmds \
14354 postuninstall_cmds \
14356 sys_lib_search_path_spec \
14357 sys_lib_dlsearch_path_spec; do
14358 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14359 *[\\\\\\\`\\"\\\$]*)
14360 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14363 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14368 ac_aux_dir='$ac_aux_dir'
14369 xsi_shell='$xsi_shell'
14370 lt_shell_append='$lt_shell_append'
14372 # See if we are running on zsh, and set the options which allow our
14373 # commands through without removal of \ escapes INIT.
14374 if test -n "\${ZSH_VERSION+set}" ; then
14375 setopt NO_GLOB_SUBST
14381 TIMESTAMP='$TIMESTAMP'
14390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14392 # Handling of arguments.
14393 for ac_config_target in $ac_config_targets
14395 case $ac_config_target in
14396 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14397 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14398 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
14399 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14400 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14401 "doc/pictures/Makefile") CONFIG_FILES="$CONFIG_FILES doc/pictures/Makefile" ;;
14402 "doc/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doc/doxygen.cfg" ;;
14403 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14404 "include/sound/Makefile") CONFIG_FILES="$CONFIG_FILES include/sound/Makefile" ;;
14405 "src/Versions") CONFIG_FILES="$CONFIG_FILES src/Versions" ;;
14406 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14407 "src/control/Makefile") CONFIG_FILES="$CONFIG_FILES src/control/Makefile" ;;
14408 "src/mixer/Makefile") CONFIG_FILES="$CONFIG_FILES src/mixer/Makefile" ;;
14409 "src/pcm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pcm/Makefile" ;;
14410 "src/pcm/scopes/Makefile") CONFIG_FILES="$CONFIG_FILES src/pcm/scopes/Makefile" ;;
14411 "src/rawmidi/Makefile") CONFIG_FILES="$CONFIG_FILES src/rawmidi/Makefile" ;;
14412 "src/timer/Makefile") CONFIG_FILES="$CONFIG_FILES src/timer/Makefile" ;;
14413 "src/hwdep/Makefile") CONFIG_FILES="$CONFIG_FILES src/hwdep/Makefile" ;;
14414 "src/seq/Makefile") CONFIG_FILES="$CONFIG_FILES src/seq/Makefile" ;;
14415 "src/ucm/Makefile") CONFIG_FILES="$CONFIG_FILES src/ucm/Makefile" ;;
14416 "src/alisp/Makefile") CONFIG_FILES="$CONFIG_FILES src/alisp/Makefile" ;;
14417 "src/conf/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/Makefile" ;;
14418 "src/conf/alsa.conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/alsa.conf.d/Makefile" ;;
14419 "src/conf/cards/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/cards/Makefile" ;;
14420 "src/conf/pcm/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/pcm/Makefile" ;;
14421 "src/conf/ucm/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/ucm/Makefile" ;;
14422 "src/conf/ucm/DAISY-I2S/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/ucm/DAISY-I2S/Makefile" ;;
14423 "src/conf/ucm/PandaBoard/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/ucm/PandaBoard/Makefile" ;;
14424 "src/conf/ucm/PandaBoardES/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/ucm/PandaBoardES/Makefile" ;;
14425 "src/conf/ucm/SDP4430/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/ucm/SDP4430/Makefile" ;;
14426 "src/conf/ucm/tegraalc5632/Makefile") CONFIG_FILES="$CONFIG_FILES src/conf/ucm/tegraalc5632/Makefile" ;;
14427 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14428 "modules/mixer/Makefile") CONFIG_FILES="$CONFIG_FILES modules/mixer/Makefile" ;;
14429 "modules/mixer/simple/Makefile") CONFIG_FILES="$CONFIG_FILES modules/mixer/simple/Makefile" ;;
14430 "alsalisp/Makefile") CONFIG_FILES="$CONFIG_FILES alsalisp/Makefile" ;;
14431 "aserver/Makefile") CONFIG_FILES="$CONFIG_FILES aserver/Makefile" ;;
14432 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14433 "test/lsb/Makefile") CONFIG_FILES="$CONFIG_FILES test/lsb/Makefile" ;;
14434 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
14435 "utils/alsa-lib.spec") CONFIG_FILES="$CONFIG_FILES utils/alsa-lib.spec" ;;
14436 "utils/alsa.pc") CONFIG_FILES="$CONFIG_FILES utils/alsa.pc" ;;
14438 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14443 # If the user did not use the arguments to specify the items to instantiate,
14444 # then the envvar interface is used. Set only those that are not.
14445 # We use the long form for the default assignment because of an extremely
14446 # bizarre bug on SunOS 4.1.3.
14447 if $ac_need_defaults; then
14448 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14449 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14450 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14453 # Have a temporary directory for convenience. Make it in the build tree
14454 # simply because there is no reason against having it here, and in addition,
14455 # creating and moving files from /tmp can sometimes cause problems.
14456 # Hook for its removal unless debugging.
14457 # Note that there is a small window in which the directory will not be cleaned:
14458 # after its creation but before its name has been assigned to `$tmp'.
14462 trap 'exit_status=$?
14463 : "${ac_tmp:=$tmp}"
14464 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14466 trap 'as_fn_exit 1' 1 2 13 15
14468 # Create a (secure) tmp directory for tmp files.
14471 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14475 tmp=./conf$$-$RANDOM
14476 (umask 077 && mkdir "$tmp")
14477 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14480 # Set up the scripts for CONFIG_FILES section.
14481 # No need to generate them if there are no CONFIG_FILES.
14482 # This happens for instance with `./config.status config.h'.
14483 if test -n "$CONFIG_FILES"; then
14486 ac_cr=`echo X | tr X '\015'`
14487 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14488 # But we know of no other shell where ac_cr would be empty at this
14489 # point, so we can use a bashism as a fallback.
14490 if test "x$ac_cr" = x; then
14491 eval ac_cr=\$\'\\r\'
14493 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14494 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14497 ac_cs_awk_cr=$ac_cr
14500 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14505 echo "cat >conf$$subs.awk <<_ACEOF" &&
14506 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14508 } >conf$$subs.sh ||
14509 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14510 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14512 for ac_last_try in false false false false false :; do
14513 . ./conf$$subs.sh ||
14514 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14516 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14517 if test $ac_delim_n = $ac_delim_num; then
14519 elif $ac_last_try; then
14520 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14522 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14525 rm -f conf$$subs.sh
14527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14528 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14532 s/^/S["/; s/!.*/"]=/
14542 s/\(.\{148\}\)..*/\1/
14544 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14549 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14556 s/\(.\{148\}\)..*/\1/
14558 s/["\\]/\\&/g; s/^/"/; s/$/"/
14562 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14567 ' <conf$$subs.awk | sed '
14572 ' >>$CONFIG_STATUS || ac_write_fail=1
14573 rm -f conf$$subs.awk
14574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14576 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14577 for (key in S) S_is_set[key] = 1
14583 nfields = split(line, field, "@")
14585 len = length(field[1])
14586 for (i = 2; i < nfields; i++) {
14588 keylen = length(key)
14589 if (S_is_set[key]) {
14591 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14592 len += length(value) + length(field[++i])
14603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14604 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14605 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14608 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14609 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14612 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14613 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14614 # trailing colons and then remove the whole line if VPATH becomes empty
14615 # (actually we leave an empty line to preserve line numbers).
14616 if test "x$srcdir" = x.; then
14617 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14636 fi # test -n "$CONFIG_FILES"
14638 # Set up the scripts for CONFIG_HEADERS section.
14639 # No need to generate them if there are no CONFIG_HEADERS.
14640 # This happens for instance with `./config.status Makefile'.
14641 if test -n "$CONFIG_HEADERS"; then
14642 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14646 # Transform confdefs.h into an awk script `defines.awk', embedded as
14647 # here-document in config.status, that substitutes the proper values into
14648 # config.h.in to produce config.h.
14650 # Create a delimiter string that does not exist in confdefs.h, to ease
14651 # handling of long lines.
14653 for ac_last_try in false false :; do
14654 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14655 if test -z "$ac_tt"; then
14657 elif $ac_last_try; then
14658 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14660 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14664 # For the awk script, D is an array of macro values keyed by name,
14665 # likewise P contains macro parameters if any. Preserve backslash
14666 # newline sequences.
14668 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14670 s/.\{148\}/&'"$ac_delim"'/g
14673 s/^[ ]*#[ ]*define[ ][ ]*/ /
14680 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14682 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14686 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14687 D["\1"]=" \3\\\\\\n"\\/p
14689 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14694 s/.\{148\}/&'"$ac_delim"'/g
14699 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14702 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14704 ' <confdefs.h | sed '
14705 s/'"$ac_delim"'/"\\\
14706 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14709 for (key in D) D_is_set[key] = 1
14712 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14714 split(line, arg, " ")
14715 if (arg[1] == "#") {
14719 defundef = substr(arg[1], 2)
14722 split(mac1, mac2, "(") #)
14724 prefix = substr(line, 1, index(line, defundef) - 1)
14725 if (D_is_set[macro]) {
14726 # Preserve the white space surrounding the "#".
14727 print prefix "define", macro P[macro] D[macro]
14730 # Replace #undef with comments. This is necessary, for example,
14731 # in the case of _POSIX_SOURCE, which is predefined and required
14732 # on some systems where configure will not decide to define it.
14733 if (defundef == "undef") {
14734 print "/*", prefix defundef, macro, "*/"
14742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14743 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14744 fi # test -n "$CONFIG_HEADERS"
14747 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14752 :[FHLC]) ac_mode=$ac_tag; continue;;
14754 case $ac_mode$ac_tag in
14756 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14757 :[FH]-) ac_tag=-:-;;
14758 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14775 -) ac_f="$ac_tmp/stdin";;
14776 *) # Look for the file first in the build tree, then in the source tree
14777 # (if the path is not absolute). The absolute path cannot be DOS-style,
14778 # because $ac_f cannot contain `:'.
14782 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14784 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14786 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14787 as_fn_append ac_file_inputs " '$ac_f'"
14790 # Let's still pretend it is `configure' which instantiates (i.e., don't
14791 # use $as_me), people would be surprised to read:
14792 # /* config.h. Generated by config.status. */
14793 configure_input='Generated from '`
14794 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14796 if test x"$ac_file" != x-; then
14797 configure_input="$ac_file. $configure_input"
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14799 $as_echo "$as_me: creating $ac_file" >&6;}
14801 # Neutralize special characters interpreted by sed in replacement strings.
14802 case $configure_input in #(
14803 *\&* | *\|* | *\\* )
14804 ac_sed_conf_input=`$as_echo "$configure_input" |
14805 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14806 *) ac_sed_conf_input=$configure_input;;
14810 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14811 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14816 ac_dir=`$as_dirname -- "$ac_file" ||
14817 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14818 X"$ac_file" : 'X\(//\)[^/]' \| \
14819 X"$ac_file" : 'X\(//\)$' \| \
14820 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14821 $as_echo X"$ac_file" |
14822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14826 /^X\(\/\/\)[^/].*/{
14839 as_dir="$ac_dir"; as_fn_mkdir_p
14843 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14845 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14846 # A ".." for each directory in $ac_dir_suffix.
14847 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14848 case $ac_top_builddir_sub in
14849 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14850 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14853 ac_abs_top_builddir=$ac_pwd
14854 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14855 # for backward compatibility:
14856 ac_top_builddir=$ac_top_build_prefix
14859 .) # We are building in place.
14861 ac_top_srcdir=$ac_top_builddir_sub
14862 ac_abs_top_srcdir=$ac_pwd ;;
14863 [\\/]* | ?:[\\/]* ) # Absolute name.
14864 ac_srcdir=$srcdir$ac_dir_suffix;
14865 ac_top_srcdir=$srcdir
14866 ac_abs_top_srcdir=$srcdir ;;
14867 *) # Relative name.
14868 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14869 ac_top_srcdir=$ac_top_build_prefix$srcdir
14870 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14872 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14882 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14883 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14885 ac_MKDIR_P=$MKDIR_P
14887 [\\/$]* | ?:[\\/]* ) ;;
14888 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14893 # If the template does not know about datarootdir, expand it.
14894 # FIXME: This hack should be removed a few years after 2.60.
14895 ac_datarootdir_hack=; ac_datarootdir_seen=
14906 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14907 *datarootdir*) ac_datarootdir_seen=yes;;
14908 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14910 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14913 ac_datarootdir_hack='
14914 s&@datadir@&$datadir&g
14915 s&@docdir@&$docdir&g
14916 s&@infodir@&$infodir&g
14917 s&@localedir@&$localedir&g
14918 s&@mandir@&$mandir&g
14919 s&\\\${datarootdir}&$datarootdir&g' ;;
14923 # Neutralize VPATH when `$srcdir' = `.'.
14924 # Shell code in configure.ac might set extrasub.
14925 # FIXME: do we really want to maintain this feature?
14926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14927 ac_sed_extra="$ac_vpsub
14930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14932 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14933 s|@configure_input@|$ac_sed_conf_input|;t t
14934 s&@top_builddir@&$ac_top_builddir_sub&;t t
14935 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14936 s&@srcdir@&$ac_srcdir&;t t
14937 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14938 s&@top_srcdir@&$ac_top_srcdir&;t t
14939 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14940 s&@builddir@&$ac_builddir&;t t
14941 s&@abs_builddir@&$ac_abs_builddir&;t t
14942 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14943 s&@INSTALL@&$ac_INSTALL&;t t
14944 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14945 $ac_datarootdir_hack
14947 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14948 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14950 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14951 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14952 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14953 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14955 which seems to be undefined. Please make sure it is defined" >&5
14956 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14957 which seems to be undefined. Please make sure it is defined" >&2;}
14959 rm -f "$ac_tmp/stdin"
14961 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14962 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14964 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14970 if test x"$ac_file" != x-; then
14972 $as_echo "/* $configure_input */" \
14973 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14974 } >"$ac_tmp/config.h" \
14975 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14976 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14978 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14981 mv "$ac_tmp/config.h" "$ac_file" \
14982 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14985 $as_echo "/* $configure_input */" \
14986 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14987 || as_fn_error $? "could not create -" "$LINENO" 5
14989 # Compute "$ac_file"'s index in $config_headers.
14992 for _am_header in $config_headers :; do
14993 case $_am_header in
14994 $_am_arg | $_am_arg:* )
14997 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15000 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15001 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15002 X"$_am_arg" : 'X\(//\)[^/]' \| \
15003 X"$_am_arg" : 'X\(//\)$' \| \
15004 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15005 $as_echo X"$_am_arg" |
15006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15010 /^X\(\/\/\)[^/].*/{
15022 s/.*/./; q'`/stamp-h$_am_stamp_count
15025 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15026 $as_echo "$as_me: executing $ac_file commands" >&6;}
15031 case $ac_file$ac_mode in
15032 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15033 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15034 # are listed without --file. Let's play safe and only enable the eval
15035 # if we detect the quoting.
15036 case $CONFIG_FILES in
15037 *\'*) eval set x "$CONFIG_FILES" ;;
15038 *) set x $CONFIG_FILES ;;
15043 # Strip MF so we end up with the name of the file.
15044 mf=`echo "$mf" | sed -e 's/:.*$//'`
15045 # Check whether this is an Automake generated Makefile or not.
15046 # We used to match only the files named 'Makefile.in', but
15047 # some people rename them; so instead we look at the file content.
15048 # Grep'ing the first line is not enough: some people post-process
15049 # each Makefile.in and add a new line on top of each file to say so.
15050 # Grep'ing the whole file is not good either: AIX grep has a line
15051 # limit of 2048, but all sed's we know have understand at least 4000.
15052 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15053 dirpart=`$as_dirname -- "$mf" ||
15054 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15055 X"$mf" : 'X\(//\)[^/]' \| \
15056 X"$mf" : 'X\(//\)$' \| \
15057 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15063 /^X\(\/\/\)[^/].*/{
15079 # Extract the definition of DEPDIR, am__include, and am__quote
15080 # from the Makefile without running 'make'.
15081 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15082 test -z "$DEPDIR" && continue
15083 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15084 test -z "am__include" && continue
15085 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15086 # Find all dependency output files, they are included files with
15087 # $(DEPDIR) in their names. We invoke sed twice because it is the
15088 # simplest approach to changing $(DEPDIR) to its actual value in the
15090 for file in `sed -n "
15091 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15092 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15093 # Make sure the directory exists.
15094 test -f "$dirpart/$file" && continue
15095 fdir=`$as_dirname -- "$file" ||
15096 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15097 X"$file" : 'X\(//\)[^/]' \| \
15098 X"$file" : 'X\(//\)$' \| \
15099 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15100 $as_echo X"$file" |
15101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15105 /^X\(\/\/\)[^/].*/{
15118 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15119 # echo "creating $dirpart/$file"
15120 echo '# dummy' > "$dirpart/$file"
15127 # See if we are running on zsh, and set the options which allow our
15128 # commands through without removal of \ escapes.
15129 if test -n "${ZSH_VERSION+set}" ; then
15130 setopt NO_GLOB_SUBST
15133 cfgfile="${ofile}T"
15134 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15137 cat <<_LT_EOF >> "$cfgfile"
15140 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15141 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15142 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15143 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15145 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15146 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15148 # Written by Gordon Matzigkeit, 1996
15150 # This file is part of GNU Libtool.
15152 # GNU Libtool is free software; you can redistribute it and/or
15153 # modify it under the terms of the GNU General Public License as
15154 # published by the Free Software Foundation; either version 2 of
15155 # the License, or (at your option) any later version.
15157 # As a special exception to the GNU General Public License,
15158 # if you distribute this file as part of a program or library that
15159 # is built using GNU Libtool, you may include this file under the
15160 # same distribution terms that you use for the rest of that program.
15162 # GNU Libtool is distributed in the hope that it will be useful,
15163 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15164 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15165 # GNU General Public License for more details.
15167 # You should have received a copy of the GNU General Public License
15168 # along with GNU Libtool; see the file COPYING. If not, a copy
15169 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15170 # obtained by writing to the Free Software Foundation, Inc.,
15171 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15174 # The names of the tagged configurations supported by this script.
15177 # ### BEGIN LIBTOOL CONFIG
15179 # Whether or not to build static libraries.
15180 build_old_libs=$enable_static
15182 # Which release of libtool.m4 was used?
15183 macro_version=$macro_version
15184 macro_revision=$macro_revision
15186 # Whether or not to build shared libraries.
15187 build_libtool_libs=$enable_shared
15189 # What type of objects to build.
15192 # Whether or not to optimize for fast installation.
15193 fast_install=$enable_fast_install
15195 # Shell to use when invoking shell scripts.
15198 # An echo program that protects backslashes.
15201 # The PATH separator for the build system.
15202 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15205 host_alias=$host_alias
15209 # The build system.
15210 build_alias=$build_alias
15214 # A sed program that does not truncate output.
15217 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15218 Xsed="\$SED -e 1s/^X//"
15220 # A grep program that handles long lines.
15226 # A literal string matcher.
15229 # A BSD- or MS-compatible name lister.
15232 # Whether we need soft or hard links.
15235 # What is the maximum length of a command?
15236 max_cmd_len=$max_cmd_len
15238 # Object file suffix (normally "o").
15241 # Executable file suffix (normally "").
15244 # whether the shell understands "unset".
15247 # turn spaces into newlines.
15250 # turn newlines into spaces.
15253 # convert \$build file names to \$host format.
15254 to_host_file_cmd=$lt_cv_to_host_file_cmd
15256 # convert \$build files to toolchain format.
15257 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15259 # An object symbol dumper.
15260 OBJDUMP=$lt_OBJDUMP
15262 # Method to check whether dependent libraries are shared objects.
15263 deplibs_check_method=$lt_deplibs_check_method
15265 # Command to use when deplibs_check_method = "file_magic".
15266 file_magic_cmd=$lt_file_magic_cmd
15268 # How to find potential files when deplibs_check_method = "file_magic".
15269 file_magic_glob=$lt_file_magic_glob
15271 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15272 want_nocaseglob=$lt_want_nocaseglob
15274 # DLL creation program.
15275 DLLTOOL=$lt_DLLTOOL
15277 # Command to associate shared and link libraries.
15278 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15283 # Flags to create an archive.
15284 AR_FLAGS=$lt_AR_FLAGS
15286 # How to feed a file listing to the archiver.
15287 archiver_list_spec=$lt_archiver_list_spec
15289 # A symbol stripping program.
15292 # Commands used to install an old-style archive.
15294 old_postinstall_cmds=$lt_old_postinstall_cmds
15295 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15297 # Whether to use a lock for old archive extraction.
15298 lock_old_archive_extraction=$lock_old_archive_extraction
15303 # LTCC compiler flags.
15304 LTCFLAGS=$lt_CFLAGS
15306 # Take the output of nm and produce a listing of raw symbols and C names.
15307 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15309 # Transform the output of nm in a proper C declaration.
15310 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15312 # Transform the output of nm in a C name address pair.
15313 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15315 # Transform the output of nm in a C name address pair when lib prefix is needed.
15316 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15318 # Specify filename containing input files for \$NM.
15319 nm_file_list_spec=$lt_nm_file_list_spec
15321 # The root where to search for dependent libraries,and in which our libraries should be installed.
15322 lt_sysroot=$lt_sysroot
15324 # The name of the directory that contains temporary libtool files.
15327 # Used to examine libraries when file_magic_cmd begins with "file".
15328 MAGIC_CMD=$MAGIC_CMD
15330 # Must we lock files when doing compilation?
15331 need_locks=$lt_need_locks
15334 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15336 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15337 DSYMUTIL=$lt_DSYMUTIL
15339 # Tool to change global to local symbols on Mac OS X.
15342 # Tool to manipulate fat objects and archives on Mac OS X.
15345 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15348 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15349 OTOOL64=$lt_OTOOL64
15351 # Old archive suffix (normally "a").
15354 # Shared library suffix (normally ".so").
15355 shrext_cmds=$lt_shrext_cmds
15357 # The commands to extract the exported symbol list from a shared archive.
15358 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15360 # Variables whose values should be saved in libtool wrapper scripts and
15361 # restored at link time.
15362 variables_saved_for_relink=$lt_variables_saved_for_relink
15364 # Do we need the "lib" prefix for modules?
15365 need_lib_prefix=$need_lib_prefix
15367 # Do we need a version for libraries?
15368 need_version=$need_version
15370 # Library versioning type.
15371 version_type=$version_type
15373 # Shared library runtime path variable.
15374 runpath_var=$runpath_var
15376 # Shared library path variable.
15377 shlibpath_var=$shlibpath_var
15379 # Is shlibpath searched before the hard-coded library search path?
15380 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15382 # Format of library name prefix.
15383 libname_spec=$lt_libname_spec
15385 # List of archive names. First name is the real one, the rest are links.
15386 # The last name is the one that the linker finds with -lNAME
15387 library_names_spec=$lt_library_names_spec
15389 # The coded name of the library, if different from the real name.
15390 soname_spec=$lt_soname_spec
15392 # Permission mode override for installation of shared libraries.
15393 install_override_mode=$lt_install_override_mode
15395 # Command to use after installation of a shared archive.
15396 postinstall_cmds=$lt_postinstall_cmds
15398 # Command to use after uninstallation of a shared archive.
15399 postuninstall_cmds=$lt_postuninstall_cmds
15401 # Commands used to finish a libtool library installation in a directory.
15402 finish_cmds=$lt_finish_cmds
15404 # As "finish_cmds", except a single script fragment to be evaled but
15406 finish_eval=$lt_finish_eval
15408 # Whether we should hardcode library paths into libraries.
15409 hardcode_into_libs=$hardcode_into_libs
15411 # Compile-time system search path for libraries.
15412 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15414 # Run-time system search path for libraries.
15415 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15417 # Whether dlopen is supported.
15418 dlopen_support=$enable_dlopen
15420 # Whether dlopen of programs is supported.
15421 dlopen_self=$enable_dlopen_self
15423 # Whether dlopen of statically linked programs is supported.
15424 dlopen_self_static=$enable_dlopen_self_static
15426 # Commands to strip libraries.
15427 old_striplib=$lt_old_striplib
15428 striplib=$lt_striplib
15431 # The linker used to build libraries.
15434 # How to create reloadable object files.
15435 reload_flag=$lt_reload_flag
15436 reload_cmds=$lt_reload_cmds
15438 # Commands used to build an old-style archive.
15439 old_archive_cmds=$lt_old_archive_cmds
15441 # A language specific compiler.
15444 # Is the compiler the GNU compiler?
15447 # Compiler flag to turn off builtin functions.
15448 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15450 # Additional compiler flags for building library objects.
15451 pic_flag=$lt_lt_prog_compiler_pic
15453 # How to pass a linker flag through the compiler.
15454 wl=$lt_lt_prog_compiler_wl
15456 # Compiler flag to prevent dynamic linking.
15457 link_static_flag=$lt_lt_prog_compiler_static
15459 # Does compiler simultaneously support -c and -o options?
15460 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15462 # Whether or not to add -lc for building shared libraries.
15463 build_libtool_need_lc=$archive_cmds_need_lc
15465 # Whether or not to disallow shared libs when runtime libs are static.
15466 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15468 # Compiler flag to allow reflexive dlopens.
15469 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15471 # Compiler flag to generate shared objects directly from archives.
15472 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15474 # Whether the compiler copes with passing no objects directly.
15475 compiler_needs_object=$lt_compiler_needs_object
15477 # Create an old-style archive from a shared archive.
15478 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15480 # Create a temporary old-style archive to link instead of a shared archive.
15481 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15483 # Commands used to build a shared archive.
15484 archive_cmds=$lt_archive_cmds
15485 archive_expsym_cmds=$lt_archive_expsym_cmds
15487 # Commands used to build a loadable module if different from building
15488 # a shared archive.
15489 module_cmds=$lt_module_cmds
15490 module_expsym_cmds=$lt_module_expsym_cmds
15492 # Whether we are building with GNU ld or not.
15493 with_gnu_ld=$lt_with_gnu_ld
15495 # Flag that allows shared libraries with undefined symbols to be built.
15496 allow_undefined_flag=$lt_allow_undefined_flag
15498 # Flag that enforces no undefined symbols.
15499 no_undefined_flag=$lt_no_undefined_flag
15501 # Flag to hardcode \$libdir into a binary during linking.
15502 # This must work even if \$libdir does not exist
15503 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15505 # Whether we need a single "-rpath" flag with a separated argument.
15506 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15508 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15509 # DIR into the resulting binary.
15510 hardcode_direct=$hardcode_direct
15512 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15513 # DIR into the resulting binary and the resulting library dependency is
15514 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15515 # library is relocated.
15516 hardcode_direct_absolute=$hardcode_direct_absolute
15518 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15519 # into the resulting binary.
15520 hardcode_minus_L=$hardcode_minus_L
15522 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15523 # into the resulting binary.
15524 hardcode_shlibpath_var=$hardcode_shlibpath_var
15526 # Set to "yes" if building a shared library automatically hardcodes DIR
15527 # into the library and all subsequent libraries and executables linked
15529 hardcode_automatic=$hardcode_automatic
15531 # Set to yes if linker adds runtime paths of dependent libraries
15532 # to runtime path list.
15533 inherit_rpath=$inherit_rpath
15535 # Whether libtool must link a program against all its dependency libraries.
15536 link_all_deplibs=$link_all_deplibs
15538 # Set to "yes" if exported symbols are required.
15539 always_export_symbols=$always_export_symbols
15541 # The commands to list exported symbols.
15542 export_symbols_cmds=$lt_export_symbols_cmds
15544 # Symbols that should not be listed in the preloaded symbols.
15545 exclude_expsyms=$lt_exclude_expsyms
15547 # Symbols that must always be exported.
15548 include_expsyms=$lt_include_expsyms
15550 # Commands necessary for linking programs (against libraries) with templates.
15551 prelink_cmds=$lt_prelink_cmds
15553 # Commands necessary for finishing linking programs.
15554 postlink_cmds=$lt_postlink_cmds
15556 # Specify filename containing input files.
15557 file_list_spec=$lt_file_list_spec
15559 # How to hardcode a shared library path into an executable.
15560 hardcode_action=$hardcode_action
15562 # ### END LIBTOOL CONFIG
15568 cat <<\_LT_EOF >> "$cfgfile"
15569 # AIX sometimes has problems with the GCC collect2 program. For some
15570 # reason, if we set the COLLECT_NAMES environment variable, the problems
15571 # vanish in a puff of smoke.
15572 if test "X${COLLECT_NAMES+set}" != Xset; then
15574 export COLLECT_NAMES
15581 ltmain="$ac_aux_dir/ltmain.sh"
15584 # We use sed instead of cat because bash on DJGPP gets confused if
15585 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15586 # text mode, it properly converts lines to CR/LF. This bash problem
15587 # is reportedly fixed, but why not run on old versions too?
15588 sed '$q' "$ltmain" >> "$cfgfile" \
15589 || (rm -f "$cfgfile"; exit 1)
15591 if test x"$xsi_shell" = xyes; then
15592 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15596 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15597 \ * ) func_dirname_result="${3}" ;;\
15599 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15600 && mv -f "$cfgfile.tmp" "$cfgfile" \
15601 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15602 test 0 -eq $? || _lt_function_replace_fail=:
15605 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15608 \ func_basename_result="${1##*/}"\
15609 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15610 && mv -f "$cfgfile.tmp" "$cfgfile" \
15611 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15612 test 0 -eq $? || _lt_function_replace_fail=:
15615 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15616 func_dirname_and_basename ()\
15619 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15620 \ * ) func_dirname_result="${3}" ;;\
15622 \ func_basename_result="${1##*/}"\
15623 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15624 && mv -f "$cfgfile.tmp" "$cfgfile" \
15625 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15626 test 0 -eq $? || _lt_function_replace_fail=:
15629 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15632 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15633 \ # positional parameters, so assign one to ordinary parameter first.\
15634 \ func_stripname_result=${3}\
15635 \ func_stripname_result=${func_stripname_result#"${1}"}\
15636 \ func_stripname_result=${func_stripname_result%"${2}"}\
15637 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15638 && mv -f "$cfgfile.tmp" "$cfgfile" \
15639 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15640 test 0 -eq $? || _lt_function_replace_fail=:
15643 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15644 func_split_long_opt ()\
15646 \ func_split_long_opt_name=${1%%=*}\
15647 \ func_split_long_opt_arg=${1#*=}\
15648 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15649 && mv -f "$cfgfile.tmp" "$cfgfile" \
15650 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15651 test 0 -eq $? || _lt_function_replace_fail=:
15654 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15655 func_split_short_opt ()\
15657 \ func_split_short_opt_arg=${1#??}\
15658 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15659 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15660 && mv -f "$cfgfile.tmp" "$cfgfile" \
15661 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15662 test 0 -eq $? || _lt_function_replace_fail=:
15665 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15669 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15670 \ *) func_lo2o_result=${1} ;;\
15672 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15673 && mv -f "$cfgfile.tmp" "$cfgfile" \
15674 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15675 test 0 -eq $? || _lt_function_replace_fail=:
15678 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15681 func_xform_result=${1%.*}.lo\
15682 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15683 && mv -f "$cfgfile.tmp" "$cfgfile" \
15684 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15685 test 0 -eq $? || _lt_function_replace_fail=:
15688 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15691 func_arith_result=$(( $* ))\
15692 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15693 && mv -f "$cfgfile.tmp" "$cfgfile" \
15694 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15695 test 0 -eq $? || _lt_function_replace_fail=:
15698 sed -e '/^func_len ()$/,/^} # func_len /c\
15701 func_len_result=${#1}\
15702 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15703 && mv -f "$cfgfile.tmp" "$cfgfile" \
15704 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15705 test 0 -eq $? || _lt_function_replace_fail=:
15709 if test x"$lt_shell_append" = xyes; then
15710 sed -e '/^func_append ()$/,/^} # func_append /c\
15713 eval "${1}+=\\${2}"\
15714 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15715 && mv -f "$cfgfile.tmp" "$cfgfile" \
15716 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15717 test 0 -eq $? || _lt_function_replace_fail=:
15720 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15721 func_append_quoted ()\
15723 \ func_quote_for_eval "${2}"\
15724 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15725 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15726 && mv -f "$cfgfile.tmp" "$cfgfile" \
15727 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15728 test 0 -eq $? || _lt_function_replace_fail=:
15731 # Save a `func_append' function call where possible by direct use of '+='
15732 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15733 && mv -f "$cfgfile.tmp" "$cfgfile" \
15734 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15735 test 0 -eq $? || _lt_function_replace_fail=:
15737 # Save a `func_append' function call even when '+=' is not available
15738 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15739 && mv -f "$cfgfile.tmp" "$cfgfile" \
15740 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15741 test 0 -eq $? || _lt_function_replace_fail=:
15744 if test x"$_lt_function_replace_fail" = x":"; then
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15746 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15750 mv -f "$cfgfile" "$ofile" ||
15751 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15762 ac_clean_files=$ac_clean_files_save
15764 test $ac_write_fail = 0 ||
15765 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15768 # configure is writing to config.log, and then calls config.status.
15769 # config.status does its own redirection, appending to config.log.
15770 # Unfortunately, on DOS this fails, as config.log is still kept open
15771 # by configure, so config.status won't be able to write to it; its
15772 # output is simply discarded. So we exec the FD to /dev/null,
15773 # effectively closing config.log, so it can be properly (re)opened and
15774 # appended to by config.status. When coming back to configure, we
15775 # need to make the FD available again.
15776 if test "$no_create" != yes; then
15778 ac_config_status_args=
15779 test "$silent" = yes &&
15780 ac_config_status_args="$ac_config_status_args --quiet"
15782 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15784 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15785 # would make configure fail if this is the last instruction.
15786 $ac_cs_success || as_fn_exit 1
15788 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15790 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15794 echo "Creating asoundlib.h..."
15795 cp "$srcdir"/include/asoundlib-head.h include/asoundlib.h
15796 test "$ac_cv_header_endian_h" = "yes" && echo "#include <endian.h>" >> include/asoundlib.h
15797 if test "$ac_cv_header_sys_endian_h" = "yes"; then
15798 cat >> include/asoundlib.h <<EOF
15799 #include <sys/endian.h>
15800 #ifndef __BYTE_ORDER
15801 #define __BYTE_ORDER BYTE_ORDER
15803 #ifndef __LITTLE_ENDIAN
15804 #define __LITTLE_ENDIAN LITTLE_ENDIAN
15806 #ifndef __BIG_ENDIAN
15807 #define __BIG_ENDIAN BIG_ENDIAN
15811 cat >> include/asoundlib.h <<EOF
15814 #define __inline__ inline
15817 #include <alsa/asoundef.h>
15818 #include <alsa/version.h>
15819 #include <alsa/global.h>
15820 #include <alsa/input.h>
15821 #include <alsa/output.h>
15822 #include <alsa/error.h>
15823 #include <alsa/conf.h>
15825 test "$build_pcm" = "yes" && echo "#include <alsa/pcm.h>" >> include/asoundlib.h
15826 test "$build_rawmidi" = "yes" && echo "#include <alsa/rawmidi.h>" >> include/asoundlib.h
15827 test "$build_pcm" = "yes" && echo "#include <alsa/timer.h>" >> include/asoundlib.h
15828 test "$build_hwdep" = "yes" && echo "#include <alsa/hwdep.h>" >> include/asoundlib.h
15829 echo "#include <alsa/control.h>" >> include/asoundlib.h
15830 test "$build_mixer" = "yes" && echo "#include <alsa/mixer.h>" >> include/asoundlib.h
15831 test "$build_seq" = "yes" && echo "#include <alsa/seq_event.h>" >> include/asoundlib.h
15832 test "$build_seq" = "yes" && echo "#include <alsa/seq.h>" >> include/asoundlib.h
15833 test "$build_seq" = "yes" && echo "#include <alsa/seqmid.h>" >> include/asoundlib.h
15834 test "$build_seq" = "yes" && echo "#include <alsa/seq_midi_event.h>" >> include/asoundlib.h
15835 cat "$srcdir"/include/asoundlib-tail.h >> include/asoundlib.h