2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for gupnp 0.14.1.
5 # Report bugs to <http://www.gupnp.org/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: http://www.gupnp.org/ about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
369 as_status=$1; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374 $as_echo "$as_me: error: $2" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
558 if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571 if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
593 # So, first we look for a working echo in the user's PATH.
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
646 # maybe with a smaller string...
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662 # Oops. We lost completely, so just stick with echo.
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681 test -n "$DJDIR" || exec 7<&0 </dev/null
685 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692 ac_default_prefix=/usr/local
694 ac_config_libobj_dir=.
701 # Identity of this package.
703 PACKAGE_TARNAME='gupnp'
704 PACKAGE_VERSION='0.14.1'
705 PACKAGE_STRING='gupnp 0.14.1'
706 PACKAGE_BUGREPORT='http://www.gupnp.org/'
709 ac_unique_file="libgupnp/gupnp.h"
710 # Factoring default headers for most tests.
711 ac_includes_default="\
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
723 # ifdef HAVE_STDLIB_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
747 ac_subst_vars='am__EXEEXT_FALSE
751 GTK_DOC_USE_REBASE_FALSE
752 GTK_DOC_USE_REBASE_TRUE
753 GTK_DOC_USE_LIBTOOL_FALSE
754 GTK_DOC_USE_LIBTOOL_TRUE
755 GTK_DOC_BUILD_PDF_FALSE
756 GTK_DOC_BUILD_PDF_TRUE
757 GTK_DOC_BUILD_HTML_FALSE
758 GTK_DOC_BUILD_HTML_TRUE
765 HAVE_INTROSPECTION_FALSE
766 HAVE_INTROSPECTION_TRUE
767 INTROSPECTION_TYPELIBDIR
769 INTROSPECTION_GENERATE
770 INTROSPECTION_COMPILER
771 INTROSPECTION_SCANNER
780 USE_NETWORK_MANAGER_FALSE
781 USE_NETWORK_MANAGER_TRUE
836 MAINTAINER_MODE_FALSE
846 INSTALL_STRIP_PROGRAM
888 program_transform_name
901 enable_option_checking
902 enable_maintainer_mode
904 enable_dependency_tracking
920 ac_precious_vars='build_alias
942 # Initialize some variables set by options.
944 ac_init_version=false
945 ac_unrecognized_opts=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
956 program_transform_name=s,x,x,
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981 infodir='${datarootdir}/info'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
994 # If the previous option needs an argument, assign it.
995 if test -n "$ac_prev"; then
996 eval $ac_prev=\$ac_option
1002 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007 # Accept the important Cygnus configure options, so we can diagnose typos.
1009 case $ac_dashdash$ac_option in
1013 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016 bindir=$ac_optarg ;;
1018 -build | --build | --buil | --bui | --bu)
1019 ac_prev=build_alias ;;
1020 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021 build_alias=$ac_optarg ;;
1023 -cache-file | --cache-file | --cache-fil | --cache-fi \
1024 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025 ac_prev=cache_file ;;
1026 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028 cache_file=$ac_optarg ;;
1030 --config-cache | -C)
1031 cache_file=config.cache ;;
1033 -datadir | --datadir | --datadi | --datad)
1035 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036 datadir=$ac_optarg ;;
1038 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039 | --dataroo | --dataro | --datar)
1040 ac_prev=datarootdir ;;
1041 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043 datarootdir=$ac_optarg ;;
1045 -disable-* | --disable-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error $? "invalid feature name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1054 "enable_$ac_useropt"
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1059 eval enable_$ac_useropt=no ;;
1061 -docdir | --docdir | --docdi | --doc | --do)
1063 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064 docdir=$ac_optarg ;;
1066 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069 dvidir=$ac_optarg ;;
1071 -enable-* | --enable-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error $? "invalid feature name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1080 "enable_$ac_useropt"
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1085 eval enable_$ac_useropt=\$ac_optarg ;;
1087 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089 | --exec | --exe | --ex)
1090 ac_prev=exec_prefix ;;
1091 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093 | --exec=* | --exe=* | --ex=*)
1094 exec_prefix=$ac_optarg ;;
1096 -gas | --gas | --ga | --g)
1097 # Obsolete; use --with-gas.
1100 -help | --help | --hel | --he | -h)
1101 ac_init_help=long ;;
1102 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103 ac_init_help=recursive ;;
1104 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105 ac_init_help=short ;;
1107 -host | --host | --hos | --ho)
1108 ac_prev=host_alias ;;
1109 -host=* | --host=* | --hos=* | --ho=*)
1110 host_alias=$ac_optarg ;;
1112 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116 htmldir=$ac_optarg ;;
1118 -includedir | --includedir | --includedi | --included | --include \
1119 | --includ | --inclu | --incl | --inc)
1120 ac_prev=includedir ;;
1121 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122 | --includ=* | --inclu=* | --incl=* | --inc=*)
1123 includedir=$ac_optarg ;;
1125 -infodir | --infodir | --infodi | --infod | --info | --inf)
1127 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128 infodir=$ac_optarg ;;
1130 -libdir | --libdir | --libdi | --libd)
1132 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133 libdir=$ac_optarg ;;
1135 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136 | --libexe | --libex | --libe)
1137 ac_prev=libexecdir ;;
1138 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139 | --libexe=* | --libex=* | --libe=*)
1140 libexecdir=$ac_optarg ;;
1142 -localedir | --localedir | --localedi | --localed | --locale)
1143 ac_prev=localedir ;;
1144 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145 localedir=$ac_optarg ;;
1147 -localstatedir | --localstatedir | --localstatedi | --localstated \
1148 | --localstate | --localstat | --localsta | --localst | --locals)
1149 ac_prev=localstatedir ;;
1150 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152 localstatedir=$ac_optarg ;;
1154 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157 mandir=$ac_optarg ;;
1159 -nfp | --nfp | --nf)
1160 # Obsolete; use --without-fp.
1163 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164 | --no-cr | --no-c | -n)
1167 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173 | --oldin | --oldi | --old | --ol | --o)
1174 ac_prev=oldincludedir ;;
1175 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178 oldincludedir=$ac_optarg ;;
1180 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183 prefix=$ac_optarg ;;
1185 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186 | --program-pre | --program-pr | --program-p)
1187 ac_prev=program_prefix ;;
1188 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190 program_prefix=$ac_optarg ;;
1192 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193 | --program-suf | --program-su | --program-s)
1194 ac_prev=program_suffix ;;
1195 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197 program_suffix=$ac_optarg ;;
1199 -program-transform-name | --program-transform-name \
1200 | --program-transform-nam | --program-transform-na \
1201 | --program-transform-n | --program-transform- \
1202 | --program-transform | --program-transfor \
1203 | --program-transfo | --program-transf \
1204 | --program-trans | --program-tran \
1205 | --progr-tra | --program-tr | --program-t)
1206 ac_prev=program_transform_name ;;
1207 -program-transform-name=* | --program-transform-name=* \
1208 | --program-transform-nam=* | --program-transform-na=* \
1209 | --program-transform-n=* | --program-transform-=* \
1210 | --program-transform=* | --program-transfor=* \
1211 | --program-transfo=* | --program-transf=* \
1212 | --program-trans=* | --program-tran=* \
1213 | --progr-tra=* | --program-tr=* | --program-t=*)
1214 program_transform_name=$ac_optarg ;;
1216 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219 pdfdir=$ac_optarg ;;
1221 -psdir | --psdir | --psdi | --psd | --ps)
1223 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 sbindir=$ac_optarg ;;
1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238 | --sharedst | --shareds | --shared | --share | --shar \
1240 ac_prev=sharedstatedir ;;
1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 sharedstatedir=$ac_optarg ;;
1247 -site | --site | --sit)
1249 -site=* | --site=* | --sit=*)
1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255 srcdir=$ac_optarg ;;
1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258 | --syscon | --sysco | --sysc | --sys | --sy)
1259 ac_prev=sysconfdir ;;
1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262 sysconfdir=$ac_optarg ;;
1264 -target | --target | --targe | --targ | --tar | --ta | --t)
1265 ac_prev=target_alias ;;
1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267 target_alias=$ac_optarg ;;
1269 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 -version | --version | --versio | --versi | --vers | -V)
1273 ac_init_version=: ;;
1276 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279 as_fn_error $? "invalid package name: $ac_useropt"
1280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1289 eval with_$ac_useropt=\$ac_optarg ;;
1291 -without-* | --without-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 as_fn_error $? "invalid package name: $ac_useropt"
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1305 eval with_$ac_useropt=no ;;
1308 # Obsolete; use --with-x.
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1325 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1326 Try \`$0 --help' for more information"
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 case $ac_envvar in #(
1333 '' | [0-9]* | *[!_$as_cr_alnum]* )
1334 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1336 eval $ac_envvar=\$ac_optarg
1337 export $ac_envvar ;;
1340 # FIXME: should be removed in autoconf 3.0.
1341 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1350 if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 as_fn_error $? "missing argument to $ac_option"
1355 if test -n "$ac_unrecognized_opts"; then
1356 case $enable_option_checking in
1358 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1359 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363 # Check all directory arguments for consistency.
1364 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
1369 eval ac_val=\$$ac_var
1370 # Remove trailing slashes.
1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\$ac_val;;
1376 # Be sure to have absolute directory names.
1378 [\\/$]* | ?:[\\/]* ) continue;;
1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1389 target=$target_alias
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
1395 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1396 If a cross compiler is detected then cross compile mode will be used" >&2
1397 elif test "x$build_alias" != "x$host_alias"; then
1403 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405 test "$silent" = yes && exec 6>/dev/null
1408 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di=`ls -di .` &&
1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411 as_fn_error $? "working directory cannot be determined"
1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413 as_fn_error $? "pwd does not report name of working directory"
1416 # Find the source files, if location was not specified.
1417 if test -z "$srcdir"; then
1418 ac_srcdir_defaulted=yes
1419 # Try the directory containing this script, then the parent directory.
1420 ac_confdir=`$as_dirname -- "$as_myself" ||
1421 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422 X"$as_myself" : 'X\(//\)[^/]' \| \
1423 X"$as_myself" : 'X\(//\)$' \| \
1424 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425 $as_echo X"$as_myself" |
1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1448 ac_srcdir_defaulted=no
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1452 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1454 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1466 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 for ac_var in $ac_precious_vars; do
1469 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_env_${ac_var}_value=\$${ac_var}
1471 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476 # Report the --help message.
1478 if test "$ac_init_help" = "long"; then
1479 # Omit some internal or obsolete options to make the list less imposing.
1480 # This message is too long to be a string in the A/UX 3.1 sh.
1482 \`configure' configures gupnp 0.14.1 to adapt to many kinds of systems.
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE. See below for descriptions of some of the useful variables.
1489 Defaults for the options are specified in brackets.
1492 -h, --help display this help and exit
1493 --help=short display options specific to this package
1494 --help=recursive display the short help of all the included packages
1495 -V, --version display version information and exit
1496 -q, --quiet, --silent do not print \`checking ...' messages
1497 --cache-file=FILE cache test results in FILE [disabled]
1498 -C, --config-cache alias for \`--cache-file=config.cache'
1499 -n, --no-create do not create output files
1500 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1502 Installation directories:
1503 --prefix=PREFIX install architecture-independent files in PREFIX
1504 [$ac_default_prefix]
1505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1513 For better control, use the options below.
1515 Fine tuning of the installation directories:
1516 --bindir=DIR user executables [EPREFIX/bin]
1517 --sbindir=DIR system admin executables [EPREFIX/sbin]
1518 --libexecdir=DIR program executables [EPREFIX/libexec]
1519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/gupnp]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
1540 --program-prefix=PREFIX prepend PREFIX to installed program names
1541 --program-suffix=SUFFIX append SUFFIX to installed program names
1542 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1545 --build=BUILD configure for building on BUILD [guessed]
1546 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1550 if test -n "$ac_init_help"; then
1551 case $ac_init_help in
1552 short | recursive ) echo "Configuration of gupnp 0.14.1:";;
1557 --disable-option-checking ignore unrecognized --enable/--with options
1558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1560 --enable-maintainer-mode enable make rules and dependencies not useful
1561 (and sometimes confusing) to the casual installer
1562 --enable-silent-rules less verbose build output (undo: `make V=1')
1563 --disable-silent-rules verbose build output (undo: `make V=0')
1564 --disable-dependency-tracking speeds up one-time build
1565 --enable-dependency-tracking do not reject slow dependency extractors
1566 --enable-shared[=PKGS] build shared libraries [default=yes]
1567 --enable-static[=PKGS] build static libraries [default=yes]
1568 --enable-fast-install[=PKGS]
1569 optimize for fast installation [default=yes]
1570 --disable-libtool-lock avoid locking (might break parallel builds)
1571 --disable-largefile omit support for large files
1572 --enable-debug enable debugging
1573 --enable-introspection=[no/auto/yes]
1574 Enable introspection for this build
1575 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1576 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1577 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1582 --with-pic try to use only PIC/non-PIC objects [default=use
1584 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1585 --with-context-manager=[network-manager/unix]
1586 Context Manager backend to use
1587 --with-html-dir=PATH path to installed docs
1589 Some influential environment variables:
1590 CC C compiler command
1591 CFLAGS C compiler flags
1592 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1593 nonstandard directory <lib dir>
1594 LIBS libraries to pass to the linker, e.g. -l<library>
1595 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1596 you have headers in a nonstandard directory <include dir>
1598 PKG_CONFIG path to pkg-config utility
1600 directories to add to pkg-config's search path
1602 path overriding pkg-config's built-in search path
1604 C compiler flags for LIBGUPNP, overriding pkg-config
1606 linker flags for LIBGUPNP, overriding pkg-config
1608 C compiler flags for GTHREAD, overriding pkg-config
1610 linker flags for GTHREAD, overriding pkg-config
1612 C compiler flags for LIBCONIC, overriding pkg-config
1614 linker flags for LIBCONIC, overriding pkg-config
1616 C compiler flags for DBUS_GLIB, overriding pkg-config
1618 linker flags for DBUS_GLIB, overriding pkg-config
1620 Use these variables to override the choices made by `configure' or to help
1621 it to find libraries and programs with nonstandard names/locations.
1623 Report bugs to <http://www.gupnp.org/>.
1628 if test "$ac_init_help" = "recursive"; then
1629 # If there are subdirs, report their specific --help.
1630 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1631 test -d "$ac_dir" ||
1632 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1640 # A ".." for each directory in $ac_dir_suffix.
1641 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1642 case $ac_top_builddir_sub in
1643 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1647 ac_abs_top_builddir=$ac_pwd
1648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1649 # for backward compatibility:
1650 ac_top_builddir=$ac_top_build_prefix
1653 .) # We are building in place.
1655 ac_top_srcdir=$ac_top_builddir_sub
1656 ac_abs_top_srcdir=$ac_pwd ;;
1657 [\\/]* | ?:[\\/]* ) # Absolute name.
1658 ac_srcdir=$srcdir$ac_dir_suffix;
1659 ac_top_srcdir=$srcdir
1660 ac_abs_top_srcdir=$srcdir ;;
1662 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1663 ac_top_srcdir=$ac_top_build_prefix$srcdir
1664 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1668 cd "$ac_dir" || { ac_status=$?; continue; }
1669 # Check for guested configure.
1670 if test -f "$ac_srcdir/configure.gnu"; then
1672 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1673 elif test -f "$ac_srcdir/configure"; then
1675 $SHELL "$ac_srcdir/configure" --help=recursive
1677 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1679 cd "$ac_pwd" || { ac_status=$?; break; }
1683 test -n "$ac_init_help" && exit $ac_status
1684 if $ac_init_version; then
1686 gupnp configure 0.14.1
1687 generated by GNU Autoconf 2.67
1689 Copyright (C) 2010 Free Software Foundation, Inc.
1690 This configure script is free software; the Free Software Foundation
1691 gives unlimited permission to copy, distribute and modify it.
1696 ## ------------------------ ##
1697 ## Autoconf initialization. ##
1698 ## ------------------------ ##
1700 # ac_fn_c_try_compile LINENO
1701 # --------------------------
1702 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_c_try_compile ()
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 rm -f conftest.$ac_objext
1707 if { { ac_try="$ac_compile"
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_compile") 2>conftest.err
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && {
1723 test -z "$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1725 } && test -s conftest.$ac_objext; then :
1728 $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734 as_fn_set_status $ac_retval
1736 } # ac_fn_c_try_compile
1738 # ac_fn_c_try_link LINENO
1739 # -----------------------
1740 # Try to link conftest.$ac_ext, and return whether this succeeded.
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 rm -f conftest.$ac_objext conftest$ac_exeext
1745 if { { ac_try="$ac_link"
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_link") 2>conftest.err
1754 if test -s conftest.err; then
1755 grep -v '^ *+' conftest.err >conftest.er1
1756 cat conftest.er1 >&5
1757 mv -f conftest.er1 conftest.err
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && {
1761 test -z "$ac_c_werror_flag" ||
1762 test ! -s conftest.err
1763 } && test -s conftest$ac_exeext && {
1764 test "$cross_compiling" = yes ||
1765 $as_test_x conftest$ac_exeext
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1774 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1775 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1776 # interfere with the next link command; also delete a directory that is
1777 # left behind by Apple's compiler. We do this before executing the actions.
1778 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1780 as_fn_set_status $ac_retval
1782 } # ac_fn_c_try_link
1784 # ac_fn_c_try_cpp LINENO
1785 # ----------------------
1786 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 if { { ac_try="$ac_cpp conftest.$ac_ext"
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } > conftest.i && {
1806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817 as_fn_set_status $ac_retval
1821 # ac_fn_c_try_run LINENO
1822 # ----------------------
1823 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1824 # that executables *can* be run.
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if { { ac_try="$ac_link"
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>&5
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1839 { { case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_try") 2>&5
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; }; }; then :
1851 $as_echo "$as_me: program exited with status $ac_status" >&5
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1855 ac_retval=$ac_status
1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859 as_fn_set_status $ac_retval
1863 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1864 # -------------------------------------------------------
1865 # Tests whether HEADER exists and can be compiled using the include files in
1866 # INCLUDES, setting the cache variable VAR accordingly.
1867 ac_fn_c_check_header_compile ()
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if eval "test \"\${$3+set}\"" = set; then :
1873 $as_echo_n "(cached) " >&6
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1880 if ac_fn_c_try_compile "$LINENO"; then :
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892 } # ac_fn_c_check_header_compile
1894 # ac_fn_c_check_func LINENO FUNC VAR
1895 # ----------------------------------
1896 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1897 ac_fn_c_check_func ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval "test \"\${$3+set}\"" = set; then :
1903 $as_echo_n "(cached) " >&6
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1909 #define $2 innocuous_$2
1911 /* System header to define __stub macros and hopefully few prototypes,
1912 which can conflict with char $2 (); below.
1913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1914 <limits.h> exists even on freestanding compilers. */
1917 # include <limits.h>
1919 # include <assert.h>
1924 /* Override any GCC internal prototype to avoid an error.
1925 Use char because int might match the return type of a GCC
1926 builtin and then its argument prototype would still apply. */
1931 /* The GNU C library defines this for functions which it implements
1932 to always fail with ENOSYS. Some functions are actually named
1933 something starting with __ and the normal name is an alias. */
1934 #if defined __stub_$2 || defined __stub___$2
1946 if ac_fn_c_try_link "$LINENO"; then :
1951 rm -f core conftest.err conftest.$ac_objext \
1952 conftest$ac_exeext conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959 } # ac_fn_c_check_func
1960 cat >config.log <<_ACEOF
1961 This file contains any messages produced by compilers while
1962 running configure, to aid debugging if configure makes a mistake.
1964 It was created by gupnp $as_me 0.14.1, which was
1965 generated by GNU Autoconf 2.67. Invocation command line was
1977 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1978 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1979 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1980 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1981 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1983 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1984 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1986 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1987 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1988 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1989 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1990 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1991 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1992 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 test -z "$as_dir" && as_dir=.
2001 $as_echo "PATH: $as_dir"
2017 # Keep a trace of the command line.
2018 # Strip out --no-create and --no-recursion so they do not pile up.
2019 # Strip out --silent because we don't want to record it for future runs.
2020 # Also quote any args containing shell meta-characters.
2021 # Make two passes to allow for proper duplicate-argument suppression.
2025 ac_must_keep_next=false
2031 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2033 | -silent | --silent | --silen | --sile | --sil)
2036 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2039 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2041 as_fn_append ac_configure_args1 " '$ac_arg'"
2042 if test $ac_must_keep_next = true; then
2043 ac_must_keep_next=false # Got value, back to normal.
2046 *=* | --config-cache | -C | -disable-* | --disable-* \
2047 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2048 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2049 | -with-* | --with-* | -without-* | --without-* | --x)
2050 case "$ac_configure_args0 " in
2051 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2054 -* ) ac_must_keep_next=true ;;
2057 as_fn_append ac_configure_args " '$ac_arg'"
2062 { ac_configure_args0=; unset ac_configure_args0;}
2063 { ac_configure_args1=; unset ac_configure_args1;}
2065 # When interrupted or exit'd, cleanup temporary files, and complete
2066 # config.log. We remove comments because anyway the quotes in there
2067 # would cause problems or look ugly.
2068 # WARNING: Use '\'' to represent an apostrophe within the trap.
2069 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2070 trap 'exit_status=$?
2071 # Save into config.log some information that might help in debugging.
2075 $as_echo "## ---------------- ##
2076 ## Cache variables. ##
2077 ## ---------------- ##"
2079 # The following way of writing the cache mishandles newlines in values,
2081 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2082 eval ac_val=\$$ac_var
2086 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2087 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2090 _ | IFS | as_nl) ;; #(
2091 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2092 *) { eval $ac_var=; unset $ac_var;} ;;
2097 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2098 *${as_nl}ac_space=\ *)
2100 "s/'\''/'\''\\\\'\'''\''/g;
2101 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2104 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2111 $as_echo "## ----------------- ##
2112 ## Output variables. ##
2113 ## ----------------- ##"
2115 for ac_var in $ac_subst_vars
2117 eval ac_val=\$$ac_var
2119 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2121 $as_echo "$ac_var='\''$ac_val'\''"
2125 if test -n "$ac_subst_files"; then
2126 $as_echo "## ------------------- ##
2127 ## File substitutions. ##
2128 ## ------------------- ##"
2130 for ac_var in $ac_subst_files
2132 eval ac_val=\$$ac_var
2134 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2136 $as_echo "$ac_var='\''$ac_val'\''"
2141 if test -s confdefs.h; then
2142 $as_echo "## ----------- ##
2149 test "$ac_signal" != 0 &&
2150 $as_echo "$as_me: caught signal $ac_signal"
2151 $as_echo "$as_me: exit $exit_status"
2153 rm -f core *.core core.conftest.* &&
2154 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2157 for ac_signal in 1 2 13 15; do
2158 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2162 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2163 rm -f -r conftest* confdefs.h
2165 $as_echo "/* confdefs.h */" > confdefs.h
2167 # Predefined preprocessor variables.
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_NAME "$PACKAGE_NAME"
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_STRING "$PACKAGE_STRING"
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_URL "$PACKAGE_URL"
2194 # Let the site file select an alternate cache file if it wants to.
2195 # Prefer an explicitly selected file to automatically selected ones.
2198 if test -n "$CONFIG_SITE"; then
2199 # We do not want a PATH search for config.site.
2200 case $CONFIG_SITE in #((
2201 -*) ac_site_file1=./$CONFIG_SITE;;
2202 */*) ac_site_file1=$CONFIG_SITE;;
2203 *) ac_site_file1=./$CONFIG_SITE;;
2205 elif test "x$prefix" != xNONE; then
2206 ac_site_file1=$prefix/share/config.site
2207 ac_site_file2=$prefix/etc/config.site
2209 ac_site_file1=$ac_default_prefix/share/config.site
2210 ac_site_file2=$ac_default_prefix/etc/config.site
2212 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2214 test "x$ac_site_file" = xNONE && continue
2215 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2217 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2218 sed 's/^/| /' "$ac_site_file" >&5
2220 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2222 as_fn_error $? "failed to load site script $ac_site_file
2223 See \`config.log' for more details" "$LINENO" 5 ; }
2227 if test -r "$cache_file"; then
2228 # Some versions of bash will fail to source /dev/null (special files
2229 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2230 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2232 $as_echo "$as_me: loading cache $cache_file" >&6;}
2234 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2235 *) . "./$cache_file";;
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2240 $as_echo "$as_me: creating cache $cache_file" >&6;}
2244 as_fn_append ac_header_list " stdlib.h"
2245 as_fn_append ac_header_list " unistd.h"
2246 as_fn_append ac_header_list " sys/param.h"
2247 # Check that the precious variables saved in the cache have kept the same
2249 ac_cache_corrupted=false
2250 for ac_var in $ac_precious_vars; do
2251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2252 eval ac_new_set=\$ac_env_${ac_var}_set
2253 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2254 eval ac_new_val=\$ac_env_${ac_var}_value
2255 case $ac_old_set,$ac_new_set in
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2258 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2259 ac_cache_corrupted=: ;;
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2262 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2263 ac_cache_corrupted=: ;;
2266 if test "x$ac_old_val" != "x$ac_new_val"; then
2267 # differences in whitespace do not lead to failure.
2268 ac_old_val_w=`echo x $ac_old_val`
2269 ac_new_val_w=`echo x $ac_new_val`
2270 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2272 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2273 ac_cache_corrupted=:
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2276 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2277 eval $ac_var=\$ac_old_val
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2280 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2282 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2285 # Pass precious variables to config.status.
2286 if test "$ac_new_set" = set; then
2288 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2289 *) ac_arg=$ac_var=$ac_new_val ;;
2291 case " $ac_configure_args " in
2292 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2293 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2297 if $ac_cache_corrupted; then
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2301 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2302 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2304 ## -------------------- ##
2305 ## Main body of script. ##
2306 ## -------------------- ##
2309 ac_cpp='$CPP $CPPFLAGS'
2310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315 am__api_version='1.11'
2318 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2319 if test -f "$ac_dir/install-sh"; then
2321 ac_install_sh="$ac_aux_dir/install-sh -c"
2323 elif test -f "$ac_dir/install.sh"; then
2325 ac_install_sh="$ac_aux_dir/install.sh -c"
2327 elif test -f "$ac_dir/shtool"; then
2329 ac_install_sh="$ac_aux_dir/shtool install -c"
2333 if test -z "$ac_aux_dir"; then
2334 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2337 # These three variables are undocumented and unsupported,
2338 # and are intended to be withdrawn in a future Autoconf release.
2339 # They can cause serious problems if a builder's source tree is in a directory
2340 # whose full name contains unusual characters.
2341 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2342 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2343 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2346 # Find a good install program. We prefer a C program (faster),
2347 # so one script is as good as another. But avoid the broken or
2348 # incompatible versions:
2349 # SysV /etc/install, /usr/sbin/install
2350 # SunOS /usr/etc/install
2351 # IRIX /sbin/install
2353 # AmigaOS /C/install, which installs bootblocks on floppy discs
2354 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2355 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2356 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2357 # OS/2's system install, which has a completely different semantic
2358 # ./install, which can be erroneously created by make from ./install.sh.
2359 # Reject install programs that cannot install multiple files.
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2361 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2362 if test -z "$INSTALL"; then
2363 if test "${ac_cv_path_install+set}" = set; then :
2364 $as_echo_n "(cached) " >&6
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 test -z "$as_dir" && as_dir=.
2371 # Account for people who put trailing slashes in PATH elements.
2372 case $as_dir/ in #((
2373 ./ | .// | /[cC]/* | \
2374 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2375 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2378 # OSF1 and SCO ODT 3.0 have their own names for install.
2379 # Don't use installbsd from OSF since it installs stuff as root
2381 for ac_prog in ginstall scoinst install; do
2382 for ac_exec_ext in '' $ac_executable_extensions; do
2383 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2384 if test $ac_prog = install &&
2385 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2386 # AIX install. It has an incompatible calling convention.
2388 elif test $ac_prog = install &&
2389 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2390 # program-specific install script used by HP pwplus--don't use.
2393 rm -rf conftest.one conftest.two conftest.dir
2394 echo one > conftest.one
2395 echo two > conftest.two
2397 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2398 test -s conftest.one && test -s conftest.two &&
2399 test -s conftest.dir/conftest.one &&
2400 test -s conftest.dir/conftest.two
2402 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2415 rm -rf conftest.one conftest.two conftest.dir
2418 if test "${ac_cv_path_install+set}" = set; then
2419 INSTALL=$ac_cv_path_install
2421 # As a last resort, use the slow shell script. Don't cache a
2422 # value for INSTALL within a source directory, because that will
2423 # break other packages using the cache if that directory is
2424 # removed, or if the value is a relative name.
2425 INSTALL=$ac_install_sh
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2429 $as_echo "$INSTALL" >&6; }
2431 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2432 # It thinks the first close brace ends the variable substitution.
2433 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2435 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2437 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2440 $as_echo_n "checking whether build environment is sane... " >&6; }
2443 echo timestamp > conftest.file
2444 # Reject unsafe characters in $srcdir or the absolute working directory
2445 # name. Accept space and tab only in the latter.
2449 *[\\\"\#\$\&\'\`$am_lf]*)
2450 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2453 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2454 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2457 # Do `set' in a subshell so we don't clobber the current shell's
2458 # arguments. Must try -L first in case configure is actually a
2459 # symlink; some systems play weird games with the mod time of symlinks
2460 # (eg FreeBSD returns the mod time of the symlink's containing
2463 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2464 if test "$*" = "X"; then
2466 set X `ls -t "$srcdir/configure" conftest.file`
2469 if test "$*" != "X $srcdir/configure conftest.file" \
2470 && test "$*" != "X conftest.file $srcdir/configure"; then
2472 # If neither matched, then we have a broken ls. This can happen
2473 # if, for instance, CONFIG_SHELL is bash and it inherits a
2474 # broken ls alias from the environment. This has actually
2475 # happened. Such a system could not be considered "sane".
2476 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2477 alias in your environment" "$LINENO" 5
2480 test "$2" = conftest.file
2486 as_fn_error $? "newly created file is older than distributed files!
2487 Check your system clock" "$LINENO" 5
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2490 $as_echo "yes" >&6; }
2491 test "$program_prefix" != NONE &&
2492 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2493 # Use a double $ so make ignores it.
2494 test "$program_suffix" != NONE &&
2495 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2496 # Double any \ or $.
2497 # By default was `s,x,x', remove it if useless.
2498 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2499 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2501 # expand $ac_aux_dir to an absolute path
2502 am_aux_dir=`cd $ac_aux_dir && pwd`
2504 if test x"${MISSING+set}" != xset; then
2507 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2509 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2512 # Use eval to expand $SHELL
2513 if eval "$MISSING --run true"; then
2514 am_missing_run="$MISSING --run "
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2518 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2521 if test x"${install_sh}" != xset; then
2524 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2526 install_sh="\${SHELL} $am_aux_dir/install-sh"
2530 # Installed binaries are usually stripped using `strip' when the user
2531 # run `make install-strip'. However `strip' might not be the right
2532 # tool to use in cross-compilation environments, therefore Automake
2533 # will honor the `STRIP' environment variable to overrule this program.
2534 if test "$cross_compiling" != no; then
2535 if test -n "$ac_tool_prefix"; then
2536 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2537 set dummy ${ac_tool_prefix}strip; ac_word=$2
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if test "${ac_cv_prog_STRIP+set}" = set; then :
2541 $as_echo_n "(cached) " >&6
2543 if test -n "$STRIP"; then
2544 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 STRIP=$ac_cv_prog_STRIP
2564 if test -n "$STRIP"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2566 $as_echo "$STRIP" >&6; }
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 $as_echo "no" >&6; }
2574 if test -z "$ac_cv_prog_STRIP"; then
2576 # Extract the first word of "strip", so it can be a program name with args.
2577 set dummy strip; ac_word=$2
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579 $as_echo_n "checking for $ac_word... " >&6; }
2580 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2581 $as_echo_n "(cached) " >&6
2583 if test -n "$ac_ct_STRIP"; then
2584 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2593 ac_cv_prog_ac_ct_STRIP="strip"
2594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2604 if test -n "$ac_ct_STRIP"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2606 $as_echo "$ac_ct_STRIP" >&6; }
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609 $as_echo "no" >&6; }
2612 if test "x$ac_ct_STRIP" = x; then
2615 case $cross_compiling:$ac_tool_warned in
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2619 ac_tool_warned=yes ;;
2624 STRIP="$ac_cv_prog_STRIP"
2628 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2631 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2632 if test -z "$MKDIR_P"; then
2633 if test "${ac_cv_path_mkdir+set}" = set; then :
2634 $as_echo_n "(cached) " >&6
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2640 test -z "$as_dir" && as_dir=.
2641 for ac_prog in mkdir gmkdir; do
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2644 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2645 'mkdir (GNU coreutils) '* | \
2646 'mkdir (coreutils) '* | \
2647 'mkdir (fileutils) '4.1*)
2648 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2658 test -d ./--version && rmdir ./--version
2659 if test "${ac_cv_path_mkdir+set}" = set; then
2660 MKDIR_P="$ac_cv_path_mkdir -p"
2662 # As a last resort, use the slow shell script. Don't cache a
2663 # value for MKDIR_P within a source directory, because that will
2664 # break other packages using the cache if that directory is
2665 # removed, or if the value is a relative name.
2666 MKDIR_P="$ac_install_sh -d"
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2670 $as_echo "$MKDIR_P" >&6; }
2674 [\\/$]* | ?:[\\/]*) ;;
2675 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2678 for ac_prog in gawk mawk nawk awk
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681 set dummy $ac_prog; ac_word=$2
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if test "${ac_cv_prog_AWK+set}" = set; then :
2685 $as_echo_n "(cached) " >&6
2687 if test -n "$AWK"; then
2688 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_AWK="$ac_prog"
2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 if test -n "$AWK"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2710 $as_echo "$AWK" >&6; }
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713 $as_echo "no" >&6; }
2717 test -n "$AWK" && break
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2721 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2723 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2724 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2725 $as_echo_n "(cached) " >&6
2727 cat >conftest.make <<\_ACEOF
2730 @echo '@@@%%%=$(MAKE)=@@@%%%'
2732 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2733 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2735 eval ac_cv_prog_make_${ac_make}_set=yes;;
2737 eval ac_cv_prog_make_${ac_make}_set=no;;
2741 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2743 $as_echo "yes" >&6; }
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747 $as_echo "no" >&6; }
2748 SET_MAKE="MAKE=${MAKE-make}"
2751 rm -rf .tst 2>/dev/null
2752 mkdir .tst 2>/dev/null
2753 if test -d .tst; then
2758 rmdir .tst 2>/dev/null
2760 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2761 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2762 # is not polluted with repeated "-I."
2763 am__isrc=' -I$(srcdir)'
2764 # test to see if srcdir already configured
2765 if test -f $srcdir/config.status; then
2766 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2770 # test whether we have cygpath
2771 if test -z "$CYGPATH_W"; then
2772 if (cygpath --version) >/dev/null 2>/dev/null; then
2773 CYGPATH_W='cygpath -w'
2780 # Define the identity of the package.
2785 cat >>confdefs.h <<_ACEOF
2786 #define PACKAGE "$PACKAGE"
2790 cat >>confdefs.h <<_ACEOF
2791 #define VERSION "$VERSION"
2794 # Some tools Automake needs.
2796 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2799 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2802 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2805 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2808 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2810 # We need awk for the "check" target. The system "awk" is bad on
2812 # Always define AMTAR for backward compatibility.
2814 AMTAR=${AMTAR-"${am_missing_run}tar"}
2816 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2823 ac_config_headers="$ac_config_headers config.h"
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2827 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2828 # Check whether --enable-maintainer-mode was given.
2829 if test "${enable_maintainer_mode+set}" = set; then :
2830 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2832 USE_MAINTAINER_MODE=no
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2836 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2837 if test $USE_MAINTAINER_MODE = yes; then
2838 MAINTAINER_MODE_TRUE=
2839 MAINTAINER_MODE_FALSE='#'
2841 MAINTAINER_MODE_TRUE='#'
2842 MAINTAINER_MODE_FALSE=
2845 MAINT=$MAINTAINER_MODE_TRUE
2848 # Make sure we can run config.sub.
2849 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2850 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2853 $as_echo_n "checking build system type... " >&6; }
2854 if test "${ac_cv_build+set}" = set; then :
2855 $as_echo_n "(cached) " >&6
2857 ac_build_alias=$build_alias
2858 test "x$ac_build_alias" = x &&
2859 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2860 test "x$ac_build_alias" = x &&
2861 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2862 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2863 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2867 $as_echo "$ac_cv_build" >&6; }
2868 case $ac_cv_build in
2870 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2873 ac_save_IFS=$IFS; IFS='-'
2879 # Remember, the first character of IFS is used to create $*,
2880 # except with old shells:
2883 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2887 $as_echo_n "checking host system type... " >&6; }
2888 if test "${ac_cv_host+set}" = set; then :
2889 $as_echo_n "(cached) " >&6
2891 if test "x$host_alias" = x; then
2892 ac_cv_host=$ac_cv_build
2894 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2895 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2900 $as_echo "$ac_cv_host" >&6; }
2903 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2906 ac_save_IFS=$IFS; IFS='-'
2912 # Remember, the first character of IFS is used to create $*,
2913 # except with old shells:
2916 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2920 # Check whether --enable-silent-rules was given.
2921 if test "${enable_silent_rules+set}" = set; then :
2922 enableval=$enable_silent_rules;
2925 case $enable_silent_rules in
2926 yes) AM_DEFAULT_VERBOSITY=0;;
2927 no) AM_DEFAULT_VERBOSITY=1;;
2928 *) AM_DEFAULT_VERBOSITY=0;;
2933 DEPDIR="${am__leading_dot}deps"
2935 ac_config_commands="$ac_config_commands depfiles"
2938 am_make=${MAKE-make}
2939 cat > confinc << 'END'
2941 @echo this is the am__doit target
2944 # If we don't find an include directive, just comment out the code.
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2946 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2950 # First try GNU make style include.
2951 echo "include confinc" > confmf
2952 # Ignore all kinds of additional output from `make'.
2953 case `$am_make -s -f confmf 2> /dev/null` in #(
2954 *the\ am__doit\ target*)
2960 # Now try BSD make style include.
2961 if test "$am__include" = "#"; then
2962 echo '.include "confinc"' > confmf
2963 case `$am_make -s -f confmf 2> /dev/null` in #(
2964 *the\ am__doit\ target*)
2965 am__include=.include
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2974 $as_echo "$_am_result" >&6; }
2975 rm -f confinc confmf
2977 # Check whether --enable-dependency-tracking was given.
2978 if test "${enable_dependency_tracking+set}" = set; then :
2979 enableval=$enable_dependency_tracking;
2982 if test "x$enable_dependency_tracking" != xno; then
2983 am_depcomp="$ac_aux_dir/depcomp"
2986 if test "x$enable_dependency_tracking" != xno; then
2996 ac_cpp='$CPP $CPPFLAGS'
2997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000 if test -n "$ac_tool_prefix"; then
3001 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3002 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if test "${ac_cv_prog_CC+set}" = set; then :
3006 $as_echo_n "(cached) " >&6
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3018 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 if test -n "$CC"; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3031 $as_echo "$CC" >&6; }
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3039 if test -z "$ac_cv_prog_CC"; then
3041 # Extract the first word of "gcc", so it can be a program name with args.
3042 set dummy gcc; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3046 $as_echo_n "(cached) " >&6
3048 if test -n "$ac_ct_CC"; then
3049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058 ac_cv_prog_ac_ct_CC="gcc"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3069 if test -n "$ac_ct_CC"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3071 $as_echo "$ac_ct_CC" >&6; }
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3077 if test "x$ac_ct_CC" = x; then
3080 case $cross_compiling:$ac_tool_warned in
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3084 ac_tool_warned=yes ;;
3092 if test -z "$CC"; then
3093 if test -n "$ac_tool_prefix"; then
3094 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3095 set dummy ${ac_tool_prefix}cc; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if test "${ac_cv_prog_CC+set}" = set; then :
3099 $as_echo_n "(cached) " >&6
3101 if test -n "$CC"; then
3102 ac_cv_prog_CC="$CC" # Let the user override the test.
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111 ac_cv_prog_CC="${ac_tool_prefix}cc"
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 if test -n "$CC"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3124 $as_echo "$CC" >&6; }
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3133 if test -z "$CC"; then
3134 # Extract the first word of "cc", so it can be a program name with args.
3135 set dummy cc; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if test "${ac_cv_prog_CC+set}" = set; then :
3139 $as_echo_n "(cached) " >&6
3141 if test -n "$CC"; then
3142 ac_cv_prog_CC="$CC" # Let the user override the test.
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3152 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3153 ac_prog_rejected=yes
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 if test $ac_prog_rejected = yes; then
3165 # We found a bogon in the path, so make sure we never use it.
3166 set dummy $ac_cv_prog_CC
3168 if test $# != 0; then
3169 # We chose a different compiler from the bogus one.
3170 # However, it has the same basename, so the bogon will be chosen
3171 # first if we set CC to just the basename; use the full file name.
3173 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3179 if test -n "$CC"; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3181 $as_echo "$CC" >&6; }
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3189 if test -z "$CC"; then
3190 if test -n "$ac_tool_prefix"; then
3191 for ac_prog in cl.exe
3193 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if test "${ac_cv_prog_CC+set}" = set; then :
3198 $as_echo_n "(cached) " >&6
3200 if test -n "$CC"; then
3201 ac_cv_prog_CC="$CC" # Let the user override the test.
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 if test -n "$CC"; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3223 $as_echo "$CC" >&6; }
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3230 test -n "$CC" && break
3233 if test -z "$CC"; then
3235 for ac_prog in cl.exe
3237 # Extract the first word of "$ac_prog", so it can be a program name with args.
3238 set dummy $ac_prog; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3242 $as_echo_n "(cached) " >&6
3244 if test -n "$ac_ct_CC"; then
3245 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254 ac_cv_prog_ac_ct_CC="$ac_prog"
3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3265 if test -n "$ac_ct_CC"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3267 $as_echo "$ac_ct_CC" >&6; }
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3274 test -n "$ac_ct_CC" && break
3277 if test "x$ac_ct_CC" = x; then
3280 case $cross_compiling:$ac_tool_warned in
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3284 ac_tool_warned=yes ;;
3293 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error $? "no acceptable C compiler found in \$PATH
3296 See \`config.log' for more details" "$LINENO" 5 ; }
3298 # Provide some information about the compiler.
3299 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3302 for ac_option in --version -v -V -qversion; do
3303 { { ac_try="$ac_compiler $ac_option >&5"
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309 $as_echo "$ac_try_echo"; } >&5
3310 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3312 if test -s conftest.err; then
3314 ... rest of stderr output deleted ...
3315 10q' conftest.err >conftest.er1
3316 cat conftest.er1 >&5
3318 rm -f conftest.er1 conftest.err
3319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320 test $ac_status = 0; }
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3334 ac_clean_files_save=$ac_clean_files
3335 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3336 # Try to create an executable without -o first, disregard a.out.
3337 # It will help us diagnose broken compilers, and finding out an intuition
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3340 $as_echo_n "checking whether the C compiler works... " >&6; }
3341 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3343 # The possible output files:
3344 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3347 for ac_file in $ac_files
3350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3351 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3356 if { { ac_try="$ac_link_default"
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363 (eval "$ac_link_default") 2>&5
3365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366 test $ac_status = 0; }; then :
3367 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3368 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3369 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3370 # so that the user can short-circuit this test for compilers unknown to
3372 for ac_file in $ac_files ''
3374 test -f "$ac_file" || continue
3376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3379 # We found the default executable, but exeext='' is most
3383 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3385 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3387 # We set ac_cv_exeext here because the later test for it is not
3388 # safe: cross compilers may not add the suffix if given an `-o'
3389 # argument, so we may need to know it at that point already.
3390 # Even if this section looks crufty: it has the advantage of
3397 test "$ac_cv_exeext" = no && ac_cv_exeext=
3402 if test -z "$ac_file"; then :
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 $as_echo "no" >&6; }
3405 $as_echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410 as_fn_error 77 "C compiler cannot create executables
3411 See \`config.log' for more details" "$LINENO" 5 ; }
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3414 $as_echo "yes" >&6; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3417 $as_echo_n "checking for C compiler default output file name... " >&6; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3419 $as_echo "$ac_file" >&6; }
3420 ac_exeext=$ac_cv_exeext
3422 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3423 ac_clean_files=$ac_clean_files_save
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3425 $as_echo_n "checking for suffix of executables... " >&6; }
3426 if { { ac_try="$ac_link"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_link") 2>&5
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }; then :
3437 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3438 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3439 # work properly (i.e., refer to `conftest.exe'), while it won't with
3441 for ac_file in conftest.exe conftest conftest.*; do
3442 test -f "$ac_file" || continue
3444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3445 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3454 See \`config.log' for more details" "$LINENO" 5 ; }
3456 rm -f conftest conftest$ac_cv_exeext
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3458 $as_echo "$ac_cv_exeext" >&6; }
3460 rm -f conftest.$ac_ext
3461 EXEEXT=$ac_cv_exeext
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3469 FILE *f = fopen ("conftest.out", "w");
3470 return ferror (f) || fclose (f) != 0;
3476 ac_clean_files="$ac_clean_files conftest.out"
3477 # Check that the compiler produces executables we can run. If not, either
3478 # the compiler is broken, or we cross compile.
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3480 $as_echo_n "checking whether we are cross compiling... " >&6; }
3481 if test "$cross_compiling" != yes; then
3482 { { ac_try="$ac_link"
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488 $as_echo "$ac_try_echo"; } >&5
3489 (eval "$ac_link") 2>&5
3491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492 test $ac_status = 0; }
3493 if { ac_try='./conftest$ac_cv_exeext'
3494 { { case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 $as_echo "$ac_try_echo"; } >&5
3500 (eval "$ac_try") 2>&5
3502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503 test $ac_status = 0; }; }; then
3506 if test "$cross_compiling" = maybe; then
3509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511 as_fn_error $? "cannot run C compiled programs.
3512 If you meant to cross compile, use \`--host'.
3513 See \`config.log' for more details" "$LINENO" 5 ; }
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3518 $as_echo "$cross_compiling" >&6; }
3520 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3521 ac_clean_files=$ac_clean_files_save
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3523 $as_echo_n "checking for suffix of object files... " >&6; }
3524 if test "${ac_cv_objext+set}" = set; then :
3525 $as_echo_n "(cached) " >&6
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3538 rm -f conftest.o conftest.obj
3539 if { { ac_try="$ac_compile"
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545 $as_echo "$ac_try_echo"; } >&5
3546 (eval "$ac_compile") 2>&5
3548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549 test $ac_status = 0; }; then :
3550 for ac_file in conftest.o conftest.obj conftest.*; do
3551 test -f "$ac_file" || continue;
3553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3554 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3559 $as_echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564 as_fn_error $? "cannot compute suffix of object files: cannot compile
3565 See \`config.log' for more details" "$LINENO" 5 ; }
3567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3570 $as_echo "$ac_cv_objext" >&6; }
3571 OBJEXT=$ac_cv_objext
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3574 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3575 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3576 $as_echo_n "(cached) " >&6
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3592 if ac_fn_c_try_compile "$LINENO"; then :
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3602 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3603 if test $ac_compiler_gnu = yes; then
3608 ac_test_CFLAGS=${CFLAGS+set}
3609 ac_save_CFLAGS=$CFLAGS
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3611 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3612 if test "${ac_cv_prog_cc_g+set}" = set; then :
3613 $as_echo_n "(cached) " >&6
3615 ac_save_c_werror_flag=$ac_c_werror_flag
3616 ac_c_werror_flag=yes
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3630 if ac_fn_c_try_compile "$LINENO"; then :
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3645 if ac_fn_c_try_compile "$LINENO"; then :
3648 ac_c_werror_flag=$ac_save_c_werror_flag
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3661 if ac_fn_c_try_compile "$LINENO"; then :
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669 ac_c_werror_flag=$ac_save_c_werror_flag
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3672 $as_echo "$ac_cv_prog_cc_g" >&6; }
3673 if test "$ac_test_CFLAGS" = set; then
3674 CFLAGS=$ac_save_CFLAGS
3675 elif test $ac_cv_prog_cc_g = yes; then
3676 if test "$GCC" = yes; then
3682 if test "$GCC" = yes; then
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3689 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3690 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
3693 ac_cv_prog_cc_c89=no
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3699 #include <sys/types.h>
3700 #include <sys/stat.h>
3701 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3702 struct buf { int x; };
3703 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3704 static char *e (p, i)
3710 static char *f (char * (*g) (char **, int), char **p, ...)
3715 s = g (p, va_arg (v,int));
3720 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3721 function prototypes and stuff, but not '\xHH' hex character constants.
3722 These don't provoke an error unfortunately, instead are silently treated
3723 as 'x'. The following induces an error, until -std is added to get
3724 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3725 array size at least. It's necessary to write '\x00'==0 to get something
3726 that's true only with -std. */
3727 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3729 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3730 inside strings and character constants. */
3732 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3734 int test (int i, double x);
3735 struct s1 {int (*f) (int a);};
3736 struct s2 {int (*f) (double a);};
3737 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3743 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3748 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3749 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3751 CC="$ac_save_CC $ac_arg"
3752 if ac_fn_c_try_compile "$LINENO"; then :
3753 ac_cv_prog_cc_c89=$ac_arg
3755 rm -f core conftest.err conftest.$ac_objext
3756 test "x$ac_cv_prog_cc_c89" != "xno" && break
3758 rm -f conftest.$ac_ext
3763 case "x$ac_cv_prog_cc_c89" in
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3766 $as_echo "none needed" >&6; } ;;
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3769 $as_echo "unsupported" >&6; } ;;
3771 CC="$CC $ac_cv_prog_cc_c89"
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3773 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3775 if test "x$ac_cv_prog_cc_c89" != xno; then :
3780 ac_cpp='$CPP $CPPFLAGS'
3781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785 depcc="$CC" am_compiler_list=
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3788 $as_echo_n "checking dependency style of $depcc... " >&6; }
3789 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3790 $as_echo_n "(cached) " >&6
3792 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3793 # We make a subdir and do the tests there. Otherwise we can end up
3794 # making bogus files that we don't know about and never remove. For
3795 # instance it was reported that on HP-UX the gcc test will end up
3796 # making a dummy file named `D' -- because `-MD' means `put the output
3799 # Copy depcomp to subdir because otherwise we won't find it if we're
3800 # using a relative directory.
3801 cp "$am_depcomp" conftest.dir
3803 # We will build objects and dependencies in a subdirectory because
3804 # it helps to detect inapplicable dependency modes. For instance
3805 # both Tru64's cc and ICC support -MD to output dependencies as a
3806 # side effect of compilation, but ICC will put the dependencies in
3807 # the current directory while Tru64 will put them in the object
3811 am_cv_CC_dependencies_compiler_type=none
3812 if test "$am_compiler_list" = ""; then
3813 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3816 case " $depcc " in #(
3817 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3820 for depmode in $am_compiler_list; do
3821 # Setup a source with many dependencies, because some compilers
3822 # like to wrap large dependency lists on column 80 (with \), and
3823 # we should not choose a depcomp mode which is confused by this.
3825 # We need to recreate these files for each test, as the compiler may
3826 # overwrite some of them when testing with obscure command lines.
3827 # This happens at least with the AIX C compiler.
3829 for i in 1 2 3 4 5 6; do
3830 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3831 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3832 # Solaris 8's {/usr,}/bin/sh.
3833 touch sub/conftst$i.h
3835 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3837 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3838 # mode. It turns out that the SunPro C++ compiler does not properly
3839 # handle `-M -o', and we need to detect this. Also, some Intel
3840 # versions had trouble with output in subdirs
3841 am__obj=sub/conftest.${OBJEXT-o}
3842 am__minus_obj="-o $am__obj"
3845 # This depmode causes a compiler race in universal mode.
3846 test "$am__universal" = false || continue
3849 # after this tag, mechanisms are not by side-effect, so they'll
3850 # only be used when explicitly requested
3851 if test "x$enable_dependency_tracking" = xyes; then
3857 msvisualcpp | msvcmsys)
3858 # This compiler won't grok `-c -o', but also, the minuso test has
3859 # not run yet. These depmodes are late enough in the game, and
3860 # so weak that their functioning should not be impacted.
3861 am__obj=conftest.${OBJEXT-o}
3866 if depmode=$depmode \
3867 source=sub/conftest.c object=$am__obj \
3868 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3869 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3870 >/dev/null 2>conftest.err &&
3871 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3872 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3873 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3874 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3875 # icc doesn't choke on unknown options, it will just issue warnings
3876 # or remarks (even with -Werror). So we grep stderr for any message
3877 # that says an option was ignored or not supported.
3878 # When given -MP, icc 7.0 and 7.1 complain thusly:
3879 # icc: Command line warning: ignoring option '-M'; no argument required
3880 # The diagnosis changed in icc 8.0:
3881 # icc: Command line remark: option '-MP' not supported
3882 if (grep 'ignoring option' conftest.err ||
3883 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3884 am_cv_CC_dependencies_compiler_type=$depmode
3893 am_cv_CC_dependencies_compiler_type=none
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3898 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3899 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3902 test "x$enable_dependency_tracking" != xno \
3903 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3905 am__fastdepCC_FALSE='#'
3907 am__fastdepCC_TRUE='#'
3908 am__fastdepCC_FALSE=
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3914 $as_echo_n "checking for library containing strerror... " >&6; }
3915 if test "${ac_cv_search_strerror+set}" = set; then :
3916 $as_echo_n "(cached) " >&6
3918 ac_func_search_save_LIBS=$LIBS
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3922 /* Override any GCC internal prototype to avoid an error.
3923 Use char because int might match the return type of a GCC
3924 builtin and then its argument prototype would still apply. */
3937 for ac_lib in '' cposix; do
3938 if test -z "$ac_lib"; then
3939 ac_res="none required"
3942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3944 if ac_fn_c_try_link "$LINENO"; then :
3945 ac_cv_search_strerror=$ac_res
3947 rm -f core conftest.err conftest.$ac_objext \
3949 if test "${ac_cv_search_strerror+set}" = set; then :
3953 if test "${ac_cv_search_strerror+set}" = set; then :
3956 ac_cv_search_strerror=no
3959 LIBS=$ac_func_search_save_LIBS
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3962 $as_echo "$ac_cv_search_strerror" >&6; }
3963 ac_res=$ac_cv_search_strerror
3964 if test "$ac_res" != no; then :
3965 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974 if test -n "$ac_tool_prefix"; then
3975 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3976 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if test "${ac_cv_prog_CC+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3982 if test -n "$CC"; then
3983 ac_cv_prog_CC="$CC" # Let the user override the test.
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3992 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 if test -n "$CC"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4005 $as_echo "$CC" >&6; }
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4013 if test -z "$ac_cv_prog_CC"; then
4015 # Extract the first word of "gcc", so it can be a program name with args.
4016 set dummy gcc; ac_word=$2
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018 $as_echo_n "checking for $ac_word... " >&6; }
4019 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4020 $as_echo_n "(cached) " >&6
4022 if test -n "$ac_ct_CC"; then
4023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4032 ac_cv_prog_ac_ct_CC="gcc"
4033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4043 if test -n "$ac_ct_CC"; then
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4045 $as_echo "$ac_ct_CC" >&6; }
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048 $as_echo "no" >&6; }
4051 if test "x$ac_ct_CC" = x; then
4054 case $cross_compiling:$ac_tool_warned in
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4058 ac_tool_warned=yes ;;
4066 if test -z "$CC"; then
4067 if test -n "$ac_tool_prefix"; then
4068 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4069 set dummy ${ac_tool_prefix}cc; ac_word=$2
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4071 $as_echo_n "checking for $ac_word... " >&6; }
4072 if test "${ac_cv_prog_CC+set}" = set; then :
4073 $as_echo_n "(cached) " >&6
4075 if test -n "$CC"; then
4076 ac_cv_prog_CC="$CC" # Let the user override the test.
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4085 ac_cv_prog_CC="${ac_tool_prefix}cc"
4086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 if test -n "$CC"; then
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4098 $as_echo "$CC" >&6; }
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101 $as_echo "no" >&6; }
4107 if test -z "$CC"; then
4108 # Extract the first word of "cc", so it can be a program name with args.
4109 set dummy cc; ac_word=$2
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4111 $as_echo_n "checking for $ac_word... " >&6; }
4112 if test "${ac_cv_prog_CC+set}" = set; then :
4113 $as_echo_n "(cached) " >&6
4115 if test -n "$CC"; then
4116 ac_cv_prog_CC="$CC" # Let the user override the test.
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4127 ac_prog_rejected=yes
4131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 if test $ac_prog_rejected = yes; then
4139 # We found a bogon in the path, so make sure we never use it.
4140 set dummy $ac_cv_prog_CC
4142 if test $# != 0; then
4143 # We chose a different compiler from the bogus one.
4144 # However, it has the same basename, so the bogon will be chosen
4145 # first if we set CC to just the basename; use the full file name.
4147 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4153 if test -n "$CC"; then
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4155 $as_echo "$CC" >&6; }
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 $as_echo "no" >&6; }
4163 if test -z "$CC"; then
4164 if test -n "$ac_tool_prefix"; then
4165 for ac_prog in cl.exe
4167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if test "${ac_cv_prog_CC+set}" = set; then :
4172 $as_echo_n "(cached) " >&6
4174 if test -n "$CC"; then
4175 ac_cv_prog_CC="$CC" # Let the user override the test.
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 test -z "$as_dir" && as_dir=.
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4184 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4195 if test -n "$CC"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4197 $as_echo "$CC" >&6; }
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4204 test -n "$CC" && break
4207 if test -z "$CC"; then
4209 for ac_prog in cl.exe
4211 # Extract the first word of "$ac_prog", so it can be a program name with args.
4212 set dummy $ac_prog; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4216 $as_echo_n "(cached) " >&6
4218 if test -n "$ac_ct_CC"; then
4219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 test -z "$as_dir" && as_dir=.
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4228 ac_cv_prog_ac_ct_CC="$ac_prog"
4229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4239 if test -n "$ac_ct_CC"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4241 $as_echo "$ac_ct_CC" >&6; }
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4248 test -n "$ac_ct_CC" && break
4251 if test "x$ac_ct_CC" = x; then
4254 case $cross_compiling:$ac_tool_warned in
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4258 ac_tool_warned=yes ;;
4267 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269 as_fn_error $? "no acceptable C compiler found in \$PATH
4270 See \`config.log' for more details" "$LINENO" 5 ; }
4272 # Provide some information about the compiler.
4273 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4276 for ac_option in --version -v -V -qversion; do
4277 { { ac_try="$ac_compiler $ac_option >&5"
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4283 $as_echo "$ac_try_echo"; } >&5
4284 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4286 if test -s conftest.err; then
4288 ... rest of stderr output deleted ...
4289 10q' conftest.err >conftest.er1
4290 cat conftest.er1 >&5
4292 rm -f conftest.er1 conftest.err
4293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4294 test $ac_status = 0; }
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4298 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4299 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4300 $as_echo_n "(cached) " >&6
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4316 if ac_fn_c_try_compile "$LINENO"; then :
4321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4326 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4327 if test $ac_compiler_gnu = yes; then
4332 ac_test_CFLAGS=${CFLAGS+set}
4333 ac_save_CFLAGS=$CFLAGS
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4335 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4336 if test "${ac_cv_prog_cc_g+set}" = set; then :
4337 $as_echo_n "(cached) " >&6
4339 ac_save_c_werror_flag=$ac_c_werror_flag
4340 ac_c_werror_flag=yes
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4354 if ac_fn_c_try_compile "$LINENO"; then :
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4369 if ac_fn_c_try_compile "$LINENO"; then :
4372 ac_c_werror_flag=$ac_save_c_werror_flag
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4385 if ac_fn_c_try_compile "$LINENO"; then :
4388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393 ac_c_werror_flag=$ac_save_c_werror_flag
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4396 $as_echo "$ac_cv_prog_cc_g" >&6; }
4397 if test "$ac_test_CFLAGS" = set; then
4398 CFLAGS=$ac_save_CFLAGS
4399 elif test $ac_cv_prog_cc_g = yes; then
4400 if test "$GCC" = yes; then
4406 if test "$GCC" = yes; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4413 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4414 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4415 $as_echo_n "(cached) " >&6
4417 ac_cv_prog_cc_c89=no
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4423 #include <sys/types.h>
4424 #include <sys/stat.h>
4425 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4426 struct buf { int x; };
4427 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4428 static char *e (p, i)
4434 static char *f (char * (*g) (char **, int), char **p, ...)
4439 s = g (p, va_arg (v,int));
4444 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4445 function prototypes and stuff, but not '\xHH' hex character constants.
4446 These don't provoke an error unfortunately, instead are silently treated
4447 as 'x'. The following induces an error, until -std is added to get
4448 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4449 array size at least. It's necessary to write '\x00'==0 to get something
4450 that's true only with -std. */
4451 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4453 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4454 inside strings and character constants. */
4456 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4458 int test (int i, double x);
4459 struct s1 {int (*f) (int a);};
4460 struct s2 {int (*f) (double a);};
4461 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4467 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4472 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4473 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4475 CC="$ac_save_CC $ac_arg"
4476 if ac_fn_c_try_compile "$LINENO"; then :
4477 ac_cv_prog_cc_c89=$ac_arg
4479 rm -f core conftest.err conftest.$ac_objext
4480 test "x$ac_cv_prog_cc_c89" != "xno" && break
4482 rm -f conftest.$ac_ext
4487 case "x$ac_cv_prog_cc_c89" in
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4490 $as_echo "none needed" >&6; } ;;
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4493 $as_echo "unsupported" >&6; } ;;
4495 CC="$CC $ac_cv_prog_cc_c89"
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4497 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4499 if test "x$ac_cv_prog_cc_c89" != xno; then :
4504 ac_cpp='$CPP $CPPFLAGS'
4505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509 depcc="$CC" am_compiler_list=
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4512 $as_echo_n "checking dependency style of $depcc... " >&6; }
4513 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4514 $as_echo_n "(cached) " >&6
4516 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4517 # We make a subdir and do the tests there. Otherwise we can end up
4518 # making bogus files that we don't know about and never remove. For
4519 # instance it was reported that on HP-UX the gcc test will end up
4520 # making a dummy file named `D' -- because `-MD' means `put the output
4523 # Copy depcomp to subdir because otherwise we won't find it if we're
4524 # using a relative directory.
4525 cp "$am_depcomp" conftest.dir
4527 # We will build objects and dependencies in a subdirectory because
4528 # it helps to detect inapplicable dependency modes. For instance
4529 # both Tru64's cc and ICC support -MD to output dependencies as a
4530 # side effect of compilation, but ICC will put the dependencies in
4531 # the current directory while Tru64 will put them in the object
4535 am_cv_CC_dependencies_compiler_type=none
4536 if test "$am_compiler_list" = ""; then
4537 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4540 case " $depcc " in #(
4541 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4544 for depmode in $am_compiler_list; do
4545 # Setup a source with many dependencies, because some compilers
4546 # like to wrap large dependency lists on column 80 (with \), and
4547 # we should not choose a depcomp mode which is confused by this.
4549 # We need to recreate these files for each test, as the compiler may
4550 # overwrite some of them when testing with obscure command lines.
4551 # This happens at least with the AIX C compiler.
4553 for i in 1 2 3 4 5 6; do
4554 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4555 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4556 # Solaris 8's {/usr,}/bin/sh.
4557 touch sub/conftst$i.h
4559 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4561 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4562 # mode. It turns out that the SunPro C++ compiler does not properly
4563 # handle `-M -o', and we need to detect this. Also, some Intel
4564 # versions had trouble with output in subdirs
4565 am__obj=sub/conftest.${OBJEXT-o}
4566 am__minus_obj="-o $am__obj"
4569 # This depmode causes a compiler race in universal mode.
4570 test "$am__universal" = false || continue
4573 # after this tag, mechanisms are not by side-effect, so they'll
4574 # only be used when explicitly requested
4575 if test "x$enable_dependency_tracking" = xyes; then
4581 msvisualcpp | msvcmsys)
4582 # This compiler won't grok `-c -o', but also, the minuso test has
4583 # not run yet. These depmodes are late enough in the game, and
4584 # so weak that their functioning should not be impacted.
4585 am__obj=conftest.${OBJEXT-o}
4590 if depmode=$depmode \
4591 source=sub/conftest.c object=$am__obj \
4592 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4593 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4594 >/dev/null 2>conftest.err &&
4595 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4596 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4597 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4598 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4599 # icc doesn't choke on unknown options, it will just issue warnings
4600 # or remarks (even with -Werror). So we grep stderr for any message
4601 # that says an option was ignored or not supported.
4602 # When given -MP, icc 7.0 and 7.1 complain thusly:
4603 # icc: Command line warning: ignoring option '-M'; no argument required
4604 # The diagnosis changed in icc 8.0:
4605 # icc: Command line remark: option '-MP' not supported
4606 if (grep 'ignoring option' conftest.err ||
4607 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4608 am_cv_CC_dependencies_compiler_type=$depmode
4617 am_cv_CC_dependencies_compiler_type=none
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4622 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4623 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4626 test "x$enable_dependency_tracking" != xno \
4627 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4629 am__fastdepCC_FALSE='#'
4631 am__fastdepCC_TRUE='#'
4632 am__fastdepCC_FALSE=
4637 ac_cpp='$CPP $CPPFLAGS'
4638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4642 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4643 # On Suns, sometimes $CPP names a directory.
4644 if test -n "$CPP" && test -d "$CPP"; then
4647 if test -z "$CPP"; then
4648 if test "${ac_cv_prog_CPP+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
4651 # Double quotes because CPP needs to be expanded
4652 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4655 for ac_c_preproc_warn_flag in '' yes
4657 # Use a header file that comes with gcc, so configuring glibc
4658 # with a fresh cross-compiler works.
4659 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4660 # <limits.h> exists even on freestanding compilers.
4661 # On the NeXT, cc -E runs the code through the compiler's parser,
4662 # not just through cpp. "Syntax error" is here to catch this case.
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4666 # include <limits.h>
4668 # include <assert.h>
4672 if ac_fn_c_try_cpp "$LINENO"; then :
4675 # Broken: fails on valid input.
4678 rm -f conftest.err conftest.i conftest.$ac_ext
4680 # OK, works on sane cases. Now check whether nonexistent headers
4681 # can be detected and how.
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4684 #include <ac_nonexistent.h>
4686 if ac_fn_c_try_cpp "$LINENO"; then :
4687 # Broken: success on invalid input.
4690 # Passes both tests.
4694 rm -f conftest.err conftest.i conftest.$ac_ext
4697 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4698 rm -f conftest.i conftest.err conftest.$ac_ext
4699 if $ac_preproc_ok; then :
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4712 $as_echo "$CPP" >&6; }
4714 for ac_c_preproc_warn_flag in '' yes
4716 # Use a header file that comes with gcc, so configuring glibc
4717 # with a fresh cross-compiler works.
4718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4719 # <limits.h> exists even on freestanding compilers.
4720 # On the NeXT, cc -E runs the code through the compiler's parser,
4721 # not just through cpp. "Syntax error" is here to catch this case.
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4725 # include <limits.h>
4727 # include <assert.h>
4731 if ac_fn_c_try_cpp "$LINENO"; then :
4734 # Broken: fails on valid input.
4737 rm -f conftest.err conftest.i conftest.$ac_ext
4739 # OK, works on sane cases. Now check whether nonexistent headers
4740 # can be detected and how.
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4743 #include <ac_nonexistent.h>
4745 if ac_fn_c_try_cpp "$LINENO"; then :
4746 # Broken: success on invalid input.
4749 # Passes both tests.
4753 rm -f conftest.err conftest.i conftest.$ac_ext
4756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4757 rm -f conftest.i conftest.err conftest.$ac_ext
4758 if $ac_preproc_ok; then :
4761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4763 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4764 See \`config.log' for more details" "$LINENO" 5 ; }
4768 ac_cpp='$CPP $CPPFLAGS'
4769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4775 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4776 if test "${ac_cv_path_GREP+set}" = set; then :
4777 $as_echo_n "(cached) " >&6
4779 if test -z "$GREP"; then
4780 ac_path_GREP_found=false
4781 # Loop through the user's path and test for each of PROGNAME-LIST
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4786 test -z "$as_dir" && as_dir=.
4787 for ac_prog in grep ggrep; do
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4790 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4791 # Check for GNU ac_path_GREP and select it if it is found.
4792 # Check for GNU $ac_path_GREP
4793 case `"$ac_path_GREP" --version 2>&1` in
4795 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4798 $as_echo_n 0123456789 >"conftest.in"
4801 cat "conftest.in" "conftest.in" >"conftest.tmp"
4802 mv "conftest.tmp" "conftest.in"
4803 cp "conftest.in" "conftest.nl"
4804 $as_echo 'GREP' >> "conftest.nl"
4805 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4806 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4807 as_fn_arith $ac_count + 1 && ac_count=$as_val
4808 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4809 # Best one so far, save it but keep looking for a better one
4810 ac_cv_path_GREP="$ac_path_GREP"
4811 ac_path_GREP_max=$ac_count
4813 # 10*(2^10) chars as input seems more than enough
4814 test $ac_count -gt 10 && break
4816 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4819 $ac_path_GREP_found && break 3
4824 if test -z "$ac_cv_path_GREP"; then
4825 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4828 ac_cv_path_GREP=$GREP
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4833 $as_echo "$ac_cv_path_GREP" >&6; }
4834 GREP="$ac_cv_path_GREP"
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4838 $as_echo_n "checking for egrep... " >&6; }
4839 if test "${ac_cv_path_EGREP+set}" = set; then :
4840 $as_echo_n "(cached) " >&6
4842 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4843 then ac_cv_path_EGREP="$GREP -E"
4845 if test -z "$EGREP"; then
4846 ac_path_EGREP_found=false
4847 # Loop through the user's path and test for each of PROGNAME-LIST
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4852 test -z "$as_dir" && as_dir=.
4853 for ac_prog in egrep; do
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4856 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4857 # Check for GNU ac_path_EGREP and select it if it is found.
4858 # Check for GNU $ac_path_EGREP
4859 case `"$ac_path_EGREP" --version 2>&1` in
4861 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4864 $as_echo_n 0123456789 >"conftest.in"
4867 cat "conftest.in" "conftest.in" >"conftest.tmp"
4868 mv "conftest.tmp" "conftest.in"
4869 cp "conftest.in" "conftest.nl"
4870 $as_echo 'EGREP' >> "conftest.nl"
4871 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4873 as_fn_arith $ac_count + 1 && ac_count=$as_val
4874 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4875 # Best one so far, save it but keep looking for a better one
4876 ac_cv_path_EGREP="$ac_path_EGREP"
4877 ac_path_EGREP_max=$ac_count
4879 # 10*(2^10) chars as input seems more than enough
4880 test $ac_count -gt 10 && break
4882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4885 $ac_path_EGREP_found && break 3
4890 if test -z "$ac_cv_path_EGREP"; then
4891 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4894 ac_cv_path_EGREP=$EGREP
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4900 $as_echo "$ac_cv_path_EGREP" >&6; }
4901 EGREP="$ac_cv_path_EGREP"
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4905 $as_echo_n "checking for ANSI C header files... " >&6; }
4906 if test "${ac_cv_header_stdc+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4924 if ac_fn_c_try_compile "$LINENO"; then :
4925 ac_cv_header_stdc=yes
4927 ac_cv_header_stdc=no
4929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931 if test $ac_cv_header_stdc = yes; then
4932 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4939 $EGREP "memchr" >/dev/null 2>&1; then :
4942 ac_cv_header_stdc=no
4948 if test $ac_cv_header_stdc = yes; then
4949 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4956 $EGREP "free" >/dev/null 2>&1; then :
4959 ac_cv_header_stdc=no
4965 if test $ac_cv_header_stdc = yes; then
4966 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4967 if test "$cross_compiling" = yes; then :
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4974 #if ((' ' & 0x0FF) == 0x020)
4975 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4976 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4978 # define ISLOWER(c) \
4979 (('a' <= (c) && (c) <= 'i') \
4980 || ('j' <= (c) && (c) <= 'r') \
4981 || ('s' <= (c) && (c) <= 'z'))
4982 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4990 for (i = 0; i < 256; i++)
4991 if (XOR (islower (i), ISLOWER (i))
4992 || toupper (i) != TOUPPER (i))
4997 if ac_fn_c_try_run "$LINENO"; then :
5000 ac_cv_header_stdc=no
5002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5003 conftest.$ac_objext conftest.beam conftest.$ac_ext
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5009 $as_echo "$ac_cv_header_stdc" >&6; }
5010 if test $ac_cv_header_stdc = yes; then
5012 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5019 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5024 macro_version='2.2.6b'
5025 macro_revision='1.3017'
5039 ltmain="$ac_aux_dir/ltmain.sh"
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5042 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5043 if test "${ac_cv_path_SED+set}" = set; then :
5044 $as_echo_n "(cached) " >&6
5046 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5047 for ac_i in 1 2 3 4 5 6 7; do
5048 ac_script="$ac_script$as_nl$ac_script"
5050 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5051 { ac_script=; unset ac_script;}
5052 if test -z "$SED"; then
5053 ac_path_SED_found=false
5054 # Loop through the user's path and test for each of PROGNAME-LIST
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 test -z "$as_dir" && as_dir=.
5060 for ac_prog in sed gsed; do
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5063 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5064 # Check for GNU ac_path_SED and select it if it is found.
5065 # Check for GNU $ac_path_SED
5066 case `"$ac_path_SED" --version 2>&1` in
5068 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5071 $as_echo_n 0123456789 >"conftest.in"
5074 cat "conftest.in" "conftest.in" >"conftest.tmp"
5075 mv "conftest.tmp" "conftest.in"
5076 cp "conftest.in" "conftest.nl"
5077 $as_echo '' >> "conftest.nl"
5078 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5079 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5080 as_fn_arith $ac_count + 1 && ac_count=$as_val
5081 if test $ac_count -gt ${ac_path_SED_max-0}; then
5082 # Best one so far, save it but keep looking for a better one
5083 ac_cv_path_SED="$ac_path_SED"
5084 ac_path_SED_max=$ac_count
5086 # 10*(2^10) chars as input seems more than enough
5087 test $ac_count -gt 10 && break
5089 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5092 $ac_path_SED_found && break 3
5097 if test -z "$ac_cv_path_SED"; then
5098 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5106 $as_echo "$ac_cv_path_SED" >&6; }
5107 SED="$ac_cv_path_SED"
5110 test -z "$SED" && SED=sed
5111 Xsed="$SED -e 1s/^X//"
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5124 $as_echo_n "checking for fgrep... " >&6; }
5125 if test "${ac_cv_path_FGREP+set}" = set; then :
5126 $as_echo_n "(cached) " >&6
5128 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5129 then ac_cv_path_FGREP="$GREP -F"
5131 if test -z "$FGREP"; then
5132 ac_path_FGREP_found=false
5133 # Loop through the user's path and test for each of PROGNAME-LIST
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5138 test -z "$as_dir" && as_dir=.
5139 for ac_prog in fgrep; do
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5142 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5143 # Check for GNU ac_path_FGREP and select it if it is found.
5144 # Check for GNU $ac_path_FGREP
5145 case `"$ac_path_FGREP" --version 2>&1` in
5147 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5150 $as_echo_n 0123456789 >"conftest.in"
5153 cat "conftest.in" "conftest.in" >"conftest.tmp"
5154 mv "conftest.tmp" "conftest.in"
5155 cp "conftest.in" "conftest.nl"
5156 $as_echo 'FGREP' >> "conftest.nl"
5157 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5158 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5159 as_fn_arith $ac_count + 1 && ac_count=$as_val
5160 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5161 # Best one so far, save it but keep looking for a better one
5162 ac_cv_path_FGREP="$ac_path_FGREP"
5163 ac_path_FGREP_max=$ac_count
5165 # 10*(2^10) chars as input seems more than enough
5166 test $ac_count -gt 10 && break
5168 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5171 $ac_path_FGREP_found && break 3
5176 if test -z "$ac_cv_path_FGREP"; then
5177 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5180 ac_cv_path_FGREP=$FGREP
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5186 $as_echo "$ac_cv_path_FGREP" >&6; }
5187 FGREP="$ac_cv_path_FGREP"
5190 test -z "$GREP" && GREP=grep
5210 # Check whether --with-gnu-ld was given.
5211 if test "${with_gnu_ld+set}" = set; then :
5212 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5218 if test "$GCC" = yes; then
5219 # Check if gcc -print-prog-name=ld gives a path.
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5221 $as_echo_n "checking for ld used by $CC... " >&6; }
5224 # gcc leaves a trailing carriage return which upsets mingw
5225 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5227 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5230 # Accept absolute paths.
5232 re_direlt='/[^/][^/]*/\.\./'
5233 # Canonicalize the pathname of ld
5234 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5235 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5236 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5238 test -z "$LD" && LD="$ac_prog"
5241 # If it fails, then pretend we aren't using GCC.
5245 # If it is relative, then search for the first ld in PATH.
5249 elif test "$with_gnu_ld" = yes; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5251 $as_echo_n "checking for GNU ld... " >&6; }
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5254 $as_echo_n "checking for non-GNU ld... " >&6; }
5256 if test "${lt_cv_path_LD+set}" = set; then :
5257 $as_echo_n "(cached) " >&6
5259 if test -z "$LD"; then
5260 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5261 for ac_dir in $PATH; do
5263 test -z "$ac_dir" && ac_dir=.
5264 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5265 lt_cv_path_LD="$ac_dir/$ac_prog"
5266 # Check to see if the program is GNU ld. I'd rather use --version,
5267 # but apparently some variants of GNU ld only accept -v.
5268 # Break only if it was the GNU/non-GNU ld that we prefer.
5269 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5270 *GNU* | *'with BFD'*)
5271 test "$with_gnu_ld" != no && break
5274 test "$with_gnu_ld" != yes && break
5281 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5286 if test -n "$LD"; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5288 $as_echo "$LD" >&6; }
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5293 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5295 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5296 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5297 $as_echo_n "(cached) " >&6
5299 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5300 case `$LD -v 2>&1 </dev/null` in
5301 *GNU* | *'with BFD'*)
5302 lt_cv_prog_gnu_ld=yes
5305 lt_cv_prog_gnu_ld=no
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5310 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5311 with_gnu_ld=$lt_cv_prog_gnu_ld
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5322 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5323 if test "${lt_cv_path_NM+set}" = set; then :
5324 $as_echo_n "(cached) " >&6
5326 if test -n "$NM"; then
5327 # Let the user override the test.
5330 lt_nm_to_check="${ac_tool_prefix}nm"
5331 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5332 lt_nm_to_check="$lt_nm_to_check nm"
5334 for lt_tmp_nm in $lt_nm_to_check; do
5335 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5336 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5338 test -z "$ac_dir" && ac_dir=.
5339 tmp_nm="$ac_dir/$lt_tmp_nm"
5340 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5341 # Check to see if the nm accepts a BSD-compat flag.
5342 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5343 # nm: unknown option "B" ignored
5344 # Tru64's nm complains that /dev/null is an invalid object file
5345 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5346 */dev/null* | *'Invalid file or object type'*)
5347 lt_cv_path_NM="$tmp_nm -B"
5351 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5353 lt_cv_path_NM="$tmp_nm -p"
5357 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5358 continue # so that we can try to find one that supports BSD flags
5367 : ${lt_cv_path_NM=no}
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5371 $as_echo "$lt_cv_path_NM" >&6; }
5372 if test "$lt_cv_path_NM" != "no"; then
5375 # Didn't find any BSD compatible name lister, look for dumpbin.
5376 if test -n "$ac_tool_prefix"; then
5377 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
5386 if test -n "$DUMPBIN"; then
5387 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 DUMPBIN=$ac_cv_prog_DUMPBIN
5407 if test -n "$DUMPBIN"; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5409 $as_echo "$DUMPBIN" >&6; }
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5416 test -n "$DUMPBIN" && break
5419 if test -z "$DUMPBIN"; then
5420 ac_ct_DUMPBIN=$DUMPBIN
5421 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5423 # Extract the first word of "$ac_prog", so it can be a program name with args.
5424 set dummy $ac_prog; ac_word=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5428 $as_echo_n "(cached) " >&6
5430 if test -n "$ac_ct_DUMPBIN"; then
5431 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5440 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5451 if test -n "$ac_ct_DUMPBIN"; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5453 $as_echo "$ac_ct_DUMPBIN" >&6; }
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5460 test -n "$ac_ct_DUMPBIN" && break
5463 if test "x$ac_ct_DUMPBIN" = x; then
5466 case $cross_compiling:$ac_tool_warned in
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5470 ac_tool_warned=yes ;;
5472 DUMPBIN=$ac_ct_DUMPBIN
5477 if test "$DUMPBIN" != ":"; then
5481 test -z "$NM" && NM=nm
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5489 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5490 if test "${lt_cv_nm_interface+set}" = set; then :
5491 $as_echo_n "(cached) " >&6
5493 lt_cv_nm_interface="BSD nm"
5494 echo "int some_variable = 0;" > conftest.$ac_ext
5495 (eval echo "\"\$as_me:5495: $ac_compile\"" >&5)
5496 (eval "$ac_compile" 2>conftest.err)
5497 cat conftest.err >&5
5498 (eval echo "\"\$as_me:5498: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5499 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5500 cat conftest.err >&5
5501 (eval echo "\"\$as_me:5501: output\"" >&5)
5502 cat conftest.out >&5
5503 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5504 lt_cv_nm_interface="MS dumpbin"
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5509 $as_echo "$lt_cv_nm_interface" >&6; }
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5512 $as_echo_n "checking whether ln -s works... " >&6; }
5514 if test "$LN_S" = "ln -s"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5516 $as_echo "yes" >&6; }
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5519 $as_echo "no, using $LN_S" >&6; }
5522 # find the maximum length of command line arguments
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5524 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5525 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
5533 # On DJGPP, this test can blow up pretty badly due to problems in libc
5534 # (any single argument exceeding 2000 bytes causes a buffer overrun
5535 # during glob expansion). Even if it were fixed, the result of this
5536 # check would be larger than it should be.
5537 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5541 # Under GNU Hurd, this test is not required because there is
5542 # no limit to the length of command line arguments.
5543 # Libtool will interpret -1 as no limit whatsoever
5544 lt_cv_sys_max_cmd_len=-1;
5547 cygwin* | mingw* | cegcc*)
5548 # On Win9x/ME, this test blows up -- it succeeds, but takes
5549 # about 5 minutes as the teststring grows exponentially.
5550 # Worse, since 9x/ME are not pre-emptively multitasking,
5551 # you end up with a "frozen" computer, even though with patience
5552 # the test eventually succeeds (with a max line length of 256k).
5553 # Instead, let's just punt: use the minimum linelength reported by
5554 # all of the supported platforms: 8192 (on NT/2K/XP).
5555 lt_cv_sys_max_cmd_len=8192;
5559 # On AmigaOS with pdksh, this test takes hours, literally.
5560 # So we just punt and use a minimum line length of 8192.
5561 lt_cv_sys_max_cmd_len=8192;
5564 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5565 # This has been around since 386BSD, at least. Likely further.
5566 if test -x /sbin/sysctl; then
5567 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5568 elif test -x /usr/sbin/sysctl; then
5569 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5571 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5573 # And add a safety zone
5574 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5575 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5579 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5580 lt_cv_sys_max_cmd_len=196608
5584 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5585 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5586 # nice to cause kernel panics so lets avoid the loop below.
5587 # First set a reasonable default.
5588 lt_cv_sys_max_cmd_len=16384
5590 if test -x /sbin/sysconfig; then
5591 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5592 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5597 lt_cv_sys_max_cmd_len=102400
5599 sysv5* | sco5v6* | sysv4.2uw2*)
5600 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5601 if test -n "$kargmax"; then
5602 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5604 lt_cv_sys_max_cmd_len=32768
5608 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5609 if test -n "$lt_cv_sys_max_cmd_len"; then
5610 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5611 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5613 # Make teststring a little bigger before we do anything with it.
5614 # a 1K string should be a reasonable start.
5615 for i in 1 2 3 4 5 6 7 8 ; do
5616 teststring=$teststring$teststring
5618 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5619 # If test is not a shell built-in, we'll probably end up computing a
5620 # maximum length that is only half of the actual maximum length, but
5622 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5623 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5624 test $i != 17 # 1/2 MB should be enough
5627 teststring=$teststring$teststring
5629 # Only check the string length outside the loop.
5630 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5632 # Add a significant safety factor because C++ compilers can tack on
5633 # massive amounts of additional arguments before passing them to the
5634 # linker. It appears as though 1/2 is a usable value.
5635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5642 if test -n $lt_cv_sys_max_cmd_len ; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5644 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5647 $as_echo "none" >&6; }
5649 max_cmd_len=$lt_cv_sys_max_cmd_len
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5661 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5662 # Try some XSI features
5665 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5667 && eval 'test $(( 1 + 1 )) -eq 2 \
5668 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5671 $as_echo "$xsi_shell" >&6; }
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5675 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5677 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5679 && lt_shell_append=yes
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5681 $as_echo "$lt_shell_append" >&6; }
5684 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5694 # test EBCDIC or ASCII
5695 case `echo X|tr X '\101'` in
5696 A) # ASCII based system
5697 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5698 lt_SP2NL='tr \040 \012'
5699 lt_NL2SP='tr \015\012 \040\040'
5701 *) # EBCDIC based system
5702 lt_SP2NL='tr \100 \n'
5703 lt_NL2SP='tr \r\n \100\100'
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5716 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5717 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5718 $as_echo_n "(cached) " >&6
5720 lt_cv_ld_reload_flag='-r'
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5723 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5724 reload_flag=$lt_cv_ld_reload_flag
5725 case $reload_flag in
5727 *) reload_flag=" $reload_flag" ;;
5729 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5732 if test "$GCC" = yes; then
5733 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5735 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5748 if test -n "$ac_tool_prefix"; then
5749 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5750 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5752 $as_echo_n "checking for $ac_word... " >&6; }
5753 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5754 $as_echo_n "(cached) " >&6
5756 if test -n "$OBJDUMP"; then
5757 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 test -z "$as_dir" && as_dir=.
5764 for ac_exec_ext in '' $ac_executable_extensions; do
5765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5766 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 OBJDUMP=$ac_cv_prog_OBJDUMP
5777 if test -n "$OBJDUMP"; then
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5779 $as_echo "$OBJDUMP" >&6; }
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5782 $as_echo "no" >&6; }
5787 if test -z "$ac_cv_prog_OBJDUMP"; then
5788 ac_ct_OBJDUMP=$OBJDUMP
5789 # Extract the first word of "objdump", so it can be a program name with args.
5790 set dummy objdump; ac_word=$2
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5794 $as_echo_n "(cached) " >&6
5796 if test -n "$ac_ct_OBJDUMP"; then
5797 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5806 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5817 if test -n "$ac_ct_OBJDUMP"; then
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5819 $as_echo "$ac_ct_OBJDUMP" >&6; }
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5825 if test "x$ac_ct_OBJDUMP" = x; then
5828 case $cross_compiling:$ac_tool_warned in
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5832 ac_tool_warned=yes ;;
5834 OBJDUMP=$ac_ct_OBJDUMP
5837 OBJDUMP="$ac_cv_prog_OBJDUMP"
5840 test -z "$OBJDUMP" && OBJDUMP=objdump
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5851 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5852 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
5855 lt_cv_file_magic_cmd='$MAGIC_CMD'
5856 lt_cv_file_magic_test_file=
5857 lt_cv_deplibs_check_method='unknown'
5858 # Need to set the preceding variable on all platforms that support
5859 # interlibrary dependencies.
5860 # 'none' -- dependencies not supported.
5861 # `unknown' -- same as none, but documents that we really don't know.
5862 # 'pass_all' -- all dependencies passed with no checks.
5863 # 'test_compile' -- check by making test program.
5864 # 'file_magic [[regex]]' -- check by looking for files in library path
5865 # which responds to the $file_magic_cmd with a given extended regex.
5866 # If you have `file' or equivalent on your system and you're not sure
5867 # whether `pass_all' will *always* work, you probably want this one.
5871 lt_cv_deplibs_check_method=pass_all
5875 lt_cv_deplibs_check_method=pass_all
5879 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5880 lt_cv_file_magic_cmd='/usr/bin/file -L'
5881 lt_cv_file_magic_test_file=/shlib/libc.so
5885 # func_win32_libid is a shell function defined in ltmain.sh
5886 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5887 lt_cv_file_magic_cmd='func_win32_libid'
5891 # Base MSYS/MinGW do not provide the 'file' command needed by
5892 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5893 # unless we find 'file', for example because we are cross-compiling.
5894 if ( file / ) >/dev/null 2>&1; then
5895 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5896 lt_cv_file_magic_cmd='func_win32_libid'
5898 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5899 lt_cv_file_magic_cmd='$OBJDUMP -f'
5904 # use the weaker test based on 'objdump'. See mingw*.
5905 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5906 lt_cv_file_magic_cmd='$OBJDUMP -f'
5909 darwin* | rhapsody*)
5910 lt_cv_deplibs_check_method=pass_all
5913 freebsd* | dragonfly*)
5914 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5917 # Not sure whether the presence of OpenBSD here was a mistake.
5918 # Let's accept both of them until this is cleared up.
5919 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5920 lt_cv_file_magic_cmd=/usr/bin/file
5921 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5925 lt_cv_deplibs_check_method=pass_all
5930 lt_cv_deplibs_check_method=pass_all
5933 hpux10.20* | hpux11*)
5934 lt_cv_file_magic_cmd=/usr/bin/file
5937 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5938 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5941 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5942 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5945 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5946 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5952 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5953 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5956 irix5* | irix6* | nonstopux*)
5958 *-32|*"-32 ") libmagic=32-bit;;
5959 *-n32|*"-n32 ") libmagic=N32;;
5960 *-64|*"-64 ") libmagic=64-bit;;
5961 *) libmagic=never-match;;
5963 lt_cv_deplibs_check_method=pass_all
5966 # This must be Linux ELF.
5967 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5968 lt_cv_deplibs_check_method=pass_all
5971 netbsd* | netbsdelf*-gnu)
5972 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5981 lt_cv_file_magic_cmd=/usr/bin/file
5982 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5986 lt_cv_deplibs_check_method=pass_all
5990 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5997 osf3* | osf4* | osf5*)
5998 lt_cv_deplibs_check_method=pass_all
6002 lt_cv_deplibs_check_method=pass_all
6006 lt_cv_deplibs_check_method=pass_all
6009 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6010 lt_cv_deplibs_check_method=pass_all
6014 case $host_vendor in
6016 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]'
6017 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6020 lt_cv_deplibs_check_method=pass_all
6023 lt_cv_file_magic_cmd='/bin/file'
6024 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6027 lt_cv_file_magic_cmd='/bin/file'
6028 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6029 lt_cv_file_magic_test_file=/lib/libc.so
6032 lt_cv_deplibs_check_method=pass_all
6035 lt_cv_deplibs_check_method=pass_all
6041 lt_cv_deplibs_check_method=pass_all
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6047 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6048 file_magic_cmd=$lt_cv_file_magic_cmd
6049 deplibs_check_method=$lt_cv_deplibs_check_method
6050 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6063 if test -n "$ac_tool_prefix"; then
6064 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6065 set dummy ${ac_tool_prefix}ar; ac_word=$2
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067 $as_echo_n "checking for $ac_word... " >&6; }
6068 if test "${ac_cv_prog_AR+set}" = set; then :
6069 $as_echo_n "(cached) " >&6
6071 if test -n "$AR"; then
6072 ac_cv_prog_AR="$AR" # Let the user override the test.
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6081 ac_cv_prog_AR="${ac_tool_prefix}ar"
6082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 if test -n "$AR"; then
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6094 $as_echo "$AR" >&6; }
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097 $as_echo "no" >&6; }
6102 if test -z "$ac_cv_prog_AR"; then
6104 # Extract the first word of "ar", so it can be a program name with args.
6105 set dummy ar; ac_word=$2
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6109 $as_echo_n "(cached) " >&6
6111 if test -n "$ac_ct_AR"; then
6112 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6121 ac_cv_prog_ac_ct_AR="ar"
6122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6132 if test -n "$ac_ct_AR"; then
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6134 $as_echo "$ac_ct_AR" >&6; }
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137 $as_echo "no" >&6; }
6140 if test "x$ac_ct_AR" = x; then
6143 case $cross_compiling:$ac_tool_warned in
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6147 ac_tool_warned=yes ;;
6155 test -z "$AR" && AR=ar
6156 test -z "$AR_FLAGS" && AR_FLAGS=cru
6168 if test -n "$ac_tool_prefix"; then
6169 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6170 set dummy ${ac_tool_prefix}strip; ac_word=$2
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172 $as_echo_n "checking for $ac_word... " >&6; }
6173 if test "${ac_cv_prog_STRIP+set}" = set; then :
6174 $as_echo_n "(cached) " >&6
6176 if test -n "$STRIP"; then
6177 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 STRIP=$ac_cv_prog_STRIP
6197 if test -n "$STRIP"; then
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6199 $as_echo "$STRIP" >&6; }
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202 $as_echo "no" >&6; }
6207 if test -z "$ac_cv_prog_STRIP"; then
6209 # Extract the first word of "strip", so it can be a program name with args.
6210 set dummy strip; ac_word=$2
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6216 if test -n "$ac_ct_STRIP"; then
6217 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_ac_ct_STRIP="strip"
6227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6237 if test -n "$ac_ct_STRIP"; then
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6239 $as_echo "$ac_ct_STRIP" >&6; }
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242 $as_echo "no" >&6; }
6245 if test "x$ac_ct_STRIP" = x; then
6248 case $cross_compiling:$ac_tool_warned in
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6252 ac_tool_warned=yes ;;
6257 STRIP="$ac_cv_prog_STRIP"
6260 test -z "$STRIP" && STRIP=:
6267 if test -n "$ac_tool_prefix"; then
6268 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6269 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271 $as_echo_n "checking for $ac_word... " >&6; }
6272 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6273 $as_echo_n "(cached) " >&6
6275 if test -n "$RANLIB"; then
6276 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6285 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 RANLIB=$ac_cv_prog_RANLIB
6296 if test -n "$RANLIB"; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6298 $as_echo "$RANLIB" >&6; }
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301 $as_echo "no" >&6; }
6306 if test -z "$ac_cv_prog_RANLIB"; then
6307 ac_ct_RANLIB=$RANLIB
6308 # Extract the first word of "ranlib", so it can be a program name with args.
6309 set dummy ranlib; ac_word=$2
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6313 $as_echo_n "(cached) " >&6
6315 if test -n "$ac_ct_RANLIB"; then
6316 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 test -z "$as_dir" && as_dir=.
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6325 ac_cv_prog_ac_ct_RANLIB="ranlib"
6326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6336 if test -n "$ac_ct_RANLIB"; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6338 $as_echo "$ac_ct_RANLIB" >&6; }
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6344 if test "x$ac_ct_RANLIB" = x; then
6347 case $cross_compiling:$ac_tool_warned in
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6351 ac_tool_warned=yes ;;
6353 RANLIB=$ac_ct_RANLIB
6356 RANLIB="$ac_cv_prog_RANLIB"
6359 test -z "$RANLIB" && RANLIB=:
6366 # Determine commands to create old-style static archives.
6367 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6368 old_postinstall_cmds='chmod 644 $oldlib'
6369 old_postuninstall_cmds=
6371 if test -n "$RANLIB"; then
6374 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6377 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6380 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6416 # If no C compiler was specified, use CC.
6419 # If no C compiler flags were specified, use CFLAGS.
6420 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6422 # Allow CC to be a program name with arguments.
6426 # Check for command to grab the raw symbol name followed by C symbol from nm.
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6428 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6429 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6430 $as_echo_n "(cached) " >&6
6433 # These are sane defaults that work on at least a few old systems.
6434 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6436 # Character class describing NM global symbol codes.
6437 symcode='[BCDEGRST]'
6439 # Regexp to match symbols that can be accessed directly from C.
6440 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6442 # Define system-specific variables.
6447 cygwin* | mingw* | pw32* | cegcc*)
6448 symcode='[ABCDGISTW]'
6451 if test "$host_cpu" = ia64; then
6452 symcode='[ABCDEGRST]'
6456 symcode='[BCDEGRST]'
6459 symcode='[BCDEGQRST]'
6470 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6478 # If we're using GNU nm, then use its standard symbol codes.
6479 case `$NM -V 2>&1` in
6480 *GNU* | *'with BFD'*)
6481 symcode='[ABCDGIRSTW]' ;;
6484 # Transform an extracted symbol line into a proper C declaration.
6485 # Some systems (esp. on ia64) link data and code symbols differently,
6486 # so use this general approach.
6487 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6489 # Transform an extracted symbol line into symbol name and symbol address
6490 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6491 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'"
6493 # Handle CRLF in mingw tool chain
6497 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6501 # Try without a prefix underscore, then with it.
6502 for ac_symprfx in "" "_"; do
6504 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6505 symxfrm="\\1 $ac_symprfx\\2 \\2"
6507 # Write the raw and C identifiers.
6508 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6509 # Fake it for dumpbin and say T for any non-static function
6510 # and D for any global variable.
6511 # Also find C++ and __fastcall symbols from MSVC++,
6512 # which start with @ or ?.
6513 lt_cv_sys_global_symbol_pipe="$AWK '"\
6514 " {last_section=section; section=\$ 3};"\
6515 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6516 " \$ 0!~/External *\|/{next};"\
6517 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6518 " {if(hide[section]) next};"\
6519 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6520 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6521 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6522 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6523 " ' prfx=^$ac_symprfx"
6525 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6528 # Check to see that the pipe works correctly.
6532 cat > conftest.$ac_ext <<_LT_EOF
6537 void nm_test_func(void);
6538 void nm_test_func(void){}
6542 int main(){nm_test_var='a';nm_test_func();return(0);}
6545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6546 (eval $ac_compile) 2>&5
6548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6549 test $ac_status = 0; }; then
6550 # Now try to grab the symbols.
6552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6553 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6556 test $ac_status = 0; } && test -s "$nlist"; then
6557 # Try sorting and uniquifying the output.
6558 if sort "$nlist" | uniq > "$nlist"T; then
6559 mv -f "$nlist"T "$nlist"
6564 # Make sure that we snagged all the symbols we need.
6565 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6566 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6567 cat <<_LT_EOF > conftest.$ac_ext
6573 # Now generate the symbol file.
6574 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6576 cat <<_LT_EOF >> conftest.$ac_ext
6578 /* The mapping between symbol names and symbols. */
6583 lt__PROGRAM__LTX_preloaded_symbols[] =
6585 { "@PROGRAM@", (void *) 0 },
6587 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6588 cat <<\_LT_EOF >> conftest.$ac_ext
6592 /* This works around a problem in FreeBSD linker */
6593 #ifdef FREEBSD_WORKAROUND
6594 static const void *lt_preloaded_setup() {
6595 return lt__PROGRAM__LTX_preloaded_symbols;
6603 # Now try linking the two files.
6604 mv conftest.$ac_objext conftstm.$ac_objext
6605 lt_save_LIBS="$LIBS"
6606 lt_save_CFLAGS="$CFLAGS"
6607 LIBS="conftstm.$ac_objext"
6608 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6610 (eval $ac_link) 2>&5
6612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6613 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6616 LIBS="$lt_save_LIBS"
6617 CFLAGS="$lt_save_CFLAGS"
6619 echo "cannot find nm_test_func in $nlist" >&5
6622 echo "cannot find nm_test_var in $nlist" >&5
6625 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6628 echo "$progname: failed program was:" >&5
6629 cat conftest.$ac_ext >&5
6631 rm -rf conftest* conftst*
6633 # Do not use the global_symbol_pipe unless it works.
6634 if test "$pipe_works" = yes; then
6637 lt_cv_sys_global_symbol_pipe=
6643 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6644 lt_cv_sys_global_symbol_to_cdecl=
6646 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6648 $as_echo "failed" >&6; }
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6651 $as_echo "ok" >&6; }
6675 # Check whether --enable-libtool-lock was given.
6676 if test "${enable_libtool_lock+set}" = set; then :
6677 enableval=$enable_libtool_lock;
6680 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6682 # Some flags need to be propagated to the compiler or linker for good
6686 # Find out which ABI we are using.
6687 echo 'int i;' > conftest.$ac_ext
6688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6689 (eval $ac_compile) 2>&5
6691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6692 test $ac_status = 0; }; then
6693 case `/usr/bin/file conftest.$ac_objext` in
6705 # Find out which ABI we are using.
6706 echo '#line 6706 "configure"' > conftest.$ac_ext
6707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6708 (eval $ac_compile) 2>&5
6710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6711 test $ac_status = 0; }; then
6712 if test "$lt_cv_prog_gnu_ld" = yes; then
6713 case `/usr/bin/file conftest.$ac_objext` in
6715 LD="${LD-ld} -melf32bsmip"
6718 LD="${LD-ld} -melf32bmipn32"
6721 LD="${LD-ld} -melf64bmip"
6725 case `/usr/bin/file conftest.$ac_objext` in
6741 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6742 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6743 # Find out which ABI we are using.
6744 echo 'int i;' > conftest.$ac_ext
6745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6746 (eval $ac_compile) 2>&5
6748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6749 test $ac_status = 0; }; then
6750 case `/usr/bin/file conftest.o` in
6753 x86_64-*kfreebsd*-gnu)
6754 LD="${LD-ld} -m elf_i386_fbsd"
6757 LD="${LD-ld} -m elf_i386"
6759 ppc64-*linux*|powerpc64-*linux*)
6760 LD="${LD-ld} -m elf32ppclinux"
6763 LD="${LD-ld} -m elf_s390"
6766 LD="${LD-ld} -m elf32_sparc"
6772 x86_64-*kfreebsd*-gnu)
6773 LD="${LD-ld} -m elf_x86_64_fbsd"
6776 LD="${LD-ld} -m elf_x86_64"
6778 ppc*-*linux*|powerpc*-*linux*)
6779 LD="${LD-ld} -m elf64ppc"
6781 s390*-*linux*|s390*-*tpf*)
6782 LD="${LD-ld} -m elf64_s390"
6785 LD="${LD-ld} -m elf64_sparc"
6795 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6796 SAVE_CFLAGS="$CFLAGS"
6797 CFLAGS="$CFLAGS -belf"
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6799 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6800 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6801 $as_echo_n "(cached) " >&6
6804 ac_cpp='$CPP $CPPFLAGS'
6805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6810 /* end confdefs.h. */
6820 if ac_fn_c_try_link "$LINENO"; then :
6821 lt_cv_cc_needs_belf=yes
6823 lt_cv_cc_needs_belf=no
6825 rm -f core conftest.err conftest.$ac_objext \
6826 conftest$ac_exeext conftest.$ac_ext
6828 ac_cpp='$CPP $CPPFLAGS'
6829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6835 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6836 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6837 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6838 CFLAGS="$SAVE_CFLAGS"
6842 # Find out which ABI we are using.
6843 echo 'int i;' > conftest.$ac_ext
6844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6845 (eval $ac_compile) 2>&5
6847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6848 test $ac_status = 0; }; then
6849 case `/usr/bin/file conftest.o` in
6851 case $lt_cv_prog_gnu_ld in
6852 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6854 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6866 need_locks="$enable_libtool_lock"
6870 rhapsody* | darwin*)
6871 if test -n "$ac_tool_prefix"; then
6872 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6873 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875 $as_echo_n "checking for $ac_word... " >&6; }
6876 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6877 $as_echo_n "(cached) " >&6
6879 if test -n "$DSYMUTIL"; then
6880 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6889 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6900 if test -n "$DSYMUTIL"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6902 $as_echo "$DSYMUTIL" >&6; }
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 $as_echo "no" >&6; }
6910 if test -z "$ac_cv_prog_DSYMUTIL"; then
6911 ac_ct_DSYMUTIL=$DSYMUTIL
6912 # Extract the first word of "dsymutil", so it can be a program name with args.
6913 set dummy dsymutil; ac_word=$2
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915 $as_echo_n "checking for $ac_word... " >&6; }
6916 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6917 $as_echo_n "(cached) " >&6
6919 if test -n "$ac_ct_DSYMUTIL"; then
6920 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6929 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6939 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6940 if test -n "$ac_ct_DSYMUTIL"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6942 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945 $as_echo "no" >&6; }
6948 if test "x$ac_ct_DSYMUTIL" = x; then
6951 case $cross_compiling:$ac_tool_warned in
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6955 ac_tool_warned=yes ;;
6957 DSYMUTIL=$ac_ct_DSYMUTIL
6960 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6963 if test -n "$ac_tool_prefix"; then
6964 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6965 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6969 $as_echo_n "(cached) " >&6
6971 if test -n "$NMEDIT"; then
6972 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6981 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 NMEDIT=$ac_cv_prog_NMEDIT
6992 if test -n "$NMEDIT"; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6994 $as_echo "$NMEDIT" >&6; }
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997 $as_echo "no" >&6; }
7002 if test -z "$ac_cv_prog_NMEDIT"; then
7003 ac_ct_NMEDIT=$NMEDIT
7004 # Extract the first word of "nmedit", so it can be a program name with args.
7005 set dummy nmedit; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7009 $as_echo_n "(cached) " >&6
7011 if test -n "$ac_ct_NMEDIT"; then
7012 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7032 if test -n "$ac_ct_NMEDIT"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7034 $as_echo "$ac_ct_NMEDIT" >&6; }
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7040 if test "x$ac_ct_NMEDIT" = x; then
7043 case $cross_compiling:$ac_tool_warned in
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7047 ac_tool_warned=yes ;;
7049 NMEDIT=$ac_ct_NMEDIT
7052 NMEDIT="$ac_cv_prog_NMEDIT"
7055 if test -n "$ac_tool_prefix"; then
7056 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7057 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if test "${ac_cv_prog_LIPO+set}" = set; then :
7061 $as_echo_n "(cached) " >&6
7063 if test -n "$LIPO"; then
7064 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 LIPO=$ac_cv_prog_LIPO
7084 if test -n "$LIPO"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7086 $as_echo "$LIPO" >&6; }
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7094 if test -z "$ac_cv_prog_LIPO"; then
7096 # Extract the first word of "lipo", so it can be a program name with args.
7097 set dummy lipo; ac_word=$2
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099 $as_echo_n "checking for $ac_word... " >&6; }
7100 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7101 $as_echo_n "(cached) " >&6
7103 if test -n "$ac_ct_LIPO"; then
7104 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7113 ac_cv_prog_ac_ct_LIPO="lipo"
7114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7124 if test -n "$ac_ct_LIPO"; then
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7126 $as_echo "$ac_ct_LIPO" >&6; }
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129 $as_echo "no" >&6; }
7132 if test "x$ac_ct_LIPO" = x; then
7135 case $cross_compiling:$ac_tool_warned in
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7139 ac_tool_warned=yes ;;
7144 LIPO="$ac_cv_prog_LIPO"
7147 if test -n "$ac_tool_prefix"; then
7148 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7149 set dummy ${ac_tool_prefix}otool; ac_word=$2
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7153 $as_echo_n "(cached) " >&6
7155 if test -n "$OTOOL"; then
7156 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7165 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 OTOOL=$ac_cv_prog_OTOOL
7176 if test -n "$OTOOL"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7178 $as_echo "$OTOOL" >&6; }
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7186 if test -z "$ac_cv_prog_OTOOL"; then
7188 # Extract the first word of "otool", so it can be a program name with args.
7189 set dummy otool; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7193 $as_echo_n "(cached) " >&6
7195 if test -n "$ac_ct_OTOOL"; then
7196 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 test -z "$as_dir" && as_dir=.
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7205 ac_cv_prog_ac_ct_OTOOL="otool"
7206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7216 if test -n "$ac_ct_OTOOL"; then
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7218 $as_echo "$ac_ct_OTOOL" >&6; }
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 $as_echo "no" >&6; }
7224 if test "x$ac_ct_OTOOL" = x; then
7227 case $cross_compiling:$ac_tool_warned in
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7231 ac_tool_warned=yes ;;
7236 OTOOL="$ac_cv_prog_OTOOL"
7239 if test -n "$ac_tool_prefix"; then
7240 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7241 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7245 $as_echo_n "(cached) " >&6
7247 if test -n "$OTOOL64"; then
7248 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 OTOOL64=$ac_cv_prog_OTOOL64
7268 if test -n "$OTOOL64"; then
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7270 $as_echo "$OTOOL64" >&6; }
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7278 if test -z "$ac_cv_prog_OTOOL64"; then
7279 ac_ct_OTOOL64=$OTOOL64
7280 # Extract the first word of "otool64", so it can be a program name with args.
7281 set dummy otool64; ac_word=$2
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283 $as_echo_n "checking for $ac_word... " >&6; }
7284 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7285 $as_echo_n "(cached) " >&6
7287 if test -n "$ac_ct_OTOOL64"; then
7288 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_prog_ac_ct_OTOOL64="otool64"
7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7307 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7308 if test -n "$ac_ct_OTOOL64"; then
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7310 $as_echo "$ac_ct_OTOOL64" >&6; }
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }
7316 if test "x$ac_ct_OTOOL64" = x; then
7319 case $cross_compiling:$ac_tool_warned in
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7323 ac_tool_warned=yes ;;
7325 OTOOL64=$ac_ct_OTOOL64
7328 OTOOL64="$ac_cv_prog_OTOOL64"
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7358 $as_echo_n "checking for -single_module linker flag... " >&6; }
7359 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7360 $as_echo_n "(cached) " >&6
7362 lt_cv_apple_cc_single_mod=no
7363 if test -z "${LT_MULTI_MODULE}"; then
7364 # By default we will add the -single_module flag. You can override
7365 # by either setting the environment variable LT_MULTI_MODULE
7366 # non-empty at configure time, or by adding -multi_module to the
7368 rm -rf libconftest.dylib*
7369 echo "int foo(void){return 1;}" > conftest.c
7370 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7371 -dynamiclib -Wl,-single_module conftest.c" >&5
7372 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7373 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7375 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7376 lt_cv_apple_cc_single_mod=yes
7378 cat conftest.err >&5
7380 rm -rf libconftest.dylib*
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7385 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7387 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7388 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7389 $as_echo_n "(cached) " >&6
7391 lt_cv_ld_exported_symbols_list=no
7392 save_LDFLAGS=$LDFLAGS
7393 echo "_main" > conftest.sym
7394 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h. */
7406 if ac_fn_c_try_link "$LINENO"; then :
7407 lt_cv_ld_exported_symbols_list=yes
7409 lt_cv_ld_exported_symbols_list=no
7411 rm -f core conftest.err conftest.$ac_objext \
7412 conftest$ac_exeext conftest.$ac_ext
7413 LDFLAGS="$save_LDFLAGS"
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7417 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7419 rhapsody* | darwin1.[012])
7420 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7422 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7423 darwin*) # darwin 5.x on
7424 # if running on 10.5 or later, the deployment target defaults
7425 # to the OS version, if on x86, and 10.4, the deployment
7426 # target defaults to 10.4. Don't you love it?
7427 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7428 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7429 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7431 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7433 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7437 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7438 _lt_dar_single_mod='$single_module'
7440 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7441 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7443 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7445 if test "$DSYMUTIL" != ":"; then
7446 _lt_dsymutil='~$DSYMUTIL $lib || :'
7453 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7454 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7455 inttypes.h stdint.h unistd.h
7457 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7458 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7460 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7461 cat >>confdefs.h <<_ACEOF
7462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7470 for ac_header in dlfcn.h
7472 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7474 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7475 cat >>confdefs.h <<_ACEOF
7476 #define HAVE_DLFCN_H 1
7495 # Check whether --enable-shared was given.
7496 if test "${enable_shared+set}" = set; then :
7497 enableval=$enable_shared; p=${PACKAGE-default}
7499 yes) enable_shared=yes ;;
7500 no) enable_shared=no ;;
7503 # Look at the argument we got. We use all the common list separators.
7504 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7505 for pkg in $enableval; do
7507 if test "X$pkg" = "X$p"; then
7526 # Check whether --enable-static was given.
7527 if test "${enable_static+set}" = set; then :
7528 enableval=$enable_static; p=${PACKAGE-default}
7530 yes) enable_static=yes ;;
7531 no) enable_static=no ;;
7534 # Look at the argument we got. We use all the common list separators.
7535 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7536 for pkg in $enableval; do
7538 if test "X$pkg" = "X$p"; then
7558 # Check whether --with-pic was given.
7559 if test "${with_pic+set}" = set; then :
7560 withval=$with_pic; pic_mode="$withval"
7566 test -z "$pic_mode" && pic_mode=default
7574 # Check whether --enable-fast-install was given.
7575 if test "${enable_fast_install+set}" = set; then :
7576 enableval=$enable_fast_install; p=${PACKAGE-default}
7578 yes) enable_fast_install=yes ;;
7579 no) enable_fast_install=no ;;
7581 enable_fast_install=no
7582 # Look at the argument we got. We use all the common list separators.
7583 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7584 for pkg in $enableval; do
7586 if test "X$pkg" = "X$p"; then
7587 enable_fast_install=yes
7594 enable_fast_install=yes
7607 # This can be used to rebuild libtool when needed
7608 LIBTOOL_DEPS="$ltmain"
7610 # Always use our own libtool.
7611 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7637 test -z "$LN_S" && LN_S="ln -s"
7652 if test -n "${ZSH_VERSION+set}" ; then
7653 setopt NO_GLOB_SUBST
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7657 $as_echo_n "checking for objdir... " >&6; }
7658 if test "${lt_cv_objdir+set}" = set; then :
7659 $as_echo_n "(cached) " >&6
7661 rm -f .libs 2>/dev/null
7662 mkdir .libs 2>/dev/null
7663 if test -d .libs; then
7666 # MS-DOS does not allow filenames that begin with a dot.
7669 rmdir .libs 2>/dev/null
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7672 $as_echo "$lt_cv_objdir" >&6; }
7673 objdir=$lt_cv_objdir
7679 cat >>confdefs.h <<_ACEOF
7680 #define LT_OBJDIR "$lt_cv_objdir/"
7701 # AIX sometimes has problems with the GCC collect2 program. For some
7702 # reason, if we set the COLLECT_NAMES environment variable, the problems
7703 # vanish in a puff of smoke.
7704 if test "X${COLLECT_NAMES+set}" != Xset; then
7706 export COLLECT_NAMES
7711 # Sed substitution that helps us do robust quoting. It backslashifies
7712 # metacharacters that are still active within double-quoted strings.
7713 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7715 # Same as above, but do not quote variable references.
7716 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7718 # Sed substitution to delay expansion of an escaped shell variable in a
7719 # double_quote_subst'ed string.
7720 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7722 # Sed substitution to delay expansion of an escaped single quote.
7723 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7725 # Sed substitution to avoid accidental globbing in evaled expressions
7726 no_glob_subst='s/\*/\\\*/g'
7730 can_build_shared=yes
7732 # All known linkers require a `.a' archive for static linking (except MSVC,
7733 # which needs '.lib').
7736 with_gnu_ld="$lt_cv_prog_gnu_ld"
7739 old_CFLAGS="$CFLAGS"
7741 # Set sane defaults for various variables
7742 test -z "$CC" && CC=cc
7743 test -z "$LTCC" && LTCC=$CC
7744 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7745 test -z "$LD" && LD=ld
7746 test -z "$ac_objext" && ac_objext=o
7748 for cc_temp in $compiler""; do
7750 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7751 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7756 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7759 # Only perform the check for file, if the check method requires it
7760 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7761 case $deplibs_check_method in
7763 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7765 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7766 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7767 $as_echo_n "(cached) " >&6
7771 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7774 lt_save_MAGIC_CMD="$MAGIC_CMD"
7775 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7776 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7777 for ac_dir in $ac_dummy; do
7779 test -z "$ac_dir" && ac_dir=.
7780 if test -f $ac_dir/${ac_tool_prefix}file; then
7781 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7782 if test -n "$file_magic_test_file"; then
7783 case $deplibs_check_method in
7785 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7786 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7787 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7788 $EGREP "$file_magic_regex" > /dev/null; then
7793 *** Warning: the command libtool uses to detect shared libraries,
7794 *** $file_magic_cmd, produces output that libtool cannot recognize.
7795 *** The result is that libtool may fail to recognize shared libraries
7796 *** as such. This will affect the creation of libtool libraries that
7797 *** depend on shared libraries, but programs linked with such libtool
7798 *** libraries will work regardless of this problem. Nevertheless, you
7799 *** may want to report the problem to your system manager and/or to
7800 *** bug-libtool@gnu.org
7810 MAGIC_CMD="$lt_save_MAGIC_CMD"
7815 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7816 if test -n "$MAGIC_CMD"; then
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7818 $as_echo "$MAGIC_CMD" >&6; }
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821 $as_echo "no" >&6; }
7828 if test -z "$lt_cv_path_MAGIC_CMD"; then
7829 if test -n "$ac_tool_prefix"; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7831 $as_echo_n "checking for file... " >&6; }
7832 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7833 $as_echo_n "(cached) " >&6
7837 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7840 lt_save_MAGIC_CMD="$MAGIC_CMD"
7841 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7842 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7843 for ac_dir in $ac_dummy; do
7845 test -z "$ac_dir" && ac_dir=.
7846 if test -f $ac_dir/file; then
7847 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7848 if test -n "$file_magic_test_file"; then
7849 case $deplibs_check_method in
7851 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7852 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7853 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7854 $EGREP "$file_magic_regex" > /dev/null; then
7859 *** Warning: the command libtool uses to detect shared libraries,
7860 *** $file_magic_cmd, produces output that libtool cannot recognize.
7861 *** The result is that libtool may fail to recognize shared libraries
7862 *** as such. This will affect the creation of libtool libraries that
7863 *** depend on shared libraries, but programs linked with such libtool
7864 *** libraries will work regardless of this problem. Nevertheless, you
7865 *** may want to report the problem to your system manager and/or to
7866 *** bug-libtool@gnu.org
7876 MAGIC_CMD="$lt_save_MAGIC_CMD"
7881 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7882 if test -n "$MAGIC_CMD"; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7884 $as_echo "$MAGIC_CMD" >&6; }
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887 $as_echo "no" >&6; }
7900 # Use C for the default configuration in the libtool script
7904 ac_cpp='$CPP $CPPFLAGS'
7905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7910 # Source file extension for C test sources.
7913 # Object file extension for compiled C test sources.
7917 # Code to be used in simple compile tests
7918 lt_simple_compile_test_code="int some_variable = 0;"
7920 # Code to be used in simple link tests
7921 lt_simple_link_test_code='int main(){return(0);}'
7929 # If no C compiler was specified, use CC.
7932 # If no C compiler flags were specified, use CFLAGS.
7933 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7935 # Allow CC to be a program name with arguments.
7938 # Save the default compiler, since it gets overwritten when the other
7939 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7940 compiler_DEFAULT=$CC
7942 # save warnings/boilerplate of simple test code
7943 ac_outfile=conftest.$ac_objext
7944 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7945 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7946 _lt_compiler_boilerplate=`cat conftest.err`
7949 ac_outfile=conftest.$ac_objext
7950 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7951 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7952 _lt_linker_boilerplate=`cat conftest.err`
7957 ## There is no encapsulation within the following macros, do not change
7958 ## the running order or otherwise move them around unless you know exactly
7959 ## what you are doing...
7960 if test -n "$compiler"; then
7962 lt_prog_compiler_no_builtin_flag=
7964 if test "$GCC" = yes; then
7965 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7968 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7969 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7970 $as_echo_n "(cached) " >&6
7972 lt_cv_prog_compiler_rtti_exceptions=no
7973 ac_outfile=conftest.$ac_objext
7974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7975 lt_compiler_flag="-fno-rtti -fno-exceptions"
7976 # Insert the option either (1) after the last *FLAGS variable, or
7977 # (2) before a word containing "conftest.", or (3) at the end.
7978 # Note that $ac_compile itself does not contain backslashes and begins
7979 # with a dollar sign (not a hyphen), so the echo should work correctly.
7980 # The option is referenced via a variable to avoid confusing sed.
7981 lt_compile=`echo "$ac_compile" | $SED \
7982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7984 -e 's:$: $lt_compiler_flag:'`
7985 (eval echo "\"\$as_me:7985: $lt_compile\"" >&5)
7986 (eval "$lt_compile" 2>conftest.err)
7988 cat conftest.err >&5
7989 echo "$as_me:7989: \$? = $ac_status" >&5
7990 if (exit $ac_status) && test -s "$ac_outfile"; then
7991 # The compiler can only warn and ignore the option if not recognized
7992 # So say no if there are warnings other than the usual output.
7993 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7995 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7996 lt_cv_prog_compiler_rtti_exceptions=yes
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8003 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8005 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8006 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8018 lt_prog_compiler_wl=
8019 lt_prog_compiler_pic=
8020 lt_prog_compiler_static=
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8023 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8025 if test "$GCC" = yes; then
8026 lt_prog_compiler_wl='-Wl,'
8027 lt_prog_compiler_static='-static'
8031 # All AIX code is PIC.
8032 if test "$host_cpu" = ia64; then
8033 # AIX 5 now supports IA64 processor
8034 lt_prog_compiler_static='-Bstatic'
8041 # see comment about AmigaOS4 .so support
8042 lt_prog_compiler_pic='-fPIC'
8045 # FIXME: we need at least 68020 code to build shared libraries, but
8046 # adding the `-m68020' flag to GCC prevents building anything better,
8048 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8053 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8054 # PIC is the default for these OSes.
8057 mingw* | cygwin* | pw32* | os2* | cegcc*)
8058 # This hack is so that the source file can tell whether it is being
8059 # built for inclusion in a dll (and should export symbols for example).
8060 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8061 # (--disable-auto-import) libraries
8062 lt_prog_compiler_pic='-DDLL_EXPORT'
8065 darwin* | rhapsody*)
8066 # PIC is the default on this platform
8067 # Common symbols not allowed in MH_DYLIB files
8068 lt_prog_compiler_pic='-fno-common'
8072 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8073 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8074 # sets the default TLS model and affects inlining.
8080 lt_prog_compiler_pic='-fPIC'
8086 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8087 # Instead, we relocate shared libraries at runtime.
8091 # Just because we use GCC doesn't mean we suddenly get shared libraries
8092 # on systems that don't support them.
8093 lt_prog_compiler_can_build_shared=no
8098 # QNX uses GNU C++, but need to define -shared option too, otherwise
8100 lt_prog_compiler_pic='-fPIC -shared'
8104 if test -d /usr/nec; then
8105 lt_prog_compiler_pic=-Kconform_pic
8110 lt_prog_compiler_pic='-fPIC'
8114 # PORTME Check for flag to pass linker flags through the system compiler.
8117 lt_prog_compiler_wl='-Wl,'
8118 if test "$host_cpu" = ia64; then
8119 # AIX 5 now supports IA64 processor
8120 lt_prog_compiler_static='-Bstatic'
8122 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8126 mingw* | cygwin* | pw32* | os2* | cegcc*)
8127 # This hack is so that the source file can tell whether it is being
8128 # built for inclusion in a dll (and should export symbols for example).
8129 lt_prog_compiler_pic='-DDLL_EXPORT'
8132 hpux9* | hpux10* | hpux11*)
8133 lt_prog_compiler_wl='-Wl,'
8134 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8141 lt_prog_compiler_pic='+Z'
8144 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8145 lt_prog_compiler_static='${wl}-a ${wl}archive'
8148 irix5* | irix6* | nonstopux*)
8149 lt_prog_compiler_wl='-Wl,'
8150 # PIC (with -KPIC) is the default.
8151 lt_prog_compiler_static='-non_shared'
8154 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8155 case $cc_basename in
8156 # old Intel for x86_64 which still supported -KPIC.
8158 lt_prog_compiler_wl='-Wl,'
8159 lt_prog_compiler_pic='-KPIC'
8160 lt_prog_compiler_static='-static'
8162 # icc used to be incompatible with GCC.
8163 # ICC 10 doesn't accept -KPIC any more.
8165 lt_prog_compiler_wl='-Wl,'
8166 lt_prog_compiler_pic='-fPIC'
8167 lt_prog_compiler_static='-static'
8169 # Lahey Fortran 8.1.
8171 lt_prog_compiler_wl='-Wl,'
8172 lt_prog_compiler_pic='--shared'
8173 lt_prog_compiler_static='--static'
8175 pgcc* | pgf77* | pgf90* | pgf95*)
8176 # Portland Group compilers (*not* the Pentium gcc compiler,
8177 # which looks to be a dead project)
8178 lt_prog_compiler_wl='-Wl,'
8179 lt_prog_compiler_pic='-fpic'
8180 lt_prog_compiler_static='-Bstatic'
8183 lt_prog_compiler_wl='-Wl,'
8184 # All Alpha code is PIC.
8185 lt_prog_compiler_static='-non_shared'
8188 # IBM XL C 8.0/Fortran 10.1 on PPC
8189 lt_prog_compiler_wl='-Wl,'
8190 lt_prog_compiler_pic='-qpic'
8191 lt_prog_compiler_static='-qstaticlink'
8194 case `$CC -V 2>&1 | sed 5q` in
8197 lt_prog_compiler_pic='-KPIC'
8198 lt_prog_compiler_static='-Bstatic'
8199 lt_prog_compiler_wl='-Wl,'
8202 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8203 lt_prog_compiler_pic='-KPIC'
8204 lt_prog_compiler_static='-Bstatic'
8205 lt_prog_compiler_wl=''
8213 lt_prog_compiler_pic='-KPIC'
8214 lt_prog_compiler_static='-Bstatic'
8218 # QNX uses GNU C++, but need to define -shared option too, otherwise
8220 lt_prog_compiler_pic='-fPIC -shared'
8223 osf3* | osf4* | osf5*)
8224 lt_prog_compiler_wl='-Wl,'
8225 # All OSF/1 code is PIC.
8226 lt_prog_compiler_static='-non_shared'
8230 lt_prog_compiler_static='-non_shared'
8234 lt_prog_compiler_pic='-KPIC'
8235 lt_prog_compiler_static='-Bstatic'
8236 case $cc_basename in
8238 lt_prog_compiler_wl='-Qoption ld ';;
8240 lt_prog_compiler_wl='-Wl,';;
8245 lt_prog_compiler_wl='-Qoption ld '
8246 lt_prog_compiler_pic='-PIC'
8247 lt_prog_compiler_static='-Bstatic'
8250 sysv4 | sysv4.2uw2* | sysv4.3*)
8251 lt_prog_compiler_wl='-Wl,'
8252 lt_prog_compiler_pic='-KPIC'
8253 lt_prog_compiler_static='-Bstatic'
8257 if test -d /usr/nec ;then
8258 lt_prog_compiler_pic='-Kconform_pic'
8259 lt_prog_compiler_static='-Bstatic'
8263 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8264 lt_prog_compiler_wl='-Wl,'
8265 lt_prog_compiler_pic='-KPIC'
8266 lt_prog_compiler_static='-Bstatic'
8270 lt_prog_compiler_wl='-Wl,'
8271 lt_prog_compiler_can_build_shared=no
8275 lt_prog_compiler_pic='-pic'
8276 lt_prog_compiler_static='-Bstatic'
8280 lt_prog_compiler_can_build_shared=no
8286 # For platforms which do not support PIC, -DPIC is meaningless:
8288 lt_prog_compiler_pic=
8291 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8295 $as_echo "$lt_prog_compiler_pic" >&6; }
8303 # Check to make sure the PIC flag actually works.
8305 if test -n "$lt_prog_compiler_pic"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8307 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8308 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8309 $as_echo_n "(cached) " >&6
8311 lt_cv_prog_compiler_pic_works=no
8312 ac_outfile=conftest.$ac_objext
8313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8314 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8315 # Insert the option either (1) after the last *FLAGS variable, or
8316 # (2) before a word containing "conftest.", or (3) at the end.
8317 # Note that $ac_compile itself does not contain backslashes and begins
8318 # with a dollar sign (not a hyphen), so the echo should work correctly.
8319 # The option is referenced via a variable to avoid confusing sed.
8320 lt_compile=`echo "$ac_compile" | $SED \
8321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8323 -e 's:$: $lt_compiler_flag:'`
8324 (eval echo "\"\$as_me:8324: $lt_compile\"" >&5)
8325 (eval "$lt_compile" 2>conftest.err)
8327 cat conftest.err >&5
8328 echo "$as_me:8328: \$? = $ac_status" >&5
8329 if (exit $ac_status) && test -s "$ac_outfile"; then
8330 # The compiler can only warn and ignore the option if not recognized
8331 # So say no if there are warnings other than the usual output.
8332 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8333 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8334 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8335 lt_cv_prog_compiler_pic_works=yes
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8342 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8344 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8345 case $lt_prog_compiler_pic in
8347 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8350 lt_prog_compiler_pic=
8351 lt_prog_compiler_can_build_shared=no
8362 # Check to make sure the static flag actually works.
8364 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8366 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8367 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8368 $as_echo_n "(cached) " >&6
8370 lt_cv_prog_compiler_static_works=no
8371 save_LDFLAGS="$LDFLAGS"
8372 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8373 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8374 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8375 # The linker can only warn and ignore the option if not recognized
8376 # So say no if there are warnings
8377 if test -s conftest.err; then
8378 # Append any errors to the config.log.
8379 cat conftest.err 1>&5
8380 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8381 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8382 if diff conftest.exp conftest.er2 >/dev/null; then
8383 lt_cv_prog_compiler_static_works=yes
8386 lt_cv_prog_compiler_static_works=yes
8390 LDFLAGS="$save_LDFLAGS"
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8394 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8396 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8399 lt_prog_compiler_static=
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8409 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8410 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8411 $as_echo_n "(cached) " >&6
8413 lt_cv_prog_compiler_c_o=no
8414 $RM -r conftest 2>/dev/null
8418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8420 lt_compiler_flag="-o out/conftest2.$ac_objext"
8421 # Insert the option either (1) after the last *FLAGS variable, or
8422 # (2) before a word containing "conftest.", or (3) at the end.
8423 # Note that $ac_compile itself does not contain backslashes and begins
8424 # with a dollar sign (not a hyphen), so the echo should work correctly.
8425 lt_compile=`echo "$ac_compile" | $SED \
8426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8428 -e 's:$: $lt_compiler_flag:'`
8429 (eval echo "\"\$as_me:8429: $lt_compile\"" >&5)
8430 (eval "$lt_compile" 2>out/conftest.err)
8432 cat out/conftest.err >&5
8433 echo "$as_me:8433: \$? = $ac_status" >&5
8434 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8436 # The compiler can only warn and ignore the option if not recognized
8437 # So say no if there are warnings
8438 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8439 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8440 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8441 lt_cv_prog_compiler_c_o=yes
8446 # SGI C++ compiler will create directory out/ii_files/ for
8447 # template instantiation
8448 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8449 $RM out/* && rmdir out
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8456 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8464 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8465 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8466 $as_echo_n "(cached) " >&6
8468 lt_cv_prog_compiler_c_o=no
8469 $RM -r conftest 2>/dev/null
8473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8475 lt_compiler_flag="-o out/conftest2.$ac_objext"
8476 # Insert the option either (1) after the last *FLAGS variable, or
8477 # (2) before a word containing "conftest.", or (3) at the end.
8478 # Note that $ac_compile itself does not contain backslashes and begins
8479 # with a dollar sign (not a hyphen), so the echo should work correctly.
8480 lt_compile=`echo "$ac_compile" | $SED \
8481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8483 -e 's:$: $lt_compiler_flag:'`
8484 (eval echo "\"\$as_me:8484: $lt_compile\"" >&5)
8485 (eval "$lt_compile" 2>out/conftest.err)
8487 cat out/conftest.err >&5
8488 echo "$as_me:8488: \$? = $ac_status" >&5
8489 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8491 # The compiler can only warn and ignore the option if not recognized
8492 # So say no if there are warnings
8493 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8494 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8495 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8496 lt_cv_prog_compiler_c_o=yes
8501 # SGI C++ compiler will create directory out/ii_files/ for
8502 # template instantiation
8503 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8504 $RM out/* && rmdir out
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8511 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8516 hard_links="nottested"
8517 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8518 # do not overwrite the value of need_locks provided by the user
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8520 $as_echo_n "checking if we can lock with hard links... " >&6; }
8523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8525 ln conftest.a conftest.b 2>&5 || hard_links=no
8526 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8528 $as_echo "$hard_links" >&6; }
8529 if test "$hard_links" = no; then
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8531 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8544 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8547 allow_undefined_flag=
8548 always_export_symbols=no
8550 archive_expsym_cmds=
8551 compiler_needs_object=no
8552 enable_shared_with_static_runtimes=no
8553 export_dynamic_flag_spec=
8554 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8555 hardcode_automatic=no
8557 hardcode_direct_absolute=no
8558 hardcode_libdir_flag_spec=
8559 hardcode_libdir_flag_spec_ld=
8560 hardcode_libdir_separator=
8562 hardcode_shlibpath_var=unsupported
8564 link_all_deplibs=unknown
8567 old_archive_from_new_cmds=
8568 old_archive_from_expsyms_cmds=
8569 thread_safe_flag_spec=
8570 whole_archive_flag_spec=
8571 # include_expsyms should be a list of space-separated symbols to be *always*
8572 # included in the symbol list
8574 # exclude_expsyms can be an extended regexp of symbols to exclude
8575 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8576 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8577 # as well as any symbol that contains `d'.
8578 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8579 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8580 # platforms (ab)use it in PIC code, but their linkers get confused if
8581 # the symbol is explicitly referenced. Since portable code cannot
8582 # rely on this symbol name, it's probably fine to never include it in
8583 # preloaded symbol tables.
8584 # Exclude shared library initialization/finalization symbols.
8585 extract_expsyms_cmds=
8588 cygwin* | mingw* | pw32* | cegcc*)
8589 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8590 # When not using gcc, we currently assume that we are using
8591 # Microsoft Visual C++.
8592 if test "$GCC" != yes; then
8597 # we just hope/assume this is gcc and not c89 (= MSVC++)
8603 linux* | k*bsd*-gnu)
8609 if test "$with_gnu_ld" = yes; then
8610 # If archive_cmds runs LD, not CC, wlarc should be empty
8613 # Set some defaults for GNU ld with shared library support. These
8614 # are reset later if shared libraries are not supported. Putting them
8615 # here allows them to be overridden if necessary.
8616 runpath_var=LD_RUN_PATH
8617 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8618 export_dynamic_flag_spec='${wl}--export-dynamic'
8619 # ancient GNU ld didn't support --whole-archive et. al.
8620 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8621 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8623 whole_archive_flag_spec=
8625 supports_anon_versioning=no
8626 case `$LD -v 2>&1` in
8627 *GNU\ gold*) supports_anon_versioning=yes ;;
8628 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8629 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8630 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8631 *\ 2.11.*) ;; # other 2.11 versions
8632 *) supports_anon_versioning=yes ;;
8635 # See if GNU ld supports shared libraries.
8638 # On AIX/PPC, the GNU linker is very broken
8639 if test "$host_cpu" != ia64; then
8643 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8644 *** to be unable to reliably create shared libraries on AIX.
8645 *** Therefore, libtool is disabling shared libraries support. If you
8646 *** really care for shared libraries, you may want to modify your PATH
8647 *** so that a non-GNU linker is found, and then restart.
8656 # see comment about AmigaOS4 .so support
8657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8658 archive_expsym_cmds=''
8661 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)'
8662 hardcode_libdir_flag_spec='-L$libdir'
8663 hardcode_minus_L=yes
8669 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8670 allow_undefined_flag=unsupported
8671 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8672 # support --undefined. This deserves some investigation. FIXME
8673 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8679 cygwin* | mingw* | pw32* | cegcc*)
8680 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8681 # as there is no search path for DLLs.
8682 hardcode_libdir_flag_spec='-L$libdir'
8683 allow_undefined_flag=unsupported
8684 always_export_symbols=no
8685 enable_shared_with_static_runtimes=yes
8686 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8688 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8690 # If the export-symbols file already is a .def file (1st line
8691 # is EXPORTS), use it as is; otherwise, prepend...
8692 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8693 cp $export_symbols $output_objdir/$soname.def;
8695 echo EXPORTS > $output_objdir/$soname.def;
8696 cat $export_symbols >> $output_objdir/$soname.def;
8698 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8706 hardcode_shlibpath_var=no
8707 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8708 export_dynamic_flag_spec='${wl}-E'
8709 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8710 # Instead, shared libraries are loaded at an image base (0x10000000 by
8711 # default) and relocated if they conflict, which is a slow very memory
8712 # consuming and fragmenting process. To avoid this, we pick a random,
8713 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8714 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8715 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8716 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'
8719 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8721 if test "$host_os" = linux-dietlibc; then
8722 case $cc_basename in
8723 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8726 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8727 && test "$tmp_diet" = no
8730 tmp_sharedflag='-shared'
8731 case $cc_basename,$host_cpu in
8732 pgcc*) # Portland Group C compiler
8733 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8734 tmp_addflag=' $pic_flag'
8736 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8737 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8738 tmp_addflag=' $pic_flag -Mnomain' ;;
8739 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8740 tmp_addflag=' -i_dynamic' ;;
8741 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8742 tmp_addflag=' -i_dynamic -nofor_main' ;;
8743 ifc* | ifort*) # Intel Fortran compiler
8744 tmp_addflag=' -nofor_main' ;;
8745 lf95*) # Lahey Fortran 8.1
8746 whole_archive_flag_spec=
8747 tmp_sharedflag='--shared' ;;
8748 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8749 tmp_sharedflag='-qmkshrobj'
8752 case `$CC -V 2>&1 | sed 5q` in
8753 *Sun\ C*) # Sun C 5.9
8754 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8755 compiler_needs_object=yes
8756 tmp_sharedflag='-G' ;;
8757 *Sun\ F*) # Sun Fortran 8.3
8758 tmp_sharedflag='-G' ;;
8760 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8762 if test "x$supports_anon_versioning" = xyes; then
8763 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8764 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8765 echo "local: *; };" >> $output_objdir/$libname.ver~
8766 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8769 case $cc_basename in
8771 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8772 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8773 hardcode_libdir_flag_spec=
8774 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8775 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8776 if test "x$supports_anon_versioning" = xyes; then
8777 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8778 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8779 echo "local: *; };" >> $output_objdir/$libname.ver~
8780 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8789 netbsd* | netbsdelf*-gnu)
8790 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8791 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8795 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8800 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8804 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8805 *** create shared libraries on Solaris systems. Therefore, libtool
8806 *** is disabling shared libraries support. We urge you to upgrade GNU
8807 *** binutils to release 2.9.1 or newer. Another option is to modify
8808 *** your PATH or compiler configuration so that the native linker is
8809 *** used, and then restart.
8812 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8813 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8814 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8820 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8821 case `$LD -v 2>&1` in
8822 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8826 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8827 *** reliably create shared libraries on SCO systems. Therefore, libtool
8828 *** is disabling shared libraries support. We urge you to upgrade GNU
8829 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8830 *** your PATH or compiler configuration so that the native linker is
8831 *** used, and then restart.
8836 # For security reasons, it is highly recommended that you always
8837 # use absolute paths for naming shared libraries, and exclude the
8838 # DT_RUNPATH tag from executables and libraries. But doing so
8839 # requires that you compile everything twice, which is a pain.
8840 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8843 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8852 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8855 hardcode_shlibpath_var=no
8859 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8861 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8868 if test "$ld_shlibs" = no; then
8870 hardcode_libdir_flag_spec=
8871 export_dynamic_flag_spec=
8872 whole_archive_flag_spec=
8875 # PORTME fill in a description of your system's linker (not GNU ld)
8878 allow_undefined_flag=unsupported
8879 always_export_symbols=yes
8880 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'
8881 # Note: this linker hardcodes the directories in LIBPATH if there
8882 # are no directories specified by -L.
8883 hardcode_minus_L=yes
8884 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8885 # Neither direct hardcoding nor static linking is supported with a
8887 hardcode_direct=unsupported
8892 if test "$host_cpu" = ia64; then
8893 # On IA64, the linker does run time linking by default, so we don't
8894 # have to do anything special.
8895 aix_use_runtimelinking=no
8896 exp_sym_flag='-Bexport'
8899 # If we're using GNU nm, then we don't want the "-C" option.
8900 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8901 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8902 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8904 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'
8906 aix_use_runtimelinking=no
8908 # Test if we are trying to use run time linking or normal
8909 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8910 # need to do runtime linking.
8911 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8912 for ld_flag in $LDFLAGS; do
8913 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8914 aix_use_runtimelinking=yes
8921 exp_sym_flag='-bexport'
8922 no_entry_flag='-bnoentry'
8925 # When large executables or shared objects are built, AIX ld can
8926 # have problems creating the table of contents. If linking a library
8927 # or program results in "error TOC overflow" add -mminimal-toc to
8928 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8929 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8933 hardcode_direct_absolute=yes
8934 hardcode_libdir_separator=':'
8935 link_all_deplibs=yes
8936 file_list_spec='${wl}-f,'
8938 if test "$GCC" = yes; then
8939 case $host_os in aix4.[012]|aix4.[012].*)
8940 # We only want to do this on AIX 4.2 and lower, the check
8941 # below for broken collect2 doesn't work under 4.3+
8942 collect2name=`${CC} -print-prog-name=collect2`
8943 if test -f "$collect2name" &&
8944 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8946 # We have reworked collect2
8949 # We have old collect2
8950 hardcode_direct=unsupported
8951 # It fails to find uninstalled libraries when the uninstalled
8952 # path is not listed in the libpath. Setting hardcode_minus_L
8953 # to unsupported forces relinking
8954 hardcode_minus_L=yes
8955 hardcode_libdir_flag_spec='-L$libdir'
8956 hardcode_libdir_separator=
8960 shared_flag='-shared'
8961 if test "$aix_use_runtimelinking" = yes; then
8962 shared_flag="$shared_flag "'${wl}-G'
8967 if test "$host_cpu" = ia64; then
8968 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8969 # chokes on -Wl,-G. The following line is correct:
8972 if test "$aix_use_runtimelinking" = yes; then
8973 shared_flag='${wl}-G'
8975 shared_flag='${wl}-bM:SRE'
8980 export_dynamic_flag_spec='${wl}-bexpall'
8981 # It seems that -bexpall does not export symbols beginning with
8982 # underscore (_), so it is better to generate a list of symbols to export.
8983 always_export_symbols=yes
8984 if test "$aix_use_runtimelinking" = yes; then
8985 # Warning - without using the other runtime loading flags (-brtl),
8986 # -berok will link without error, but may produce a broken library.
8987 allow_undefined_flag='-berok'
8988 # Determine the default libpath from the value encoded in an
8990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h. */
9001 if ac_fn_c_try_link "$LINENO"; then :
9003 lt_aix_libpath_sed='
9004 /Import File Strings/,/^$/ {
9010 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9011 # Check for a 64-bit object if we didn't find anything.
9012 if test -z "$aix_libpath"; then
9013 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9016 rm -f core conftest.err conftest.$ac_objext \
9017 conftest$ac_exeext conftest.$ac_ext
9018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9020 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9021 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9023 if test "$host_cpu" = ia64; then
9024 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9025 allow_undefined_flag="-z nodefs"
9026 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"
9028 # Determine the default libpath from the value encoded in an
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9041 if ac_fn_c_try_link "$LINENO"; then :
9043 lt_aix_libpath_sed='
9044 /Import File Strings/,/^$/ {
9050 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9051 # Check for a 64-bit object if we didn't find anything.
9052 if test -z "$aix_libpath"; then
9053 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9056 rm -f core conftest.err conftest.$ac_objext \
9057 conftest$ac_exeext conftest.$ac_ext
9058 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9060 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9061 # Warning - without using the other run time loading flags,
9062 # -berok will link without error, but may produce a broken library.
9063 no_undefined_flag=' ${wl}-bernotok'
9064 allow_undefined_flag=' ${wl}-berok'
9065 # Exported symbols can be pulled into shared objects from archives
9066 whole_archive_flag_spec='$convenience'
9067 archive_cmds_need_lc=yes
9068 # This is similar to how AIX traditionally builds its shared libraries.
9069 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'
9077 # see comment about AmigaOS4 .so support
9078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9079 archive_expsym_cmds=''
9082 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)'
9083 hardcode_libdir_flag_spec='-L$libdir'
9084 hardcode_minus_L=yes
9090 export_dynamic_flag_spec=-rdynamic
9093 cygwin* | mingw* | pw32* | cegcc*)
9094 # When not using gcc, we currently assume that we are using
9095 # Microsoft Visual C++.
9096 # hardcode_libdir_flag_spec is actually meaningless, as there is
9097 # no search path for DLLs.
9098 hardcode_libdir_flag_spec=' '
9099 allow_undefined_flag=unsupported
9100 # Tell ltmain to make .lib files, not .a files.
9102 # Tell ltmain to make .dll files, not .so files.
9104 # FIXME: Setting linknames here is a bad hack.
9105 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9106 # The linker will automatically build a .lib file if we build a DLL.
9107 old_archive_from_new_cmds='true'
9108 # FIXME: Should let the user specify the lib program.
9109 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9110 fix_srcfile_path='`cygpath -w "$srcfile"`'
9111 enable_shared_with_static_runtimes=yes
9114 darwin* | rhapsody*)
9117 archive_cmds_need_lc=no
9119 hardcode_automatic=yes
9120 hardcode_shlibpath_var=unsupported
9121 whole_archive_flag_spec=''
9122 link_all_deplibs=yes
9123 allow_undefined_flag="$_lt_dar_allow_undefined"
9124 case $cc_basename in
9125 ifort*) _lt_dar_can_shared=yes ;;
9126 *) _lt_dar_can_shared=$GCC ;;
9128 if test "$_lt_dar_can_shared" = "yes"; then
9129 output_verbose_link_cmd=echo
9130 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9131 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9132 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}"
9133 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}"
9142 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9143 hardcode_libdir_flag_spec='-L$libdir'
9144 hardcode_shlibpath_var=no
9151 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9152 # support. Future versions do this automatically, but an explicit c++rt0.o
9153 # does not break anything, and helps significantly (at the cost of a little
9156 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9157 hardcode_libdir_flag_spec='-R$libdir'
9159 hardcode_shlibpath_var=no
9162 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9164 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9166 hardcode_minus_L=yes
9167 hardcode_shlibpath_var=no
9170 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9171 freebsd* | dragonfly*)
9172 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9173 hardcode_libdir_flag_spec='-R$libdir'
9175 hardcode_shlibpath_var=no
9179 if test "$GCC" = yes; then
9180 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9182 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'
9184 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9185 hardcode_libdir_separator=:
9188 # hardcode_minus_L: Not really in the search PATH,
9189 # but as the default location of the library.
9190 hardcode_minus_L=yes
9191 export_dynamic_flag_spec='${wl}-E'
9195 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9196 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9198 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9200 if test "$with_gnu_ld" = no; then
9201 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9202 hardcode_libdir_flag_spec_ld='+b $libdir'
9203 hardcode_libdir_separator=:
9205 hardcode_direct_absolute=yes
9206 export_dynamic_flag_spec='${wl}-E'
9207 # hardcode_minus_L: Not really in the search PATH,
9208 # but as the default location of the library.
9209 hardcode_minus_L=yes
9214 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9217 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9220 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9223 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9229 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9232 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9235 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9239 if test "$with_gnu_ld" = no; then
9240 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9241 hardcode_libdir_separator=:
9246 hardcode_shlibpath_var=no
9250 hardcode_direct_absolute=yes
9251 export_dynamic_flag_spec='${wl}-E'
9253 # hardcode_minus_L: Not really in the search PATH,
9254 # but as the default location of the library.
9255 hardcode_minus_L=yes
9261 irix5* | irix6* | nonstopux*)
9262 if test "$GCC" = yes; then
9263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9264 # Try to use the -exported_symbol ld option, if it does not
9265 # work, assume that -exports_file does not work either and
9266 # implicitly export all symbols.
9267 save_LDFLAGS="$LDFLAGS"
9268 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h. */
9273 if ac_fn_c_try_link "$LINENO"; then :
9274 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9277 rm -f core conftest.err conftest.$ac_objext \
9278 conftest$ac_exeext conftest.$ac_ext
9279 LDFLAGS="$save_LDFLAGS"
9281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9282 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9284 archive_cmds_need_lc='no'
9285 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9286 hardcode_libdir_separator=:
9288 link_all_deplibs=yes
9291 netbsd* | netbsdelf*-gnu)
9292 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9293 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9295 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9297 hardcode_libdir_flag_spec='-R$libdir'
9299 hardcode_shlibpath_var=no
9303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9306 hardcode_libdir_separator=:
9307 hardcode_shlibpath_var=no
9314 if test -f /usr/libexec/ld.so; then
9316 hardcode_shlibpath_var=no
9317 hardcode_direct_absolute=yes
9318 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9319 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9320 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9321 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9322 export_dynamic_flag_spec='${wl}-E'
9325 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9326 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9327 hardcode_libdir_flag_spec='-R$libdir'
9330 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9331 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9341 hardcode_libdir_flag_spec='-L$libdir'
9342 hardcode_minus_L=yes
9343 allow_undefined_flag=unsupported
9344 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'
9345 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9349 if test "$GCC" = yes; then
9350 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9351 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9353 allow_undefined_flag=' -expect_unresolved \*'
9354 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9356 archive_cmds_need_lc='no'
9357 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9358 hardcode_libdir_separator=:
9361 osf4* | osf5*) # as osf3* with the addition of -msym flag
9362 if test "$GCC" = yes; then
9363 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9364 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9367 allow_undefined_flag=' -expect_unresolved \*'
9368 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9369 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~
9370 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9372 # Both c and cxx compiler support -rpath directly
9373 hardcode_libdir_flag_spec='-rpath $libdir'
9375 archive_cmds_need_lc='no'
9376 hardcode_libdir_separator=:
9380 no_undefined_flag=' -z defs'
9381 if test "$GCC" = yes; then
9383 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9384 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9385 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9387 case `$CC -V 2>&1` in
9390 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9391 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9392 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9396 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9397 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9398 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9402 hardcode_libdir_flag_spec='-R$libdir'
9403 hardcode_shlibpath_var=no
9405 solaris2.[0-5] | solaris2.[0-5].*) ;;
9407 # The compiler driver will combine and reorder linker options,
9408 # but understands `-z linker_flag'. GCC discards it without `$wl',
9409 # but is careful enough not to reorder.
9410 # Supported since Solaris 2.6 (maybe 2.5.1?)
9411 if test "$GCC" = yes; then
9412 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9414 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9418 link_all_deplibs=yes
9422 if test "x$host_vendor" = xsequent; then
9423 # Use $CC to link under sequent, because it throws in some extra .o
9424 # files that make .init and .fini sections work.
9425 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9427 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9429 hardcode_libdir_flag_spec='-L$libdir'
9431 hardcode_minus_L=yes
9432 hardcode_shlibpath_var=no
9436 case $host_vendor in
9438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9439 hardcode_direct=yes # is this really true???
9442 ## LD is ld it makes a PLAMLIB
9443 ## CC just makes a GrossModule.
9444 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9445 reload_cmds='$CC -r -o $output$reload_objs'
9449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9450 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9453 runpath_var='LD_RUN_PATH'
9454 hardcode_shlibpath_var=no
9458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9459 hardcode_shlibpath_var=no
9460 export_dynamic_flag_spec='-Bexport'
9464 if test -d /usr/nec; then
9465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9466 hardcode_shlibpath_var=no
9467 runpath_var=LD_RUN_PATH
9468 hardcode_runpath_var=yes
9473 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9474 no_undefined_flag='${wl}-z,text'
9475 archive_cmds_need_lc=no
9476 hardcode_shlibpath_var=no
9477 runpath_var='LD_RUN_PATH'
9479 if test "$GCC" = yes; then
9480 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9481 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9483 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9484 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9488 sysv5* | sco3.2v5* | sco5v6*)
9489 # Note: We can NOT use -z defs as we might desire, because we do not
9490 # link with -lc, and that would cause any symbols used from libc to
9491 # always be unresolved, which means just about no library would
9492 # ever link correctly. If we're not using GNU ld we use -z text
9493 # though, which does catch some bad symbols but isn't as heavy-handed
9495 no_undefined_flag='${wl}-z,text'
9496 allow_undefined_flag='${wl}-z,nodefs'
9497 archive_cmds_need_lc=no
9498 hardcode_shlibpath_var=no
9499 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9500 hardcode_libdir_separator=':'
9501 link_all_deplibs=yes
9502 export_dynamic_flag_spec='${wl}-Bexport'
9503 runpath_var='LD_RUN_PATH'
9505 if test "$GCC" = yes; then
9506 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9507 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9509 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9510 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9516 hardcode_libdir_flag_spec='-L$libdir'
9517 hardcode_shlibpath_var=no
9525 if test x$host_vendor = xsni; then
9527 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9528 export_dynamic_flag_spec='${wl}-Blargedynsym'
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9535 $as_echo "$ld_shlibs" >&6; }
9536 test "$ld_shlibs" = no && can_build_shared=no
9538 with_gnu_ld=$with_gnu_ld
9555 # Do we need to explicitly link libc?
9557 case "x$archive_cmds_need_lc" in
9559 # Assume -lc should be added
9560 archive_cmds_need_lc=yes
9562 if test "$enable_shared" = yes && test "$GCC" = yes; then
9563 case $archive_cmds in
9565 # FIXME: we may have to deal with multi-command sequences.
9568 # Test whether the compiler implicitly links with -lc since on some
9569 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9570 # to ld, don't add -lc before -lgcc.
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9572 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9577 (eval $ac_compile) 2>&5
9579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9580 test $ac_status = 0; } 2>conftest.err; then
9583 libobjs=conftest.$ac_objext
9585 wl=$lt_prog_compiler_wl
9586 pic_flag=$lt_prog_compiler_pic
9592 lt_save_allow_undefined_flag=$allow_undefined_flag
9593 allow_undefined_flag=
9594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9595 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9598 test $ac_status = 0; }
9600 archive_cmds_need_lc=no
9602 archive_cmds_need_lc=yes
9604 allow_undefined_flag=$lt_save_allow_undefined_flag
9606 cat conftest.err 1>&5
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9610 $as_echo "$archive_cmds_need_lc" >&6; }
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9774 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9776 if test "$GCC" = yes; then
9778 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9779 *) lt_awk_arg="/^libraries:/" ;;
9781 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9782 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9783 # if the path contains ";" then we assume it to be the separator
9784 # otherwise default to the standard path separator (i.e. ":") - it is
9785 # assumed that no part of a normal pathname contains ";" but that should
9786 # okay in the real world where ";" in dirpaths is itself problematic.
9787 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9789 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9791 # Ok, now we have the path, separated by spaces, we can step through it
9792 # and add multilib dir if necessary.
9793 lt_tmp_lt_search_path_spec=
9794 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9795 for lt_sys_path in $lt_search_path_spec; do
9796 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9797 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9799 test -d "$lt_sys_path" && \
9800 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9803 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9804 BEGIN {RS=" "; FS="/|\n";} {
9807 for (lt_i = NF; lt_i > 0; lt_i--) {
9808 if ($lt_i != "" && $lt_i != ".") {
9809 if ($lt_i == "..") {
9812 if (lt_count == 0) {
9813 lt_foo="/" $lt_i lt_foo;
9820 if (lt_foo != "") { lt_freq[lt_foo]++; }
9821 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9823 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9825 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9828 libname_spec='lib$name'
9836 shlibpath_overrides_runpath=unknown
9838 dynamic_linker="$host_os ld.so"
9839 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9840 need_lib_prefix=unknown
9841 hardcode_into_libs=no
9843 # when you set need_version to no, make sure it does not cause -set_version
9844 # flags to be left without arguments
9845 need_version=unknown
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9851 shlibpath_var=LIBPATH
9853 # AIX 3 has no versioning support, so we append a major version to the name.
9854 soname_spec='${libname}${release}${shared_ext}$major'
9861 hardcode_into_libs=yes
9862 if test "$host_cpu" = ia64; then
9863 # AIX 5 supports IA64
9864 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9865 shlibpath_var=LD_LIBRARY_PATH
9867 # With GCC up to 2.95.x, collect2 would create an import file
9868 # for dependence libraries. The import file would start with
9869 # the line `#! .'. This would cause the generated library to
9870 # depend on `.', always an invalid library. This was fixed in
9871 # development snapshots of GCC prior to 3.0.
9873 aix4 | aix4.[01] | aix4.[01].*)
9874 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9876 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9883 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9884 # soname into executable. Probably we can add versioning support to
9885 # collect2, so additional links can be useful in future.
9886 if test "$aix_use_runtimelinking" = yes; then
9887 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9888 # instead of lib<name>.a to let people know that these are not
9889 # typical AIX shared libraries.
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9892 # We preserve .a as extension for shared libraries through AIX4.2
9893 # and later when we are not doing run time linking.
9894 library_names_spec='${libname}${release}.a $libname.a'
9895 soname_spec='${libname}${release}${shared_ext}$major'
9897 shlibpath_var=LIBPATH
9904 # Since July 2007 AmigaOS4 officially supports .so libraries.
9905 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9909 library_names_spec='$libname.ixlibrary $libname.a'
9910 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9911 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9917 library_names_spec='${libname}${shared_ext}'
9918 dynamic_linker="$host_os ld.so"
9919 shlibpath_var=LIBRARY_PATH
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926 soname_spec='${libname}${release}${shared_ext}$major'
9927 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9928 shlibpath_var=LD_LIBRARY_PATH
9929 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9930 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9931 # the default ld.so.conf also contains /usr/contrib/lib and
9932 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9933 # libtool to hard-code these into programs
9936 cygwin* | mingw* | pw32* | cegcc*)
9937 version_type=windows
9942 case $GCC,$host_os in
9943 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9944 library_names_spec='$libname.dll.a'
9945 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9946 postinstall_cmds='base_file=`basename \${file}`~
9947 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9948 dldir=$destdir/`dirname \$dlpath`~
9949 test -d \$dldir || mkdir -p \$dldir~
9950 $install_prog $dir/$dlname \$dldir/$dlname~
9951 chmod a+x \$dldir/$dlname~
9952 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9953 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9955 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9956 dlpath=$dir/\$dldll~
9958 shlibpath_overrides_runpath=yes
9962 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9963 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9964 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9967 # MinGW DLLs use traditional 'lib' prefix
9968 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9969 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9970 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9971 # It is most probably a Windows format PATH printed by
9972 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9973 # path with ; separators, and with drive letters. We can handle the
9974 # drive letters (cygwin fileutils understands them), so leave them,
9975 # especially as we might pass files found there to a mingw objdump,
9976 # which wouldn't understand a cygwinified path. Ahh.
9977 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9979 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9983 # pw32 DLLs use 'pw' prefix rather than 'lib'
9984 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9990 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9993 dynamic_linker='Win32 ld.exe'
9994 # FIXME: first we should search . and the directory the executable is in
9998 darwin* | rhapsody*)
9999 dynamic_linker="$host_os dyld"
10000 version_type=darwin
10003 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10004 soname_spec='${libname}${release}${major}$shared_ext'
10005 shlibpath_overrides_runpath=yes
10006 shlibpath_var=DYLD_LIBRARY_PATH
10007 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10009 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10010 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 shlibpath_var=LD_LIBRARY_PATH
10026 freebsd* | dragonfly*)
10027 # DragonFly does not have aout. When/if they implement a new
10028 # versioning mechanism, adjust this.
10029 if test -x /usr/bin/objformat; then
10030 objformat=`/usr/bin/objformat`
10033 freebsd[123]*) objformat=aout ;;
10034 *) objformat=elf ;;
10037 version_type=freebsd-$objformat
10038 case $version_type in
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10049 shlibpath_var=LD_LIBRARY_PATH
10052 shlibpath_overrides_runpath=yes
10054 freebsd3.[01]* | freebsdelf3.[01]*)
10055 shlibpath_overrides_runpath=yes
10056 hardcode_into_libs=yes
10058 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10059 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10060 shlibpath_overrides_runpath=no
10061 hardcode_into_libs=yes
10063 *) # from 4.6 on, and DragonFly
10064 shlibpath_overrides_runpath=yes
10065 hardcode_into_libs=yes
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 shlibpath_var=LD_LIBRARY_PATH
10077 hardcode_into_libs=yes
10080 hpux9* | hpux10* | hpux11*)
10081 # Give a soname corresponding to the major version so that dld.sl refuses to
10082 # link against other versions.
10089 hardcode_into_libs=yes
10090 dynamic_linker="$host_os dld.so"
10091 shlibpath_var=LD_LIBRARY_PATH
10092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10094 soname_spec='${libname}${release}${shared_ext}$major'
10095 if test "X$HPUX_IA64_MODE" = X32; then
10096 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10098 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10100 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10104 hardcode_into_libs=yes
10105 dynamic_linker="$host_os dld.sl"
10106 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10109 soname_spec='${libname}${release}${shared_ext}$major'
10110 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10111 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10115 dynamic_linker="$host_os dld.sl"
10116 shlibpath_var=SHLIB_PATH
10117 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119 soname_spec='${libname}${release}${shared_ext}$major'
10122 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10123 postinstall_cmds='chmod 555 $lib'
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10131 soname_spec='${libname}${release}${shared_ext}$major'
10132 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10133 shlibpath_var=LD_LIBRARY_PATH
10134 shlibpath_overrides_runpath=no
10135 hardcode_into_libs=yes
10138 irix5* | irix6* | nonstopux*)
10140 nonstopux*) version_type=nonstopux ;;
10142 if test "$lt_cv_prog_gnu_ld" = yes; then
10150 soname_spec='${libname}${release}${shared_ext}$major'
10151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10153 irix5* | nonstopux*)
10154 libsuff= shlibsuff=
10157 case $LD in # libtool.m4 will add one of these switches to LD
10158 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10159 libsuff= shlibsuff= libmagic=32-bit;;
10160 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10161 libsuff=32 shlibsuff=N32 libmagic=N32;;
10162 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10163 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10164 *) libsuff= shlibsuff= libmagic=never-match;;
10168 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10169 shlibpath_overrides_runpath=no
10170 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10171 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10172 hardcode_into_libs=yes
10175 # No shared lib support for Linux oldld, aout, or coff.
10176 linux*oldld* | linux*aout* | linux*coff*)
10180 # This must be Linux ELF.
10181 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186 soname_spec='${libname}${release}${shared_ext}$major'
10187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10188 shlibpath_var=LD_LIBRARY_PATH
10189 shlibpath_overrides_runpath=no
10190 # Some binutils ld are patched to set DT_RUNPATH
10191 save_LDFLAGS=$LDFLAGS
10192 save_libdir=$libdir
10193 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10194 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10196 /* end confdefs.h. */
10206 if ac_fn_c_try_link "$LINENO"; then :
10207 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10208 shlibpath_overrides_runpath=yes
10211 rm -f core conftest.err conftest.$ac_objext \
10212 conftest$ac_exeext conftest.$ac_ext
10213 LDFLAGS=$save_LDFLAGS
10214 libdir=$save_libdir
10216 # This implies no fast_install, which is unacceptable.
10217 # Some rework will be needed to allow for fast_install
10218 # before this can be enabled.
10219 hardcode_into_libs=yes
10221 # Append ld.so.conf contents to the search path
10222 if test -f /etc/ld.so.conf; then
10223 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10224 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10227 # We used to test for /lib/ld.so.1 and disable shared libraries on
10228 # powerpc, because MkLinux only supported shared libraries with the
10229 # GNU dynamic linker. Since this was broken with cross compilers,
10230 # most powerpc-linux boxes support dynamic linking these days and
10231 # people can always --disable-shared, the test was removed, and we
10232 # assume the GNU/Linux dynamic linker is in use.
10233 dynamic_linker='GNU/Linux ld.so'
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10241 soname_spec='${libname}${release}${shared_ext}$major'
10242 shlibpath_var=LD_LIBRARY_PATH
10243 shlibpath_overrides_runpath=no
10244 hardcode_into_libs=yes
10245 dynamic_linker='NetBSD ld.elf_so'
10252 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10255 dynamic_linker='NetBSD (a.out) ld.so'
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10258 soname_spec='${libname}${release}${shared_ext}$major'
10259 dynamic_linker='NetBSD ld.elf_so'
10261 shlibpath_var=LD_LIBRARY_PATH
10262 shlibpath_overrides_runpath=yes
10263 hardcode_into_libs=yes
10268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10269 shlibpath_var=LD_LIBRARY_PATH
10270 shlibpath_overrides_runpath=yes
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10278 soname_spec='${libname}${release}${shared_ext}$major'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 shlibpath_overrides_runpath=no
10281 hardcode_into_libs=yes
10282 dynamic_linker='ldqnx.so'
10287 sys_lib_dlsearch_path_spec="/usr/lib"
10289 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10291 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10292 *) need_version=no ;;
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10296 shlibpath_var=LD_LIBRARY_PATH
10297 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10299 openbsd2.[89] | openbsd2.[89].*)
10300 shlibpath_overrides_runpath=no
10303 shlibpath_overrides_runpath=yes
10307 shlibpath_overrides_runpath=yes
10312 libname_spec='$name'
10315 library_names_spec='$libname${shared_ext} $libname.a'
10316 dynamic_linker='OS/2 ld.exe'
10317 shlibpath_var=LIBPATH
10320 osf3* | osf4* | osf5*)
10324 soname_spec='${libname}${release}${shared_ext}$major'
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326 shlibpath_var=LD_LIBRARY_PATH
10327 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10328 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 shlibpath_var=LD_LIBRARY_PATH
10342 shlibpath_overrides_runpath=yes
10343 hardcode_into_libs=yes
10344 # ldd complains unless libraries are executable
10345 postinstall_cmds='chmod +x $lib'
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10351 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10352 shlibpath_var=LD_LIBRARY_PATH
10353 shlibpath_overrides_runpath=yes
10354 if test "$with_gnu_ld" = yes; then
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363 soname_spec='${libname}${release}${shared_ext}$major'
10364 shlibpath_var=LD_LIBRARY_PATH
10365 case $host_vendor in
10367 shlibpath_overrides_runpath=no
10369 runpath_var=LD_RUN_PATH
10377 shlibpath_overrides_runpath=no
10378 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10384 if test -d /usr/nec ;then
10386 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10387 soname_spec='$libname${shared_ext}.$major'
10388 shlibpath_var=LD_LIBRARY_PATH
10392 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10393 version_type=freebsd-elf
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10397 soname_spec='${libname}${release}${shared_ext}$major'
10398 shlibpath_var=LD_LIBRARY_PATH
10399 shlibpath_overrides_runpath=yes
10400 hardcode_into_libs=yes
10401 if test "$with_gnu_ld" = yes; then
10402 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10404 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10407 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10411 sys_lib_dlsearch_path_spec='/usr/lib'
10415 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10420 shlibpath_var=LD_LIBRARY_PATH
10421 shlibpath_overrides_runpath=no
10422 hardcode_into_libs=yes
10427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10428 soname_spec='${libname}${release}${shared_ext}$major'
10429 shlibpath_var=LD_LIBRARY_PATH
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10437 $as_echo "$dynamic_linker" >&6; }
10438 test "$dynamic_linker" = no && can_build_shared=no
10440 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10441 if test "$GCC" = yes; then
10442 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10445 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10446 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10448 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10449 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10539 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10541 if test -n "$hardcode_libdir_flag_spec" ||
10542 test -n "$runpath_var" ||
10543 test "X$hardcode_automatic" = "Xyes" ; then
10545 # We can hardcode non-existent directories.
10546 if test "$hardcode_direct" != no &&
10547 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10548 # have to relink, otherwise we might link with an installed library
10549 # when we should be linking with a yet-to-be-installed one
10550 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10551 test "$hardcode_minus_L" != no; then
10552 # Linking always hardcodes the temporary library directory.
10553 hardcode_action=relink
10555 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10556 hardcode_action=immediate
10559 # We cannot hardcode anything, or else we can only hardcode existing
10561 hardcode_action=unsupported
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10564 $as_echo "$hardcode_action" >&6; }
10566 if test "$hardcode_action" = relink ||
10567 test "$inherit_rpath" = yes; then
10568 # Fast installation is not supported
10569 enable_fast_install=no
10570 elif test "$shlibpath_overrides_runpath" = yes ||
10571 test "$enable_shared" = no; then
10572 # Fast installation is not necessary
10573 enable_fast_install=needless
10581 if test "x$enable_dlopen" != xyes; then
10582 enable_dlopen=unknown
10583 enable_dlopen_self=unknown
10584 enable_dlopen_self_static=unknown
10591 lt_cv_dlopen="load_add_on"
10593 lt_cv_dlopen_self=yes
10596 mingw* | pw32* | cegcc*)
10597 lt_cv_dlopen="LoadLibrary"
10602 lt_cv_dlopen="dlopen"
10607 # if libdl is installed we need to link against it
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10609 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10610 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10611 $as_echo_n "(cached) " >&6
10613 ac_check_lib_save_LIBS=$LIBS
10615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616 /* end confdefs.h. */
10618 /* Override any GCC internal prototype to avoid an error.
10619 Use char because int might match the return type of a GCC
10620 builtin and then its argument prototype would still apply. */
10633 if ac_fn_c_try_link "$LINENO"; then :
10634 ac_cv_lib_dl_dlopen=yes
10636 ac_cv_lib_dl_dlopen=no
10638 rm -f core conftest.err conftest.$ac_objext \
10639 conftest$ac_exeext conftest.$ac_ext
10640 LIBS=$ac_check_lib_save_LIBS
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10643 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10644 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10645 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10648 lt_cv_dlopen="dyld"
10650 lt_cv_dlopen_self=yes
10657 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10658 if test "x$ac_cv_func_shl_load" = x""yes; then :
10659 lt_cv_dlopen="shl_load"
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10662 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10663 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10664 $as_echo_n "(cached) " >&6
10666 ac_check_lib_save_LIBS=$LIBS
10668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10671 /* Override any GCC internal prototype to avoid an error.
10672 Use char because int might match the return type of a GCC
10673 builtin and then its argument prototype would still apply. */
10681 return shl_load ();
10686 if ac_fn_c_try_link "$LINENO"; then :
10687 ac_cv_lib_dld_shl_load=yes
10689 ac_cv_lib_dld_shl_load=no
10691 rm -f core conftest.err conftest.$ac_objext \
10692 conftest$ac_exeext conftest.$ac_ext
10693 LIBS=$ac_check_lib_save_LIBS
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10696 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10697 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10698 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10700 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10701 if test "x$ac_cv_func_dlopen" = x""yes; then :
10702 lt_cv_dlopen="dlopen"
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10705 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10706 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10707 $as_echo_n "(cached) " >&6
10709 ac_check_lib_save_LIBS=$LIBS
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10714 /* Override any GCC internal prototype to avoid an error.
10715 Use char because int might match the return type of a GCC
10716 builtin and then its argument prototype would still apply. */
10729 if ac_fn_c_try_link "$LINENO"; then :
10730 ac_cv_lib_dl_dlopen=yes
10732 ac_cv_lib_dl_dlopen=no
10734 rm -f core conftest.err conftest.$ac_objext \
10735 conftest$ac_exeext conftest.$ac_ext
10736 LIBS=$ac_check_lib_save_LIBS
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10739 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10740 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10741 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10744 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10745 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10746 $as_echo_n "(cached) " >&6
10748 ac_check_lib_save_LIBS=$LIBS
10749 LIBS="-lsvld $LIBS"
10750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751 /* end confdefs.h. */
10753 /* Override any GCC internal prototype to avoid an error.
10754 Use char because int might match the return type of a GCC
10755 builtin and then its argument prototype would still apply. */
10768 if ac_fn_c_try_link "$LINENO"; then :
10769 ac_cv_lib_svld_dlopen=yes
10771 ac_cv_lib_svld_dlopen=no
10773 rm -f core conftest.err conftest.$ac_objext \
10774 conftest$ac_exeext conftest.$ac_ext
10775 LIBS=$ac_check_lib_save_LIBS
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10778 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10779 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10780 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10783 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10784 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10785 $as_echo_n "(cached) " >&6
10787 ac_check_lib_save_LIBS=$LIBS
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10792 /* Override any GCC internal prototype to avoid an error.
10793 Use char because int might match the return type of a GCC
10794 builtin and then its argument prototype would still apply. */
10802 return dld_link ();
10807 if ac_fn_c_try_link "$LINENO"; then :
10808 ac_cv_lib_dld_dld_link=yes
10810 ac_cv_lib_dld_dld_link=no
10812 rm -f core conftest.err conftest.$ac_objext \
10813 conftest$ac_exeext conftest.$ac_ext
10814 LIBS=$ac_check_lib_save_LIBS
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10817 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10818 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10819 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10840 if test "x$lt_cv_dlopen" != xno; then
10846 case $lt_cv_dlopen in
10848 save_CPPFLAGS="$CPPFLAGS"
10849 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10851 save_LDFLAGS="$LDFLAGS"
10852 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10855 LIBS="$lt_cv_dlopen_libs $LIBS"
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10858 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10859 if test "${lt_cv_dlopen_self+set}" = set; then :
10860 $as_echo_n "(cached) " >&6
10862 if test "$cross_compiling" = yes; then :
10863 lt_cv_dlopen_self=cross
10865 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10866 lt_status=$lt_dlunknown
10867 cat > conftest.$ac_ext <<_LT_EOF
10868 #line 10868 "configure"
10869 #include "confdefs.h"
10878 # define LT_DLGLOBAL RTLD_GLOBAL
10881 # define LT_DLGLOBAL DL_GLOBAL
10883 # define LT_DLGLOBAL 0
10887 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10888 find out it does not work in some platform. */
10889 #ifndef LT_DLLAZY_OR_NOW
10891 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10894 # define LT_DLLAZY_OR_NOW DL_LAZY
10897 # define LT_DLLAZY_OR_NOW RTLD_NOW
10900 # define LT_DLLAZY_OR_NOW DL_NOW
10902 # define LT_DLLAZY_OR_NOW 0
10909 void fnord() { int i=42;}
10912 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10913 int status = $lt_dlunknown;
10917 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10918 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10919 /* dlclose (self); */
10927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10928 (eval $ac_link) 2>&5
10930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10931 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10932 (./conftest; exit; ) >&5 2>/dev/null
10934 case x$lt_status in
10935 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10936 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10937 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10940 # compilation failed
10941 lt_cv_dlopen_self=no
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10949 $as_echo "$lt_cv_dlopen_self" >&6; }
10951 if test "x$lt_cv_dlopen_self" = xyes; then
10952 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10954 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10955 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10956 $as_echo_n "(cached) " >&6
10958 if test "$cross_compiling" = yes; then :
10959 lt_cv_dlopen_self_static=cross
10961 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10962 lt_status=$lt_dlunknown
10963 cat > conftest.$ac_ext <<_LT_EOF
10964 #line 10964 "configure"
10965 #include "confdefs.h"
10974 # define LT_DLGLOBAL RTLD_GLOBAL
10977 # define LT_DLGLOBAL DL_GLOBAL
10979 # define LT_DLGLOBAL 0
10983 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10984 find out it does not work in some platform. */
10985 #ifndef LT_DLLAZY_OR_NOW
10987 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10990 # define LT_DLLAZY_OR_NOW DL_LAZY
10993 # define LT_DLLAZY_OR_NOW RTLD_NOW
10996 # define LT_DLLAZY_OR_NOW DL_NOW
10998 # define LT_DLLAZY_OR_NOW 0
11005 void fnord() { int i=42;}
11008 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11009 int status = $lt_dlunknown;
11013 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11014 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11015 /* dlclose (self); */
11023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11024 (eval $ac_link) 2>&5
11026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11027 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11028 (./conftest; exit; ) >&5 2>/dev/null
11030 case x$lt_status in
11031 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11032 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11033 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11036 # compilation failed
11037 lt_cv_dlopen_self_static=no
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11045 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11048 CPPFLAGS="$save_CPPFLAGS"
11049 LDFLAGS="$save_LDFLAGS"
11054 case $lt_cv_dlopen_self in
11055 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11056 *) enable_dlopen_self=unknown ;;
11059 case $lt_cv_dlopen_self_static in
11060 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11061 *) enable_dlopen_self_static=unknown ;;
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11084 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11085 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11086 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11087 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11089 $as_echo "yes" >&6; }
11091 # FIXME - insert some real tests, host_os isn't really good enough
11094 if test -n "$STRIP" ; then
11095 striplib="$STRIP -x"
11096 old_striplib="$STRIP -S"
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11098 $as_echo "yes" >&6; }
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11101 $as_echo "no" >&6; }
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11106 $as_echo "no" >&6; }
11122 # Report which library types will actually be built
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11124 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11126 $as_echo "$can_build_shared" >&6; }
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11129 $as_echo_n "checking whether to build shared libraries... " >&6; }
11130 test "$can_build_shared" = "no" && enable_shared=no
11132 # On AIX, shared libraries and static libraries use the same namespace, and
11133 # are all built from PIC.
11136 test "$enable_shared" = yes && enable_static=no
11137 if test -n "$RANLIB"; then
11138 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11139 postinstall_cmds='$RANLIB $lib'
11144 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11145 test "$enable_shared" = yes && enable_static=no
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11150 $as_echo "$enable_shared" >&6; }
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11153 $as_echo_n "checking whether to build static libraries... " >&6; }
11154 # Make sure either enable_shared or enable_static is yes.
11155 test "$enable_shared" = yes || enable_static=yes
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11157 $as_echo "$enable_static" >&6; }
11164 ac_cpp='$CPP $CPPFLAGS'
11165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11183 ac_config_commands="$ac_config_commands libtool"
11188 # Only expand once:
11195 for ac_header in $ac_header_list
11197 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11198 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11200 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11201 cat >>confdefs.h <<_ACEOF
11202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11216 for ac_func in getpagesize
11218 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11219 if test "x$ac_cv_func_getpagesize" = x""yes; then :
11220 cat >>confdefs.h <<_ACEOF
11221 #define HAVE_GETPAGESIZE 1
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11228 $as_echo_n "checking for working mmap... " >&6; }
11229 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11230 $as_echo_n "(cached) " >&6
11232 if test "$cross_compiling" = yes; then :
11233 ac_cv_func_mmap_fixed_mapped=no
11235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11237 $ac_includes_default
11238 /* malloc might have been renamed as rpl_malloc. */
11241 /* Thanks to Mike Haertel and Jim Avera for this test.
11242 Here is a matrix of mmap possibilities:
11243 mmap private not fixed
11244 mmap private fixed at somewhere currently unmapped
11245 mmap private fixed at somewhere already mapped
11246 mmap shared not fixed
11247 mmap shared fixed at somewhere currently unmapped
11248 mmap shared fixed at somewhere already mapped
11249 For private mappings, we should verify that changes cannot be read()
11250 back from the file, nor mmap's back from the file at a different
11251 address. (There have been systems where private was not correctly
11252 implemented like the infamous i386 svr4.0, and systems where the
11253 VM page cache was not coherent with the file system buffer cache
11254 like early versions of FreeBSD and possibly contemporary NetBSD.)
11255 For shared mappings, we should conversely verify that changes get
11256 propagated back to all the places they're supposed to be.
11258 Grep wants private fixed already mapped.
11259 The main things grep needs to know about mmap are:
11260 * does it exist and is it safe to write into the mmap'd area
11261 * how to use it (BSD variants) */
11264 #include <sys/mman.h>
11266 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11270 /* This mess was copied from the GNU getpagesize.h. */
11271 #ifndef HAVE_GETPAGESIZE
11272 # ifdef _SC_PAGESIZE
11273 # define getpagesize() sysconf(_SC_PAGESIZE)
11274 # else /* no _SC_PAGESIZE */
11275 # ifdef HAVE_SYS_PARAM_H
11276 # include <sys/param.h>
11277 # ifdef EXEC_PAGESIZE
11278 # define getpagesize() EXEC_PAGESIZE
11279 # else /* no EXEC_PAGESIZE */
11281 # define getpagesize() NBPG * CLSIZE
11284 # endif /* no CLSIZE */
11285 # else /* no NBPG */
11287 # define getpagesize() NBPC
11288 # else /* no NBPC */
11290 # define getpagesize() PAGESIZE
11291 # endif /* PAGESIZE */
11292 # endif /* no NBPC */
11293 # endif /* no NBPG */
11294 # endif /* no EXEC_PAGESIZE */
11295 # else /* no HAVE_SYS_PARAM_H */
11296 # define getpagesize() 8192 /* punt totally */
11297 # endif /* no HAVE_SYS_PARAM_H */
11298 # endif /* no _SC_PAGESIZE */
11300 #endif /* no HAVE_GETPAGESIZE */
11305 char *data, *data2, *data3;
11306 const char *cdata2;
11310 pagesize = getpagesize ();
11312 /* First, make a file with some known garbage in it. */
11313 data = (char *) malloc (pagesize);
11316 for (i = 0; i < pagesize; ++i)
11317 *(data + i) = rand ();
11319 fd = creat ("conftest.mmap", 0600);
11322 if (write (fd, data, pagesize) != pagesize)
11326 /* Next, check that the tail of a page is zero-filled. File must have
11327 non-zero length, otherwise we risk SIGBUS for entire page. */
11328 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
11332 if (write (fd2, cdata2, 1) != 1)
11334 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
11335 if (data2 == MAP_FAILED)
11337 for (i = 0; i < pagesize; ++i)
11341 if (munmap (data2, pagesize))
11344 /* Next, try to mmap the file at a fixed address which already has
11345 something else allocated at it. If we can, also make sure that
11346 we see the same garbage. */
11347 fd = open ("conftest.mmap", O_RDWR);
11350 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11351 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11353 for (i = 0; i < pagesize; ++i)
11354 if (*(data + i) != *(data2 + i))
11357 /* Finally, make sure that changes to the mapped area do not
11358 percolate back to the file as seen by read(). (This is a bug on
11359 some variants of i386 svr4.0.) */
11360 for (i = 0; i < pagesize; ++i)
11361 *(data2 + i) = *(data2 + i) + 1;
11362 data3 = (char *) malloc (pagesize);
11365 if (read (fd, data3, pagesize) != pagesize)
11367 for (i = 0; i < pagesize; ++i)
11368 if (*(data + i) != *(data3 + i))
11374 if ac_fn_c_try_run "$LINENO"; then :
11375 ac_cv_func_mmap_fixed_mapped=yes
11377 ac_cv_func_mmap_fixed_mapped=no
11379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11380 conftest.$ac_objext conftest.beam conftest.$ac_ext
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11385 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11386 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11388 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11391 rm -f conftest.mmap conftest.txt
11393 # Check whether --enable-largefile was given.
11394 if test "${enable_largefile+set}" = set; then :
11395 enableval=$enable_largefile;
11398 if test "$enable_largefile" != no; then
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11401 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11402 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11403 $as_echo_n "(cached) " >&6
11405 ac_cv_sys_largefile_CC=no
11406 if test "$GCC" != yes; then
11409 # IRIX 6.2 and later do not support large files by default,
11410 # so use the C compiler's -n32 option if that helps.
11411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11412 /* end confdefs.h. */
11413 #include <sys/types.h>
11414 /* Check that off_t can represent 2**63 - 1 correctly.
11415 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11416 since some C++ compilers masquerading as C compilers
11417 incorrectly reject 9223372036854775807. */
11418 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11419 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11420 && LARGE_OFF_T % 2147483647 == 1)
11430 if ac_fn_c_try_compile "$LINENO"; then :
11433 rm -f core conftest.err conftest.$ac_objext
11435 if ac_fn_c_try_compile "$LINENO"; then :
11436 ac_cv_sys_largefile_CC=' -n32'; break
11438 rm -f core conftest.err conftest.$ac_objext
11442 rm -f conftest.$ac_ext
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11446 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11447 if test "$ac_cv_sys_largefile_CC" != no; then
11448 CC=$CC$ac_cv_sys_largefile_CC
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11452 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11453 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11454 $as_echo_n "(cached) " >&6
11457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h. */
11459 #include <sys/types.h>
11460 /* Check that off_t can represent 2**63 - 1 correctly.
11461 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11462 since some C++ compilers masquerading as C compilers
11463 incorrectly reject 9223372036854775807. */
11464 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11466 && LARGE_OFF_T % 2147483647 == 1)
11476 if ac_fn_c_try_compile "$LINENO"; then :
11477 ac_cv_sys_file_offset_bits=no; break
11479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h. */
11482 #define _FILE_OFFSET_BITS 64
11483 #include <sys/types.h>
11484 /* Check that off_t can represent 2**63 - 1 correctly.
11485 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11486 since some C++ compilers masquerading as C compilers
11487 incorrectly reject 9223372036854775807. */
11488 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11489 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11490 && LARGE_OFF_T % 2147483647 == 1)
11500 if ac_fn_c_try_compile "$LINENO"; then :
11501 ac_cv_sys_file_offset_bits=64; break
11503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11504 ac_cv_sys_file_offset_bits=unknown
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11509 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11510 case $ac_cv_sys_file_offset_bits in #(
11513 cat >>confdefs.h <<_ACEOF
11514 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11519 if test $ac_cv_sys_file_offset_bits = unknown; then
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11521 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11522 if test "${ac_cv_sys_large_files+set}" = set; then :
11523 $as_echo_n "(cached) " >&6
11526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527 /* end confdefs.h. */
11528 #include <sys/types.h>
11529 /* Check that off_t can represent 2**63 - 1 correctly.
11530 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11531 since some C++ compilers masquerading as C compilers
11532 incorrectly reject 9223372036854775807. */
11533 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11534 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11535 && LARGE_OFF_T % 2147483647 == 1)
11545 if ac_fn_c_try_compile "$LINENO"; then :
11546 ac_cv_sys_large_files=no; break
11548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11550 /* end confdefs.h. */
11551 #define _LARGE_FILES 1
11552 #include <sys/types.h>
11553 /* Check that off_t can represent 2**63 - 1 correctly.
11554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11555 since some C++ compilers masquerading as C compilers
11556 incorrectly reject 9223372036854775807. */
11557 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11559 && LARGE_OFF_T % 2147483647 == 1)
11569 if ac_fn_c_try_compile "$LINENO"; then :
11570 ac_cv_sys_large_files=1; break
11572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11573 ac_cv_sys_large_files=unknown
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11578 $as_echo "$ac_cv_sys_large_files" >&6; }
11579 case $ac_cv_sys_large_files in #(
11582 cat >>confdefs.h <<_ACEOF
11583 #define _LARGE_FILES $ac_cv_sys_large_files
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking operating system" >&5
11593 $as_echo_n "checking operating system... " >&6; }
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32" >&5
11597 $as_echo "Win32" >&6; }
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
11602 $as_echo "Darwin" >&6; }
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_os" >&5
11607 $as_echo "$host_os" >&6; }
11618 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11619 if test -n "$ac_tool_prefix"; then
11620 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11621 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11623 $as_echo_n "checking for $ac_word... " >&6; }
11624 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11625 $as_echo_n "(cached) " >&6
11627 case $PKG_CONFIG in
11629 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633 for as_dir in $PATH
11636 test -z "$as_dir" && as_dir=.
11637 for ac_exec_ext in '' $ac_executable_extensions; do
11638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11639 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11650 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11651 if test -n "$PKG_CONFIG"; then
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11653 $as_echo "$PKG_CONFIG" >&6; }
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656 $as_echo "no" >&6; }
11661 if test -z "$ac_cv_path_PKG_CONFIG"; then
11662 ac_pt_PKG_CONFIG=$PKG_CONFIG
11663 # Extract the first word of "pkg-config", so it can be a program name with args.
11664 set dummy pkg-config; ac_word=$2
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11666 $as_echo_n "checking for $ac_word... " >&6; }
11667 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
11668 $as_echo_n "(cached) " >&6
11670 case $ac_pt_PKG_CONFIG in
11672 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11676 for as_dir in $PATH
11679 test -z "$as_dir" && as_dir=.
11680 for ac_exec_ext in '' $ac_executable_extensions; do
11681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11682 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11693 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11694 if test -n "$ac_pt_PKG_CONFIG"; then
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11696 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699 $as_echo "no" >&6; }
11702 if test "x$ac_pt_PKG_CONFIG" = x; then
11705 case $cross_compiling:$ac_tool_warned in
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11709 ac_tool_warned=yes ;;
11711 PKG_CONFIG=$ac_pt_PKG_CONFIG
11714 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11718 if test -n "$PKG_CONFIG"; then
11719 _pkg_min_version=0.9.0
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11721 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11722 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11724 $as_echo "yes" >&6; }
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGUPNP" >&5
11734 $as_echo_n "checking for LIBGUPNP... " >&6; }
11736 if test -n "$LIBGUPNP_CFLAGS"; then
11737 pkg_cv_LIBGUPNP_CFLAGS="$LIBGUPNP_CFLAGS"
11738 elif test -n "$PKG_CONFIG"; then
11739 if test -n "$PKG_CONFIG" && \
11740 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.18 \\
11741 gobject-2.0 >= 2.18 \\
11743 gssdp-1.0 >= 0.7.1 \\
11744 libsoup-2.4 >= 2.4.1 \\
11747 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.18 \
11748 gobject-2.0 >= 2.18 \
11750 gssdp-1.0 >= 0.7.1 \
11751 libsoup-2.4 >= 2.4.1 \
11755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11756 test $ac_status = 0; }; then
11757 pkg_cv_LIBGUPNP_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.18 \
11758 gobject-2.0 >= 2.18 \
11760 gssdp-1.0 >= 0.7.1 \
11761 libsoup-2.4 >= 2.4.1 \
11763 $UUID" 2>/dev/null`
11770 if test -n "$LIBGUPNP_LIBS"; then
11771 pkg_cv_LIBGUPNP_LIBS="$LIBGUPNP_LIBS"
11772 elif test -n "$PKG_CONFIG"; then
11773 if test -n "$PKG_CONFIG" && \
11774 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.18 \\
11775 gobject-2.0 >= 2.18 \\
11777 gssdp-1.0 >= 0.7.1 \\
11778 libsoup-2.4 >= 2.4.1 \\
11781 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.18 \
11782 gobject-2.0 >= 2.18 \
11784 gssdp-1.0 >= 0.7.1 \
11785 libsoup-2.4 >= 2.4.1 \
11789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11790 test $ac_status = 0; }; then
11791 pkg_cv_LIBGUPNP_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.18 \
11792 gobject-2.0 >= 2.18 \
11794 gssdp-1.0 >= 0.7.1 \
11795 libsoup-2.4 >= 2.4.1 \
11797 $UUID" 2>/dev/null`
11807 if test $pkg_failed = yes; then
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 $as_echo "no" >&6; }
11811 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11812 _pkg_short_errors_supported=yes
11814 _pkg_short_errors_supported=no
11816 if test $_pkg_short_errors_supported = yes; then
11817 LIBGUPNP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.18 \
11818 gobject-2.0 >= 2.18 \
11820 gssdp-1.0 >= 0.7.1 \
11821 libsoup-2.4 >= 2.4.1 \
11825 LIBGUPNP_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.18 \
11826 gobject-2.0 >= 2.18 \
11828 gssdp-1.0 >= 0.7.1 \
11829 libsoup-2.4 >= 2.4.1 \
11833 # Put the nasty error message in config.log where it belongs
11834 echo "$LIBGUPNP_PKG_ERRORS" >&5
11836 as_fn_error $? "Package requirements (glib-2.0 >= 2.18 \
11837 gobject-2.0 >= 2.18 \
11839 gssdp-1.0 >= 0.7.1 \
11840 libsoup-2.4 >= 2.4.1 \
11842 $UUID) were not met:
11844 $LIBGUPNP_PKG_ERRORS
11846 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11847 installed software in a non-standard prefix.
11849 Alternatively, you may set the environment variables LIBGUPNP_CFLAGS
11850 and LIBGUPNP_LIBS to avoid the need to call pkg-config.
11851 See the pkg-config man page for more details." "$LINENO" 5
11852 elif test $pkg_failed = untried; then
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 $as_echo "no" >&6; }
11855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11857 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11858 is in your PATH or set the PKG_CONFIG environment variable to the full
11859 path to pkg-config.
11861 Alternatively, you may set the environment variables LIBGUPNP_CFLAGS
11862 and LIBGUPNP_LIBS to avoid the need to call pkg-config.
11863 See the pkg-config man page for more details.
11865 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11866 See \`config.log' for more details" "$LINENO" 5 ; }
11868 LIBGUPNP_CFLAGS=$pkg_cv_LIBGUPNP_CFLAGS
11869 LIBGUPNP_LIBS=$pkg_cv_LIBGUPNP_LIBS
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11871 $as_echo "yes" >&6; }
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
11878 $as_echo_n "checking for GTHREAD... " >&6; }
11880 if test -n "$GTHREAD_CFLAGS"; then
11881 pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
11882 elif test -n "$PKG_CONFIG"; then
11883 if test -n "$PKG_CONFIG" && \
11884 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
11885 ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
11887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11888 test $ac_status = 0; }; then
11889 pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null`
11896 if test -n "$GTHREAD_LIBS"; then
11897 pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
11898 elif test -n "$PKG_CONFIG"; then
11899 if test -n "$PKG_CONFIG" && \
11900 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
11901 ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
11903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11904 test $ac_status = 0; }; then
11905 pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null`
11915 if test $pkg_failed = yes; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11917 $as_echo "no" >&6; }
11919 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11920 _pkg_short_errors_supported=yes
11922 _pkg_short_errors_supported=no
11924 if test $_pkg_short_errors_supported = yes; then
11925 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gthread-2.0" 2>&1`
11927 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors "gthread-2.0" 2>&1`
11929 # Put the nasty error message in config.log where it belongs
11930 echo "$GTHREAD_PKG_ERRORS" >&5
11932 as_fn_error $? "Package requirements (gthread-2.0) were not met:
11934 $GTHREAD_PKG_ERRORS
11936 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11937 installed software in a non-standard prefix.
11939 Alternatively, you may set the environment variables GTHREAD_CFLAGS
11940 and GTHREAD_LIBS to avoid the need to call pkg-config.
11941 See the pkg-config man page for more details." "$LINENO" 5
11942 elif test $pkg_failed = untried; then
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11947 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11948 is in your PATH or set the PKG_CONFIG environment variable to the full
11949 path to pkg-config.
11951 Alternatively, you may set the environment variables GTHREAD_CFLAGS
11952 and GTHREAD_LIBS to avoid the need to call pkg-config.
11953 See the pkg-config man page for more details.
11955 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11956 See \`config.log' for more details" "$LINENO" 5 ; }
11958 GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
11959 GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11961 $as_echo "yes" >&6; }
11966 # Check whether --with-context_manager was given.
11967 if test "${with_context_manager+set}" = set; then :
11968 withval=$with_context_manager;
11970 with_context_manager="unix"
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Context Manager backend to use" >&5
11975 $as_echo_n "checking Context Manager backend to use... " >&6; }
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_context_manager}" >&5
11977 $as_echo "${with_context_manager}" >&6; }
11979 if test "x$with_context_manager" = "xnetwork-manager"; then
11980 USE_NETWORK_MANAGER_TRUE=
11981 USE_NETWORK_MANAGER_FALSE='#'
11983 USE_NETWORK_MANAGER_TRUE='#'
11984 USE_NETWORK_MANAGER_FALSE=
11989 if test "x$with_context_manager" = "xunix"; then
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCONIC" >&5
11993 $as_echo_n "checking for LIBCONIC... " >&6; }
11995 if test -n "$LIBCONIC_CFLAGS"; then
11996 pkg_cv_LIBCONIC_CFLAGS="$LIBCONIC_CFLAGS"
11997 elif test -n "$PKG_CONFIG"; then
11998 if test -n "$PKG_CONFIG" && \
11999 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"conic >= 0.13\""; } >&5
12000 ($PKG_CONFIG --exists --print-errors "conic >= 0.13") 2>&5
12002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12003 test $ac_status = 0; }; then
12004 pkg_cv_LIBCONIC_CFLAGS=`$PKG_CONFIG --cflags "conic >= 0.13" 2>/dev/null`
12011 if test -n "$LIBCONIC_LIBS"; then
12012 pkg_cv_LIBCONIC_LIBS="$LIBCONIC_LIBS"
12013 elif test -n "$PKG_CONFIG"; then
12014 if test -n "$PKG_CONFIG" && \
12015 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"conic >= 0.13\""; } >&5
12016 ($PKG_CONFIG --exists --print-errors "conic >= 0.13") 2>&5
12018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12019 test $ac_status = 0; }; then
12020 pkg_cv_LIBCONIC_LIBS=`$PKG_CONFIG --libs "conic >= 0.13" 2>/dev/null`
12030 if test $pkg_failed = yes; then
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032 $as_echo "no" >&6; }
12034 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12035 _pkg_short_errors_supported=yes
12037 _pkg_short_errors_supported=no
12039 if test $_pkg_short_errors_supported = yes; then
12040 LIBCONIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "conic >= 0.13" 2>&1`
12042 LIBCONIC_PKG_ERRORS=`$PKG_CONFIG --print-errors "conic >= 0.13" 2>&1`
12044 # Put the nasty error message in config.log where it belongs
12045 echo "$LIBCONIC_PKG_ERRORS" >&5
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: conic 0.13 or greater not found." >&5
12049 $as_echo "$as_me: WARNING: conic 0.13 or greater not found." >&2;}
12051 elif test $pkg_failed = untried; then
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053 $as_echo "no" >&6; }
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: conic 0.13 or greater not found." >&5
12056 $as_echo "$as_me: WARNING: conic 0.13 or greater not found." >&2;}
12059 LIBCONIC_CFLAGS=$pkg_cv_LIBCONIC_CFLAGS
12060 LIBCONIC_LIBS=$pkg_cv_LIBCONIC_LIBS
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12062 $as_echo "yes" >&6; }
12070 if test x$USE_CONIC = xyes; then
12072 USE_CONIC_FALSE='#'
12080 # We need dbus-glib if either NetworkManager or libconic is used
12081 if test "x$with_context_manager" = "xnetwork-manager" -o \
12082 "x$with_context_manager" = "xunix" -a \
12083 "x$USE_CONIC" = "xyes"; then
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS_GLIB" >&5
12087 $as_echo_n "checking for DBUS_GLIB... " >&6; }
12089 if test -n "$DBUS_GLIB_CFLAGS"; then
12090 pkg_cv_DBUS_GLIB_CFLAGS="$DBUS_GLIB_CFLAGS"
12091 elif test -n "$PKG_CONFIG"; then
12092 if test -n "$PKG_CONFIG" && \
12093 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= 0.76\""; } >&5
12094 ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= 0.76") 2>&5
12096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12097 test $ac_status = 0; }; then
12098 pkg_cv_DBUS_GLIB_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 >= 0.76" 2>/dev/null`
12105 if test -n "$DBUS_GLIB_LIBS"; then
12106 pkg_cv_DBUS_GLIB_LIBS="$DBUS_GLIB_LIBS"
12107 elif test -n "$PKG_CONFIG"; then
12108 if test -n "$PKG_CONFIG" && \
12109 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 >= 0.76\""; } >&5
12110 ($PKG_CONFIG --exists --print-errors "dbus-glib-1 >= 0.76") 2>&5
12112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12113 test $ac_status = 0; }; then
12114 pkg_cv_DBUS_GLIB_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 >= 0.76" 2>/dev/null`
12124 if test $pkg_failed = yes; then
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126 $as_echo "no" >&6; }
12128 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12129 _pkg_short_errors_supported=yes
12131 _pkg_short_errors_supported=no
12133 if test $_pkg_short_errors_supported = yes; then
12134 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-glib-1 >= 0.76" 2>&1`
12136 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-glib-1 >= 0.76" 2>&1`
12138 # Put the nasty error message in config.log where it belongs
12139 echo "$DBUS_GLIB_PKG_ERRORS" >&5
12141 as_fn_error $? "Package requirements (dbus-glib-1 >= 0.76) were not met:
12143 $DBUS_GLIB_PKG_ERRORS
12145 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12146 installed software in a non-standard prefix.
12148 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
12149 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
12150 See the pkg-config man page for more details." "$LINENO" 5
12151 elif test $pkg_failed = untried; then
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153 $as_echo "no" >&6; }
12154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12156 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12157 is in your PATH or set the PKG_CONFIG environment variable to the full
12158 path to pkg-config.
12160 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
12161 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
12162 See the pkg-config man page for more details.
12164 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12165 See \`config.log' for more details" "$LINENO" 5 ; }
12167 DBUS_GLIB_CFLAGS=$pkg_cv_DBUS_GLIB_CFLAGS
12168 DBUS_GLIB_LIBS=$pkg_cv_DBUS_GLIB_LIBS
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12170 $as_echo "yes" >&6; }
12176 GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
12180 # Check whether --enable-debug was given.
12181 if test "${enable_debug+set}" = set; then :
12182 enableval=$enable_debug;
12187 if test "x$enable_debug" = "xyes"; then
12188 CFLAGS="$CFLAGS -g -Wall -Werror"
12194 # Check whether --enable-introspection was given.
12195 if test "${enable_introspection+set}" = set; then :
12196 enableval=$enable_introspection;
12198 enable_introspection=auto
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
12203 $as_echo_n "checking for gobject-introspection... " >&6; }
12205 case $enable_introspection in #(
12207 found_introspection="no (disabled, use --enable-introspection to enable)"
12210 if test -n "$PKG_CONFIG" && \
12211 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
12212 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
12214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12215 test $ac_status = 0; }; then
12218 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
12220 if test -n "$PKG_CONFIG" && \
12221 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
12222 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
12224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12225 test $ac_status = 0; }; then
12226 found_introspection=yes
12228 as_fn_error $? "You need to have gobject-introspection >= 0.6.4 installed to build gupnp" "$LINENO" 5
12232 if test -n "$PKG_CONFIG" && \
12233 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
12234 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
12236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12237 test $ac_status = 0; }; then
12238 found_introspection=yes
12240 found_introspection=no
12244 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
12248 $as_echo "$found_introspection" >&6; }
12250 INTROSPECTION_SCANNER=
12251 INTROSPECTION_COMPILER=
12252 INTROSPECTION_GENERATE=
12253 INTROSPECTION_GIRDIR=
12254 INTROSPECTION_TYPELIBDIR=
12255 if test "x$found_introspection" = "xyes"; then
12256 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
12257 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
12258 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
12259 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
12260 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
12268 if test "x$found_introspection" = "xyes"; then
12269 HAVE_INTROSPECTION_TRUE=
12270 HAVE_INTROSPECTION_FALSE='#'
12272 HAVE_INTROSPECTION_TRUE='#'
12273 HAVE_INTROSPECTION_FALSE=
12282 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
12283 set dummy gtkdoc-check; ac_word=$2
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12285 $as_echo_n "checking for $ac_word... " >&6; }
12286 if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then :
12287 $as_echo_n "(cached) " >&6
12289 case $GTKDOC_CHECK in
12291 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
12294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12295 for as_dir in $PATH
12298 test -z "$as_dir" && as_dir=.
12299 for ac_exec_ext in '' $ac_executable_extensions; do
12300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12301 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
12313 if test -n "$GTKDOC_CHECK"; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
12315 $as_echo "$GTKDOC_CHECK" >&6; }
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318 $as_echo "no" >&6; }
12322 for ac_prog in gtkdoc-rebase
12324 # Extract the first word of "$ac_prog", so it can be a program name with args.
12325 set dummy $ac_prog; ac_word=$2
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12327 $as_echo_n "checking for $ac_word... " >&6; }
12328 if test "${ac_cv_path_GTKDOC_REBASE+set}" = set; then :
12329 $as_echo_n "(cached) " >&6
12331 case $GTKDOC_REBASE in
12333 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
12336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12337 for as_dir in $PATH
12340 test -z "$as_dir" && as_dir=.
12341 for ac_exec_ext in '' $ac_executable_extensions; do
12342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12343 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
12344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12354 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
12355 if test -n "$GTKDOC_REBASE"; then
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
12357 $as_echo "$GTKDOC_REBASE" >&6; }
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12360 $as_echo "no" >&6; }
12364 test -n "$GTKDOC_REBASE" && break
12366 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
12368 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
12369 set dummy gtkdoc-mkpdf; ac_word=$2
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12371 $as_echo_n "checking for $ac_word... " >&6; }
12372 if test "${ac_cv_path_GTKDOC_MKPDF+set}" = set; then :
12373 $as_echo_n "(cached) " >&6
12375 case $GTKDOC_MKPDF in
12377 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
12380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12381 for as_dir in $PATH
12384 test -z "$as_dir" && as_dir=.
12385 for ac_exec_ext in '' $ac_executable_extensions; do
12386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12387 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
12388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12398 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
12399 if test -n "$GTKDOC_MKPDF"; then
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
12401 $as_echo "$GTKDOC_MKPDF" >&6; }
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404 $as_echo "no" >&6; }
12410 # Check whether --with-html-dir was given.
12411 if test "${with_html_dir+set}" = set; then :
12412 withval=$with_html_dir;
12414 with_html_dir='${datadir}/gtk-doc/html'
12417 HTML_DIR="$with_html_dir"
12420 # Check whether --enable-gtk-doc was given.
12421 if test "${enable_gtk_doc+set}" = set; then :
12422 enableval=$enable_gtk_doc;
12428 if test x$enable_gtk_doc = xyes; then
12429 if test -n "$PKG_CONFIG" && \
12430 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.0\""; } >&5
12431 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.0") 2>&5
12433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12434 test $ac_status = 0; }; then
12437 as_fn_error $? "You need to have gtk-doc >= 1.0 installed to build $PACKAGE_NAME" "$LINENO" 5
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
12442 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
12444 $as_echo "$enable_gtk_doc" >&6; }
12446 # Check whether --enable-gtk-doc-html was given.
12447 if test "${enable_gtk_doc_html+set}" = set; then :
12448 enableval=$enable_gtk_doc_html;
12450 enable_gtk_doc_html=yes
12453 # Check whether --enable-gtk-doc-pdf was given.
12454 if test "${enable_gtk_doc_pdf+set}" = set; then :
12455 enableval=$enable_gtk_doc_pdf;
12457 enable_gtk_doc_pdf=no
12461 if test -z "$GTKDOC_MKPDF"; then
12462 enable_gtk_doc_pdf=no
12466 if test x$enable_gtk_doc = xyes; then
12467 ENABLE_GTK_DOC_TRUE=
12468 ENABLE_GTK_DOC_FALSE='#'
12470 ENABLE_GTK_DOC_TRUE='#'
12471 ENABLE_GTK_DOC_FALSE=
12474 if test x$enable_gtk_doc_html = xyes; then
12475 GTK_DOC_BUILD_HTML_TRUE=
12476 GTK_DOC_BUILD_HTML_FALSE='#'
12478 GTK_DOC_BUILD_HTML_TRUE='#'
12479 GTK_DOC_BUILD_HTML_FALSE=
12482 if test x$enable_gtk_doc_pdf = xyes; then
12483 GTK_DOC_BUILD_PDF_TRUE=
12484 GTK_DOC_BUILD_PDF_FALSE='#'
12486 GTK_DOC_BUILD_PDF_TRUE='#'
12487 GTK_DOC_BUILD_PDF_FALSE=
12490 if test -n "$LIBTOOL"; then
12491 GTK_DOC_USE_LIBTOOL_TRUE=
12492 GTK_DOC_USE_LIBTOOL_FALSE='#'
12494 GTK_DOC_USE_LIBTOOL_TRUE='#'
12495 GTK_DOC_USE_LIBTOOL_FALSE=
12498 if test -n "$GTKDOC_REBASE"; then
12499 GTK_DOC_USE_REBASE_TRUE=
12500 GTK_DOC_USE_REBASE_FALSE='#'
12502 GTK_DOC_USE_REBASE_TRUE='#'
12503 GTK_DOC_USE_REBASE_FALSE=
12508 ac_config_files="$ac_config_files Makefile libgupnp/Makefile examples/Makefile tools/Makefile tests/Makefile doc/Makefile doc/version.xml gupnp-1.0.pc gupnp-1.0-uninstalled.pc"
12510 cat >confcache <<\_ACEOF
12511 # This file is a shell script that caches the results of configure
12512 # tests run on this system so they can be shared between configure
12513 # scripts and configure runs, see configure's option --config-cache.
12514 # It is not useful on other systems. If it contains results you don't
12515 # want to keep, you may remove or edit it.
12517 # config.status only pays attention to the cache file if you give it
12518 # the --recheck option to rerun configure.
12520 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12521 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12522 # following values.
12526 # The following way of writing the cache mishandles newlines in values,
12527 # but we know of no workaround that is simple, portable, and efficient.
12528 # So, we kill variables containing newlines.
12529 # Ultrix sh set writes to stderr and can't be redirected directly,
12530 # and sets the high bit in the cache file unless we assign to the vars.
12532 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12533 eval ac_val=\$$ac_var
12537 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12538 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12541 _ | IFS | as_nl) ;; #(
12542 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12543 *) { eval $ac_var=; unset $ac_var;} ;;
12549 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12550 *${as_nl}ac_space=\ *)
12551 # `set' does not quote correctly, so add quotes: double-quote
12552 # substitution turns \\\\ into \\, and sed turns \\ into \.
12555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12558 # `set' quotes correctly as required by POSIX, so do not add quotes.
12559 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12568 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12570 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12572 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12573 if test -w "$cache_file"; then
12574 test "x$cache_file" != "x/dev/null" &&
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12576 $as_echo "$as_me: updating cache $cache_file" >&6;}
12577 cat confcache >$cache_file
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12580 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12585 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12586 # Let make expand exec_prefix.
12587 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12589 DEFS=-DHAVE_CONFIG_H
12594 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12595 # 1. Remove the extension, and $U if already installed.
12596 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12597 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12598 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12599 # will be set to the directory where LIBOBJS objects are built.
12600 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12601 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12603 LIBOBJS=$ac_libobjs
12605 LTLIBOBJS=$ac_ltlibobjs
12608 if test -n "$EXEEXT"; then
12610 am__EXEEXT_FALSE='#'
12612 am__EXEEXT_TRUE='#'
12616 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12617 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12620 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12621 as_fn_error $? "conditional \"AMDEP\" was never defined.
12622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12624 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12625 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12628 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12629 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12632 if test -z "${USE_NETWORK_MANAGER_TRUE}" && test -z "${USE_NETWORK_MANAGER_FALSE}"; then
12633 as_fn_error $? "conditional \"USE_NETWORK_MANAGER\" was never defined.
12634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12636 if test -z "${USE_CONIC_TRUE}" && test -z "${USE_CONIC_FALSE}"; then
12637 as_fn_error $? "conditional \"USE_CONIC\" was never defined.
12638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12640 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
12641 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
12642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12644 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
12645 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
12646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12648 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
12649 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
12650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12652 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
12653 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
12654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12656 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
12657 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
12658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12660 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
12661 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
12662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12665 : ${CONFIG_STATUS=./config.status}
12667 ac_clean_files_save=$ac_clean_files
12668 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12670 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12672 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12674 # Generated by $as_me.
12675 # Run this file to recreate the current configuration.
12676 # Compiler output produced by configure, useful for debugging
12677 # configure, is in config.log if it exists.
12680 ac_cs_recheck=false
12683 SHELL=\${CONFIG_SHELL-$SHELL}
12686 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12687 ## -------------------- ##
12688 ## M4sh Initialization. ##
12689 ## -------------------- ##
12691 # Be more Bourne compatible
12692 DUALCASE=1; export DUALCASE # for MKS sh
12693 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12696 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12697 # is contrary to our usage. Disable this feature.
12698 alias -g '${1+"$@"}'='"$@"'
12699 setopt NO_GLOB_SUBST
12701 case `(set -o) 2>/dev/null` in #(
12713 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12714 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12715 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12716 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12717 # Prefer a ksh shell builtin over an external printf program on Solaris,
12718 # but without wasting forks for bash or zsh.
12719 if test -z "$BASH_VERSION$ZSH_VERSION" \
12720 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12721 as_echo='print -r --'
12722 as_echo_n='print -rn --'
12723 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12724 as_echo='printf %s\n'
12725 as_echo_n='printf %s'
12727 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12728 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12729 as_echo_n='/usr/ucb/echo -n'
12731 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12732 as_echo_n_body='eval
12736 expr "X$arg" : "X\\(.*\\)$as_nl";
12737 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12739 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12741 export as_echo_n_body
12742 as_echo_n='sh -c $as_echo_n_body as_echo'
12744 export as_echo_body
12745 as_echo='sh -c $as_echo_body as_echo'
12748 # The user is always right.
12749 if test "${PATH_SEPARATOR+set}" != set; then
12751 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12752 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12759 # We need space, tab and new line, in precisely that order. Quoting is
12760 # there to prevent editors from complaining about space-tab.
12761 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12762 # splitting by setting IFS to empty value.)
12765 # Find who we are. Look in the path if we contain no directory separator.
12767 *[\\/]* ) as_myself=$0 ;;
12768 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12769 for as_dir in $PATH
12772 test -z "$as_dir" && as_dir=.
12773 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12779 # We did not find ourselves, most probably we were run as `sh COMMAND'
12780 # in which case we are not to be found in the path.
12781 if test "x$as_myself" = x; then
12784 if test ! -f "$as_myself"; then
12785 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12789 # Unset variables that we do not need and which cause bugs (e.g. in
12790 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12791 # suppresses any "Segmentation fault" message there. '((' could
12792 # trigger a bug in pdksh 5.2.14.
12793 for as_var in BASH_ENV ENV MAIL MAILPATH
12794 do eval test x\${$as_var+set} = xset \
12795 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12808 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12811 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12812 # ----------------------------------------
12813 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12814 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12815 # script with STATUS, using 1 if that was 0.
12818 as_status=$1; test $as_status -eq 0 && as_status=1
12820 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12821 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12823 $as_echo "$as_me: error: $2" >&2
12824 as_fn_exit $as_status
12828 # as_fn_set_status STATUS
12829 # -----------------------
12830 # Set $? to STATUS, without forking.
12831 as_fn_set_status ()
12834 } # as_fn_set_status
12836 # as_fn_exit STATUS
12837 # -----------------
12838 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12842 as_fn_set_status $1
12848 # Portably unset VAR.
12851 { eval $1=; unset $1;}
12853 as_unset=as_fn_unset
12854 # as_fn_append VAR VALUE
12855 # ----------------------
12856 # Append the text in VALUE to the end of the definition contained in VAR. Take
12857 # advantage of any shell optimizations that allow amortized linear growth over
12858 # repeated appends, instead of the typical quadratic growth present in naive
12860 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12861 eval 'as_fn_append ()
12872 # as_fn_arith ARG...
12873 # ------------------
12874 # Perform arithmetic evaluation on the ARGs, and store the result in the
12875 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12876 # must be portable across $(()) and expr.
12877 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12878 eval 'as_fn_arith ()
12885 as_val=`expr "$@" || test $? -eq 1`
12890 if expr a : '\(a\)' >/dev/null 2>&1 &&
12891 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12897 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12898 as_basename=basename
12903 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12909 as_me=`$as_basename -- "$0" ||
12910 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12911 X"$0" : 'X\(//\)$' \| \
12912 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12914 sed '/^.*\/\([^/][^/]*\)\/*$/{
12928 # Avoid depending upon Character Ranges.
12929 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12930 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12931 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12932 as_cr_digits='0123456789'
12933 as_cr_alnum=$as_cr_Letters$as_cr_digits
12935 ECHO_C= ECHO_N= ECHO_T=
12936 case `echo -n x` in #(((((
12938 case `echo 'xy\c'` in
12939 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12941 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12948 rm -f conf$$ conf$$.exe conf$$.file
12949 if test -d conf$$.dir; then
12950 rm -f conf$$.dir/conf$$.file
12953 mkdir conf$$.dir 2>/dev/null
12955 if (echo >conf$$.file) 2>/dev/null; then
12956 if ln -s conf$$.file conf$$ 2>/dev/null; then
12958 # ... but there are two gotchas:
12959 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12960 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12961 # In both cases, we have to default to `cp -p'.
12962 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12964 elif ln conf$$.file conf$$ 2>/dev/null; then
12972 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12973 rmdir conf$$.dir 2>/dev/null
12978 # Create "$as_dir" as a directory, including parents if necessary.
12983 -*) as_dir=./$as_dir;;
12985 test -d "$as_dir" || eval $as_mkdir_p || {
12989 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12990 *) as_qdir=$as_dir;;
12992 as_dirs="'$as_qdir' $as_dirs"
12993 as_dir=`$as_dirname -- "$as_dir" ||
12994 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12995 X"$as_dir" : 'X\(//\)[^/]' \| \
12996 X"$as_dir" : 'X\(//\)$' \| \
12997 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12998 $as_echo X"$as_dir" |
12999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13003 /^X\(\/\/\)[^/].*/{
13016 test -d "$as_dir" && break
13018 test -z "$as_dirs" || eval "mkdir $as_dirs"
13019 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13023 if mkdir -p . 2>/dev/null; then
13024 as_mkdir_p='mkdir -p "$as_dir"'
13026 test -d ./-p && rmdir ./-p
13030 if test -x / >/dev/null 2>&1; then
13031 as_test_x='test -x'
13033 if ls -dL / >/dev/null 2>&1; then
13040 if test -d "$1"; then
13046 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13047 ???[sx]*):;;*)false;;esac;fi
13051 as_executable_p=$as_test_x
13053 # Sed expression to map a string onto a valid CPP name.
13054 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13056 # Sed expression to map a string onto a valid variable name.
13057 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13061 ## ----------------------------------- ##
13062 ## Main body of $CONFIG_STATUS script. ##
13063 ## ----------------------------------- ##
13065 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13068 # Save the log message, to keep $0 and so on meaningful, and to
13069 # report actual input values of CONFIG_FILES etc. instead of their
13070 # values after options handling.
13072 This file was extended by gupnp $as_me 0.14.1, which was
13073 generated by GNU Autoconf 2.67. Invocation command line was
13075 CONFIG_FILES = $CONFIG_FILES
13076 CONFIG_HEADERS = $CONFIG_HEADERS
13077 CONFIG_LINKS = $CONFIG_LINKS
13078 CONFIG_COMMANDS = $CONFIG_COMMANDS
13081 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13086 case $ac_config_files in *"
13087 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13090 case $ac_config_headers in *"
13091 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13096 # Files that config.status was made for.
13097 config_files="$ac_config_files"
13098 config_headers="$ac_config_headers"
13099 config_commands="$ac_config_commands"
13103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13105 \`$as_me' instantiates files and other configuration actions
13106 from templates according to the current configuration. Unless the files
13107 and actions are specified as TAGs, all are instantiated by default.
13109 Usage: $0 [OPTION]... [TAG]...
13111 -h, --help print this help, then exit
13112 -V, --version print version number and configuration settings, then exit
13113 --config print configuration, then exit
13114 -q, --quiet, --silent
13115 do not print progress messages
13116 -d, --debug don't remove temporary files
13117 --recheck update $as_me by reconfiguring in the same conditions
13118 --file=FILE[:TEMPLATE]
13119 instantiate the configuration file FILE
13120 --header=FILE[:TEMPLATE]
13121 instantiate the configuration header FILE
13123 Configuration files:
13126 Configuration headers:
13129 Configuration commands:
13132 Report bugs to <http://www.gupnp.org/>."
13135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13136 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13138 gupnp config.status 0.14.1
13139 configured by $0, generated by GNU Autoconf 2.67,
13140 with options \\"\$ac_cs_config\\"
13142 Copyright (C) 2010 Free Software Foundation, Inc.
13143 This config.status script is free software; the Free Software Foundation
13144 gives unlimited permission to copy, distribute and modify it."
13151 test -n "\$AWK" || AWK=awk
13154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13155 # The default lists apply if the user does not specify any file.
13161 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13162 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13166 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13178 # Handling of the options.
13179 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13181 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13182 $as_echo "$ac_cs_version"; exit ;;
13183 --config | --confi | --conf | --con | --co | --c )
13184 $as_echo "$ac_cs_config"; exit ;;
13185 --debug | --debu | --deb | --de | --d | -d )
13187 --file | --fil | --fi | --f )
13190 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13191 '') as_fn_error $? "missing file argument" ;;
13193 as_fn_append CONFIG_FILES " '$ac_optarg'"
13194 ac_need_defaults=false;;
13195 --header | --heade | --head | --hea )
13198 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13200 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13201 ac_need_defaults=false;;
13203 # Conflict between --help and --header
13204 as_fn_error $? "ambiguous option: \`$1'
13205 Try \`$0 --help' for more information.";;
13206 --help | --hel | -h )
13207 $as_echo "$ac_cs_usage"; exit ;;
13208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13209 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13212 # This is an error.
13213 -*) as_fn_error $? "unrecognized option: \`$1'
13214 Try \`$0 --help' for more information." ;;
13216 *) as_fn_append ac_config_targets " $1"
13217 ac_need_defaults=false ;;
13223 ac_configure_extra_args=
13225 if $ac_cs_silent; then
13227 ac_configure_extra_args="$ac_configure_extra_args --silent"
13231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13232 if \$ac_cs_recheck; then
13233 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13235 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13236 CONFIG_SHELL='$SHELL'
13237 export CONFIG_SHELL
13242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13246 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13247 ## Running $as_me. ##
13253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13257 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13260 # The HP-UX ksh and POSIX shell print the target directory to stdout
13261 # if CDPATH is set.
13262 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13264 sed_quote_subst='$sed_quote_subst'
13265 double_quote_subst='$double_quote_subst'
13266 delay_variable_subst='$delay_variable_subst'
13267 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13268 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13269 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13270 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13271 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13272 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13273 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13274 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13275 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13276 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13277 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13278 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13279 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13280 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13281 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13282 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13283 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13284 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13285 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13286 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13287 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13288 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13289 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13290 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13291 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13292 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13293 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13294 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13295 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13296 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13297 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13298 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13299 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13300 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13301 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13302 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13303 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13304 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13305 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13306 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13307 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13308 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13309 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13310 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13311 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13312 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13313 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13314 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13315 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13316 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13317 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13318 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13319 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13320 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13321 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13322 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13323 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13324 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13325 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13326 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13327 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13328 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13329 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13330 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13331 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13332 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13333 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13334 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13335 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13336 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13337 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13338 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13339 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13340 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13341 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13342 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13343 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13344 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13345 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13346 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13347 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13348 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13349 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13350 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13351 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13352 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13353 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13354 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13355 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13356 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13357 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13358 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13359 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13360 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13361 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13362 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13363 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13364 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13365 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13366 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13367 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13368 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13369 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13370 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13371 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13372 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13373 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13374 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13375 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13376 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13377 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13378 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13379 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13380 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13381 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13382 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13383 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13384 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13387 LTCFLAGS='$LTCFLAGS'
13388 compiler='$compiler_DEFAULT'
13390 # Quote evaled strings.
13402 deplibs_check_method \
13411 lt_cv_sys_global_symbol_pipe \
13412 lt_cv_sys_global_symbol_to_cdecl \
13413 lt_cv_sys_global_symbol_to_c_name_address \
13414 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13417 lt_prog_compiler_no_builtin_flag \
13418 lt_prog_compiler_wl \
13419 lt_prog_compiler_pic \
13420 lt_prog_compiler_static \
13421 lt_cv_prog_compiler_c_o \
13429 export_dynamic_flag_spec \
13430 whole_archive_flag_spec \
13431 compiler_needs_object \
13433 allow_undefined_flag \
13434 no_undefined_flag \
13435 hardcode_libdir_flag_spec \
13436 hardcode_libdir_flag_spec_ld \
13437 hardcode_libdir_separator \
13442 variables_saved_for_relink \
13444 library_names_spec \
13449 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13450 *[\\\\\\\`\\"\\\$]*)
13451 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13454 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13459 # Double-quote double-evaled strings.
13460 for var in reload_cmds \
13461 old_postinstall_cmds \
13462 old_postuninstall_cmds \
13464 extract_expsyms_cmds \
13465 old_archive_from_new_cmds \
13466 old_archive_from_expsyms_cmds \
13468 archive_expsym_cmds \
13470 module_expsym_cmds \
13471 export_symbols_cmds \
13474 postuninstall_cmds \
13476 sys_lib_search_path_spec \
13477 sys_lib_dlsearch_path_spec; do
13478 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13479 *[\\\\\\\`\\"\\\$]*)
13480 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13483 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13488 # Fix-up fallback echo if it was mangled by the above quoting rules.
13490 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13494 ac_aux_dir='$ac_aux_dir'
13495 xsi_shell='$xsi_shell'
13496 lt_shell_append='$lt_shell_append'
13498 # See if we are running on zsh, and set the options which allow our
13499 # commands through without removal of \ escapes INIT.
13500 if test -n "\${ZSH_VERSION+set}" ; then
13501 setopt NO_GLOB_SUBST
13507 TIMESTAMP='$TIMESTAMP'
13516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13518 # Handling of arguments.
13519 for ac_config_target in $ac_config_targets
13521 case $ac_config_target in
13522 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13523 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13524 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13525 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13526 "libgupnp/Makefile") CONFIG_FILES="$CONFIG_FILES libgupnp/Makefile" ;;
13527 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13528 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13529 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13530 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13531 "doc/version.xml") CONFIG_FILES="$CONFIG_FILES doc/version.xml" ;;
13532 "gupnp-1.0.pc") CONFIG_FILES="$CONFIG_FILES gupnp-1.0.pc" ;;
13533 "gupnp-1.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES gupnp-1.0-uninstalled.pc" ;;
13535 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
13540 # If the user did not use the arguments to specify the items to instantiate,
13541 # then the envvar interface is used. Set only those that are not.
13542 # We use the long form for the default assignment because of an extremely
13543 # bizarre bug on SunOS 4.1.3.
13544 if $ac_need_defaults; then
13545 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13546 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13547 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13550 # Have a temporary directory for convenience. Make it in the build tree
13551 # simply because there is no reason against having it here, and in addition,
13552 # creating and moving files from /tmp can sometimes cause problems.
13553 # Hook for its removal unless debugging.
13554 # Note that there is a small window in which the directory will not be cleaned:
13555 # after its creation but before its name has been assigned to `$tmp'.
13559 trap 'exit_status=$?
13560 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13562 trap 'as_fn_exit 1' 1 2 13 15
13564 # Create a (secure) tmp directory for tmp files.
13567 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13568 test -n "$tmp" && test -d "$tmp"
13571 tmp=./conf$$-$RANDOM
13572 (umask 077 && mkdir "$tmp")
13573 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13575 # Set up the scripts for CONFIG_FILES section.
13576 # No need to generate them if there are no CONFIG_FILES.
13577 # This happens for instance with `./config.status config.h'.
13578 if test -n "$CONFIG_FILES"; then
13581 ac_cr=`echo X | tr X '\015'`
13582 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13583 # But we know of no other shell where ac_cr would be empty at this
13584 # point, so we can use a bashism as a fallback.
13585 if test "x$ac_cr" = x; then
13586 eval ac_cr=\$\'\\r\'
13588 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13589 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13592 ac_cs_awk_cr=$ac_cr
13595 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13600 echo "cat >conf$$subs.awk <<_ACEOF" &&
13601 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13603 } >conf$$subs.sh ||
13604 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13605 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13607 for ac_last_try in false false false false false :; do
13608 . ./conf$$subs.sh ||
13609 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13611 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13612 if test $ac_delim_n = $ac_delim_num; then
13614 elif $ac_last_try; then
13615 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13617 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13620 rm -f conf$$subs.sh
13622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13623 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13627 s/^/S["/; s/!.*/"]=/
13637 s/\(.\{148\}\)..*/\1/
13639 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13644 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13651 s/\(.\{148\}\)..*/\1/
13653 s/["\\]/\\&/g; s/^/"/; s/$/"/
13657 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13662 ' <conf$$subs.awk | sed '
13667 ' >>$CONFIG_STATUS || ac_write_fail=1
13668 rm -f conf$$subs.awk
13669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13671 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13672 for (key in S) S_is_set[key] = 1
13678 nfields = split(line, field, "@")
13680 len = length(field[1])
13681 for (i = 2; i < nfields; i++) {
13683 keylen = length(key)
13684 if (S_is_set[key]) {
13686 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13687 len += length(value) + length(field[++i])
13698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13699 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13700 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13703 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13704 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13707 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13708 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13709 # trailing colons and then remove the whole line if VPATH becomes empty
13710 # (actually we leave an empty line to preserve line numbers).
13711 if test "x$srcdir" = x.; then
13712 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13731 fi # test -n "$CONFIG_FILES"
13733 # Set up the scripts for CONFIG_HEADERS section.
13734 # No need to generate them if there are no CONFIG_HEADERS.
13735 # This happens for instance with `./config.status Makefile'.
13736 if test -n "$CONFIG_HEADERS"; then
13737 cat >"$tmp/defines.awk" <<\_ACAWK ||
13741 # Transform confdefs.h into an awk script `defines.awk', embedded as
13742 # here-document in config.status, that substitutes the proper values into
13743 # config.h.in to produce config.h.
13745 # Create a delimiter string that does not exist in confdefs.h, to ease
13746 # handling of long lines.
13748 for ac_last_try in false false :; do
13749 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13750 if test -z "$ac_t"; then
13752 elif $ac_last_try; then
13753 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13755 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13759 # For the awk script, D is an array of macro values keyed by name,
13760 # likewise P contains macro parameters if any. Preserve backslash
13761 # newline sequences.
13763 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13765 s/.\{148\}/&'"$ac_delim"'/g
13768 s/^[ ]*#[ ]*define[ ][ ]*/ /
13775 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13777 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13781 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13782 D["\1"]=" \3\\\\\\n"\\/p
13784 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13789 s/.\{148\}/&'"$ac_delim"'/g
13794 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13797 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13799 ' <confdefs.h | sed '
13800 s/'"$ac_delim"'/"\\\
13801 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13804 for (key in D) D_is_set[key] = 1
13807 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13809 split(line, arg, " ")
13810 if (arg[1] == "#") {
13814 defundef = substr(arg[1], 2)
13817 split(mac1, mac2, "(") #)
13819 prefix = substr(line, 1, index(line, defundef) - 1)
13820 if (D_is_set[macro]) {
13821 # Preserve the white space surrounding the "#".
13822 print prefix "define", macro P[macro] D[macro]
13825 # Replace #undef with comments. This is necessary, for example,
13826 # in the case of _POSIX_SOURCE, which is predefined and required
13827 # on some systems where configure will not decide to define it.
13828 if (defundef == "undef") {
13829 print "/*", prefix defundef, macro, "*/"
13837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13838 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13839 fi # test -n "$CONFIG_HEADERS"
13842 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13847 :[FHLC]) ac_mode=$ac_tag; continue;;
13849 case $ac_mode$ac_tag in
13851 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
13852 :[FH]-) ac_tag=-:-;;
13853 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13870 -) ac_f="$tmp/stdin";;
13871 *) # Look for the file first in the build tree, then in the source tree
13872 # (if the path is not absolute). The absolute path cannot be DOS-style,
13873 # because $ac_f cannot contain `:'.
13877 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13879 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
13881 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13882 as_fn_append ac_file_inputs " '$ac_f'"
13885 # Let's still pretend it is `configure' which instantiates (i.e., don't
13886 # use $as_me), people would be surprised to read:
13887 # /* config.h. Generated by config.status. */
13888 configure_input='Generated from '`
13889 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13891 if test x"$ac_file" != x-; then
13892 configure_input="$ac_file. $configure_input"
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13894 $as_echo "$as_me: creating $ac_file" >&6;}
13896 # Neutralize special characters interpreted by sed in replacement strings.
13897 case $configure_input in #(
13898 *\&* | *\|* | *\\* )
13899 ac_sed_conf_input=`$as_echo "$configure_input" |
13900 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13901 *) ac_sed_conf_input=$configure_input;;
13905 *:-:* | *:-) cat >"$tmp/stdin" \
13906 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13911 ac_dir=`$as_dirname -- "$ac_file" ||
13912 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13913 X"$ac_file" : 'X\(//\)[^/]' \| \
13914 X"$ac_file" : 'X\(//\)$' \| \
13915 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13916 $as_echo X"$ac_file" |
13917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13921 /^X\(\/\/\)[^/].*/{
13934 as_dir="$ac_dir"; as_fn_mkdir_p
13938 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13940 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13941 # A ".." for each directory in $ac_dir_suffix.
13942 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13943 case $ac_top_builddir_sub in
13944 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13945 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13948 ac_abs_top_builddir=$ac_pwd
13949 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13950 # for backward compatibility:
13951 ac_top_builddir=$ac_top_build_prefix
13954 .) # We are building in place.
13956 ac_top_srcdir=$ac_top_builddir_sub
13957 ac_abs_top_srcdir=$ac_pwd ;;
13958 [\\/]* | ?:[\\/]* ) # Absolute name.
13959 ac_srcdir=$srcdir$ac_dir_suffix;
13960 ac_top_srcdir=$srcdir
13961 ac_abs_top_srcdir=$srcdir ;;
13962 *) # Relative name.
13963 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13964 ac_top_srcdir=$ac_top_build_prefix$srcdir
13965 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13967 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13977 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13978 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13980 ac_MKDIR_P=$MKDIR_P
13982 [\\/$]* | ?:[\\/]* ) ;;
13983 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13988 # If the template does not know about datarootdir, expand it.
13989 # FIXME: This hack should be removed a few years after 2.60.
13990 ac_datarootdir_hack=; ac_datarootdir_seen=
14001 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14002 *datarootdir*) ac_datarootdir_seen=yes;;
14003 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14005 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14008 ac_datarootdir_hack='
14009 s&@datadir@&$datadir&g
14010 s&@docdir@&$docdir&g
14011 s&@infodir@&$infodir&g
14012 s&@localedir@&$localedir&g
14013 s&@mandir@&$mandir&g
14014 s&\\\${datarootdir}&$datarootdir&g' ;;
14018 # Neutralize VPATH when `$srcdir' = `.'.
14019 # Shell code in configure.ac might set extrasub.
14020 # FIXME: do we really want to maintain this feature?
14021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14022 ac_sed_extra="$ac_vpsub
14025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14027 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14028 s|@configure_input@|$ac_sed_conf_input|;t t
14029 s&@top_builddir@&$ac_top_builddir_sub&;t t
14030 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14031 s&@srcdir@&$ac_srcdir&;t t
14032 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14033 s&@top_srcdir@&$ac_top_srcdir&;t t
14034 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14035 s&@builddir@&$ac_builddir&;t t
14036 s&@abs_builddir@&$ac_abs_builddir&;t t
14037 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14038 s&@INSTALL@&$ac_INSTALL&;t t
14039 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14040 $ac_datarootdir_hack
14042 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14043 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14045 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14046 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14047 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14049 which seems to be undefined. Please make sure it is defined" >&5
14050 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14051 which seems to be undefined. Please make sure it is defined" >&2;}
14055 -) cat "$tmp/out" && rm -f "$tmp/out";;
14056 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14064 if test x"$ac_file" != x-; then
14066 $as_echo "/* $configure_input */" \
14067 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14068 } >"$tmp/config.h" \
14069 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14070 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14072 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14075 mv "$tmp/config.h" "$ac_file" \
14076 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14079 $as_echo "/* $configure_input */" \
14080 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14081 || as_fn_error $? "could not create -" "$LINENO" 5
14083 # Compute "$ac_file"'s index in $config_headers.
14086 for _am_header in $config_headers :; do
14087 case $_am_header in
14088 $_am_arg | $_am_arg:* )
14091 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14094 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14095 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14096 X"$_am_arg" : 'X\(//\)[^/]' \| \
14097 X"$_am_arg" : 'X\(//\)$' \| \
14098 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14099 $as_echo X"$_am_arg" |
14100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14104 /^X\(\/\/\)[^/].*/{
14116 s/.*/./; q'`/stamp-h$_am_stamp_count
14119 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14120 $as_echo "$as_me: executing $ac_file commands" >&6;}
14125 case $ac_file$ac_mode in
14126 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14127 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14128 # are listed without --file. Let's play safe and only enable the eval
14129 # if we detect the quoting.
14130 case $CONFIG_FILES in
14131 *\'*) eval set x "$CONFIG_FILES" ;;
14132 *) set x $CONFIG_FILES ;;
14137 # Strip MF so we end up with the name of the file.
14138 mf=`echo "$mf" | sed -e 's/:.*$//'`
14139 # Check whether this is an Automake generated Makefile or not.
14140 # We used to match only the files named `Makefile.in', but
14141 # some people rename them; so instead we look at the file content.
14142 # Grep'ing the first line is not enough: some people post-process
14143 # each Makefile.in and add a new line on top of each file to say so.
14144 # Grep'ing the whole file is not good either: AIX grep has a line
14145 # limit of 2048, but all sed's we know have understand at least 4000.
14146 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14147 dirpart=`$as_dirname -- "$mf" ||
14148 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14149 X"$mf" : 'X\(//\)[^/]' \| \
14150 X"$mf" : 'X\(//\)$' \| \
14151 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14157 /^X\(\/\/\)[^/].*/{
14173 # Extract the definition of DEPDIR, am__include, and am__quote
14174 # from the Makefile without running `make'.
14175 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14176 test -z "$DEPDIR" && continue
14177 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14178 test -z "am__include" && continue
14179 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14180 # When using ansi2knr, U may be empty or an underscore; expand it
14181 U=`sed -n 's/^U = //p' < "$mf"`
14182 # Find all dependency output files, they are included files with
14183 # $(DEPDIR) in their names. We invoke sed twice because it is the
14184 # simplest approach to changing $(DEPDIR) to its actual value in the
14186 for file in `sed -n "
14187 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14188 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14189 # Make sure the directory exists.
14190 test -f "$dirpart/$file" && continue
14191 fdir=`$as_dirname -- "$file" ||
14192 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14193 X"$file" : 'X\(//\)[^/]' \| \
14194 X"$file" : 'X\(//\)$' \| \
14195 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14196 $as_echo X"$file" |
14197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14201 /^X\(\/\/\)[^/].*/{
14214 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14215 # echo "creating $dirpart/$file"
14216 echo '# dummy' > "$dirpart/$file"
14223 # See if we are running on zsh, and set the options which allow our
14224 # commands through without removal of \ escapes.
14225 if test -n "${ZSH_VERSION+set}" ; then
14226 setopt NO_GLOB_SUBST
14229 cfgfile="${ofile}T"
14230 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14233 cat <<_LT_EOF >> "$cfgfile"
14236 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14237 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14238 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14239 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14241 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14242 # 2006, 2007, 2008 Free Software Foundation, Inc.
14243 # Written by Gordon Matzigkeit, 1996
14245 # This file is part of GNU Libtool.
14247 # GNU Libtool is free software; you can redistribute it and/or
14248 # modify it under the terms of the GNU General Public License as
14249 # published by the Free Software Foundation; either version 2 of
14250 # the License, or (at your option) any later version.
14252 # As a special exception to the GNU General Public License,
14253 # if you distribute this file as part of a program or library that
14254 # is built using GNU Libtool, you may include this file under the
14255 # same distribution terms that you use for the rest of that program.
14257 # GNU Libtool is distributed in the hope that it will be useful,
14258 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14259 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14260 # GNU General Public License for more details.
14262 # You should have received a copy of the GNU General Public License
14263 # along with GNU Libtool; see the file COPYING. If not, a copy
14264 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14265 # obtained by writing to the Free Software Foundation, Inc.,
14266 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14269 # The names of the tagged configurations supported by this script.
14272 # ### BEGIN LIBTOOL CONFIG
14274 # Which release of libtool.m4 was used?
14275 macro_version=$macro_version
14276 macro_revision=$macro_revision
14278 # Whether or not to build shared libraries.
14279 build_libtool_libs=$enable_shared
14281 # Whether or not to build static libraries.
14282 build_old_libs=$enable_static
14284 # What type of objects to build.
14287 # Whether or not to optimize for fast installation.
14288 fast_install=$enable_fast_install
14291 host_alias=$host_alias
14295 # The build system.
14296 build_alias=$build_alias
14300 # A sed program that does not truncate output.
14303 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14304 Xsed="\$SED -e 1s/^X//"
14306 # A grep program that handles long lines.
14312 # A literal string matcher.
14315 # A BSD- or MS-compatible name lister.
14318 # Whether we need soft or hard links.
14321 # What is the maximum length of a command?
14322 max_cmd_len=$max_cmd_len
14324 # Object file suffix (normally "o").
14327 # Executable file suffix (normally "").
14330 # whether the shell understands "unset".
14333 # turn spaces into newlines.
14336 # turn newlines into spaces.
14339 # How to create reloadable object files.
14340 reload_flag=$lt_reload_flag
14341 reload_cmds=$lt_reload_cmds
14343 # An object symbol dumper.
14344 OBJDUMP=$lt_OBJDUMP
14346 # Method to check whether dependent libraries are shared objects.
14347 deplibs_check_method=$lt_deplibs_check_method
14349 # Command to use when deplibs_check_method == "file_magic".
14350 file_magic_cmd=$lt_file_magic_cmd
14354 AR_FLAGS=$lt_AR_FLAGS
14356 # A symbol stripping program.
14359 # Commands used to install an old-style archive.
14361 old_postinstall_cmds=$lt_old_postinstall_cmds
14362 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14367 # LTCC compiler flags.
14368 LTCFLAGS=$lt_CFLAGS
14370 # Take the output of nm and produce a listing of raw symbols and C names.
14371 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14373 # Transform the output of nm in a proper C declaration.
14374 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14376 # Transform the output of nm in a C name address pair.
14377 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14379 # Transform the output of nm in a C name address pair when lib prefix is needed.
14380 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14382 # The name of the directory that contains temporary libtool files.
14385 # Shell to use when invoking shell scripts.
14388 # An echo program that does not interpret backslashes.
14391 # Used to examine libraries when file_magic_cmd begins with "file".
14392 MAGIC_CMD=$MAGIC_CMD
14394 # Must we lock files when doing compilation?
14395 need_locks=$lt_need_locks
14397 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14398 DSYMUTIL=$lt_DSYMUTIL
14400 # Tool to change global to local symbols on Mac OS X.
14403 # Tool to manipulate fat objects and archives on Mac OS X.
14406 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14409 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14410 OTOOL64=$lt_OTOOL64
14412 # Old archive suffix (normally "a").
14415 # Shared library suffix (normally ".so").
14416 shrext_cmds=$lt_shrext_cmds
14418 # The commands to extract the exported symbol list from a shared archive.
14419 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14421 # Variables whose values should be saved in libtool wrapper scripts and
14422 # restored at link time.
14423 variables_saved_for_relink=$lt_variables_saved_for_relink
14425 # Do we need the "lib" prefix for modules?
14426 need_lib_prefix=$need_lib_prefix
14428 # Do we need a version for libraries?
14429 need_version=$need_version
14431 # Library versioning type.
14432 version_type=$version_type
14434 # Shared library runtime path variable.
14435 runpath_var=$runpath_var
14437 # Shared library path variable.
14438 shlibpath_var=$shlibpath_var
14440 # Is shlibpath searched before the hard-coded library search path?
14441 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14443 # Format of library name prefix.
14444 libname_spec=$lt_libname_spec
14446 # List of archive names. First name is the real one, the rest are links.
14447 # The last name is the one that the linker finds with -lNAME
14448 library_names_spec=$lt_library_names_spec
14450 # The coded name of the library, if different from the real name.
14451 soname_spec=$lt_soname_spec
14453 # Command to use after installation of a shared archive.
14454 postinstall_cmds=$lt_postinstall_cmds
14456 # Command to use after uninstallation of a shared archive.
14457 postuninstall_cmds=$lt_postuninstall_cmds
14459 # Commands used to finish a libtool library installation in a directory.
14460 finish_cmds=$lt_finish_cmds
14462 # As "finish_cmds", except a single script fragment to be evaled but
14464 finish_eval=$lt_finish_eval
14466 # Whether we should hardcode library paths into libraries.
14467 hardcode_into_libs=$hardcode_into_libs
14469 # Compile-time system search path for libraries.
14470 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14472 # Run-time system search path for libraries.
14473 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14475 # Whether dlopen is supported.
14476 dlopen_support=$enable_dlopen
14478 # Whether dlopen of programs is supported.
14479 dlopen_self=$enable_dlopen_self
14481 # Whether dlopen of statically linked programs is supported.
14482 dlopen_self_static=$enable_dlopen_self_static
14484 # Commands to strip libraries.
14485 old_striplib=$lt_old_striplib
14486 striplib=$lt_striplib
14489 # The linker used to build libraries.
14492 # Commands used to build an old-style archive.
14493 old_archive_cmds=$lt_old_archive_cmds
14495 # A language specific compiler.
14498 # Is the compiler the GNU compiler?
14501 # Compiler flag to turn off builtin functions.
14502 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14504 # How to pass a linker flag through the compiler.
14505 wl=$lt_lt_prog_compiler_wl
14507 # Additional compiler flags for building library objects.
14508 pic_flag=$lt_lt_prog_compiler_pic
14510 # Compiler flag to prevent dynamic linking.
14511 link_static_flag=$lt_lt_prog_compiler_static
14513 # Does compiler simultaneously support -c and -o options?
14514 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14516 # Whether or not to add -lc for building shared libraries.
14517 build_libtool_need_lc=$archive_cmds_need_lc
14519 # Whether or not to disallow shared libs when runtime libs are static.
14520 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14522 # Compiler flag to allow reflexive dlopens.
14523 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14525 # Compiler flag to generate shared objects directly from archives.
14526 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14528 # Whether the compiler copes with passing no objects directly.
14529 compiler_needs_object=$lt_compiler_needs_object
14531 # Create an old-style archive from a shared archive.
14532 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14534 # Create a temporary old-style archive to link instead of a shared archive.
14535 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14537 # Commands used to build a shared archive.
14538 archive_cmds=$lt_archive_cmds
14539 archive_expsym_cmds=$lt_archive_expsym_cmds
14541 # Commands used to build a loadable module if different from building
14542 # a shared archive.
14543 module_cmds=$lt_module_cmds
14544 module_expsym_cmds=$lt_module_expsym_cmds
14546 # Whether we are building with GNU ld or not.
14547 with_gnu_ld=$lt_with_gnu_ld
14549 # Flag that allows shared libraries with undefined symbols to be built.
14550 allow_undefined_flag=$lt_allow_undefined_flag
14552 # Flag that enforces no undefined symbols.
14553 no_undefined_flag=$lt_no_undefined_flag
14555 # Flag to hardcode \$libdir into a binary during linking.
14556 # This must work even if \$libdir does not exist
14557 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14559 # If ld is used when linking, flag to hardcode \$libdir into a binary
14560 # during linking. This must work even if \$libdir does not exist.
14561 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14563 # Whether we need a single "-rpath" flag with a separated argument.
14564 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14566 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14567 # DIR into the resulting binary.
14568 hardcode_direct=$hardcode_direct
14570 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14571 # DIR into the resulting binary and the resulting library dependency is
14572 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14573 # library is relocated.
14574 hardcode_direct_absolute=$hardcode_direct_absolute
14576 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14577 # into the resulting binary.
14578 hardcode_minus_L=$hardcode_minus_L
14580 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14581 # into the resulting binary.
14582 hardcode_shlibpath_var=$hardcode_shlibpath_var
14584 # Set to "yes" if building a shared library automatically hardcodes DIR
14585 # into the library and all subsequent libraries and executables linked
14587 hardcode_automatic=$hardcode_automatic
14589 # Set to yes if linker adds runtime paths of dependent libraries
14590 # to runtime path list.
14591 inherit_rpath=$inherit_rpath
14593 # Whether libtool must link a program against all its dependency libraries.
14594 link_all_deplibs=$link_all_deplibs
14596 # Fix the shell variable \$srcfile for the compiler.
14597 fix_srcfile_path=$lt_fix_srcfile_path
14599 # Set to "yes" if exported symbols are required.
14600 always_export_symbols=$always_export_symbols
14602 # The commands to list exported symbols.
14603 export_symbols_cmds=$lt_export_symbols_cmds
14605 # Symbols that should not be listed in the preloaded symbols.
14606 exclude_expsyms=$lt_exclude_expsyms
14608 # Symbols that must always be exported.
14609 include_expsyms=$lt_include_expsyms
14611 # Commands necessary for linking programs (against libraries) with templates.
14612 prelink_cmds=$lt_prelink_cmds
14614 # Specify filename containing input files.
14615 file_list_spec=$lt_file_list_spec
14617 # How to hardcode a shared library path into an executable.
14618 hardcode_action=$hardcode_action
14620 # ### END LIBTOOL CONFIG
14626 cat <<\_LT_EOF >> "$cfgfile"
14627 # AIX sometimes has problems with the GCC collect2 program. For some
14628 # reason, if we set the COLLECT_NAMES environment variable, the problems
14629 # vanish in a puff of smoke.
14630 if test "X${COLLECT_NAMES+set}" != Xset; then
14632 export COLLECT_NAMES
14639 ltmain="$ac_aux_dir/ltmain.sh"
14642 # We use sed instead of cat because bash on DJGPP gets confused if
14643 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14644 # text mode, it properly converts lines to CR/LF. This bash problem
14645 # is reportedly fixed, but why not run on old versions too?
14646 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14647 || (rm -f "$cfgfile"; exit 1)
14651 cat << \_LT_EOF >> "$cfgfile"
14653 # func_dirname file append nondir_replacement
14654 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14655 # otherwise set result to NONDIR_REPLACEMENT.
14659 */*) func_dirname_result="${1%/*}${2}" ;;
14660 * ) func_dirname_result="${3}" ;;
14664 # func_basename file
14667 func_basename_result="${1##*/}"
14670 # func_dirname_and_basename file append nondir_replacement
14671 # perform func_basename and func_dirname in a single function
14673 # dirname: Compute the dirname of FILE. If nonempty,
14674 # add APPEND to the result, otherwise set result
14675 # to NONDIR_REPLACEMENT.
14676 # value returned in "$func_dirname_result"
14677 # basename: Compute filename of FILE.
14678 # value retuned in "$func_basename_result"
14679 # Implementation must be kept synchronized with func_dirname
14680 # and func_basename. For efficiency, we do not delegate to
14681 # those functions but instead duplicate the functionality here.
14682 func_dirname_and_basename ()
14685 */*) func_dirname_result="${1%/*}${2}" ;;
14686 * ) func_dirname_result="${3}" ;;
14688 func_basename_result="${1##*/}"
14691 # func_stripname prefix suffix name
14692 # strip PREFIX and SUFFIX off of NAME.
14693 # PREFIX and SUFFIX must not contain globbing or regex special
14694 # characters, hashes, percent signs, but SUFFIX may contain a leading
14695 # dot (in which case that matches only a dot).
14698 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14699 # positional parameters, so assign one to ordinary parameter first.
14700 func_stripname_result=${3}
14701 func_stripname_result=${func_stripname_result#"${1}"}
14702 func_stripname_result=${func_stripname_result%"${2}"}
14708 func_opt_split_opt=${1%%=*}
14709 func_opt_split_arg=${1#*=}
14716 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14717 *) func_lo2o_result=${1} ;;
14721 # func_xform libobj-or-source
14724 func_xform_result=${1%.*}.lo
14727 # func_arith arithmetic-term...
14730 func_arith_result=$(( $* ))
14734 # STRING may not start with a hyphen.
14737 func_len_result=${#1}
14742 *) # Bourne compatible functions.
14743 cat << \_LT_EOF >> "$cfgfile"
14745 # func_dirname file append nondir_replacement
14746 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14747 # otherwise set result to NONDIR_REPLACEMENT.
14750 # Extract subdirectory from the argument.
14751 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14752 if test "X$func_dirname_result" = "X${1}"; then
14753 func_dirname_result="${3}"
14755 func_dirname_result="$func_dirname_result${2}"
14759 # func_basename file
14762 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14766 # func_stripname prefix suffix name
14767 # strip PREFIX and SUFFIX off of NAME.
14768 # PREFIX and SUFFIX must not contain globbing or regex special
14769 # characters, hashes, percent signs, but SUFFIX may contain a leading
14770 # dot (in which case that matches only a dot).
14771 # func_strip_suffix prefix name
14775 .*) func_stripname_result=`$ECHO "X${3}" \
14776 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14777 *) func_stripname_result=`$ECHO "X${3}" \
14778 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14783 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14784 my_sed_long_arg='1s/^-[^=]*=//'
14789 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14790 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14796 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14799 # func_xform libobj-or-source
14802 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14805 # func_arith arithmetic-term...
14808 func_arith_result=`expr "$@"`
14812 # STRING may not start with a hyphen.
14815 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14821 case $lt_shell_append in
14823 cat << \_LT_EOF >> "$cfgfile"
14825 # func_append var value
14826 # Append VALUE to the end of shell variable VAR.
14834 cat << \_LT_EOF >> "$cfgfile"
14836 # func_append var value
14837 # Append VALUE to the end of shell variable VAR.
14848 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14849 || (rm -f "$cfgfile"; exit 1)
14851 mv -f "$cfgfile" "$ofile" ||
14852 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14863 ac_clean_files=$ac_clean_files_save
14865 test $ac_write_fail = 0 ||
14866 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14869 # configure is writing to config.log, and then calls config.status.
14870 # config.status does its own redirection, appending to config.log.
14871 # Unfortunately, on DOS this fails, as config.log is still kept open
14872 # by configure, so config.status won't be able to write to it; its
14873 # output is simply discarded. So we exec the FD to /dev/null,
14874 # effectively closing config.log, so it can be properly (re)opened and
14875 # appended to by config.status. When coming back to configure, we
14876 # need to make the FD available again.
14877 if test "$no_create" != yes; then
14879 ac_config_status_args=
14880 test "$silent" = yes &&
14881 ac_config_status_args="$ac_config_status_args --quiet"
14883 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14885 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14886 # would make configure fail if this is the last instruction.
14887 $ac_cs_success || as_fn_exit 1
14889 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14891 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}