2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for gupnp 0.18.0.
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp>.
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.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
271 # Portably unset VAR.
274 { eval $1=; unset $1;}
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
298 # Create "$as_dir" as a directory, including parents if necessary.
303 -*) as_dir=./$as_dir;;
305 test -d "$as_dir" || eval $as_mkdir_p || {
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 test -d "$as_dir" && break
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
374 as_val=`expr "$@" || test $? -eq 1`
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
386 as_status=$1; test $as_status -eq 0 && as_status=1
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
519 if test -x / >/dev/null 2>&1; then
522 if ls -dL / >/dev/null 2>&1; then
529 if test -d "$1"; then
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
540 as_executable_p=$as_test_x
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548 SHELL=${CONFIG_SHELL-/bin/sh}
551 test -n "$DJDIR" || exec 7<&0 </dev/null
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
571 # Identity of this package.
573 PACKAGE_TARNAME='gupnp'
574 PACKAGE_VERSION='0.18.0'
575 PACKAGE_STRING='gupnp 0.18.0'
576 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp'
577 PACKAGE_URL='http://www.gupnp.org/'
579 ac_unique_file="libgupnp/gupnp.h"
581 # Factoring default headers for most tests.
582 ac_includes_default="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
617 ac_subst_vars='am__EXEEXT_FALSE
621 GTK_DOC_USE_REBASE_FALSE
622 GTK_DOC_USE_REBASE_TRUE
623 GTK_DOC_USE_LIBTOOL_FALSE
624 GTK_DOC_USE_LIBTOOL_TRUE
625 GTK_DOC_BUILD_PDF_FALSE
626 GTK_DOC_BUILD_PDF_TRUE
627 GTK_DOC_BUILD_HTML_FALSE
628 GTK_DOC_BUILD_HTML_TRUE
637 HAVE_INTROSPECTION_FALSE
638 HAVE_INTROSPECTION_TRUE
639 INTROSPECTION_MAKEFILE
642 INTROSPECTION_TYPELIBDIR
644 INTROSPECTION_GENERATE
645 INTROSPECTION_COMPILER
646 INTROSPECTION_SCANNER
657 USE_NETWORK_MANAGER_FALSE
658 USE_NETWORK_MANAGER_TRUE
717 MAINTAINER_MODE_FALSE
727 INSTALL_STRIP_PROGRAM
781 program_transform_name
794 enable_option_checking
795 enable_maintainer_mode
797 enable_dependency_tracking
814 ac_precious_vars='build_alias
840 # Initialize some variables set by options.
842 ac_init_version=false
843 ac_unrecognized_opts=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
854 program_transform_name=s,x,x,
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879 infodir='${datarootdir}/info'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\$ac_option
900 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 # Accept the important Cygnus configure options, so we can diagnose typos.
907 case $ac_dashdash$ac_option in
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
929 cache_file=config.cache ;;
931 -datadir | --datadir | --datadi | --datad)
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
957 eval enable_$ac_useropt=no ;;
959 -docdir | --docdir | --docdi | --doc | --do)
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 -enable-* | --enable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
983 eval enable_$ac_useropt=\$ac_optarg ;;
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
998 -help | --help | --hel | --he | -h)
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 htmldir=$ac_optarg ;;
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1028 -libdir | --libdir | --libdi | --libd)
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1119 -psdir | --psdir | --psdi | --psd | --ps)
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 sbindir=$ac_optarg ;;
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 sharedstatedir=$ac_optarg ;;
1145 -site | --site | --sit)
1147 -site=* | --site=* | --sit=*)
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error $? "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1187 eval with_$ac_useropt=\$ac_optarg ;;
1189 -without-* | --without-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1203 eval with_$ac_useropt=no ;;
1206 # Obsolete; use --with-x.
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1223 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information"
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1238 # FIXME: should be removed in autoconf 3.0.
1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 as_fn_error $? "missing argument to $ac_option"
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1256 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 # Check all directory arguments for consistency.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1274 # Be sure to have absolute directory names.
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1287 target=$target_alias
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
1293 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1294 If a cross compiler is detected then cross compile mode will be used" >&2
1295 elif test "x$build_alias" != "x$host_alias"; then
1301 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303 test "$silent" = yes && exec 6>/dev/null
1306 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307 ac_ls_di=`ls -di .` &&
1308 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309 as_fn_error $? "working directory cannot be determined"
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 as_fn_error $? "pwd does not report name of working directory"
1314 # Find the source files, if location was not specified.
1315 if test -z "$srcdir"; then
1316 ac_srcdir_defaulted=yes
1317 # Try the directory containing this script, then the parent directory.
1318 ac_confdir=`$as_dirname -- "$as_myself" ||
1319 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320 X"$as_myself" : 'X\(//\)[^/]' \| \
1321 X"$as_myself" : 'X\(//\)$' \| \
1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323 $as_echo X"$as_myself" |
1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1346 ac_srcdir_defaulted=no
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1364 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366 for ac_var in $ac_precious_vars; do
1367 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_env_${ac_var}_value=\$${ac_var}
1369 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 # Report the --help message.
1376 if test "$ac_init_help" = "long"; then
1377 # Omit some internal or obsolete options to make the list less imposing.
1378 # This message is too long to be a string in the A/UX 3.1 sh.
1380 \`configure' configures gupnp 0.18.0 to adapt to many kinds of systems.
1382 Usage: $0 [OPTION]... [VAR=VALUE]...
1384 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1385 VAR=VALUE. See below for descriptions of some of the useful variables.
1387 Defaults for the options are specified in brackets.
1390 -h, --help display this help and exit
1391 --help=short display options specific to this package
1392 --help=recursive display the short help of all the included packages
1393 -V, --version display version information and exit
1394 -q, --quiet, --silent do not print \`checking ...' messages
1395 --cache-file=FILE cache test results in FILE [disabled]
1396 -C, --config-cache alias for \`--cache-file=config.cache'
1397 -n, --no-create do not create output files
1398 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1400 Installation directories:
1401 --prefix=PREFIX install architecture-independent files in PREFIX
1402 [$ac_default_prefix]
1403 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1406 By default, \`make install' will install all the files in
1407 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1408 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1409 for instance \`--prefix=\$HOME'.
1411 For better control, use the options below.
1413 Fine tuning of the installation directories:
1414 --bindir=DIR user executables [EPREFIX/bin]
1415 --sbindir=DIR system admin executables [EPREFIX/sbin]
1416 --libexecdir=DIR program executables [EPREFIX/libexec]
1417 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1418 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1419 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1420 --libdir=DIR object code libraries [EPREFIX/lib]
1421 --includedir=DIR C header files [PREFIX/include]
1422 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1423 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1424 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1425 --infodir=DIR info documentation [DATAROOTDIR/info]
1426 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1427 --mandir=DIR man documentation [DATAROOTDIR/man]
1428 --docdir=DIR documentation root [DATAROOTDIR/doc/gupnp]
1429 --htmldir=DIR html documentation [DOCDIR]
1430 --dvidir=DIR dvi documentation [DOCDIR]
1431 --pdfdir=DIR pdf documentation [DOCDIR]
1432 --psdir=DIR ps documentation [DOCDIR]
1438 --program-prefix=PREFIX prepend PREFIX to installed program names
1439 --program-suffix=SUFFIX append SUFFIX to installed program names
1440 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1443 --build=BUILD configure for building on BUILD [guessed]
1444 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1445 --target=TARGET configure for building compilers for TARGET [HOST]
1449 if test -n "$ac_init_help"; then
1450 case $ac_init_help in
1451 short | recursive ) echo "Configuration of gupnp 0.18.0:";;
1456 --disable-option-checking ignore unrecognized --enable/--with options
1457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1459 --disable-maintainer-mode disable make rules and dependencies not useful
1460 (and sometimes confusing) to the casual installer
1461 --enable-silent-rules less verbose build output (undo: `make V=1')
1462 --disable-silent-rules verbose build output (undo: `make V=0')
1463 --disable-dependency-tracking speeds up one-time build
1464 --enable-dependency-tracking do not reject slow dependency extractors
1465 --disable-largefile omit support for large files
1466 --enable-shared[=PKGS] build shared libraries [default=yes]
1467 --enable-static[=PKGS] build static libraries [default=yes]
1468 --enable-fast-install[=PKGS]
1469 optimize for fast installation [default=yes]
1470 --disable-libtool-lock avoid locking (might break parallel builds)
1471 --enable-debug enable debugging
1472 --enable-introspection=[no/auto/yes]
1473 Enable introspection for this build
1474 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1475 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1476 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1481 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1483 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1484 --with-sysroot=DIR Search for dependent libraries within DIR
1485 (or the compiler's sysroot if not specified).
1486 --with-context-manager=[network-manager/connman/unix/linux]
1487 Context Manager backend to use
1488 --with-html-dir=PATH path to installed docs
1490 Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
1495 LIBS libraries to pass to the linker, e.g. -l<library>
1496 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1497 you have headers in a nonstandard directory <include dir>
1499 PKG_CONFIG path to pkg-config utility
1501 directories to add to pkg-config's search path
1503 path overriding pkg-config's built-in search path
1505 C compiler flags for GTest, overriding pkg-config
1506 GTest_LIBS linker flags for GTest, overriding pkg-config
1508 C compiler flags for LIBGUPNP, overriding pkg-config
1510 linker flags for LIBGUPNP, overriding pkg-config
1512 C compiler flags for GTHREAD, overriding pkg-config
1514 linker flags for GTHREAD, overriding pkg-config
1515 GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
1516 GIO_LIBS linker flags for GIO, overriding pkg-config
1518 C compiler flags for CONNMAN, overriding pkg-config
1520 linker flags for CONNMAN, overriding pkg-config
1522 C compiler flags for GTKDOC_DEPS, overriding pkg-config
1524 linker flags for GTKDOC_DEPS, overriding pkg-config
1526 Use these variables to override the choices made by `configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1529 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp>.
1530 gupnp home page: <http://www.gupnp.org/>.
1535 if test "$ac_init_help" = "recursive"; then
1536 # If there are subdirs, report their specific --help.
1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538 test -d "$ac_dir" ||
1539 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1547 # A ".." for each directory in $ac_dir_suffix.
1548 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549 case $ac_top_builddir_sub in
1550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554 ac_abs_top_builddir=$ac_pwd
1555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556 # for backward compatibility:
1557 ac_top_builddir=$ac_top_build_prefix
1560 .) # We are building in place.
1562 ac_top_srcdir=$ac_top_builddir_sub
1563 ac_abs_top_srcdir=$ac_pwd ;;
1564 [\\/]* | ?:[\\/]* ) # Absolute name.
1565 ac_srcdir=$srcdir$ac_dir_suffix;
1566 ac_top_srcdir=$srcdir
1567 ac_abs_top_srcdir=$srcdir ;;
1569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570 ac_top_srcdir=$ac_top_build_prefix$srcdir
1571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575 cd "$ac_dir" || { ac_status=$?; continue; }
1576 # Check for guested configure.
1577 if test -f "$ac_srcdir/configure.gnu"; then
1579 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580 elif test -f "$ac_srcdir/configure"; then
1582 $SHELL "$ac_srcdir/configure" --help=recursive
1584 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586 cd "$ac_pwd" || { ac_status=$?; break; }
1590 test -n "$ac_init_help" && exit $ac_status
1591 if $ac_init_version; then
1593 gupnp configure 0.18.0
1594 generated by GNU Autoconf 2.68
1596 Copyright (C) 2010 Free Software Foundation, Inc.
1597 This configure script is free software; the Free Software Foundation
1598 gives unlimited permission to copy, distribute and modify it.
1603 ## ------------------------ ##
1604 ## Autoconf initialization. ##
1605 ## ------------------------ ##
1607 # ac_fn_c_try_compile LINENO
1608 # --------------------------
1609 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_compile ()
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 rm -f conftest.$ac_objext
1614 if { { ac_try="$ac_compile"
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_compile") 2>conftest.err
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && {
1630 test -z "$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 } && test -s conftest.$ac_objext; then :
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 as_fn_set_status $ac_retval
1643 } # ac_fn_c_try_compile
1645 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1646 # -------------------------------------------------------
1647 # Tests whether HEADER exists and can be compiled using the include files in
1648 # INCLUDES, setting the cache variable VAR accordingly.
1649 ac_fn_c_check_header_compile ()
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1653 $as_echo_n "checking for $2... " >&6; }
1654 if eval \${$3+:} false; then :
1655 $as_echo_n "(cached) " >&6
1657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658 /* end confdefs.h. */
1662 if ac_fn_c_try_compile "$LINENO"; then :
1667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671 $as_echo "$ac_res" >&6; }
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 } # ac_fn_c_check_header_compile
1676 # ac_fn_c_try_cpp LINENO
1677 # ----------------------
1678 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_cpp conftest.$ac_ext"
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } > conftest.i && {
1698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1713 # ac_fn_c_try_run LINENO
1714 # ----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716 # that executables *can* be run.
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 if { { ac_try="$ac_link"
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>&5
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1731 { { case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_try") 2>&5
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; }; }; then :
1743 $as_echo "$as_me: program exited with status $ac_status" >&5
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1747 ac_retval=$ac_status
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1755 # ac_fn_c_try_link LINENO
1756 # -----------------------
1757 # Try to link conftest.$ac_ext, and return whether this succeeded.
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 rm -f conftest.$ac_objext conftest$ac_exeext
1762 if { { ac_try="$ac_link"
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_link") 2>conftest.err
1771 if test -s conftest.err; then
1772 grep -v '^ *+' conftest.err >conftest.er1
1773 cat conftest.er1 >&5
1774 mv -f conftest.er1 conftest.err
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; } && {
1778 test -z "$ac_c_werror_flag" ||
1779 test ! -s conftest.err
1780 } && test -s conftest$ac_exeext && {
1781 test "$cross_compiling" = yes ||
1782 $as_test_x conftest$ac_exeext
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1791 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1792 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1793 # interfere with the next link command; also delete a directory that is
1794 # left behind by Apple's compiler. We do this before executing the actions.
1795 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 as_fn_set_status $ac_retval
1799 } # ac_fn_c_try_link
1801 # ac_fn_c_check_func LINENO FUNC VAR
1802 # ----------------------------------
1803 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1804 ac_fn_c_check_func ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810 $as_echo_n "(cached) " >&6
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1814 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1816 #define $2 innocuous_$2
1818 /* System header to define __stub macros and hopefully few prototypes,
1819 which can conflict with char $2 (); below.
1820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1821 <limits.h> exists even on freestanding compilers. */
1824 # include <limits.h>
1826 # include <assert.h>
1831 /* Override any GCC internal prototype to avoid an error.
1832 Use char because int might match the return type of a GCC
1833 builtin and then its argument prototype would still apply. */
1838 /* The GNU C library defines this for functions which it implements
1839 to always fail with ENOSYS. Some functions are actually named
1840 something starting with __ and the normal name is an alias. */
1841 #if defined __stub_$2 || defined __stub___$2
1853 if ac_fn_c_try_link "$LINENO"; then :
1858 rm -f core conftest.err conftest.$ac_objext \
1859 conftest$ac_exeext conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 } # ac_fn_c_check_func
1867 cat >config.log <<_ACEOF
1868 This file contains any messages produced by compilers while
1869 running configure, to aid debugging if configure makes a mistake.
1871 It was created by gupnp $as_me 0.18.0, which was
1872 generated by GNU Autoconf 2.68. Invocation command line was
1884 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1885 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1886 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1887 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1888 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1890 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1891 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1893 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1894 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1895 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1896 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1897 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1898 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1899 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 test -z "$as_dir" && as_dir=.
1908 $as_echo "PATH: $as_dir"
1924 # Keep a trace of the command line.
1925 # Strip out --no-create and --no-recursion so they do not pile up.
1926 # Strip out --silent because we don't want to record it for future runs.
1927 # Also quote any args containing shell meta-characters.
1928 # Make two passes to allow for proper duplicate-argument suppression.
1932 ac_must_keep_next=false
1938 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1939 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1940 | -silent | --silent | --silen | --sile | --sil)
1943 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1946 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1948 as_fn_append ac_configure_args1 " '$ac_arg'"
1949 if test $ac_must_keep_next = true; then
1950 ac_must_keep_next=false # Got value, back to normal.
1953 *=* | --config-cache | -C | -disable-* | --disable-* \
1954 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1955 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1956 | -with-* | --with-* | -without-* | --without-* | --x)
1957 case "$ac_configure_args0 " in
1958 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1961 -* ) ac_must_keep_next=true ;;
1964 as_fn_append ac_configure_args " '$ac_arg'"
1969 { ac_configure_args0=; unset ac_configure_args0;}
1970 { ac_configure_args1=; unset ac_configure_args1;}
1972 # When interrupted or exit'd, cleanup temporary files, and complete
1973 # config.log. We remove comments because anyway the quotes in there
1974 # would cause problems or look ugly.
1975 # WARNING: Use '\'' to represent an apostrophe within the trap.
1976 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1977 trap 'exit_status=$?
1978 # Save into config.log some information that might help in debugging.
1982 $as_echo "## ---------------- ##
1983 ## Cache variables. ##
1984 ## ---------------- ##"
1986 # The following way of writing the cache mishandles newlines in values,
1988 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1989 eval ac_val=\$$ac_var
1993 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1997 _ | IFS | as_nl) ;; #(
1998 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1999 *) { eval $ac_var=; unset $ac_var;} ;;
2004 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2005 *${as_nl}ac_space=\ *)
2007 "s/'\''/'\''\\\\'\'''\''/g;
2008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2018 $as_echo "## ----------------- ##
2019 ## Output variables. ##
2020 ## ----------------- ##"
2022 for ac_var in $ac_subst_vars
2024 eval ac_val=\$$ac_var
2026 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2028 $as_echo "$ac_var='\''$ac_val'\''"
2032 if test -n "$ac_subst_files"; then
2033 $as_echo "## ------------------- ##
2034 ## File substitutions. ##
2035 ## ------------------- ##"
2037 for ac_var in $ac_subst_files
2039 eval ac_val=\$$ac_var
2041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043 $as_echo "$ac_var='\''$ac_val'\''"
2048 if test -s confdefs.h; then
2049 $as_echo "## ----------- ##
2056 test "$ac_signal" != 0 &&
2057 $as_echo "$as_me: caught signal $ac_signal"
2058 $as_echo "$as_me: exit $exit_status"
2060 rm -f core *.core core.conftest.* &&
2061 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2064 for ac_signal in 1 2 13 15; do
2065 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2069 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2070 rm -f -r conftest* confdefs.h
2072 $as_echo "/* confdefs.h */" > confdefs.h
2074 # Predefined preprocessor variables.
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_NAME "$PACKAGE_NAME"
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_STRING "$PACKAGE_STRING"
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_URL "$PACKAGE_URL"
2101 # Let the site file select an alternate cache file if it wants to.
2102 # Prefer an explicitly selected file to automatically selected ones.
2105 if test -n "$CONFIG_SITE"; then
2106 # We do not want a PATH search for config.site.
2107 case $CONFIG_SITE in #((
2108 -*) ac_site_file1=./$CONFIG_SITE;;
2109 */*) ac_site_file1=$CONFIG_SITE;;
2110 *) ac_site_file1=./$CONFIG_SITE;;
2112 elif test "x$prefix" != xNONE; then
2113 ac_site_file1=$prefix/share/config.site
2114 ac_site_file2=$prefix/etc/config.site
2116 ac_site_file1=$ac_default_prefix/share/config.site
2117 ac_site_file2=$ac_default_prefix/etc/config.site
2119 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2121 test "x$ac_site_file" = xNONE && continue
2122 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2124 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2125 sed 's/^/| /' "$ac_site_file" >&5
2127 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2129 as_fn_error $? "failed to load site script $ac_site_file
2130 See \`config.log' for more details" "$LINENO" 5; }
2134 if test -r "$cache_file"; then
2135 # Some versions of bash will fail to source /dev/null (special files
2136 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2137 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2139 $as_echo "$as_me: loading cache $cache_file" >&6;}
2141 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2142 *) . "./$cache_file";;
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2147 $as_echo "$as_me: creating cache $cache_file" >&6;}
2151 as_fn_append ac_header_list " stdlib.h"
2152 as_fn_append ac_header_list " unistd.h"
2153 as_fn_append ac_header_list " sys/param.h"
2154 # Check that the precious variables saved in the cache have kept the same
2156 ac_cache_corrupted=false
2157 for ac_var in $ac_precious_vars; do
2158 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2159 eval ac_new_set=\$ac_env_${ac_var}_set
2160 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2161 eval ac_new_val=\$ac_env_${ac_var}_value
2162 case $ac_old_set,$ac_new_set in
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2165 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2166 ac_cache_corrupted=: ;;
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2169 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2170 ac_cache_corrupted=: ;;
2173 if test "x$ac_old_val" != "x$ac_new_val"; then
2174 # differences in whitespace do not lead to failure.
2175 ac_old_val_w=`echo x $ac_old_val`
2176 ac_new_val_w=`echo x $ac_new_val`
2177 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2179 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2180 ac_cache_corrupted=:
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2183 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2184 eval $ac_var=\$ac_old_val
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2187 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2189 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2192 # Pass precious variables to config.status.
2193 if test "$ac_new_set" = set; then
2195 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2196 *) ac_arg=$ac_var=$ac_new_val ;;
2198 case " $ac_configure_args " in
2199 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2200 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2204 if $ac_cache_corrupted; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2208 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2209 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2211 ## -------------------- ##
2212 ## Main body of script. ##
2213 ## -------------------- ##
2216 ac_cpp='$CPP $CPPFLAGS'
2217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2223 ac_config_headers="$ac_config_headers config.h"
2228 for ac_dir in build-aux "$srcdir"/build-aux; do
2229 if test -f "$ac_dir/install-sh"; then
2231 ac_install_sh="$ac_aux_dir/install-sh -c"
2233 elif test -f "$ac_dir/install.sh"; then
2235 ac_install_sh="$ac_aux_dir/install.sh -c"
2237 elif test -f "$ac_dir/shtool"; then
2239 ac_install_sh="$ac_aux_dir/shtool install -c"
2243 if test -z "$ac_aux_dir"; then
2244 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2247 # These three variables are undocumented and unsupported,
2248 # and are intended to be withdrawn in a future Autoconf release.
2249 # They can cause serious problems if a builder's source tree is in a directory
2250 # whose full name contains unusual characters.
2251 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2252 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2253 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2257 # Make sure we can run config.sub.
2258 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2259 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2262 $as_echo_n "checking build system type... " >&6; }
2263 if ${ac_cv_build+:} false; then :
2264 $as_echo_n "(cached) " >&6
2266 ac_build_alias=$build_alias
2267 test "x$ac_build_alias" = x &&
2268 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2269 test "x$ac_build_alias" = x &&
2270 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2271 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2272 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2276 $as_echo "$ac_cv_build" >&6; }
2277 case $ac_cv_build in
2279 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2282 ac_save_IFS=$IFS; IFS='-'
2288 # Remember, the first character of IFS is used to create $*,
2289 # except with old shells:
2292 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2296 $as_echo_n "checking host system type... " >&6; }
2297 if ${ac_cv_host+:} false; then :
2298 $as_echo_n "(cached) " >&6
2300 if test "x$host_alias" = x; then
2301 ac_cv_host=$ac_cv_build
2303 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2304 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2309 $as_echo "$ac_cv_host" >&6; }
2312 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2315 ac_save_IFS=$IFS; IFS='-'
2321 # Remember, the first character of IFS is used to create $*,
2322 # except with old shells:
2325 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2329 $as_echo_n "checking target system type... " >&6; }
2330 if ${ac_cv_target+:} false; then :
2331 $as_echo_n "(cached) " >&6
2333 if test "x$target_alias" = x; then
2334 ac_cv_target=$ac_cv_host
2336 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2337 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2342 $as_echo "$ac_cv_target" >&6; }
2343 case $ac_cv_target in
2345 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2347 target=$ac_cv_target
2348 ac_save_IFS=$IFS; IFS='-'
2354 # Remember, the first character of IFS is used to create $*,
2355 # except with old shells:
2358 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2361 # The aliases save the names the user supplied, while $host etc.
2362 # will get canonicalized.
2363 test -n "$target_alias" &&
2364 test "$program_prefix$program_suffix$program_transform_name" = \
2366 program_prefix=${target_alias}-
2368 am__api_version='1.11'
2370 # Find a good install program. We prefer a C program (faster),
2371 # so one script is as good as another. But avoid the broken or
2372 # incompatible versions:
2373 # SysV /etc/install, /usr/sbin/install
2374 # SunOS /usr/etc/install
2375 # IRIX /sbin/install
2377 # AmigaOS /C/install, which installs bootblocks on floppy discs
2378 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2379 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2380 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2381 # OS/2's system install, which has a completely different semantic
2382 # ./install, which can be erroneously created by make from ./install.sh.
2383 # Reject install programs that cannot install multiple files.
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2385 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2386 if test -z "$INSTALL"; then
2387 if ${ac_cv_path_install+:} false; then :
2388 $as_echo_n "(cached) " >&6
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 test -z "$as_dir" && as_dir=.
2395 # Account for people who put trailing slashes in PATH elements.
2396 case $as_dir/ in #((
2397 ./ | .// | /[cC]/* | \
2398 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2399 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2402 # OSF1 and SCO ODT 3.0 have their own names for install.
2403 # Don't use installbsd from OSF since it installs stuff as root
2405 for ac_prog in ginstall scoinst install; do
2406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2408 if test $ac_prog = install &&
2409 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2410 # AIX install. It has an incompatible calling convention.
2412 elif test $ac_prog = install &&
2413 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2414 # program-specific install script used by HP pwplus--don't use.
2417 rm -rf conftest.one conftest.two conftest.dir
2418 echo one > conftest.one
2419 echo two > conftest.two
2421 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2422 test -s conftest.one && test -s conftest.two &&
2423 test -s conftest.dir/conftest.one &&
2424 test -s conftest.dir/conftest.two
2426 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2439 rm -rf conftest.one conftest.two conftest.dir
2442 if test "${ac_cv_path_install+set}" = set; then
2443 INSTALL=$ac_cv_path_install
2445 # As a last resort, use the slow shell script. Don't cache a
2446 # value for INSTALL within a source directory, because that will
2447 # break other packages using the cache if that directory is
2448 # removed, or if the value is a relative name.
2449 INSTALL=$ac_install_sh
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2453 $as_echo "$INSTALL" >&6; }
2455 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2456 # It thinks the first close brace ends the variable substitution.
2457 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2459 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2461 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2464 $as_echo_n "checking whether build environment is sane... " >&6; }
2467 echo timestamp > conftest.file
2468 # Reject unsafe characters in $srcdir or the absolute working directory
2469 # name. Accept space and tab only in the latter.
2473 *[\\\"\#\$\&\'\`$am_lf]*)
2474 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2477 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2478 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2481 # Do `set' in a subshell so we don't clobber the current shell's
2482 # arguments. Must try -L first in case configure is actually a
2483 # symlink; some systems play weird games with the mod time of symlinks
2484 # (eg FreeBSD returns the mod time of the symlink's containing
2487 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2488 if test "$*" = "X"; then
2490 set X `ls -t "$srcdir/configure" conftest.file`
2493 if test "$*" != "X $srcdir/configure conftest.file" \
2494 && test "$*" != "X conftest.file $srcdir/configure"; then
2496 # If neither matched, then we have a broken ls. This can happen
2497 # if, for instance, CONFIG_SHELL is bash and it inherits a
2498 # broken ls alias from the environment. This has actually
2499 # happened. Such a system could not be considered "sane".
2500 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2501 alias in your environment" "$LINENO" 5
2504 test "$2" = conftest.file
2510 as_fn_error $? "newly created file is older than distributed files!
2511 Check your system clock" "$LINENO" 5
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2514 $as_echo "yes" >&6; }
2515 test "$program_prefix" != NONE &&
2516 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2517 # Use a double $ so make ignores it.
2518 test "$program_suffix" != NONE &&
2519 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2520 # Double any \ or $.
2521 # By default was `s,x,x', remove it if useless.
2522 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2523 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2525 # expand $ac_aux_dir to an absolute path
2526 am_aux_dir=`cd $ac_aux_dir && pwd`
2528 if test x"${MISSING+set}" != xset; then
2531 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2533 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2536 # Use eval to expand $SHELL
2537 if eval "$MISSING --run true"; then
2538 am_missing_run="$MISSING --run "
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2542 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2545 if test x"${install_sh}" != xset; then
2548 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2550 install_sh="\${SHELL} $am_aux_dir/install-sh"
2554 # Installed binaries are usually stripped using `strip' when the user
2555 # run `make install-strip'. However `strip' might not be the right
2556 # tool to use in cross-compilation environments, therefore Automake
2557 # will honor the `STRIP' environment variable to overrule this program.
2558 if test "$cross_compiling" != no; then
2559 if test -n "$ac_tool_prefix"; then
2560 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2561 set dummy ${ac_tool_prefix}strip; ac_word=$2
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2563 $as_echo_n "checking for $ac_word... " >&6; }
2564 if ${ac_cv_prog_STRIP+:} false; then :
2565 $as_echo_n "(cached) " >&6
2567 if test -n "$STRIP"; then
2568 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 STRIP=$ac_cv_prog_STRIP
2588 if test -n "$STRIP"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2590 $as_echo "$STRIP" >&6; }
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593 $as_echo "no" >&6; }
2598 if test -z "$ac_cv_prog_STRIP"; then
2600 # Extract the first word of "strip", so it can be a program name with args.
2601 set dummy strip; ac_word=$2
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2605 $as_echo_n "(cached) " >&6
2607 if test -n "$ac_ct_STRIP"; then
2608 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617 ac_cv_prog_ac_ct_STRIP="strip"
2618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2628 if test -n "$ac_ct_STRIP"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2630 $as_echo "$ac_ct_STRIP" >&6; }
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633 $as_echo "no" >&6; }
2636 if test "x$ac_ct_STRIP" = x; then
2639 case $cross_compiling:$ac_tool_warned in
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2643 ac_tool_warned=yes ;;
2648 STRIP="$ac_cv_prog_STRIP"
2652 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2655 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2656 if test -z "$MKDIR_P"; then
2657 if ${ac_cv_path_mkdir+:} false; then :
2658 $as_echo_n "(cached) " >&6
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2664 test -z "$as_dir" && as_dir=.
2665 for ac_prog in mkdir gmkdir; do
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2668 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2669 'mkdir (GNU coreutils) '* | \
2670 'mkdir (coreutils) '* | \
2671 'mkdir (fileutils) '4.1*)
2672 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2682 test -d ./--version && rmdir ./--version
2683 if test "${ac_cv_path_mkdir+set}" = set; then
2684 MKDIR_P="$ac_cv_path_mkdir -p"
2686 # As a last resort, use the slow shell script. Don't cache a
2687 # value for MKDIR_P within a source directory, because that will
2688 # break other packages using the cache if that directory is
2689 # removed, or if the value is a relative name.
2690 MKDIR_P="$ac_install_sh -d"
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2694 $as_echo "$MKDIR_P" >&6; }
2698 [\\/$]* | ?:[\\/]*) ;;
2699 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2702 for ac_prog in gawk mawk nawk awk
2704 # Extract the first word of "$ac_prog", so it can be a program name with args.
2705 set dummy $ac_prog; ac_word=$2
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 $as_echo_n "checking for $ac_word... " >&6; }
2708 if ${ac_cv_prog_AWK+:} false; then :
2709 $as_echo_n "(cached) " >&6
2711 if test -n "$AWK"; then
2712 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721 ac_cv_prog_AWK="$ac_prog"
2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 if test -n "$AWK"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2734 $as_echo "$AWK" >&6; }
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737 $as_echo "no" >&6; }
2741 test -n "$AWK" && break
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2745 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2747 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2748 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2749 $as_echo_n "(cached) " >&6
2751 cat >conftest.make <<\_ACEOF
2754 @echo '@@@%%%=$(MAKE)=@@@%%%'
2756 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2757 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2759 eval ac_cv_prog_make_${ac_make}_set=yes;;
2761 eval ac_cv_prog_make_${ac_make}_set=no;;
2765 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2767 $as_echo "yes" >&6; }
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2772 SET_MAKE="MAKE=${MAKE-make}"
2775 rm -rf .tst 2>/dev/null
2776 mkdir .tst 2>/dev/null
2777 if test -d .tst; then
2782 rmdir .tst 2>/dev/null
2784 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2785 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2786 # is not polluted with repeated "-I."
2787 am__isrc=' -I$(srcdir)'
2788 # test to see if srcdir already configured
2789 if test -f $srcdir/config.status; then
2790 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2794 # test whether we have cygpath
2795 if test -z "$CYGPATH_W"; then
2796 if (cygpath --version) >/dev/null 2>/dev/null; then
2797 CYGPATH_W='cygpath -w'
2804 # Define the identity of the package.
2809 cat >>confdefs.h <<_ACEOF
2810 #define PACKAGE "$PACKAGE"
2814 cat >>confdefs.h <<_ACEOF
2815 #define VERSION "$VERSION"
2818 # Some tools Automake needs.
2820 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2823 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2826 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2829 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2832 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2834 # We need awk for the "check" target. The system "awk" is bad on
2836 # Always define AMTAR for backward compatibility. Yes, it's still used
2837 # in the wild :-( We should find a proper way to deprecate it ...
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2842 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2843 # Loop over all known methods to create a tar archive until one works.
2844 _am_tools='gnutar plaintar pax cpio none'
2845 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2846 # Do not fold the above two line into one, because Tru64 sh and
2847 # Solaris sh will not grok spaces in the rhs of `-'.
2848 for _am_tool in $_am_tools
2852 for _am_tar in tar gnutar gtar;
2854 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2855 ($_am_tar --version) >&5 2>&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } && break
2860 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2861 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2862 am__untar="$_am_tar -xf -"
2865 # Must skip GNU tar: if it does not support --format= it doesn't create
2866 # ustar tarball either.
2867 (tar --version) >/dev/null 2>&1 && continue
2868 am__tar='tar chf - "$$tardir"'
2869 am__tar_='tar chf - "$tardir"'
2870 am__untar='tar xf -'
2873 am__tar='pax -L -x ustar -w "$$tardir"'
2874 am__tar_='pax -L -x ustar -w "$tardir"'
2878 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2879 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2880 am__untar='cpio -i -H ustar -d'
2889 # If the value was cached, stop now. We just wanted to have am__tar
2890 # and am__untar set.
2891 test -n "${am_cv_prog_tar_ustar}" && break
2893 # tar/untar a dummy directory, and stop if the command works
2896 echo GrepMe > conftest.dir/file
2897 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2898 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2903 if test -s conftest.tar; then
2904 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2905 ($am__untar <conftest.tar) >&5 2>&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }
2909 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2914 if ${am_cv_prog_tar_ustar+:} false; then :
2915 $as_echo_n "(cached) " >&6
2917 am_cv_prog_tar_ustar=$_am_tool
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2921 $as_echo "$am_cv_prog_tar_ustar" >&6; }
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2929 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2930 # Check whether --enable-maintainer-mode was given.
2931 if test "${enable_maintainer_mode+set}" = set; then :
2932 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2934 USE_MAINTAINER_MODE=yes
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2938 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2939 if test $USE_MAINTAINER_MODE = yes; then
2940 MAINTAINER_MODE_TRUE=
2941 MAINTAINER_MODE_FALSE='#'
2943 MAINTAINER_MODE_TRUE='#'
2944 MAINTAINER_MODE_FALSE=
2947 MAINT=$MAINTAINER_MODE_TRUE
2951 # Check whether --enable-silent-rules was given.
2952 if test "${enable_silent_rules+set}" = set; then :
2953 enableval=$enable_silent_rules;
2956 case $enable_silent_rules in
2957 yes) AM_DEFAULT_VERBOSITY=0;;
2958 no) AM_DEFAULT_VERBOSITY=1;;
2959 *) AM_DEFAULT_VERBOSITY=0;;
2961 am_make=${MAKE-make}
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2963 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2964 if ${am_cv_make_support_nested_variables+:} false; then :
2965 $as_echo_n "(cached) " >&6
2967 if $as_echo 'TRUE=$(BAR$(V))
2973 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2974 am_cv_make_support_nested_variables=yes
2976 am_cv_make_support_nested_variables=no
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2980 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2981 if test $am_cv_make_support_nested_variables = yes; then
2983 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2985 AM_V=$AM_DEFAULT_VERBOSITY
2986 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2991 # Check for programs
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2997 if test -n "$ac_tool_prefix"; then
2998 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2999 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001 $as_echo_n "checking for $ac_word... " >&6; }
3002 if ${ac_cv_prog_CC+:} false; then :
3003 $as_echo_n "(cached) " >&6
3005 if test -n "$CC"; then
3006 ac_cv_prog_CC="$CC" # Let the user override the test.
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 if test -n "$CC"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3028 $as_echo "$CC" >&6; }
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3036 if test -z "$ac_cv_prog_CC"; then
3038 # Extract the first word of "gcc", so it can be a program name with args.
3039 set dummy gcc; ac_word=$2
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3043 $as_echo_n "(cached) " >&6
3045 if test -n "$ac_ct_CC"; then
3046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 test -z "$as_dir" && as_dir=.
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3055 ac_cv_prog_ac_ct_CC="gcc"
3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3066 if test -n "$ac_ct_CC"; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3068 $as_echo "$ac_ct_CC" >&6; }
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3074 if test "x$ac_ct_CC" = x; then
3077 case $cross_compiling:$ac_tool_warned in
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3081 ac_tool_warned=yes ;;
3089 if test -z "$CC"; then
3090 if test -n "$ac_tool_prefix"; then
3091 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3092 set dummy ${ac_tool_prefix}cc; ac_word=$2
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if ${ac_cv_prog_CC+:} false; then :
3096 $as_echo_n "(cached) " >&6
3098 if test -n "$CC"; then
3099 ac_cv_prog_CC="$CC" # Let the user override the test.
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3108 ac_cv_prog_CC="${ac_tool_prefix}cc"
3109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 if test -n "$CC"; then
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3121 $as_echo "$CC" >&6; }
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3130 if test -z "$CC"; then
3131 # Extract the first word of "cc", so it can be a program name with args.
3132 set dummy cc; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_CC+:} false; then :
3136 $as_echo_n "(cached) " >&6
3138 if test -n "$CC"; then
3139 ac_cv_prog_CC="$CC" # Let the user override the test.
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 test -z "$as_dir" && as_dir=.
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3150 ac_prog_rejected=yes
3154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 if test $ac_prog_rejected = yes; then
3162 # We found a bogon in the path, so make sure we never use it.
3163 set dummy $ac_cv_prog_CC
3165 if test $# != 0; then
3166 # We chose a different compiler from the bogus one.
3167 # However, it has the same basename, so the bogon will be chosen
3168 # first if we set CC to just the basename; use the full file name.
3170 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3176 if test -n "$CC"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3178 $as_echo "$CC" >&6; }
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3186 if test -z "$CC"; then
3187 if test -n "$ac_tool_prefix"; then
3188 for ac_prog in cl.exe
3190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3191 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if ${ac_cv_prog_CC+:} false; then :
3195 $as_echo_n "(cached) " >&6
3197 if test -n "$CC"; then
3198 ac_cv_prog_CC="$CC" # Let the user override the test.
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 if test -n "$CC"; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3220 $as_echo "$CC" >&6; }
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3227 test -n "$CC" && break
3230 if test -z "$CC"; then
3232 for ac_prog in cl.exe
3234 # Extract the first word of "$ac_prog", so it can be a program name with args.
3235 set dummy $ac_prog; ac_word=$2
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237 $as_echo_n "checking for $ac_word... " >&6; }
3238 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3239 $as_echo_n "(cached) " >&6
3241 if test -n "$ac_ct_CC"; then
3242 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3251 ac_cv_prog_ac_ct_CC="$ac_prog"
3252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3262 if test -n "$ac_ct_CC"; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3264 $as_echo "$ac_ct_CC" >&6; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3271 test -n "$ac_ct_CC" && break
3274 if test "x$ac_ct_CC" = x; then
3277 case $cross_compiling:$ac_tool_warned in
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3281 ac_tool_warned=yes ;;
3290 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292 as_fn_error $? "no acceptable C compiler found in \$PATH
3293 See \`config.log' for more details" "$LINENO" 5; }
3295 # Provide some information about the compiler.
3296 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3299 for ac_option in --version -v -V -qversion; do
3300 { { ac_try="$ac_compiler $ac_option >&5"
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306 $as_echo "$ac_try_echo"; } >&5
3307 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3309 if test -s conftest.err; then
3311 ... rest of stderr output deleted ...
3312 10q' conftest.err >conftest.er1
3313 cat conftest.er1 >&5
3315 rm -f conftest.er1 conftest.err
3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317 test $ac_status = 0; }
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h. */
3331 ac_clean_files_save=$ac_clean_files
3332 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3333 # Try to create an executable without -o first, disregard a.out.
3334 # It will help us diagnose broken compilers, and finding out an intuition
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3337 $as_echo_n "checking whether the C compiler works... " >&6; }
3338 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3340 # The possible output files:
3341 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3344 for ac_file in $ac_files
3347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3348 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3353 if { { ac_try="$ac_link_default"
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3359 $as_echo "$ac_try_echo"; } >&5
3360 (eval "$ac_link_default") 2>&5
3362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3363 test $ac_status = 0; }; then :
3364 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3365 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3366 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3367 # so that the user can short-circuit this test for compilers unknown to
3369 for ac_file in $ac_files ''
3371 test -f "$ac_file" || continue
3373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3376 # We found the default executable, but exeext='' is most
3380 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3382 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3384 # We set ac_cv_exeext here because the later test for it is not
3385 # safe: cross compilers may not add the suffix if given an `-o'
3386 # argument, so we may need to know it at that point already.
3387 # Even if this section looks crufty: it has the advantage of
3394 test "$ac_cv_exeext" = no && ac_cv_exeext=
3399 if test -z "$ac_file"; then :
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3402 $as_echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 as_fn_error 77 "C compiler cannot create executables
3408 See \`config.log' for more details" "$LINENO" 5; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3411 $as_echo "yes" >&6; }
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3414 $as_echo_n "checking for C compiler default output file name... " >&6; }
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3416 $as_echo "$ac_file" >&6; }
3417 ac_exeext=$ac_cv_exeext
3419 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3420 ac_clean_files=$ac_clean_files_save
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3422 $as_echo_n "checking for suffix of executables... " >&6; }
3423 if { { ac_try="$ac_link"
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3429 $as_echo "$ac_try_echo"; } >&5
3430 (eval "$ac_link") 2>&5
3432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3433 test $ac_status = 0; }; then :
3434 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3435 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3436 # work properly (i.e., refer to `conftest.exe'), while it won't with
3438 for ac_file in conftest.exe conftest conftest.*; do
3439 test -f "$ac_file" || continue
3441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3442 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3451 See \`config.log' for more details" "$LINENO" 5; }
3453 rm -f conftest conftest$ac_cv_exeext
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3455 $as_echo "$ac_cv_exeext" >&6; }
3457 rm -f conftest.$ac_ext
3458 EXEEXT=$ac_cv_exeext
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3466 FILE *f = fopen ("conftest.out", "w");
3467 return ferror (f) || fclose (f) != 0;
3473 ac_clean_files="$ac_clean_files conftest.out"
3474 # Check that the compiler produces executables we can run. If not, either
3475 # the compiler is broken, or we cross compile.
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3477 $as_echo_n "checking whether we are cross compiling... " >&6; }
3478 if test "$cross_compiling" != yes; then
3479 { { ac_try="$ac_link"
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3485 $as_echo "$ac_try_echo"; } >&5
3486 (eval "$ac_link") 2>&5
3488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489 test $ac_status = 0; }
3490 if { ac_try='./conftest$ac_cv_exeext'
3491 { { case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3496 $as_echo "$ac_try_echo"; } >&5
3497 (eval "$ac_try") 2>&5
3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500 test $ac_status = 0; }; }; then
3503 if test "$cross_compiling" = maybe; then
3506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508 as_fn_error $? "cannot run C compiled programs.
3509 If you meant to cross compile, use \`--host'.
3510 See \`config.log' for more details" "$LINENO" 5; }
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3515 $as_echo "$cross_compiling" >&6; }
3517 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3518 ac_clean_files=$ac_clean_files_save
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3520 $as_echo_n "checking for suffix of object files... " >&6; }
3521 if ${ac_cv_objext+:} false; then :
3522 $as_echo_n "(cached) " >&6
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3535 rm -f conftest.o conftest.obj
3536 if { { ac_try="$ac_compile"
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542 $as_echo "$ac_try_echo"; } >&5
3543 (eval "$ac_compile") 2>&5
3545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546 test $ac_status = 0; }; then :
3547 for ac_file in conftest.o conftest.obj conftest.*; do
3548 test -f "$ac_file" || continue;
3550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3551 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3556 $as_echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561 as_fn_error $? "cannot compute suffix of object files: cannot compile
3562 See \`config.log' for more details" "$LINENO" 5; }
3564 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3567 $as_echo "$ac_cv_objext" >&6; }
3568 OBJEXT=$ac_cv_objext
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3571 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3572 if ${ac_cv_c_compiler_gnu+:} false; then :
3573 $as_echo_n "(cached) " >&6
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3589 if ac_fn_c_try_compile "$LINENO"; then :
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3599 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3600 if test $ac_compiler_gnu = yes; then
3605 ac_test_CFLAGS=${CFLAGS+set}
3606 ac_save_CFLAGS=$CFLAGS
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3608 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3609 if ${ac_cv_prog_cc_g+:} false; then :
3610 $as_echo_n "(cached) " >&6
3612 ac_save_c_werror_flag=$ac_c_werror_flag
3613 ac_c_werror_flag=yes
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3627 if ac_fn_c_try_compile "$LINENO"; then :
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3642 if ac_fn_c_try_compile "$LINENO"; then :
3645 ac_c_werror_flag=$ac_save_c_werror_flag
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3658 if ac_fn_c_try_compile "$LINENO"; then :
3661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 ac_c_werror_flag=$ac_save_c_werror_flag
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3669 $as_echo "$ac_cv_prog_cc_g" >&6; }
3670 if test "$ac_test_CFLAGS" = set; then
3671 CFLAGS=$ac_save_CFLAGS
3672 elif test $ac_cv_prog_cc_g = yes; then
3673 if test "$GCC" = yes; then
3679 if test "$GCC" = yes; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3686 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3687 if ${ac_cv_prog_cc_c89+:} false; then :
3688 $as_echo_n "(cached) " >&6
3690 ac_cv_prog_cc_c89=no
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3696 #include <sys/types.h>
3697 #include <sys/stat.h>
3698 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3699 struct buf { int x; };
3700 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3701 static char *e (p, i)
3707 static char *f (char * (*g) (char **, int), char **p, ...)
3712 s = g (p, va_arg (v,int));
3717 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3718 function prototypes and stuff, but not '\xHH' hex character constants.
3719 These don't provoke an error unfortunately, instead are silently treated
3720 as 'x'. The following induces an error, until -std is added to get
3721 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3722 array size at least. It's necessary to write '\x00'==0 to get something
3723 that's true only with -std. */
3724 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3726 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3727 inside strings and character constants. */
3729 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3731 int test (int i, double x);
3732 struct s1 {int (*f) (int a);};
3733 struct s2 {int (*f) (double a);};
3734 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3740 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3745 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3746 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3748 CC="$ac_save_CC $ac_arg"
3749 if ac_fn_c_try_compile "$LINENO"; then :
3750 ac_cv_prog_cc_c89=$ac_arg
3752 rm -f core conftest.err conftest.$ac_objext
3753 test "x$ac_cv_prog_cc_c89" != "xno" && break
3755 rm -f conftest.$ac_ext
3760 case "x$ac_cv_prog_cc_c89" in
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3763 $as_echo "none needed" >&6; } ;;
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3766 $as_echo "unsupported" >&6; } ;;
3768 CC="$CC $ac_cv_prog_cc_c89"
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3770 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3772 if test "x$ac_cv_prog_cc_c89" != xno; then :
3777 ac_cpp='$CPP $CPPFLAGS'
3778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781 DEPDIR="${am__leading_dot}deps"
3783 ac_config_commands="$ac_config_commands depfiles"
3786 am_make=${MAKE-make}
3787 cat > confinc << 'END'
3789 @echo this is the am__doit target
3792 # If we don't find an include directive, just comment out the code.
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3794 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3798 # First try GNU make style include.
3799 echo "include confinc" > confmf
3800 # Ignore all kinds of additional output from `make'.
3801 case `$am_make -s -f confmf 2> /dev/null` in #(
3802 *the\ am__doit\ target*)
3808 # Now try BSD make style include.
3809 if test "$am__include" = "#"; then
3810 echo '.include "confinc"' > confmf
3811 case `$am_make -s -f confmf 2> /dev/null` in #(
3812 *the\ am__doit\ target*)
3813 am__include=.include
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3822 $as_echo "$_am_result" >&6; }
3823 rm -f confinc confmf
3825 # Check whether --enable-dependency-tracking was given.
3826 if test "${enable_dependency_tracking+set}" = set; then :
3827 enableval=$enable_dependency_tracking;
3830 if test "x$enable_dependency_tracking" != xno; then
3831 am_depcomp="$ac_aux_dir/depcomp"
3835 if test "x$enable_dependency_tracking" != xno; then
3845 depcc="$CC" am_compiler_list=
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3848 $as_echo_n "checking dependency style of $depcc... " >&6; }
3849 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3850 $as_echo_n "(cached) " >&6
3852 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3853 # We make a subdir and do the tests there. Otherwise we can end up
3854 # making bogus files that we don't know about and never remove. For
3855 # instance it was reported that on HP-UX the gcc test will end up
3856 # making a dummy file named `D' -- because `-MD' means `put the output
3860 # Copy depcomp to subdir because otherwise we won't find it if we're
3861 # using a relative directory.
3862 cp "$am_depcomp" conftest.dir
3864 # We will build objects and dependencies in a subdirectory because
3865 # it helps to detect inapplicable dependency modes. For instance
3866 # both Tru64's cc and ICC support -MD to output dependencies as a
3867 # side effect of compilation, but ICC will put the dependencies in
3868 # the current directory while Tru64 will put them in the object
3872 am_cv_CC_dependencies_compiler_type=none
3873 if test "$am_compiler_list" = ""; then
3874 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3877 case " $depcc " in #(
3878 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3881 for depmode in $am_compiler_list; do
3882 # Setup a source with many dependencies, because some compilers
3883 # like to wrap large dependency lists on column 80 (with \), and
3884 # we should not choose a depcomp mode which is confused by this.
3886 # We need to recreate these files for each test, as the compiler may
3887 # overwrite some of them when testing with obscure command lines.
3888 # This happens at least with the AIX C compiler.
3890 for i in 1 2 3 4 5 6; do
3891 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3892 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3893 # Solaris 8's {/usr,}/bin/sh.
3894 touch sub/conftst$i.h
3896 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3898 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3899 # mode. It turns out that the SunPro C++ compiler does not properly
3900 # handle `-M -o', and we need to detect this. Also, some Intel
3901 # versions had trouble with output in subdirs
3902 am__obj=sub/conftest.${OBJEXT-o}
3903 am__minus_obj="-o $am__obj"
3906 # This depmode causes a compiler race in universal mode.
3907 test "$am__universal" = false || continue
3910 # after this tag, mechanisms are not by side-effect, so they'll
3911 # only be used when explicitly requested
3912 if test "x$enable_dependency_tracking" = xyes; then
3918 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3919 # This compiler won't grok `-c -o', but also, the minuso test has
3920 # not run yet. These depmodes are late enough in the game, and
3921 # so weak that their functioning should not be impacted.
3922 am__obj=conftest.${OBJEXT-o}
3927 if depmode=$depmode \
3928 source=sub/conftest.c object=$am__obj \
3929 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3930 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3931 >/dev/null 2>conftest.err &&
3932 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3933 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3934 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3935 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3936 # icc doesn't choke on unknown options, it will just issue warnings
3937 # or remarks (even with -Werror). So we grep stderr for any message
3938 # that says an option was ignored or not supported.
3939 # When given -MP, icc 7.0 and 7.1 complain thusly:
3940 # icc: Command line warning: ignoring option '-M'; no argument required
3941 # The diagnosis changed in icc 8.0:
3942 # icc: Command line remark: option '-MP' not supported
3943 if (grep 'ignoring option' conftest.err ||
3944 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3945 am_cv_CC_dependencies_compiler_type=$depmode
3954 am_cv_CC_dependencies_compiler_type=none
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3959 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3960 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3963 test "x$enable_dependency_tracking" != xno \
3964 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3966 am__fastdepCC_FALSE='#'
3968 am__fastdepCC_TRUE='#'
3969 am__fastdepCC_FALSE=
3975 ac_cpp='$CPP $CPPFLAGS'
3976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3980 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3981 # On Suns, sometimes $CPP names a directory.
3982 if test -n "$CPP" && test -d "$CPP"; then
3985 if test -z "$CPP"; then
3986 if ${ac_cv_prog_CPP+:} false; then :
3987 $as_echo_n "(cached) " >&6
3989 # Double quotes because CPP needs to be expanded
3990 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3993 for ac_c_preproc_warn_flag in '' yes
3995 # Use a header file that comes with gcc, so configuring glibc
3996 # with a fresh cross-compiler works.
3997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3998 # <limits.h> exists even on freestanding compilers.
3999 # On the NeXT, cc -E runs the code through the compiler's parser,
4000 # not just through cpp. "Syntax error" is here to catch this case.
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4004 # include <limits.h>
4006 # include <assert.h>
4010 if ac_fn_c_try_cpp "$LINENO"; then :
4013 # Broken: fails on valid input.
4016 rm -f conftest.err conftest.i conftest.$ac_ext
4018 # OK, works on sane cases. Now check whether nonexistent headers
4019 # can be detected and how.
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h. */
4022 #include <ac_nonexistent.h>
4024 if ac_fn_c_try_cpp "$LINENO"; then :
4025 # Broken: success on invalid input.
4028 # Passes both tests.
4032 rm -f conftest.err conftest.i conftest.$ac_ext
4035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4036 rm -f conftest.i conftest.err conftest.$ac_ext
4037 if $ac_preproc_ok; then :
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4050 $as_echo "$CPP" >&6; }
4052 for ac_c_preproc_warn_flag in '' yes
4054 # Use a header file that comes with gcc, so configuring glibc
4055 # with a fresh cross-compiler works.
4056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057 # <limits.h> exists even on freestanding compilers.
4058 # On the NeXT, cc -E runs the code through the compiler's parser,
4059 # not just through cpp. "Syntax error" is here to catch this case.
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4063 # include <limits.h>
4065 # include <assert.h>
4069 if ac_fn_c_try_cpp "$LINENO"; then :
4072 # Broken: fails on valid input.
4075 rm -f conftest.err conftest.i conftest.$ac_ext
4077 # OK, works on sane cases. Now check whether nonexistent headers
4078 # can be detected and how.
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4081 #include <ac_nonexistent.h>
4083 if ac_fn_c_try_cpp "$LINENO"; then :
4084 # Broken: success on invalid input.
4087 # Passes both tests.
4091 rm -f conftest.err conftest.i conftest.$ac_ext
4094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4095 rm -f conftest.i conftest.err conftest.$ac_ext
4096 if $ac_preproc_ok; then :
4099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4101 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4102 See \`config.log' for more details" "$LINENO" 5; }
4106 ac_cpp='$CPP $CPPFLAGS'
4107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4113 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4114 if ${ac_cv_path_GREP+:} false; then :
4115 $as_echo_n "(cached) " >&6
4117 if test -z "$GREP"; then
4118 ac_path_GREP_found=false
4119 # Loop through the user's path and test for each of PROGNAME-LIST
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4124 test -z "$as_dir" && as_dir=.
4125 for ac_prog in grep ggrep; do
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4128 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4129 # Check for GNU ac_path_GREP and select it if it is found.
4130 # Check for GNU $ac_path_GREP
4131 case `"$ac_path_GREP" --version 2>&1` in
4133 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4136 $as_echo_n 0123456789 >"conftest.in"
4139 cat "conftest.in" "conftest.in" >"conftest.tmp"
4140 mv "conftest.tmp" "conftest.in"
4141 cp "conftest.in" "conftest.nl"
4142 $as_echo 'GREP' >> "conftest.nl"
4143 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4144 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4145 as_fn_arith $ac_count + 1 && ac_count=$as_val
4146 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4147 # Best one so far, save it but keep looking for a better one
4148 ac_cv_path_GREP="$ac_path_GREP"
4149 ac_path_GREP_max=$ac_count
4151 # 10*(2^10) chars as input seems more than enough
4152 test $ac_count -gt 10 && break
4154 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4157 $ac_path_GREP_found && break 3
4162 if test -z "$ac_cv_path_GREP"; then
4163 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4166 ac_cv_path_GREP=$GREP
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4171 $as_echo "$ac_cv_path_GREP" >&6; }
4172 GREP="$ac_cv_path_GREP"
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4176 $as_echo_n "checking for egrep... " >&6; }
4177 if ${ac_cv_path_EGREP+:} false; then :
4178 $as_echo_n "(cached) " >&6
4180 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4181 then ac_cv_path_EGREP="$GREP -E"
4183 if test -z "$EGREP"; then
4184 ac_path_EGREP_found=false
4185 # Loop through the user's path and test for each of PROGNAME-LIST
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4190 test -z "$as_dir" && as_dir=.
4191 for ac_prog in egrep; do
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4194 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4195 # Check for GNU ac_path_EGREP and select it if it is found.
4196 # Check for GNU $ac_path_EGREP
4197 case `"$ac_path_EGREP" --version 2>&1` in
4199 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4202 $as_echo_n 0123456789 >"conftest.in"
4205 cat "conftest.in" "conftest.in" >"conftest.tmp"
4206 mv "conftest.tmp" "conftest.in"
4207 cp "conftest.in" "conftest.nl"
4208 $as_echo 'EGREP' >> "conftest.nl"
4209 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4211 as_fn_arith $ac_count + 1 && ac_count=$as_val
4212 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4213 # Best one so far, save it but keep looking for a better one
4214 ac_cv_path_EGREP="$ac_path_EGREP"
4215 ac_path_EGREP_max=$ac_count
4217 # 10*(2^10) chars as input seems more than enough
4218 test $ac_count -gt 10 && break
4220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4223 $ac_path_EGREP_found && break 3
4228 if test -z "$ac_cv_path_EGREP"; then
4229 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4232 ac_cv_path_EGREP=$EGREP
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4238 $as_echo "$ac_cv_path_EGREP" >&6; }
4239 EGREP="$ac_cv_path_EGREP"
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4243 $as_echo_n "checking for ANSI C header files... " >&6; }
4244 if ${ac_cv_header_stdc+:} false; then :
4245 $as_echo_n "(cached) " >&6
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4262 if ac_fn_c_try_compile "$LINENO"; then :
4263 ac_cv_header_stdc=yes
4265 ac_cv_header_stdc=no
4267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269 if test $ac_cv_header_stdc = yes; then
4270 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4277 $EGREP "memchr" >/dev/null 2>&1; then :
4280 ac_cv_header_stdc=no
4286 if test $ac_cv_header_stdc = yes; then
4287 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4294 $EGREP "free" >/dev/null 2>&1; then :
4297 ac_cv_header_stdc=no
4303 if test $ac_cv_header_stdc = yes; then
4304 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4305 if test "$cross_compiling" = yes; then :
4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h. */
4312 #if ((' ' & 0x0FF) == 0x020)
4313 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4314 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4316 # define ISLOWER(c) \
4317 (('a' <= (c) && (c) <= 'i') \
4318 || ('j' <= (c) && (c) <= 'r') \
4319 || ('s' <= (c) && (c) <= 'z'))
4320 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4323 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4328 for (i = 0; i < 256; i++)
4329 if (XOR (islower (i), ISLOWER (i))
4330 || toupper (i) != TOUPPER (i))
4335 if ac_fn_c_try_run "$LINENO"; then :
4338 ac_cv_header_stdc=no
4340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4341 conftest.$ac_objext conftest.beam conftest.$ac_ext
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4347 $as_echo "$ac_cv_header_stdc" >&6; }
4348 if test $ac_cv_header_stdc = yes; then
4350 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4354 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4355 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4356 inttypes.h stdint.h unistd.h
4358 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4359 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4361 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4362 cat >>confdefs.h <<_ACEOF
4363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4374 for ac_header in $ac_header_list
4376 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4377 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4379 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4380 cat >>confdefs.h <<_ACEOF
4381 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4395 for ac_func in getpagesize
4397 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4398 if test "x$ac_cv_func_getpagesize" = xyes; then :
4399 cat >>confdefs.h <<_ACEOF
4400 #define HAVE_GETPAGESIZE 1
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4407 $as_echo_n "checking for working mmap... " >&6; }
4408 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
4409 $as_echo_n "(cached) " >&6
4411 if test "$cross_compiling" = yes; then :
4412 ac_cv_func_mmap_fixed_mapped=no
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h. */
4416 $ac_includes_default
4417 /* malloc might have been renamed as rpl_malloc. */
4420 /* Thanks to Mike Haertel and Jim Avera for this test.
4421 Here is a matrix of mmap possibilities:
4422 mmap private not fixed
4423 mmap private fixed at somewhere currently unmapped
4424 mmap private fixed at somewhere already mapped
4425 mmap shared not fixed
4426 mmap shared fixed at somewhere currently unmapped
4427 mmap shared fixed at somewhere already mapped
4428 For private mappings, we should verify that changes cannot be read()
4429 back from the file, nor mmap's back from the file at a different
4430 address. (There have been systems where private was not correctly
4431 implemented like the infamous i386 svr4.0, and systems where the
4432 VM page cache was not coherent with the file system buffer cache
4433 like early versions of FreeBSD and possibly contemporary NetBSD.)
4434 For shared mappings, we should conversely verify that changes get
4435 propagated back to all the places they're supposed to be.
4437 Grep wants private fixed already mapped.
4438 The main things grep needs to know about mmap are:
4439 * does it exist and is it safe to write into the mmap'd area
4440 * how to use it (BSD variants) */
4443 #include <sys/mman.h>
4445 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4449 /* This mess was copied from the GNU getpagesize.h. */
4450 #ifndef HAVE_GETPAGESIZE
4451 # ifdef _SC_PAGESIZE
4452 # define getpagesize() sysconf(_SC_PAGESIZE)
4453 # else /* no _SC_PAGESIZE */
4454 # ifdef HAVE_SYS_PARAM_H
4455 # include <sys/param.h>
4456 # ifdef EXEC_PAGESIZE
4457 # define getpagesize() EXEC_PAGESIZE
4458 # else /* no EXEC_PAGESIZE */
4460 # define getpagesize() NBPG * CLSIZE
4463 # endif /* no CLSIZE */
4464 # else /* no NBPG */
4466 # define getpagesize() NBPC
4467 # else /* no NBPC */
4469 # define getpagesize() PAGESIZE
4470 # endif /* PAGESIZE */
4471 # endif /* no NBPC */
4472 # endif /* no NBPG */
4473 # endif /* no EXEC_PAGESIZE */
4474 # else /* no HAVE_SYS_PARAM_H */
4475 # define getpagesize() 8192 /* punt totally */
4476 # endif /* no HAVE_SYS_PARAM_H */
4477 # endif /* no _SC_PAGESIZE */
4479 #endif /* no HAVE_GETPAGESIZE */
4484 char *data, *data2, *data3;
4489 pagesize = getpagesize ();
4491 /* First, make a file with some known garbage in it. */
4492 data = (char *) malloc (pagesize);
4495 for (i = 0; i < pagesize; ++i)
4496 *(data + i) = rand ();
4498 fd = creat ("conftest.mmap", 0600);
4501 if (write (fd, data, pagesize) != pagesize)
4505 /* Next, check that the tail of a page is zero-filled. File must have
4506 non-zero length, otherwise we risk SIGBUS for entire page. */
4507 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4511 if (write (fd2, cdata2, 1) != 1)
4513 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4514 if (data2 == MAP_FAILED)
4516 for (i = 0; i < pagesize; ++i)
4520 if (munmap (data2, pagesize))
4523 /* Next, try to mmap the file at a fixed address which already has
4524 something else allocated at it. If we can, also make sure that
4525 we see the same garbage. */
4526 fd = open ("conftest.mmap", O_RDWR);
4529 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4530 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4532 for (i = 0; i < pagesize; ++i)
4533 if (*(data + i) != *(data2 + i))
4536 /* Finally, make sure that changes to the mapped area do not
4537 percolate back to the file as seen by read(). (This is a bug on
4538 some variants of i386 svr4.0.) */
4539 for (i = 0; i < pagesize; ++i)
4540 *(data2 + i) = *(data2 + i) + 1;
4541 data3 = (char *) malloc (pagesize);
4544 if (read (fd, data3, pagesize) != pagesize)
4546 for (i = 0; i < pagesize; ++i)
4547 if (*(data + i) != *(data3 + i))
4553 if ac_fn_c_try_run "$LINENO"; then :
4554 ac_cv_func_mmap_fixed_mapped=yes
4556 ac_cv_func_mmap_fixed_mapped=no
4558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4559 conftest.$ac_objext conftest.beam conftest.$ac_ext
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4564 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4565 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4567 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4570 rm -f conftest.mmap conftest.txt
4572 # Check whether --enable-largefile was given.
4573 if test "${enable_largefile+set}" = set; then :
4574 enableval=$enable_largefile;
4577 if test "$enable_largefile" != no; then
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4580 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4581 if ${ac_cv_sys_largefile_CC+:} false; then :
4582 $as_echo_n "(cached) " >&6
4584 ac_cv_sys_largefile_CC=no
4585 if test "$GCC" != yes; then
4588 # IRIX 6.2 and later do not support large files by default,
4589 # so use the C compiler's -n32 option if that helps.
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4592 #include <sys/types.h>
4593 /* Check that off_t can represent 2**63 - 1 correctly.
4594 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4595 since some C++ compilers masquerading as C compilers
4596 incorrectly reject 9223372036854775807. */
4597 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4598 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4599 && LARGE_OFF_T % 2147483647 == 1)
4609 if ac_fn_c_try_compile "$LINENO"; then :
4612 rm -f core conftest.err conftest.$ac_objext
4614 if ac_fn_c_try_compile "$LINENO"; then :
4615 ac_cv_sys_largefile_CC=' -n32'; break
4617 rm -f core conftest.err conftest.$ac_objext
4621 rm -f conftest.$ac_ext
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4625 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4626 if test "$ac_cv_sys_largefile_CC" != no; then
4627 CC=$CC$ac_cv_sys_largefile_CC
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4631 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4632 if ${ac_cv_sys_file_offset_bits+:} false; then :
4633 $as_echo_n "(cached) " >&6
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4638 #include <sys/types.h>
4639 /* Check that off_t can represent 2**63 - 1 correctly.
4640 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4641 since some C++ compilers masquerading as C compilers
4642 incorrectly reject 9223372036854775807. */
4643 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4644 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4645 && LARGE_OFF_T % 2147483647 == 1)
4655 if ac_fn_c_try_compile "$LINENO"; then :
4656 ac_cv_sys_file_offset_bits=no; break
4658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4661 #define _FILE_OFFSET_BITS 64
4662 #include <sys/types.h>
4663 /* Check that off_t can represent 2**63 - 1 correctly.
4664 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4665 since some C++ compilers masquerading as C compilers
4666 incorrectly reject 9223372036854775807. */
4667 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4668 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4669 && LARGE_OFF_T % 2147483647 == 1)
4679 if ac_fn_c_try_compile "$LINENO"; then :
4680 ac_cv_sys_file_offset_bits=64; break
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683 ac_cv_sys_file_offset_bits=unknown
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4688 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4689 case $ac_cv_sys_file_offset_bits in #(
4692 cat >>confdefs.h <<_ACEOF
4693 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4698 if test $ac_cv_sys_file_offset_bits = unknown; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4700 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4701 if ${ac_cv_sys_large_files+:} false; then :
4702 $as_echo_n "(cached) " >&6
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4707 #include <sys/types.h>
4708 /* Check that off_t can represent 2**63 - 1 correctly.
4709 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4710 since some C++ compilers masquerading as C compilers
4711 incorrectly reject 9223372036854775807. */
4712 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4713 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4714 && LARGE_OFF_T % 2147483647 == 1)
4724 if ac_fn_c_try_compile "$LINENO"; then :
4725 ac_cv_sys_large_files=no; break
4727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730 #define _LARGE_FILES 1
4731 #include <sys/types.h>
4732 /* Check that off_t can represent 2**63 - 1 correctly.
4733 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4734 since some C++ compilers masquerading as C compilers
4735 incorrectly reject 9223372036854775807. */
4736 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4737 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4738 && LARGE_OFF_T % 2147483647 == 1)
4748 if ac_fn_c_try_compile "$LINENO"; then :
4749 ac_cv_sys_large_files=1; break
4751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752 ac_cv_sys_large_files=unknown
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4757 $as_echo "$ac_cv_sys_large_files" >&6; }
4758 case $ac_cv_sys_large_files in #(
4761 cat >>confdefs.h <<_ACEOF
4762 #define _LARGE_FILES $ac_cv_sys_large_files
4771 # Initialize libtool
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4776 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4781 macro_version='2.4.2'
4782 macro_revision='1.3337'
4796 ltmain="$ac_aux_dir/ltmain.sh"
4798 # Backslashify metacharacters that are still active within
4799 # double-quoted strings.
4800 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4802 # Same as above, but do not quote variable references.
4803 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4805 # Sed substitution to delay expansion of an escaped shell variable in a
4806 # double_quote_subst'ed string.
4807 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4809 # Sed substitution to delay expansion of an escaped single quote.
4810 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4812 # Sed substitution to avoid accidental globbing in evaled expressions
4813 no_glob_subst='s/\*/\\\*/g'
4815 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4816 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4817 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4820 $as_echo_n "checking how to print strings... " >&6; }
4821 # Test print first, because it will be a builtin if present.
4822 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4823 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4825 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4828 # Use this function as a fallback that always works.
4829 func_fallback_echo ()
4831 eval 'cat <<_LTECHO_EOF
4835 ECHO='func_fallback_echo'
4838 # func_echo_all arg...
4839 # Invoke $ECHO with all args, space-separated.
4846 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4847 $as_echo "printf" >&6; } ;;
4848 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4849 $as_echo "print -r" >&6; } ;;
4850 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4851 $as_echo "cat" >&6; } ;;
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4868 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4869 if ${ac_cv_path_SED+:} false; then :
4870 $as_echo_n "(cached) " >&6
4872 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4873 for ac_i in 1 2 3 4 5 6 7; do
4874 ac_script="$ac_script$as_nl$ac_script"
4876 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4877 { ac_script=; unset ac_script;}
4878 if test -z "$SED"; then
4879 ac_path_SED_found=false
4880 # Loop through the user's path and test for each of PROGNAME-LIST
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 test -z "$as_dir" && as_dir=.
4886 for ac_prog in sed gsed; do
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4889 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4890 # Check for GNU ac_path_SED and select it if it is found.
4891 # Check for GNU $ac_path_SED
4892 case `"$ac_path_SED" --version 2>&1` in
4894 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4897 $as_echo_n 0123456789 >"conftest.in"
4900 cat "conftest.in" "conftest.in" >"conftest.tmp"
4901 mv "conftest.tmp" "conftest.in"
4902 cp "conftest.in" "conftest.nl"
4903 $as_echo '' >> "conftest.nl"
4904 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4905 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4906 as_fn_arith $ac_count + 1 && ac_count=$as_val
4907 if test $ac_count -gt ${ac_path_SED_max-0}; then
4908 # Best one so far, save it but keep looking for a better one
4909 ac_cv_path_SED="$ac_path_SED"
4910 ac_path_SED_max=$ac_count
4912 # 10*(2^10) chars as input seems more than enough
4913 test $ac_count -gt 10 && break
4915 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4918 $ac_path_SED_found && break 3
4923 if test -z "$ac_cv_path_SED"; then
4924 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4932 $as_echo "$ac_cv_path_SED" >&6; }
4933 SED="$ac_cv_path_SED"
4936 test -z "$SED" && SED=sed
4937 Xsed="$SED -e 1s/^X//"
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4950 $as_echo_n "checking for fgrep... " >&6; }
4951 if ${ac_cv_path_FGREP+:} false; then :
4952 $as_echo_n "(cached) " >&6
4954 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4955 then ac_cv_path_FGREP="$GREP -F"
4957 if test -z "$FGREP"; then
4958 ac_path_FGREP_found=false
4959 # Loop through the user's path and test for each of PROGNAME-LIST
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4964 test -z "$as_dir" && as_dir=.
4965 for ac_prog in fgrep; do
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4968 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4969 # Check for GNU ac_path_FGREP and select it if it is found.
4970 # Check for GNU $ac_path_FGREP
4971 case `"$ac_path_FGREP" --version 2>&1` in
4973 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4976 $as_echo_n 0123456789 >"conftest.in"
4979 cat "conftest.in" "conftest.in" >"conftest.tmp"
4980 mv "conftest.tmp" "conftest.in"
4981 cp "conftest.in" "conftest.nl"
4982 $as_echo 'FGREP' >> "conftest.nl"
4983 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4985 as_fn_arith $ac_count + 1 && ac_count=$as_val
4986 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4987 # Best one so far, save it but keep looking for a better one
4988 ac_cv_path_FGREP="$ac_path_FGREP"
4989 ac_path_FGREP_max=$ac_count
4991 # 10*(2^10) chars as input seems more than enough
4992 test $ac_count -gt 10 && break
4994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4997 $ac_path_FGREP_found && break 3
5002 if test -z "$ac_cv_path_FGREP"; then
5003 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5006 ac_cv_path_FGREP=$FGREP
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5012 $as_echo "$ac_cv_path_FGREP" >&6; }
5013 FGREP="$ac_cv_path_FGREP"
5016 test -z "$GREP" && GREP=grep
5036 # Check whether --with-gnu-ld was given.
5037 if test "${with_gnu_ld+set}" = set; then :
5038 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5044 if test "$GCC" = yes; then
5045 # Check if gcc -print-prog-name=ld gives a path.
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5047 $as_echo_n "checking for ld used by $CC... " >&6; }
5050 # gcc leaves a trailing carriage return which upsets mingw
5051 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5053 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5056 # Accept absolute paths.
5058 re_direlt='/[^/][^/]*/\.\./'
5059 # Canonicalize the pathname of ld
5060 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5061 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5062 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5064 test -z "$LD" && LD="$ac_prog"
5067 # If it fails, then pretend we aren't using GCC.
5071 # If it is relative, then search for the first ld in PATH.
5075 elif test "$with_gnu_ld" = yes; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5077 $as_echo_n "checking for GNU ld... " >&6; }
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5080 $as_echo_n "checking for non-GNU ld... " >&6; }
5082 if ${lt_cv_path_LD+:} false; then :
5083 $as_echo_n "(cached) " >&6
5085 if test -z "$LD"; then
5086 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5087 for ac_dir in $PATH; do
5089 test -z "$ac_dir" && ac_dir=.
5090 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5091 lt_cv_path_LD="$ac_dir/$ac_prog"
5092 # Check to see if the program is GNU ld. I'd rather use --version,
5093 # but apparently some variants of GNU ld only accept -v.
5094 # Break only if it was the GNU/non-GNU ld that we prefer.
5095 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5096 *GNU* | *'with BFD'*)
5097 test "$with_gnu_ld" != no && break
5100 test "$with_gnu_ld" != yes && break
5107 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5112 if test -n "$LD"; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5114 $as_echo "$LD" >&6; }
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5119 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5121 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5122 if ${lt_cv_prog_gnu_ld+:} false; then :
5123 $as_echo_n "(cached) " >&6
5125 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5126 case `$LD -v 2>&1 </dev/null` in
5127 *GNU* | *'with BFD'*)
5128 lt_cv_prog_gnu_ld=yes
5131 lt_cv_prog_gnu_ld=no
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5136 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5137 with_gnu_ld=$lt_cv_prog_gnu_ld
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5148 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5149 if ${lt_cv_path_NM+:} false; then :
5150 $as_echo_n "(cached) " >&6
5152 if test -n "$NM"; then
5153 # Let the user override the test.
5156 lt_nm_to_check="${ac_tool_prefix}nm"
5157 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5158 lt_nm_to_check="$lt_nm_to_check nm"
5160 for lt_tmp_nm in $lt_nm_to_check; do
5161 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5162 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5164 test -z "$ac_dir" && ac_dir=.
5165 tmp_nm="$ac_dir/$lt_tmp_nm"
5166 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5167 # Check to see if the nm accepts a BSD-compat flag.
5168 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5169 # nm: unknown option "B" ignored
5170 # Tru64's nm complains that /dev/null is an invalid object file
5171 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5172 */dev/null* | *'Invalid file or object type'*)
5173 lt_cv_path_NM="$tmp_nm -B"
5177 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5179 lt_cv_path_NM="$tmp_nm -p"
5183 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5184 continue # so that we can try to find one that supports BSD flags
5193 : ${lt_cv_path_NM=no}
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5197 $as_echo "$lt_cv_path_NM" >&6; }
5198 if test "$lt_cv_path_NM" != "no"; then
5201 # Didn't find any BSD compatible name lister, look for dumpbin.
5202 if test -n "$DUMPBIN"; then :
5203 # Let the user override the test.
5205 if test -n "$ac_tool_prefix"; then
5206 for ac_prog in dumpbin "link -dump"
5208 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5209 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if ${ac_cv_prog_DUMPBIN+:} false; then :
5213 $as_echo_n "(cached) " >&6
5215 if test -n "$DUMPBIN"; then
5216 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 DUMPBIN=$ac_cv_prog_DUMPBIN
5236 if test -n "$DUMPBIN"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5238 $as_echo "$DUMPBIN" >&6; }
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5245 test -n "$DUMPBIN" && break
5248 if test -z "$DUMPBIN"; then
5249 ac_ct_DUMPBIN=$DUMPBIN
5250 for ac_prog in dumpbin "link -dump"
5252 # Extract the first word of "$ac_prog", so it can be a program name with args.
5253 set dummy $ac_prog; ac_word=$2
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255 $as_echo_n "checking for $ac_word... " >&6; }
5256 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5257 $as_echo_n "(cached) " >&6
5259 if test -n "$ac_ct_DUMPBIN"; then
5260 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5269 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5280 if test -n "$ac_ct_DUMPBIN"; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5282 $as_echo "$ac_ct_DUMPBIN" >&6; }
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5289 test -n "$ac_ct_DUMPBIN" && break
5292 if test "x$ac_ct_DUMPBIN" = x; then
5295 case $cross_compiling:$ac_tool_warned in
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5299 ac_tool_warned=yes ;;
5301 DUMPBIN=$ac_ct_DUMPBIN
5305 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5307 DUMPBIN="$DUMPBIN -symbols"
5315 if test "$DUMPBIN" != ":"; then
5319 test -z "$NM" && NM=nm
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5327 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5328 if ${lt_cv_nm_interface+:} false; then :
5329 $as_echo_n "(cached) " >&6
5331 lt_cv_nm_interface="BSD nm"
5332 echo "int some_variable = 0;" > conftest.$ac_ext
5333 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5334 (eval "$ac_compile" 2>conftest.err)
5335 cat conftest.err >&5
5336 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5337 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5338 cat conftest.err >&5
5339 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5340 cat conftest.out >&5
5341 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5342 lt_cv_nm_interface="MS dumpbin"
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5347 $as_echo "$lt_cv_nm_interface" >&6; }
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5350 $as_echo_n "checking whether ln -s works... " >&6; }
5352 if test "$LN_S" = "ln -s"; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5354 $as_echo "yes" >&6; }
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5357 $as_echo "no, using $LN_S" >&6; }
5360 # find the maximum length of command line arguments
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5362 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5363 if ${lt_cv_sys_max_cmd_len+:} false; then :
5364 $as_echo_n "(cached) " >&6
5371 # On DJGPP, this test can blow up pretty badly due to problems in libc
5372 # (any single argument exceeding 2000 bytes causes a buffer overrun
5373 # during glob expansion). Even if it were fixed, the result of this
5374 # check would be larger than it should be.
5375 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5379 # Under GNU Hurd, this test is not required because there is
5380 # no limit to the length of command line arguments.
5381 # Libtool will interpret -1 as no limit whatsoever
5382 lt_cv_sys_max_cmd_len=-1;
5385 cygwin* | mingw* | cegcc*)
5386 # On Win9x/ME, this test blows up -- it succeeds, but takes
5387 # about 5 minutes as the teststring grows exponentially.
5388 # Worse, since 9x/ME are not pre-emptively multitasking,
5389 # you end up with a "frozen" computer, even though with patience
5390 # the test eventually succeeds (with a max line length of 256k).
5391 # Instead, let's just punt: use the minimum linelength reported by
5392 # all of the supported platforms: 8192 (on NT/2K/XP).
5393 lt_cv_sys_max_cmd_len=8192;
5397 # On MiNT this can take a long time and run out of memory.
5398 lt_cv_sys_max_cmd_len=8192;
5402 # On AmigaOS with pdksh, this test takes hours, literally.
5403 # So we just punt and use a minimum line length of 8192.
5404 lt_cv_sys_max_cmd_len=8192;
5407 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5408 # This has been around since 386BSD, at least. Likely further.
5409 if test -x /sbin/sysctl; then
5410 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5411 elif test -x /usr/sbin/sysctl; then
5412 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5414 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5416 # And add a safety zone
5417 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5418 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5422 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5423 lt_cv_sys_max_cmd_len=196608
5427 # The test takes a long time on OS/2.
5428 lt_cv_sys_max_cmd_len=8192
5432 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5433 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5434 # nice to cause kernel panics so lets avoid the loop below.
5435 # First set a reasonable default.
5436 lt_cv_sys_max_cmd_len=16384
5438 if test -x /sbin/sysconfig; then
5439 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5440 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5445 lt_cv_sys_max_cmd_len=102400
5447 sysv5* | sco5v6* | sysv4.2uw2*)
5448 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5449 if test -n "$kargmax"; then
5450 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5452 lt_cv_sys_max_cmd_len=32768
5456 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5457 if test -n "$lt_cv_sys_max_cmd_len"; then
5458 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5459 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5461 # Make teststring a little bigger before we do anything with it.
5462 # a 1K string should be a reasonable start.
5463 for i in 1 2 3 4 5 6 7 8 ; do
5464 teststring=$teststring$teststring
5466 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5467 # If test is not a shell built-in, we'll probably end up computing a
5468 # maximum length that is only half of the actual maximum length, but
5470 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5471 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5472 test $i != 17 # 1/2 MB should be enough
5475 teststring=$teststring$teststring
5477 # Only check the string length outside the loop.
5478 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5480 # Add a significant safety factor because C++ compilers can tack on
5481 # massive amounts of additional arguments before passing them to the
5482 # linker. It appears as though 1/2 is a usable value.
5483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5490 if test -n $lt_cv_sys_max_cmd_len ; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5492 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5495 $as_echo "none" >&6; }
5497 max_cmd_len=$lt_cv_sys_max_cmd_len
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5509 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5510 # Try some XSI features
5513 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5515 && eval 'test $(( 1 + 1 )) -eq 2 \
5516 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5519 $as_echo "$xsi_shell" >&6; }
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5523 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5525 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5527 && lt_shell_append=yes
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5529 $as_echo "$lt_shell_append" >&6; }
5532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5542 # test EBCDIC or ASCII
5543 case `echo X|tr X '\101'` in
5544 A) # ASCII based system
5545 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5546 lt_SP2NL='tr \040 \012'
5547 lt_NL2SP='tr \015\012 \040\040'
5549 *) # EBCDIC based system
5550 lt_SP2NL='tr \100 \n'
5551 lt_NL2SP='tr \r\n \100\100'
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5564 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5565 if ${lt_cv_to_host_file_cmd+:} false; then :
5566 $as_echo_n "(cached) " >&6
5571 *-*-mingw* ) # actually msys
5572 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5575 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5577 * ) # otherwise, assume *nix
5578 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5584 *-*-mingw* ) # actually msys
5585 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5588 lt_cv_to_host_file_cmd=func_convert_file_noop
5590 * ) # otherwise, assume *nix
5591 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5595 * ) # unhandled hosts (and "normal" native builds)
5596 lt_cv_to_host_file_cmd=func_convert_file_noop
5602 to_host_file_cmd=$lt_cv_to_host_file_cmd
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5604 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5611 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5612 if ${lt_cv_to_tool_file_cmd+:} false; then :
5613 $as_echo_n "(cached) " >&6
5615 #assume ordinary cross tools, or native build.
5616 lt_cv_to_tool_file_cmd=func_convert_file_noop
5620 *-*-mingw* ) # actually msys
5621 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5629 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5631 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5638 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5639 if ${lt_cv_ld_reload_flag+:} false; then :
5640 $as_echo_n "(cached) " >&6
5642 lt_cv_ld_reload_flag='-r'
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5645 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5646 reload_flag=$lt_cv_ld_reload_flag
5647 case $reload_flag in
5649 *) reload_flag=" $reload_flag" ;;
5651 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5653 cygwin* | mingw* | pw32* | cegcc*)
5654 if test "$GCC" != yes; then
5659 if test "$GCC" = yes; then
5660 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5662 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5675 if test -n "$ac_tool_prefix"; then
5676 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5677 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 $as_echo_n "checking for $ac_word... " >&6; }
5680 if ${ac_cv_prog_OBJDUMP+:} false; then :
5681 $as_echo_n "(cached) " >&6
5683 if test -n "$OBJDUMP"; then
5684 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 OBJDUMP=$ac_cv_prog_OBJDUMP
5704 if test -n "$OBJDUMP"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5706 $as_echo "$OBJDUMP" >&6; }
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5714 if test -z "$ac_cv_prog_OBJDUMP"; then
5715 ac_ct_OBJDUMP=$OBJDUMP
5716 # Extract the first word of "objdump", so it can be a program name with args.
5717 set dummy objdump; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5721 $as_echo_n "(cached) " >&6
5723 if test -n "$ac_ct_OBJDUMP"; then
5724 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5733 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5744 if test -n "$ac_ct_OBJDUMP"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5746 $as_echo "$ac_ct_OBJDUMP" >&6; }
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5752 if test "x$ac_ct_OBJDUMP" = x; then
5755 case $cross_compiling:$ac_tool_warned in
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5759 ac_tool_warned=yes ;;
5761 OBJDUMP=$ac_ct_OBJDUMP
5764 OBJDUMP="$ac_cv_prog_OBJDUMP"
5767 test -z "$OBJDUMP" && OBJDUMP=objdump
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5778 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5779 if ${lt_cv_deplibs_check_method+:} false; then :
5780 $as_echo_n "(cached) " >&6
5782 lt_cv_file_magic_cmd='$MAGIC_CMD'
5783 lt_cv_file_magic_test_file=
5784 lt_cv_deplibs_check_method='unknown'
5785 # Need to set the preceding variable on all platforms that support
5786 # interlibrary dependencies.
5787 # 'none' -- dependencies not supported.
5788 # `unknown' -- same as none, but documents that we really don't know.
5789 # 'pass_all' -- all dependencies passed with no checks.
5790 # 'test_compile' -- check by making test program.
5791 # 'file_magic [[regex]]' -- check by looking for files in library path
5792 # which responds to the $file_magic_cmd with a given extended regex.
5793 # If you have `file' or equivalent on your system and you're not sure
5794 # whether `pass_all' will *always* work, you probably want this one.
5798 lt_cv_deplibs_check_method=pass_all
5802 lt_cv_deplibs_check_method=pass_all
5806 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5807 lt_cv_file_magic_cmd='/usr/bin/file -L'
5808 lt_cv_file_magic_test_file=/shlib/libc.so
5812 # func_win32_libid is a shell function defined in ltmain.sh
5813 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5814 lt_cv_file_magic_cmd='func_win32_libid'
5818 # Base MSYS/MinGW do not provide the 'file' command needed by
5819 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5820 # unless we find 'file', for example because we are cross-compiling.
5821 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5822 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5823 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5824 lt_cv_file_magic_cmd='func_win32_libid'
5826 # Keep this pattern in sync with the one in func_win32_libid.
5827 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5828 lt_cv_file_magic_cmd='$OBJDUMP -f'
5833 # use the weaker test based on 'objdump'. See mingw*.
5834 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5835 lt_cv_file_magic_cmd='$OBJDUMP -f'
5838 darwin* | rhapsody*)
5839 lt_cv_deplibs_check_method=pass_all
5842 freebsd* | dragonfly*)
5843 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5846 # Not sure whether the presence of OpenBSD here was a mistake.
5847 # Let's accept both of them until this is cleared up.
5848 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5849 lt_cv_file_magic_cmd=/usr/bin/file
5850 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5854 lt_cv_deplibs_check_method=pass_all
5859 lt_cv_deplibs_check_method=pass_all
5863 lt_cv_deplibs_check_method=pass_all
5866 hpux10.20* | hpux11*)
5867 lt_cv_file_magic_cmd=/usr/bin/file
5870 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5871 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5874 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5875 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5878 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5879 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5885 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5886 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5889 irix5* | irix6* | nonstopux*)
5891 *-32|*"-32 ") libmagic=32-bit;;
5892 *-n32|*"-n32 ") libmagic=N32;;
5893 *-64|*"-64 ") libmagic=64-bit;;
5894 *) libmagic=never-match;;
5896 lt_cv_deplibs_check_method=pass_all
5899 # This must be glibc/ELF.
5900 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5901 lt_cv_deplibs_check_method=pass_all
5904 netbsd* | netbsdelf*-gnu)
5905 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5906 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5914 lt_cv_file_magic_cmd=/usr/bin/file
5915 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5919 lt_cv_deplibs_check_method=pass_all
5923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5930 osf3* | osf4* | osf5*)
5931 lt_cv_deplibs_check_method=pass_all
5935 lt_cv_deplibs_check_method=pass_all
5939 lt_cv_deplibs_check_method=pass_all
5942 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5943 lt_cv_deplibs_check_method=pass_all
5947 case $host_vendor in
5949 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]'
5950 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5953 lt_cv_deplibs_check_method=pass_all
5956 lt_cv_file_magic_cmd='/bin/file'
5957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5960 lt_cv_file_magic_cmd='/bin/file'
5961 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5962 lt_cv_file_magic_test_file=/lib/libc.so
5965 lt_cv_deplibs_check_method=pass_all
5968 lt_cv_deplibs_check_method=pass_all
5974 lt_cv_deplibs_check_method=pass_all
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5980 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5984 if test "$build" = "$host"; then
5987 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5990 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5996 file_magic_cmd=$lt_cv_file_magic_cmd
5997 deplibs_check_method=$lt_cv_deplibs_check_method
5998 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6021 if test -n "$ac_tool_prefix"; then
6022 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6023 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6025 $as_echo_n "checking for $ac_word... " >&6; }
6026 if ${ac_cv_prog_DLLTOOL+:} false; then :
6027 $as_echo_n "(cached) " >&6
6029 if test -n "$DLLTOOL"; then
6030 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 test -z "$as_dir" && as_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6039 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6049 DLLTOOL=$ac_cv_prog_DLLTOOL
6050 if test -n "$DLLTOOL"; then
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6052 $as_echo "$DLLTOOL" >&6; }
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055 $as_echo "no" >&6; }
6060 if test -z "$ac_cv_prog_DLLTOOL"; then
6061 ac_ct_DLLTOOL=$DLLTOOL
6062 # Extract the first word of "dlltool", so it can be a program name with args.
6063 set dummy dlltool; ac_word=$2
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065 $as_echo_n "checking for $ac_word... " >&6; }
6066 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6067 $as_echo_n "(cached) " >&6
6069 if test -n "$ac_ct_DLLTOOL"; then
6070 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 test -z "$as_dir" && as_dir=.
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6079 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6089 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6090 if test -n "$ac_ct_DLLTOOL"; then
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6092 $as_echo "$ac_ct_DLLTOOL" >&6; }
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }
6098 if test "x$ac_ct_DLLTOOL" = x; then
6101 case $cross_compiling:$ac_tool_warned in
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6105 ac_tool_warned=yes ;;
6107 DLLTOOL=$ac_ct_DLLTOOL
6110 DLLTOOL="$ac_cv_prog_DLLTOOL"
6113 test -z "$DLLTOOL" && DLLTOOL=dlltool
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6125 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6126 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6127 $as_echo_n "(cached) " >&6
6129 lt_cv_sharedlib_from_linklib_cmd='unknown'
6132 cygwin* | mingw* | pw32* | cegcc*)
6133 # two different shell functions defined in ltmain.sh
6134 # decide which to use based on capabilities of $DLLTOOL
6135 case `$DLLTOOL --help 2>&1` in
6136 *--identify-strict*)
6137 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6140 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6145 # fallback: assume linklib IS sharedlib
6146 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6152 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6153 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6154 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6162 if test -n "$ac_tool_prefix"; then
6165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168 $as_echo_n "checking for $ac_word... " >&6; }
6169 if ${ac_cv_prog_AR+:} false; then :
6170 $as_echo_n "(cached) " >&6
6172 if test -n "$AR"; then
6173 ac_cv_prog_AR="$AR" # Let the user override the test.
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 test -z "$as_dir" && as_dir=.
6180 for ac_exec_ext in '' $ac_executable_extensions; do
6181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6182 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 if test -n "$AR"; then
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6195 $as_echo "$AR" >&6; }
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6202 test -n "$AR" && break
6205 if test -z "$AR"; then
6209 # Extract the first word of "$ac_prog", so it can be a program name with args.
6210 set dummy $ac_prog; 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 ${ac_cv_prog_ac_ct_AR+:} false; then :
6214 $as_echo_n "(cached) " >&6
6216 if test -n "$ac_ct_AR"; then
6217 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_AR="$ac_prog"
6227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6237 if test -n "$ac_ct_AR"; then
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6239 $as_echo "$ac_ct_AR" >&6; }
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242 $as_echo "no" >&6; }
6246 test -n "$ac_ct_AR" && break
6249 if test "x$ac_ct_AR" = x; then
6252 case $cross_compiling:$ac_tool_warned in
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6256 ac_tool_warned=yes ;;
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6276 $as_echo_n "checking for archiver @FILE support... " >&6; }
6277 if ${lt_cv_ar_at_file+:} false; then :
6278 $as_echo_n "(cached) " >&6
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6292 if ac_fn_c_try_compile "$LINENO"; then :
6293 echo conftest.$ac_objext > conftest.lst
6294 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6296 (eval $lt_ar_try) 2>&5
6298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6299 test $ac_status = 0; }
6300 if test "$ac_status" -eq 0; then
6301 # Ensure the archiver fails upon bogus file names.
6302 rm -f conftest.$ac_objext libconftest.a
6303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6304 (eval $lt_ar_try) 2>&5
6306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6307 test $ac_status = 0; }
6308 if test "$ac_status" -ne 0; then
6312 rm -f conftest.* libconftest.a
6315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6319 $as_echo "$lt_cv_ar_at_file" >&6; }
6321 if test "x$lt_cv_ar_at_file" = xno; then
6324 archiver_list_spec=$lt_cv_ar_at_file
6333 if test -n "$ac_tool_prefix"; then
6334 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6335 set dummy ${ac_tool_prefix}strip; ac_word=$2
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337 $as_echo_n "checking for $ac_word... " >&6; }
6338 if ${ac_cv_prog_STRIP+:} false; then :
6339 $as_echo_n "(cached) " >&6
6341 if test -n "$STRIP"; then
6342 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6351 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6361 STRIP=$ac_cv_prog_STRIP
6362 if test -n "$STRIP"; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6364 $as_echo "$STRIP" >&6; }
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6372 if test -z "$ac_cv_prog_STRIP"; then
6374 # Extract the first word of "strip", so it can be a program name with args.
6375 set dummy strip; ac_word=$2
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6377 $as_echo_n "checking for $ac_word... " >&6; }
6378 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6379 $as_echo_n "(cached) " >&6
6381 if test -n "$ac_ct_STRIP"; then
6382 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 test -z "$as_dir" && as_dir=.
6389 for ac_exec_ext in '' $ac_executable_extensions; do
6390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6391 ac_cv_prog_ac_ct_STRIP="strip"
6392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6402 if test -n "$ac_ct_STRIP"; then
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6404 $as_echo "$ac_ct_STRIP" >&6; }
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6407 $as_echo "no" >&6; }
6410 if test "x$ac_ct_STRIP" = x; then
6413 case $cross_compiling:$ac_tool_warned in
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6417 ac_tool_warned=yes ;;
6422 STRIP="$ac_cv_prog_STRIP"
6425 test -z "$STRIP" && STRIP=:
6432 if test -n "$ac_tool_prefix"; then
6433 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6434 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436 $as_echo_n "checking for $ac_word... " >&6; }
6437 if ${ac_cv_prog_RANLIB+:} false; then :
6438 $as_echo_n "(cached) " >&6
6440 if test -n "$RANLIB"; then
6441 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6450 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 RANLIB=$ac_cv_prog_RANLIB
6461 if test -n "$RANLIB"; then
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6463 $as_echo "$RANLIB" >&6; }
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466 $as_echo "no" >&6; }
6471 if test -z "$ac_cv_prog_RANLIB"; then
6472 ac_ct_RANLIB=$RANLIB
6473 # Extract the first word of "ranlib", so it can be a program name with args.
6474 set dummy ranlib; ac_word=$2
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6476 $as_echo_n "checking for $ac_word... " >&6; }
6477 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6478 $as_echo_n "(cached) " >&6
6480 if test -n "$ac_ct_RANLIB"; then
6481 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 test -z "$as_dir" && as_dir=.
6488 for ac_exec_ext in '' $ac_executable_extensions; do
6489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6490 ac_cv_prog_ac_ct_RANLIB="ranlib"
6491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6501 if test -n "$ac_ct_RANLIB"; then
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6503 $as_echo "$ac_ct_RANLIB" >&6; }
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6506 $as_echo "no" >&6; }
6509 if test "x$ac_ct_RANLIB" = x; then
6512 case $cross_compiling:$ac_tool_warned in
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6516 ac_tool_warned=yes ;;
6518 RANLIB=$ac_ct_RANLIB
6521 RANLIB="$ac_cv_prog_RANLIB"
6524 test -z "$RANLIB" && RANLIB=:
6531 # Determine commands to create old-style static archives.
6532 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6533 old_postinstall_cmds='chmod 644 $oldlib'
6534 old_postuninstall_cmds=
6536 if test -n "$RANLIB"; then
6539 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6542 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6545 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6550 lock_old_archive_extraction=yes ;;
6552 lock_old_archive_extraction=no ;;
6593 # If no C compiler was specified, use CC.
6596 # If no C compiler flags were specified, use CFLAGS.
6597 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6599 # Allow CC to be a program name with arguments.
6603 # Check for command to grab the raw symbol name followed by C symbol from nm.
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6605 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6606 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6607 $as_echo_n "(cached) " >&6
6610 # These are sane defaults that work on at least a few old systems.
6611 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6613 # Character class describing NM global symbol codes.
6614 symcode='[BCDEGRST]'
6616 # Regexp to match symbols that can be accessed directly from C.
6617 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6619 # Define system-specific variables.
6624 cygwin* | mingw* | pw32* | cegcc*)
6625 symcode='[ABCDGISTW]'
6628 if test "$host_cpu" = ia64; then
6629 symcode='[ABCDEGRST]'
6633 symcode='[BCDEGRST]'
6636 symcode='[BCDEGQRST]'
6647 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6655 # If we're using GNU nm, then use its standard symbol codes.
6656 case `$NM -V 2>&1` in
6657 *GNU* | *'with BFD'*)
6658 symcode='[ABCDGIRSTW]' ;;
6661 # Transform an extracted symbol line into a proper C declaration.
6662 # Some systems (esp. on ia64) link data and code symbols differently,
6663 # so use this general approach.
6664 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6666 # Transform an extracted symbol line into symbol name and symbol address
6667 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6668 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'"
6670 # Handle CRLF in mingw tool chain
6674 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6678 # Try without a prefix underscore, then with it.
6679 for ac_symprfx in "" "_"; do
6681 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6682 symxfrm="\\1 $ac_symprfx\\2 \\2"
6684 # Write the raw and C identifiers.
6685 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6686 # Fake it for dumpbin and say T for any non-static function
6687 # and D for any global variable.
6688 # Also find C++ and __fastcall symbols from MSVC++,
6689 # which start with @ or ?.
6690 lt_cv_sys_global_symbol_pipe="$AWK '"\
6691 " {last_section=section; section=\$ 3};"\
6692 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6693 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6694 " \$ 0!~/External *\|/{next};"\
6695 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6696 " {if(hide[section]) next};"\
6697 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6698 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6699 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6700 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6701 " ' prfx=^$ac_symprfx"
6703 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6705 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6707 # Check to see that the pipe works correctly.
6711 cat > conftest.$ac_ext <<_LT_EOF
6716 void nm_test_func(void);
6717 void nm_test_func(void){}
6721 int main(){nm_test_var='a';nm_test_func();return(0);}
6724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6725 (eval $ac_compile) 2>&5
6727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6728 test $ac_status = 0; }; then
6729 # Now try to grab the symbols.
6731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6732 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6735 test $ac_status = 0; } && test -s "$nlist"; then
6736 # Try sorting and uniquifying the output.
6737 if sort "$nlist" | uniq > "$nlist"T; then
6738 mv -f "$nlist"T "$nlist"
6743 # Make sure that we snagged all the symbols we need.
6744 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6745 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6746 cat <<_LT_EOF > conftest.$ac_ext
6747 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6748 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6749 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6750 relocations are performed -- see ld's documentation on pseudo-relocs. */
6751 # define LT_DLSYM_CONST
6752 #elif defined(__osf__)
6753 /* This system does not cope well with relocations in const data. */
6754 # define LT_DLSYM_CONST
6756 # define LT_DLSYM_CONST const
6764 # Now generate the symbol file.
6765 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6767 cat <<_LT_EOF >> conftest.$ac_ext
6769 /* The mapping between symbol names and symbols. */
6770 LT_DLSYM_CONST struct {
6774 lt__PROGRAM__LTX_preloaded_symbols[] =
6776 { "@PROGRAM@", (void *) 0 },
6778 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6779 cat <<\_LT_EOF >> conftest.$ac_ext
6783 /* This works around a problem in FreeBSD linker */
6784 #ifdef FREEBSD_WORKAROUND
6785 static const void *lt_preloaded_setup() {
6786 return lt__PROGRAM__LTX_preloaded_symbols;
6794 # Now try linking the two files.
6795 mv conftest.$ac_objext conftstm.$ac_objext
6796 lt_globsym_save_LIBS=$LIBS
6797 lt_globsym_save_CFLAGS=$CFLAGS
6798 LIBS="conftstm.$ac_objext"
6799 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6801 (eval $ac_link) 2>&5
6803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6804 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6807 LIBS=$lt_globsym_save_LIBS
6808 CFLAGS=$lt_globsym_save_CFLAGS
6810 echo "cannot find nm_test_func in $nlist" >&5
6813 echo "cannot find nm_test_var in $nlist" >&5
6816 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6819 echo "$progname: failed program was:" >&5
6820 cat conftest.$ac_ext >&5
6822 rm -rf conftest* conftst*
6824 # Do not use the global_symbol_pipe unless it works.
6825 if test "$pipe_works" = yes; then
6828 lt_cv_sys_global_symbol_pipe=
6834 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6835 lt_cv_sys_global_symbol_to_cdecl=
6837 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6839 $as_echo "failed" >&6; }
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6842 $as_echo "ok" >&6; }
6845 # Response file support.
6846 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6847 nm_file_list_spec='@'
6848 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6849 nm_file_list_spec='@'
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6879 $as_echo_n "checking for sysroot... " >&6; }
6881 # Check whether --with-sysroot was given.
6882 if test "${with_sysroot+set}" = set; then :
6883 withval=$with_sysroot;
6890 case ${with_sysroot} in #(
6892 if test "$GCC" = yes; then
6893 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6897 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6903 $as_echo "${with_sysroot}" >&6; }
6904 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6909 $as_echo "${lt_sysroot:-no}" >&6; }
6915 # Check whether --enable-libtool-lock was given.
6916 if test "${enable_libtool_lock+set}" = set; then :
6917 enableval=$enable_libtool_lock;
6920 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6922 # Some flags need to be propagated to the compiler or linker for good
6926 # Find out which ABI we are using.
6927 echo 'int i;' > conftest.$ac_ext
6928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6929 (eval $ac_compile) 2>&5
6931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6932 test $ac_status = 0; }; then
6933 case `/usr/bin/file conftest.$ac_objext` in
6945 # Find out which ABI we are using.
6946 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6948 (eval $ac_compile) 2>&5
6950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6951 test $ac_status = 0; }; then
6952 if test "$lt_cv_prog_gnu_ld" = yes; then
6953 case `/usr/bin/file conftest.$ac_objext` in
6955 LD="${LD-ld} -melf32bsmip"
6958 LD="${LD-ld} -melf32bmipn32"
6961 LD="${LD-ld} -melf64bmip"
6965 case `/usr/bin/file conftest.$ac_objext` in
6981 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6982 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6983 # Find out which ABI we are using.
6984 echo 'int i;' > conftest.$ac_ext
6985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6986 (eval $ac_compile) 2>&5
6988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6989 test $ac_status = 0; }; then
6990 case `/usr/bin/file conftest.o` in
6993 x86_64-*kfreebsd*-gnu)
6994 LD="${LD-ld} -m elf_i386_fbsd"
6997 LD="${LD-ld} -m elf_i386"
6999 ppc64-*linux*|powerpc64-*linux*)
7000 LD="${LD-ld} -m elf32ppclinux"
7003 LD="${LD-ld} -m elf_s390"
7006 LD="${LD-ld} -m elf32_sparc"
7012 x86_64-*kfreebsd*-gnu)
7013 LD="${LD-ld} -m elf_x86_64_fbsd"
7016 LD="${LD-ld} -m elf_x86_64"
7018 ppc*-*linux*|powerpc*-*linux*)
7019 LD="${LD-ld} -m elf64ppc"
7021 s390*-*linux*|s390*-*tpf*)
7022 LD="${LD-ld} -m elf64_s390"
7025 LD="${LD-ld} -m elf64_sparc"
7035 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7036 SAVE_CFLAGS="$CFLAGS"
7037 CFLAGS="$CFLAGS -belf"
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7039 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7040 if ${lt_cv_cc_needs_belf+:} false; then :
7041 $as_echo_n "(cached) " >&6
7044 ac_cpp='$CPP $CPPFLAGS'
7045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7060 if ac_fn_c_try_link "$LINENO"; then :
7061 lt_cv_cc_needs_belf=yes
7063 lt_cv_cc_needs_belf=no
7065 rm -f core conftest.err conftest.$ac_objext \
7066 conftest$ac_exeext conftest.$ac_ext
7068 ac_cpp='$CPP $CPPFLAGS'
7069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7075 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7076 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7077 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7078 CFLAGS="$SAVE_CFLAGS"
7082 # Find out which ABI we are using.
7083 echo 'int i;' > conftest.$ac_ext
7084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7085 (eval $ac_compile) 2>&5
7087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7088 test $ac_status = 0; }; then
7089 case `/usr/bin/file conftest.o` in
7091 case $lt_cv_prog_gnu_ld in
7095 LD="${LD-ld} -m elf_x86_64"
7098 LD="${LD-ld} -m elf64_sparc"
7101 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7102 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7107 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7119 need_locks="$enable_libtool_lock"
7121 if test -n "$ac_tool_prefix"; then
7122 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7123 set dummy ${ac_tool_prefix}mt; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7127 $as_echo_n "(cached) " >&6
7129 if test -n "$MANIFEST_TOOL"; then
7130 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7139 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7150 if test -n "$MANIFEST_TOOL"; then
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7152 $as_echo "$MANIFEST_TOOL" >&6; }
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7160 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7161 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7162 # Extract the first word of "mt", so it can be a program name with args.
7163 set dummy mt; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7167 $as_echo_n "(cached) " >&6
7169 if test -n "$ac_ct_MANIFEST_TOOL"; then
7170 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7179 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7190 if test -n "$ac_ct_MANIFEST_TOOL"; then
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7192 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7198 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7201 case $cross_compiling:$ac_tool_warned in
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7205 ac_tool_warned=yes ;;
7207 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7210 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7213 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7215 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7216 if ${lt_cv_path_mainfest_tool+:} false; then :
7217 $as_echo_n "(cached) " >&6
7219 lt_cv_path_mainfest_tool=no
7220 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7221 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7222 cat conftest.err >&5
7223 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7224 lt_cv_path_mainfest_tool=yes
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7229 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7230 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7240 rhapsody* | darwin*)
7241 if test -n "$ac_tool_prefix"; then
7242 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7243 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7247 $as_echo_n "(cached) " >&6
7249 if test -n "$DSYMUTIL"; then
7250 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7259 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7270 if test -n "$DSYMUTIL"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7272 $as_echo "$DSYMUTIL" >&6; }
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7280 if test -z "$ac_cv_prog_DSYMUTIL"; then
7281 ac_ct_DSYMUTIL=$DSYMUTIL
7282 # Extract the first word of "dsymutil", so it can be a program name with args.
7283 set dummy dsymutil; ac_word=$2
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7285 $as_echo_n "checking for $ac_word... " >&6; }
7286 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7287 $as_echo_n "(cached) " >&6
7289 if test -n "$ac_ct_DSYMUTIL"; then
7290 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7299 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7310 if test -n "$ac_ct_DSYMUTIL"; then
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7312 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315 $as_echo "no" >&6; }
7318 if test "x$ac_ct_DSYMUTIL" = x; then
7321 case $cross_compiling:$ac_tool_warned in
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7325 ac_tool_warned=yes ;;
7327 DSYMUTIL=$ac_ct_DSYMUTIL
7330 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7333 if test -n "$ac_tool_prefix"; then
7334 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7335 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_NMEDIT+:} false; then :
7339 $as_echo_n "(cached) " >&6
7341 if test -n "$NMEDIT"; then
7342 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 NMEDIT=$ac_cv_prog_NMEDIT
7362 if test -n "$NMEDIT"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7364 $as_echo "$NMEDIT" >&6; }
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7372 if test -z "$ac_cv_prog_NMEDIT"; then
7373 ac_ct_NMEDIT=$NMEDIT
7374 # Extract the first word of "nmedit", so it can be a program name with args.
7375 set dummy nmedit; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7379 $as_echo_n "(cached) " >&6
7381 if test -n "$ac_ct_NMEDIT"; then
7382 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7391 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7402 if test -n "$ac_ct_NMEDIT"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7404 $as_echo "$ac_ct_NMEDIT" >&6; }
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7410 if test "x$ac_ct_NMEDIT" = x; then
7413 case $cross_compiling:$ac_tool_warned in
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7417 ac_tool_warned=yes ;;
7419 NMEDIT=$ac_ct_NMEDIT
7422 NMEDIT="$ac_cv_prog_NMEDIT"
7425 if test -n "$ac_tool_prefix"; then
7426 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7427 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if ${ac_cv_prog_LIPO+:} false; then :
7431 $as_echo_n "(cached) " >&6
7433 if test -n "$LIPO"; then
7434 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 LIPO=$ac_cv_prog_LIPO
7454 if test -n "$LIPO"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7456 $as_echo "$LIPO" >&6; }
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7464 if test -z "$ac_cv_prog_LIPO"; then
7466 # Extract the first word of "lipo", so it can be a program name with args.
7467 set dummy lipo; ac_word=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7471 $as_echo_n "(cached) " >&6
7473 if test -n "$ac_ct_LIPO"; then
7474 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7483 ac_cv_prog_ac_ct_LIPO="lipo"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7494 if test -n "$ac_ct_LIPO"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7496 $as_echo "$ac_ct_LIPO" >&6; }
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7502 if test "x$ac_ct_LIPO" = x; then
7505 case $cross_compiling:$ac_tool_warned in
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7509 ac_tool_warned=yes ;;
7514 LIPO="$ac_cv_prog_LIPO"
7517 if test -n "$ac_tool_prefix"; then
7518 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7519 set dummy ${ac_tool_prefix}otool; ac_word=$2
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7521 $as_echo_n "checking for $ac_word... " >&6; }
7522 if ${ac_cv_prog_OTOOL+:} false; then :
7523 $as_echo_n "(cached) " >&6
7525 if test -n "$OTOOL"; then
7526 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 test -z "$as_dir" && as_dir=.
7533 for ac_exec_ext in '' $ac_executable_extensions; do
7534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7535 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7545 OTOOL=$ac_cv_prog_OTOOL
7546 if test -n "$OTOOL"; then
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7548 $as_echo "$OTOOL" >&6; }
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 $as_echo "no" >&6; }
7556 if test -z "$ac_cv_prog_OTOOL"; then
7558 # Extract the first word of "otool", so it can be a program name with args.
7559 set dummy otool; ac_word=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7563 $as_echo_n "(cached) " >&6
7565 if test -n "$ac_ct_OTOOL"; then
7566 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7575 ac_cv_prog_ac_ct_OTOOL="otool"
7576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7586 if test -n "$ac_ct_OTOOL"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7588 $as_echo "$ac_ct_OTOOL" >&6; }
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7594 if test "x$ac_ct_OTOOL" = x; then
7597 case $cross_compiling:$ac_tool_warned in
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7601 ac_tool_warned=yes ;;
7606 OTOOL="$ac_cv_prog_OTOOL"
7609 if test -n "$ac_tool_prefix"; then
7610 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7611 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if ${ac_cv_prog_OTOOL64+:} false; then :
7615 $as_echo_n "(cached) " >&6
7617 if test -n "$OTOOL64"; then
7618 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7627 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 OTOOL64=$ac_cv_prog_OTOOL64
7638 if test -n "$OTOOL64"; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7640 $as_echo "$OTOOL64" >&6; }
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7648 if test -z "$ac_cv_prog_OTOOL64"; then
7649 ac_ct_OTOOL64=$OTOOL64
7650 # Extract the first word of "otool64", so it can be a program name with args.
7651 set dummy otool64; ac_word=$2
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653 $as_echo_n "checking for $ac_word... " >&6; }
7654 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7655 $as_echo_n "(cached) " >&6
7657 if test -n "$ac_ct_OTOOL64"; then
7658 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7667 ac_cv_prog_ac_ct_OTOOL64="otool64"
7668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7678 if test -n "$ac_ct_OTOOL64"; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7680 $as_echo "$ac_ct_OTOOL64" >&6; }
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7686 if test "x$ac_ct_OTOOL64" = x; then
7689 case $cross_compiling:$ac_tool_warned in
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7693 ac_tool_warned=yes ;;
7695 OTOOL64=$ac_ct_OTOOL64
7698 OTOOL64="$ac_cv_prog_OTOOL64"
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7728 $as_echo_n "checking for -single_module linker flag... " >&6; }
7729 if ${lt_cv_apple_cc_single_mod+:} false; then :
7730 $as_echo_n "(cached) " >&6
7732 lt_cv_apple_cc_single_mod=no
7733 if test -z "${LT_MULTI_MODULE}"; then
7734 # By default we will add the -single_module flag. You can override
7735 # by either setting the environment variable LT_MULTI_MODULE
7736 # non-empty at configure time, or by adding -multi_module to the
7738 rm -rf libconftest.dylib*
7739 echo "int foo(void){return 1;}" > conftest.c
7740 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7741 -dynamiclib -Wl,-single_module conftest.c" >&5
7742 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7743 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7745 # If there is a non-empty error log, and "single_module"
7746 # appears in it, assume the flag caused a linker warning
7747 if test -s conftest.err && $GREP single_module conftest.err; then
7748 cat conftest.err >&5
7749 # Otherwise, if the output was created with a 0 exit code from
7750 # the compiler, it worked.
7751 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7752 lt_cv_apple_cc_single_mod=yes
7754 cat conftest.err >&5
7756 rm -rf libconftest.dylib*
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7761 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7764 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7765 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7766 $as_echo_n "(cached) " >&6
7768 lt_cv_ld_exported_symbols_list=no
7769 save_LDFLAGS=$LDFLAGS
7770 echo "_main" > conftest.sym
7771 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h. */
7783 if ac_fn_c_try_link "$LINENO"; then :
7784 lt_cv_ld_exported_symbols_list=yes
7786 lt_cv_ld_exported_symbols_list=no
7788 rm -f core conftest.err conftest.$ac_objext \
7789 conftest$ac_exeext conftest.$ac_ext
7790 LDFLAGS="$save_LDFLAGS"
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7794 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7797 $as_echo_n "checking for -force_load linker flag... " >&6; }
7798 if ${lt_cv_ld_force_load+:} false; then :
7799 $as_echo_n "(cached) " >&6
7801 lt_cv_ld_force_load=no
7802 cat > conftest.c << _LT_EOF
7803 int forced_loaded() { return 2;}
7805 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7806 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7807 echo "$AR cru libconftest.a conftest.o" >&5
7808 $AR cru libconftest.a conftest.o 2>&5
7809 echo "$RANLIB libconftest.a" >&5
7810 $RANLIB libconftest.a 2>&5
7811 cat > conftest.c << _LT_EOF
7812 int main() { return 0;}
7814 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7815 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7817 if test -s conftest.err && $GREP force_load conftest.err; then
7818 cat conftest.err >&5
7819 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7820 lt_cv_ld_force_load=yes
7822 cat conftest.err >&5
7824 rm -f conftest.err libconftest.a conftest conftest.c
7825 rm -rf conftest.dSYM
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7829 $as_echo "$lt_cv_ld_force_load" >&6; }
7831 rhapsody* | darwin1.[012])
7832 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7834 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7835 darwin*) # darwin 5.x on
7836 # if running on 10.5 or later, the deployment target defaults
7837 # to the OS version, if on x86, and 10.4, the deployment
7838 # target defaults to 10.4. Don't you love it?
7839 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7840 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7841 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7843 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7845 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7849 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7850 _lt_dar_single_mod='$single_module'
7852 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7853 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7855 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7857 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7858 _lt_dsymutil='~$DSYMUTIL $lib || :'
7865 for ac_header in dlfcn.h
7867 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7869 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7870 cat >>confdefs.h <<_ACEOF
7871 #define HAVE_DLFCN_H 1
7892 # Check whether --enable-shared was given.
7893 if test "${enable_shared+set}" = set; then :
7894 enableval=$enable_shared; p=${PACKAGE-default}
7896 yes) enable_shared=yes ;;
7897 no) enable_shared=no ;;
7900 # Look at the argument we got. We use all the common list separators.
7901 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7902 for pkg in $enableval; do
7904 if test "X$pkg" = "X$p"; then
7923 # Check whether --enable-static was given.
7924 if test "${enable_static+set}" = set; then :
7925 enableval=$enable_static; p=${PACKAGE-default}
7927 yes) enable_static=yes ;;
7928 no) enable_static=no ;;
7931 # Look at the argument we got. We use all the common list separators.
7932 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7933 for pkg in $enableval; do
7935 if test "X$pkg" = "X$p"; then
7955 # Check whether --with-pic was given.
7956 if test "${with_pic+set}" = set; then :
7957 withval=$with_pic; lt_p=${PACKAGE-default}
7959 yes|no) pic_mode=$withval ;;
7962 # Look at the argument we got. We use all the common list separators.
7963 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7964 for lt_pkg in $withval; do
7966 if test "X$lt_pkg" = "X$lt_p"; then
7978 test -z "$pic_mode" && pic_mode=default
7986 # Check whether --enable-fast-install was given.
7987 if test "${enable_fast_install+set}" = set; then :
7988 enableval=$enable_fast_install; p=${PACKAGE-default}
7990 yes) enable_fast_install=yes ;;
7991 no) enable_fast_install=no ;;
7993 enable_fast_install=no
7994 # Look at the argument we got. We use all the common list separators.
7995 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7996 for pkg in $enableval; do
7998 if test "X$pkg" = "X$p"; then
7999 enable_fast_install=yes
8006 enable_fast_install=yes
8019 # This can be used to rebuild libtool when needed
8020 LIBTOOL_DEPS="$ltmain"
8022 # Always use our own libtool.
8023 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8054 test -z "$LN_S" && LN_S="ln -s"
8069 if test -n "${ZSH_VERSION+set}" ; then
8070 setopt NO_GLOB_SUBST
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8074 $as_echo_n "checking for objdir... " >&6; }
8075 if ${lt_cv_objdir+:} false; then :
8076 $as_echo_n "(cached) " >&6
8078 rm -f .libs 2>/dev/null
8079 mkdir .libs 2>/dev/null
8080 if test -d .libs; then
8083 # MS-DOS does not allow filenames that begin with a dot.
8086 rmdir .libs 2>/dev/null
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8089 $as_echo "$lt_cv_objdir" >&6; }
8090 objdir=$lt_cv_objdir
8096 cat >>confdefs.h <<_ACEOF
8097 #define LT_OBJDIR "$lt_cv_objdir/"
8105 # AIX sometimes has problems with the GCC collect2 program. For some
8106 # reason, if we set the COLLECT_NAMES environment variable, the problems
8107 # vanish in a puff of smoke.
8108 if test "X${COLLECT_NAMES+set}" != Xset; then
8110 export COLLECT_NAMES
8117 can_build_shared=yes
8119 # All known linkers require a `.a' archive for static linking (except MSVC,
8120 # which needs '.lib').
8123 with_gnu_ld="$lt_cv_prog_gnu_ld"
8126 old_CFLAGS="$CFLAGS"
8128 # Set sane defaults for various variables
8129 test -z "$CC" && CC=cc
8130 test -z "$LTCC" && LTCC=$CC
8131 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8132 test -z "$LD" && LD=ld
8133 test -z "$ac_objext" && ac_objext=o
8135 for cc_temp in $compiler""; do
8137 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8138 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8143 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8146 # Only perform the check for file, if the check method requires it
8147 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8148 case $deplibs_check_method in
8150 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8152 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8153 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8154 $as_echo_n "(cached) " >&6
8158 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8161 lt_save_MAGIC_CMD="$MAGIC_CMD"
8162 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8163 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8164 for ac_dir in $ac_dummy; do
8166 test -z "$ac_dir" && ac_dir=.
8167 if test -f $ac_dir/${ac_tool_prefix}file; then
8168 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8169 if test -n "$file_magic_test_file"; then
8170 case $deplibs_check_method in
8172 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8173 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8174 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8175 $EGREP "$file_magic_regex" > /dev/null; then
8180 *** Warning: the command libtool uses to detect shared libraries,
8181 *** $file_magic_cmd, produces output that libtool cannot recognize.
8182 *** The result is that libtool may fail to recognize shared libraries
8183 *** as such. This will affect the creation of libtool libraries that
8184 *** depend on shared libraries, but programs linked with such libtool
8185 *** libraries will work regardless of this problem. Nevertheless, you
8186 *** may want to report the problem to your system manager and/or to
8187 *** bug-libtool@gnu.org
8197 MAGIC_CMD="$lt_save_MAGIC_CMD"
8202 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8203 if test -n "$MAGIC_CMD"; then
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8205 $as_echo "$MAGIC_CMD" >&6; }
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208 $as_echo "no" >&6; }
8215 if test -z "$lt_cv_path_MAGIC_CMD"; then
8216 if test -n "$ac_tool_prefix"; then
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8218 $as_echo_n "checking for file... " >&6; }
8219 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8220 $as_echo_n "(cached) " >&6
8224 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8227 lt_save_MAGIC_CMD="$MAGIC_CMD"
8228 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8229 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8230 for ac_dir in $ac_dummy; do
8232 test -z "$ac_dir" && ac_dir=.
8233 if test -f $ac_dir/file; then
8234 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8235 if test -n "$file_magic_test_file"; then
8236 case $deplibs_check_method in
8238 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8239 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8240 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8241 $EGREP "$file_magic_regex" > /dev/null; then
8246 *** Warning: the command libtool uses to detect shared libraries,
8247 *** $file_magic_cmd, produces output that libtool cannot recognize.
8248 *** The result is that libtool may fail to recognize shared libraries
8249 *** as such. This will affect the creation of libtool libraries that
8250 *** depend on shared libraries, but programs linked with such libtool
8251 *** libraries will work regardless of this problem. Nevertheless, you
8252 *** may want to report the problem to your system manager and/or to
8253 *** bug-libtool@gnu.org
8263 MAGIC_CMD="$lt_save_MAGIC_CMD"
8268 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8269 if test -n "$MAGIC_CMD"; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8271 $as_echo "$MAGIC_CMD" >&6; }
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8287 # Use C for the default configuration in the libtool script
8291 ac_cpp='$CPP $CPPFLAGS'
8292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8297 # Source file extension for C test sources.
8300 # Object file extension for compiled C test sources.
8304 # Code to be used in simple compile tests
8305 lt_simple_compile_test_code="int some_variable = 0;"
8307 # Code to be used in simple link tests
8308 lt_simple_link_test_code='int main(){return(0);}'
8316 # If no C compiler was specified, use CC.
8319 # If no C compiler flags were specified, use CFLAGS.
8320 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8322 # Allow CC to be a program name with arguments.
8325 # Save the default compiler, since it gets overwritten when the other
8326 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8327 compiler_DEFAULT=$CC
8329 # save warnings/boilerplate of simple test code
8330 ac_outfile=conftest.$ac_objext
8331 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8332 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8333 _lt_compiler_boilerplate=`cat conftest.err`
8336 ac_outfile=conftest.$ac_objext
8337 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8338 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8339 _lt_linker_boilerplate=`cat conftest.err`
8344 ## There is no encapsulation within the following macros, do not change
8345 ## the running order or otherwise move them around unless you know exactly
8346 ## what you are doing...
8347 if test -n "$compiler"; then
8349 lt_prog_compiler_no_builtin_flag=
8351 if test "$GCC" = yes; then
8352 case $cc_basename in
8354 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8356 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8360 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8361 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8362 $as_echo_n "(cached) " >&6
8364 lt_cv_prog_compiler_rtti_exceptions=no
8365 ac_outfile=conftest.$ac_objext
8366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8367 lt_compiler_flag="-fno-rtti -fno-exceptions"
8368 # Insert the option either (1) after the last *FLAGS variable, or
8369 # (2) before a word containing "conftest.", or (3) at the end.
8370 # Note that $ac_compile itself does not contain backslashes and begins
8371 # with a dollar sign (not a hyphen), so the echo should work correctly.
8372 # The option is referenced via a variable to avoid confusing sed.
8373 lt_compile=`echo "$ac_compile" | $SED \
8374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8376 -e 's:$: $lt_compiler_flag:'`
8377 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8378 (eval "$lt_compile" 2>conftest.err)
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 if (exit $ac_status) && test -s "$ac_outfile"; then
8383 # The compiler can only warn and ignore the option if not recognized
8384 # So say no if there are warnings other than the usual output.
8385 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8387 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8388 lt_cv_prog_compiler_rtti_exceptions=yes
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8395 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8397 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8398 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8410 lt_prog_compiler_wl=
8411 lt_prog_compiler_pic=
8412 lt_prog_compiler_static=
8415 if test "$GCC" = yes; then
8416 lt_prog_compiler_wl='-Wl,'
8417 lt_prog_compiler_static='-static'
8421 # All AIX code is PIC.
8422 if test "$host_cpu" = ia64; then
8423 # AIX 5 now supports IA64 processor
8424 lt_prog_compiler_static='-Bstatic'
8431 # see comment about AmigaOS4 .so support
8432 lt_prog_compiler_pic='-fPIC'
8435 # FIXME: we need at least 68020 code to build shared libraries, but
8436 # adding the `-m68020' flag to GCC prevents building anything better,
8438 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8443 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8444 # PIC is the default for these OSes.
8447 mingw* | cygwin* | pw32* | os2* | cegcc*)
8448 # This hack is so that the source file can tell whether it is being
8449 # built for inclusion in a dll (and should export symbols for example).
8450 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8451 # (--disable-auto-import) libraries
8452 lt_prog_compiler_pic='-DDLL_EXPORT'
8455 darwin* | rhapsody*)
8456 # PIC is the default on this platform
8457 # Common symbols not allowed in MH_DYLIB files
8458 lt_prog_compiler_pic='-fno-common'
8462 # PIC is the default for Haiku.
8463 # The "-static" flag exists, but is broken.
8464 lt_prog_compiler_static=
8468 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8469 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8470 # sets the default TLS model and affects inlining.
8476 lt_prog_compiler_pic='-fPIC'
8482 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8483 # Instead, we relocate shared libraries at runtime.
8487 # Just because we use GCC doesn't mean we suddenly get shared libraries
8488 # on systems that don't support them.
8489 lt_prog_compiler_can_build_shared=no
8494 # QNX uses GNU C++, but need to define -shared option too, otherwise
8496 lt_prog_compiler_pic='-fPIC -shared'
8500 if test -d /usr/nec; then
8501 lt_prog_compiler_pic=-Kconform_pic
8506 lt_prog_compiler_pic='-fPIC'
8510 case $cc_basename in
8511 nvcc*) # Cuda Compiler Driver 2.2
8512 lt_prog_compiler_wl='-Xlinker '
8513 if test -n "$lt_prog_compiler_pic"; then
8514 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8519 # PORTME Check for flag to pass linker flags through the system compiler.
8522 lt_prog_compiler_wl='-Wl,'
8523 if test "$host_cpu" = ia64; then
8524 # AIX 5 now supports IA64 processor
8525 lt_prog_compiler_static='-Bstatic'
8527 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8531 mingw* | cygwin* | pw32* | os2* | cegcc*)
8532 # This hack is so that the source file can tell whether it is being
8533 # built for inclusion in a dll (and should export symbols for example).
8534 lt_prog_compiler_pic='-DDLL_EXPORT'
8537 hpux9* | hpux10* | hpux11*)
8538 lt_prog_compiler_wl='-Wl,'
8539 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8546 lt_prog_compiler_pic='+Z'
8549 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8550 lt_prog_compiler_static='${wl}-a ${wl}archive'
8553 irix5* | irix6* | nonstopux*)
8554 lt_prog_compiler_wl='-Wl,'
8555 # PIC (with -KPIC) is the default.
8556 lt_prog_compiler_static='-non_shared'
8559 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8560 case $cc_basename in
8561 # old Intel for x86_64 which still supported -KPIC.
8563 lt_prog_compiler_wl='-Wl,'
8564 lt_prog_compiler_pic='-KPIC'
8565 lt_prog_compiler_static='-static'
8567 # icc used to be incompatible with GCC.
8568 # ICC 10 doesn't accept -KPIC any more.
8570 lt_prog_compiler_wl='-Wl,'
8571 lt_prog_compiler_pic='-fPIC'
8572 lt_prog_compiler_static='-static'
8574 # Lahey Fortran 8.1.
8576 lt_prog_compiler_wl='-Wl,'
8577 lt_prog_compiler_pic='--shared'
8578 lt_prog_compiler_static='--static'
8581 # NAG Fortran compiler
8582 lt_prog_compiler_wl='-Wl,-Wl,,'
8583 lt_prog_compiler_pic='-PIC'
8584 lt_prog_compiler_static='-Bstatic'
8586 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8587 # Portland Group compilers (*not* the Pentium gcc compiler,
8588 # which looks to be a dead project)
8589 lt_prog_compiler_wl='-Wl,'
8590 lt_prog_compiler_pic='-fpic'
8591 lt_prog_compiler_static='-Bstatic'
8594 lt_prog_compiler_wl='-Wl,'
8595 # All Alpha code is PIC.
8596 lt_prog_compiler_static='-non_shared'
8598 xl* | bgxl* | bgf* | mpixl*)
8599 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8600 lt_prog_compiler_wl='-Wl,'
8601 lt_prog_compiler_pic='-qpic'
8602 lt_prog_compiler_static='-qstaticlink'
8605 case `$CC -V 2>&1 | sed 5q` in
8606 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8607 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8608 lt_prog_compiler_pic='-KPIC'
8609 lt_prog_compiler_static='-Bstatic'
8610 lt_prog_compiler_wl=''
8612 *Sun\ F* | *Sun*Fortran*)
8613 lt_prog_compiler_pic='-KPIC'
8614 lt_prog_compiler_static='-Bstatic'
8615 lt_prog_compiler_wl='-Qoption ld '
8619 lt_prog_compiler_pic='-KPIC'
8620 lt_prog_compiler_static='-Bstatic'
8621 lt_prog_compiler_wl='-Wl,'
8623 *Intel*\ [CF]*Compiler*)
8624 lt_prog_compiler_wl='-Wl,'
8625 lt_prog_compiler_pic='-fPIC'
8626 lt_prog_compiler_static='-static'
8629 lt_prog_compiler_wl='-Wl,'
8630 lt_prog_compiler_pic='-fpic'
8631 lt_prog_compiler_static='-Bstatic'
8639 lt_prog_compiler_pic='-KPIC'
8640 lt_prog_compiler_static='-Bstatic'
8644 # QNX uses GNU C++, but need to define -shared option too, otherwise
8646 lt_prog_compiler_pic='-fPIC -shared'
8649 osf3* | osf4* | osf5*)
8650 lt_prog_compiler_wl='-Wl,'
8651 # All OSF/1 code is PIC.
8652 lt_prog_compiler_static='-non_shared'
8656 lt_prog_compiler_static='-non_shared'
8660 lt_prog_compiler_pic='-KPIC'
8661 lt_prog_compiler_static='-Bstatic'
8662 case $cc_basename in
8663 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8664 lt_prog_compiler_wl='-Qoption ld ';;
8666 lt_prog_compiler_wl='-Wl,';;
8671 lt_prog_compiler_wl='-Qoption ld '
8672 lt_prog_compiler_pic='-PIC'
8673 lt_prog_compiler_static='-Bstatic'
8676 sysv4 | sysv4.2uw2* | sysv4.3*)
8677 lt_prog_compiler_wl='-Wl,'
8678 lt_prog_compiler_pic='-KPIC'
8679 lt_prog_compiler_static='-Bstatic'
8683 if test -d /usr/nec ;then
8684 lt_prog_compiler_pic='-Kconform_pic'
8685 lt_prog_compiler_static='-Bstatic'
8689 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8690 lt_prog_compiler_wl='-Wl,'
8691 lt_prog_compiler_pic='-KPIC'
8692 lt_prog_compiler_static='-Bstatic'
8696 lt_prog_compiler_wl='-Wl,'
8697 lt_prog_compiler_can_build_shared=no
8701 lt_prog_compiler_pic='-pic'
8702 lt_prog_compiler_static='-Bstatic'
8706 lt_prog_compiler_can_build_shared=no
8712 # For platforms which do not support PIC, -DPIC is meaningless:
8714 lt_prog_compiler_pic=
8717 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8722 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8723 if ${lt_cv_prog_compiler_pic+:} false; then :
8724 $as_echo_n "(cached) " >&6
8726 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8729 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8730 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8733 # Check to make sure the PIC flag actually works.
8735 if test -n "$lt_prog_compiler_pic"; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8737 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8738 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8739 $as_echo_n "(cached) " >&6
8741 lt_cv_prog_compiler_pic_works=no
8742 ac_outfile=conftest.$ac_objext
8743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8744 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8745 # Insert the option either (1) after the last *FLAGS variable, or
8746 # (2) before a word containing "conftest.", or (3) at the end.
8747 # Note that $ac_compile itself does not contain backslashes and begins
8748 # with a dollar sign (not a hyphen), so the echo should work correctly.
8749 # The option is referenced via a variable to avoid confusing sed.
8750 lt_compile=`echo "$ac_compile" | $SED \
8751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8753 -e 's:$: $lt_compiler_flag:'`
8754 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8755 (eval "$lt_compile" 2>conftest.err)
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 if (exit $ac_status) && test -s "$ac_outfile"; then
8760 # The compiler can only warn and ignore the option if not recognized
8761 # So say no if there are warnings other than the usual output.
8762 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8764 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8765 lt_cv_prog_compiler_pic_works=yes
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8772 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8774 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8775 case $lt_prog_compiler_pic in
8777 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8780 lt_prog_compiler_pic=
8781 lt_prog_compiler_can_build_shared=no
8797 # Check to make sure the static flag actually works.
8799 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8801 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8802 if ${lt_cv_prog_compiler_static_works+:} false; then :
8803 $as_echo_n "(cached) " >&6
8805 lt_cv_prog_compiler_static_works=no
8806 save_LDFLAGS="$LDFLAGS"
8807 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8808 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8809 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8810 # The linker can only warn and ignore the option if not recognized
8811 # So say no if there are warnings
8812 if test -s conftest.err; then
8813 # Append any errors to the config.log.
8814 cat conftest.err 1>&5
8815 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8816 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8817 if diff conftest.exp conftest.er2 >/dev/null; then
8818 lt_cv_prog_compiler_static_works=yes
8821 lt_cv_prog_compiler_static_works=yes
8825 LDFLAGS="$save_LDFLAGS"
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8829 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8831 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8834 lt_prog_compiler_static=
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8844 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8845 if ${lt_cv_prog_compiler_c_o+:} false; then :
8846 $as_echo_n "(cached) " >&6
8848 lt_cv_prog_compiler_c_o=no
8849 $RM -r conftest 2>/dev/null
8853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8855 lt_compiler_flag="-o out/conftest2.$ac_objext"
8856 # Insert the option either (1) after the last *FLAGS variable, or
8857 # (2) before a word containing "conftest.", or (3) at the end.
8858 # Note that $ac_compile itself does not contain backslashes and begins
8859 # with a dollar sign (not a hyphen), so the echo should work correctly.
8860 lt_compile=`echo "$ac_compile" | $SED \
8861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8863 -e 's:$: $lt_compiler_flag:'`
8864 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8865 (eval "$lt_compile" 2>out/conftest.err)
8867 cat out/conftest.err >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8871 # The compiler can only warn and ignore the option if not recognized
8872 # So say no if there are warnings
8873 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8874 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8875 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8876 lt_cv_prog_compiler_c_o=yes
8881 # SGI C++ compiler will create directory out/ii_files/ for
8882 # template instantiation
8883 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8884 $RM out/* && rmdir out
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8891 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8899 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8900 if ${lt_cv_prog_compiler_c_o+:} false; then :
8901 $as_echo_n "(cached) " >&6
8903 lt_cv_prog_compiler_c_o=no
8904 $RM -r conftest 2>/dev/null
8908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8910 lt_compiler_flag="-o out/conftest2.$ac_objext"
8911 # Insert the option either (1) after the last *FLAGS variable, or
8912 # (2) before a word containing "conftest.", or (3) at the end.
8913 # Note that $ac_compile itself does not contain backslashes and begins
8914 # with a dollar sign (not a hyphen), so the echo should work correctly.
8915 lt_compile=`echo "$ac_compile" | $SED \
8916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8918 -e 's:$: $lt_compiler_flag:'`
8919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8920 (eval "$lt_compile" 2>out/conftest.err)
8922 cat out/conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8926 # The compiler can only warn and ignore the option if not recognized
8927 # So say no if there are warnings
8928 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8929 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8930 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8931 lt_cv_prog_compiler_c_o=yes
8936 # SGI C++ compiler will create directory out/ii_files/ for
8937 # template instantiation
8938 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8939 $RM out/* && rmdir out
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8946 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8951 hard_links="nottested"
8952 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8953 # do not overwrite the value of need_locks provided by the user
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8955 $as_echo_n "checking if we can lock with hard links... " >&6; }
8958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8960 ln conftest.a conftest.b 2>&5 || hard_links=no
8961 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8963 $as_echo "$hard_links" >&6; }
8964 if test "$hard_links" = no; then
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8966 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8979 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8982 allow_undefined_flag=
8983 always_export_symbols=no
8985 archive_expsym_cmds=
8986 compiler_needs_object=no
8987 enable_shared_with_static_runtimes=no
8988 export_dynamic_flag_spec=
8989 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8990 hardcode_automatic=no
8992 hardcode_direct_absolute=no
8993 hardcode_libdir_flag_spec=
8994 hardcode_libdir_separator=
8996 hardcode_shlibpath_var=unsupported
8998 link_all_deplibs=unknown
9001 old_archive_from_new_cmds=
9002 old_archive_from_expsyms_cmds=
9003 thread_safe_flag_spec=
9004 whole_archive_flag_spec=
9005 # include_expsyms should be a list of space-separated symbols to be *always*
9006 # included in the symbol list
9008 # exclude_expsyms can be an extended regexp of symbols to exclude
9009 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9010 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9011 # as well as any symbol that contains `d'.
9012 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9013 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9014 # platforms (ab)use it in PIC code, but their linkers get confused if
9015 # the symbol is explicitly referenced. Since portable code cannot
9016 # rely on this symbol name, it's probably fine to never include it in
9017 # preloaded symbol tables.
9018 # Exclude shared library initialization/finalization symbols.
9019 extract_expsyms_cmds=
9022 cygwin* | mingw* | pw32* | cegcc*)
9023 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9024 # When not using gcc, we currently assume that we are using
9025 # Microsoft Visual C++.
9026 if test "$GCC" != yes; then
9031 # we just hope/assume this is gcc and not c89 (= MSVC++)
9037 linux* | k*bsd*-gnu | gnu*)
9044 # On some targets, GNU ld is compatible enough with the native linker
9045 # that we're better off using the native interface for both.
9046 lt_use_gnu_ld_interface=no
9047 if test "$with_gnu_ld" = yes; then
9050 # The AIX port of GNU ld has always aspired to compatibility
9051 # with the native linker. However, as the warning in the GNU ld
9052 # block says, versions before 2.19.5* couldn't really create working
9053 # shared libraries, regardless of the interface used.
9054 case `$LD -v 2>&1` in
9055 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9056 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9057 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9059 lt_use_gnu_ld_interface=yes
9064 lt_use_gnu_ld_interface=yes
9069 if test "$lt_use_gnu_ld_interface" = yes; then
9070 # If archive_cmds runs LD, not CC, wlarc should be empty
9073 # Set some defaults for GNU ld with shared library support. These
9074 # are reset later if shared libraries are not supported. Putting them
9075 # here allows them to be overridden if necessary.
9076 runpath_var=LD_RUN_PATH
9077 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9078 export_dynamic_flag_spec='${wl}--export-dynamic'
9079 # ancient GNU ld didn't support --whole-archive et. al.
9080 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9081 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9083 whole_archive_flag_spec=
9085 supports_anon_versioning=no
9086 case `$LD -v 2>&1` in
9087 *GNU\ gold*) supports_anon_versioning=yes ;;
9088 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9089 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9090 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9091 *\ 2.11.*) ;; # other 2.11 versions
9092 *) supports_anon_versioning=yes ;;
9095 # See if GNU ld supports shared libraries.
9098 # On AIX/PPC, the GNU linker is very broken
9099 if test "$host_cpu" != ia64; then
9103 *** Warning: the GNU linker, at least up to release 2.19, is reported
9104 *** to be unable to reliably create shared libraries on AIX.
9105 *** Therefore, libtool is disabling shared libraries support. If you
9106 *** really care for shared libraries, you may want to install binutils
9107 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9108 *** You will then need to restart the configuration process.
9117 # see comment about AmigaOS4 .so support
9118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9119 archive_expsym_cmds=''
9122 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)'
9123 hardcode_libdir_flag_spec='-L$libdir'
9124 hardcode_minus_L=yes
9130 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9131 allow_undefined_flag=unsupported
9132 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9133 # support --undefined. This deserves some investigation. FIXME
9134 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9140 cygwin* | mingw* | pw32* | cegcc*)
9141 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9142 # as there is no search path for DLLs.
9143 hardcode_libdir_flag_spec='-L$libdir'
9144 export_dynamic_flag_spec='${wl}--export-all-symbols'
9145 allow_undefined_flag=unsupported
9146 always_export_symbols=no
9147 enable_shared_with_static_runtimes=yes
9148 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9149 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9151 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9153 # If the export-symbols file already is a .def file (1st line
9154 # is EXPORTS), use it as is; otherwise, prepend...
9155 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9156 cp $export_symbols $output_objdir/$soname.def;
9158 echo EXPORTS > $output_objdir/$soname.def;
9159 cat $export_symbols >> $output_objdir/$soname.def;
9161 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9169 link_all_deplibs=yes
9174 hardcode_shlibpath_var=no
9175 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9176 export_dynamic_flag_spec='${wl}-E'
9177 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9178 # Instead, shared libraries are loaded at an image base (0x10000000 by
9179 # default) and relocated if they conflict, which is a slow very memory
9180 # consuming and fragmenting process. To avoid this, we pick a random,
9181 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9182 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9183 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9184 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'
9187 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9189 if test "$host_os" = linux-dietlibc; then
9190 case $cc_basename in
9191 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9194 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9195 && test "$tmp_diet" = no
9197 tmp_addflag=' $pic_flag'
9198 tmp_sharedflag='-shared'
9199 case $cc_basename,$host_cpu in
9200 pgcc*) # Portland Group C compiler
9201 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9202 tmp_addflag=' $pic_flag'
9204 pgf77* | pgf90* | pgf95* | pgfortran*)
9205 # Portland Group f77 and f90 compilers
9206 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9207 tmp_addflag=' $pic_flag -Mnomain' ;;
9208 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9209 tmp_addflag=' -i_dynamic' ;;
9210 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9211 tmp_addflag=' -i_dynamic -nofor_main' ;;
9212 ifc* | ifort*) # Intel Fortran compiler
9213 tmp_addflag=' -nofor_main' ;;
9214 lf95*) # Lahey Fortran 8.1
9215 whole_archive_flag_spec=
9216 tmp_sharedflag='--shared' ;;
9217 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9218 tmp_sharedflag='-qmkshrobj'
9220 nvcc*) # Cuda Compiler Driver 2.2
9221 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9222 compiler_needs_object=yes
9225 case `$CC -V 2>&1 | sed 5q` in
9226 *Sun\ C*) # Sun C 5.9
9227 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9228 compiler_needs_object=yes
9229 tmp_sharedflag='-G' ;;
9230 *Sun\ F*) # Sun Fortran 8.3
9231 tmp_sharedflag='-G' ;;
9233 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9235 if test "x$supports_anon_versioning" = xyes; then
9236 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9237 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9238 echo "local: *; };" >> $output_objdir/$libname.ver~
9239 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9242 case $cc_basename in
9243 xlf* | bgf* | bgxlf* | mpixlf*)
9244 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9245 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9246 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9247 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9248 if test "x$supports_anon_versioning" = xyes; then
9249 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9250 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9251 echo "local: *; };" >> $output_objdir/$libname.ver~
9252 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9261 netbsd* | netbsdelf*-gnu)
9262 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9263 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9266 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9267 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9272 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9276 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9277 *** create shared libraries on Solaris systems. Therefore, libtool
9278 *** is disabling shared libraries support. We urge you to upgrade GNU
9279 *** binutils to release 2.9.1 or newer. Another option is to modify
9280 *** your PATH or compiler configuration so that the native linker is
9281 *** used, and then restart.
9284 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9285 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9286 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9292 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9293 case `$LD -v 2>&1` in
9294 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9298 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9299 *** reliably create shared libraries on SCO systems. Therefore, libtool
9300 *** is disabling shared libraries support. We urge you to upgrade GNU
9301 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9302 *** your PATH or compiler configuration so that the native linker is
9303 *** used, and then restart.
9308 # For security reasons, it is highly recommended that you always
9309 # use absolute paths for naming shared libraries, and exclude the
9310 # DT_RUNPATH tag from executables and libraries. But doing so
9311 # requires that you compile everything twice, which is a pain.
9312 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9315 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9324 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9327 hardcode_shlibpath_var=no
9331 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9332 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9333 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9340 if test "$ld_shlibs" = no; then
9342 hardcode_libdir_flag_spec=
9343 export_dynamic_flag_spec=
9344 whole_archive_flag_spec=
9347 # PORTME fill in a description of your system's linker (not GNU ld)
9350 allow_undefined_flag=unsupported
9351 always_export_symbols=yes
9352 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'
9353 # Note: this linker hardcodes the directories in LIBPATH if there
9354 # are no directories specified by -L.
9355 hardcode_minus_L=yes
9356 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9357 # Neither direct hardcoding nor static linking is supported with a
9359 hardcode_direct=unsupported
9364 if test "$host_cpu" = ia64; then
9365 # On IA64, the linker does run time linking by default, so we don't
9366 # have to do anything special.
9367 aix_use_runtimelinking=no
9368 exp_sym_flag='-Bexport'
9371 # If we're using GNU nm, then we don't want the "-C" option.
9372 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9373 # Also, AIX nm treats weak defined symbols like other global
9374 # defined symbols, whereas GNU nm marks them as "W".
9375 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9376 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9378 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'
9380 aix_use_runtimelinking=no
9382 # Test if we are trying to use run time linking or normal
9383 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9384 # need to do runtime linking.
9385 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9386 for ld_flag in $LDFLAGS; do
9387 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9388 aix_use_runtimelinking=yes
9395 exp_sym_flag='-bexport'
9396 no_entry_flag='-bnoentry'
9399 # When large executables or shared objects are built, AIX ld can
9400 # have problems creating the table of contents. If linking a library
9401 # or program results in "error TOC overflow" add -mminimal-toc to
9402 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9403 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9407 hardcode_direct_absolute=yes
9408 hardcode_libdir_separator=':'
9409 link_all_deplibs=yes
9410 file_list_spec='${wl}-f,'
9412 if test "$GCC" = yes; then
9413 case $host_os in aix4.[012]|aix4.[012].*)
9414 # We only want to do this on AIX 4.2 and lower, the check
9415 # below for broken collect2 doesn't work under 4.3+
9416 collect2name=`${CC} -print-prog-name=collect2`
9417 if test -f "$collect2name" &&
9418 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9420 # We have reworked collect2
9423 # We have old collect2
9424 hardcode_direct=unsupported
9425 # It fails to find uninstalled libraries when the uninstalled
9426 # path is not listed in the libpath. Setting hardcode_minus_L
9427 # to unsupported forces relinking
9428 hardcode_minus_L=yes
9429 hardcode_libdir_flag_spec='-L$libdir'
9430 hardcode_libdir_separator=
9434 shared_flag='-shared'
9435 if test "$aix_use_runtimelinking" = yes; then
9436 shared_flag="$shared_flag "'${wl}-G'
9441 if test "$host_cpu" = ia64; then
9442 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9443 # chokes on -Wl,-G. The following line is correct:
9446 if test "$aix_use_runtimelinking" = yes; then
9447 shared_flag='${wl}-G'
9449 shared_flag='${wl}-bM:SRE'
9454 export_dynamic_flag_spec='${wl}-bexpall'
9455 # It seems that -bexpall does not export symbols beginning with
9456 # underscore (_), so it is better to generate a list of symbols to export.
9457 always_export_symbols=yes
9458 if test "$aix_use_runtimelinking" = yes; then
9459 # Warning - without using the other runtime loading flags (-brtl),
9460 # -berok will link without error, but may produce a broken library.
9461 allow_undefined_flag='-berok'
9462 # Determine the default libpath from the value encoded in an
9464 if test "${lt_cv_aix_libpath+set}" = set; then
9465 aix_libpath=$lt_cv_aix_libpath
9467 if ${lt_cv_aix_libpath_+:} false; then :
9468 $as_echo_n "(cached) " >&6
9470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471 /* end confdefs.h. */
9481 if ac_fn_c_try_link "$LINENO"; then :
9483 lt_aix_libpath_sed='
9484 /Import File Strings/,/^$/ {
9486 s/^0 *\([^ ]*\) *$/\1/
9490 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9491 # Check for a 64-bit object if we didn't find anything.
9492 if test -z "$lt_cv_aix_libpath_"; then
9493 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9496 rm -f core conftest.err conftest.$ac_objext \
9497 conftest$ac_exeext conftest.$ac_ext
9498 if test -z "$lt_cv_aix_libpath_"; then
9499 lt_cv_aix_libpath_="/usr/lib:/lib"
9504 aix_libpath=$lt_cv_aix_libpath_
9507 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9508 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9510 if test "$host_cpu" = ia64; then
9511 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9512 allow_undefined_flag="-z nodefs"
9513 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"
9515 # Determine the default libpath from the value encoded in an
9517 if test "${lt_cv_aix_libpath+set}" = set; then
9518 aix_libpath=$lt_cv_aix_libpath
9520 if ${lt_cv_aix_libpath_+:} false; then :
9521 $as_echo_n "(cached) " >&6
9523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524 /* end confdefs.h. */
9534 if ac_fn_c_try_link "$LINENO"; then :
9536 lt_aix_libpath_sed='
9537 /Import File Strings/,/^$/ {
9539 s/^0 *\([^ ]*\) *$/\1/
9543 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9544 # Check for a 64-bit object if we didn't find anything.
9545 if test -z "$lt_cv_aix_libpath_"; then
9546 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9549 rm -f core conftest.err conftest.$ac_objext \
9550 conftest$ac_exeext conftest.$ac_ext
9551 if test -z "$lt_cv_aix_libpath_"; then
9552 lt_cv_aix_libpath_="/usr/lib:/lib"
9557 aix_libpath=$lt_cv_aix_libpath_
9560 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9561 # Warning - without using the other run time loading flags,
9562 # -berok will link without error, but may produce a broken library.
9563 no_undefined_flag=' ${wl}-bernotok'
9564 allow_undefined_flag=' ${wl}-berok'
9565 if test "$with_gnu_ld" = yes; then
9566 # We only use this code for GNU lds that support --whole-archive.
9567 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9569 # Exported symbols can be pulled into shared objects from archives
9570 whole_archive_flag_spec='$convenience'
9572 archive_cmds_need_lc=yes
9573 # This is similar to how AIX traditionally builds its shared libraries.
9574 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'
9582 # see comment about AmigaOS4 .so support
9583 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584 archive_expsym_cmds=''
9587 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)'
9588 hardcode_libdir_flag_spec='-L$libdir'
9589 hardcode_minus_L=yes
9595 export_dynamic_flag_spec=-rdynamic
9598 cygwin* | mingw* | pw32* | cegcc*)
9599 # When not using gcc, we currently assume that we are using
9600 # Microsoft Visual C++.
9601 # hardcode_libdir_flag_spec is actually meaningless, as there is
9602 # no search path for DLLs.
9603 case $cc_basename in
9606 hardcode_libdir_flag_spec=' '
9607 allow_undefined_flag=unsupported
9608 always_export_symbols=yes
9610 # Tell ltmain to make .lib files, not .a files.
9612 # Tell ltmain to make .dll files, not .so files.
9614 # FIXME: Setting linknames here is a bad hack.
9615 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9616 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9617 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9619 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9621 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9623 # The linker will not automatically build a static lib if we build a DLL.
9624 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9625 enable_shared_with_static_runtimes=yes
9626 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9627 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9629 old_postinstall_cmds='chmod 644 $oldlib'
9630 postlink_cmds='lt_outputfile="@OUTPUT@"~
9631 lt_tool_outputfile="@TOOL_OUTPUT@"~
9632 case $lt_outputfile in
9635 lt_outputfile="$lt_outputfile.exe"
9636 lt_tool_outputfile="$lt_tool_outputfile.exe"
9639 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9640 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9641 $RM "$lt_outputfile.manifest";
9645 # Assume MSVC wrapper
9646 hardcode_libdir_flag_spec=' '
9647 allow_undefined_flag=unsupported
9648 # Tell ltmain to make .lib files, not .a files.
9650 # Tell ltmain to make .dll files, not .so files.
9652 # FIXME: Setting linknames here is a bad hack.
9653 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9654 # The linker will automatically build a .lib file if we build a DLL.
9655 old_archive_from_new_cmds='true'
9656 # FIXME: Should let the user specify the lib program.
9657 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9658 enable_shared_with_static_runtimes=yes
9663 darwin* | rhapsody*)
9666 archive_cmds_need_lc=no
9668 hardcode_automatic=yes
9669 hardcode_shlibpath_var=unsupported
9670 if test "$lt_cv_ld_force_load" = "yes"; then
9671 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9674 whole_archive_flag_spec=''
9676 link_all_deplibs=yes
9677 allow_undefined_flag="$_lt_dar_allow_undefined"
9678 case $cc_basename in
9679 ifort*) _lt_dar_can_shared=yes ;;
9680 *) _lt_dar_can_shared=$GCC ;;
9682 if test "$_lt_dar_can_shared" = "yes"; then
9683 output_verbose_link_cmd=func_echo_all
9684 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9685 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9686 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}"
9687 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}"
9696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9697 hardcode_libdir_flag_spec='-L$libdir'
9698 hardcode_shlibpath_var=no
9701 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9702 # support. Future versions do this automatically, but an explicit c++rt0.o
9703 # does not break anything, and helps significantly (at the cost of a little
9706 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9707 hardcode_libdir_flag_spec='-R$libdir'
9709 hardcode_shlibpath_var=no
9712 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9714 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9716 hardcode_minus_L=yes
9717 hardcode_shlibpath_var=no
9720 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9721 freebsd* | dragonfly*)
9722 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9723 hardcode_libdir_flag_spec='-R$libdir'
9725 hardcode_shlibpath_var=no
9729 if test "$GCC" = yes; then
9730 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9732 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'
9734 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9735 hardcode_libdir_separator=:
9738 # hardcode_minus_L: Not really in the search PATH,
9739 # but as the default location of the library.
9740 hardcode_minus_L=yes
9741 export_dynamic_flag_spec='${wl}-E'
9745 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9746 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9748 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9750 if test "$with_gnu_ld" = no; then
9751 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9752 hardcode_libdir_separator=:
9754 hardcode_direct_absolute=yes
9755 export_dynamic_flag_spec='${wl}-E'
9756 # hardcode_minus_L: Not really in the search PATH,
9757 # but as the default location of the library.
9758 hardcode_minus_L=yes
9763 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9766 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9769 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9772 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9778 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9781 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9785 # Older versions of the 11.00 compiler do not understand -b yet
9786 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9788 $as_echo_n "checking if $CC understands -b... " >&6; }
9789 if ${lt_cv_prog_compiler__b+:} false; then :
9790 $as_echo_n "(cached) " >&6
9792 lt_cv_prog_compiler__b=no
9793 save_LDFLAGS="$LDFLAGS"
9794 LDFLAGS="$LDFLAGS -b"
9795 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9796 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9797 # The linker can only warn and ignore the option if not recognized
9798 # So say no if there are warnings
9799 if test -s conftest.err; then
9800 # Append any errors to the config.log.
9801 cat conftest.err 1>&5
9802 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9803 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9804 if diff conftest.exp conftest.er2 >/dev/null; then
9805 lt_cv_prog_compiler__b=yes
9808 lt_cv_prog_compiler__b=yes
9812 LDFLAGS="$save_LDFLAGS"
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9816 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9818 if test x"$lt_cv_prog_compiler__b" = xyes; then
9819 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9821 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9827 if test "$with_gnu_ld" = no; then
9828 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9829 hardcode_libdir_separator=:
9834 hardcode_shlibpath_var=no
9838 hardcode_direct_absolute=yes
9839 export_dynamic_flag_spec='${wl}-E'
9841 # hardcode_minus_L: Not really in the search PATH,
9842 # but as the default location of the library.
9843 hardcode_minus_L=yes
9849 irix5* | irix6* | nonstopux*)
9850 if test "$GCC" = yes; then
9851 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9852 # Try to use the -exported_symbol ld option, if it does not
9853 # work, assume that -exports_file does not work either and
9854 # implicitly export all symbols.
9855 # This should be the same for all languages, so no per-tag cache variable.
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9857 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9858 if ${lt_cv_irix_exported_symbol+:} false; then :
9859 $as_echo_n "(cached) " >&6
9861 save_LDFLAGS="$LDFLAGS"
9862 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864 /* end confdefs.h. */
9865 int foo (void) { return 0; }
9867 if ac_fn_c_try_link "$LINENO"; then :
9868 lt_cv_irix_exported_symbol=yes
9870 lt_cv_irix_exported_symbol=no
9872 rm -f core conftest.err conftest.$ac_objext \
9873 conftest$ac_exeext conftest.$ac_ext
9874 LDFLAGS="$save_LDFLAGS"
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9877 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9878 if test "$lt_cv_irix_exported_symbol" = yes; then
9879 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9883 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9885 archive_cmds_need_lc='no'
9886 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9887 hardcode_libdir_separator=:
9889 link_all_deplibs=yes
9892 netbsd* | netbsdelf*-gnu)
9893 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9894 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9896 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9898 hardcode_libdir_flag_spec='-R$libdir'
9900 hardcode_shlibpath_var=no
9904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9906 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9907 hardcode_libdir_separator=:
9908 hardcode_shlibpath_var=no
9915 if test -f /usr/libexec/ld.so; then
9917 hardcode_shlibpath_var=no
9918 hardcode_direct_absolute=yes
9919 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9920 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9921 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9922 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9923 export_dynamic_flag_spec='${wl}-E'
9926 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9927 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9928 hardcode_libdir_flag_spec='-R$libdir'
9931 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9932 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9942 hardcode_libdir_flag_spec='-L$libdir'
9943 hardcode_minus_L=yes
9944 allow_undefined_flag=unsupported
9945 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'
9946 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9950 if test "$GCC" = yes; then
9951 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9952 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9954 allow_undefined_flag=' -expect_unresolved \*'
9955 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9957 archive_cmds_need_lc='no'
9958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9959 hardcode_libdir_separator=:
9962 osf4* | osf5*) # as osf3* with the addition of -msym flag
9963 if test "$GCC" = yes; then
9964 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9965 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9968 allow_undefined_flag=' -expect_unresolved \*'
9969 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9970 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~
9971 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9973 # Both c and cxx compiler support -rpath directly
9974 hardcode_libdir_flag_spec='-rpath $libdir'
9976 archive_cmds_need_lc='no'
9977 hardcode_libdir_separator=:
9981 no_undefined_flag=' -z defs'
9982 if test "$GCC" = yes; then
9984 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9985 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9986 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9988 case `$CC -V 2>&1` in
9991 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9992 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9993 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9997 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9998 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9999 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10003 hardcode_libdir_flag_spec='-R$libdir'
10004 hardcode_shlibpath_var=no
10006 solaris2.[0-5] | solaris2.[0-5].*) ;;
10008 # The compiler driver will combine and reorder linker options,
10009 # but understands `-z linker_flag'. GCC discards it without `$wl',
10010 # but is careful enough not to reorder.
10011 # Supported since Solaris 2.6 (maybe 2.5.1?)
10012 if test "$GCC" = yes; then
10013 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10015 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10019 link_all_deplibs=yes
10023 if test "x$host_vendor" = xsequent; then
10024 # Use $CC to link under sequent, because it throws in some extra .o
10025 # files that make .init and .fini sections work.
10026 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10028 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10030 hardcode_libdir_flag_spec='-L$libdir'
10031 hardcode_direct=yes
10032 hardcode_minus_L=yes
10033 hardcode_shlibpath_var=no
10037 case $host_vendor in
10039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10040 hardcode_direct=yes # is this really true???
10043 ## LD is ld it makes a PLAMLIB
10044 ## CC just makes a GrossModule.
10045 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10046 reload_cmds='$CC -r -o $output$reload_objs'
10050 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10051 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10054 runpath_var='LD_RUN_PATH'
10055 hardcode_shlibpath_var=no
10059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10060 hardcode_shlibpath_var=no
10061 export_dynamic_flag_spec='-Bexport'
10065 if test -d /usr/nec; then
10066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10067 hardcode_shlibpath_var=no
10068 runpath_var=LD_RUN_PATH
10069 hardcode_runpath_var=yes
10074 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10075 no_undefined_flag='${wl}-z,text'
10076 archive_cmds_need_lc=no
10077 hardcode_shlibpath_var=no
10078 runpath_var='LD_RUN_PATH'
10080 if test "$GCC" = yes; then
10081 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10082 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10084 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10085 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10089 sysv5* | sco3.2v5* | sco5v6*)
10090 # Note: We can NOT use -z defs as we might desire, because we do not
10091 # link with -lc, and that would cause any symbols used from libc to
10092 # always be unresolved, which means just about no library would
10093 # ever link correctly. If we're not using GNU ld we use -z text
10094 # though, which does catch some bad symbols but isn't as heavy-handed
10096 no_undefined_flag='${wl}-z,text'
10097 allow_undefined_flag='${wl}-z,nodefs'
10098 archive_cmds_need_lc=no
10099 hardcode_shlibpath_var=no
10100 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10101 hardcode_libdir_separator=':'
10102 link_all_deplibs=yes
10103 export_dynamic_flag_spec='${wl}-Bexport'
10104 runpath_var='LD_RUN_PATH'
10106 if test "$GCC" = yes; then
10107 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10108 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10110 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10111 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10117 hardcode_libdir_flag_spec='-L$libdir'
10118 hardcode_shlibpath_var=no
10126 if test x$host_vendor = xsni; then
10128 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10129 export_dynamic_flag_spec='${wl}-Blargedynsym'
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10136 $as_echo "$ld_shlibs" >&6; }
10137 test "$ld_shlibs" = no && can_build_shared=no
10139 with_gnu_ld=$with_gnu_ld
10156 # Do we need to explicitly link libc?
10158 case "x$archive_cmds_need_lc" in
10160 # Assume -lc should be added
10161 archive_cmds_need_lc=yes
10163 if test "$enable_shared" = yes && test "$GCC" = yes; then
10164 case $archive_cmds in
10166 # FIXME: we may have to deal with multi-command sequences.
10169 # Test whether the compiler implicitly links with -lc since on some
10170 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10171 # to ld, don't add -lc before -lgcc.
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10173 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10174 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10175 $as_echo_n "(cached) " >&6
10178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10181 (eval $ac_compile) 2>&5
10183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10184 test $ac_status = 0; } 2>conftest.err; then
10187 libobjs=conftest.$ac_objext
10189 wl=$lt_prog_compiler_wl
10190 pic_flag=$lt_prog_compiler_pic
10196 lt_save_allow_undefined_flag=$allow_undefined_flag
10197 allow_undefined_flag=
10198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10199 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10202 test $ac_status = 0; }
10204 lt_cv_archive_cmds_need_lc=no
10206 lt_cv_archive_cmds_need_lc=yes
10208 allow_undefined_flag=$lt_save_allow_undefined_flag
10210 cat conftest.err 1>&5
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10216 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10217 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10376 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10378 if test "$GCC" = yes; then
10380 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10381 *) lt_awk_arg="/^libraries:/" ;;
10384 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10385 *) lt_sed_strip_eq="s,=/,/,g" ;;
10387 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10388 case $lt_search_path_spec in
10390 # if the path contains ";" then we assume it to be the separator
10391 # otherwise default to the standard path separator (i.e. ":") - it is
10392 # assumed that no part of a normal pathname contains ";" but that should
10393 # okay in the real world where ";" in dirpaths is itself problematic.
10394 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10397 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10400 # Ok, now we have the path, separated by spaces, we can step through it
10401 # and add multilib dir if necessary.
10402 lt_tmp_lt_search_path_spec=
10403 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10404 for lt_sys_path in $lt_search_path_spec; do
10405 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10406 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10408 test -d "$lt_sys_path" && \
10409 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10412 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10413 BEGIN {RS=" "; FS="/|\n";} {
10416 for (lt_i = NF; lt_i > 0; lt_i--) {
10417 if ($lt_i != "" && $lt_i != ".") {
10418 if ($lt_i == "..") {
10421 if (lt_count == 0) {
10422 lt_foo="/" $lt_i lt_foo;
10429 if (lt_foo != "") { lt_freq[lt_foo]++; }
10430 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10432 # AWK program above erroneously prepends '/' to C:/dos/paths
10435 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10436 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10438 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10440 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10442 library_names_spec=
10443 libname_spec='lib$name'
10447 postuninstall_cmds=
10451 shlibpath_overrides_runpath=unknown
10453 dynamic_linker="$host_os ld.so"
10454 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10455 need_lib_prefix=unknown
10456 hardcode_into_libs=no
10458 # when you set need_version to no, make sure it does not cause -set_version
10459 # flags to be left without arguments
10460 need_version=unknown
10464 version_type=linux # correct to gnu/linux during the next big refactor
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10466 shlibpath_var=LIBPATH
10468 # AIX 3 has no versioning support, so we append a major version to the name.
10469 soname_spec='${libname}${release}${shared_ext}$major'
10473 version_type=linux # correct to gnu/linux during the next big refactor
10476 hardcode_into_libs=yes
10477 if test "$host_cpu" = ia64; then
10478 # AIX 5 supports IA64
10479 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10480 shlibpath_var=LD_LIBRARY_PATH
10482 # With GCC up to 2.95.x, collect2 would create an import file
10483 # for dependence libraries. The import file would start with
10484 # the line `#! .'. This would cause the generated library to
10485 # depend on `.', always an invalid library. This was fixed in
10486 # development snapshots of GCC prior to 3.0.
10488 aix4 | aix4.[01] | aix4.[01].*)
10489 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10491 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10494 can_build_shared=no
10498 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10499 # soname into executable. Probably we can add versioning support to
10500 # collect2, so additional links can be useful in future.
10501 if test "$aix_use_runtimelinking" = yes; then
10502 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10503 # instead of lib<name>.a to let people know that these are not
10504 # typical AIX shared libraries.
10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10507 # We preserve .a as extension for shared libraries through AIX4.2
10508 # and later when we are not doing run time linking.
10509 library_names_spec='${libname}${release}.a $libname.a'
10510 soname_spec='${libname}${release}${shared_ext}$major'
10512 shlibpath_var=LIBPATH
10519 # Since July 2007 AmigaOS4 officially supports .so libraries.
10520 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10524 library_names_spec='$libname.ixlibrary $libname.a'
10525 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10526 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10532 library_names_spec='${libname}${shared_ext}'
10533 dynamic_linker="$host_os ld.so"
10534 shlibpath_var=LIBRARY_PATH
10538 version_type=linux # correct to gnu/linux during the next big refactor
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541 soname_spec='${libname}${release}${shared_ext}$major'
10542 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10543 shlibpath_var=LD_LIBRARY_PATH
10544 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10545 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10546 # the default ld.so.conf also contains /usr/contrib/lib and
10547 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10548 # libtool to hard-code these into programs
10551 cygwin* | mingw* | pw32* | cegcc*)
10552 version_type=windows
10557 case $GCC,$cc_basename in
10560 library_names_spec='$libname.dll.a'
10561 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10562 postinstall_cmds='base_file=`basename \${file}`~
10563 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10564 dldir=$destdir/`dirname \$dlpath`~
10565 test -d \$dldir || mkdir -p \$dldir~
10566 $install_prog $dir/$dlname \$dldir/$dlname~
10567 chmod a+x \$dldir/$dlname~
10568 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10569 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10571 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10572 dlpath=$dir/\$dldll~
10574 shlibpath_overrides_runpath=yes
10578 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10579 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10581 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10584 # MinGW DLLs use traditional 'lib' prefix
10585 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10588 # pw32 DLLs use 'pw' prefix rather than 'lib'
10589 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10592 dynamic_linker='Win32 ld.exe'
10597 libname_spec='$name'
10598 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10599 library_names_spec='${libname}.dll.lib'
10603 sys_lib_search_path_spec=
10606 for lt_path in $LIB
10609 # Let DOS variable expansion print the short 8.3 style file name.
10610 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10611 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10614 # Convert to MSYS style.
10615 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10618 # Convert to unix form, then to dos form, then back to unix form
10619 # but this time dos style (no spaces!) so that the unix form looks
10620 # like /cygdrive/c/PROGRA~1:/cygdr...
10621 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10622 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10623 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10626 sys_lib_search_path_spec="$LIB"
10627 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10628 # It is most probably a Windows format PATH.
10629 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10631 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10633 # FIXME: find the short name or the path components, as spaces are
10634 # common. (e.g. "Program Files" -> "PROGRA~1")
10638 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10639 postinstall_cmds='base_file=`basename \${file}`~
10640 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10641 dldir=$destdir/`dirname \$dlpath`~
10642 test -d \$dldir || mkdir -p \$dldir~
10643 $install_prog $dir/$dlname \$dldir/$dlname'
10644 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10645 dlpath=$dir/\$dldll~
10647 shlibpath_overrides_runpath=yes
10648 dynamic_linker='Win32 link.exe'
10652 # Assume MSVC wrapper
10653 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10654 dynamic_linker='Win32 ld.exe'
10657 # FIXME: first we should search . and the directory the executable is in
10661 darwin* | rhapsody*)
10662 dynamic_linker="$host_os dyld"
10663 version_type=darwin
10666 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10667 soname_spec='${libname}${release}${major}$shared_ext'
10668 shlibpath_overrides_runpath=yes
10669 shlibpath_var=DYLD_LIBRARY_PATH
10670 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10672 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10673 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10677 version_type=linux # correct to gnu/linux during the next big refactor
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 shlibpath_var=LD_LIBRARY_PATH
10685 freebsd* | dragonfly*)
10686 # DragonFly does not have aout. When/if they implement a new
10687 # versioning mechanism, adjust this.
10688 if test -x /usr/bin/objformat; then
10689 objformat=`/usr/bin/objformat`
10692 freebsd[23].*) objformat=aout ;;
10693 *) objformat=elf ;;
10696 version_type=freebsd-$objformat
10697 case $version_type in
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10704 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10708 shlibpath_var=LD_LIBRARY_PATH
10711 shlibpath_overrides_runpath=yes
10713 freebsd3.[01]* | freebsdelf3.[01]*)
10714 shlibpath_overrides_runpath=yes
10715 hardcode_into_libs=yes
10717 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10718 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10719 shlibpath_overrides_runpath=no
10720 hardcode_into_libs=yes
10722 *) # from 4.6 on, and DragonFly
10723 shlibpath_overrides_runpath=yes
10724 hardcode_into_libs=yes
10730 version_type=linux # correct to gnu/linux during the next big refactor
10733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10734 soname_spec='${libname}${release}${shared_ext}$major'
10735 shlibpath_var=LD_LIBRARY_PATH
10736 shlibpath_overrides_runpath=no
10737 hardcode_into_libs=yes
10741 version_type=linux # correct to gnu/linux during the next big refactor
10744 dynamic_linker="$host_os runtime_loader"
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10746 soname_spec='${libname}${release}${shared_ext}$major'
10747 shlibpath_var=LIBRARY_PATH
10748 shlibpath_overrides_runpath=yes
10749 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10750 hardcode_into_libs=yes
10753 hpux9* | hpux10* | hpux11*)
10754 # Give a soname corresponding to the major version so that dld.sl refuses to
10755 # link against other versions.
10762 hardcode_into_libs=yes
10763 dynamic_linker="$host_os dld.so"
10764 shlibpath_var=LD_LIBRARY_PATH
10765 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767 soname_spec='${libname}${release}${shared_ext}$major'
10768 if test "X$HPUX_IA64_MODE" = X32; then
10769 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10771 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10773 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10777 hardcode_into_libs=yes
10778 dynamic_linker="$host_os dld.sl"
10779 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10780 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10782 soname_spec='${libname}${release}${shared_ext}$major'
10783 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10784 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10788 dynamic_linker="$host_os dld.sl"
10789 shlibpath_var=SHLIB_PATH
10790 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10792 soname_spec='${libname}${release}${shared_ext}$major'
10795 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10796 postinstall_cmds='chmod 555 $lib'
10797 # or fails outright, so override atomically:
10798 install_override_mode=555
10802 version_type=linux # correct to gnu/linux during the next big refactor
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10806 soname_spec='${libname}${release}${shared_ext}$major'
10807 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10808 shlibpath_var=LD_LIBRARY_PATH
10809 shlibpath_overrides_runpath=no
10810 hardcode_into_libs=yes
10813 irix5* | irix6* | nonstopux*)
10815 nonstopux*) version_type=nonstopux ;;
10817 if test "$lt_cv_prog_gnu_ld" = yes; then
10818 version_type=linux # correct to gnu/linux during the next big refactor
10825 soname_spec='${libname}${release}${shared_ext}$major'
10826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10828 irix5* | nonstopux*)
10829 libsuff= shlibsuff=
10832 case $LD in # libtool.m4 will add one of these switches to LD
10833 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10834 libsuff= shlibsuff= libmagic=32-bit;;
10835 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10836 libsuff=32 shlibsuff=N32 libmagic=N32;;
10837 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10838 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10839 *) libsuff= shlibsuff= libmagic=never-match;;
10843 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10844 shlibpath_overrides_runpath=no
10845 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10846 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10847 hardcode_into_libs=yes
10850 # No shared lib support for Linux oldld, aout, or coff.
10851 linux*oldld* | linux*aout* | linux*coff*)
10855 # This must be glibc/ELF.
10856 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10857 version_type=linux # correct to gnu/linux during the next big refactor
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10861 soname_spec='${libname}${release}${shared_ext}$major'
10862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10863 shlibpath_var=LD_LIBRARY_PATH
10864 shlibpath_overrides_runpath=no
10866 # Some binutils ld are patched to set DT_RUNPATH
10867 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10868 $as_echo_n "(cached) " >&6
10870 lt_cv_shlibpath_overrides_runpath=no
10871 save_LDFLAGS=$LDFLAGS
10872 save_libdir=$libdir
10873 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10874 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h. */
10886 if ac_fn_c_try_link "$LINENO"; then :
10887 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10888 lt_cv_shlibpath_overrides_runpath=yes
10891 rm -f core conftest.err conftest.$ac_objext \
10892 conftest$ac_exeext conftest.$ac_ext
10893 LDFLAGS=$save_LDFLAGS
10894 libdir=$save_libdir
10898 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10900 # This implies no fast_install, which is unacceptable.
10901 # Some rework will be needed to allow for fast_install
10902 # before this can be enabled.
10903 hardcode_into_libs=yes
10905 # Append ld.so.conf contents to the search path
10906 if test -f /etc/ld.so.conf; then
10907 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10908 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10911 # We used to test for /lib/ld.so.1 and disable shared libraries on
10912 # powerpc, because MkLinux only supported shared libraries with the
10913 # GNU dynamic linker. Since this was broken with cross compilers,
10914 # most powerpc-linux boxes support dynamic linking these days and
10915 # people can always --disable-shared, the test was removed, and we
10916 # assume the GNU/Linux dynamic linker is in use.
10917 dynamic_linker='GNU/Linux ld.so'
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10925 soname_spec='${libname}${release}${shared_ext}$major'
10926 shlibpath_var=LD_LIBRARY_PATH
10927 shlibpath_overrides_runpath=no
10928 hardcode_into_libs=yes
10929 dynamic_linker='NetBSD ld.elf_so'
10936 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10939 dynamic_linker='NetBSD (a.out) ld.so'
10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10942 soname_spec='${libname}${release}${shared_ext}$major'
10943 dynamic_linker='NetBSD ld.elf_so'
10945 shlibpath_var=LD_LIBRARY_PATH
10946 shlibpath_overrides_runpath=yes
10947 hardcode_into_libs=yes
10951 version_type=linux # correct to gnu/linux during the next big refactor
10952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10953 shlibpath_var=LD_LIBRARY_PATH
10954 shlibpath_overrides_runpath=yes
10961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10962 soname_spec='${libname}${release}${shared_ext}$major'
10963 shlibpath_var=LD_LIBRARY_PATH
10964 shlibpath_overrides_runpath=no
10965 hardcode_into_libs=yes
10966 dynamic_linker='ldqnx.so'
10971 sys_lib_dlsearch_path_spec="/usr/lib"
10973 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10975 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10976 *) need_version=no ;;
10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10980 shlibpath_var=LD_LIBRARY_PATH
10981 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10983 openbsd2.[89] | openbsd2.[89].*)
10984 shlibpath_overrides_runpath=no
10987 shlibpath_overrides_runpath=yes
10991 shlibpath_overrides_runpath=yes
10996 libname_spec='$name'
10999 library_names_spec='$libname${shared_ext} $libname.a'
11000 dynamic_linker='OS/2 ld.exe'
11001 shlibpath_var=LIBPATH
11004 osf3* | osf4* | osf5*)
11008 soname_spec='${libname}${release}${shared_ext}$major'
11009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11010 shlibpath_var=LD_LIBRARY_PATH
11011 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11012 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11020 version_type=linux # correct to gnu/linux during the next big refactor
11023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11024 soname_spec='${libname}${release}${shared_ext}$major'
11025 shlibpath_var=LD_LIBRARY_PATH
11026 shlibpath_overrides_runpath=yes
11027 hardcode_into_libs=yes
11028 # ldd complains unless libraries are executable
11029 postinstall_cmds='chmod +x $lib'
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11035 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11036 shlibpath_var=LD_LIBRARY_PATH
11037 shlibpath_overrides_runpath=yes
11038 if test "$with_gnu_ld" = yes; then
11045 version_type=linux # correct to gnu/linux during the next big refactor
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047 soname_spec='${libname}${release}${shared_ext}$major'
11048 shlibpath_var=LD_LIBRARY_PATH
11049 case $host_vendor in
11051 shlibpath_overrides_runpath=no
11053 runpath_var=LD_RUN_PATH
11061 shlibpath_overrides_runpath=no
11062 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11068 if test -d /usr/nec ;then
11069 version_type=linux # correct to gnu/linux during the next big refactor
11070 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11071 soname_spec='$libname${shared_ext}.$major'
11072 shlibpath_var=LD_LIBRARY_PATH
11076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11077 version_type=freebsd-elf
11080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11081 soname_spec='${libname}${release}${shared_ext}$major'
11082 shlibpath_var=LD_LIBRARY_PATH
11083 shlibpath_overrides_runpath=yes
11084 hardcode_into_libs=yes
11085 if test "$with_gnu_ld" = yes; then
11086 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11088 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11091 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11095 sys_lib_dlsearch_path_spec='/usr/lib'
11099 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11100 version_type=linux # correct to gnu/linux during the next big refactor
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104 shlibpath_var=LD_LIBRARY_PATH
11105 shlibpath_overrides_runpath=no
11106 hardcode_into_libs=yes
11110 version_type=linux # correct to gnu/linux during the next big refactor
11111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11112 soname_spec='${libname}${release}${shared_ext}$major'
11113 shlibpath_var=LD_LIBRARY_PATH
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11121 $as_echo "$dynamic_linker" >&6; }
11122 test "$dynamic_linker" = no && can_build_shared=no
11124 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11125 if test "$GCC" = yes; then
11126 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11129 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11130 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11132 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11133 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11228 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11230 if test -n "$hardcode_libdir_flag_spec" ||
11231 test -n "$runpath_var" ||
11232 test "X$hardcode_automatic" = "Xyes" ; then
11234 # We can hardcode non-existent directories.
11235 if test "$hardcode_direct" != no &&
11236 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11237 # have to relink, otherwise we might link with an installed library
11238 # when we should be linking with a yet-to-be-installed one
11239 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11240 test "$hardcode_minus_L" != no; then
11241 # Linking always hardcodes the temporary library directory.
11242 hardcode_action=relink
11244 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11245 hardcode_action=immediate
11248 # We cannot hardcode anything, or else we can only hardcode existing
11250 hardcode_action=unsupported
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11253 $as_echo "$hardcode_action" >&6; }
11255 if test "$hardcode_action" = relink ||
11256 test "$inherit_rpath" = yes; then
11257 # Fast installation is not supported
11258 enable_fast_install=no
11259 elif test "$shlibpath_overrides_runpath" = yes ||
11260 test "$enable_shared" = no; then
11261 # Fast installation is not necessary
11262 enable_fast_install=needless
11270 if test "x$enable_dlopen" != xyes; then
11271 enable_dlopen=unknown
11272 enable_dlopen_self=unknown
11273 enable_dlopen_self_static=unknown
11280 lt_cv_dlopen="load_add_on"
11282 lt_cv_dlopen_self=yes
11285 mingw* | pw32* | cegcc*)
11286 lt_cv_dlopen="LoadLibrary"
11291 lt_cv_dlopen="dlopen"
11296 # if libdl is installed we need to link against it
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11298 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11299 if ${ac_cv_lib_dl_dlopen+:} false; then :
11300 $as_echo_n "(cached) " >&6
11302 ac_check_lib_save_LIBS=$LIBS
11304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11305 /* end confdefs.h. */
11307 /* Override any GCC internal prototype to avoid an error.
11308 Use char because int might match the return type of a GCC
11309 builtin and then its argument prototype would still apply. */
11322 if ac_fn_c_try_link "$LINENO"; then :
11323 ac_cv_lib_dl_dlopen=yes
11325 ac_cv_lib_dl_dlopen=no
11327 rm -f core conftest.err conftest.$ac_objext \
11328 conftest$ac_exeext conftest.$ac_ext
11329 LIBS=$ac_check_lib_save_LIBS
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11332 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11333 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11334 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11337 lt_cv_dlopen="dyld"
11339 lt_cv_dlopen_self=yes
11346 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11347 if test "x$ac_cv_func_shl_load" = xyes; then :
11348 lt_cv_dlopen="shl_load"
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11351 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11352 if ${ac_cv_lib_dld_shl_load+:} false; then :
11353 $as_echo_n "(cached) " >&6
11355 ac_check_lib_save_LIBS=$LIBS
11357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11358 /* end confdefs.h. */
11360 /* Override any GCC internal prototype to avoid an error.
11361 Use char because int might match the return type of a GCC
11362 builtin and then its argument prototype would still apply. */
11370 return shl_load ();
11375 if ac_fn_c_try_link "$LINENO"; then :
11376 ac_cv_lib_dld_shl_load=yes
11378 ac_cv_lib_dld_shl_load=no
11380 rm -f core conftest.err conftest.$ac_objext \
11381 conftest$ac_exeext conftest.$ac_ext
11382 LIBS=$ac_check_lib_save_LIBS
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11385 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11386 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11387 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11389 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11390 if test "x$ac_cv_func_dlopen" = xyes; then :
11391 lt_cv_dlopen="dlopen"
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11394 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11395 if ${ac_cv_lib_dl_dlopen+:} false; then :
11396 $as_echo_n "(cached) " >&6
11398 ac_check_lib_save_LIBS=$LIBS
11400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11401 /* end confdefs.h. */
11403 /* Override any GCC internal prototype to avoid an error.
11404 Use char because int might match the return type of a GCC
11405 builtin and then its argument prototype would still apply. */
11418 if ac_fn_c_try_link "$LINENO"; then :
11419 ac_cv_lib_dl_dlopen=yes
11421 ac_cv_lib_dl_dlopen=no
11423 rm -f core conftest.err conftest.$ac_objext \
11424 conftest$ac_exeext conftest.$ac_ext
11425 LIBS=$ac_check_lib_save_LIBS
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11428 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11429 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11430 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11433 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11434 if ${ac_cv_lib_svld_dlopen+:} false; then :
11435 $as_echo_n "(cached) " >&6
11437 ac_check_lib_save_LIBS=$LIBS
11438 LIBS="-lsvld $LIBS"
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h. */
11442 /* Override any GCC internal prototype to avoid an error.
11443 Use char because int might match the return type of a GCC
11444 builtin and then its argument prototype would still apply. */
11457 if ac_fn_c_try_link "$LINENO"; then :
11458 ac_cv_lib_svld_dlopen=yes
11460 ac_cv_lib_svld_dlopen=no
11462 rm -f core conftest.err conftest.$ac_objext \
11463 conftest$ac_exeext conftest.$ac_ext
11464 LIBS=$ac_check_lib_save_LIBS
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11467 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11468 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11469 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11472 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11473 if ${ac_cv_lib_dld_dld_link+:} false; then :
11474 $as_echo_n "(cached) " >&6
11476 ac_check_lib_save_LIBS=$LIBS
11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h. */
11481 /* Override any GCC internal prototype to avoid an error.
11482 Use char because int might match the return type of a GCC
11483 builtin and then its argument prototype would still apply. */
11491 return dld_link ();
11496 if ac_fn_c_try_link "$LINENO"; then :
11497 ac_cv_lib_dld_dld_link=yes
11499 ac_cv_lib_dld_dld_link=no
11501 rm -f core conftest.err conftest.$ac_objext \
11502 conftest$ac_exeext conftest.$ac_ext
11503 LIBS=$ac_check_lib_save_LIBS
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11506 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11507 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11508 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11529 if test "x$lt_cv_dlopen" != xno; then
11535 case $lt_cv_dlopen in
11537 save_CPPFLAGS="$CPPFLAGS"
11538 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11540 save_LDFLAGS="$LDFLAGS"
11541 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11544 LIBS="$lt_cv_dlopen_libs $LIBS"
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11547 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11548 if ${lt_cv_dlopen_self+:} false; then :
11549 $as_echo_n "(cached) " >&6
11551 if test "$cross_compiling" = yes; then :
11552 lt_cv_dlopen_self=cross
11554 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11555 lt_status=$lt_dlunknown
11556 cat > conftest.$ac_ext <<_LT_EOF
11557 #line $LINENO "configure"
11558 #include "confdefs.h"
11567 # define LT_DLGLOBAL RTLD_GLOBAL
11570 # define LT_DLGLOBAL DL_GLOBAL
11572 # define LT_DLGLOBAL 0
11576 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11577 find out it does not work in some platform. */
11578 #ifndef LT_DLLAZY_OR_NOW
11580 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11583 # define LT_DLLAZY_OR_NOW DL_LAZY
11586 # define LT_DLLAZY_OR_NOW RTLD_NOW
11589 # define LT_DLLAZY_OR_NOW DL_NOW
11591 # define LT_DLLAZY_OR_NOW 0
11598 /* When -fvisbility=hidden is used, assume the code has been annotated
11599 correspondingly for the symbols needed. */
11600 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11601 int fnord () __attribute__((visibility("default")));
11604 int fnord () { return 42; }
11607 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11608 int status = $lt_dlunknown;
11612 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11615 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11616 else puts (dlerror ());
11618 /* dlclose (self); */
11626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11627 (eval $ac_link) 2>&5
11629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11630 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11631 (./conftest; exit; ) >&5 2>/dev/null
11633 case x$lt_status in
11634 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11635 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11636 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11639 # compilation failed
11640 lt_cv_dlopen_self=no
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11648 $as_echo "$lt_cv_dlopen_self" >&6; }
11650 if test "x$lt_cv_dlopen_self" = xyes; then
11651 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11653 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11654 if ${lt_cv_dlopen_self_static+:} false; then :
11655 $as_echo_n "(cached) " >&6
11657 if test "$cross_compiling" = yes; then :
11658 lt_cv_dlopen_self_static=cross
11660 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11661 lt_status=$lt_dlunknown
11662 cat > conftest.$ac_ext <<_LT_EOF
11663 #line $LINENO "configure"
11664 #include "confdefs.h"
11673 # define LT_DLGLOBAL RTLD_GLOBAL
11676 # define LT_DLGLOBAL DL_GLOBAL
11678 # define LT_DLGLOBAL 0
11682 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11683 find out it does not work in some platform. */
11684 #ifndef LT_DLLAZY_OR_NOW
11686 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11689 # define LT_DLLAZY_OR_NOW DL_LAZY
11692 # define LT_DLLAZY_OR_NOW RTLD_NOW
11695 # define LT_DLLAZY_OR_NOW DL_NOW
11697 # define LT_DLLAZY_OR_NOW 0
11704 /* When -fvisbility=hidden is used, assume the code has been annotated
11705 correspondingly for the symbols needed. */
11706 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11707 int fnord () __attribute__((visibility("default")));
11710 int fnord () { return 42; }
11713 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11714 int status = $lt_dlunknown;
11718 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11721 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11722 else puts (dlerror ());
11724 /* dlclose (self); */
11732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11733 (eval $ac_link) 2>&5
11735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11736 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11737 (./conftest; exit; ) >&5 2>/dev/null
11739 case x$lt_status in
11740 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11741 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11742 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11745 # compilation failed
11746 lt_cv_dlopen_self_static=no
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11754 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11757 CPPFLAGS="$save_CPPFLAGS"
11758 LDFLAGS="$save_LDFLAGS"
11763 case $lt_cv_dlopen_self in
11764 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11765 *) enable_dlopen_self=unknown ;;
11768 case $lt_cv_dlopen_self_static in
11769 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11770 *) enable_dlopen_self_static=unknown ;;
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11793 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11794 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11795 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11796 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11798 $as_echo "yes" >&6; }
11800 # FIXME - insert some real tests, host_os isn't really good enough
11803 if test -n "$STRIP" ; then
11804 striplib="$STRIP -x"
11805 old_striplib="$STRIP -S"
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11807 $as_echo "yes" >&6; }
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810 $as_echo "no" >&6; }
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815 $as_echo "no" >&6; }
11831 # Report which library types will actually be built
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11833 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11835 $as_echo "$can_build_shared" >&6; }
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11838 $as_echo_n "checking whether to build shared libraries... " >&6; }
11839 test "$can_build_shared" = "no" && enable_shared=no
11841 # On AIX, shared libraries and static libraries use the same namespace, and
11842 # are all built from PIC.
11845 test "$enable_shared" = yes && enable_static=no
11846 if test -n "$RANLIB"; then
11847 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11848 postinstall_cmds='$RANLIB $lib'
11853 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11854 test "$enable_shared" = yes && enable_static=no
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11859 $as_echo "$enable_shared" >&6; }
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11862 $as_echo_n "checking whether to build static libraries... " >&6; }
11863 # Make sure either enable_shared or enable_static is yes.
11864 test "$enable_shared" = yes || enable_static=yes
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11866 $as_echo "$enable_static" >&6; }
11873 ac_cpp='$CPP $CPPFLAGS'
11874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11894 ac_config_commands="$ac_config_commands libtool"
11899 # Only expand once:
11911 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11912 if test -n "$ac_tool_prefix"; then
11913 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11914 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11916 $as_echo_n "checking for $ac_word... " >&6; }
11917 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11918 $as_echo_n "(cached) " >&6
11920 case $PKG_CONFIG in
11922 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in $PATH
11929 test -z "$as_dir" && as_dir=.
11930 for ac_exec_ext in '' $ac_executable_extensions; do
11931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11932 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11943 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11944 if test -n "$PKG_CONFIG"; then
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11946 $as_echo "$PKG_CONFIG" >&6; }
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 $as_echo "no" >&6; }
11954 if test -z "$ac_cv_path_PKG_CONFIG"; then
11955 ac_pt_PKG_CONFIG=$PKG_CONFIG
11956 # Extract the first word of "pkg-config", so it can be a program name with args.
11957 set dummy pkg-config; ac_word=$2
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959 $as_echo_n "checking for $ac_word... " >&6; }
11960 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11961 $as_echo_n "(cached) " >&6
11963 case $ac_pt_PKG_CONFIG in
11965 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11969 for as_dir in $PATH
11972 test -z "$as_dir" && as_dir=.
11973 for ac_exec_ext in '' $ac_executable_extensions; do
11974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11975 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11986 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11987 if test -n "$ac_pt_PKG_CONFIG"; then
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11989 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992 $as_echo "no" >&6; }
11995 if test "x$ac_pt_PKG_CONFIG" = x; then
11998 case $cross_compiling:$ac_tool_warned in
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12002 ac_tool_warned=yes ;;
12004 PKG_CONFIG=$ac_pt_PKG_CONFIG
12007 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12011 if test -n "$PKG_CONFIG"; then
12012 _pkg_min_version=0.9.0
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12014 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12015 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12017 $as_echo "yes" >&6; }
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020 $as_echo "no" >&6; }
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTest" >&5
12027 $as_echo_n "checking for GTest... " >&6; }
12029 if test -n "$GTest_CFLAGS"; then
12030 pkg_cv_GTest_CFLAGS="$GTest_CFLAGS"
12031 elif test -n "$PKG_CONFIG"; then
12032 if test -n "$PKG_CONFIG" && \
12033 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
12034 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
12036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12037 test $ac_status = 0; }; then
12038 pkg_cv_GTest_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16" 2>/dev/null`
12039 test "x$?" != "x0" && pkg_failed=yes
12046 if test -n "$GTest_LIBS"; then
12047 pkg_cv_GTest_LIBS="$GTest_LIBS"
12048 elif test -n "$PKG_CONFIG"; then
12049 if test -n "$PKG_CONFIG" && \
12050 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
12051 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
12053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12054 test $ac_status = 0; }; then
12055 pkg_cv_GTest_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16" 2>/dev/null`
12056 test "x$?" != "x0" && pkg_failed=yes
12066 if test $pkg_failed = yes; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068 $as_echo "no" >&6; }
12070 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12071 _pkg_short_errors_supported=yes
12073 _pkg_short_errors_supported=no
12075 if test $_pkg_short_errors_supported = yes; then
12076 GTest_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.16" 2>&1`
12078 GTest_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.16" 2>&1`
12080 # Put the nasty error message in config.log where it belongs
12081 echo "$GTest_PKG_ERRORS" >&5
12084 elif test $pkg_failed = untried; then
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12086 $as_echo "no" >&6; }
12089 GTest_CFLAGS=$pkg_cv_GTest_CFLAGS
12090 GTest_LIBS=$pkg_cv_GTest_LIBS
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12092 $as_echo "yes" >&6; }
12095 if test x$gtest = xyes; then
12097 HAVE_GTEST_FALSE='#'
12099 HAVE_GTEST_TRUE='#'
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking operating system" >&5
12105 $as_echo_n "checking operating system... " >&6; }
12106 case "$target_os" in
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32" >&5
12109 $as_echo "Win32" >&6; }
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
12114 $as_echo "Darwin" >&6; }
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
12119 $as_echo "$target_os" >&6; }
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGUPNP" >&5
12127 $as_echo_n "checking for LIBGUPNP... " >&6; }
12129 if test -n "$LIBGUPNP_CFLAGS"; then
12130 pkg_cv_LIBGUPNP_CFLAGS="$LIBGUPNP_CFLAGS"
12131 elif test -n "$PKG_CONFIG"; then
12132 if test -n "$PKG_CONFIG" && \
12133 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.0 \\
12136 gssdp-1.0 >= 0.11.2 \\
12137 libsoup-2.4 >= 2.28.2 \\
12140 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 \
12143 gssdp-1.0 >= 0.11.2 \
12144 libsoup-2.4 >= 2.28.2 \
12148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12149 test $ac_status = 0; }; then
12150 pkg_cv_LIBGUPNP_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.24.0 \
12153 gssdp-1.0 >= 0.11.2 \
12154 libsoup-2.4 >= 2.28.2 \
12156 $UUID" 2>/dev/null`
12157 test "x$?" != "x0" && pkg_failed=yes
12164 if test -n "$LIBGUPNP_LIBS"; then
12165 pkg_cv_LIBGUPNP_LIBS="$LIBGUPNP_LIBS"
12166 elif test -n "$PKG_CONFIG"; then
12167 if test -n "$PKG_CONFIG" && \
12168 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.0 \\
12171 gssdp-1.0 >= 0.11.2 \\
12172 libsoup-2.4 >= 2.28.2 \\
12175 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 \
12178 gssdp-1.0 >= 0.11.2 \
12179 libsoup-2.4 >= 2.28.2 \
12183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12184 test $ac_status = 0; }; then
12185 pkg_cv_LIBGUPNP_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.24.0 \
12188 gssdp-1.0 >= 0.11.2 \
12189 libsoup-2.4 >= 2.28.2 \
12191 $UUID" 2>/dev/null`
12192 test "x$?" != "x0" && pkg_failed=yes
12202 if test $pkg_failed = yes; then
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12206 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12207 _pkg_short_errors_supported=yes
12209 _pkg_short_errors_supported=no
12211 if test $_pkg_short_errors_supported = yes; then
12212 LIBGUPNP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.24.0 \
12215 gssdp-1.0 >= 0.11.2 \
12216 libsoup-2.4 >= 2.28.2 \
12220 LIBGUPNP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.24.0 \
12223 gssdp-1.0 >= 0.11.2 \
12224 libsoup-2.4 >= 2.28.2 \
12228 # Put the nasty error message in config.log where it belongs
12229 echo "$LIBGUPNP_PKG_ERRORS" >&5
12231 as_fn_error $? "Package requirements (glib-2.0 >= 2.24.0 \
12234 gssdp-1.0 >= 0.11.2 \
12235 libsoup-2.4 >= 2.28.2 \
12237 $UUID) were not met:
12239 $LIBGUPNP_PKG_ERRORS
12241 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12242 installed software in a non-standard prefix.
12244 Alternatively, you may set the environment variables LIBGUPNP_CFLAGS
12245 and LIBGUPNP_LIBS to avoid the need to call pkg-config.
12246 See the pkg-config man page for more details." "$LINENO" 5
12247 elif test $pkg_failed = untried; then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249 $as_echo "no" >&6; }
12250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12252 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12253 is in your PATH or set the PKG_CONFIG environment variable to the full
12254 path to pkg-config.
12256 Alternatively, you may set the environment variables LIBGUPNP_CFLAGS
12257 and LIBGUPNP_LIBS to avoid the need to call pkg-config.
12258 See the pkg-config man page for more details.
12260 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12261 See \`config.log' for more details" "$LINENO" 5; }
12263 LIBGUPNP_CFLAGS=$pkg_cv_LIBGUPNP_CFLAGS
12264 LIBGUPNP_LIBS=$pkg_cv_LIBGUPNP_LIBS
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12266 $as_echo "yes" >&6; }
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
12273 $as_echo_n "checking for GTHREAD... " >&6; }
12275 if test -n "$GTHREAD_CFLAGS"; then
12276 pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
12277 elif test -n "$PKG_CONFIG"; then
12278 if test -n "$PKG_CONFIG" && \
12279 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
12280 ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
12282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12283 test $ac_status = 0; }; then
12284 pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null`
12285 test "x$?" != "x0" && pkg_failed=yes
12292 if test -n "$GTHREAD_LIBS"; then
12293 pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
12294 elif test -n "$PKG_CONFIG"; then
12295 if test -n "$PKG_CONFIG" && \
12296 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
12297 ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
12299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12300 test $ac_status = 0; }; then
12301 pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null`
12302 test "x$?" != "x0" && pkg_failed=yes
12312 if test $pkg_failed = yes; then
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314 $as_echo "no" >&6; }
12316 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12317 _pkg_short_errors_supported=yes
12319 _pkg_short_errors_supported=no
12321 if test $_pkg_short_errors_supported = yes; then
12322 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0" 2>&1`
12324 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0" 2>&1`
12326 # Put the nasty error message in config.log where it belongs
12327 echo "$GTHREAD_PKG_ERRORS" >&5
12329 as_fn_error $? "Package requirements (gthread-2.0) were not met:
12331 $GTHREAD_PKG_ERRORS
12333 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12334 installed software in a non-standard prefix.
12336 Alternatively, you may set the environment variables GTHREAD_CFLAGS
12337 and GTHREAD_LIBS to avoid the need to call pkg-config.
12338 See the pkg-config man page for more details." "$LINENO" 5
12339 elif test $pkg_failed = untried; then
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341 $as_echo "no" >&6; }
12342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12344 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12345 is in your PATH or set the PKG_CONFIG environment variable to the full
12346 path to pkg-config.
12348 Alternatively, you may set the environment variables GTHREAD_CFLAGS
12349 and GTHREAD_LIBS to avoid the need to call pkg-config.
12350 See the pkg-config man page for more details.
12352 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12353 See \`config.log' for more details" "$LINENO" 5; }
12355 GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
12356 GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12358 $as_echo "yes" >&6; }
12363 # Check whether --with-context_manager was given.
12364 if test "${with_context_manager+set}" = set; then :
12365 withval=$with_context_manager;
12367 with_context_manager="none"
12371 if test "x$with_context_manager" = "xnone"; then
12372 case "$target_os" in
12374 with_context_manager="linux"
12377 with_context_manager="unix"
12382 for ac_header in sys/socket.h linux/rtnetlink.h
12384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12385 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " #ifdef HAVE_SYS_SOCKET_H
12386 #include <sys/socket.h>
12390 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12391 cat >>confdefs.h <<_ACEOF
12392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12401 if test "x$HAVE_NETLINK" = "xyes"; then
12403 HAVE_NETLINK_FALSE='#'
12405 HAVE_NETLINK_TRUE='#'
12406 HAVE_NETLINK_FALSE=
12411 for ac_header in linux/wireless.h
12413 ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" " #ifdef HAVE_SYS_SOCKET_H
12414 #include <sys/socket.h>
12418 if test "x$ac_cv_header_linux_wireless_h" = xyes; then :
12419 cat >>confdefs.h <<_ACEOF
12420 #define HAVE_LINUX_WIRELESS_H 1
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Context Manager backend to use" >&5
12429 $as_echo_n "checking Context Manager backend to use... " >&6; }
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_context_manager}" >&5
12431 $as_echo "${with_context_manager}" >&6; }
12433 if test "x$with_context_manager" = "xnetwork-manager"; then
12434 USE_NETWORK_MANAGER_TRUE=
12435 USE_NETWORK_MANAGER_FALSE='#'
12437 USE_NETWORK_MANAGER_TRUE='#'
12438 USE_NETWORK_MANAGER_FALSE=
12441 if test "x$with_context_manager" = "xnetwork-manager"; then :
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
12445 $as_echo_n "checking for GIO... " >&6; }
12447 if test -n "$GIO_CFLAGS"; then
12448 pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
12449 elif test -n "$PKG_CONFIG"; then
12450 if test -n "$PKG_CONFIG" && \
12451 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
12452 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
12454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12455 test $ac_status = 0; }; then
12456 pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
12457 test "x$?" != "x0" && pkg_failed=yes
12464 if test -n "$GIO_LIBS"; then
12465 pkg_cv_GIO_LIBS="$GIO_LIBS"
12466 elif test -n "$PKG_CONFIG"; then
12467 if test -n "$PKG_CONFIG" && \
12468 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
12469 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
12471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12472 test $ac_status = 0; }; then
12473 pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
12474 test "x$?" != "x0" && pkg_failed=yes
12484 if test $pkg_failed = yes; then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486 $as_echo "no" >&6; }
12488 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12489 _pkg_short_errors_supported=yes
12491 _pkg_short_errors_supported=no
12493 if test $_pkg_short_errors_supported = yes; then
12494 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
12496 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
12498 # Put the nasty error message in config.log where it belongs
12499 echo "$GIO_PKG_ERRORS" >&5
12501 as_fn_error $? "Package requirements (gio-2.0 >= 2.26) were not met:
12505 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12506 installed software in a non-standard prefix.
12508 Alternatively, you may set the environment variables GIO_CFLAGS
12509 and GIO_LIBS to avoid the need to call pkg-config.
12510 See the pkg-config man page for more details." "$LINENO" 5
12511 elif test $pkg_failed = untried; then
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513 $as_echo "no" >&6; }
12514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12516 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12517 is in your PATH or set the PKG_CONFIG environment variable to the full
12518 path to pkg-config.
12520 Alternatively, you may set the environment variables GIO_CFLAGS
12521 and GIO_LIBS to avoid the need to call pkg-config.
12522 See the pkg-config man page for more details.
12524 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12525 See \`config.log' for more details" "$LINENO" 5; }
12527 GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
12528 GIO_LIBS=$pkg_cv_GIO_LIBS
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12530 $as_echo "yes" >&6; }
12535 if test "x$with_context_manager" = "xconnman"; then
12537 USE_CONNMAN_FALSE='#'
12539 USE_CONNMAN_TRUE='#'
12544 if test "x$with_context_manager" = "xconnman"; then
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONNMAN" >&5
12548 $as_echo_n "checking for CONNMAN... " >&6; }
12550 if test -n "$CONNMAN_CFLAGS"; then
12551 pkg_cv_CONNMAN_CFLAGS="$CONNMAN_CFLAGS"
12552 elif test -n "$PKG_CONFIG"; then
12553 if test -n "$PKG_CONFIG" && \
12554 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28 connman >= 0.80\""; } >&5
12555 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28 connman >= 0.80") 2>&5
12557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12558 test $ac_status = 0; }; then
12559 pkg_cv_CONNMAN_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.28 connman >= 0.80" 2>/dev/null`
12560 test "x$?" != "x0" && pkg_failed=yes
12567 if test -n "$CONNMAN_LIBS"; then
12568 pkg_cv_CONNMAN_LIBS="$CONNMAN_LIBS"
12569 elif test -n "$PKG_CONFIG"; then
12570 if test -n "$PKG_CONFIG" && \
12571 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28 connman >= 0.80\""; } >&5
12572 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28 connman >= 0.80") 2>&5
12574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12575 test $ac_status = 0; }; then
12576 pkg_cv_CONNMAN_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.28 connman >= 0.80" 2>/dev/null`
12577 test "x$?" != "x0" && pkg_failed=yes
12587 if test $pkg_failed = yes; then
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589 $as_echo "no" >&6; }
12591 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12592 _pkg_short_errors_supported=yes
12594 _pkg_short_errors_supported=no
12596 if test $_pkg_short_errors_supported = yes; then
12597 CONNMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.28 connman >= 0.80" 2>&1`
12599 CONNMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.28 connman >= 0.80" 2>&1`
12601 # Put the nasty error message in config.log where it belongs
12602 echo "$CONNMAN_PKG_ERRORS" >&5
12604 as_fn_error $? "Package requirements (glib-2.0 >= 2.28 connman >= 0.80) were not met:
12606 $CONNMAN_PKG_ERRORS
12608 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12609 installed software in a non-standard prefix.
12611 Alternatively, you may set the environment variables CONNMAN_CFLAGS
12612 and CONNMAN_LIBS to avoid the need to call pkg-config.
12613 See the pkg-config man page for more details." "$LINENO" 5
12614 elif test $pkg_failed = untried; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12616 $as_echo "no" >&6; }
12617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12619 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12620 is in your PATH or set the PKG_CONFIG environment variable to the full
12621 path to pkg-config.
12623 Alternatively, you may set the environment variables CONNMAN_CFLAGS
12624 and CONNMAN_LIBS to avoid the need to call pkg-config.
12625 See the pkg-config man page for more details.
12627 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12628 See \`config.log' for more details" "$LINENO" 5; }
12630 CONNMAN_CFLAGS=$pkg_cv_CONNMAN_CFLAGS
12631 CONNMAN_LIBS=$pkg_cv_CONNMAN_LIBS
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12633 $as_echo "yes" >&6; }
12639 if test "x$with_context_manager" = "xlinux"; then :
12640 if test "x$HAVE_NETLINK" = "xno"; then :
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: No rtnetlink found, falling back to static context manager" >&5
12642 $as_echo "$as_me: No rtnetlink found, falling back to static context manager" >&6;}
12649 if test "x$USE_NETLINK" = "xyes"; then
12651 USE_NETLINK_FALSE='#'
12653 USE_NETLINK_TRUE='#'
12660 GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
12664 # Check whether --enable-debug was given.
12665 if test "${enable_debug+set}" = set; then :
12666 enableval=$enable_debug;
12671 if test "x$enable_debug" = "xyes"; then
12672 CFLAGS="$CFLAGS -g -Wall -Werror"
12678 # Check whether --enable-introspection was given.
12679 if test "${enable_introspection+set}" = set; then :
12680 enableval=$enable_introspection;
12682 enable_introspection=auto
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
12687 $as_echo_n "checking for gobject-introspection... " >&6; }
12689 case $enable_introspection in #(
12691 found_introspection="no (disabled, use --enable-introspection to enable)"
12694 if test -n "$PKG_CONFIG" && \
12695 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
12696 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
12698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12699 test $ac_status = 0; }; then
12702 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
12704 if test -n "$PKG_CONFIG" && \
12705 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
12706 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
12708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12709 test $ac_status = 0; }; then
12710 found_introspection=yes
12712 as_fn_error $? "You need to have gobject-introspection >= 0.6.4 installed to build gupnp" "$LINENO" 5
12716 if test -n "$PKG_CONFIG" && \
12717 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
12718 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
12720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12721 test $ac_status = 0; }; then
12722 found_introspection=yes
12724 found_introspection=no
12728 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
12732 $as_echo "$found_introspection" >&6; }
12734 INTROSPECTION_SCANNER=
12735 INTROSPECTION_COMPILER=
12736 INTROSPECTION_GENERATE=
12737 INTROSPECTION_GIRDIR=
12738 INTROSPECTION_TYPELIBDIR=
12739 if test "x$found_introspection" = "xyes"; then
12740 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
12741 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
12742 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
12743 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
12744 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
12745 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
12746 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
12747 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
12758 if test "x$found_introspection" = "xyes"; then
12759 HAVE_INTROSPECTION_TRUE=
12760 HAVE_INTROSPECTION_FALSE='#'
12762 HAVE_INTROSPECTION_TRUE='#'
12763 HAVE_INTROSPECTION_FALSE=
12773 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
12774 set dummy gtkdoc-check; ac_word=$2
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776 $as_echo_n "checking for $ac_word... " >&6; }
12777 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
12778 $as_echo_n "(cached) " >&6
12780 case $GTKDOC_CHECK in
12782 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
12785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786 for as_dir in $PATH
12789 test -z "$as_dir" && as_dir=.
12790 for ac_exec_ext in '' $ac_executable_extensions; do
12791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12792 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12803 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
12804 if test -n "$GTKDOC_CHECK"; then
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
12806 $as_echo "$GTKDOC_CHECK" >&6; }
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12813 for ac_prog in gtkdoc-rebase
12815 # Extract the first word of "$ac_prog", so it can be a program name with args.
12816 set dummy $ac_prog; ac_word=$2
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12818 $as_echo_n "checking for $ac_word... " >&6; }
12819 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
12820 $as_echo_n "(cached) " >&6
12822 case $GTKDOC_REBASE in
12824 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
12827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828 for as_dir in $PATH
12831 test -z "$as_dir" && as_dir=.
12832 for ac_exec_ext in '' $ac_executable_extensions; do
12833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12834 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
12835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12845 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
12846 if test -n "$GTKDOC_REBASE"; then
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
12848 $as_echo "$GTKDOC_REBASE" >&6; }
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12851 $as_echo "no" >&6; }
12855 test -n "$GTKDOC_REBASE" && break
12857 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
12859 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
12860 set dummy gtkdoc-mkpdf; ac_word=$2
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12862 $as_echo_n "checking for $ac_word... " >&6; }
12863 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
12864 $as_echo_n "(cached) " >&6
12866 case $GTKDOC_MKPDF in
12868 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
12871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12872 for as_dir in $PATH
12875 test -z "$as_dir" && as_dir=.
12876 for ac_exec_ext in '' $ac_executable_extensions; do
12877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12878 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
12879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
12890 if test -n "$GTKDOC_MKPDF"; then
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
12892 $as_echo "$GTKDOC_MKPDF" >&6; }
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895 $as_echo "no" >&6; }
12901 # Check whether --with-html-dir was given.
12902 if test "${with_html_dir+set}" = set; then :
12903 withval=$with_html_dir;
12905 with_html_dir='${datadir}/gtk-doc/html'
12908 HTML_DIR="$with_html_dir"
12911 # Check whether --enable-gtk-doc was given.
12912 if test "${enable_gtk_doc+set}" = set; then :
12913 enableval=$enable_gtk_doc;
12919 if test x$enable_gtk_doc = xyes; then
12920 if test -n "$PKG_CONFIG" && \
12921 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.0\""; } >&5
12922 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.0") 2>&5
12924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12925 test $ac_status = 0; }; then
12928 as_fn_error $? "You need to have gtk-doc >= 1.0 installed to build $PACKAGE_NAME" "$LINENO" 5
12930 if test "x$PACKAGE_NAME" != "xglib"; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
12934 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
12936 if test -n "$GTKDOC_DEPS_CFLAGS"; then
12937 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
12938 elif test -n "$PKG_CONFIG"; then
12939 if test -n "$PKG_CONFIG" && \
12940 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
12941 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
12943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12944 test $ac_status = 0; }; then
12945 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
12946 test "x$?" != "x0" && pkg_failed=yes
12953 if test -n "$GTKDOC_DEPS_LIBS"; then
12954 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
12955 elif test -n "$PKG_CONFIG"; then
12956 if test -n "$PKG_CONFIG" && \
12957 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5
12958 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5
12960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12961 test $ac_status = 0; }; then
12962 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null`
12963 test "x$?" != "x0" && pkg_failed=yes
12973 if test $pkg_failed = yes; then
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975 $as_echo "no" >&6; }
12977 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12978 _pkg_short_errors_supported=yes
12980 _pkg_short_errors_supported=no
12982 if test $_pkg_short_errors_supported = yes; then
12983 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
12985 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1`
12987 # Put the nasty error message in config.log where it belongs
12988 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
12990 as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0) were not met:
12992 $GTKDOC_DEPS_PKG_ERRORS
12994 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12995 installed software in a non-standard prefix.
12997 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
12998 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
12999 See the pkg-config man page for more details." "$LINENO" 5
13000 elif test $pkg_failed = untried; then
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002 $as_echo "no" >&6; }
13003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13005 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13006 is in your PATH or set the PKG_CONFIG environment variable to the full
13007 path to pkg-config.
13009 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
13010 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
13011 See the pkg-config man page for more details.
13013 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13014 See \`config.log' for more details" "$LINENO" 5; }
13016 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
13017 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13019 $as_echo "yes" >&6; }
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
13026 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
13028 $as_echo "$enable_gtk_doc" >&6; }
13030 # Check whether --enable-gtk-doc-html was given.
13031 if test "${enable_gtk_doc_html+set}" = set; then :
13032 enableval=$enable_gtk_doc_html;
13034 enable_gtk_doc_html=yes
13037 # Check whether --enable-gtk-doc-pdf was given.
13038 if test "${enable_gtk_doc_pdf+set}" = set; then :
13039 enableval=$enable_gtk_doc_pdf;
13041 enable_gtk_doc_pdf=no
13045 if test -z "$GTKDOC_MKPDF"; then
13046 enable_gtk_doc_pdf=no
13050 if test x$enable_gtk_doc = xyes; then
13051 ENABLE_GTK_DOC_TRUE=
13052 ENABLE_GTK_DOC_FALSE='#'
13054 ENABLE_GTK_DOC_TRUE='#'
13055 ENABLE_GTK_DOC_FALSE=
13058 if test x$enable_gtk_doc_html = xyes; then
13059 GTK_DOC_BUILD_HTML_TRUE=
13060 GTK_DOC_BUILD_HTML_FALSE='#'
13062 GTK_DOC_BUILD_HTML_TRUE='#'
13063 GTK_DOC_BUILD_HTML_FALSE=
13066 if test x$enable_gtk_doc_pdf = xyes; then
13067 GTK_DOC_BUILD_PDF_TRUE=
13068 GTK_DOC_BUILD_PDF_FALSE='#'
13070 GTK_DOC_BUILD_PDF_TRUE='#'
13071 GTK_DOC_BUILD_PDF_FALSE=
13074 if test -n "$LIBTOOL"; then
13075 GTK_DOC_USE_LIBTOOL_TRUE=
13076 GTK_DOC_USE_LIBTOOL_FALSE='#'
13078 GTK_DOC_USE_LIBTOOL_TRUE='#'
13079 GTK_DOC_USE_LIBTOOL_FALSE=
13082 if test -n "$GTKDOC_REBASE"; then
13083 GTK_DOC_USE_REBASE_TRUE=
13084 GTK_DOC_USE_REBASE_FALSE='#'
13086 GTK_DOC_USE_REBASE_TRUE='#'
13087 GTK_DOC_USE_REBASE_FALSE=
13092 ac_config_files="$ac_config_files Makefile libgupnp/Makefile examples/Makefile tools/Makefile tests/Makefile tests/gtest/Makefile doc/Makefile doc/version.xml gupnp-1.0.pc gupnp-1.0-uninstalled.pc"
13094 cat >confcache <<\_ACEOF
13095 # This file is a shell script that caches the results of configure
13096 # tests run on this system so they can be shared between configure
13097 # scripts and configure runs, see configure's option --config-cache.
13098 # It is not useful on other systems. If it contains results you don't
13099 # want to keep, you may remove or edit it.
13101 # config.status only pays attention to the cache file if you give it
13102 # the --recheck option to rerun configure.
13104 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13105 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13106 # following values.
13110 # The following way of writing the cache mishandles newlines in values,
13111 # but we know of no workaround that is simple, portable, and efficient.
13112 # So, we kill variables containing newlines.
13113 # Ultrix sh set writes to stderr and can't be redirected directly,
13114 # and sets the high bit in the cache file unless we assign to the vars.
13116 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13117 eval ac_val=\$$ac_var
13121 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13122 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13125 _ | IFS | as_nl) ;; #(
13126 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13127 *) { eval $ac_var=; unset $ac_var;} ;;
13133 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13134 *${as_nl}ac_space=\ *)
13135 # `set' does not quote correctly, so add quotes: double-quote
13136 # substitution turns \\\\ into \\, and sed turns \\ into \.
13139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13142 # `set' quotes correctly as required by POSIX, so do not add quotes.
13143 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13152 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13154 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13156 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13157 if test -w "$cache_file"; then
13158 if test "x$cache_file" != "x/dev/null"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13160 $as_echo "$as_me: updating cache $cache_file" >&6;}
13161 if test ! -f "$cache_file" || test -h "$cache_file"; then
13162 cat confcache >"$cache_file"
13164 case $cache_file in #(
13166 mv -f confcache "$cache_file"$$ &&
13167 mv -f "$cache_file"$$ "$cache_file" ;; #(
13169 mv -f confcache "$cache_file" ;;
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13175 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13180 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13181 # Let make expand exec_prefix.
13182 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13184 DEFS=-DHAVE_CONFIG_H
13189 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13190 # 1. Remove the extension, and $U if already installed.
13191 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13192 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13193 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13194 # will be set to the directory where LIBOBJS objects are built.
13195 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13196 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13198 LIBOBJS=$ac_libobjs
13200 LTLIBOBJS=$ac_ltlibobjs
13203 if test -n "$EXEEXT"; then
13205 am__EXEEXT_FALSE='#'
13207 am__EXEEXT_TRUE='#'
13211 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13212 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13215 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13216 as_fn_error $? "conditional \"AMDEP\" was never defined.
13217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13219 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13220 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13223 if test -z "${HAVE_GTEST_TRUE}" && test -z "${HAVE_GTEST_FALSE}"; then
13224 as_fn_error $? "conditional \"HAVE_GTEST\" was never defined.
13225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13227 if test -z "${HAVE_NETLINK_TRUE}" && test -z "${HAVE_NETLINK_FALSE}"; then
13228 as_fn_error $? "conditional \"HAVE_NETLINK\" was never defined.
13229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13231 if test -z "${USE_NETWORK_MANAGER_TRUE}" && test -z "${USE_NETWORK_MANAGER_FALSE}"; then
13232 as_fn_error $? "conditional \"USE_NETWORK_MANAGER\" was never defined.
13233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13235 if test -z "${USE_CONNMAN_TRUE}" && test -z "${USE_CONNMAN_FALSE}"; then
13236 as_fn_error $? "conditional \"USE_CONNMAN\" was never defined.
13237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13239 if test -z "${USE_NETLINK_TRUE}" && test -z "${USE_NETLINK_FALSE}"; then
13240 as_fn_error $? "conditional \"USE_NETLINK\" was never defined.
13241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13243 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
13244 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
13245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13247 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
13248 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
13249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13251 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
13252 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
13253 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13255 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
13256 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
13257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13259 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
13260 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
13261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13263 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
13264 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
13265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13268 : "${CONFIG_STATUS=./config.status}"
13270 ac_clean_files_save=$ac_clean_files
13271 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13273 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13275 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13277 # Generated by $as_me.
13278 # Run this file to recreate the current configuration.
13279 # Compiler output produced by configure, useful for debugging
13280 # configure, is in config.log if it exists.
13283 ac_cs_recheck=false
13286 SHELL=\${CONFIG_SHELL-$SHELL}
13289 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13290 ## -------------------- ##
13291 ## M4sh Initialization. ##
13292 ## -------------------- ##
13294 # Be more Bourne compatible
13295 DUALCASE=1; export DUALCASE # for MKS sh
13296 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13299 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13300 # is contrary to our usage. Disable this feature.
13301 alias -g '${1+"$@"}'='"$@"'
13302 setopt NO_GLOB_SUBST
13304 case `(set -o) 2>/dev/null` in #(
13316 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13317 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13318 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13319 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13320 # Prefer a ksh shell builtin over an external printf program on Solaris,
13321 # but without wasting forks for bash or zsh.
13322 if test -z "$BASH_VERSION$ZSH_VERSION" \
13323 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13324 as_echo='print -r --'
13325 as_echo_n='print -rn --'
13326 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13327 as_echo='printf %s\n'
13328 as_echo_n='printf %s'
13330 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13331 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13332 as_echo_n='/usr/ucb/echo -n'
13334 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13335 as_echo_n_body='eval
13339 expr "X$arg" : "X\\(.*\\)$as_nl";
13340 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13342 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13344 export as_echo_n_body
13345 as_echo_n='sh -c $as_echo_n_body as_echo'
13347 export as_echo_body
13348 as_echo='sh -c $as_echo_body as_echo'
13351 # The user is always right.
13352 if test "${PATH_SEPARATOR+set}" != set; then
13354 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13355 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13362 # We need space, tab and new line, in precisely that order. Quoting is
13363 # there to prevent editors from complaining about space-tab.
13364 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13365 # splitting by setting IFS to empty value.)
13368 # Find who we are. Look in the path if we contain no directory separator.
13371 *[\\/]* ) as_myself=$0 ;;
13372 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13373 for as_dir in $PATH
13376 test -z "$as_dir" && as_dir=.
13377 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13383 # We did not find ourselves, most probably we were run as `sh COMMAND'
13384 # in which case we are not to be found in the path.
13385 if test "x$as_myself" = x; then
13388 if test ! -f "$as_myself"; then
13389 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13393 # Unset variables that we do not need and which cause bugs (e.g. in
13394 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13395 # suppresses any "Segmentation fault" message there. '((' could
13396 # trigger a bug in pdksh 5.2.14.
13397 for as_var in BASH_ENV ENV MAIL MAILPATH
13398 do eval test x\${$as_var+set} = xset \
13399 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13412 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13416 # ----------------------------------------
13417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13419 # script with STATUS, using 1 if that was 0.
13422 as_status=$1; test $as_status -eq 0 && as_status=1
13424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13427 $as_echo "$as_me: error: $2" >&2
13428 as_fn_exit $as_status
13432 # as_fn_set_status STATUS
13433 # -----------------------
13434 # Set $? to STATUS, without forking.
13435 as_fn_set_status ()
13438 } # as_fn_set_status
13440 # as_fn_exit STATUS
13441 # -----------------
13442 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13446 as_fn_set_status $1
13452 # Portably unset VAR.
13455 { eval $1=; unset $1;}
13457 as_unset=as_fn_unset
13458 # as_fn_append VAR VALUE
13459 # ----------------------
13460 # Append the text in VALUE to the end of the definition contained in VAR. Take
13461 # advantage of any shell optimizations that allow amortized linear growth over
13462 # repeated appends, instead of the typical quadratic growth present in naive
13464 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13465 eval 'as_fn_append ()
13476 # as_fn_arith ARG...
13477 # ------------------
13478 # Perform arithmetic evaluation on the ARGs, and store the result in the
13479 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13480 # must be portable across $(()) and expr.
13481 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13482 eval 'as_fn_arith ()
13489 as_val=`expr "$@" || test $? -eq 1`
13494 if expr a : '\(a\)' >/dev/null 2>&1 &&
13495 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13501 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13502 as_basename=basename
13507 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13513 as_me=`$as_basename -- "$0" ||
13514 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13515 X"$0" : 'X\(//\)$' \| \
13516 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13518 sed '/^.*\/\([^/][^/]*\)\/*$/{
13532 # Avoid depending upon Character Ranges.
13533 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13534 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13535 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13536 as_cr_digits='0123456789'
13537 as_cr_alnum=$as_cr_Letters$as_cr_digits
13539 ECHO_C= ECHO_N= ECHO_T=
13540 case `echo -n x` in #(((((
13542 case `echo 'xy\c'` in
13543 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13545 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13552 rm -f conf$$ conf$$.exe conf$$.file
13553 if test -d conf$$.dir; then
13554 rm -f conf$$.dir/conf$$.file
13557 mkdir conf$$.dir 2>/dev/null
13559 if (echo >conf$$.file) 2>/dev/null; then
13560 if ln -s conf$$.file conf$$ 2>/dev/null; then
13562 # ... but there are two gotchas:
13563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13565 # In both cases, we have to default to `cp -p'.
13566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13568 elif ln conf$$.file conf$$ 2>/dev/null; then
13576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13577 rmdir conf$$.dir 2>/dev/null
13582 # Create "$as_dir" as a directory, including parents if necessary.
13587 -*) as_dir=./$as_dir;;
13589 test -d "$as_dir" || eval $as_mkdir_p || {
13593 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13594 *) as_qdir=$as_dir;;
13596 as_dirs="'$as_qdir' $as_dirs"
13597 as_dir=`$as_dirname -- "$as_dir" ||
13598 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13599 X"$as_dir" : 'X\(//\)[^/]' \| \
13600 X"$as_dir" : 'X\(//\)$' \| \
13601 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13602 $as_echo X"$as_dir" |
13603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13607 /^X\(\/\/\)[^/].*/{
13620 test -d "$as_dir" && break
13622 test -z "$as_dirs" || eval "mkdir $as_dirs"
13623 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13627 if mkdir -p . 2>/dev/null; then
13628 as_mkdir_p='mkdir -p "$as_dir"'
13630 test -d ./-p && rmdir ./-p
13634 if test -x / >/dev/null 2>&1; then
13635 as_test_x='test -x'
13637 if ls -dL / >/dev/null 2>&1; then
13644 if test -d "$1"; then
13650 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13651 ???[sx]*):;;*)false;;esac;fi
13655 as_executable_p=$as_test_x
13657 # Sed expression to map a string onto a valid CPP name.
13658 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13660 # Sed expression to map a string onto a valid variable name.
13661 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13665 ## ----------------------------------- ##
13666 ## Main body of $CONFIG_STATUS script. ##
13667 ## ----------------------------------- ##
13669 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13672 # Save the log message, to keep $0 and so on meaningful, and to
13673 # report actual input values of CONFIG_FILES etc. instead of their
13674 # values after options handling.
13676 This file was extended by gupnp $as_me 0.18.0, which was
13677 generated by GNU Autoconf 2.68. Invocation command line was
13679 CONFIG_FILES = $CONFIG_FILES
13680 CONFIG_HEADERS = $CONFIG_HEADERS
13681 CONFIG_LINKS = $CONFIG_LINKS
13682 CONFIG_COMMANDS = $CONFIG_COMMANDS
13685 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13690 case $ac_config_files in *"
13691 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13694 case $ac_config_headers in *"
13695 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13700 # Files that config.status was made for.
13701 config_files="$ac_config_files"
13702 config_headers="$ac_config_headers"
13703 config_commands="$ac_config_commands"
13707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13709 \`$as_me' instantiates files and other configuration actions
13710 from templates according to the current configuration. Unless the files
13711 and actions are specified as TAGs, all are instantiated by default.
13713 Usage: $0 [OPTION]... [TAG]...
13715 -h, --help print this help, then exit
13716 -V, --version print version number and configuration settings, then exit
13717 --config print configuration, then exit
13718 -q, --quiet, --silent
13719 do not print progress messages
13720 -d, --debug don't remove temporary files
13721 --recheck update $as_me by reconfiguring in the same conditions
13722 --file=FILE[:TEMPLATE]
13723 instantiate the configuration file FILE
13724 --header=FILE[:TEMPLATE]
13725 instantiate the configuration header FILE
13727 Configuration files:
13730 Configuration headers:
13733 Configuration commands:
13736 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp>.
13737 gupnp home page: <http://www.gupnp.org/>."
13740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13741 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13743 gupnp config.status 0.18.0
13744 configured by $0, generated by GNU Autoconf 2.68,
13745 with options \\"\$ac_cs_config\\"
13747 Copyright (C) 2010 Free Software Foundation, Inc.
13748 This config.status script is free software; the Free Software Foundation
13749 gives unlimited permission to copy, distribute and modify it."
13756 test -n "\$AWK" || AWK=awk
13759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13760 # The default lists apply if the user does not specify any file.
13766 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13767 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13771 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13783 # Handling of the options.
13784 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13786 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13787 $as_echo "$ac_cs_version"; exit ;;
13788 --config | --confi | --conf | --con | --co | --c )
13789 $as_echo "$ac_cs_config"; exit ;;
13790 --debug | --debu | --deb | --de | --d | -d )
13792 --file | --fil | --fi | --f )
13795 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13796 '') as_fn_error $? "missing file argument" ;;
13798 as_fn_append CONFIG_FILES " '$ac_optarg'"
13799 ac_need_defaults=false;;
13800 --header | --heade | --head | --hea )
13803 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13805 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13806 ac_need_defaults=false;;
13808 # Conflict between --help and --header
13809 as_fn_error $? "ambiguous option: \`$1'
13810 Try \`$0 --help' for more information.";;
13811 --help | --hel | -h )
13812 $as_echo "$ac_cs_usage"; exit ;;
13813 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13814 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13817 # This is an error.
13818 -*) as_fn_error $? "unrecognized option: \`$1'
13819 Try \`$0 --help' for more information." ;;
13821 *) as_fn_append ac_config_targets " $1"
13822 ac_need_defaults=false ;;
13828 ac_configure_extra_args=
13830 if $ac_cs_silent; then
13832 ac_configure_extra_args="$ac_configure_extra_args --silent"
13836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13837 if \$ac_cs_recheck; then
13838 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13840 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13841 CONFIG_SHELL='$SHELL'
13842 export CONFIG_SHELL
13847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13851 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13852 ## Running $as_me. ##
13858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13862 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13865 # The HP-UX ksh and POSIX shell print the target directory to stdout
13866 # if CDPATH is set.
13867 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13869 sed_quote_subst='$sed_quote_subst'
13870 double_quote_subst='$double_quote_subst'
13871 delay_variable_subst='$delay_variable_subst'
13872 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13873 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13874 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13875 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13876 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13877 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13878 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13879 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13880 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13881 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13882 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13883 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13884 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13885 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13886 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13887 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13888 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13889 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13890 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13891 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13892 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13893 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13894 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13895 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13896 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13897 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13898 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13899 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13900 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13901 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13902 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13903 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13904 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13905 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13906 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13907 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13908 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13909 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13910 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13911 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13912 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13913 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13914 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13915 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13916 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13917 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13918 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13919 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13920 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13921 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13922 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13923 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13924 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13925 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13926 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13927 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13928 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13929 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13930 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13931 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13932 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13933 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13934 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13935 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13936 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13937 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13938 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13939 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13940 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13941 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13942 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13943 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13944 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13945 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13946 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13947 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13948 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13949 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13950 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13951 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13952 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13953 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13954 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13955 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13956 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13957 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13958 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13959 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13960 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13961 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13962 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13963 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13964 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13965 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13966 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13967 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13968 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13969 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13970 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13971 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13972 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13973 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13974 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13975 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13976 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13977 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13978 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13979 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13980 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13981 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13982 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13983 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13984 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13985 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13986 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13987 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13988 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13989 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13990 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13991 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13992 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13993 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13994 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13995 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13996 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13997 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13998 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13999 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14000 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14001 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14004 LTCFLAGS='$LTCFLAGS'
14005 compiler='$compiler_DEFAULT'
14007 # A function that is used when there is no print builtin or printf.
14008 func_fallback_echo ()
14010 eval 'cat <<_LTECHO_EOF
14015 # Quote evaled strings.
14030 deplibs_check_method \
14035 sharedlib_from_linklib_cmd \
14038 archiver_list_spec \
14044 lt_cv_sys_global_symbol_pipe \
14045 lt_cv_sys_global_symbol_to_cdecl \
14046 lt_cv_sys_global_symbol_to_c_name_address \
14047 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14048 nm_file_list_spec \
14049 lt_prog_compiler_no_builtin_flag \
14050 lt_prog_compiler_pic \
14051 lt_prog_compiler_wl \
14052 lt_prog_compiler_static \
14053 lt_cv_prog_compiler_c_o \
14062 export_dynamic_flag_spec \
14063 whole_archive_flag_spec \
14064 compiler_needs_object \
14066 allow_undefined_flag \
14067 no_undefined_flag \
14068 hardcode_libdir_flag_spec \
14069 hardcode_libdir_separator \
14073 variables_saved_for_relink \
14075 library_names_spec \
14077 install_override_mode \
14081 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14082 *[\\\\\\\`\\"\\\$]*)
14083 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14086 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14091 # Double-quote double-evaled strings.
14092 for var in reload_cmds \
14093 old_postinstall_cmds \
14094 old_postuninstall_cmds \
14096 extract_expsyms_cmds \
14097 old_archive_from_new_cmds \
14098 old_archive_from_expsyms_cmds \
14100 archive_expsym_cmds \
14102 module_expsym_cmds \
14103 export_symbols_cmds \
14107 postuninstall_cmds \
14109 sys_lib_search_path_spec \
14110 sys_lib_dlsearch_path_spec; do
14111 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14112 *[\\\\\\\`\\"\\\$]*)
14113 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14116 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14121 ac_aux_dir='$ac_aux_dir'
14122 xsi_shell='$xsi_shell'
14123 lt_shell_append='$lt_shell_append'
14125 # See if we are running on zsh, and set the options which allow our
14126 # commands through without removal of \ escapes INIT.
14127 if test -n "\${ZSH_VERSION+set}" ; then
14128 setopt NO_GLOB_SUBST
14134 TIMESTAMP='$TIMESTAMP'
14143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14145 # Handling of arguments.
14146 for ac_config_target in $ac_config_targets
14148 case $ac_config_target in
14149 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14150 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14151 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14152 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14153 "libgupnp/Makefile") CONFIG_FILES="$CONFIG_FILES libgupnp/Makefile" ;;
14154 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14155 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14156 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14157 "tests/gtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gtest/Makefile" ;;
14158 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14159 "doc/version.xml") CONFIG_FILES="$CONFIG_FILES doc/version.xml" ;;
14160 "gupnp-1.0.pc") CONFIG_FILES="$CONFIG_FILES gupnp-1.0.pc" ;;
14161 "gupnp-1.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES gupnp-1.0-uninstalled.pc" ;;
14163 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14168 # If the user did not use the arguments to specify the items to instantiate,
14169 # then the envvar interface is used. Set only those that are not.
14170 # We use the long form for the default assignment because of an extremely
14171 # bizarre bug on SunOS 4.1.3.
14172 if $ac_need_defaults; then
14173 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14174 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14175 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14178 # Have a temporary directory for convenience. Make it in the build tree
14179 # simply because there is no reason against having it here, and in addition,
14180 # creating and moving files from /tmp can sometimes cause problems.
14181 # Hook for its removal unless debugging.
14182 # Note that there is a small window in which the directory will not be cleaned:
14183 # after its creation but before its name has been assigned to `$tmp'.
14187 trap 'exit_status=$?
14188 : "${ac_tmp:=$tmp}"
14189 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14191 trap 'as_fn_exit 1' 1 2 13 15
14193 # Create a (secure) tmp directory for tmp files.
14196 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14200 tmp=./conf$$-$RANDOM
14201 (umask 077 && mkdir "$tmp")
14202 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14205 # Set up the scripts for CONFIG_FILES section.
14206 # No need to generate them if there are no CONFIG_FILES.
14207 # This happens for instance with `./config.status config.h'.
14208 if test -n "$CONFIG_FILES"; then
14211 ac_cr=`echo X | tr X '\015'`
14212 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14213 # But we know of no other shell where ac_cr would be empty at this
14214 # point, so we can use a bashism as a fallback.
14215 if test "x$ac_cr" = x; then
14216 eval ac_cr=\$\'\\r\'
14218 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14219 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14222 ac_cs_awk_cr=$ac_cr
14225 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14230 echo "cat >conf$$subs.awk <<_ACEOF" &&
14231 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14233 } >conf$$subs.sh ||
14234 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14235 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14237 for ac_last_try in false false false false false :; do
14238 . ./conf$$subs.sh ||
14239 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14241 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14242 if test $ac_delim_n = $ac_delim_num; then
14244 elif $ac_last_try; then
14245 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14247 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14250 rm -f conf$$subs.sh
14252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14253 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14257 s/^/S["/; s/!.*/"]=/
14267 s/\(.\{148\}\)..*/\1/
14269 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14274 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14281 s/\(.\{148\}\)..*/\1/
14283 s/["\\]/\\&/g; s/^/"/; s/$/"/
14287 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14292 ' <conf$$subs.awk | sed '
14297 ' >>$CONFIG_STATUS || ac_write_fail=1
14298 rm -f conf$$subs.awk
14299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14301 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14302 for (key in S) S_is_set[key] = 1
14308 nfields = split(line, field, "@")
14310 len = length(field[1])
14311 for (i = 2; i < nfields; i++) {
14313 keylen = length(key)
14314 if (S_is_set[key]) {
14316 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14317 len += length(value) + length(field[++i])
14328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14329 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14330 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14333 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14334 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14337 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14338 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14339 # trailing colons and then remove the whole line if VPATH becomes empty
14340 # (actually we leave an empty line to preserve line numbers).
14341 if test "x$srcdir" = x.; then
14342 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14361 fi # test -n "$CONFIG_FILES"
14363 # Set up the scripts for CONFIG_HEADERS section.
14364 # No need to generate them if there are no CONFIG_HEADERS.
14365 # This happens for instance with `./config.status Makefile'.
14366 if test -n "$CONFIG_HEADERS"; then
14367 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14371 # Transform confdefs.h into an awk script `defines.awk', embedded as
14372 # here-document in config.status, that substitutes the proper values into
14373 # config.h.in to produce config.h.
14375 # Create a delimiter string that does not exist in confdefs.h, to ease
14376 # handling of long lines.
14378 for ac_last_try in false false :; do
14379 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14380 if test -z "$ac_tt"; then
14382 elif $ac_last_try; then
14383 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14385 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14389 # For the awk script, D is an array of macro values keyed by name,
14390 # likewise P contains macro parameters if any. Preserve backslash
14391 # newline sequences.
14393 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14395 s/.\{148\}/&'"$ac_delim"'/g
14398 s/^[ ]*#[ ]*define[ ][ ]*/ /
14405 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14407 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14411 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14412 D["\1"]=" \3\\\\\\n"\\/p
14414 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14419 s/.\{148\}/&'"$ac_delim"'/g
14424 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14427 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14429 ' <confdefs.h | sed '
14430 s/'"$ac_delim"'/"\\\
14431 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14434 for (key in D) D_is_set[key] = 1
14437 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14439 split(line, arg, " ")
14440 if (arg[1] == "#") {
14444 defundef = substr(arg[1], 2)
14447 split(mac1, mac2, "(") #)
14449 prefix = substr(line, 1, index(line, defundef) - 1)
14450 if (D_is_set[macro]) {
14451 # Preserve the white space surrounding the "#".
14452 print prefix "define", macro P[macro] D[macro]
14455 # Replace #undef with comments. This is necessary, for example,
14456 # in the case of _POSIX_SOURCE, which is predefined and required
14457 # on some systems where configure will not decide to define it.
14458 if (defundef == "undef") {
14459 print "/*", prefix defundef, macro, "*/"
14467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14468 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14469 fi # test -n "$CONFIG_HEADERS"
14472 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14477 :[FHLC]) ac_mode=$ac_tag; continue;;
14479 case $ac_mode$ac_tag in
14481 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14482 :[FH]-) ac_tag=-:-;;
14483 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14500 -) ac_f="$ac_tmp/stdin";;
14501 *) # Look for the file first in the build tree, then in the source tree
14502 # (if the path is not absolute). The absolute path cannot be DOS-style,
14503 # because $ac_f cannot contain `:'.
14507 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14509 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14511 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14512 as_fn_append ac_file_inputs " '$ac_f'"
14515 # Let's still pretend it is `configure' which instantiates (i.e., don't
14516 # use $as_me), people would be surprised to read:
14517 # /* config.h. Generated by config.status. */
14518 configure_input='Generated from '`
14519 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14521 if test x"$ac_file" != x-; then
14522 configure_input="$ac_file. $configure_input"
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14524 $as_echo "$as_me: creating $ac_file" >&6;}
14526 # Neutralize special characters interpreted by sed in replacement strings.
14527 case $configure_input in #(
14528 *\&* | *\|* | *\\* )
14529 ac_sed_conf_input=`$as_echo "$configure_input" |
14530 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14531 *) ac_sed_conf_input=$configure_input;;
14535 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14536 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14541 ac_dir=`$as_dirname -- "$ac_file" ||
14542 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14543 X"$ac_file" : 'X\(//\)[^/]' \| \
14544 X"$ac_file" : 'X\(//\)$' \| \
14545 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14546 $as_echo X"$ac_file" |
14547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14551 /^X\(\/\/\)[^/].*/{
14564 as_dir="$ac_dir"; as_fn_mkdir_p
14568 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14570 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14571 # A ".." for each directory in $ac_dir_suffix.
14572 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14573 case $ac_top_builddir_sub in
14574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14578 ac_abs_top_builddir=$ac_pwd
14579 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14580 # for backward compatibility:
14581 ac_top_builddir=$ac_top_build_prefix
14584 .) # We are building in place.
14586 ac_top_srcdir=$ac_top_builddir_sub
14587 ac_abs_top_srcdir=$ac_pwd ;;
14588 [\\/]* | ?:[\\/]* ) # Absolute name.
14589 ac_srcdir=$srcdir$ac_dir_suffix;
14590 ac_top_srcdir=$srcdir
14591 ac_abs_top_srcdir=$srcdir ;;
14592 *) # Relative name.
14593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14594 ac_top_srcdir=$ac_top_build_prefix$srcdir
14595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14597 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14607 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14608 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14610 ac_MKDIR_P=$MKDIR_P
14612 [\\/$]* | ?:[\\/]* ) ;;
14613 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14618 # If the template does not know about datarootdir, expand it.
14619 # FIXME: This hack should be removed a few years after 2.60.
14620 ac_datarootdir_hack=; ac_datarootdir_seen=
14631 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14632 *datarootdir*) ac_datarootdir_seen=yes;;
14633 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14635 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14638 ac_datarootdir_hack='
14639 s&@datadir@&$datadir&g
14640 s&@docdir@&$docdir&g
14641 s&@infodir@&$infodir&g
14642 s&@localedir@&$localedir&g
14643 s&@mandir@&$mandir&g
14644 s&\\\${datarootdir}&$datarootdir&g' ;;
14648 # Neutralize VPATH when `$srcdir' = `.'.
14649 # Shell code in configure.ac might set extrasub.
14650 # FIXME: do we really want to maintain this feature?
14651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14652 ac_sed_extra="$ac_vpsub
14655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14657 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14658 s|@configure_input@|$ac_sed_conf_input|;t t
14659 s&@top_builddir@&$ac_top_builddir_sub&;t t
14660 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14661 s&@srcdir@&$ac_srcdir&;t t
14662 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14663 s&@top_srcdir@&$ac_top_srcdir&;t t
14664 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14665 s&@builddir@&$ac_builddir&;t t
14666 s&@abs_builddir@&$ac_abs_builddir&;t t
14667 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14668 s&@INSTALL@&$ac_INSTALL&;t t
14669 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14670 $ac_datarootdir_hack
14672 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14673 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14675 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14676 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14677 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14678 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14680 which seems to be undefined. Please make sure it is defined" >&5
14681 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14682 which seems to be undefined. Please make sure it is defined" >&2;}
14684 rm -f "$ac_tmp/stdin"
14686 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14687 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14689 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14695 if test x"$ac_file" != x-; then
14697 $as_echo "/* $configure_input */" \
14698 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14699 } >"$ac_tmp/config.h" \
14700 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14701 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14703 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14706 mv "$ac_tmp/config.h" "$ac_file" \
14707 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14710 $as_echo "/* $configure_input */" \
14711 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14712 || as_fn_error $? "could not create -" "$LINENO" 5
14714 # Compute "$ac_file"'s index in $config_headers.
14717 for _am_header in $config_headers :; do
14718 case $_am_header in
14719 $_am_arg | $_am_arg:* )
14722 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14725 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14726 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14727 X"$_am_arg" : 'X\(//\)[^/]' \| \
14728 X"$_am_arg" : 'X\(//\)$' \| \
14729 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14730 $as_echo X"$_am_arg" |
14731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14735 /^X\(\/\/\)[^/].*/{
14747 s/.*/./; q'`/stamp-h$_am_stamp_count
14750 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14751 $as_echo "$as_me: executing $ac_file commands" >&6;}
14756 case $ac_file$ac_mode in
14757 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14758 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14759 # are listed without --file. Let's play safe and only enable the eval
14760 # if we detect the quoting.
14761 case $CONFIG_FILES in
14762 *\'*) eval set x "$CONFIG_FILES" ;;
14763 *) set x $CONFIG_FILES ;;
14768 # Strip MF so we end up with the name of the file.
14769 mf=`echo "$mf" | sed -e 's/:.*$//'`
14770 # Check whether this is an Automake generated Makefile or not.
14771 # We used to match only the files named `Makefile.in', but
14772 # some people rename them; so instead we look at the file content.
14773 # Grep'ing the first line is not enough: some people post-process
14774 # each Makefile.in and add a new line on top of each file to say so.
14775 # Grep'ing the whole file is not good either: AIX grep has a line
14776 # limit of 2048, but all sed's we know have understand at least 4000.
14777 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14778 dirpart=`$as_dirname -- "$mf" ||
14779 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14780 X"$mf" : 'X\(//\)[^/]' \| \
14781 X"$mf" : 'X\(//\)$' \| \
14782 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14788 /^X\(\/\/\)[^/].*/{
14804 # Extract the definition of DEPDIR, am__include, and am__quote
14805 # from the Makefile without running `make'.
14806 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14807 test -z "$DEPDIR" && continue
14808 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14809 test -z "am__include" && continue
14810 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14811 # When using ansi2knr, U may be empty or an underscore; expand it
14812 U=`sed -n 's/^U = //p' < "$mf"`
14813 # Find all dependency output files, they are included files with
14814 # $(DEPDIR) in their names. We invoke sed twice because it is the
14815 # simplest approach to changing $(DEPDIR) to its actual value in the
14817 for file in `sed -n "
14818 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14819 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14820 # Make sure the directory exists.
14821 test -f "$dirpart/$file" && continue
14822 fdir=`$as_dirname -- "$file" ||
14823 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14824 X"$file" : 'X\(//\)[^/]' \| \
14825 X"$file" : 'X\(//\)$' \| \
14826 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14827 $as_echo X"$file" |
14828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14832 /^X\(\/\/\)[^/].*/{
14845 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14846 # echo "creating $dirpart/$file"
14847 echo '# dummy' > "$dirpart/$file"
14854 # See if we are running on zsh, and set the options which allow our
14855 # commands through without removal of \ escapes.
14856 if test -n "${ZSH_VERSION+set}" ; then
14857 setopt NO_GLOB_SUBST
14860 cfgfile="${ofile}T"
14861 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14864 cat <<_LT_EOF >> "$cfgfile"
14867 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14868 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14869 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14870 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14872 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14873 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14875 # Written by Gordon Matzigkeit, 1996
14877 # This file is part of GNU Libtool.
14879 # GNU Libtool is free software; you can redistribute it and/or
14880 # modify it under the terms of the GNU General Public License as
14881 # published by the Free Software Foundation; either version 2 of
14882 # the License, or (at your option) any later version.
14884 # As a special exception to the GNU General Public License,
14885 # if you distribute this file as part of a program or library that
14886 # is built using GNU Libtool, you may include this file under the
14887 # same distribution terms that you use for the rest of that program.
14889 # GNU Libtool is distributed in the hope that it will be useful,
14890 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14891 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14892 # GNU General Public License for more details.
14894 # You should have received a copy of the GNU General Public License
14895 # along with GNU Libtool; see the file COPYING. If not, a copy
14896 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14897 # obtained by writing to the Free Software Foundation, Inc.,
14898 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14901 # The names of the tagged configurations supported by this script.
14904 # ### BEGIN LIBTOOL CONFIG
14906 # Which release of libtool.m4 was used?
14907 macro_version=$macro_version
14908 macro_revision=$macro_revision
14910 # Whether or not to build shared libraries.
14911 build_libtool_libs=$enable_shared
14913 # Whether or not to build static libraries.
14914 build_old_libs=$enable_static
14916 # What type of objects to build.
14919 # Whether or not to optimize for fast installation.
14920 fast_install=$enable_fast_install
14922 # Shell to use when invoking shell scripts.
14925 # An echo program that protects backslashes.
14928 # The PATH separator for the build system.
14929 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14932 host_alias=$host_alias
14936 # The build system.
14937 build_alias=$build_alias
14941 # A sed program that does not truncate output.
14944 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14945 Xsed="\$SED -e 1s/^X//"
14947 # A grep program that handles long lines.
14953 # A literal string matcher.
14956 # A BSD- or MS-compatible name lister.
14959 # Whether we need soft or hard links.
14962 # What is the maximum length of a command?
14963 max_cmd_len=$max_cmd_len
14965 # Object file suffix (normally "o").
14968 # Executable file suffix (normally "").
14971 # whether the shell understands "unset".
14974 # turn spaces into newlines.
14977 # turn newlines into spaces.
14980 # convert \$build file names to \$host format.
14981 to_host_file_cmd=$lt_cv_to_host_file_cmd
14983 # convert \$build files to toolchain format.
14984 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14986 # An object symbol dumper.
14987 OBJDUMP=$lt_OBJDUMP
14989 # Method to check whether dependent libraries are shared objects.
14990 deplibs_check_method=$lt_deplibs_check_method
14992 # Command to use when deplibs_check_method = "file_magic".
14993 file_magic_cmd=$lt_file_magic_cmd
14995 # How to find potential files when deplibs_check_method = "file_magic".
14996 file_magic_glob=$lt_file_magic_glob
14998 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14999 want_nocaseglob=$lt_want_nocaseglob
15001 # DLL creation program.
15002 DLLTOOL=$lt_DLLTOOL
15004 # Command to associate shared and link libraries.
15005 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15010 # Flags to create an archive.
15011 AR_FLAGS=$lt_AR_FLAGS
15013 # How to feed a file listing to the archiver.
15014 archiver_list_spec=$lt_archiver_list_spec
15016 # A symbol stripping program.
15019 # Commands used to install an old-style archive.
15021 old_postinstall_cmds=$lt_old_postinstall_cmds
15022 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15024 # Whether to use a lock for old archive extraction.
15025 lock_old_archive_extraction=$lock_old_archive_extraction
15030 # LTCC compiler flags.
15031 LTCFLAGS=$lt_CFLAGS
15033 # Take the output of nm and produce a listing of raw symbols and C names.
15034 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15036 # Transform the output of nm in a proper C declaration.
15037 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15039 # Transform the output of nm in a C name address pair.
15040 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15042 # Transform the output of nm in a C name address pair when lib prefix is needed.
15043 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15045 # Specify filename containing input files for \$NM.
15046 nm_file_list_spec=$lt_nm_file_list_spec
15048 # The root where to search for dependent libraries,and in which our libraries should be installed.
15049 lt_sysroot=$lt_sysroot
15051 # The name of the directory that contains temporary libtool files.
15054 # Used to examine libraries when file_magic_cmd begins with "file".
15055 MAGIC_CMD=$MAGIC_CMD
15057 # Must we lock files when doing compilation?
15058 need_locks=$lt_need_locks
15061 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15063 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15064 DSYMUTIL=$lt_DSYMUTIL
15066 # Tool to change global to local symbols on Mac OS X.
15069 # Tool to manipulate fat objects and archives on Mac OS X.
15072 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15075 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15076 OTOOL64=$lt_OTOOL64
15078 # Old archive suffix (normally "a").
15081 # Shared library suffix (normally ".so").
15082 shrext_cmds=$lt_shrext_cmds
15084 # The commands to extract the exported symbol list from a shared archive.
15085 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15087 # Variables whose values should be saved in libtool wrapper scripts and
15088 # restored at link time.
15089 variables_saved_for_relink=$lt_variables_saved_for_relink
15091 # Do we need the "lib" prefix for modules?
15092 need_lib_prefix=$need_lib_prefix
15094 # Do we need a version for libraries?
15095 need_version=$need_version
15097 # Library versioning type.
15098 version_type=$version_type
15100 # Shared library runtime path variable.
15101 runpath_var=$runpath_var
15103 # Shared library path variable.
15104 shlibpath_var=$shlibpath_var
15106 # Is shlibpath searched before the hard-coded library search path?
15107 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15109 # Format of library name prefix.
15110 libname_spec=$lt_libname_spec
15112 # List of archive names. First name is the real one, the rest are links.
15113 # The last name is the one that the linker finds with -lNAME
15114 library_names_spec=$lt_library_names_spec
15116 # The coded name of the library, if different from the real name.
15117 soname_spec=$lt_soname_spec
15119 # Permission mode override for installation of shared libraries.
15120 install_override_mode=$lt_install_override_mode
15122 # Command to use after installation of a shared archive.
15123 postinstall_cmds=$lt_postinstall_cmds
15125 # Command to use after uninstallation of a shared archive.
15126 postuninstall_cmds=$lt_postuninstall_cmds
15128 # Commands used to finish a libtool library installation in a directory.
15129 finish_cmds=$lt_finish_cmds
15131 # As "finish_cmds", except a single script fragment to be evaled but
15133 finish_eval=$lt_finish_eval
15135 # Whether we should hardcode library paths into libraries.
15136 hardcode_into_libs=$hardcode_into_libs
15138 # Compile-time system search path for libraries.
15139 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15141 # Run-time system search path for libraries.
15142 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15144 # Whether dlopen is supported.
15145 dlopen_support=$enable_dlopen
15147 # Whether dlopen of programs is supported.
15148 dlopen_self=$enable_dlopen_self
15150 # Whether dlopen of statically linked programs is supported.
15151 dlopen_self_static=$enable_dlopen_self_static
15153 # Commands to strip libraries.
15154 old_striplib=$lt_old_striplib
15155 striplib=$lt_striplib
15158 # The linker used to build libraries.
15161 # How to create reloadable object files.
15162 reload_flag=$lt_reload_flag
15163 reload_cmds=$lt_reload_cmds
15165 # Commands used to build an old-style archive.
15166 old_archive_cmds=$lt_old_archive_cmds
15168 # A language specific compiler.
15171 # Is the compiler the GNU compiler?
15174 # Compiler flag to turn off builtin functions.
15175 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15177 # Additional compiler flags for building library objects.
15178 pic_flag=$lt_lt_prog_compiler_pic
15180 # How to pass a linker flag through the compiler.
15181 wl=$lt_lt_prog_compiler_wl
15183 # Compiler flag to prevent dynamic linking.
15184 link_static_flag=$lt_lt_prog_compiler_static
15186 # Does compiler simultaneously support -c and -o options?
15187 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15189 # Whether or not to add -lc for building shared libraries.
15190 build_libtool_need_lc=$archive_cmds_need_lc
15192 # Whether or not to disallow shared libs when runtime libs are static.
15193 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15195 # Compiler flag to allow reflexive dlopens.
15196 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15198 # Compiler flag to generate shared objects directly from archives.
15199 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15201 # Whether the compiler copes with passing no objects directly.
15202 compiler_needs_object=$lt_compiler_needs_object
15204 # Create an old-style archive from a shared archive.
15205 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15207 # Create a temporary old-style archive to link instead of a shared archive.
15208 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15210 # Commands used to build a shared archive.
15211 archive_cmds=$lt_archive_cmds
15212 archive_expsym_cmds=$lt_archive_expsym_cmds
15214 # Commands used to build a loadable module if different from building
15215 # a shared archive.
15216 module_cmds=$lt_module_cmds
15217 module_expsym_cmds=$lt_module_expsym_cmds
15219 # Whether we are building with GNU ld or not.
15220 with_gnu_ld=$lt_with_gnu_ld
15222 # Flag that allows shared libraries with undefined symbols to be built.
15223 allow_undefined_flag=$lt_allow_undefined_flag
15225 # Flag that enforces no undefined symbols.
15226 no_undefined_flag=$lt_no_undefined_flag
15228 # Flag to hardcode \$libdir into a binary during linking.
15229 # This must work even if \$libdir does not exist
15230 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15232 # Whether we need a single "-rpath" flag with a separated argument.
15233 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15235 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15236 # DIR into the resulting binary.
15237 hardcode_direct=$hardcode_direct
15239 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15240 # DIR into the resulting binary and the resulting library dependency is
15241 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15242 # library is relocated.
15243 hardcode_direct_absolute=$hardcode_direct_absolute
15245 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15246 # into the resulting binary.
15247 hardcode_minus_L=$hardcode_minus_L
15249 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15250 # into the resulting binary.
15251 hardcode_shlibpath_var=$hardcode_shlibpath_var
15253 # Set to "yes" if building a shared library automatically hardcodes DIR
15254 # into the library and all subsequent libraries and executables linked
15256 hardcode_automatic=$hardcode_automatic
15258 # Set to yes if linker adds runtime paths of dependent libraries
15259 # to runtime path list.
15260 inherit_rpath=$inherit_rpath
15262 # Whether libtool must link a program against all its dependency libraries.
15263 link_all_deplibs=$link_all_deplibs
15265 # Set to "yes" if exported symbols are required.
15266 always_export_symbols=$always_export_symbols
15268 # The commands to list exported symbols.
15269 export_symbols_cmds=$lt_export_symbols_cmds
15271 # Symbols that should not be listed in the preloaded symbols.
15272 exclude_expsyms=$lt_exclude_expsyms
15274 # Symbols that must always be exported.
15275 include_expsyms=$lt_include_expsyms
15277 # Commands necessary for linking programs (against libraries) with templates.
15278 prelink_cmds=$lt_prelink_cmds
15280 # Commands necessary for finishing linking programs.
15281 postlink_cmds=$lt_postlink_cmds
15283 # Specify filename containing input files.
15284 file_list_spec=$lt_file_list_spec
15286 # How to hardcode a shared library path into an executable.
15287 hardcode_action=$hardcode_action
15289 # ### END LIBTOOL CONFIG
15295 cat <<\_LT_EOF >> "$cfgfile"
15296 # AIX sometimes has problems with the GCC collect2 program. For some
15297 # reason, if we set the COLLECT_NAMES environment variable, the problems
15298 # vanish in a puff of smoke.
15299 if test "X${COLLECT_NAMES+set}" != Xset; then
15301 export COLLECT_NAMES
15308 ltmain="$ac_aux_dir/ltmain.sh"
15311 # We use sed instead of cat because bash on DJGPP gets confused if
15312 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15313 # text mode, it properly converts lines to CR/LF. This bash problem
15314 # is reportedly fixed, but why not run on old versions too?
15315 sed '$q' "$ltmain" >> "$cfgfile" \
15316 || (rm -f "$cfgfile"; exit 1)
15318 if test x"$xsi_shell" = xyes; then
15319 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15323 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15324 \ * ) func_dirname_result="${3}" ;;\
15326 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15327 && mv -f "$cfgfile.tmp" "$cfgfile" \
15328 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15329 test 0 -eq $? || _lt_function_replace_fail=:
15332 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15335 \ func_basename_result="${1##*/}"\
15336 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15337 && mv -f "$cfgfile.tmp" "$cfgfile" \
15338 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15339 test 0 -eq $? || _lt_function_replace_fail=:
15342 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15343 func_dirname_and_basename ()\
15346 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15347 \ * ) func_dirname_result="${3}" ;;\
15349 \ func_basename_result="${1##*/}"\
15350 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15351 && mv -f "$cfgfile.tmp" "$cfgfile" \
15352 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15353 test 0 -eq $? || _lt_function_replace_fail=:
15356 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15359 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15360 \ # positional parameters, so assign one to ordinary parameter first.\
15361 \ func_stripname_result=${3}\
15362 \ func_stripname_result=${func_stripname_result#"${1}"}\
15363 \ func_stripname_result=${func_stripname_result%"${2}"}\
15364 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15365 && mv -f "$cfgfile.tmp" "$cfgfile" \
15366 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15367 test 0 -eq $? || _lt_function_replace_fail=:
15370 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15371 func_split_long_opt ()\
15373 \ func_split_long_opt_name=${1%%=*}\
15374 \ func_split_long_opt_arg=${1#*=}\
15375 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15376 && mv -f "$cfgfile.tmp" "$cfgfile" \
15377 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15378 test 0 -eq $? || _lt_function_replace_fail=:
15381 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15382 func_split_short_opt ()\
15384 \ func_split_short_opt_arg=${1#??}\
15385 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15386 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15387 && mv -f "$cfgfile.tmp" "$cfgfile" \
15388 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15389 test 0 -eq $? || _lt_function_replace_fail=:
15392 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15396 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15397 \ *) func_lo2o_result=${1} ;;\
15399 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15400 && mv -f "$cfgfile.tmp" "$cfgfile" \
15401 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15402 test 0 -eq $? || _lt_function_replace_fail=:
15405 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15408 func_xform_result=${1%.*}.lo\
15409 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15410 && mv -f "$cfgfile.tmp" "$cfgfile" \
15411 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15412 test 0 -eq $? || _lt_function_replace_fail=:
15415 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15418 func_arith_result=$(( $* ))\
15419 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15420 && mv -f "$cfgfile.tmp" "$cfgfile" \
15421 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15422 test 0 -eq $? || _lt_function_replace_fail=:
15425 sed -e '/^func_len ()$/,/^} # func_len /c\
15428 func_len_result=${#1}\
15429 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15430 && mv -f "$cfgfile.tmp" "$cfgfile" \
15431 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15432 test 0 -eq $? || _lt_function_replace_fail=:
15436 if test x"$lt_shell_append" = xyes; then
15437 sed -e '/^func_append ()$/,/^} # func_append /c\
15440 eval "${1}+=\\${2}"\
15441 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15442 && mv -f "$cfgfile.tmp" "$cfgfile" \
15443 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15444 test 0 -eq $? || _lt_function_replace_fail=:
15447 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15448 func_append_quoted ()\
15450 \ func_quote_for_eval "${2}"\
15451 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15452 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15453 && mv -f "$cfgfile.tmp" "$cfgfile" \
15454 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15455 test 0 -eq $? || _lt_function_replace_fail=:
15458 # Save a `func_append' function call where possible by direct use of '+='
15459 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15460 && mv -f "$cfgfile.tmp" "$cfgfile" \
15461 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15462 test 0 -eq $? || _lt_function_replace_fail=:
15464 # Save a `func_append' function call even when '+=' is not available
15465 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15466 && mv -f "$cfgfile.tmp" "$cfgfile" \
15467 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15468 test 0 -eq $? || _lt_function_replace_fail=:
15471 if test x"$_lt_function_replace_fail" = x":"; then
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15473 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15477 mv -f "$cfgfile" "$ofile" ||
15478 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15489 ac_clean_files=$ac_clean_files_save
15491 test $ac_write_fail = 0 ||
15492 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15495 # configure is writing to config.log, and then calls config.status.
15496 # config.status does its own redirection, appending to config.log.
15497 # Unfortunately, on DOS this fails, as config.log is still kept open
15498 # by configure, so config.status won't be able to write to it; its
15499 # output is simply discarded. So we exec the FD to /dev/null,
15500 # effectively closing config.log, so it can be properly (re)opened and
15501 # appended to by config.status. When coming back to configure, we
15502 # need to make the FD available again.
15503 if test "$no_create" != yes; then
15505 ac_config_status_args=
15506 test "$silent" = yes &&
15507 ac_config_status_args="$ac_config_status_args --quiet"
15509 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15511 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15512 # would make configure fail if this is the last instruction.
15513 $ac_cs_success || as_fn_exit 1
15515 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15517 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}