2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pygobject 3.13.3.
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410 as_val=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status=$1; test $as_status -eq 0 && as_status=1
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 elif ln conf$$.file conf$$ 2>/dev/null; then
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
555 test -d ./-p && rmdir ./-p
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
591 # Identity of this package.
592 PACKAGE_NAME='pygobject'
593 PACKAGE_TARNAME='pygobject'
594 PACKAGE_VERSION='3.13.3'
595 PACKAGE_STRING='pygobject 3.13.3'
596 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject'
597 PACKAGE_URL='https://wiki.gnome.org/Projects/PyGObject/'
599 ac_unique_file="gi/gimodule.c"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
613 # ifdef HAVE_STDLIB_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
636 ac_subst_vars='am__EXEEXT_FALSE
640 GNOME_CODE_COVERAGE_RULES
641 CODE_COVERAGE_LDFLAGS
645 CODE_COVERAGE_ENABLED
646 CODE_COVERAGE_ENABLED_FALSE
647 CODE_COVERAGE_ENABLED_TRUE
649 INTROSPECTION_COMPILER
650 INTROSPECTION_SCANNER
669 GLIB_COMPILE_RESOURCES
753 INSTALL_STRIP_PROGRAM
772 PYGOBJECT_MICRO_VERSION
773 PYGOBJECT_MINOR_VERSION
774 PYGOBJECT_MAJOR_VERSION
803 program_transform_name
816 enable_option_checking
822 enable_dependency_tracking
831 enable_compile_warnings
835 ac_precious_vars='build_alias
860 # Initialize some variables set by options.
862 ac_init_version=false
863 ac_unrecognized_opts=
865 # The variables have the same names as the options, with
866 # dashes changed to underlines.
874 program_transform_name=s,x,x,
882 # Installation directory options.
883 # These are left unexpanded so users can "make install exec_prefix=/foo"
884 # and all the variables that are supposed to be based on exec_prefix
885 # by default will actually change.
886 # Use braces instead of parens because sh, perl, etc. also accept them.
887 # (The list follows the same order as the GNU Coding Standards.)
888 bindir='${exec_prefix}/bin'
889 sbindir='${exec_prefix}/sbin'
890 libexecdir='${exec_prefix}/libexec'
891 datarootdir='${prefix}/share'
892 datadir='${datarootdir}'
893 sysconfdir='${prefix}/etc'
894 sharedstatedir='${prefix}/com'
895 localstatedir='${prefix}/var'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir='${datarootdir}/info'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 # Accept the important Cygnus configure options, so we can diagnose typos.
927 case $ac_dashdash$ac_option in
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
949 cache_file=config.cache ;;
951 -datadir | --datadir | --datadi | --datad)
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
977 eval enable_$ac_useropt=no ;;
979 -docdir | --docdir | --docdi | --doc | --do)
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989 -enable-* | --enable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034 htmldir=$ac_optarg ;;
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1048 -libdir | --libdir | --libdi | --libd)
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1139 -psdir | --psdir | --psdi | --psd | --ps)
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 sbindir=$ac_optarg ;;
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 sharedstatedir=$ac_optarg ;;
1165 -site | --site | --sit)
1167 -site=* | --site=* | --sit=*)
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1207 eval with_$ac_useropt=\$ac_optarg ;;
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1223 eval with_$ac_useropt=no ;;
1226 # Obsolete; use --with-x.
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1294 # Be sure to have absolute directory names.
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1307 target=$target_alias
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321 test "$silent" = yes && exec 6>/dev/null
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $? "pwd does not report name of working directory"
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 $as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1364 ac_srcdir_defaulted=no
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392 # Report the --help message.
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1398 \`configure' configures pygobject 3.13.3 to adapt to many kinds of systems.
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1405 Defaults for the options are specified in brackets.
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1429 For better control, use the options below.
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/pygobject]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of pygobject 3.13.3:";;
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --enable-silent-rules less verbose build output (undo: "make V=1")
1477 --disable-silent-rules verbose build output (undo: "make V=0")
1478 --enable-static[=PKGS] build static libraries [default=no]
1479 --enable-shared[=PKGS] build shared libraries [default=yes]
1480 --enable-fast-install[=PKGS]
1481 optimize for fast installation [default=yes]
1482 --enable-dependency-tracking
1483 do not reject slow dependency extractors
1484 --disable-dependency-tracking
1485 speeds up one-time build
1486 --disable-libtool-lock avoid locking (might break parallel builds)
1487 --disable-thread Disable pygobject threading support
1488 --disable-glibtest do not try to compile and run a test GLIB program
1489 --enable-cairo Enable Cairo bindings using introspection
1491 --enable-compile-warnings=[no/minimum/yes/maximum/error]
1492 Turn on compiler warnings
1493 --enable-iso-c Try to warn if code is not ISO C
1494 --enable-code-coverage Whether to enable code coverage support
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1501 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1502 --with-sysroot=DIR Search for dependent libraries within DIR
1503 (or the compiler's sysroot if not specified).
1504 --with-python=PATH Path to Python interpreter; searches $PATH if only a
1505 program name is given; if not given, searches for a
1506 few standard names such as "python3" or "python2"
1507 --without-common For package maintainers: do not install Python
1508 version independent files
1510 Some influential environment variables:
1511 CC C compiler command
1512 CFLAGS C compiler flags
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1514 nonstandard directory <lib dir>
1515 LIBS libraries to pass to the linker, e.g. -l<library>
1516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1519 PYTHON the Python interpreter
1520 PKG_CONFIG path to pkg-config utility
1522 directories to add to pkg-config's search path
1524 path overriding pkg-config's built-in search path
1525 FFI_CFLAGS C compiler flags for FFI, overriding pkg-config
1526 FFI_LIBS linker flags for FFI, overriding pkg-config
1527 GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
1528 GIO_LIBS linker flags for GIO, overriding pkg-config
1529 GI_CFLAGS C compiler flags for GI, overriding pkg-config
1530 GI_LIBS linker flags for GI, overriding pkg-config
1532 C compiler flags for CAIRO, overriding pkg-config
1533 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1535 C compiler flags for PYCAIRO, overriding pkg-config
1537 linker flags for PYCAIRO, overriding pkg-config
1539 Use these variables to override the choices made by `configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1542 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
1543 pygobject home page: <https://wiki.gnome.org/Projects/PyGObject/>.
1548 if test "$ac_init_help" = "recursive"; then
1549 # If there are subdirs, report their specific --help.
1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1551 test -d "$ac_dir" ||
1552 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1560 # A ".." for each directory in $ac_dir_suffix.
1561 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1562 case $ac_top_builddir_sub in
1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1567 ac_abs_top_builddir=$ac_pwd
1568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1569 # for backward compatibility:
1570 ac_top_builddir=$ac_top_build_prefix
1573 .) # We are building in place.
1575 ac_top_srcdir=$ac_top_builddir_sub
1576 ac_abs_top_srcdir=$ac_pwd ;;
1577 [\\/]* | ?:[\\/]* ) # Absolute name.
1578 ac_srcdir=$srcdir$ac_dir_suffix;
1579 ac_top_srcdir=$srcdir
1580 ac_abs_top_srcdir=$srcdir ;;
1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583 ac_top_srcdir=$ac_top_build_prefix$srcdir
1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588 cd "$ac_dir" || { ac_status=$?; continue; }
1589 # Check for guested configure.
1590 if test -f "$ac_srcdir/configure.gnu"; then
1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593 elif test -f "$ac_srcdir/configure"; then
1595 $SHELL "$ac_srcdir/configure" --help=recursive
1597 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 cd "$ac_pwd" || { ac_status=$?; break; }
1603 test -n "$ac_init_help" && exit $ac_status
1604 if $ac_init_version; then
1606 pygobject configure 3.13.3
1607 generated by GNU Autoconf 2.69
1609 Copyright (C) 2012 Free Software Foundation, Inc.
1610 This configure script is free software; the Free Software Foundation
1611 gives unlimited permission to copy, distribute and modify it.
1616 ## ------------------------ ##
1617 ## Autoconf initialization. ##
1618 ## ------------------------ ##
1620 # ac_fn_c_try_compile LINENO
1621 # --------------------------
1622 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_c_try_compile ()
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 rm -f conftest.$ac_objext
1627 if { { ac_try="$ac_compile"
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_compile") 2>conftest.err
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest.$ac_objext; then :
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1656 } # ac_fn_c_try_compile
1658 # ac_fn_c_try_link LINENO
1659 # -----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded.
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 rm -f conftest.$ac_objext conftest$ac_exeext
1665 if { { ac_try="$ac_link"
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>conftest.err
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && {
1681 test -z "$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 } && test -s conftest$ac_exeext && {
1684 test "$cross_compiling" = yes ||
1685 test -x conftest$ac_exeext
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1694 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1695 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1696 # interfere with the next link command; also delete a directory that is
1697 # left behind by Apple's compiler. We do this before executing the actions.
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1702 } # ac_fn_c_try_link
1704 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1705 # -------------------------------------------------------
1706 # Tests whether HEADER exists and can be compiled using the include files in
1707 # INCLUDES, setting the cache variable VAR accordingly.
1708 ac_fn_c_check_header_compile ()
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if eval \${$3+:} false; then :
1714 $as_echo_n "(cached) " >&6
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1721 if ac_fn_c_try_compile "$LINENO"; then :
1726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 $as_echo "$ac_res" >&6; }
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 } # ac_fn_c_check_header_compile
1735 # ac_fn_c_try_cpp LINENO
1736 # ----------------------
1737 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 if { { ac_try="$ac_cpp conftest.$ac_ext"
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } > conftest.i && {
1757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1758 test ! -s conftest.err
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status $ac_retval
1772 # ac_fn_c_try_run LINENO
1773 # ----------------------
1774 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1775 # that executables *can* be run.
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if { { ac_try="$ac_link"
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_link") 2>&5
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1790 { { case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_try") 2>&5
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; }; }; then :
1802 $as_echo "$as_me: program exited with status $ac_status" >&5
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1806 ac_retval=$ac_status
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 as_fn_set_status $ac_retval
1814 # ac_fn_c_check_func LINENO FUNC VAR
1815 # ----------------------------------
1816 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1817 ac_fn_c_check_func ()
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if eval \${$3+:} false; then :
1823 $as_echo_n "(cached) " >&6
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1827 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1829 #define $2 innocuous_$2
1831 /* System header to define __stub macros and hopefully few prototypes,
1832 which can conflict with char $2 (); below.
1833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1834 <limits.h> exists even on freestanding compilers. */
1837 # include <limits.h>
1839 # include <assert.h>
1844 /* Override any GCC internal prototype to avoid an error.
1845 Use char because int might match the return type of a GCC
1846 builtin and then its argument prototype would still apply. */
1851 /* The GNU C library defines this for functions which it implements
1852 to always fail with ENOSYS. Some functions are actually named
1853 something starting with __ and the normal name is an alias. */
1854 #if defined __stub_$2 || defined __stub___$2
1866 if ac_fn_c_try_link "$LINENO"; then :
1871 rm -f core conftest.err conftest.$ac_objext \
1872 conftest$ac_exeext conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 } # ac_fn_c_check_func
1880 cat >config.log <<_ACEOF
1881 This file contains any messages produced by compilers while
1882 running configure, to aid debugging if configure makes a mistake.
1884 It was created by pygobject $as_me 3.13.3, which was
1885 generated by GNU Autoconf 2.69. Invocation command line was
1897 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1898 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1899 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1900 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1901 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1903 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1904 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1906 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1907 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1908 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1909 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1910 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1911 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1912 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 test -z "$as_dir" && as_dir=.
1921 $as_echo "PATH: $as_dir"
1937 # Keep a trace of the command line.
1938 # Strip out --no-create and --no-recursion so they do not pile up.
1939 # Strip out --silent because we don't want to record it for future runs.
1940 # Also quote any args containing shell meta-characters.
1941 # Make two passes to allow for proper duplicate-argument suppression.
1945 ac_must_keep_next=false
1951 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1953 | -silent | --silent | --silen | --sile | --sil)
1956 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1959 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1961 as_fn_append ac_configure_args1 " '$ac_arg'"
1962 if test $ac_must_keep_next = true; then
1963 ac_must_keep_next=false # Got value, back to normal.
1966 *=* | --config-cache | -C | -disable-* | --disable-* \
1967 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1968 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1969 | -with-* | --with-* | -without-* | --without-* | --x)
1970 case "$ac_configure_args0 " in
1971 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1974 -* ) ac_must_keep_next=true ;;
1977 as_fn_append ac_configure_args " '$ac_arg'"
1982 { ac_configure_args0=; unset ac_configure_args0;}
1983 { ac_configure_args1=; unset ac_configure_args1;}
1985 # When interrupted or exit'd, cleanup temporary files, and complete
1986 # config.log. We remove comments because anyway the quotes in there
1987 # would cause problems or look ugly.
1988 # WARNING: Use '\'' to represent an apostrophe within the trap.
1989 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1990 trap 'exit_status=$?
1991 # Save into config.log some information that might help in debugging.
1995 $as_echo "## ---------------- ##
1996 ## Cache variables. ##
1997 ## ---------------- ##"
1999 # The following way of writing the cache mishandles newlines in values,
2001 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2002 eval ac_val=\$$ac_var
2006 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2010 _ | IFS | as_nl) ;; #(
2011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2012 *) { eval $ac_var=; unset $ac_var;} ;;
2017 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2018 *${as_nl}ac_space=\ *)
2020 "s/'\''/'\''\\\\'\'''\''/g;
2021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2024 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2031 $as_echo "## ----------------- ##
2032 ## Output variables. ##
2033 ## ----------------- ##"
2035 for ac_var in $ac_subst_vars
2037 eval ac_val=\$$ac_var
2039 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041 $as_echo "$ac_var='\''$ac_val'\''"
2045 if test -n "$ac_subst_files"; then
2046 $as_echo "## ------------------- ##
2047 ## File substitutions. ##
2048 ## ------------------- ##"
2050 for ac_var in $ac_subst_files
2052 eval ac_val=\$$ac_var
2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2056 $as_echo "$ac_var='\''$ac_val'\''"
2061 if test -s confdefs.h; then
2062 $as_echo "## ----------- ##
2069 test "$ac_signal" != 0 &&
2070 $as_echo "$as_me: caught signal $ac_signal"
2071 $as_echo "$as_me: exit $exit_status"
2073 rm -f core *.core core.conftest.* &&
2074 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2077 for ac_signal in 1 2 13 15; do
2078 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2082 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2083 rm -f -r conftest* confdefs.h
2085 $as_echo "/* confdefs.h */" > confdefs.h
2087 # Predefined preprocessor variables.
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_NAME "$PACKAGE_NAME"
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_STRING "$PACKAGE_STRING"
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_URL "$PACKAGE_URL"
2114 # Let the site file select an alternate cache file if it wants to.
2115 # Prefer an explicitly selected file to automatically selected ones.
2118 if test -n "$CONFIG_SITE"; then
2119 # We do not want a PATH search for config.site.
2120 case $CONFIG_SITE in #((
2121 -*) ac_site_file1=./$CONFIG_SITE;;
2122 */*) ac_site_file1=$CONFIG_SITE;;
2123 *) ac_site_file1=./$CONFIG_SITE;;
2125 elif test "x$prefix" != xNONE; then
2126 ac_site_file1=$prefix/share/config.site
2127 ac_site_file2=$prefix/etc/config.site
2129 ac_site_file1=$ac_default_prefix/share/config.site
2130 ac_site_file2=$ac_default_prefix/etc/config.site
2132 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2134 test "x$ac_site_file" = xNONE && continue
2135 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2137 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2138 sed 's/^/| /' "$ac_site_file" >&5
2140 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2142 as_fn_error $? "failed to load site script $ac_site_file
2143 See \`config.log' for more details" "$LINENO" 5; }
2147 if test -r "$cache_file"; then
2148 # Some versions of bash will fail to source /dev/null (special files
2149 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2150 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2152 $as_echo "$as_me: loading cache $cache_file" >&6;}
2154 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2155 *) . "./$cache_file";;
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2160 $as_echo "$as_me: creating cache $cache_file" >&6;}
2164 # Check that the precious variables saved in the cache have kept the same
2166 ac_cache_corrupted=false
2167 for ac_var in $ac_precious_vars; do
2168 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2169 eval ac_new_set=\$ac_env_${ac_var}_set
2170 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2171 eval ac_new_val=\$ac_env_${ac_var}_value
2172 case $ac_old_set,$ac_new_set in
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2176 ac_cache_corrupted=: ;;
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2179 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2180 ac_cache_corrupted=: ;;
2183 if test "x$ac_old_val" != "x$ac_new_val"; then
2184 # differences in whitespace do not lead to failure.
2185 ac_old_val_w=`echo x $ac_old_val`
2186 ac_new_val_w=`echo x $ac_new_val`
2187 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2189 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2190 ac_cache_corrupted=:
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2193 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2194 eval $ac_var=\$ac_old_val
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2197 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2199 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2202 # Pass precious variables to config.status.
2203 if test "$ac_new_set" = set; then
2205 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2206 *) ac_arg=$ac_var=$ac_new_val ;;
2208 case " $ac_configure_args " in
2209 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2210 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2214 if $ac_cache_corrupted; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2218 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2219 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2221 ## -------------------- ##
2222 ## Main body of script. ##
2223 ## -------------------- ##
2226 ac_cpp='$CPP $CPPFLAGS'
2227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2232 ACLOCAL_AMFLAGS="-I m4 -I ."
2238 $as_echo "#define PYGOBJECT_MAJOR_VERSION 3" >>confdefs.h
2240 PYGOBJECT_MAJOR_VERSION=3
2243 $as_echo "#define PYGOBJECT_MINOR_VERSION 13" >>confdefs.h
2245 PYGOBJECT_MINOR_VERSION=13
2248 $as_echo "#define PYGOBJECT_MICRO_VERSION 3" >>confdefs.h
2250 PYGOBJECT_MICRO_VERSION=3
2253 ac_config_headers="$ac_config_headers config.h"
2255 # Check whether --enable-silent-rules was given.
2256 if test "${enable_silent_rules+set}" = set; then :
2257 enableval=$enable_silent_rules;
2260 case $enable_silent_rules in # (((
2261 yes) AM_DEFAULT_VERBOSITY=0;;
2262 no) AM_DEFAULT_VERBOSITY=1;;
2263 *) AM_DEFAULT_VERBOSITY=0;;
2265 am_make=${MAKE-make}
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2267 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2268 if ${am_cv_make_support_nested_variables+:} false; then :
2269 $as_echo_n "(cached) " >&6
2271 if $as_echo 'TRUE=$(BAR$(V))
2277 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2278 am_cv_make_support_nested_variables=yes
2280 am_cv_make_support_nested_variables=no
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2284 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2285 if test $am_cv_make_support_nested_variables = yes; then
2287 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2289 AM_V=$AM_DEFAULT_VERBOSITY
2290 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2294 am__api_version='1.13'
2297 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2298 if test -f "$ac_dir/install-sh"; then
2300 ac_install_sh="$ac_aux_dir/install-sh -c"
2302 elif test -f "$ac_dir/install.sh"; then
2304 ac_install_sh="$ac_aux_dir/install.sh -c"
2306 elif test -f "$ac_dir/shtool"; then
2308 ac_install_sh="$ac_aux_dir/shtool install -c"
2312 if test -z "$ac_aux_dir"; then
2313 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2316 # These three variables are undocumented and unsupported,
2317 # and are intended to be withdrawn in a future Autoconf release.
2318 # They can cause serious problems if a builder's source tree is in a directory
2319 # whose full name contains unusual characters.
2320 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2321 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2322 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2325 # Find a good install program. We prefer a C program (faster),
2326 # so one script is as good as another. But avoid the broken or
2327 # incompatible versions:
2328 # SysV /etc/install, /usr/sbin/install
2329 # SunOS /usr/etc/install
2330 # IRIX /sbin/install
2332 # AmigaOS /C/install, which installs bootblocks on floppy discs
2333 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2334 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2335 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2336 # OS/2's system install, which has a completely different semantic
2337 # ./install, which can be erroneously created by make from ./install.sh.
2338 # Reject install programs that cannot install multiple files.
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2340 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2341 if test -z "$INSTALL"; then
2342 if ${ac_cv_path_install+:} false; then :
2343 $as_echo_n "(cached) " >&6
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 test -z "$as_dir" && as_dir=.
2350 # Account for people who put trailing slashes in PATH elements.
2351 case $as_dir/ in #((
2352 ./ | .// | /[cC]/* | \
2353 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2354 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2357 # OSF1 and SCO ODT 3.0 have their own names for install.
2358 # Don't use installbsd from OSF since it installs stuff as root
2360 for ac_prog in ginstall scoinst install; do
2361 for ac_exec_ext in '' $ac_executable_extensions; do
2362 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2363 if test $ac_prog = install &&
2364 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2365 # AIX install. It has an incompatible calling convention.
2367 elif test $ac_prog = install &&
2368 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2369 # program-specific install script used by HP pwplus--don't use.
2372 rm -rf conftest.one conftest.two conftest.dir
2373 echo one > conftest.one
2374 echo two > conftest.two
2376 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2377 test -s conftest.one && test -s conftest.two &&
2378 test -s conftest.dir/conftest.one &&
2379 test -s conftest.dir/conftest.two
2381 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2394 rm -rf conftest.one conftest.two conftest.dir
2397 if test "${ac_cv_path_install+set}" = set; then
2398 INSTALL=$ac_cv_path_install
2400 # As a last resort, use the slow shell script. Don't cache a
2401 # value for INSTALL within a source directory, because that will
2402 # break other packages using the cache if that directory is
2403 # removed, or if the value is a relative name.
2404 INSTALL=$ac_install_sh
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2408 $as_echo "$INSTALL" >&6; }
2410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2411 # It thinks the first close brace ends the variable substitution.
2412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2419 $as_echo_n "checking whether build environment is sane... " >&6; }
2420 # Reject unsafe characters in $srcdir or the absolute working directory
2421 # name. Accept space and tab only in the latter.
2425 *[\\\"\#\$\&\'\`$am_lf]*)
2426 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2429 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2430 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2433 # Do 'set' in a subshell so we don't clobber the current shell's
2434 # arguments. Must try -L first in case configure is actually a
2435 # symlink; some systems play weird games with the mod time of symlinks
2436 # (eg FreeBSD returns the mod time of the symlink's containing
2440 for am_try in 1 2; do
2441 echo "timestamp, slept: $am_has_slept" > conftest.file
2442 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2443 if test "$*" = "X"; then
2445 set X `ls -t "$srcdir/configure" conftest.file`
2447 if test "$*" != "X $srcdir/configure conftest.file" \
2448 && test "$*" != "X conftest.file $srcdir/configure"; then
2450 # If neither matched, then we have a broken ls. This can happen
2451 # if, for instance, CONFIG_SHELL is bash and it inherits a
2452 # broken ls alias from the environment. This has actually
2453 # happened. Such a system could not be considered "sane".
2454 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2455 alias in your environment" "$LINENO" 5
2457 if test "$2" = conftest.file || test $am_try -eq 2; then
2464 test "$2" = conftest.file
2470 as_fn_error $? "newly created file is older than distributed files!
2471 Check your system clock" "$LINENO" 5
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2474 $as_echo "yes" >&6; }
2475 # If we didn't sleep, we still need to ensure time stamps of config.status and
2476 # generated files are strictly newer.
2478 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2485 test "$program_prefix" != NONE &&
2486 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2487 # Use a double $ so make ignores it.
2488 test "$program_suffix" != NONE &&
2489 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2490 # Double any \ or $.
2491 # By default was `s,x,x', remove it if useless.
2492 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2493 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2495 # expand $ac_aux_dir to an absolute path
2496 am_aux_dir=`cd $ac_aux_dir && pwd`
2498 if test x"${MISSING+set}" != xset; then
2501 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2503 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2506 # Use eval to expand $SHELL
2507 if eval "$MISSING --is-lightweight"; then
2508 am_missing_run="$MISSING "
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2512 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2515 if test x"${install_sh}" != xset; then
2518 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2520 install_sh="\${SHELL} $am_aux_dir/install-sh"
2524 # Installed binaries are usually stripped using 'strip' when the user
2525 # run "make install-strip". However 'strip' might not be the right
2526 # tool to use in cross-compilation environments, therefore Automake
2527 # will honor the 'STRIP' environment variable to overrule this program.
2528 if test "$cross_compiling" != no; then
2529 if test -n "$ac_tool_prefix"; then
2530 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2531 set dummy ${ac_tool_prefix}strip; ac_word=$2
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2533 $as_echo_n "checking for $ac_word... " >&6; }
2534 if ${ac_cv_prog_STRIP+:} false; then :
2535 $as_echo_n "(cached) " >&6
2537 if test -n "$STRIP"; then
2538 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2547 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 STRIP=$ac_cv_prog_STRIP
2558 if test -n "$STRIP"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2560 $as_echo "$STRIP" >&6; }
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2563 $as_echo "no" >&6; }
2568 if test -z "$ac_cv_prog_STRIP"; then
2570 # Extract the first word of "strip", so it can be a program name with args.
2571 set dummy strip; ac_word=$2
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2575 $as_echo_n "(cached) " >&6
2577 if test -n "$ac_ct_STRIP"; then
2578 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2587 ac_cv_prog_ac_ct_STRIP="strip"
2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2598 if test -n "$ac_ct_STRIP"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2600 $as_echo "$ac_ct_STRIP" >&6; }
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2606 if test "x$ac_ct_STRIP" = x; then
2609 case $cross_compiling:$ac_tool_warned in
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2613 ac_tool_warned=yes ;;
2618 STRIP="$ac_cv_prog_STRIP"
2622 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2625 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2626 if test -z "$MKDIR_P"; then
2627 if ${ac_cv_path_mkdir+:} false; then :
2628 $as_echo_n "(cached) " >&6
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2634 test -z "$as_dir" && as_dir=.
2635 for ac_prog in mkdir gmkdir; do
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2638 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2639 'mkdir (GNU coreutils) '* | \
2640 'mkdir (coreutils) '* | \
2641 'mkdir (fileutils) '4.1*)
2642 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2652 test -d ./--version && rmdir ./--version
2653 if test "${ac_cv_path_mkdir+set}" = set; then
2654 MKDIR_P="$ac_cv_path_mkdir -p"
2656 # As a last resort, use the slow shell script. Don't cache a
2657 # value for MKDIR_P within a source directory, because that will
2658 # break other packages using the cache if that directory is
2659 # removed, or if the value is a relative name.
2660 MKDIR_P="$ac_install_sh -d"
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2664 $as_echo "$MKDIR_P" >&6; }
2666 for ac_prog in gawk mawk nawk awk
2668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671 $as_echo_n "checking for $ac_word... " >&6; }
2672 if ${ac_cv_prog_AWK+:} false; then :
2673 $as_echo_n "(cached) " >&6
2675 if test -n "$AWK"; then
2676 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2685 ac_cv_prog_AWK="$ac_prog"
2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 if test -n "$AWK"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2698 $as_echo "$AWK" >&6; }
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2705 test -n "$AWK" && break
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2709 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2711 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2712 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2713 $as_echo_n "(cached) " >&6
2715 cat >conftest.make <<\_ACEOF
2718 @echo '@@@%%%=$(MAKE)=@@@%%%'
2720 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2721 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2723 eval ac_cv_prog_make_${ac_make}_set=yes;;
2725 eval ac_cv_prog_make_${ac_make}_set=no;;
2729 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2731 $as_echo "yes" >&6; }
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2736 SET_MAKE="MAKE=${MAKE-make}"
2739 rm -rf .tst 2>/dev/null
2740 mkdir .tst 2>/dev/null
2741 if test -d .tst; then
2746 rmdir .tst 2>/dev/null
2748 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2749 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2750 # is not polluted with repeated "-I."
2751 am__isrc=' -I$(srcdir)'
2752 # test to see if srcdir already configured
2753 if test -f $srcdir/config.status; then
2754 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2758 # test whether we have cygpath
2759 if test -z "$CYGPATH_W"; then
2760 if (cygpath --version) >/dev/null 2>/dev/null; then
2761 CYGPATH_W='cygpath -w'
2768 # Define the identity of the package.
2773 cat >>confdefs.h <<_ACEOF
2774 #define PACKAGE "$PACKAGE"
2778 cat >>confdefs.h <<_ACEOF
2779 #define VERSION "$VERSION"
2782 # Some tools Automake needs.
2784 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2787 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2790 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2793 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2796 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2798 # For better backward compatibility. To be removed once Automake 1.9.x
2799 # dies out for good. For more background, see:
2800 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2801 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2802 mkdir_p='$(MKDIR_P)'
2804 # We need awk for the "check" target. The system "awk" is bad on
2806 # Always define AMTAR for backward compatibility. Yes, it's still used
2807 # in the wild :-( We should find a proper way to deprecate it ...
2811 # We'll loop over all known methods to create a tar archive until one works.
2812 _am_tools='gnutar pax cpio none'
2814 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2822 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2824 # Make sure we can run config.sub.
2825 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2826 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2829 $as_echo_n "checking build system type... " >&6; }
2830 if ${ac_cv_build+:} false; then :
2831 $as_echo_n "(cached) " >&6
2833 ac_build_alias=$build_alias
2834 test "x$ac_build_alias" = x &&
2835 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2836 test "x$ac_build_alias" = x &&
2837 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2838 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2843 $as_echo "$ac_cv_build" >&6; }
2844 case $ac_cv_build in
2846 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2849 ac_save_IFS=$IFS; IFS='-'
2855 # Remember, the first character of IFS is used to create $*,
2856 # except with old shells:
2859 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2863 $as_echo_n "checking host system type... " >&6; }
2864 if ${ac_cv_host+:} false; then :
2865 $as_echo_n "(cached) " >&6
2867 if test "x$host_alias" = x; then
2868 ac_cv_host=$ac_cv_build
2870 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2871 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2876 $as_echo "$ac_cv_host" >&6; }
2879 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2882 ac_save_IFS=$IFS; IFS='-'
2888 # Remember, the first character of IFS is used to create $*,
2889 # except with old shells:
2892 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for some Win32 platform" >&5
2896 $as_echo_n "checking for some Win32 platform... " >&6; }
2898 *-*-mingw*|*-*-cygwin*)
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
2906 $as_echo "$platform_win32" >&6; }
2907 if test "$platform_win32" = "yes"; then
2908 PLATFORM_WIN32_TRUE=
2909 PLATFORM_WIN32_FALSE='#'
2911 PLATFORM_WIN32_TRUE='#'
2912 PLATFORM_WIN32_FALSE=
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
2917 $as_echo_n "checking for native Win32... " >&6; }
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
2927 $as_echo "$os_win32" >&6; }
2928 if test "$os_win32" = "yes"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2941 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2946 macro_version='2.4.2'
2947 macro_revision='1.3337'
2961 ltmain="$ac_aux_dir/ltmain.sh"
2963 # Backslashify metacharacters that are still active within
2964 # double-quoted strings.
2965 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2967 # Same as above, but do not quote variable references.
2968 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2970 # Sed substitution to delay expansion of an escaped shell variable in a
2971 # double_quote_subst'ed string.
2972 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2974 # Sed substitution to delay expansion of an escaped single quote.
2975 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2977 # Sed substitution to avoid accidental globbing in evaled expressions
2978 no_glob_subst='s/\*/\\\*/g'
2980 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2981 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2982 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2985 $as_echo_n "checking how to print strings... " >&6; }
2986 # Test print first, because it will be a builtin if present.
2987 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2988 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2990 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2993 # Use this function as a fallback that always works.
2994 func_fallback_echo ()
2996 eval 'cat <<_LTECHO_EOF
3000 ECHO='func_fallback_echo'
3003 # func_echo_all arg...
3004 # Invoke $ECHO with all args, space-separated.
3011 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3012 $as_echo "printf" >&6; } ;;
3013 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3014 $as_echo "print -r" >&6; } ;;
3015 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3016 $as_echo "cat" >&6; } ;;
3032 DEPDIR="${am__leading_dot}deps"
3034 ac_config_commands="$ac_config_commands depfiles"
3037 am_make=${MAKE-make}
3038 cat > confinc << 'END'
3040 @echo this is the am__doit target
3043 # If we don't find an include directive, just comment out the code.
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3045 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3049 # First try GNU make style include.
3050 echo "include confinc" > confmf
3051 # Ignore all kinds of additional output from 'make'.
3052 case `$am_make -s -f confmf 2> /dev/null` in #(
3053 *the\ am__doit\ target*)
3059 # Now try BSD make style include.
3060 if test "$am__include" = "#"; then
3061 echo '.include "confinc"' > confmf
3062 case `$am_make -s -f confmf 2> /dev/null` in #(
3063 *the\ am__doit\ target*)
3064 am__include=.include
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3073 $as_echo "$_am_result" >&6; }
3074 rm -f confinc confmf
3076 # Check whether --enable-dependency-tracking was given.
3077 if test "${enable_dependency_tracking+set}" = set; then :
3078 enableval=$enable_dependency_tracking;
3081 if test "x$enable_dependency_tracking" != xno; then
3082 am_depcomp="$ac_aux_dir/depcomp"
3086 if test "x$enable_dependency_tracking" != xno; then
3096 ac_cpp='$CPP $CPPFLAGS'
3097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100 if test -n "$ac_tool_prefix"; then
3101 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3102 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if ${ac_cv_prog_CC+:} false; then :
3106 $as_echo_n "(cached) " >&6
3108 if test -n "$CC"; then
3109 ac_cv_prog_CC="$CC" # Let the user override the test.
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 if test -n "$CC"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3131 $as_echo "$CC" >&6; }
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3139 if test -z "$ac_cv_prog_CC"; then
3141 # Extract the first word of "gcc", so it can be a program name with args.
3142 set dummy gcc; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3146 $as_echo_n "(cached) " >&6
3148 if test -n "$ac_ct_CC"; then
3149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 test -z "$as_dir" && as_dir=.
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158 ac_cv_prog_ac_ct_CC="gcc"
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3169 if test -n "$ac_ct_CC"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3171 $as_echo "$ac_ct_CC" >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3177 if test "x$ac_ct_CC" = x; then
3180 case $cross_compiling:$ac_tool_warned in
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3184 ac_tool_warned=yes ;;
3192 if test -z "$CC"; then
3193 if test -n "$ac_tool_prefix"; then
3194 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3195 set dummy ${ac_tool_prefix}cc; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if ${ac_cv_prog_CC+:} false; then :
3199 $as_echo_n "(cached) " >&6
3201 if test -n "$CC"; then
3202 ac_cv_prog_CC="$CC" # Let the user override the test.
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211 ac_cv_prog_CC="${ac_tool_prefix}cc"
3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 if test -n "$CC"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3224 $as_echo "$CC" >&6; }
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3233 if test -z "$CC"; then
3234 # Extract the first word of "cc", so it can be a program name with args.
3235 set dummy cc; 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_CC+:} false; then :
3239 $as_echo_n "(cached) " >&6
3241 if test -n "$CC"; then
3242 ac_cv_prog_CC="$CC" # Let the user override the test.
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 test -z "$as_dir" && as_dir=.
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3253 ac_prog_rejected=yes
3257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 if test $ac_prog_rejected = yes; then
3265 # We found a bogon in the path, so make sure we never use it.
3266 set dummy $ac_cv_prog_CC
3268 if test $# != 0; then
3269 # We chose a different compiler from the bogus one.
3270 # However, it has the same basename, so the bogon will be chosen
3271 # first if we set CC to just the basename; use the full file name.
3273 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3279 if test -n "$CC"; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3281 $as_echo "$CC" >&6; }
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3289 if test -z "$CC"; then
3290 if test -n "$ac_tool_prefix"; then
3291 for ac_prog in cl.exe
3293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 $as_echo_n "checking for $ac_word... " >&6; }
3297 if ${ac_cv_prog_CC+:} false; then :
3298 $as_echo_n "(cached) " >&6
3300 if test -n "$CC"; then
3301 ac_cv_prog_CC="$CC" # Let the user override the test.
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 test -z "$as_dir" && as_dir=.
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 if test -n "$CC"; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3323 $as_echo "$CC" >&6; }
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3330 test -n "$CC" && break
3333 if test -z "$CC"; then
3335 for ac_prog in cl.exe
3337 # Extract the first word of "$ac_prog", so it can be a program name with args.
3338 set dummy $ac_prog; ac_word=$2
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3340 $as_echo_n "checking for $ac_word... " >&6; }
3341 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3342 $as_echo_n "(cached) " >&6
3344 if test -n "$ac_ct_CC"; then
3345 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354 ac_cv_prog_ac_ct_CC="$ac_prog"
3355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3365 if test -n "$ac_ct_CC"; then
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3367 $as_echo "$ac_ct_CC" >&6; }
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3374 test -n "$ac_ct_CC" && break
3377 if test "x$ac_ct_CC" = x; then
3380 case $cross_compiling:$ac_tool_warned in
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3384 ac_tool_warned=yes ;;
3393 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3395 as_fn_error $? "no acceptable C compiler found in \$PATH
3396 See \`config.log' for more details" "$LINENO" 5; }
3398 # Provide some information about the compiler.
3399 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3402 for ac_option in --version -v -V -qversion; do
3403 { { ac_try="$ac_compiler $ac_option >&5"
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 $as_echo "$ac_try_echo"; } >&5
3410 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3412 if test -s conftest.err; then
3414 ... rest of stderr output deleted ...
3415 10q' conftest.err >conftest.er1
3416 cat conftest.er1 >&5
3418 rm -f conftest.er1 conftest.err
3419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420 test $ac_status = 0; }
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3434 ac_clean_files_save=$ac_clean_files
3435 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3436 # Try to create an executable without -o first, disregard a.out.
3437 # It will help us diagnose broken compilers, and finding out an intuition
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3440 $as_echo_n "checking whether the C compiler works... " >&6; }
3441 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3443 # The possible output files:
3444 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3447 for ac_file in $ac_files
3450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3451 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3456 if { { ac_try="$ac_link_default"
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462 $as_echo "$ac_try_echo"; } >&5
3463 (eval "$ac_link_default") 2>&5
3465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466 test $ac_status = 0; }; then :
3467 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3468 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3469 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3470 # so that the user can short-circuit this test for compilers unknown to
3472 for ac_file in $ac_files ''
3474 test -f "$ac_file" || continue
3476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3479 # We found the default executable, but exeext='' is most
3483 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3485 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3487 # We set ac_cv_exeext here because the later test for it is not
3488 # safe: cross compilers may not add the suffix if given an `-o'
3489 # argument, so we may need to know it at that point already.
3490 # Even if this section looks crufty: it has the advantage of
3497 test "$ac_cv_exeext" = no && ac_cv_exeext=
3502 if test -z "$ac_file"; then :
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3505 $as_echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 as_fn_error 77 "C compiler cannot create executables
3511 See \`config.log' for more details" "$LINENO" 5; }
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3514 $as_echo "yes" >&6; }
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3517 $as_echo_n "checking for C compiler default output file name... " >&6; }
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3519 $as_echo "$ac_file" >&6; }
3520 ac_exeext=$ac_cv_exeext
3522 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3523 ac_clean_files=$ac_clean_files_save
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3525 $as_echo_n "checking for suffix of executables... " >&6; }
3526 if { { ac_try="$ac_link"
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532 $as_echo "$ac_try_echo"; } >&5
3533 (eval "$ac_link") 2>&5
3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536 test $ac_status = 0; }; then :
3537 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3538 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3539 # work properly (i.e., refer to `conftest.exe'), while it won't with
3541 for ac_file in conftest.exe conftest conftest.*; do
3542 test -f "$ac_file" || continue
3544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3545 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3554 See \`config.log' for more details" "$LINENO" 5; }
3556 rm -f conftest conftest$ac_cv_exeext
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3558 $as_echo "$ac_cv_exeext" >&6; }
3560 rm -f conftest.$ac_ext
3561 EXEEXT=$ac_cv_exeext
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3569 FILE *f = fopen ("conftest.out", "w");
3570 return ferror (f) || fclose (f) != 0;
3576 ac_clean_files="$ac_clean_files conftest.out"
3577 # Check that the compiler produces executables we can run. If not, either
3578 # the compiler is broken, or we cross compile.
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3580 $as_echo_n "checking whether we are cross compiling... " >&6; }
3581 if test "$cross_compiling" != yes; then
3582 { { ac_try="$ac_link"
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588 $as_echo "$ac_try_echo"; } >&5
3589 (eval "$ac_link") 2>&5
3591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592 test $ac_status = 0; }
3593 if { ac_try='./conftest$ac_cv_exeext'
3594 { { case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599 $as_echo "$ac_try_echo"; } >&5
3600 (eval "$ac_try") 2>&5
3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603 test $ac_status = 0; }; }; then
3606 if test "$cross_compiling" = maybe; then
3609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611 as_fn_error $? "cannot run C compiled programs.
3612 If you meant to cross compile, use \`--host'.
3613 See \`config.log' for more details" "$LINENO" 5; }
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3618 $as_echo "$cross_compiling" >&6; }
3620 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3621 ac_clean_files=$ac_clean_files_save
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3623 $as_echo_n "checking for suffix of object files... " >&6; }
3624 if ${ac_cv_objext+:} false; then :
3625 $as_echo_n "(cached) " >&6
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3638 rm -f conftest.o conftest.obj
3639 if { { ac_try="$ac_compile"
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645 $as_echo "$ac_try_echo"; } >&5
3646 (eval "$ac_compile") 2>&5
3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649 test $ac_status = 0; }; then :
3650 for ac_file in conftest.o conftest.obj conftest.*; do
3651 test -f "$ac_file" || continue;
3653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3654 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3659 $as_echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664 as_fn_error $? "cannot compute suffix of object files: cannot compile
3665 See \`config.log' for more details" "$LINENO" 5; }
3667 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3670 $as_echo "$ac_cv_objext" >&6; }
3671 OBJEXT=$ac_cv_objext
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3674 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3675 if ${ac_cv_c_compiler_gnu+:} false; then :
3676 $as_echo_n "(cached) " >&6
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3692 if ac_fn_c_try_compile "$LINENO"; then :
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3702 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3703 if test $ac_compiler_gnu = yes; then
3708 ac_test_CFLAGS=${CFLAGS+set}
3709 ac_save_CFLAGS=$CFLAGS
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3711 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3712 if ${ac_cv_prog_cc_g+:} false; then :
3713 $as_echo_n "(cached) " >&6
3715 ac_save_c_werror_flag=$ac_c_werror_flag
3716 ac_c_werror_flag=yes
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3730 if ac_fn_c_try_compile "$LINENO"; then :
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3745 if ac_fn_c_try_compile "$LINENO"; then :
3748 ac_c_werror_flag=$ac_save_c_werror_flag
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3761 if ac_fn_c_try_compile "$LINENO"; then :
3764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769 ac_c_werror_flag=$ac_save_c_werror_flag
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3772 $as_echo "$ac_cv_prog_cc_g" >&6; }
3773 if test "$ac_test_CFLAGS" = set; then
3774 CFLAGS=$ac_save_CFLAGS
3775 elif test $ac_cv_prog_cc_g = yes; then
3776 if test "$GCC" = yes; then
3782 if test "$GCC" = yes; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3789 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3790 if ${ac_cv_prog_cc_c89+:} false; then :
3791 $as_echo_n "(cached) " >&6
3793 ac_cv_prog_cc_c89=no
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3800 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3801 struct buf { int x; };
3802 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3803 static char *e (p, i)
3809 static char *f (char * (*g) (char **, int), char **p, ...)
3814 s = g (p, va_arg (v,int));
3819 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3820 function prototypes and stuff, but not '\xHH' hex character constants.
3821 These don't provoke an error unfortunately, instead are silently treated
3822 as 'x'. The following induces an error, until -std is added to get
3823 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3824 array size at least. It's necessary to write '\x00'==0 to get something
3825 that's true only with -std. */
3826 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3828 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3829 inside strings and character constants. */
3831 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3833 int test (int i, double x);
3834 struct s1 {int (*f) (int a);};
3835 struct s2 {int (*f) (double a);};
3836 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3842 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3847 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3848 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3850 CC="$ac_save_CC $ac_arg"
3851 if ac_fn_c_try_compile "$LINENO"; then :
3852 ac_cv_prog_cc_c89=$ac_arg
3854 rm -f core conftest.err conftest.$ac_objext
3855 test "x$ac_cv_prog_cc_c89" != "xno" && break
3857 rm -f conftest.$ac_ext
3862 case "x$ac_cv_prog_cc_c89" in
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3865 $as_echo "none needed" >&6; } ;;
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3868 $as_echo "unsupported" >&6; } ;;
3870 CC="$CC $ac_cv_prog_cc_c89"
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3872 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3874 if test "x$ac_cv_prog_cc_c89" != xno; then :
3879 ac_cpp='$CPP $CPPFLAGS'
3880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3884 depcc="$CC" am_compiler_list=
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3887 $as_echo_n "checking dependency style of $depcc... " >&6; }
3888 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3889 $as_echo_n "(cached) " >&6
3891 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3892 # We make a subdir and do the tests there. Otherwise we can end up
3893 # making bogus files that we don't know about and never remove. For
3894 # instance it was reported that on HP-UX the gcc test will end up
3895 # making a dummy file named 'D' -- because '-MD' means "put the output
3899 # Copy depcomp to subdir because otherwise we won't find it if we're
3900 # using a relative directory.
3901 cp "$am_depcomp" conftest.dir
3903 # We will build objects and dependencies in a subdirectory because
3904 # it helps to detect inapplicable dependency modes. For instance
3905 # both Tru64's cc and ICC support -MD to output dependencies as a
3906 # side effect of compilation, but ICC will put the dependencies in
3907 # the current directory while Tru64 will put them in the object
3911 am_cv_CC_dependencies_compiler_type=none
3912 if test "$am_compiler_list" = ""; then
3913 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3916 case " $depcc " in #(
3917 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3920 for depmode in $am_compiler_list; do
3921 # Setup a source with many dependencies, because some compilers
3922 # like to wrap large dependency lists on column 80 (with \), and
3923 # we should not choose a depcomp mode which is confused by this.
3925 # We need to recreate these files for each test, as the compiler may
3926 # overwrite some of them when testing with obscure command lines.
3927 # This happens at least with the AIX C compiler.
3929 for i in 1 2 3 4 5 6; do
3930 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3931 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3932 # Solaris 10 /bin/sh.
3933 echo '/* dummy */' > sub/conftst$i.h
3935 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3937 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3938 # mode. It turns out that the SunPro C++ compiler does not properly
3939 # handle '-M -o', and we need to detect this. Also, some Intel
3940 # versions had trouble with output in subdirs.
3941 am__obj=sub/conftest.${OBJEXT-o}
3942 am__minus_obj="-o $am__obj"
3945 # This depmode causes a compiler race in universal mode.
3946 test "$am__universal" = false || continue
3949 # After this tag, mechanisms are not by side-effect, so they'll
3950 # only be used when explicitly requested.
3951 if test "x$enable_dependency_tracking" = xyes; then
3957 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3958 # This compiler won't grok '-c -o', but also, the minuso test has
3959 # not run yet. These depmodes are late enough in the game, and
3960 # so weak that their functioning should not be impacted.
3961 am__obj=conftest.${OBJEXT-o}
3966 if depmode=$depmode \
3967 source=sub/conftest.c object=$am__obj \
3968 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3969 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3970 >/dev/null 2>conftest.err &&
3971 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3972 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3973 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3974 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3975 # icc doesn't choke on unknown options, it will just issue warnings
3976 # or remarks (even with -Werror). So we grep stderr for any message
3977 # that says an option was ignored or not supported.
3978 # When given -MP, icc 7.0 and 7.1 complain thusly:
3979 # icc: Command line warning: ignoring option '-M'; no argument required
3980 # The diagnosis changed in icc 8.0:
3981 # icc: Command line remark: option '-MP' not supported
3982 if (grep 'ignoring option' conftest.err ||
3983 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3984 am_cv_CC_dependencies_compiler_type=$depmode
3993 am_cv_CC_dependencies_compiler_type=none
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3998 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3999 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4002 test "x$enable_dependency_tracking" != xno \
4003 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4005 am__fastdepCC_FALSE='#'
4007 am__fastdepCC_TRUE='#'
4008 am__fastdepCC_FALSE=
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4013 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4014 if ${ac_cv_path_SED+:} false; then :
4015 $as_echo_n "(cached) " >&6
4017 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4018 for ac_i in 1 2 3 4 5 6 7; do
4019 ac_script="$ac_script$as_nl$ac_script"
4021 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4022 { ac_script=; unset ac_script;}
4023 if test -z "$SED"; then
4024 ac_path_SED_found=false
4025 # Loop through the user's path and test for each of PROGNAME-LIST
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 test -z "$as_dir" && as_dir=.
4031 for ac_prog in sed gsed; do
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4034 as_fn_executable_p "$ac_path_SED" || continue
4035 # Check for GNU ac_path_SED and select it if it is found.
4036 # Check for GNU $ac_path_SED
4037 case `"$ac_path_SED" --version 2>&1` in
4039 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4042 $as_echo_n 0123456789 >"conftest.in"
4045 cat "conftest.in" "conftest.in" >"conftest.tmp"
4046 mv "conftest.tmp" "conftest.in"
4047 cp "conftest.in" "conftest.nl"
4048 $as_echo '' >> "conftest.nl"
4049 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4051 as_fn_arith $ac_count + 1 && ac_count=$as_val
4052 if test $ac_count -gt ${ac_path_SED_max-0}; then
4053 # Best one so far, save it but keep looking for a better one
4054 ac_cv_path_SED="$ac_path_SED"
4055 ac_path_SED_max=$ac_count
4057 # 10*(2^10) chars as input seems more than enough
4058 test $ac_count -gt 10 && break
4060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4063 $ac_path_SED_found && break 3
4068 if test -z "$ac_cv_path_SED"; then
4069 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4077 $as_echo "$ac_cv_path_SED" >&6; }
4078 SED="$ac_cv_path_SED"
4081 test -z "$SED" && SED=sed
4082 Xsed="$SED -e 1s/^X//"
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4095 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4096 if ${ac_cv_path_GREP+:} false; then :
4097 $as_echo_n "(cached) " >&6
4099 if test -z "$GREP"; then
4100 ac_path_GREP_found=false
4101 # Loop through the user's path and test for each of PROGNAME-LIST
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4106 test -z "$as_dir" && as_dir=.
4107 for ac_prog in grep ggrep; do
4108 for ac_exec_ext in '' $ac_executable_extensions; do
4109 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4110 as_fn_executable_p "$ac_path_GREP" || continue
4111 # Check for GNU ac_path_GREP and select it if it is found.
4112 # Check for GNU $ac_path_GREP
4113 case `"$ac_path_GREP" --version 2>&1` in
4115 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4118 $as_echo_n 0123456789 >"conftest.in"
4121 cat "conftest.in" "conftest.in" >"conftest.tmp"
4122 mv "conftest.tmp" "conftest.in"
4123 cp "conftest.in" "conftest.nl"
4124 $as_echo 'GREP' >> "conftest.nl"
4125 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4127 as_fn_arith $ac_count + 1 && ac_count=$as_val
4128 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4129 # Best one so far, save it but keep looking for a better one
4130 ac_cv_path_GREP="$ac_path_GREP"
4131 ac_path_GREP_max=$ac_count
4133 # 10*(2^10) chars as input seems more than enough
4134 test $ac_count -gt 10 && break
4136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4139 $ac_path_GREP_found && break 3
4144 if test -z "$ac_cv_path_GREP"; then
4145 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4148 ac_cv_path_GREP=$GREP
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4153 $as_echo "$ac_cv_path_GREP" >&6; }
4154 GREP="$ac_cv_path_GREP"
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4158 $as_echo_n "checking for egrep... " >&6; }
4159 if ${ac_cv_path_EGREP+:} false; then :
4160 $as_echo_n "(cached) " >&6
4162 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4163 then ac_cv_path_EGREP="$GREP -E"
4165 if test -z "$EGREP"; then
4166 ac_path_EGREP_found=false
4167 # Loop through the user's path and test for each of PROGNAME-LIST
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4172 test -z "$as_dir" && as_dir=.
4173 for ac_prog in egrep; do
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4176 as_fn_executable_p "$ac_path_EGREP" || continue
4177 # Check for GNU ac_path_EGREP and select it if it is found.
4178 # Check for GNU $ac_path_EGREP
4179 case `"$ac_path_EGREP" --version 2>&1` in
4181 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4184 $as_echo_n 0123456789 >"conftest.in"
4187 cat "conftest.in" "conftest.in" >"conftest.tmp"
4188 mv "conftest.tmp" "conftest.in"
4189 cp "conftest.in" "conftest.nl"
4190 $as_echo 'EGREP' >> "conftest.nl"
4191 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4192 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4193 as_fn_arith $ac_count + 1 && ac_count=$as_val
4194 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4195 # Best one so far, save it but keep looking for a better one
4196 ac_cv_path_EGREP="$ac_path_EGREP"
4197 ac_path_EGREP_max=$ac_count
4199 # 10*(2^10) chars as input seems more than enough
4200 test $ac_count -gt 10 && break
4202 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4205 $ac_path_EGREP_found && break 3
4210 if test -z "$ac_cv_path_EGREP"; then
4211 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4214 ac_cv_path_EGREP=$EGREP
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4220 $as_echo "$ac_cv_path_EGREP" >&6; }
4221 EGREP="$ac_cv_path_EGREP"
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4225 $as_echo_n "checking for fgrep... " >&6; }
4226 if ${ac_cv_path_FGREP+:} false; then :
4227 $as_echo_n "(cached) " >&6
4229 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4230 then ac_cv_path_FGREP="$GREP -F"
4232 if test -z "$FGREP"; then
4233 ac_path_FGREP_found=false
4234 # Loop through the user's path and test for each of PROGNAME-LIST
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4239 test -z "$as_dir" && as_dir=.
4240 for ac_prog in fgrep; do
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4243 as_fn_executable_p "$ac_path_FGREP" || continue
4244 # Check for GNU ac_path_FGREP and select it if it is found.
4245 # Check for GNU $ac_path_FGREP
4246 case `"$ac_path_FGREP" --version 2>&1` in
4248 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4251 $as_echo_n 0123456789 >"conftest.in"
4254 cat "conftest.in" "conftest.in" >"conftest.tmp"
4255 mv "conftest.tmp" "conftest.in"
4256 cp "conftest.in" "conftest.nl"
4257 $as_echo 'FGREP' >> "conftest.nl"
4258 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4260 as_fn_arith $ac_count + 1 && ac_count=$as_val
4261 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4262 # Best one so far, save it but keep looking for a better one
4263 ac_cv_path_FGREP="$ac_path_FGREP"
4264 ac_path_FGREP_max=$ac_count
4266 # 10*(2^10) chars as input seems more than enough
4267 test $ac_count -gt 10 && break
4269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4272 $ac_path_FGREP_found && break 3
4277 if test -z "$ac_cv_path_FGREP"; then
4278 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4281 ac_cv_path_FGREP=$FGREP
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4287 $as_echo "$ac_cv_path_FGREP" >&6; }
4288 FGREP="$ac_cv_path_FGREP"
4291 test -z "$GREP" && GREP=grep
4311 # Check whether --with-gnu-ld was given.
4312 if test "${with_gnu_ld+set}" = set; then :
4313 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4319 if test "$GCC" = yes; then
4320 # Check if gcc -print-prog-name=ld gives a path.
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4322 $as_echo_n "checking for ld used by $CC... " >&6; }
4325 # gcc leaves a trailing carriage return which upsets mingw
4326 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4328 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4331 # Accept absolute paths.
4333 re_direlt='/[^/][^/]*/\.\./'
4334 # Canonicalize the pathname of ld
4335 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4336 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4337 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4339 test -z "$LD" && LD="$ac_prog"
4342 # If it fails, then pretend we aren't using GCC.
4346 # If it is relative, then search for the first ld in PATH.
4350 elif test "$with_gnu_ld" = yes; then
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4352 $as_echo_n "checking for GNU ld... " >&6; }
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4355 $as_echo_n "checking for non-GNU ld... " >&6; }
4357 if ${lt_cv_path_LD+:} false; then :
4358 $as_echo_n "(cached) " >&6
4360 if test -z "$LD"; then
4361 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4362 for ac_dir in $PATH; do
4364 test -z "$ac_dir" && ac_dir=.
4365 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4366 lt_cv_path_LD="$ac_dir/$ac_prog"
4367 # Check to see if the program is GNU ld. I'd rather use --version,
4368 # but apparently some variants of GNU ld only accept -v.
4369 # Break only if it was the GNU/non-GNU ld that we prefer.
4370 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4371 *GNU* | *'with BFD'*)
4372 test "$with_gnu_ld" != no && break
4375 test "$with_gnu_ld" != yes && break
4382 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4387 if test -n "$LD"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4389 $as_echo "$LD" >&6; }
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4394 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4396 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4397 if ${lt_cv_prog_gnu_ld+:} false; then :
4398 $as_echo_n "(cached) " >&6
4400 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4401 case `$LD -v 2>&1 </dev/null` in
4402 *GNU* | *'with BFD'*)
4403 lt_cv_prog_gnu_ld=yes
4406 lt_cv_prog_gnu_ld=no
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4411 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4412 with_gnu_ld=$lt_cv_prog_gnu_ld
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4423 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4424 if ${lt_cv_path_NM+:} false; then :
4425 $as_echo_n "(cached) " >&6
4427 if test -n "$NM"; then
4428 # Let the user override the test.
4431 lt_nm_to_check="${ac_tool_prefix}nm"
4432 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4433 lt_nm_to_check="$lt_nm_to_check nm"
4435 for lt_tmp_nm in $lt_nm_to_check; do
4436 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4437 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4439 test -z "$ac_dir" && ac_dir=.
4440 tmp_nm="$ac_dir/$lt_tmp_nm"
4441 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4442 # Check to see if the nm accepts a BSD-compat flag.
4443 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4444 # nm: unknown option "B" ignored
4445 # Tru64's nm complains that /dev/null is an invalid object file
4446 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4447 */dev/null* | *'Invalid file or object type'*)
4448 lt_cv_path_NM="$tmp_nm -B"
4452 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4454 lt_cv_path_NM="$tmp_nm -p"
4458 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4459 continue # so that we can try to find one that supports BSD flags
4468 : ${lt_cv_path_NM=no}
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4472 $as_echo "$lt_cv_path_NM" >&6; }
4473 if test "$lt_cv_path_NM" != "no"; then
4476 # Didn't find any BSD compatible name lister, look for dumpbin.
4477 if test -n "$DUMPBIN"; then :
4478 # Let the user override the test.
4480 if test -n "$ac_tool_prefix"; then
4481 for ac_prog in dumpbin "link -dump"
4483 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4486 $as_echo_n "checking for $ac_word... " >&6; }
4487 if ${ac_cv_prog_DUMPBIN+:} false; then :
4488 $as_echo_n "(cached) " >&6
4490 if test -n "$DUMPBIN"; then
4491 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 test -z "$as_dir" && as_dir=.
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4500 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4510 DUMPBIN=$ac_cv_prog_DUMPBIN
4511 if test -n "$DUMPBIN"; then
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4513 $as_echo "$DUMPBIN" >&6; }
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 $as_echo "no" >&6; }
4520 test -n "$DUMPBIN" && break
4523 if test -z "$DUMPBIN"; then
4524 ac_ct_DUMPBIN=$DUMPBIN
4525 for ac_prog in dumpbin "link -dump"
4527 # Extract the first word of "$ac_prog", so it can be a program name with args.
4528 set dummy $ac_prog; ac_word=$2
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4532 $as_echo_n "(cached) " >&6
4534 if test -n "$ac_ct_DUMPBIN"; then
4535 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4555 if test -n "$ac_ct_DUMPBIN"; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4557 $as_echo "$ac_ct_DUMPBIN" >&6; }
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4564 test -n "$ac_ct_DUMPBIN" && break
4567 if test "x$ac_ct_DUMPBIN" = x; then
4570 case $cross_compiling:$ac_tool_warned in
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4574 ac_tool_warned=yes ;;
4576 DUMPBIN=$ac_ct_DUMPBIN
4580 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4582 DUMPBIN="$DUMPBIN -symbols"
4590 if test "$DUMPBIN" != ":"; then
4594 test -z "$NM" && NM=nm
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4602 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4603 if ${lt_cv_nm_interface+:} false; then :
4604 $as_echo_n "(cached) " >&6
4606 lt_cv_nm_interface="BSD nm"
4607 echo "int some_variable = 0;" > conftest.$ac_ext
4608 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4609 (eval "$ac_compile" 2>conftest.err)
4610 cat conftest.err >&5
4611 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4612 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4613 cat conftest.err >&5
4614 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4615 cat conftest.out >&5
4616 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4617 lt_cv_nm_interface="MS dumpbin"
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4622 $as_echo "$lt_cv_nm_interface" >&6; }
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4625 $as_echo_n "checking whether ln -s works... " >&6; }
4627 if test "$LN_S" = "ln -s"; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4629 $as_echo "yes" >&6; }
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4632 $as_echo "no, using $LN_S" >&6; }
4635 # find the maximum length of command line arguments
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4637 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4638 if ${lt_cv_sys_max_cmd_len+:} false; then :
4639 $as_echo_n "(cached) " >&6
4646 # On DJGPP, this test can blow up pretty badly due to problems in libc
4647 # (any single argument exceeding 2000 bytes causes a buffer overrun
4648 # during glob expansion). Even if it were fixed, the result of this
4649 # check would be larger than it should be.
4650 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4654 # Under GNU Hurd, this test is not required because there is
4655 # no limit to the length of command line arguments.
4656 # Libtool will interpret -1 as no limit whatsoever
4657 lt_cv_sys_max_cmd_len=-1;
4660 cygwin* | mingw* | cegcc*)
4661 # On Win9x/ME, this test blows up -- it succeeds, but takes
4662 # about 5 minutes as the teststring grows exponentially.
4663 # Worse, since 9x/ME are not pre-emptively multitasking,
4664 # you end up with a "frozen" computer, even though with patience
4665 # the test eventually succeeds (with a max line length of 256k).
4666 # Instead, let's just punt: use the minimum linelength reported by
4667 # all of the supported platforms: 8192 (on NT/2K/XP).
4668 lt_cv_sys_max_cmd_len=8192;
4672 # On MiNT this can take a long time and run out of memory.
4673 lt_cv_sys_max_cmd_len=8192;
4677 # On AmigaOS with pdksh, this test takes hours, literally.
4678 # So we just punt and use a minimum line length of 8192.
4679 lt_cv_sys_max_cmd_len=8192;
4682 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4683 # This has been around since 386BSD, at least. Likely further.
4684 if test -x /sbin/sysctl; then
4685 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4686 elif test -x /usr/sbin/sysctl; then
4687 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4689 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4691 # And add a safety zone
4692 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4697 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4698 lt_cv_sys_max_cmd_len=196608
4702 # The test takes a long time on OS/2.
4703 lt_cv_sys_max_cmd_len=8192
4707 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4708 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4709 # nice to cause kernel panics so lets avoid the loop below.
4710 # First set a reasonable default.
4711 lt_cv_sys_max_cmd_len=16384
4713 if test -x /sbin/sysconfig; then
4714 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4715 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4720 lt_cv_sys_max_cmd_len=102400
4722 sysv5* | sco5v6* | sysv4.2uw2*)
4723 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4724 if test -n "$kargmax"; then
4725 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4727 lt_cv_sys_max_cmd_len=32768
4731 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4732 if test -n "$lt_cv_sys_max_cmd_len"; then
4733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4734 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4736 # Make teststring a little bigger before we do anything with it.
4737 # a 1K string should be a reasonable start.
4738 for i in 1 2 3 4 5 6 7 8 ; do
4739 teststring=$teststring$teststring
4741 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4742 # If test is not a shell built-in, we'll probably end up computing a
4743 # maximum length that is only half of the actual maximum length, but
4745 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4746 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4747 test $i != 17 # 1/2 MB should be enough
4750 teststring=$teststring$teststring
4752 # Only check the string length outside the loop.
4753 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4755 # Add a significant safety factor because C++ compilers can tack on
4756 # massive amounts of additional arguments before passing them to the
4757 # linker. It appears as though 1/2 is a usable value.
4758 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4765 if test -n $lt_cv_sys_max_cmd_len ; then
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4767 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4770 $as_echo "none" >&6; }
4772 max_cmd_len=$lt_cv_sys_max_cmd_len
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4784 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4785 # Try some XSI features
4788 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4790 && eval 'test $(( 1 + 1 )) -eq 2 \
4791 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4794 $as_echo "$xsi_shell" >&6; }
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4798 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4800 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4802 && lt_shell_append=yes
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4804 $as_echo "$lt_shell_append" >&6; }
4807 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4817 # test EBCDIC or ASCII
4818 case `echo X|tr X '\101'` in
4819 A) # ASCII based system
4820 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4821 lt_SP2NL='tr \040 \012'
4822 lt_NL2SP='tr \015\012 \040\040'
4824 *) # EBCDIC based system
4825 lt_SP2NL='tr \100 \n'
4826 lt_NL2SP='tr \r\n \100\100'
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4839 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4840 if ${lt_cv_to_host_file_cmd+:} false; then :
4841 $as_echo_n "(cached) " >&6
4846 *-*-mingw* ) # actually msys
4847 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4850 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4852 * ) # otherwise, assume *nix
4853 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4859 *-*-mingw* ) # actually msys
4860 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4863 lt_cv_to_host_file_cmd=func_convert_file_noop
4865 * ) # otherwise, assume *nix
4866 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4870 * ) # unhandled hosts (and "normal" native builds)
4871 lt_cv_to_host_file_cmd=func_convert_file_noop
4877 to_host_file_cmd=$lt_cv_to_host_file_cmd
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4879 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4886 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4887 if ${lt_cv_to_tool_file_cmd+:} false; then :
4888 $as_echo_n "(cached) " >&6
4890 #assume ordinary cross tools, or native build.
4891 lt_cv_to_tool_file_cmd=func_convert_file_noop
4895 *-*-mingw* ) # actually msys
4896 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4904 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4906 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4913 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4914 if ${lt_cv_ld_reload_flag+:} false; then :
4915 $as_echo_n "(cached) " >&6
4917 lt_cv_ld_reload_flag='-r'
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4920 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4921 reload_flag=$lt_cv_ld_reload_flag
4922 case $reload_flag in
4924 *) reload_flag=" $reload_flag" ;;
4926 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4928 cygwin* | mingw* | pw32* | cegcc*)
4929 if test "$GCC" != yes; then
4934 if test "$GCC" = yes; then
4935 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4937 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4950 if test -n "$ac_tool_prefix"; then
4951 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4952 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if ${ac_cv_prog_OBJDUMP+:} false; then :
4956 $as_echo_n "(cached) " >&6
4958 if test -n "$OBJDUMP"; then
4959 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 OBJDUMP=$ac_cv_prog_OBJDUMP
4979 if test -n "$OBJDUMP"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4981 $as_echo "$OBJDUMP" >&6; }
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4989 if test -z "$ac_cv_prog_OBJDUMP"; then
4990 ac_ct_OBJDUMP=$OBJDUMP
4991 # Extract the first word of "objdump", so it can be a program name with args.
4992 set dummy objdump; ac_word=$2
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994 $as_echo_n "checking for $ac_word... " >&6; }
4995 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4996 $as_echo_n "(cached) " >&6
4998 if test -n "$ac_ct_OBJDUMP"; then
4999 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5008 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5019 if test -n "$ac_ct_OBJDUMP"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5021 $as_echo "$ac_ct_OBJDUMP" >&6; }
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5027 if test "x$ac_ct_OBJDUMP" = x; then
5030 case $cross_compiling:$ac_tool_warned in
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5034 ac_tool_warned=yes ;;
5036 OBJDUMP=$ac_ct_OBJDUMP
5039 OBJDUMP="$ac_cv_prog_OBJDUMP"
5042 test -z "$OBJDUMP" && OBJDUMP=objdump
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5050 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5051 if ${lt_cv_deplibs_check_method+:} false; then :
5052 $as_echo_n "(cached) " >&6
5054 lt_cv_file_magic_cmd='$MAGIC_CMD'
5055 lt_cv_file_magic_test_file=
5056 lt_cv_deplibs_check_method='unknown'
5057 # Need to set the preceding variable on all platforms that support
5058 # interlibrary dependencies.
5059 # 'none' -- dependencies not supported.
5060 # `unknown' -- same as none, but documents that we really don't know.
5061 # 'pass_all' -- all dependencies passed with no checks.
5062 # 'test_compile' -- check by making test program.
5063 # 'file_magic [[regex]]' -- check by looking for files in library path
5064 # which responds to the $file_magic_cmd with a given extended regex.
5065 # If you have `file' or equivalent on your system and you're not sure
5066 # whether `pass_all' will *always* work, you probably want this one.
5070 lt_cv_deplibs_check_method=pass_all
5074 lt_cv_deplibs_check_method=pass_all
5078 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5079 lt_cv_file_magic_cmd='/usr/bin/file -L'
5080 lt_cv_file_magic_test_file=/shlib/libc.so
5084 # func_win32_libid is a shell function defined in ltmain.sh
5085 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5086 lt_cv_file_magic_cmd='func_win32_libid'
5090 # Base MSYS/MinGW do not provide the 'file' command needed by
5091 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5092 # unless we find 'file', for example because we are cross-compiling.
5093 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5094 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5095 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5096 lt_cv_file_magic_cmd='func_win32_libid'
5098 # Keep this pattern in sync with the one in func_win32_libid.
5099 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5100 lt_cv_file_magic_cmd='$OBJDUMP -f'
5105 # use the weaker test based on 'objdump'. See mingw*.
5106 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5107 lt_cv_file_magic_cmd='$OBJDUMP -f'
5110 darwin* | rhapsody*)
5111 lt_cv_deplibs_check_method=pass_all
5114 freebsd* | dragonfly*)
5115 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5118 # Not sure whether the presence of OpenBSD here was a mistake.
5119 # Let's accept both of them until this is cleared up.
5120 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5121 lt_cv_file_magic_cmd=/usr/bin/file
5122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5126 lt_cv_deplibs_check_method=pass_all
5131 lt_cv_deplibs_check_method=pass_all
5135 lt_cv_deplibs_check_method=pass_all
5138 hpux10.20* | hpux11*)
5139 lt_cv_file_magic_cmd=/usr/bin/file
5142 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5143 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5146 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]'
5147 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5150 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5151 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5157 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5158 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5161 irix5* | irix6* | nonstopux*)
5163 *-32|*"-32 ") libmagic=32-bit;;
5164 *-n32|*"-n32 ") libmagic=N32;;
5165 *-64|*"-64 ") libmagic=64-bit;;
5166 *) libmagic=never-match;;
5168 lt_cv_deplibs_check_method=pass_all
5171 # This must be glibc/ELF.
5172 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5173 lt_cv_deplibs_check_method=pass_all
5177 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5178 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5180 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5185 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5186 lt_cv_file_magic_cmd=/usr/bin/file
5187 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5191 lt_cv_deplibs_check_method=pass_all
5195 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5202 osf3* | osf4* | osf5*)
5203 lt_cv_deplibs_check_method=pass_all
5207 lt_cv_deplibs_check_method=pass_all
5211 lt_cv_deplibs_check_method=pass_all
5214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5215 lt_cv_deplibs_check_method=pass_all
5219 case $host_vendor in
5221 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]'
5222 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5225 lt_cv_deplibs_check_method=pass_all
5228 lt_cv_file_magic_cmd='/bin/file'
5229 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5232 lt_cv_file_magic_cmd='/bin/file'
5233 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5234 lt_cv_file_magic_test_file=/lib/libc.so
5237 lt_cv_deplibs_check_method=pass_all
5240 lt_cv_deplibs_check_method=pass_all
5246 lt_cv_deplibs_check_method=pass_all
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5252 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5256 if test "$build" = "$host"; then
5259 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5262 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5268 file_magic_cmd=$lt_cv_file_magic_cmd
5269 deplibs_check_method=$lt_cv_deplibs_check_method
5270 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5293 if test -n "$ac_tool_prefix"; then
5294 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5295 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if ${ac_cv_prog_DLLTOOL+:} false; then :
5299 $as_echo_n "(cached) " >&6
5301 if test -n "$DLLTOOL"; then
5302 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 DLLTOOL=$ac_cv_prog_DLLTOOL
5322 if test -n "$DLLTOOL"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5324 $as_echo "$DLLTOOL" >&6; }
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5332 if test -z "$ac_cv_prog_DLLTOOL"; then
5333 ac_ct_DLLTOOL=$DLLTOOL
5334 # Extract the first word of "dlltool", so it can be a program name with args.
5335 set dummy dlltool; ac_word=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5339 $as_echo_n "(cached) " >&6
5341 if test -n "$ac_ct_DLLTOOL"; then
5342 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5351 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5362 if test -n "$ac_ct_DLLTOOL"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5364 $as_echo "$ac_ct_DLLTOOL" >&6; }
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5370 if test "x$ac_ct_DLLTOOL" = x; then
5373 case $cross_compiling:$ac_tool_warned in
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5377 ac_tool_warned=yes ;;
5379 DLLTOOL=$ac_ct_DLLTOOL
5382 DLLTOOL="$ac_cv_prog_DLLTOOL"
5385 test -z "$DLLTOOL" && DLLTOOL=dlltool
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5394 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5395 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5396 $as_echo_n "(cached) " >&6
5398 lt_cv_sharedlib_from_linklib_cmd='unknown'
5401 cygwin* | mingw* | pw32* | cegcc*)
5402 # two different shell functions defined in ltmain.sh
5403 # decide which to use based on capabilities of $DLLTOOL
5404 case `$DLLTOOL --help 2>&1` in
5405 *--identify-strict*)
5406 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5409 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5414 # fallback: assume linklib IS sharedlib
5415 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5421 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5422 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5423 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5432 if test -n "$ac_tool_prefix"; then
5435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438 $as_echo_n "checking for $ac_word... " >&6; }
5439 if ${ac_cv_prog_AR+:} false; then :
5440 $as_echo_n "(cached) " >&6
5442 if test -n "$AR"; then
5443 ac_cv_prog_AR="$AR" # Let the user override the test.
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 test -z "$as_dir" && as_dir=.
5450 for ac_exec_ext in '' $ac_executable_extensions; do
5451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5452 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 if test -n "$AR"; then
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5465 $as_echo "$AR" >&6; }
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5472 test -n "$AR" && break
5475 if test -z "$AR"; then
5479 # Extract the first word of "$ac_prog", so it can be a program name with args.
5480 set dummy $ac_prog; ac_word=$2
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482 $as_echo_n "checking for $ac_word... " >&6; }
5483 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5484 $as_echo_n "(cached) " >&6
5486 if test -n "$ac_ct_AR"; then
5487 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
5495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496 ac_cv_prog_ac_ct_AR="$ac_prog"
5497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5507 if test -n "$ac_ct_AR"; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5509 $as_echo "$ac_ct_AR" >&6; }
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5516 test -n "$ac_ct_AR" && break
5519 if test "x$ac_ct_AR" = x; then
5522 case $cross_compiling:$ac_tool_warned in
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5526 ac_tool_warned=yes ;;
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5546 $as_echo_n "checking for archiver @FILE support... " >&6; }
5547 if ${lt_cv_ar_at_file+:} false; then :
5548 $as_echo_n "(cached) " >&6
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5562 if ac_fn_c_try_compile "$LINENO"; then :
5563 echo conftest.$ac_objext > conftest.lst
5564 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5566 (eval $lt_ar_try) 2>&5
5568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5569 test $ac_status = 0; }
5570 if test "$ac_status" -eq 0; then
5571 # Ensure the archiver fails upon bogus file names.
5572 rm -f conftest.$ac_objext libconftest.a
5573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5574 (eval $lt_ar_try) 2>&5
5576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5577 test $ac_status = 0; }
5578 if test "$ac_status" -ne 0; then
5582 rm -f conftest.* libconftest.a
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5589 $as_echo "$lt_cv_ar_at_file" >&6; }
5591 if test "x$lt_cv_ar_at_file" = xno; then
5594 archiver_list_spec=$lt_cv_ar_at_file
5603 if test -n "$ac_tool_prefix"; then
5604 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5605 set dummy ${ac_tool_prefix}strip; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_prog_STRIP+:} false; then :
5609 $as_echo_n "(cached) " >&6
5611 if test -n "$STRIP"; then
5612 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 STRIP=$ac_cv_prog_STRIP
5632 if test -n "$STRIP"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5634 $as_echo "$STRIP" >&6; }
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5642 if test -z "$ac_cv_prog_STRIP"; then
5644 # Extract the first word of "strip", so it can be a program name with args.
5645 set dummy strip; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5649 $as_echo_n "(cached) " >&6
5651 if test -n "$ac_ct_STRIP"; then
5652 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 test -z "$as_dir" && as_dir=.
5659 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5661 ac_cv_prog_ac_ct_STRIP="strip"
5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5672 if test -n "$ac_ct_STRIP"; then
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5674 $as_echo "$ac_ct_STRIP" >&6; }
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677 $as_echo "no" >&6; }
5680 if test "x$ac_ct_STRIP" = x; then
5683 case $cross_compiling:$ac_tool_warned in
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5687 ac_tool_warned=yes ;;
5692 STRIP="$ac_cv_prog_STRIP"
5695 test -z "$STRIP" && STRIP=:
5702 if test -n "$ac_tool_prefix"; then
5703 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5704 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if ${ac_cv_prog_RANLIB+:} false; then :
5708 $as_echo_n "(cached) " >&6
5710 if test -n "$RANLIB"; then
5711 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 test -z "$as_dir" && as_dir=.
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5720 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 RANLIB=$ac_cv_prog_RANLIB
5731 if test -n "$RANLIB"; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5733 $as_echo "$RANLIB" >&6; }
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5741 if test -z "$ac_cv_prog_RANLIB"; then
5742 ac_ct_RANLIB=$RANLIB
5743 # Extract the first word of "ranlib", so it can be a program name with args.
5744 set dummy ranlib; ac_word=$2
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746 $as_echo_n "checking for $ac_word... " >&6; }
5747 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5748 $as_echo_n "(cached) " >&6
5750 if test -n "$ac_ct_RANLIB"; then
5751 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5760 ac_cv_prog_ac_ct_RANLIB="ranlib"
5761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5771 if test -n "$ac_ct_RANLIB"; then
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5773 $as_echo "$ac_ct_RANLIB" >&6; }
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776 $as_echo "no" >&6; }
5779 if test "x$ac_ct_RANLIB" = x; then
5782 case $cross_compiling:$ac_tool_warned in
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5786 ac_tool_warned=yes ;;
5788 RANLIB=$ac_ct_RANLIB
5791 RANLIB="$ac_cv_prog_RANLIB"
5794 test -z "$RANLIB" && RANLIB=:
5801 # Determine commands to create old-style static archives.
5802 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5803 old_postinstall_cmds='chmod 644 $oldlib'
5804 old_postuninstall_cmds=
5806 if test -n "$RANLIB"; then
5809 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5812 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5815 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5820 lock_old_archive_extraction=yes ;;
5822 lock_old_archive_extraction=no ;;
5863 # If no C compiler was specified, use CC.
5866 # If no C compiler flags were specified, use CFLAGS.
5867 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5869 # Allow CC to be a program name with arguments.
5873 # Check for command to grab the raw symbol name followed by C symbol from nm.
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5875 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5876 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5877 $as_echo_n "(cached) " >&6
5880 # These are sane defaults that work on at least a few old systems.
5881 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5883 # Character class describing NM global symbol codes.
5884 symcode='[BCDEGRST]'
5886 # Regexp to match symbols that can be accessed directly from C.
5887 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5889 # Define system-specific variables.
5894 cygwin* | mingw* | pw32* | cegcc*)
5895 symcode='[ABCDGISTW]'
5898 if test "$host_cpu" = ia64; then
5899 symcode='[ABCDEGRST]'
5903 symcode='[BCDEGRST]'
5906 symcode='[BCDEGQRST]'
5917 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5925 # If we're using GNU nm, then use its standard symbol codes.
5926 case `$NM -V 2>&1` in
5927 *GNU* | *'with BFD'*)
5928 symcode='[ABCDGIRSTW]' ;;
5931 # Transform an extracted symbol line into a proper C declaration.
5932 # Some systems (esp. on ia64) link data and code symbols differently,
5933 # so use this general approach.
5934 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5936 # Transform an extracted symbol line into symbol name and symbol address
5937 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5938 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'"
5940 # Handle CRLF in mingw tool chain
5944 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5948 # Try without a prefix underscore, then with it.
5949 for ac_symprfx in "" "_"; do
5951 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5952 symxfrm="\\1 $ac_symprfx\\2 \\2"
5954 # Write the raw and C identifiers.
5955 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5956 # Fake it for dumpbin and say T for any non-static function
5957 # and D for any global variable.
5958 # Also find C++ and __fastcall symbols from MSVC++,
5959 # which start with @ or ?.
5960 lt_cv_sys_global_symbol_pipe="$AWK '"\
5961 " {last_section=section; section=\$ 3};"\
5962 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5963 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5964 " \$ 0!~/External *\|/{next};"\
5965 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5966 " {if(hide[section]) next};"\
5967 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5968 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5969 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5970 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5971 " ' prfx=^$ac_symprfx"
5973 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5975 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5977 # Check to see that the pipe works correctly.
5981 cat > conftest.$ac_ext <<_LT_EOF
5986 void nm_test_func(void);
5987 void nm_test_func(void){}
5991 int main(){nm_test_var='a';nm_test_func();return(0);}
5994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5995 (eval $ac_compile) 2>&5
5997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5998 test $ac_status = 0; }; then
5999 # Now try to grab the symbols.
6001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6002 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6005 test $ac_status = 0; } && test -s "$nlist"; then
6006 # Try sorting and uniquifying the output.
6007 if sort "$nlist" | uniq > "$nlist"T; then
6008 mv -f "$nlist"T "$nlist"
6013 # Make sure that we snagged all the symbols we need.
6014 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6015 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6016 cat <<_LT_EOF > conftest.$ac_ext
6017 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6018 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6019 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6020 relocations are performed -- see ld's documentation on pseudo-relocs. */
6021 # define LT_DLSYM_CONST
6022 #elif defined(__osf__)
6023 /* This system does not cope well with relocations in const data. */
6024 # define LT_DLSYM_CONST
6026 # define LT_DLSYM_CONST const
6034 # Now generate the symbol file.
6035 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6037 cat <<_LT_EOF >> conftest.$ac_ext
6039 /* The mapping between symbol names and symbols. */
6040 LT_DLSYM_CONST struct {
6044 lt__PROGRAM__LTX_preloaded_symbols[] =
6046 { "@PROGRAM@", (void *) 0 },
6048 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6049 cat <<\_LT_EOF >> conftest.$ac_ext
6053 /* This works around a problem in FreeBSD linker */
6054 #ifdef FREEBSD_WORKAROUND
6055 static const void *lt_preloaded_setup() {
6056 return lt__PROGRAM__LTX_preloaded_symbols;
6064 # Now try linking the two files.
6065 mv conftest.$ac_objext conftstm.$ac_objext
6066 lt_globsym_save_LIBS=$LIBS
6067 lt_globsym_save_CFLAGS=$CFLAGS
6068 LIBS="conftstm.$ac_objext"
6069 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6071 (eval $ac_link) 2>&5
6073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6074 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6077 LIBS=$lt_globsym_save_LIBS
6078 CFLAGS=$lt_globsym_save_CFLAGS
6080 echo "cannot find nm_test_func in $nlist" >&5
6083 echo "cannot find nm_test_var in $nlist" >&5
6086 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6089 echo "$progname: failed program was:" >&5
6090 cat conftest.$ac_ext >&5
6092 rm -rf conftest* conftst*
6094 # Do not use the global_symbol_pipe unless it works.
6095 if test "$pipe_works" = yes; then
6098 lt_cv_sys_global_symbol_pipe=
6104 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6105 lt_cv_sys_global_symbol_to_cdecl=
6107 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6109 $as_echo "failed" >&6; }
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6112 $as_echo "ok" >&6; }
6115 # Response file support.
6116 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6117 nm_file_list_spec='@'
6118 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6119 nm_file_list_spec='@'
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6149 $as_echo_n "checking for sysroot... " >&6; }
6151 # Check whether --with-sysroot was given.
6152 if test "${with_sysroot+set}" = set; then :
6153 withval=$with_sysroot;
6160 case ${with_sysroot} in #(
6162 if test "$GCC" = yes; then
6163 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6167 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6173 $as_echo "${with_sysroot}" >&6; }
6174 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6179 $as_echo "${lt_sysroot:-no}" >&6; }
6185 # Check whether --enable-libtool-lock was given.
6186 if test "${enable_libtool_lock+set}" = set; then :
6187 enableval=$enable_libtool_lock;
6190 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6192 # Some flags need to be propagated to the compiler or linker for good
6196 # Find out which ABI we are using.
6197 echo 'int i;' > conftest.$ac_ext
6198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6199 (eval $ac_compile) 2>&5
6201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6202 test $ac_status = 0; }; then
6203 case `/usr/bin/file conftest.$ac_objext` in
6215 # Find out which ABI we are using.
6216 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6218 (eval $ac_compile) 2>&5
6220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6221 test $ac_status = 0; }; then
6222 if test "$lt_cv_prog_gnu_ld" = yes; then
6223 case `/usr/bin/file conftest.$ac_objext` in
6225 LD="${LD-ld} -melf32bsmip"
6228 LD="${LD-ld} -melf32bmipn32"
6231 LD="${LD-ld} -melf64bmip"
6235 case `/usr/bin/file conftest.$ac_objext` in
6251 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6252 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6253 # Find out which ABI we are using.
6254 echo 'int i;' > conftest.$ac_ext
6255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6256 (eval $ac_compile) 2>&5
6258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6259 test $ac_status = 0; }; then
6260 case `/usr/bin/file conftest.o` in
6263 x86_64-*kfreebsd*-gnu)
6264 LD="${LD-ld} -m elf_i386_fbsd"
6267 LD="${LD-ld} -m elf_i386"
6269 powerpc64le-*linux*)
6270 LD="${LD-ld} -m elf32lppclinux"
6273 LD="${LD-ld} -m elf32ppclinux"
6276 LD="${LD-ld} -m elf_s390"
6279 LD="${LD-ld} -m elf32_sparc"
6285 x86_64-*kfreebsd*-gnu)
6286 LD="${LD-ld} -m elf_x86_64_fbsd"
6289 LD="${LD-ld} -m elf_x86_64"
6292 LD="${LD-ld} -m elf64lppc"
6295 LD="${LD-ld} -m elf64ppc"
6297 s390*-*linux*|s390*-*tpf*)
6298 LD="${LD-ld} -m elf64_s390"
6301 LD="${LD-ld} -m elf64_sparc"
6311 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6312 SAVE_CFLAGS="$CFLAGS"
6313 CFLAGS="$CFLAGS -belf"
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6315 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6316 if ${lt_cv_cc_needs_belf+:} false; then :
6317 $as_echo_n "(cached) " >&6
6320 ac_cpp='$CPP $CPPFLAGS'
6321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6336 if ac_fn_c_try_link "$LINENO"; then :
6337 lt_cv_cc_needs_belf=yes
6339 lt_cv_cc_needs_belf=no
6341 rm -f core conftest.err conftest.$ac_objext \
6342 conftest$ac_exeext conftest.$ac_ext
6344 ac_cpp='$CPP $CPPFLAGS'
6345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6351 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6352 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6353 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6354 CFLAGS="$SAVE_CFLAGS"
6358 # Find out which ABI we are using.
6359 echo 'int i;' > conftest.$ac_ext
6360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6361 (eval $ac_compile) 2>&5
6363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6364 test $ac_status = 0; }; then
6365 case `/usr/bin/file conftest.o` in
6367 case $lt_cv_prog_gnu_ld in
6371 LD="${LD-ld} -m elf_x86_64"
6374 LD="${LD-ld} -m elf64_sparc"
6377 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6378 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6383 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6395 need_locks="$enable_libtool_lock"
6397 if test -n "$ac_tool_prefix"; then
6398 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6399 set dummy ${ac_tool_prefix}mt; ac_word=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6403 $as_echo_n "(cached) " >&6
6405 if test -n "$MANIFEST_TOOL"; then
6406 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6415 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6426 if test -n "$MANIFEST_TOOL"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6428 $as_echo "$MANIFEST_TOOL" >&6; }
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6436 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6437 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6438 # Extract the first word of "mt", so it can be a program name with args.
6439 set dummy mt; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6443 $as_echo_n "(cached) " >&6
6445 if test -n "$ac_ct_MANIFEST_TOOL"; then
6446 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6455 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6466 if test -n "$ac_ct_MANIFEST_TOOL"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6468 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6474 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6477 case $cross_compiling:$ac_tool_warned in
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6481 ac_tool_warned=yes ;;
6483 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6486 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6489 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6491 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6492 if ${lt_cv_path_mainfest_tool+:} false; then :
6493 $as_echo_n "(cached) " >&6
6495 lt_cv_path_mainfest_tool=no
6496 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6497 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6498 cat conftest.err >&5
6499 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6500 lt_cv_path_mainfest_tool=yes
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6505 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6506 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6516 rhapsody* | darwin*)
6517 if test -n "$ac_tool_prefix"; then
6518 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6519 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521 $as_echo_n "checking for $ac_word... " >&6; }
6522 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6523 $as_echo_n "(cached) " >&6
6525 if test -n "$DSYMUTIL"; then
6526 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 test -z "$as_dir" && as_dir=.
6533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6535 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6546 if test -n "$DSYMUTIL"; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6548 $as_echo "$DSYMUTIL" >&6; }
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6556 if test -z "$ac_cv_prog_DSYMUTIL"; then
6557 ac_ct_DSYMUTIL=$DSYMUTIL
6558 # Extract the first word of "dsymutil", so it can be a program name with args.
6559 set dummy dsymutil; ac_word=$2
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561 $as_echo_n "checking for $ac_word... " >&6; }
6562 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6563 $as_echo_n "(cached) " >&6
6565 if test -n "$ac_ct_DSYMUTIL"; then
6566 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 test -z "$as_dir" && as_dir=.
6573 for ac_exec_ext in '' $ac_executable_extensions; do
6574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6575 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6585 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6586 if test -n "$ac_ct_DSYMUTIL"; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6588 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6594 if test "x$ac_ct_DSYMUTIL" = x; then
6597 case $cross_compiling:$ac_tool_warned in
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6601 ac_tool_warned=yes ;;
6603 DSYMUTIL=$ac_ct_DSYMUTIL
6606 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6609 if test -n "$ac_tool_prefix"; then
6610 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6611 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6613 $as_echo_n "checking for $ac_word... " >&6; }
6614 if ${ac_cv_prog_NMEDIT+:} false; then :
6615 $as_echo_n "(cached) " >&6
6617 if test -n "$NMEDIT"; then
6618 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 test -z "$as_dir" && as_dir=.
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6627 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 NMEDIT=$ac_cv_prog_NMEDIT
6638 if test -n "$NMEDIT"; then
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6640 $as_echo "$NMEDIT" >&6; }
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6648 if test -z "$ac_cv_prog_NMEDIT"; then
6649 ac_ct_NMEDIT=$NMEDIT
6650 # Extract the first word of "nmedit", so it can be a program name with args.
6651 set dummy nmedit; ac_word=$2
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653 $as_echo_n "checking for $ac_word... " >&6; }
6654 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6655 $as_echo_n "(cached) " >&6
6657 if test -n "$ac_ct_NMEDIT"; then
6658 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 test -z "$as_dir" && as_dir=.
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6667 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6677 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6678 if test -n "$ac_ct_NMEDIT"; then
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6680 $as_echo "$ac_ct_NMEDIT" >&6; }
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683 $as_echo "no" >&6; }
6686 if test "x$ac_ct_NMEDIT" = x; then
6689 case $cross_compiling:$ac_tool_warned in
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6693 ac_tool_warned=yes ;;
6695 NMEDIT=$ac_ct_NMEDIT
6698 NMEDIT="$ac_cv_prog_NMEDIT"
6701 if test -n "$ac_tool_prefix"; then
6702 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6703 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_prog_LIPO+:} false; then :
6707 $as_echo_n "(cached) " >&6
6709 if test -n "$LIPO"; then
6710 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6719 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 LIPO=$ac_cv_prog_LIPO
6730 if test -n "$LIPO"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6732 $as_echo "$LIPO" >&6; }
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6740 if test -z "$ac_cv_prog_LIPO"; then
6742 # Extract the first word of "lipo", so it can be a program name with args.
6743 set dummy lipo; ac_word=$2
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6745 $as_echo_n "checking for $ac_word... " >&6; }
6746 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6747 $as_echo_n "(cached) " >&6
6749 if test -n "$ac_ct_LIPO"; then
6750 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6759 ac_cv_prog_ac_ct_LIPO="lipo"
6760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6770 if test -n "$ac_ct_LIPO"; then
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6772 $as_echo "$ac_ct_LIPO" >&6; }
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775 $as_echo "no" >&6; }
6778 if test "x$ac_ct_LIPO" = x; then
6781 case $cross_compiling:$ac_tool_warned in
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6785 ac_tool_warned=yes ;;
6790 LIPO="$ac_cv_prog_LIPO"
6793 if test -n "$ac_tool_prefix"; then
6794 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6795 set dummy ${ac_tool_prefix}otool; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if ${ac_cv_prog_OTOOL+:} false; then :
6799 $as_echo_n "(cached) " >&6
6801 if test -n "$OTOOL"; then
6802 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6811 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 OTOOL=$ac_cv_prog_OTOOL
6822 if test -n "$OTOOL"; then
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6824 $as_echo "$OTOOL" >&6; }
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827 $as_echo "no" >&6; }
6832 if test -z "$ac_cv_prog_OTOOL"; then
6834 # Extract the first word of "otool", so it can be a program name with args.
6835 set dummy otool; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6839 $as_echo_n "(cached) " >&6
6841 if test -n "$ac_ct_OTOOL"; then
6842 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851 ac_cv_prog_ac_ct_OTOOL="otool"
6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6861 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6862 if test -n "$ac_ct_OTOOL"; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6864 $as_echo "$ac_ct_OTOOL" >&6; }
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6870 if test "x$ac_ct_OTOOL" = x; then
6873 case $cross_compiling:$ac_tool_warned in
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6877 ac_tool_warned=yes ;;
6882 OTOOL="$ac_cv_prog_OTOOL"
6885 if test -n "$ac_tool_prefix"; then
6886 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6887 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889 $as_echo_n "checking for $ac_word... " >&6; }
6890 if ${ac_cv_prog_OTOOL64+:} false; then :
6891 $as_echo_n "(cached) " >&6
6893 if test -n "$OTOOL64"; then
6894 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 OTOOL64=$ac_cv_prog_OTOOL64
6914 if test -n "$OTOOL64"; then
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6916 $as_echo "$OTOOL64" >&6; }
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 $as_echo "no" >&6; }
6924 if test -z "$ac_cv_prog_OTOOL64"; then
6925 ac_ct_OTOOL64=$OTOOL64
6926 # Extract the first word of "otool64", so it can be a program name with args.
6927 set dummy otool64; ac_word=$2
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6929 $as_echo_n "checking for $ac_word... " >&6; }
6930 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6931 $as_echo_n "(cached) " >&6
6933 if test -n "$ac_ct_OTOOL64"; then
6934 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6943 ac_cv_prog_ac_ct_OTOOL64="otool64"
6944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6953 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6954 if test -n "$ac_ct_OTOOL64"; then
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6956 $as_echo "$ac_ct_OTOOL64" >&6; }
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959 $as_echo "no" >&6; }
6962 if test "x$ac_ct_OTOOL64" = x; then
6965 case $cross_compiling:$ac_tool_warned in
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6969 ac_tool_warned=yes ;;
6971 OTOOL64=$ac_ct_OTOOL64
6974 OTOOL64="$ac_cv_prog_OTOOL64"
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7004 $as_echo_n "checking for -single_module linker flag... " >&6; }
7005 if ${lt_cv_apple_cc_single_mod+:} false; then :
7006 $as_echo_n "(cached) " >&6
7008 lt_cv_apple_cc_single_mod=no
7009 if test -z "${LT_MULTI_MODULE}"; then
7010 # By default we will add the -single_module flag. You can override
7011 # by either setting the environment variable LT_MULTI_MODULE
7012 # non-empty at configure time, or by adding -multi_module to the
7014 rm -rf libconftest.dylib*
7015 echo "int foo(void){return 1;}" > conftest.c
7016 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7017 -dynamiclib -Wl,-single_module conftest.c" >&5
7018 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7019 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7021 # If there is a non-empty error log, and "single_module"
7022 # appears in it, assume the flag caused a linker warning
7023 if test -s conftest.err && $GREP single_module conftest.err; then
7024 cat conftest.err >&5
7025 # Otherwise, if the output was created with a 0 exit code from
7026 # the compiler, it worked.
7027 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7028 lt_cv_apple_cc_single_mod=yes
7030 cat conftest.err >&5
7032 rm -rf libconftest.dylib*
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7037 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7040 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7041 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7042 $as_echo_n "(cached) " >&6
7044 lt_cv_ld_exported_symbols_list=no
7045 save_LDFLAGS=$LDFLAGS
7046 echo "_main" > conftest.sym
7047 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7059 if ac_fn_c_try_link "$LINENO"; then :
7060 lt_cv_ld_exported_symbols_list=yes
7062 lt_cv_ld_exported_symbols_list=no
7064 rm -f core conftest.err conftest.$ac_objext \
7065 conftest$ac_exeext conftest.$ac_ext
7066 LDFLAGS="$save_LDFLAGS"
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7070 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7073 $as_echo_n "checking for -force_load linker flag... " >&6; }
7074 if ${lt_cv_ld_force_load+:} false; then :
7075 $as_echo_n "(cached) " >&6
7077 lt_cv_ld_force_load=no
7078 cat > conftest.c << _LT_EOF
7079 int forced_loaded() { return 2;}
7081 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7082 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7083 echo "$AR cru libconftest.a conftest.o" >&5
7084 $AR cru libconftest.a conftest.o 2>&5
7085 echo "$RANLIB libconftest.a" >&5
7086 $RANLIB libconftest.a 2>&5
7087 cat > conftest.c << _LT_EOF
7088 int main() { return 0;}
7090 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7091 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7093 if test -s conftest.err && $GREP force_load conftest.err; then
7094 cat conftest.err >&5
7095 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7096 lt_cv_ld_force_load=yes
7098 cat conftest.err >&5
7100 rm -f conftest.err libconftest.a conftest conftest.c
7101 rm -rf conftest.dSYM
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7105 $as_echo "$lt_cv_ld_force_load" >&6; }
7107 rhapsody* | darwin1.[012])
7108 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7110 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7111 darwin*) # darwin 5.x on
7112 # if running on 10.5 or later, the deployment target defaults
7113 # to the OS version, if on x86, and 10.4, the deployment
7114 # target defaults to 10.4. Don't you love it?
7115 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7116 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7117 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7119 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7121 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7125 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7126 _lt_dar_single_mod='$single_module'
7128 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7129 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7131 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7133 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7134 _lt_dsymutil='~$DSYMUTIL $lib || :'
7142 ac_cpp='$CPP $CPPFLAGS'
7143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7147 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7148 # On Suns, sometimes $CPP names a directory.
7149 if test -n "$CPP" && test -d "$CPP"; then
7152 if test -z "$CPP"; then
7153 if ${ac_cv_prog_CPP+:} false; then :
7154 $as_echo_n "(cached) " >&6
7156 # Double quotes because CPP needs to be expanded
7157 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7160 for ac_c_preproc_warn_flag in '' yes
7162 # Use a header file that comes with gcc, so configuring glibc
7163 # with a fresh cross-compiler works.
7164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7165 # <limits.h> exists even on freestanding compilers.
7166 # On the NeXT, cc -E runs the code through the compiler's parser,
7167 # not just through cpp. "Syntax error" is here to catch this case.
7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7171 # include <limits.h>
7173 # include <assert.h>
7177 if ac_fn_c_try_cpp "$LINENO"; then :
7180 # Broken: fails on valid input.
7183 rm -f conftest.err conftest.i conftest.$ac_ext
7185 # OK, works on sane cases. Now check whether nonexistent headers
7186 # can be detected and how.
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7189 #include <ac_nonexistent.h>
7191 if ac_fn_c_try_cpp "$LINENO"; then :
7192 # Broken: success on invalid input.
7195 # Passes both tests.
7199 rm -f conftest.err conftest.i conftest.$ac_ext
7202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7203 rm -f conftest.i conftest.err conftest.$ac_ext
7204 if $ac_preproc_ok; then :
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7217 $as_echo "$CPP" >&6; }
7219 for ac_c_preproc_warn_flag in '' yes
7221 # Use a header file that comes with gcc, so configuring glibc
7222 # with a fresh cross-compiler works.
7223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7224 # <limits.h> exists even on freestanding compilers.
7225 # On the NeXT, cc -E runs the code through the compiler's parser,
7226 # not just through cpp. "Syntax error" is here to catch this case.
7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228 /* end confdefs.h. */
7230 # include <limits.h>
7232 # include <assert.h>
7236 if ac_fn_c_try_cpp "$LINENO"; then :
7239 # Broken: fails on valid input.
7242 rm -f conftest.err conftest.i conftest.$ac_ext
7244 # OK, works on sane cases. Now check whether nonexistent headers
7245 # can be detected and how.
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248 #include <ac_nonexistent.h>
7250 if ac_fn_c_try_cpp "$LINENO"; then :
7251 # Broken: success on invalid input.
7254 # Passes both tests.
7258 rm -f conftest.err conftest.i conftest.$ac_ext
7261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7262 rm -f conftest.i conftest.err conftest.$ac_ext
7263 if $ac_preproc_ok; then :
7266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7268 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7269 See \`config.log' for more details" "$LINENO" 5; }
7273 ac_cpp='$CPP $CPPFLAGS'
7274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7280 $as_echo_n "checking for ANSI C header files... " >&6; }
7281 if ${ac_cv_header_stdc+:} false; then :
7282 $as_echo_n "(cached) " >&6
7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h. */
7299 if ac_fn_c_try_compile "$LINENO"; then :
7300 ac_cv_header_stdc=yes
7302 ac_cv_header_stdc=no
7304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7306 if test $ac_cv_header_stdc = yes; then
7307 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h. */
7313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7314 $EGREP "memchr" >/dev/null 2>&1; then :
7317 ac_cv_header_stdc=no
7323 if test $ac_cv_header_stdc = yes; then
7324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7331 $EGREP "free" >/dev/null 2>&1; then :
7334 ac_cv_header_stdc=no
7340 if test $ac_cv_header_stdc = yes; then
7341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7342 if test "$cross_compiling" = yes; then :
7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h. */
7349 #if ((' ' & 0x0FF) == 0x020)
7350 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7351 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7353 # define ISLOWER(c) \
7354 (('a' <= (c) && (c) <= 'i') \
7355 || ('j' <= (c) && (c) <= 'r') \
7356 || ('s' <= (c) && (c) <= 'z'))
7357 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7360 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7365 for (i = 0; i < 256; i++)
7366 if (XOR (islower (i), ISLOWER (i))
7367 || toupper (i) != TOUPPER (i))
7372 if ac_fn_c_try_run "$LINENO"; then :
7375 ac_cv_header_stdc=no
7377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7378 conftest.$ac_objext conftest.beam conftest.$ac_ext
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7384 $as_echo "$ac_cv_header_stdc" >&6; }
7385 if test $ac_cv_header_stdc = yes; then
7387 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7391 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7392 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7393 inttypes.h stdint.h unistd.h
7395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7396 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7398 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7399 cat >>confdefs.h <<_ACEOF
7400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7408 for ac_header in dlfcn.h
7410 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7412 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7413 cat >>confdefs.h <<_ACEOF
7414 #define HAVE_DLFCN_H 1
7427 enable_win32_dll=yes
7430 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7431 if test -n "$ac_tool_prefix"; then
7432 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7433 set dummy ${ac_tool_prefix}as; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if ${ac_cv_prog_AS+:} false; then :
7437 $as_echo_n "(cached) " >&6
7439 if test -n "$AS"; then
7440 ac_cv_prog_AS="$AS" # Let the user override the test.
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7449 ac_cv_prog_AS="${ac_tool_prefix}as"
7450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 if test -n "$AS"; then
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7462 $as_echo "$AS" >&6; }
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7470 if test -z "$ac_cv_prog_AS"; then
7472 # Extract the first word of "as", so it can be a program name with args.
7473 set dummy as; ac_word=$2
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475 $as_echo_n "checking for $ac_word... " >&6; }
7476 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7477 $as_echo_n "(cached) " >&6
7479 if test -n "$ac_ct_AS"; then
7480 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 test -z "$as_dir" && as_dir=.
7487 for ac_exec_ext in '' $ac_executable_extensions; do
7488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7489 ac_cv_prog_ac_ct_AS="as"
7490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7500 if test -n "$ac_ct_AS"; then
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7502 $as_echo "$ac_ct_AS" >&6; }
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7508 if test "x$ac_ct_AS" = x; then
7511 case $cross_compiling:$ac_tool_warned in
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7515 ac_tool_warned=yes ;;
7523 if test -n "$ac_tool_prefix"; then
7524 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7525 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527 $as_echo_n "checking for $ac_word... " >&6; }
7528 if ${ac_cv_prog_DLLTOOL+:} false; then :
7529 $as_echo_n "(cached) " >&6
7531 if test -n "$DLLTOOL"; then
7532 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7541 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7551 DLLTOOL=$ac_cv_prog_DLLTOOL
7552 if test -n "$DLLTOOL"; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7554 $as_echo "$DLLTOOL" >&6; }
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7562 if test -z "$ac_cv_prog_DLLTOOL"; then
7563 ac_ct_DLLTOOL=$DLLTOOL
7564 # Extract the first word of "dlltool", so it can be a program name with args.
7565 set dummy dlltool; ac_word=$2
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7567 $as_echo_n "checking for $ac_word... " >&6; }
7568 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7569 $as_echo_n "(cached) " >&6
7571 if test -n "$ac_ct_DLLTOOL"; then
7572 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 test -z "$as_dir" && as_dir=.
7579 for ac_exec_ext in '' $ac_executable_extensions; do
7580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7581 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7591 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7592 if test -n "$ac_ct_DLLTOOL"; then
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7594 $as_echo "$ac_ct_DLLTOOL" >&6; }
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7597 $as_echo "no" >&6; }
7600 if test "x$ac_ct_DLLTOOL" = x; then
7603 case $cross_compiling:$ac_tool_warned in
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7607 ac_tool_warned=yes ;;
7609 DLLTOOL=$ac_ct_DLLTOOL
7612 DLLTOOL="$ac_cv_prog_DLLTOOL"
7615 if test -n "$ac_tool_prefix"; then
7616 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7617 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if ${ac_cv_prog_OBJDUMP+:} false; then :
7621 $as_echo_n "(cached) " >&6
7623 if test -n "$OBJDUMP"; then
7624 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7633 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643 OBJDUMP=$ac_cv_prog_OBJDUMP
7644 if test -n "$OBJDUMP"; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7646 $as_echo "$OBJDUMP" >&6; }
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7654 if test -z "$ac_cv_prog_OBJDUMP"; then
7655 ac_ct_OBJDUMP=$OBJDUMP
7656 # Extract the first word of "objdump", so it can be a program name with args.
7657 set dummy objdump; ac_word=$2
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659 $as_echo_n "checking for $ac_word... " >&6; }
7660 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7661 $as_echo_n "(cached) " >&6
7663 if test -n "$ac_ct_OBJDUMP"; then
7664 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 test -z "$as_dir" && as_dir=.
7671 for ac_exec_ext in '' $ac_executable_extensions; do
7672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7673 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7683 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7684 if test -n "$ac_ct_OBJDUMP"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7686 $as_echo "$ac_ct_OBJDUMP" >&6; }
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7692 if test "x$ac_ct_OBJDUMP" = x; then
7695 case $cross_compiling:$ac_tool_warned in
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7699 ac_tool_warned=yes ;;
7701 OBJDUMP=$ac_ct_OBJDUMP
7704 OBJDUMP="$ac_cv_prog_OBJDUMP"
7710 test -z "$AS" && AS=as
7716 test -z "$DLLTOOL" && DLLTOOL=dlltool
7722 test -z "$OBJDUMP" && OBJDUMP=objdump
7727 # Check whether --enable-static was given.
7728 if test "${enable_static+set}" = set; then :
7729 enableval=$enable_static; p=${PACKAGE-default}
7731 yes) enable_static=yes ;;
7732 no) enable_static=no ;;
7735 # Look at the argument we got. We use all the common list separators.
7736 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7737 for pkg in $enableval; do
7739 if test "X$pkg" = "X$p"; then
7761 # Check whether --enable-shared was given.
7762 if test "${enable_shared+set}" = set; then :
7763 enableval=$enable_shared; p=${PACKAGE-default}
7765 yes) enable_shared=yes ;;
7766 no) enable_shared=no ;;
7769 # Look at the argument we got. We use all the common list separators.
7770 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7771 for pkg in $enableval; do
7773 if test "X$pkg" = "X$p"; then
7794 # Check whether --with-pic was given.
7795 if test "${with_pic+set}" = set; then :
7796 withval=$with_pic; lt_p=${PACKAGE-default}
7798 yes|no) pic_mode=$withval ;;
7801 # Look at the argument we got. We use all the common list separators.
7802 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7803 for lt_pkg in $withval; do
7805 if test "X$lt_pkg" = "X$lt_p"; then
7817 test -z "$pic_mode" && pic_mode=default
7825 # Check whether --enable-fast-install was given.
7826 if test "${enable_fast_install+set}" = set; then :
7827 enableval=$enable_fast_install; p=${PACKAGE-default}
7829 yes) enable_fast_install=yes ;;
7830 no) enable_fast_install=no ;;
7832 enable_fast_install=no
7833 # Look at the argument we got. We use all the common list separators.
7834 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7835 for pkg in $enableval; do
7837 if test "X$pkg" = "X$p"; then
7838 enable_fast_install=yes
7845 enable_fast_install=yes
7858 # This can be used to rebuild libtool when needed
7859 LIBTOOL_DEPS="$ltmain"
7861 # Always use our own libtool.
7862 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7893 test -z "$LN_S" && LN_S="ln -s"
7908 if test -n "${ZSH_VERSION+set}" ; then
7909 setopt NO_GLOB_SUBST
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7913 $as_echo_n "checking for objdir... " >&6; }
7914 if ${lt_cv_objdir+:} false; then :
7915 $as_echo_n "(cached) " >&6
7917 rm -f .libs 2>/dev/null
7918 mkdir .libs 2>/dev/null
7919 if test -d .libs; then
7922 # MS-DOS does not allow filenames that begin with a dot.
7925 rmdir .libs 2>/dev/null
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7928 $as_echo "$lt_cv_objdir" >&6; }
7929 objdir=$lt_cv_objdir
7935 cat >>confdefs.h <<_ACEOF
7936 #define LT_OBJDIR "$lt_cv_objdir/"
7944 # AIX sometimes has problems with the GCC collect2 program. For some
7945 # reason, if we set the COLLECT_NAMES environment variable, the problems
7946 # vanish in a puff of smoke.
7947 if test "X${COLLECT_NAMES+set}" != Xset; then
7949 export COLLECT_NAMES
7956 can_build_shared=yes
7958 # All known linkers require a `.a' archive for static linking (except MSVC,
7959 # which needs '.lib').
7962 with_gnu_ld="$lt_cv_prog_gnu_ld"
7965 old_CFLAGS="$CFLAGS"
7967 # Set sane defaults for various variables
7968 test -z "$CC" && CC=cc
7969 test -z "$LTCC" && LTCC=$CC
7970 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7971 test -z "$LD" && LD=ld
7972 test -z "$ac_objext" && ac_objext=o
7974 for cc_temp in $compiler""; do
7976 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7977 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7982 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7985 # Only perform the check for file, if the check method requires it
7986 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7987 case $deplibs_check_method in
7989 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7991 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7992 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7993 $as_echo_n "(cached) " >&6
7997 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8000 lt_save_MAGIC_CMD="$MAGIC_CMD"
8001 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8002 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8003 for ac_dir in $ac_dummy; do
8005 test -z "$ac_dir" && ac_dir=.
8006 if test -f $ac_dir/${ac_tool_prefix}file; then
8007 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8008 if test -n "$file_magic_test_file"; then
8009 case $deplibs_check_method in
8011 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8012 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8013 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8014 $EGREP "$file_magic_regex" > /dev/null; then
8019 *** Warning: the command libtool uses to detect shared libraries,
8020 *** $file_magic_cmd, produces output that libtool cannot recognize.
8021 *** The result is that libtool may fail to recognize shared libraries
8022 *** as such. This will affect the creation of libtool libraries that
8023 *** depend on shared libraries, but programs linked with such libtool
8024 *** libraries will work regardless of this problem. Nevertheless, you
8025 *** may want to report the problem to your system manager and/or to
8026 *** bug-libtool@gnu.org
8036 MAGIC_CMD="$lt_save_MAGIC_CMD"
8041 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8042 if test -n "$MAGIC_CMD"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8044 $as_echo "$MAGIC_CMD" >&6; }
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8054 if test -z "$lt_cv_path_MAGIC_CMD"; then
8055 if test -n "$ac_tool_prefix"; then
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8057 $as_echo_n "checking for file... " >&6; }
8058 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8059 $as_echo_n "(cached) " >&6
8063 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8066 lt_save_MAGIC_CMD="$MAGIC_CMD"
8067 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8068 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8069 for ac_dir in $ac_dummy; do
8071 test -z "$ac_dir" && ac_dir=.
8072 if test -f $ac_dir/file; then
8073 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8074 if test -n "$file_magic_test_file"; then
8075 case $deplibs_check_method in
8077 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8078 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8079 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8080 $EGREP "$file_magic_regex" > /dev/null; then
8085 *** Warning: the command libtool uses to detect shared libraries,
8086 *** $file_magic_cmd, produces output that libtool cannot recognize.
8087 *** The result is that libtool may fail to recognize shared libraries
8088 *** as such. This will affect the creation of libtool libraries that
8089 *** depend on shared libraries, but programs linked with such libtool
8090 *** libraries will work regardless of this problem. Nevertheless, you
8091 *** may want to report the problem to your system manager and/or to
8092 *** bug-libtool@gnu.org
8102 MAGIC_CMD="$lt_save_MAGIC_CMD"
8107 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8108 if test -n "$MAGIC_CMD"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8110 $as_echo "$MAGIC_CMD" >&6; }
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8126 # Use C for the default configuration in the libtool script
8130 ac_cpp='$CPP $CPPFLAGS'
8131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8136 # Source file extension for C test sources.
8139 # Object file extension for compiled C test sources.
8143 # Code to be used in simple compile tests
8144 lt_simple_compile_test_code="int some_variable = 0;"
8146 # Code to be used in simple link tests
8147 lt_simple_link_test_code='int main(){return(0);}'
8155 # If no C compiler was specified, use CC.
8158 # If no C compiler flags were specified, use CFLAGS.
8159 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8161 # Allow CC to be a program name with arguments.
8164 # Save the default compiler, since it gets overwritten when the other
8165 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8166 compiler_DEFAULT=$CC
8168 # save warnings/boilerplate of simple test code
8169 ac_outfile=conftest.$ac_objext
8170 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8171 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8172 _lt_compiler_boilerplate=`cat conftest.err`
8175 ac_outfile=conftest.$ac_objext
8176 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8177 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8178 _lt_linker_boilerplate=`cat conftest.err`
8183 ## There is no encapsulation within the following macros, do not change
8184 ## the running order or otherwise move them around unless you know exactly
8185 ## what you are doing...
8186 if test -n "$compiler"; then
8188 lt_prog_compiler_no_builtin_flag=
8190 if test "$GCC" = yes; then
8191 case $cc_basename in
8193 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8195 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8199 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8200 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8201 $as_echo_n "(cached) " >&6
8203 lt_cv_prog_compiler_rtti_exceptions=no
8204 ac_outfile=conftest.$ac_objext
8205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8206 lt_compiler_flag="-fno-rtti -fno-exceptions"
8207 # Insert the option either (1) after the last *FLAGS variable, or
8208 # (2) before a word containing "conftest.", or (3) at the end.
8209 # Note that $ac_compile itself does not contain backslashes and begins
8210 # with a dollar sign (not a hyphen), so the echo should work correctly.
8211 # The option is referenced via a variable to avoid confusing sed.
8212 lt_compile=`echo "$ac_compile" | $SED \
8213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8215 -e 's:$: $lt_compiler_flag:'`
8216 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8217 (eval "$lt_compile" 2>conftest.err)
8219 cat conftest.err >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 if (exit $ac_status) && test -s "$ac_outfile"; then
8222 # The compiler can only warn and ignore the option if not recognized
8223 # So say no if there are warnings other than the usual output.
8224 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8226 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8227 lt_cv_prog_compiler_rtti_exceptions=yes
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8234 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8236 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8237 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8249 lt_prog_compiler_wl=
8250 lt_prog_compiler_pic=
8251 lt_prog_compiler_static=
8254 if test "$GCC" = yes; then
8255 lt_prog_compiler_wl='-Wl,'
8256 lt_prog_compiler_static='-static'
8260 # All AIX code is PIC.
8261 if test "$host_cpu" = ia64; then
8262 # AIX 5 now supports IA64 processor
8263 lt_prog_compiler_static='-Bstatic'
8270 # see comment about AmigaOS4 .so support
8271 lt_prog_compiler_pic='-fPIC'
8274 # FIXME: we need at least 68020 code to build shared libraries, but
8275 # adding the `-m68020' flag to GCC prevents building anything better,
8277 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8282 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8283 # PIC is the default for these OSes.
8286 mingw* | cygwin* | pw32* | os2* | cegcc*)
8287 # This hack is so that the source file can tell whether it is being
8288 # built for inclusion in a dll (and should export symbols for example).
8289 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8290 # (--disable-auto-import) libraries
8291 lt_prog_compiler_pic='-DDLL_EXPORT'
8294 darwin* | rhapsody*)
8295 # PIC is the default on this platform
8296 # Common symbols not allowed in MH_DYLIB files
8297 lt_prog_compiler_pic='-fno-common'
8301 # PIC is the default for Haiku.
8302 # The "-static" flag exists, but is broken.
8303 lt_prog_compiler_static=
8307 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8308 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8309 # sets the default TLS model and affects inlining.
8315 lt_prog_compiler_pic='-fPIC'
8321 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8322 # Instead, we relocate shared libraries at runtime.
8326 # Just because we use GCC doesn't mean we suddenly get shared libraries
8327 # on systems that don't support them.
8328 lt_prog_compiler_can_build_shared=no
8333 # QNX uses GNU C++, but need to define -shared option too, otherwise
8335 lt_prog_compiler_pic='-fPIC -shared'
8339 if test -d /usr/nec; then
8340 lt_prog_compiler_pic=-Kconform_pic
8345 lt_prog_compiler_pic='-fPIC'
8349 case $cc_basename in
8350 nvcc*) # Cuda Compiler Driver 2.2
8351 lt_prog_compiler_wl='-Xlinker '
8352 if test -n "$lt_prog_compiler_pic"; then
8353 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8358 # PORTME Check for flag to pass linker flags through the system compiler.
8361 lt_prog_compiler_wl='-Wl,'
8362 if test "$host_cpu" = ia64; then
8363 # AIX 5 now supports IA64 processor
8364 lt_prog_compiler_static='-Bstatic'
8366 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8370 mingw* | cygwin* | pw32* | os2* | cegcc*)
8371 # This hack is so that the source file can tell whether it is being
8372 # built for inclusion in a dll (and should export symbols for example).
8373 lt_prog_compiler_pic='-DDLL_EXPORT'
8376 hpux9* | hpux10* | hpux11*)
8377 lt_prog_compiler_wl='-Wl,'
8378 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8385 lt_prog_compiler_pic='+Z'
8388 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8389 lt_prog_compiler_static='${wl}-a ${wl}archive'
8392 irix5* | irix6* | nonstopux*)
8393 lt_prog_compiler_wl='-Wl,'
8394 # PIC (with -KPIC) is the default.
8395 lt_prog_compiler_static='-non_shared'
8398 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8399 case $cc_basename in
8400 # old Intel for x86_64 which still supported -KPIC.
8402 lt_prog_compiler_wl='-Wl,'
8403 lt_prog_compiler_pic='-KPIC'
8404 lt_prog_compiler_static='-static'
8406 # icc used to be incompatible with GCC.
8407 # ICC 10 doesn't accept -KPIC any more.
8409 lt_prog_compiler_wl='-Wl,'
8410 lt_prog_compiler_pic='-fPIC'
8411 lt_prog_compiler_static='-static'
8413 # Lahey Fortran 8.1.
8415 lt_prog_compiler_wl='-Wl,'
8416 lt_prog_compiler_pic='--shared'
8417 lt_prog_compiler_static='--static'
8420 # NAG Fortran compiler
8421 lt_prog_compiler_wl='-Wl,-Wl,,'
8422 lt_prog_compiler_pic='-PIC'
8423 lt_prog_compiler_static='-Bstatic'
8425 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8426 # Portland Group compilers (*not* the Pentium gcc compiler,
8427 # which looks to be a dead project)
8428 lt_prog_compiler_wl='-Wl,'
8429 lt_prog_compiler_pic='-fpic'
8430 lt_prog_compiler_static='-Bstatic'
8433 lt_prog_compiler_wl='-Wl,'
8434 # All Alpha code is PIC.
8435 lt_prog_compiler_static='-non_shared'
8437 xl* | bgxl* | bgf* | mpixl*)
8438 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8439 lt_prog_compiler_wl='-Wl,'
8440 lt_prog_compiler_pic='-qpic'
8441 lt_prog_compiler_static='-qstaticlink'
8444 case `$CC -V 2>&1 | sed 5q` in
8445 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8446 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8447 lt_prog_compiler_pic='-KPIC'
8448 lt_prog_compiler_static='-Bstatic'
8449 lt_prog_compiler_wl=''
8451 *Sun\ F* | *Sun*Fortran*)
8452 lt_prog_compiler_pic='-KPIC'
8453 lt_prog_compiler_static='-Bstatic'
8454 lt_prog_compiler_wl='-Qoption ld '
8458 lt_prog_compiler_pic='-KPIC'
8459 lt_prog_compiler_static='-Bstatic'
8460 lt_prog_compiler_wl='-Wl,'
8462 *Intel*\ [CF]*Compiler*)
8463 lt_prog_compiler_wl='-Wl,'
8464 lt_prog_compiler_pic='-fPIC'
8465 lt_prog_compiler_static='-static'
8468 lt_prog_compiler_wl='-Wl,'
8469 lt_prog_compiler_pic='-fpic'
8470 lt_prog_compiler_static='-Bstatic'
8478 lt_prog_compiler_pic='-KPIC'
8479 lt_prog_compiler_static='-Bstatic'
8483 # QNX uses GNU C++, but need to define -shared option too, otherwise
8485 lt_prog_compiler_pic='-fPIC -shared'
8488 osf3* | osf4* | osf5*)
8489 lt_prog_compiler_wl='-Wl,'
8490 # All OSF/1 code is PIC.
8491 lt_prog_compiler_static='-non_shared'
8495 lt_prog_compiler_static='-non_shared'
8499 lt_prog_compiler_pic='-KPIC'
8500 lt_prog_compiler_static='-Bstatic'
8501 case $cc_basename in
8502 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8503 lt_prog_compiler_wl='-Qoption ld ';;
8505 lt_prog_compiler_wl='-Wl,';;
8510 lt_prog_compiler_wl='-Qoption ld '
8511 lt_prog_compiler_pic='-PIC'
8512 lt_prog_compiler_static='-Bstatic'
8515 sysv4 | sysv4.2uw2* | sysv4.3*)
8516 lt_prog_compiler_wl='-Wl,'
8517 lt_prog_compiler_pic='-KPIC'
8518 lt_prog_compiler_static='-Bstatic'
8522 if test -d /usr/nec ;then
8523 lt_prog_compiler_pic='-Kconform_pic'
8524 lt_prog_compiler_static='-Bstatic'
8528 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8529 lt_prog_compiler_wl='-Wl,'
8530 lt_prog_compiler_pic='-KPIC'
8531 lt_prog_compiler_static='-Bstatic'
8535 lt_prog_compiler_wl='-Wl,'
8536 lt_prog_compiler_can_build_shared=no
8540 lt_prog_compiler_pic='-pic'
8541 lt_prog_compiler_static='-Bstatic'
8545 lt_prog_compiler_can_build_shared=no
8551 # For platforms which do not support PIC, -DPIC is meaningless:
8553 lt_prog_compiler_pic=
8556 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8561 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8562 if ${lt_cv_prog_compiler_pic+:} false; then :
8563 $as_echo_n "(cached) " >&6
8565 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8568 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8569 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8572 # Check to make sure the PIC flag actually works.
8574 if test -n "$lt_prog_compiler_pic"; then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8576 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8577 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8578 $as_echo_n "(cached) " >&6
8580 lt_cv_prog_compiler_pic_works=no
8581 ac_outfile=conftest.$ac_objext
8582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8583 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8584 # Insert the option either (1) after the last *FLAGS variable, or
8585 # (2) before a word containing "conftest.", or (3) at the end.
8586 # Note that $ac_compile itself does not contain backslashes and begins
8587 # with a dollar sign (not a hyphen), so the echo should work correctly.
8588 # The option is referenced via a variable to avoid confusing sed.
8589 lt_compile=`echo "$ac_compile" | $SED \
8590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8592 -e 's:$: $lt_compiler_flag:'`
8593 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8594 (eval "$lt_compile" 2>conftest.err)
8596 cat conftest.err >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 if (exit $ac_status) && test -s "$ac_outfile"; then
8599 # The compiler can only warn and ignore the option if not recognized
8600 # So say no if there are warnings other than the usual output.
8601 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8602 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8603 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8604 lt_cv_prog_compiler_pic_works=yes
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8611 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8613 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8614 case $lt_prog_compiler_pic in
8616 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8619 lt_prog_compiler_pic=
8620 lt_prog_compiler_can_build_shared=no
8636 # Check to make sure the static flag actually works.
8638 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8640 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8641 if ${lt_cv_prog_compiler_static_works+:} false; then :
8642 $as_echo_n "(cached) " >&6
8644 lt_cv_prog_compiler_static_works=no
8645 save_LDFLAGS="$LDFLAGS"
8646 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8647 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8648 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8649 # The linker can only warn and ignore the option if not recognized
8650 # So say no if there are warnings
8651 if test -s conftest.err; then
8652 # Append any errors to the config.log.
8653 cat conftest.err 1>&5
8654 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8655 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8656 if diff conftest.exp conftest.er2 >/dev/null; then
8657 lt_cv_prog_compiler_static_works=yes
8660 lt_cv_prog_compiler_static_works=yes
8664 LDFLAGS="$save_LDFLAGS"
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8668 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8670 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8673 lt_prog_compiler_static=
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8683 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8684 if ${lt_cv_prog_compiler_c_o+:} false; then :
8685 $as_echo_n "(cached) " >&6
8687 lt_cv_prog_compiler_c_o=no
8688 $RM -r conftest 2>/dev/null
8692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8694 lt_compiler_flag="-o out/conftest2.$ac_objext"
8695 # Insert the option either (1) after the last *FLAGS variable, or
8696 # (2) before a word containing "conftest.", or (3) at the end.
8697 # Note that $ac_compile itself does not contain backslashes and begins
8698 # with a dollar sign (not a hyphen), so the echo should work correctly.
8699 lt_compile=`echo "$ac_compile" | $SED \
8700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8702 -e 's:$: $lt_compiler_flag:'`
8703 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8704 (eval "$lt_compile" 2>out/conftest.err)
8706 cat out/conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8710 # The compiler can only warn and ignore the option if not recognized
8711 # So say no if there are warnings
8712 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8713 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8714 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8715 lt_cv_prog_compiler_c_o=yes
8720 # SGI C++ compiler will create directory out/ii_files/ for
8721 # template instantiation
8722 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8723 $RM out/* && rmdir out
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8730 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8738 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8739 if ${lt_cv_prog_compiler_c_o+:} false; then :
8740 $as_echo_n "(cached) " >&6
8742 lt_cv_prog_compiler_c_o=no
8743 $RM -r conftest 2>/dev/null
8747 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8749 lt_compiler_flag="-o out/conftest2.$ac_objext"
8750 # Insert the option either (1) after the last *FLAGS variable, or
8751 # (2) before a word containing "conftest.", or (3) at the end.
8752 # Note that $ac_compile itself does not contain backslashes and begins
8753 # with a dollar sign (not a hyphen), so the echo should work correctly.
8754 lt_compile=`echo "$ac_compile" | $SED \
8755 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8756 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8757 -e 's:$: $lt_compiler_flag:'`
8758 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8759 (eval "$lt_compile" 2>out/conftest.err)
8761 cat out/conftest.err >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8765 # The compiler can only warn and ignore the option if not recognized
8766 # So say no if there are warnings
8767 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8768 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8769 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8770 lt_cv_prog_compiler_c_o=yes
8775 # SGI C++ compiler will create directory out/ii_files/ for
8776 # template instantiation
8777 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8778 $RM out/* && rmdir out
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8785 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8790 hard_links="nottested"
8791 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8792 # do not overwrite the value of need_locks provided by the user
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8794 $as_echo_n "checking if we can lock with hard links... " >&6; }
8797 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8799 ln conftest.a conftest.b 2>&5 || hard_links=no
8800 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8802 $as_echo "$hard_links" >&6; }
8803 if test "$hard_links" = no; then
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8805 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8818 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8821 allow_undefined_flag=
8822 always_export_symbols=no
8824 archive_expsym_cmds=
8825 compiler_needs_object=no
8826 enable_shared_with_static_runtimes=no
8827 export_dynamic_flag_spec=
8828 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8829 hardcode_automatic=no
8831 hardcode_direct_absolute=no
8832 hardcode_libdir_flag_spec=
8833 hardcode_libdir_separator=
8835 hardcode_shlibpath_var=unsupported
8837 link_all_deplibs=unknown
8840 old_archive_from_new_cmds=
8841 old_archive_from_expsyms_cmds=
8842 thread_safe_flag_spec=
8843 whole_archive_flag_spec=
8844 # include_expsyms should be a list of space-separated symbols to be *always*
8845 # included in the symbol list
8847 # exclude_expsyms can be an extended regexp of symbols to exclude
8848 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8849 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8850 # as well as any symbol that contains `d'.
8851 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8852 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8853 # platforms (ab)use it in PIC code, but their linkers get confused if
8854 # the symbol is explicitly referenced. Since portable code cannot
8855 # rely on this symbol name, it's probably fine to never include it in
8856 # preloaded symbol tables.
8857 # Exclude shared library initialization/finalization symbols.
8858 extract_expsyms_cmds=
8861 cygwin* | mingw* | pw32* | cegcc*)
8862 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8863 # When not using gcc, we currently assume that we are using
8864 # Microsoft Visual C++.
8865 if test "$GCC" != yes; then
8870 # we just hope/assume this is gcc and not c89 (= MSVC++)
8880 # On some targets, GNU ld is compatible enough with the native linker
8881 # that we're better off using the native interface for both.
8882 lt_use_gnu_ld_interface=no
8883 if test "$with_gnu_ld" = yes; then
8886 # The AIX port of GNU ld has always aspired to compatibility
8887 # with the native linker. However, as the warning in the GNU ld
8888 # block says, versions before 2.19.5* couldn't really create working
8889 # shared libraries, regardless of the interface used.
8890 case `$LD -v 2>&1` in
8891 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8892 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8893 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8895 lt_use_gnu_ld_interface=yes
8900 lt_use_gnu_ld_interface=yes
8905 if test "$lt_use_gnu_ld_interface" = yes; then
8906 # If archive_cmds runs LD, not CC, wlarc should be empty
8909 # Set some defaults for GNU ld with shared library support. These
8910 # are reset later if shared libraries are not supported. Putting them
8911 # here allows them to be overridden if necessary.
8912 runpath_var=LD_RUN_PATH
8913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8914 export_dynamic_flag_spec='${wl}--export-dynamic'
8915 # ancient GNU ld didn't support --whole-archive et. al.
8916 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8917 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8919 whole_archive_flag_spec=
8921 supports_anon_versioning=no
8922 case `$LD -v 2>&1` in
8923 *GNU\ gold*) supports_anon_versioning=yes ;;
8924 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8925 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8926 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8927 *\ 2.11.*) ;; # other 2.11 versions
8928 *) supports_anon_versioning=yes ;;
8931 # See if GNU ld supports shared libraries.
8934 # On AIX/PPC, the GNU linker is very broken
8935 if test "$host_cpu" != ia64; then
8939 *** Warning: the GNU linker, at least up to release 2.19, is reported
8940 *** to be unable to reliably create shared libraries on AIX.
8941 *** Therefore, libtool is disabling shared libraries support. If you
8942 *** really care for shared libraries, you may want to install binutils
8943 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8944 *** You will then need to restart the configuration process.
8953 # see comment about AmigaOS4 .so support
8954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8955 archive_expsym_cmds=''
8958 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)'
8959 hardcode_libdir_flag_spec='-L$libdir'
8960 hardcode_minus_L=yes
8966 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8967 allow_undefined_flag=unsupported
8968 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8969 # support --undefined. This deserves some investigation. FIXME
8970 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8976 cygwin* | mingw* | pw32* | cegcc*)
8977 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8978 # as there is no search path for DLLs.
8979 hardcode_libdir_flag_spec='-L$libdir'
8980 export_dynamic_flag_spec='${wl}--export-all-symbols'
8981 allow_undefined_flag=unsupported
8982 always_export_symbols=no
8983 enable_shared_with_static_runtimes=yes
8984 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'
8985 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8987 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8989 # If the export-symbols file already is a .def file (1st line
8990 # is EXPORTS), use it as is; otherwise, prepend...
8991 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8992 cp $export_symbols $output_objdir/$soname.def;
8994 echo EXPORTS > $output_objdir/$soname.def;
8995 cat $export_symbols >> $output_objdir/$soname.def;
8997 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9004 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9005 link_all_deplibs=yes
9010 hardcode_shlibpath_var=no
9011 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9012 export_dynamic_flag_spec='${wl}-E'
9013 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9014 # Instead, shared libraries are loaded at an image base (0x10000000 by
9015 # default) and relocated if they conflict, which is a slow very memory
9016 # consuming and fragmenting process. To avoid this, we pick a random,
9017 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9018 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9019 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9020 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'
9023 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9025 if test "$host_os" = linux-dietlibc; then
9026 case $cc_basename in
9027 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9030 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9031 && test "$tmp_diet" = no
9033 tmp_addflag=' $pic_flag'
9034 tmp_sharedflag='-shared'
9035 case $cc_basename,$host_cpu in
9036 pgcc*) # Portland Group C compiler
9037 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'
9038 tmp_addflag=' $pic_flag'
9040 pgf77* | pgf90* | pgf95* | pgfortran*)
9041 # Portland Group f77 and f90 compilers
9042 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'
9043 tmp_addflag=' $pic_flag -Mnomain' ;;
9044 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9045 tmp_addflag=' -i_dynamic' ;;
9046 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9047 tmp_addflag=' -i_dynamic -nofor_main' ;;
9048 ifc* | ifort*) # Intel Fortran compiler
9049 tmp_addflag=' -nofor_main' ;;
9050 lf95*) # Lahey Fortran 8.1
9051 whole_archive_flag_spec=
9052 tmp_sharedflag='--shared' ;;
9053 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9054 tmp_sharedflag='-qmkshrobj'
9056 nvcc*) # Cuda Compiler Driver 2.2
9057 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'
9058 compiler_needs_object=yes
9061 case `$CC -V 2>&1 | sed 5q` in
9062 *Sun\ C*) # Sun C 5.9
9063 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'
9064 compiler_needs_object=yes
9065 tmp_sharedflag='-G' ;;
9066 *Sun\ F*) # Sun Fortran 8.3
9067 tmp_sharedflag='-G' ;;
9069 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9071 if test "x$supports_anon_versioning" = xyes; then
9072 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9073 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9074 echo "local: *; };" >> $output_objdir/$libname.ver~
9075 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9078 case $cc_basename in
9079 xlf* | bgf* | bgxlf* | mpixlf*)
9080 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9081 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9082 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9083 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9084 if test "x$supports_anon_versioning" = xyes; then
9085 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9086 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9087 echo "local: *; };" >> $output_objdir/$libname.ver~
9088 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9098 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9099 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9102 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9103 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9108 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9112 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9113 *** create shared libraries on Solaris systems. Therefore, libtool
9114 *** is disabling shared libraries support. We urge you to upgrade GNU
9115 *** binutils to release 2.9.1 or newer. Another option is to modify
9116 *** your PATH or compiler configuration so that the native linker is
9117 *** used, and then restart.
9120 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9121 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9129 case `$LD -v 2>&1` in
9130 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9134 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9135 *** reliably create shared libraries on SCO systems. Therefore, libtool
9136 *** is disabling shared libraries support. We urge you to upgrade GNU
9137 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9138 *** your PATH or compiler configuration so that the native linker is
9139 *** used, and then restart.
9144 # For security reasons, it is highly recommended that you always
9145 # use absolute paths for naming shared libraries, and exclude the
9146 # DT_RUNPATH tag from executables and libraries. But doing so
9147 # requires that you compile everything twice, which is a pain.
9148 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9149 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9151 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9160 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9163 hardcode_shlibpath_var=no
9167 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9168 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9169 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9176 if test "$ld_shlibs" = no; then
9178 hardcode_libdir_flag_spec=
9179 export_dynamic_flag_spec=
9180 whole_archive_flag_spec=
9183 # PORTME fill in a description of your system's linker (not GNU ld)
9186 allow_undefined_flag=unsupported
9187 always_export_symbols=yes
9188 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'
9189 # Note: this linker hardcodes the directories in LIBPATH if there
9190 # are no directories specified by -L.
9191 hardcode_minus_L=yes
9192 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9193 # Neither direct hardcoding nor static linking is supported with a
9195 hardcode_direct=unsupported
9200 if test "$host_cpu" = ia64; then
9201 # On IA64, the linker does run time linking by default, so we don't
9202 # have to do anything special.
9203 aix_use_runtimelinking=no
9204 exp_sym_flag='-Bexport'
9207 # If we're using GNU nm, then we don't want the "-C" option.
9208 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9209 # Also, AIX nm treats weak defined symbols like other global
9210 # defined symbols, whereas GNU nm marks them as "W".
9211 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9212 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'
9214 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'
9216 aix_use_runtimelinking=no
9218 # Test if we are trying to use run time linking or normal
9219 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9220 # need to do runtime linking.
9221 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9222 for ld_flag in $LDFLAGS; do
9223 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9224 aix_use_runtimelinking=yes
9231 exp_sym_flag='-bexport'
9232 no_entry_flag='-bnoentry'
9235 # When large executables or shared objects are built, AIX ld can
9236 # have problems creating the table of contents. If linking a library
9237 # or program results in "error TOC overflow" add -mminimal-toc to
9238 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9239 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9243 hardcode_direct_absolute=yes
9244 hardcode_libdir_separator=':'
9245 link_all_deplibs=yes
9246 file_list_spec='${wl}-f,'
9248 if test "$GCC" = yes; then
9249 case $host_os in aix4.[012]|aix4.[012].*)
9250 # We only want to do this on AIX 4.2 and lower, the check
9251 # below for broken collect2 doesn't work under 4.3+
9252 collect2name=`${CC} -print-prog-name=collect2`
9253 if test -f "$collect2name" &&
9254 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9256 # We have reworked collect2
9259 # We have old collect2
9260 hardcode_direct=unsupported
9261 # It fails to find uninstalled libraries when the uninstalled
9262 # path is not listed in the libpath. Setting hardcode_minus_L
9263 # to unsupported forces relinking
9264 hardcode_minus_L=yes
9265 hardcode_libdir_flag_spec='-L$libdir'
9266 hardcode_libdir_separator=
9270 shared_flag='-shared'
9271 if test "$aix_use_runtimelinking" = yes; then
9272 shared_flag="$shared_flag "'${wl}-G'
9276 if test "$host_cpu" = ia64; then
9277 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9278 # chokes on -Wl,-G. The following line is correct:
9281 if test "$aix_use_runtimelinking" = yes; then
9282 shared_flag='${wl}-G'
9284 shared_flag='${wl}-bM:SRE'
9289 export_dynamic_flag_spec='${wl}-bexpall'
9290 # It seems that -bexpall does not export symbols beginning with
9291 # underscore (_), so it is better to generate a list of symbols to export.
9292 always_export_symbols=yes
9293 if test "$aix_use_runtimelinking" = yes; then
9294 # Warning - without using the other runtime loading flags (-brtl),
9295 # -berok will link without error, but may produce a broken library.
9296 allow_undefined_flag='-berok'
9297 # Determine the default libpath from the value encoded in an
9299 if test "${lt_cv_aix_libpath+set}" = set; then
9300 aix_libpath=$lt_cv_aix_libpath
9302 if ${lt_cv_aix_libpath_+:} false; then :
9303 $as_echo_n "(cached) " >&6
9305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306 /* end confdefs.h. */
9316 if ac_fn_c_try_link "$LINENO"; then :
9318 lt_aix_libpath_sed='
9319 /Import File Strings/,/^$/ {
9321 s/^0 *\([^ ]*\) *$/\1/
9325 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9326 # Check for a 64-bit object if we didn't find anything.
9327 if test -z "$lt_cv_aix_libpath_"; then
9328 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9331 rm -f core conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext conftest.$ac_ext
9333 if test -z "$lt_cv_aix_libpath_"; then
9334 lt_cv_aix_libpath_="/usr/lib:/lib"
9339 aix_libpath=$lt_cv_aix_libpath_
9342 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9343 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"
9345 if test "$host_cpu" = ia64; then
9346 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9347 allow_undefined_flag="-z nodefs"
9348 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"
9350 # Determine the default libpath from the value encoded in an
9352 if test "${lt_cv_aix_libpath+set}" = set; then
9353 aix_libpath=$lt_cv_aix_libpath
9355 if ${lt_cv_aix_libpath_+:} false; then :
9356 $as_echo_n "(cached) " >&6
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9369 if ac_fn_c_try_link "$LINENO"; then :
9371 lt_aix_libpath_sed='
9372 /Import File Strings/,/^$/ {
9374 s/^0 *\([^ ]*\) *$/\1/
9378 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9379 # Check for a 64-bit object if we didn't find anything.
9380 if test -z "$lt_cv_aix_libpath_"; then
9381 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9384 rm -f core conftest.err conftest.$ac_objext \
9385 conftest$ac_exeext conftest.$ac_ext
9386 if test -z "$lt_cv_aix_libpath_"; then
9387 lt_cv_aix_libpath_="/usr/lib:/lib"
9392 aix_libpath=$lt_cv_aix_libpath_
9395 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9396 # Warning - without using the other run time loading flags,
9397 # -berok will link without error, but may produce a broken library.
9398 no_undefined_flag=' ${wl}-bernotok'
9399 allow_undefined_flag=' ${wl}-berok'
9400 if test "$with_gnu_ld" = yes; then
9401 # We only use this code for GNU lds that support --whole-archive.
9402 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9404 # Exported symbols can be pulled into shared objects from archives
9405 whole_archive_flag_spec='$convenience'
9407 archive_cmds_need_lc=yes
9408 # This is similar to how AIX traditionally builds its shared libraries.
9409 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'
9417 # see comment about AmigaOS4 .so support
9418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9419 archive_expsym_cmds=''
9422 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)'
9423 hardcode_libdir_flag_spec='-L$libdir'
9424 hardcode_minus_L=yes
9430 export_dynamic_flag_spec=-rdynamic
9433 cygwin* | mingw* | pw32* | cegcc*)
9434 # When not using gcc, we currently assume that we are using
9435 # Microsoft Visual C++.
9436 # hardcode_libdir_flag_spec is actually meaningless, as there is
9437 # no search path for DLLs.
9438 case $cc_basename in
9441 hardcode_libdir_flag_spec=' '
9442 allow_undefined_flag=unsupported
9443 always_export_symbols=yes
9445 # Tell ltmain to make .lib files, not .a files.
9447 # Tell ltmain to make .dll files, not .so files.
9449 # FIXME: Setting linknames here is a bad hack.
9450 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9451 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9452 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9454 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9456 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9458 # The linker will not automatically build a static lib if we build a DLL.
9459 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9460 enable_shared_with_static_runtimes=yes
9461 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9462 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9464 old_postinstall_cmds='chmod 644 $oldlib'
9465 postlink_cmds='lt_outputfile="@OUTPUT@"~
9466 lt_tool_outputfile="@TOOL_OUTPUT@"~
9467 case $lt_outputfile in
9470 lt_outputfile="$lt_outputfile.exe"
9471 lt_tool_outputfile="$lt_tool_outputfile.exe"
9474 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9475 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9476 $RM "$lt_outputfile.manifest";
9480 # Assume MSVC wrapper
9481 hardcode_libdir_flag_spec=' '
9482 allow_undefined_flag=unsupported
9483 # Tell ltmain to make .lib files, not .a files.
9485 # Tell ltmain to make .dll files, not .so files.
9487 # FIXME: Setting linknames here is a bad hack.
9488 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9489 # The linker will automatically build a .lib file if we build a DLL.
9490 old_archive_from_new_cmds='true'
9491 # FIXME: Should let the user specify the lib program.
9492 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9493 enable_shared_with_static_runtimes=yes
9498 darwin* | rhapsody*)
9501 archive_cmds_need_lc=no
9503 hardcode_automatic=yes
9504 hardcode_shlibpath_var=unsupported
9505 if test "$lt_cv_ld_force_load" = "yes"; then
9506 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\"`'
9509 whole_archive_flag_spec=''
9511 link_all_deplibs=yes
9512 allow_undefined_flag="$_lt_dar_allow_undefined"
9513 case $cc_basename in
9514 ifort*) _lt_dar_can_shared=yes ;;
9515 *) _lt_dar_can_shared=$GCC ;;
9517 if test "$_lt_dar_can_shared" = "yes"; then
9518 output_verbose_link_cmd=func_echo_all
9519 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9520 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9521 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}"
9522 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}"
9531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9532 hardcode_libdir_flag_spec='-L$libdir'
9533 hardcode_shlibpath_var=no
9536 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9537 # support. Future versions do this automatically, but an explicit c++rt0.o
9538 # does not break anything, and helps significantly (at the cost of a little
9541 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9542 hardcode_libdir_flag_spec='-R$libdir'
9544 hardcode_shlibpath_var=no
9547 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9549 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9551 hardcode_minus_L=yes
9552 hardcode_shlibpath_var=no
9555 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9556 freebsd* | dragonfly*)
9557 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9558 hardcode_libdir_flag_spec='-R$libdir'
9560 hardcode_shlibpath_var=no
9564 if test "$GCC" = yes; then
9565 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'
9567 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'
9569 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9570 hardcode_libdir_separator=:
9573 # hardcode_minus_L: Not really in the search PATH,
9574 # but as the default location of the library.
9575 hardcode_minus_L=yes
9576 export_dynamic_flag_spec='${wl}-E'
9580 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9581 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9583 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9585 if test "$with_gnu_ld" = no; then
9586 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9587 hardcode_libdir_separator=:
9589 hardcode_direct_absolute=yes
9590 export_dynamic_flag_spec='${wl}-E'
9591 # hardcode_minus_L: Not really in the search PATH,
9592 # but as the default location of the library.
9593 hardcode_minus_L=yes
9598 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9601 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9604 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9607 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9613 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9616 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9620 # Older versions of the 11.00 compiler do not understand -b yet
9621 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9623 $as_echo_n "checking if $CC understands -b... " >&6; }
9624 if ${lt_cv_prog_compiler__b+:} false; then :
9625 $as_echo_n "(cached) " >&6
9627 lt_cv_prog_compiler__b=no
9628 save_LDFLAGS="$LDFLAGS"
9629 LDFLAGS="$LDFLAGS -b"
9630 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9631 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9632 # The linker can only warn and ignore the option if not recognized
9633 # So say no if there are warnings
9634 if test -s conftest.err; then
9635 # Append any errors to the config.log.
9636 cat conftest.err 1>&5
9637 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9639 if diff conftest.exp conftest.er2 >/dev/null; then
9640 lt_cv_prog_compiler__b=yes
9643 lt_cv_prog_compiler__b=yes
9647 LDFLAGS="$save_LDFLAGS"
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9651 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9653 if test x"$lt_cv_prog_compiler__b" = xyes; then
9654 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9656 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9662 if test "$with_gnu_ld" = no; then
9663 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9664 hardcode_libdir_separator=:
9669 hardcode_shlibpath_var=no
9673 hardcode_direct_absolute=yes
9674 export_dynamic_flag_spec='${wl}-E'
9676 # hardcode_minus_L: Not really in the search PATH,
9677 # but as the default location of the library.
9678 hardcode_minus_L=yes
9684 irix5* | irix6* | nonstopux*)
9685 if test "$GCC" = yes; then
9686 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'
9687 # Try to use the -exported_symbol ld option, if it does not
9688 # work, assume that -exports_file does not work either and
9689 # implicitly export all symbols.
9690 # This should be the same for all languages, so no per-tag cache variable.
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9692 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9693 if ${lt_cv_irix_exported_symbol+:} false; then :
9694 $as_echo_n "(cached) " >&6
9696 save_LDFLAGS="$LDFLAGS"
9697 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h. */
9700 int foo (void) { return 0; }
9702 if ac_fn_c_try_link "$LINENO"; then :
9703 lt_cv_irix_exported_symbol=yes
9705 lt_cv_irix_exported_symbol=no
9707 rm -f core conftest.err conftest.$ac_objext \
9708 conftest$ac_exeext conftest.$ac_ext
9709 LDFLAGS="$save_LDFLAGS"
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9712 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9713 if test "$lt_cv_irix_exported_symbol" = yes; then
9714 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'
9717 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'
9718 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'
9720 archive_cmds_need_lc='no'
9721 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9722 hardcode_libdir_separator=:
9724 link_all_deplibs=yes
9728 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9729 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9731 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9733 hardcode_libdir_flag_spec='-R$libdir'
9735 hardcode_shlibpath_var=no
9739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9741 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9742 hardcode_libdir_separator=:
9743 hardcode_shlibpath_var=no
9750 if test -f /usr/libexec/ld.so; then
9752 hardcode_shlibpath_var=no
9753 hardcode_direct_absolute=yes
9754 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9755 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9756 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9757 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9758 export_dynamic_flag_spec='${wl}-E'
9761 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9763 hardcode_libdir_flag_spec='-R$libdir'
9766 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9767 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9777 hardcode_libdir_flag_spec='-L$libdir'
9778 hardcode_minus_L=yes
9779 allow_undefined_flag=unsupported
9780 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'
9781 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9785 if test "$GCC" = yes; then
9786 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9787 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'
9789 allow_undefined_flag=' -expect_unresolved \*'
9790 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'
9792 archive_cmds_need_lc='no'
9793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9794 hardcode_libdir_separator=:
9797 osf4* | osf5*) # as osf3* with the addition of -msym flag
9798 if test "$GCC" = yes; then
9799 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9800 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'
9801 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9803 allow_undefined_flag=' -expect_unresolved \*'
9804 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'
9805 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~
9806 $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'
9808 # Both c and cxx compiler support -rpath directly
9809 hardcode_libdir_flag_spec='-rpath $libdir'
9811 archive_cmds_need_lc='no'
9812 hardcode_libdir_separator=:
9816 no_undefined_flag=' -z defs'
9817 if test "$GCC" = yes; then
9819 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9820 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9821 $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'
9823 case `$CC -V 2>&1` in
9826 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9827 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9828 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9832 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9833 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9834 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9838 hardcode_libdir_flag_spec='-R$libdir'
9839 hardcode_shlibpath_var=no
9841 solaris2.[0-5] | solaris2.[0-5].*) ;;
9843 # The compiler driver will combine and reorder linker options,
9844 # but understands `-z linker_flag'. GCC discards it without `$wl',
9845 # but is careful enough not to reorder.
9846 # Supported since Solaris 2.6 (maybe 2.5.1?)
9847 if test "$GCC" = yes; then
9848 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9850 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9854 link_all_deplibs=yes
9858 if test "x$host_vendor" = xsequent; then
9859 # Use $CC to link under sequent, because it throws in some extra .o
9860 # files that make .init and .fini sections work.
9861 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9863 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9865 hardcode_libdir_flag_spec='-L$libdir'
9867 hardcode_minus_L=yes
9868 hardcode_shlibpath_var=no
9872 case $host_vendor in
9874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9875 hardcode_direct=yes # is this really true???
9878 ## LD is ld it makes a PLAMLIB
9879 ## CC just makes a GrossModule.
9880 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9881 reload_cmds='$CC -r -o $output$reload_objs'
9885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9886 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9889 runpath_var='LD_RUN_PATH'
9890 hardcode_shlibpath_var=no
9894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9895 hardcode_shlibpath_var=no
9896 export_dynamic_flag_spec='-Bexport'
9900 if test -d /usr/nec; then
9901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9902 hardcode_shlibpath_var=no
9903 runpath_var=LD_RUN_PATH
9904 hardcode_runpath_var=yes
9909 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9910 no_undefined_flag='${wl}-z,text'
9911 archive_cmds_need_lc=no
9912 hardcode_shlibpath_var=no
9913 runpath_var='LD_RUN_PATH'
9915 if test "$GCC" = yes; then
9916 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9917 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9919 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9920 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9924 sysv5* | sco3.2v5* | sco5v6*)
9925 # Note: We can NOT use -z defs as we might desire, because we do not
9926 # link with -lc, and that would cause any symbols used from libc to
9927 # always be unresolved, which means just about no library would
9928 # ever link correctly. If we're not using GNU ld we use -z text
9929 # though, which does catch some bad symbols but isn't as heavy-handed
9931 no_undefined_flag='${wl}-z,text'
9932 allow_undefined_flag='${wl}-z,nodefs'
9933 archive_cmds_need_lc=no
9934 hardcode_shlibpath_var=no
9935 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9936 hardcode_libdir_separator=':'
9937 link_all_deplibs=yes
9938 export_dynamic_flag_spec='${wl}-Bexport'
9939 runpath_var='LD_RUN_PATH'
9941 if test "$GCC" = yes; then
9942 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9943 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9945 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9946 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9952 hardcode_libdir_flag_spec='-L$libdir'
9953 hardcode_shlibpath_var=no
9961 if test x$host_vendor = xsni; then
9963 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9964 export_dynamic_flag_spec='${wl}-Blargedynsym'
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9971 $as_echo "$ld_shlibs" >&6; }
9972 test "$ld_shlibs" = no && can_build_shared=no
9974 with_gnu_ld=$with_gnu_ld
9991 # Do we need to explicitly link libc?
9993 case "x$archive_cmds_need_lc" in
9995 # Assume -lc should be added
9996 archive_cmds_need_lc=yes
9998 if test "$enable_shared" = yes && test "$GCC" = yes; then
9999 case $archive_cmds in
10001 # FIXME: we may have to deal with multi-command sequences.
10004 # Test whether the compiler implicitly links with -lc since on some
10005 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10006 # to ld, don't add -lc before -lgcc.
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10008 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10009 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10010 $as_echo_n "(cached) " >&6
10013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10016 (eval $ac_compile) 2>&5
10018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10019 test $ac_status = 0; } 2>conftest.err; then
10022 libobjs=conftest.$ac_objext
10024 wl=$lt_prog_compiler_wl
10025 pic_flag=$lt_prog_compiler_pic
10031 lt_save_allow_undefined_flag=$allow_undefined_flag
10032 allow_undefined_flag=
10033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10034 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10037 test $ac_status = 0; }
10039 lt_cv_archive_cmds_need_lc=no
10041 lt_cv_archive_cmds_need_lc=yes
10043 allow_undefined_flag=$lt_save_allow_undefined_flag
10045 cat conftest.err 1>&5
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10051 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10052 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10211 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10213 if test "$GCC" = yes; then
10215 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10216 *) lt_awk_arg="/^libraries:/" ;;
10219 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10220 *) lt_sed_strip_eq="s,=/,/,g" ;;
10222 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10223 case $lt_search_path_spec in
10225 # if the path contains ";" then we assume it to be the separator
10226 # otherwise default to the standard path separator (i.e. ":") - it is
10227 # assumed that no part of a normal pathname contains ";" but that should
10228 # okay in the real world where ";" in dirpaths is itself problematic.
10229 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10232 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10235 # Ok, now we have the path, separated by spaces, we can step through it
10236 # and add multilib dir if necessary.
10237 lt_tmp_lt_search_path_spec=
10238 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10239 for lt_sys_path in $lt_search_path_spec; do
10240 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10241 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10243 test -d "$lt_sys_path" && \
10244 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10247 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10248 BEGIN {RS=" "; FS="/|\n";} {
10251 for (lt_i = NF; lt_i > 0; lt_i--) {
10252 if ($lt_i != "" && $lt_i != ".") {
10253 if ($lt_i == "..") {
10256 if (lt_count == 0) {
10257 lt_foo="/" $lt_i lt_foo;
10264 if (lt_foo != "") { lt_freq[lt_foo]++; }
10265 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10267 # AWK program above erroneously prepends '/' to C:/dos/paths
10270 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10271 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10273 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10275 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10277 library_names_spec=
10278 libname_spec='lib$name'
10282 postuninstall_cmds=
10286 shlibpath_overrides_runpath=unknown
10288 dynamic_linker="$host_os ld.so"
10289 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10290 need_lib_prefix=unknown
10291 hardcode_into_libs=no
10293 # when you set need_version to no, make sure it does not cause -set_version
10294 # flags to be left without arguments
10295 need_version=unknown
10299 version_type=linux # correct to gnu/linux during the next big refactor
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10301 shlibpath_var=LIBPATH
10303 # AIX 3 has no versioning support, so we append a major version to the name.
10304 soname_spec='${libname}${release}${shared_ext}$major'
10308 version_type=linux # correct to gnu/linux during the next big refactor
10311 hardcode_into_libs=yes
10312 if test "$host_cpu" = ia64; then
10313 # AIX 5 supports IA64
10314 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10315 shlibpath_var=LD_LIBRARY_PATH
10317 # With GCC up to 2.95.x, collect2 would create an import file
10318 # for dependence libraries. The import file would start with
10319 # the line `#! .'. This would cause the generated library to
10320 # depend on `.', always an invalid library. This was fixed in
10321 # development snapshots of GCC prior to 3.0.
10323 aix4 | aix4.[01] | aix4.[01].*)
10324 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10326 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10329 can_build_shared=no
10333 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10334 # soname into executable. Probably we can add versioning support to
10335 # collect2, so additional links can be useful in future.
10336 if test "$aix_use_runtimelinking" = yes; then
10337 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10338 # instead of lib<name>.a to let people know that these are not
10339 # typical AIX shared libraries.
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10342 # We preserve .a as extension for shared libraries through AIX4.2
10343 # and later when we are not doing run time linking.
10344 library_names_spec='${libname}${release}.a $libname.a'
10345 soname_spec='${libname}${release}${shared_ext}$major'
10347 shlibpath_var=LIBPATH
10354 # Since July 2007 AmigaOS4 officially supports .so libraries.
10355 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359 library_names_spec='$libname.ixlibrary $libname.a'
10360 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10361 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'
10367 library_names_spec='${libname}${shared_ext}'
10368 dynamic_linker="$host_os ld.so"
10369 shlibpath_var=LIBRARY_PATH
10373 version_type=linux # correct to gnu/linux during the next big refactor
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10377 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10378 shlibpath_var=LD_LIBRARY_PATH
10379 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10380 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10381 # the default ld.so.conf also contains /usr/contrib/lib and
10382 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10383 # libtool to hard-code these into programs
10386 cygwin* | mingw* | pw32* | cegcc*)
10387 version_type=windows
10392 case $GCC,$cc_basename in
10395 library_names_spec='$libname.dll.a'
10396 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10397 postinstall_cmds='base_file=`basename \${file}`~
10398 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10399 dldir=$destdir/`dirname \$dlpath`~
10400 test -d \$dldir || mkdir -p \$dldir~
10401 $install_prog $dir/$dlname \$dldir/$dlname~
10402 chmod a+x \$dldir/$dlname~
10403 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10404 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10406 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10407 dlpath=$dir/\$dldll~
10409 shlibpath_overrides_runpath=yes
10413 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10414 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10416 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10419 # MinGW DLLs use traditional 'lib' prefix
10420 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10423 # pw32 DLLs use 'pw' prefix rather than 'lib'
10424 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10427 dynamic_linker='Win32 ld.exe'
10432 libname_spec='$name'
10433 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10434 library_names_spec='${libname}.dll.lib'
10438 sys_lib_search_path_spec=
10441 for lt_path in $LIB
10444 # Let DOS variable expansion print the short 8.3 style file name.
10445 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10446 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10449 # Convert to MSYS style.
10450 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10453 # Convert to unix form, then to dos form, then back to unix form
10454 # but this time dos style (no spaces!) so that the unix form looks
10455 # like /cygdrive/c/PROGRA~1:/cygdr...
10456 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10457 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10458 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10461 sys_lib_search_path_spec="$LIB"
10462 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10463 # It is most probably a Windows format PATH.
10464 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10466 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10468 # FIXME: find the short name or the path components, as spaces are
10469 # common. (e.g. "Program Files" -> "PROGRA~1")
10473 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10474 postinstall_cmds='base_file=`basename \${file}`~
10475 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10476 dldir=$destdir/`dirname \$dlpath`~
10477 test -d \$dldir || mkdir -p \$dldir~
10478 $install_prog $dir/$dlname \$dldir/$dlname'
10479 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10480 dlpath=$dir/\$dldll~
10482 shlibpath_overrides_runpath=yes
10483 dynamic_linker='Win32 link.exe'
10487 # Assume MSVC wrapper
10488 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10489 dynamic_linker='Win32 ld.exe'
10492 # FIXME: first we should search . and the directory the executable is in
10496 darwin* | rhapsody*)
10497 dynamic_linker="$host_os dyld"
10498 version_type=darwin
10501 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10502 soname_spec='${libname}${release}${major}$shared_ext'
10503 shlibpath_overrides_runpath=yes
10504 shlibpath_var=DYLD_LIBRARY_PATH
10505 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10507 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10508 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10512 version_type=linux # correct to gnu/linux during the next big refactor
10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10516 soname_spec='${libname}${release}${shared_ext}$major'
10517 shlibpath_var=LD_LIBRARY_PATH
10520 freebsd* | dragonfly*)
10521 # DragonFly does not have aout. When/if they implement a new
10522 # versioning mechanism, adjust this.
10523 if test -x /usr/bin/objformat; then
10524 objformat=`/usr/bin/objformat`
10527 freebsd[23].*) objformat=aout ;;
10528 *) objformat=elf ;;
10531 version_type=freebsd-$objformat
10532 case $version_type in
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10539 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10543 shlibpath_var=LD_LIBRARY_PATH
10546 shlibpath_overrides_runpath=yes
10548 freebsd3.[01]* | freebsdelf3.[01]*)
10549 shlibpath_overrides_runpath=yes
10550 hardcode_into_libs=yes
10552 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10553 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10554 shlibpath_overrides_runpath=no
10555 hardcode_into_libs=yes
10557 *) # from 4.6 on, and DragonFly
10558 shlibpath_overrides_runpath=yes
10559 hardcode_into_libs=yes
10565 version_type=linux # correct to gnu/linux during the next big refactor
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10569 soname_spec='${libname}${release}${shared_ext}$major'
10570 shlibpath_var=LD_LIBRARY_PATH
10571 shlibpath_overrides_runpath=no
10572 hardcode_into_libs=yes
10576 version_type=linux # correct to gnu/linux during the next big refactor
10579 dynamic_linker="$host_os runtime_loader"
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10581 soname_spec='${libname}${release}${shared_ext}$major'
10582 shlibpath_var=LIBRARY_PATH
10583 shlibpath_overrides_runpath=yes
10584 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10585 hardcode_into_libs=yes
10588 hpux9* | hpux10* | hpux11*)
10589 # Give a soname corresponding to the major version so that dld.sl refuses to
10590 # link against other versions.
10597 hardcode_into_libs=yes
10598 dynamic_linker="$host_os dld.so"
10599 shlibpath_var=LD_LIBRARY_PATH
10600 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10602 soname_spec='${libname}${release}${shared_ext}$major'
10603 if test "X$HPUX_IA64_MODE" = X32; then
10604 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10606 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10612 hardcode_into_libs=yes
10613 dynamic_linker="$host_os dld.sl"
10614 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 soname_spec='${libname}${release}${shared_ext}$major'
10618 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10623 dynamic_linker="$host_os dld.sl"
10624 shlibpath_var=SHLIB_PATH
10625 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10627 soname_spec='${libname}${release}${shared_ext}$major'
10630 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10631 postinstall_cmds='chmod 555 $lib'
10632 # or fails outright, so override atomically:
10633 install_override_mode=555
10637 version_type=linux # correct to gnu/linux during the next big refactor
10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10641 soname_spec='${libname}${release}${shared_ext}$major'
10642 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10643 shlibpath_var=LD_LIBRARY_PATH
10644 shlibpath_overrides_runpath=no
10645 hardcode_into_libs=yes
10648 irix5* | irix6* | nonstopux*)
10650 nonstopux*) version_type=nonstopux ;;
10652 if test "$lt_cv_prog_gnu_ld" = yes; then
10653 version_type=linux # correct to gnu/linux during the next big refactor
10660 soname_spec='${libname}${release}${shared_ext}$major'
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10663 irix5* | nonstopux*)
10664 libsuff= shlibsuff=
10667 case $LD in # libtool.m4 will add one of these switches to LD
10668 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10669 libsuff= shlibsuff= libmagic=32-bit;;
10670 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10671 libsuff=32 shlibsuff=N32 libmagic=N32;;
10672 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10673 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10674 *) libsuff= shlibsuff= libmagic=never-match;;
10678 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10679 shlibpath_overrides_runpath=no
10680 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10681 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10682 hardcode_into_libs=yes
10685 # No shared lib support for Linux oldld, aout, or coff.
10686 linux*oldld* | linux*aout* | linux*coff*)
10690 # This must be glibc/ELF.
10691 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10692 version_type=linux # correct to gnu/linux during the next big refactor
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696 soname_spec='${libname}${release}${shared_ext}$major'
10697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10698 shlibpath_var=LD_LIBRARY_PATH
10699 shlibpath_overrides_runpath=no
10701 # Some binutils ld are patched to set DT_RUNPATH
10702 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10703 $as_echo_n "(cached) " >&6
10705 lt_cv_shlibpath_overrides_runpath=no
10706 save_LDFLAGS=$LDFLAGS
10707 save_libdir=$libdir
10708 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10709 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h. */
10721 if ac_fn_c_try_link "$LINENO"; then :
10722 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10723 lt_cv_shlibpath_overrides_runpath=yes
10726 rm -f core conftest.err conftest.$ac_objext \
10727 conftest$ac_exeext conftest.$ac_ext
10728 LDFLAGS=$save_LDFLAGS
10729 libdir=$save_libdir
10733 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10735 # This implies no fast_install, which is unacceptable.
10736 # Some rework will be needed to allow for fast_install
10737 # before this can be enabled.
10738 hardcode_into_libs=yes
10740 # Add ABI-specific directories to the system library path.
10741 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10743 # Append ld.so.conf contents to the search path
10744 if test -f /etc/ld.so.conf; then
10745 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' ' '`
10746 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10750 # We used to test for /lib/ld.so.1 and disable shared libraries on
10751 # powerpc, because MkLinux only supported shared libraries with the
10752 # GNU dynamic linker. Since this was broken with cross compilers,
10753 # most powerpc-linux boxes support dynamic linking these days and
10754 # people can always --disable-shared, the test was removed, and we
10755 # assume the GNU/Linux dynamic linker is in use.
10756 dynamic_linker='GNU/Linux ld.so'
10763 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10766 dynamic_linker='NetBSD (a.out) ld.so'
10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10769 soname_spec='${libname}${release}${shared_ext}$major'
10770 dynamic_linker='NetBSD ld.elf_so'
10772 shlibpath_var=LD_LIBRARY_PATH
10773 shlibpath_overrides_runpath=yes
10774 hardcode_into_libs=yes
10778 version_type=linux # correct to gnu/linux during the next big refactor
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10780 shlibpath_var=LD_LIBRARY_PATH
10781 shlibpath_overrides_runpath=yes
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789 soname_spec='${libname}${release}${shared_ext}$major'
10790 shlibpath_var=LD_LIBRARY_PATH
10791 shlibpath_overrides_runpath=no
10792 hardcode_into_libs=yes
10793 dynamic_linker='ldqnx.so'
10798 sys_lib_dlsearch_path_spec="/usr/lib"
10800 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10802 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10803 *) need_version=no ;;
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10807 shlibpath_var=LD_LIBRARY_PATH
10808 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10810 openbsd2.[89] | openbsd2.[89].*)
10811 shlibpath_overrides_runpath=no
10814 shlibpath_overrides_runpath=yes
10818 shlibpath_overrides_runpath=yes
10823 libname_spec='$name'
10826 library_names_spec='$libname${shared_ext} $libname.a'
10827 dynamic_linker='OS/2 ld.exe'
10828 shlibpath_var=LIBPATH
10831 osf3* | osf4* | osf5*)
10835 soname_spec='${libname}${release}${shared_ext}$major'
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10837 shlibpath_var=LD_LIBRARY_PATH
10838 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10839 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10847 version_type=linux # correct to gnu/linux during the next big refactor
10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851 soname_spec='${libname}${release}${shared_ext}$major'
10852 shlibpath_var=LD_LIBRARY_PATH
10853 shlibpath_overrides_runpath=yes
10854 hardcode_into_libs=yes
10855 # ldd complains unless libraries are executable
10856 postinstall_cmds='chmod +x $lib'
10861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10862 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10863 shlibpath_var=LD_LIBRARY_PATH
10864 shlibpath_overrides_runpath=yes
10865 if test "$with_gnu_ld" = yes; then
10872 version_type=linux # correct to gnu/linux during the next big refactor
10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10874 soname_spec='${libname}${release}${shared_ext}$major'
10875 shlibpath_var=LD_LIBRARY_PATH
10876 case $host_vendor in
10878 shlibpath_overrides_runpath=no
10880 runpath_var=LD_RUN_PATH
10888 shlibpath_overrides_runpath=no
10889 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10895 if test -d /usr/nec ;then
10896 version_type=linux # correct to gnu/linux during the next big refactor
10897 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10898 soname_spec='$libname${shared_ext}.$major'
10899 shlibpath_var=LD_LIBRARY_PATH
10903 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10904 version_type=freebsd-elf
10907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10908 soname_spec='${libname}${release}${shared_ext}$major'
10909 shlibpath_var=LD_LIBRARY_PATH
10910 shlibpath_overrides_runpath=yes
10911 hardcode_into_libs=yes
10912 if test "$with_gnu_ld" = yes; then
10913 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10915 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10918 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10922 sys_lib_dlsearch_path_spec='/usr/lib'
10926 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10927 version_type=linux # correct to gnu/linux during the next big refactor
10930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10931 shlibpath_var=LD_LIBRARY_PATH
10932 shlibpath_overrides_runpath=no
10933 hardcode_into_libs=yes
10937 version_type=linux # correct to gnu/linux during the next big refactor
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939 soname_spec='${libname}${release}${shared_ext}$major'
10940 shlibpath_var=LD_LIBRARY_PATH
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10948 $as_echo "$dynamic_linker" >&6; }
10949 test "$dynamic_linker" = no && can_build_shared=no
10951 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10952 if test "$GCC" = yes; then
10953 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10956 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10957 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10959 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10960 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11055 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11057 if test -n "$hardcode_libdir_flag_spec" ||
11058 test -n "$runpath_var" ||
11059 test "X$hardcode_automatic" = "Xyes" ; then
11061 # We can hardcode non-existent directories.
11062 if test "$hardcode_direct" != no &&
11063 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11064 # have to relink, otherwise we might link with an installed library
11065 # when we should be linking with a yet-to-be-installed one
11066 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11067 test "$hardcode_minus_L" != no; then
11068 # Linking always hardcodes the temporary library directory.
11069 hardcode_action=relink
11071 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11072 hardcode_action=immediate
11075 # We cannot hardcode anything, or else we can only hardcode existing
11077 hardcode_action=unsupported
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11080 $as_echo "$hardcode_action" >&6; }
11082 if test "$hardcode_action" = relink ||
11083 test "$inherit_rpath" = yes; then
11084 # Fast installation is not supported
11085 enable_fast_install=no
11086 elif test "$shlibpath_overrides_runpath" = yes ||
11087 test "$enable_shared" = no; then
11088 # Fast installation is not necessary
11089 enable_fast_install=needless
11097 if test "x$enable_dlopen" != xyes; then
11098 enable_dlopen=unknown
11099 enable_dlopen_self=unknown
11100 enable_dlopen_self_static=unknown
11107 lt_cv_dlopen="load_add_on"
11109 lt_cv_dlopen_self=yes
11112 mingw* | pw32* | cegcc*)
11113 lt_cv_dlopen="LoadLibrary"
11118 lt_cv_dlopen="dlopen"
11123 # if libdl is installed we need to link against it
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11125 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11126 if ${ac_cv_lib_dl_dlopen+:} false; then :
11127 $as_echo_n "(cached) " >&6
11129 ac_check_lib_save_LIBS=$LIBS
11131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11132 /* end confdefs.h. */
11134 /* Override any GCC internal prototype to avoid an error.
11135 Use char because int might match the return type of a GCC
11136 builtin and then its argument prototype would still apply. */
11149 if ac_fn_c_try_link "$LINENO"; then :
11150 ac_cv_lib_dl_dlopen=yes
11152 ac_cv_lib_dl_dlopen=no
11154 rm -f core conftest.err conftest.$ac_objext \
11155 conftest$ac_exeext conftest.$ac_ext
11156 LIBS=$ac_check_lib_save_LIBS
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11159 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11160 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11161 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11164 lt_cv_dlopen="dyld"
11166 lt_cv_dlopen_self=yes
11173 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11174 if test "x$ac_cv_func_shl_load" = xyes; then :
11175 lt_cv_dlopen="shl_load"
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11178 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11179 if ${ac_cv_lib_dld_shl_load+:} false; then :
11180 $as_echo_n "(cached) " >&6
11182 ac_check_lib_save_LIBS=$LIBS
11184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h. */
11187 /* Override any GCC internal prototype to avoid an error.
11188 Use char because int might match the return type of a GCC
11189 builtin and then its argument prototype would still apply. */
11197 return shl_load ();
11202 if ac_fn_c_try_link "$LINENO"; then :
11203 ac_cv_lib_dld_shl_load=yes
11205 ac_cv_lib_dld_shl_load=no
11207 rm -f core conftest.err conftest.$ac_objext \
11208 conftest$ac_exeext conftest.$ac_ext
11209 LIBS=$ac_check_lib_save_LIBS
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11212 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11213 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11214 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11216 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11217 if test "x$ac_cv_func_dlopen" = xyes; then :
11218 lt_cv_dlopen="dlopen"
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11221 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11222 if ${ac_cv_lib_dl_dlopen+:} false; then :
11223 $as_echo_n "(cached) " >&6
11225 ac_check_lib_save_LIBS=$LIBS
11227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11228 /* end confdefs.h. */
11230 /* Override any GCC internal prototype to avoid an error.
11231 Use char because int might match the return type of a GCC
11232 builtin and then its argument prototype would still apply. */
11245 if ac_fn_c_try_link "$LINENO"; then :
11246 ac_cv_lib_dl_dlopen=yes
11248 ac_cv_lib_dl_dlopen=no
11250 rm -f core conftest.err conftest.$ac_objext \
11251 conftest$ac_exeext conftest.$ac_ext
11252 LIBS=$ac_check_lib_save_LIBS
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11255 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11256 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11257 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11260 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11261 if ${ac_cv_lib_svld_dlopen+:} false; then :
11262 $as_echo_n "(cached) " >&6
11264 ac_check_lib_save_LIBS=$LIBS
11265 LIBS="-lsvld $LIBS"
11266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11269 /* Override any GCC internal prototype to avoid an error.
11270 Use char because int might match the return type of a GCC
11271 builtin and then its argument prototype would still apply. */
11284 if ac_fn_c_try_link "$LINENO"; then :
11285 ac_cv_lib_svld_dlopen=yes
11287 ac_cv_lib_svld_dlopen=no
11289 rm -f core conftest.err conftest.$ac_objext \
11290 conftest$ac_exeext conftest.$ac_ext
11291 LIBS=$ac_check_lib_save_LIBS
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11294 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11295 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11299 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11300 if ${ac_cv_lib_dld_dld_link+:} false; then :
11301 $as_echo_n "(cached) " >&6
11303 ac_check_lib_save_LIBS=$LIBS
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11308 /* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11318 return dld_link ();
11323 if ac_fn_c_try_link "$LINENO"; then :
11324 ac_cv_lib_dld_dld_link=yes
11326 ac_cv_lib_dld_dld_link=no
11328 rm -f core conftest.err conftest.$ac_objext \
11329 conftest$ac_exeext conftest.$ac_ext
11330 LIBS=$ac_check_lib_save_LIBS
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11333 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11334 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11335 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11356 if test "x$lt_cv_dlopen" != xno; then
11362 case $lt_cv_dlopen in
11364 save_CPPFLAGS="$CPPFLAGS"
11365 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11367 save_LDFLAGS="$LDFLAGS"
11368 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11371 LIBS="$lt_cv_dlopen_libs $LIBS"
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11374 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11375 if ${lt_cv_dlopen_self+:} false; then :
11376 $as_echo_n "(cached) " >&6
11378 if test "$cross_compiling" = yes; then :
11379 lt_cv_dlopen_self=cross
11381 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11382 lt_status=$lt_dlunknown
11383 cat > conftest.$ac_ext <<_LT_EOF
11384 #line $LINENO "configure"
11385 #include "confdefs.h"
11394 # define LT_DLGLOBAL RTLD_GLOBAL
11397 # define LT_DLGLOBAL DL_GLOBAL
11399 # define LT_DLGLOBAL 0
11403 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11404 find out it does not work in some platform. */
11405 #ifndef LT_DLLAZY_OR_NOW
11407 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11410 # define LT_DLLAZY_OR_NOW DL_LAZY
11413 # define LT_DLLAZY_OR_NOW RTLD_NOW
11416 # define LT_DLLAZY_OR_NOW DL_NOW
11418 # define LT_DLLAZY_OR_NOW 0
11425 /* When -fvisbility=hidden is used, assume the code has been annotated
11426 correspondingly for the symbols needed. */
11427 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11428 int fnord () __attribute__((visibility("default")));
11431 int fnord () { return 42; }
11434 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11435 int status = $lt_dlunknown;
11439 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11442 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11443 else puts (dlerror ());
11445 /* dlclose (self); */
11453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11454 (eval $ac_link) 2>&5
11456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11457 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11458 (./conftest; exit; ) >&5 2>/dev/null
11460 case x$lt_status in
11461 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11462 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11463 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11466 # compilation failed
11467 lt_cv_dlopen_self=no
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11475 $as_echo "$lt_cv_dlopen_self" >&6; }
11477 if test "x$lt_cv_dlopen_self" = xyes; then
11478 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11480 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11481 if ${lt_cv_dlopen_self_static+:} false; then :
11482 $as_echo_n "(cached) " >&6
11484 if test "$cross_compiling" = yes; then :
11485 lt_cv_dlopen_self_static=cross
11487 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11488 lt_status=$lt_dlunknown
11489 cat > conftest.$ac_ext <<_LT_EOF
11490 #line $LINENO "configure"
11491 #include "confdefs.h"
11500 # define LT_DLGLOBAL RTLD_GLOBAL
11503 # define LT_DLGLOBAL DL_GLOBAL
11505 # define LT_DLGLOBAL 0
11509 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11510 find out it does not work in some platform. */
11511 #ifndef LT_DLLAZY_OR_NOW
11513 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11516 # define LT_DLLAZY_OR_NOW DL_LAZY
11519 # define LT_DLLAZY_OR_NOW RTLD_NOW
11522 # define LT_DLLAZY_OR_NOW DL_NOW
11524 # define LT_DLLAZY_OR_NOW 0
11531 /* When -fvisbility=hidden is used, assume the code has been annotated
11532 correspondingly for the symbols needed. */
11533 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11534 int fnord () __attribute__((visibility("default")));
11537 int fnord () { return 42; }
11540 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11541 int status = $lt_dlunknown;
11545 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11548 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11549 else puts (dlerror ());
11551 /* dlclose (self); */
11559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11560 (eval $ac_link) 2>&5
11562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11563 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11564 (./conftest; exit; ) >&5 2>/dev/null
11566 case x$lt_status in
11567 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11568 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11569 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11572 # compilation failed
11573 lt_cv_dlopen_self_static=no
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11581 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11584 CPPFLAGS="$save_CPPFLAGS"
11585 LDFLAGS="$save_LDFLAGS"
11590 case $lt_cv_dlopen_self in
11591 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11592 *) enable_dlopen_self=unknown ;;
11595 case $lt_cv_dlopen_self_static in
11596 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11597 *) enable_dlopen_self_static=unknown ;;
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11620 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11621 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11622 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11623 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11625 $as_echo "yes" >&6; }
11627 # FIXME - insert some real tests, host_os isn't really good enough
11630 if test -n "$STRIP" ; then
11631 striplib="$STRIP -x"
11632 old_striplib="$STRIP -S"
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11634 $as_echo "yes" >&6; }
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637 $as_echo "no" >&6; }
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 $as_echo "no" >&6; }
11658 # Report which library types will actually be built
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11660 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11662 $as_echo "$can_build_shared" >&6; }
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11665 $as_echo_n "checking whether to build shared libraries... " >&6; }
11666 test "$can_build_shared" = "no" && enable_shared=no
11668 # On AIX, shared libraries and static libraries use the same namespace, and
11669 # are all built from PIC.
11672 test "$enable_shared" = yes && enable_static=no
11673 if test -n "$RANLIB"; then
11674 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11675 postinstall_cmds='$RANLIB $lib'
11680 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11681 test "$enable_shared" = yes && enable_static=no
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11686 $as_echo "$enable_shared" >&6; }
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11689 $as_echo_n "checking whether to build static libraries... " >&6; }
11690 # Make sure either enable_shared or enable_static is yes.
11691 test "$enable_shared" = yes || enable_static=yes
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11693 $as_echo "$enable_static" >&6; }
11700 ac_cpp='$CPP $CPPFLAGS'
11701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11721 ac_config_commands="$ac_config_commands libtool"
11726 # Only expand once:
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
11731 $as_echo_n "checking for library containing strerror... " >&6; }
11732 if ${ac_cv_search_strerror+:} false; then :
11733 $as_echo_n "(cached) " >&6
11735 ac_func_search_save_LIBS=$LIBS
11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737 /* end confdefs.h. */
11739 /* Override any GCC internal prototype to avoid an error.
11740 Use char because int might match the return type of a GCC
11741 builtin and then its argument prototype would still apply. */
11749 return strerror ();
11754 for ac_lib in '' cposix; do
11755 if test -z "$ac_lib"; then
11756 ac_res="none required"
11759 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11761 if ac_fn_c_try_link "$LINENO"; then :
11762 ac_cv_search_strerror=$ac_res
11764 rm -f core conftest.err conftest.$ac_objext \
11766 if ${ac_cv_search_strerror+:} false; then :
11770 if ${ac_cv_search_strerror+:} false; then :
11773 ac_cv_search_strerror=no
11775 rm conftest.$ac_ext
11776 LIBS=$ac_func_search_save_LIBS
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
11779 $as_echo "$ac_cv_search_strerror" >&6; }
11780 ac_res=$ac_cv_search_strerror
11781 if test "$ac_res" != no; then :
11782 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11787 ac_cpp='$CPP $CPPFLAGS'
11788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11791 if test -n "$ac_tool_prefix"; then
11792 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11793 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11795 $as_echo_n "checking for $ac_word... " >&6; }
11796 if ${ac_cv_prog_CC+:} false; then :
11797 $as_echo_n "(cached) " >&6
11799 if test -n "$CC"; then
11800 ac_cv_prog_CC="$CC" # Let the user override the test.
11802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11803 for as_dir in $PATH
11806 test -z "$as_dir" && as_dir=.
11807 for ac_exec_ext in '' $ac_executable_extensions; do
11808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11809 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11820 if test -n "$CC"; then
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11822 $as_echo "$CC" >&6; }
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825 $as_echo "no" >&6; }
11830 if test -z "$ac_cv_prog_CC"; then
11832 # Extract the first word of "gcc", so it can be a program name with args.
11833 set dummy gcc; ac_word=$2
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11835 $as_echo_n "checking for $ac_word... " >&6; }
11836 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11837 $as_echo_n "(cached) " >&6
11839 if test -n "$ac_ct_CC"; then
11840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843 for as_dir in $PATH
11846 test -z "$as_dir" && as_dir=.
11847 for ac_exec_ext in '' $ac_executable_extensions; do
11848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11849 ac_cv_prog_ac_ct_CC="gcc"
11850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11860 if test -n "$ac_ct_CC"; then
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11862 $as_echo "$ac_ct_CC" >&6; }
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865 $as_echo "no" >&6; }
11868 if test "x$ac_ct_CC" = x; then
11871 case $cross_compiling:$ac_tool_warned in
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11875 ac_tool_warned=yes ;;
11880 CC="$ac_cv_prog_CC"
11883 if test -z "$CC"; then
11884 if test -n "$ac_tool_prefix"; then
11885 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11886 set dummy ${ac_tool_prefix}cc; ac_word=$2
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11888 $as_echo_n "checking for $ac_word... " >&6; }
11889 if ${ac_cv_prog_CC+:} false; then :
11890 $as_echo_n "(cached) " >&6
11892 if test -n "$CC"; then
11893 ac_cv_prog_CC="$CC" # Let the user override the test.
11895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11896 for as_dir in $PATH
11899 test -z "$as_dir" && as_dir=.
11900 for ac_exec_ext in '' $ac_executable_extensions; do
11901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11902 ac_cv_prog_CC="${ac_tool_prefix}cc"
11903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11913 if test -n "$CC"; then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11915 $as_echo "$CC" >&6; }
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11924 if test -z "$CC"; then
11925 # Extract the first word of "cc", so it can be a program name with args.
11926 set dummy cc; ac_word=$2
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11928 $as_echo_n "checking for $ac_word... " >&6; }
11929 if ${ac_cv_prog_CC+:} false; then :
11930 $as_echo_n "(cached) " >&6
11932 if test -n "$CC"; then
11933 ac_cv_prog_CC="$CC" # Let the user override the test.
11935 ac_prog_rejected=no
11936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937 for as_dir in $PATH
11940 test -z "$as_dir" && as_dir=.
11941 for ac_exec_ext in '' $ac_executable_extensions; do
11942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11943 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11944 ac_prog_rejected=yes
11948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11955 if test $ac_prog_rejected = yes; then
11956 # We found a bogon in the path, so make sure we never use it.
11957 set dummy $ac_cv_prog_CC
11959 if test $# != 0; then
11960 # We chose a different compiler from the bogus one.
11961 # However, it has the same basename, so the bogon will be chosen
11962 # first if we set CC to just the basename; use the full file name.
11964 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11970 if test -n "$CC"; then
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11972 $as_echo "$CC" >&6; }
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975 $as_echo "no" >&6; }
11980 if test -z "$CC"; then
11981 if test -n "$ac_tool_prefix"; then
11982 for ac_prog in cl.exe
11984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987 $as_echo_n "checking for $ac_word... " >&6; }
11988 if ${ac_cv_prog_CC+:} false; then :
11989 $as_echo_n "(cached) " >&6
11991 if test -n "$CC"; then
11992 ac_cv_prog_CC="$CC" # Let the user override the test.
11994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995 for as_dir in $PATH
11998 test -z "$as_dir" && as_dir=.
11999 for ac_exec_ext in '' $ac_executable_extensions; do
12000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12012 if test -n "$CC"; then
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12014 $as_echo "$CC" >&6; }
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017 $as_echo "no" >&6; }
12021 test -n "$CC" && break
12024 if test -z "$CC"; then
12026 for ac_prog in cl.exe
12028 # Extract the first word of "$ac_prog", so it can be a program name with args.
12029 set dummy $ac_prog; ac_word=$2
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12031 $as_echo_n "checking for $ac_word... " >&6; }
12032 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12033 $as_echo_n "(cached) " >&6
12035 if test -n "$ac_ct_CC"; then
12036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12039 for as_dir in $PATH
12042 test -z "$as_dir" && as_dir=.
12043 for ac_exec_ext in '' $ac_executable_extensions; do
12044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12045 ac_cv_prog_ac_ct_CC="$ac_prog"
12046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12056 if test -n "$ac_ct_CC"; then
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12058 $as_echo "$ac_ct_CC" >&6; }
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12061 $as_echo "no" >&6; }
12065 test -n "$ac_ct_CC" && break
12068 if test "x$ac_ct_CC" = x; then
12071 case $cross_compiling:$ac_tool_warned in
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12075 ac_tool_warned=yes ;;
12084 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12086 as_fn_error $? "no acceptable C compiler found in \$PATH
12087 See \`config.log' for more details" "$LINENO" 5; }
12089 # Provide some information about the compiler.
12090 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12093 for ac_option in --version -v -V -qversion; do
12094 { { ac_try="$ac_compiler $ac_option >&5"
12095 case "(($ac_try" in
12096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097 *) ac_try_echo=$ac_try;;
12099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12100 $as_echo "$ac_try_echo"; } >&5
12101 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12103 if test -s conftest.err; then
12105 ... rest of stderr output deleted ...
12106 10q' conftest.err >conftest.er1
12107 cat conftest.er1 >&5
12109 rm -f conftest.er1 conftest.err
12110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12111 test $ac_status = 0; }
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12115 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12116 if ${ac_cv_c_compiler_gnu+:} false; then :
12117 $as_echo_n "(cached) " >&6
12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h. */
12133 if ac_fn_c_try_compile "$LINENO"; then :
12134 ac_compiler_gnu=yes
12138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12139 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12143 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12144 if test $ac_compiler_gnu = yes; then
12149 ac_test_CFLAGS=${CFLAGS+set}
12150 ac_save_CFLAGS=$CFLAGS
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12152 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12153 if ${ac_cv_prog_cc_g+:} false; then :
12154 $as_echo_n "(cached) " >&6
12156 ac_save_c_werror_flag=$ac_c_werror_flag
12157 ac_c_werror_flag=yes
12160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h. */
12171 if ac_fn_c_try_compile "$LINENO"; then :
12172 ac_cv_prog_cc_g=yes
12175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176 /* end confdefs.h. */
12186 if ac_fn_c_try_compile "$LINENO"; then :
12189 ac_c_werror_flag=$ac_save_c_werror_flag
12191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192 /* end confdefs.h. */
12202 if ac_fn_c_try_compile "$LINENO"; then :
12203 ac_cv_prog_cc_g=yes
12205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12210 ac_c_werror_flag=$ac_save_c_werror_flag
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12213 $as_echo "$ac_cv_prog_cc_g" >&6; }
12214 if test "$ac_test_CFLAGS" = set; then
12215 CFLAGS=$ac_save_CFLAGS
12216 elif test $ac_cv_prog_cc_g = yes; then
12217 if test "$GCC" = yes; then
12223 if test "$GCC" = yes; then
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12230 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12231 if ${ac_cv_prog_cc_c89+:} false; then :
12232 $as_echo_n "(cached) " >&6
12234 ac_cv_prog_cc_c89=no
12236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h. */
12238 #include <stdarg.h>
12241 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12242 struct buf { int x; };
12243 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12244 static char *e (p, i)
12250 static char *f (char * (*g) (char **, int), char **p, ...)
12255 s = g (p, va_arg (v,int));
12260 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12261 function prototypes and stuff, but not '\xHH' hex character constants.
12262 These don't provoke an error unfortunately, instead are silently treated
12263 as 'x'. The following induces an error, until -std is added to get
12264 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12265 array size at least. It's necessary to write '\x00'==0 to get something
12266 that's true only with -std. */
12267 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12269 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12270 inside strings and character constants. */
12272 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12274 int test (int i, double x);
12275 struct s1 {int (*f) (int a);};
12276 struct s2 {int (*f) (double a);};
12277 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12283 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12288 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12289 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12291 CC="$ac_save_CC $ac_arg"
12292 if ac_fn_c_try_compile "$LINENO"; then :
12293 ac_cv_prog_cc_c89=$ac_arg
12295 rm -f core conftest.err conftest.$ac_objext
12296 test "x$ac_cv_prog_cc_c89" != "xno" && break
12298 rm -f conftest.$ac_ext
12303 case "x$ac_cv_prog_cc_c89" in
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12306 $as_echo "none needed" >&6; } ;;
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12309 $as_echo "unsupported" >&6; } ;;
12311 CC="$CC $ac_cv_prog_cc_c89"
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12313 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12315 if test "x$ac_cv_prog_cc_c89" != xno; then :
12320 ac_cpp='$CPP $CPPFLAGS'
12321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12325 depcc="$CC" am_compiler_list=
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12328 $as_echo_n "checking dependency style of $depcc... " >&6; }
12329 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12330 $as_echo_n "(cached) " >&6
12332 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12333 # We make a subdir and do the tests there. Otherwise we can end up
12334 # making bogus files that we don't know about and never remove. For
12335 # instance it was reported that on HP-UX the gcc test will end up
12336 # making a dummy file named 'D' -- because '-MD' means "put the output
12338 rm -rf conftest.dir
12340 # Copy depcomp to subdir because otherwise we won't find it if we're
12341 # using a relative directory.
12342 cp "$am_depcomp" conftest.dir
12344 # We will build objects and dependencies in a subdirectory because
12345 # it helps to detect inapplicable dependency modes. For instance
12346 # both Tru64's cc and ICC support -MD to output dependencies as a
12347 # side effect of compilation, but ICC will put the dependencies in
12348 # the current directory while Tru64 will put them in the object
12352 am_cv_CC_dependencies_compiler_type=none
12353 if test "$am_compiler_list" = ""; then
12354 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12356 am__universal=false
12357 case " $depcc " in #(
12358 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12361 for depmode in $am_compiler_list; do
12362 # Setup a source with many dependencies, because some compilers
12363 # like to wrap large dependency lists on column 80 (with \), and
12364 # we should not choose a depcomp mode which is confused by this.
12366 # We need to recreate these files for each test, as the compiler may
12367 # overwrite some of them when testing with obscure command lines.
12368 # This happens at least with the AIX C compiler.
12370 for i in 1 2 3 4 5 6; do
12371 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12372 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12373 # Solaris 10 /bin/sh.
12374 echo '/* dummy */' > sub/conftst$i.h
12376 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12378 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12379 # mode. It turns out that the SunPro C++ compiler does not properly
12380 # handle '-M -o', and we need to detect this. Also, some Intel
12381 # versions had trouble with output in subdirs.
12382 am__obj=sub/conftest.${OBJEXT-o}
12383 am__minus_obj="-o $am__obj"
12386 # This depmode causes a compiler race in universal mode.
12387 test "$am__universal" = false || continue
12390 # After this tag, mechanisms are not by side-effect, so they'll
12391 # only be used when explicitly requested.
12392 if test "x$enable_dependency_tracking" = xyes; then
12398 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12399 # This compiler won't grok '-c -o', but also, the minuso test has
12400 # not run yet. These depmodes are late enough in the game, and
12401 # so weak that their functioning should not be impacted.
12402 am__obj=conftest.${OBJEXT-o}
12407 if depmode=$depmode \
12408 source=sub/conftest.c object=$am__obj \
12409 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12410 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12411 >/dev/null 2>conftest.err &&
12412 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12413 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12414 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12415 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12416 # icc doesn't choke on unknown options, it will just issue warnings
12417 # or remarks (even with -Werror). So we grep stderr for any message
12418 # that says an option was ignored or not supported.
12419 # When given -MP, icc 7.0 and 7.1 complain thusly:
12420 # icc: Command line warning: ignoring option '-M'; no argument required
12421 # The diagnosis changed in icc 8.0:
12422 # icc: Command line remark: option '-MP' not supported
12423 if (grep 'ignoring option' conftest.err ||
12424 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12425 am_cv_CC_dependencies_compiler_type=$depmode
12432 rm -rf conftest.dir
12434 am_cv_CC_dependencies_compiler_type=none
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12439 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12440 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12443 test "x$enable_dependency_tracking" != xno \
12444 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12445 am__fastdepCC_TRUE=
12446 am__fastdepCC_FALSE='#'
12448 am__fastdepCC_TRUE='#'
12449 am__fastdepCC_FALSE=
12453 if test "x$CC" != xcc; then
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12455 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12458 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12460 set dummy $CC; ac_cc=`$as_echo "$2" |
12461 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12462 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12463 $as_echo_n "(cached) " >&6
12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h. */
12476 # Make sure it works both with $CC and with simple cc.
12477 # We do the test twice because some compilers refuse to overwrite an
12478 # existing .o file with -o, though they will create one.
12479 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12481 if { { case "(($ac_try" in
12482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483 *) ac_try_echo=$ac_try;;
12485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12486 $as_echo "$ac_try_echo"; } >&5
12487 (eval "$ac_try") 2>&5
12489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12490 test $ac_status = 0; } &&
12491 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493 *) ac_try_echo=$ac_try;;
12495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12496 $as_echo "$ac_try_echo"; } >&5
12497 (eval "$ac_try") 2>&5
12499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12500 test $ac_status = 0; };
12502 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12503 if test "x$CC" != xcc; then
12504 # Test first that cc exists at all.
12505 if { ac_try='cc -c conftest.$ac_ext >&5'
12506 { { case "(($ac_try" in
12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12511 $as_echo "$ac_try_echo"; } >&5
12512 (eval "$ac_try") 2>&5
12514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12515 test $ac_status = 0; }; }; then
12516 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12518 if { { case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12523 $as_echo "$ac_try_echo"; } >&5
12524 (eval "$ac_try") 2>&5
12526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12527 test $ac_status = 0; } &&
12528 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12533 $as_echo "$ac_try_echo"; } >&5
12534 (eval "$ac_try") 2>&5
12536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12537 test $ac_status = 0; };
12542 # cc exists but doesn't like -o.
12543 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12548 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12550 rm -f core conftest*
12553 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12555 $as_echo "yes" >&6; }
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558 $as_echo "no" >&6; }
12560 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12564 # FIXME: we rely on the cache variable name because
12565 # there is no other way.
12567 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12568 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12569 if test "$am_t" != yes; then
12570 # Losing compiler, so override with the script.
12571 # FIXME: It is wrong to rewrite CC.
12572 # But if we don't then we get into trouble of one sort or another.
12573 # A longer-term fix would be to have automake use am__CC in this case,
12574 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12575 CC="$am_aux_dir/compile $CC"
12580 # option to specify python interpreter to use; this just sets $PYTHON, so that
12581 # we will fallback to reading $PYTHON if --with-python is not given, and
12582 # python.m4 will get the expected input
12584 # Check whether --with-python was given.
12585 if test "${with_python+set}" = set; then :
12586 withval=$with_python; PYTHON="$withval"
12589 if test x"$PYTHON" = xyes; then
12590 as_fn_error $? "--with-python option requires a path or program argument" "$LINENO" 5
12592 if test -n "$PYTHON" && ! which "$PYTHON"; then
12593 as_fn_error $? "Python interpreter $PYTHON does not exist" "$LINENO" 5
12596 # check that we have the minimum version of python necessary to build
12601 if test -n "$PYTHON"; then
12602 # If the user set $PYTHON, use it and don't search something else.
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.7" >&5
12604 $as_echo_n "checking whether $PYTHON version >= 2.7... " >&6; }
12606 # split strings by '.' and convert to numeric. Append some zeros
12607 # because we need at least 4 digits for the hex conversion.
12608 # map returns an iterator in Python 3.0 and a list in 2.x
12609 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
12611 # xrange is not present in Python 3.0 and range returns an iterator
12612 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12613 sys.exit(sys.hexversion < minverhex)"
12614 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12615 ($PYTHON -c "$prog") >&5 2>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; then :
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12620 $as_echo "yes" >&6; }
12622 as_fn_error $? "too old" "$LINENO" 5
12624 am_display_PYTHON=$PYTHON
12626 # Otherwise, try each interpreter until we find one that satisfies
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
12629 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
12630 if ${am_cv_pathless_PYTHON+:} false; then :
12631 $as_echo_n "(cached) " >&6
12634 for am_cv_pathless_PYTHON in python3 python3.3 python3.2 python3.1 python2 python2.7 python none; do
12635 test "$am_cv_pathless_PYTHON" = none && break
12637 # split strings by '.' and convert to numeric. Append some zeros
12638 # because we need at least 4 digits for the hex conversion.
12639 # map returns an iterator in Python 3.0 and a list in 2.x
12640 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
12642 # xrange is not present in Python 3.0 and range returns an iterator
12643 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12644 sys.exit(sys.hexversion < minverhex)"
12645 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
12646 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; then :
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
12655 $as_echo "$am_cv_pathless_PYTHON" >&6; }
12656 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
12657 if test "$am_cv_pathless_PYTHON" = none; then
12660 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
12661 set dummy $am_cv_pathless_PYTHON; ac_word=$2
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12663 $as_echo_n "checking for $ac_word... " >&6; }
12664 if ${ac_cv_path_PYTHON+:} false; then :
12665 $as_echo_n "(cached) " >&6
12669 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12673 for as_dir in $PATH
12676 test -z "$as_dir" && as_dir=.
12677 for ac_exec_ext in '' $ac_executable_extensions; do
12678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12679 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12690 PYTHON=$ac_cv_path_PYTHON
12691 if test -n "$PYTHON"; then
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12693 $as_echo "$PYTHON" >&6; }
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12696 $as_echo "no" >&6; }
12701 am_display_PYTHON=$am_cv_pathless_PYTHON
12705 if test "$PYTHON" = :; then
12706 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12711 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12712 if ${am_cv_python_version+:} false; then :
12713 $as_echo_n "(cached) " >&6
12715 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12718 $as_echo "$am_cv_python_version" >&6; }
12719 PYTHON_VERSION=$am_cv_python_version
12723 PYTHON_PREFIX='${prefix}'
12725 PYTHON_EXEC_PREFIX='${exec_prefix}'
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12730 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12731 if ${am_cv_python_platform+:} false; then :
12732 $as_echo_n "(cached) " >&6
12734 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12737 $as_echo "$am_cv_python_platform" >&6; }
12738 PYTHON_PLATFORM=$am_cv_python_platform
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12744 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12745 if ${am_cv_python_pythondir+:} false; then :
12746 $as_echo_n "(cached) " >&6
12748 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX'))" 2>/dev/null ||
12749 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12752 $as_echo "$am_cv_python_pythondir" >&6; }
12753 pythondir=$am_cv_python_pythondir
12757 pkgpythondir=\${pythondir}/$PACKAGE
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12761 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12762 if ${am_cv_python_pyexecdir+:} false; then :
12763 $as_echo_n "(cached) " >&6
12765 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX'))" 2>/dev/null ||
12766 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12769 $as_echo "$am_cv_python_pyexecdir" >&6; }
12770 pyexecdir=$am_cv_python_pyexecdir
12774 pkgpyexecdir=\${pyexecdir}/$PACKAGE
12782 # check if we are building for python 3
12784 # split strings by '.' and convert to numeric. Append some zeros
12785 # because we need at least 4 digits for the hex conversion.
12786 # map returns an iterator in Python 3.0 and a list in 2.x
12787 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
12789 # xrange is not present in Python 3.0 and range returns an iterator
12790 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12791 sys.exit(sys.hexversion < minverhex)"
12792 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12793 ($PYTHON -c "$prog") >&5 2>&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; then :
12802 # if building for python 3 make sure we have the minimum version supported
12803 if test $build_py3k = true ; then
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON >= 3.1" >&5
12805 $as_echo_n "checking for $PYTHON >= 3.1... " >&6; }
12807 # split strings by '.' and convert to numeric. Append some zeros
12808 # because we need at least 4 digits for the hex conversion.
12809 # map returns an iterator in Python 3.0 and a list in 2.x
12810 minver = list(map(int, '3.1'.split('.'))) + [0, 0, 0]
12812 # xrange is not present in Python 3.0 and range returns an iterator
12813 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12814 sys.exit(sys.hexversion < minverhex)"
12815 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12816 ($PYTHON -c "$prog") >&5 2>&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; then :
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12821 $as_echo "yes" >&6; }
12823 as_fn_error $? "too old" "$LINENO" 5
12827 # - 'SO' for PyPy, CPython 2.7-3.2
12828 # - 'EXT_SUFFIX' for CPython3.3+ (http://bugs.python.org/issue16754)
12829 # - fallback to '.so'
12830 PYTHON_SO=`$PYTHON -c "import distutils.sysconfig, sys; get = distutils.sysconfig.get_config_var; sys.stdout.write(get('EXT_SUFFIX') or get('SO') or '.so');"`
12839 # Find any Python interpreter.
12840 if test -z "$PYTHON"; then
12841 for ac_prog in python3 python3.3 python3.2 python3.1 python2 python2.7 python
12843 # Extract the first word of "$ac_prog", so it can be a program name with args.
12844 set dummy $ac_prog; ac_word=$2
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12846 $as_echo_n "checking for $ac_word... " >&6; }
12847 if ${ac_cv_path_PYTHON+:} false; then :
12848 $as_echo_n "(cached) " >&6
12852 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12856 for as_dir in $PATH
12859 test -z "$as_dir" && as_dir=.
12860 for ac_exec_ext in '' $ac_executable_extensions; do
12861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12862 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12873 PYTHON=$ac_cv_path_PYTHON
12874 if test -n "$PYTHON"; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12876 $as_echo "$PYTHON" >&6; }
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12879 $as_echo "no" >&6; }
12883 test -n "$PYTHON" && break
12885 test -n "$PYTHON" || PYTHON=":"
12888 am_display_PYTHON=python
12891 if test "$PYTHON" = :; then
12892 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12897 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12898 if ${am_cv_python_version+:} false; then :
12899 $as_echo_n "(cached) " >&6
12901 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12904 $as_echo "$am_cv_python_version" >&6; }
12905 PYTHON_VERSION=$am_cv_python_version
12909 PYTHON_PREFIX='${prefix}'
12911 PYTHON_EXEC_PREFIX='${exec_prefix}'
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12916 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12917 if ${am_cv_python_platform+:} false; then :
12918 $as_echo_n "(cached) " >&6
12920 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12923 $as_echo "$am_cv_python_platform" >&6; }
12924 PYTHON_PLATFORM=$am_cv_python_platform
12927 # Just factor out some code duplication.
12928 am_python_setup_sysconfig="\
12930 # Prefer sysconfig over distutils.sysconfig, for better compatibility
12931 # with python 3.x. See automake bug#10227.
12934 except ImportError:
12935 can_use_sysconfig = 0
12937 can_use_sysconfig = 1
12938 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
12939 # <https://github.com/pypa/virtualenv/issues/118>
12941 from platform import python_implementation
12942 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
12943 can_use_sysconfig = 0
12944 except ImportError:
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12949 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12950 if ${am_cv_python_pythondir+:} false; then :
12951 $as_echo_n "(cached) " >&6
12953 if test "x$prefix" = xNONE
12955 am_py_prefix=$ac_default_prefix
12957 am_py_prefix=$prefix
12959 am_cv_python_pythondir=`$PYTHON -c "
12960 $am_python_setup_sysconfig
12961 if can_use_sysconfig:
12962 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
12964 from distutils import sysconfig
12965 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
12966 sys.stdout.write(sitedir)"`
12967 case $am_cv_python_pythondir in
12969 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
12970 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
12973 case $am_py_prefix in
12976 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12984 $as_echo "$am_cv_python_pythondir" >&6; }
12985 pythondir=$am_cv_python_pythondir
12989 pkgpythondir=\${pythondir}/$PACKAGE
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12993 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12994 if ${am_cv_python_pyexecdir+:} false; then :
12995 $as_echo_n "(cached) " >&6
12997 if test "x$exec_prefix" = xNONE
12999 am_py_exec_prefix=$am_py_prefix
13001 am_py_exec_prefix=$exec_prefix
13003 am_cv_python_pyexecdir=`$PYTHON -c "
13004 $am_python_setup_sysconfig
13005 if can_use_sysconfig:
13006 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
13008 from distutils import sysconfig
13009 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
13010 sys.stdout.write(sitedir)"`
13011 case $am_cv_python_pyexecdir in
13012 $am_py_exec_prefix*)
13013 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
13014 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
13017 case $am_py_exec_prefix in
13020 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13028 $as_echo "$am_cv_python_pyexecdir" >&6; }
13029 pyexecdir=$am_cv_python_pyexecdir
13033 pkgpyexecdir=\${pyexecdir}/$PACKAGE
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
13042 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
13043 if test "x$PYTHON_INCLUDES" = x; then
13044 PYTHON_CONFIG=`which $PYTHON`-config
13045 if test -x "$PYTHON_CONFIG"; then
13046 PYTHON_INCLUDES=`$PYTHON_CONFIG --includes 2>/dev/null`
13048 PYTHON_INCLUDES=`$PYTHON -c "import distutils.sysconfig, sys; sys.stdout.write(distutils.sysconfig.get_python_inc(True))"`
13049 PYTHON_INCLUDES="-I$PYTHON_INCLUDES"
13053 save_CPPFLAGS="$CPPFLAGS"
13054 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056 /* end confdefs.h. */
13057 #include <Python.h>
13059 if ac_fn_c_try_cpp "$LINENO"; then :
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13061 $as_echo "found" >&6; }
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13065 $as_echo "not found" >&6; }
13066 as_fn_error $? "Python headers not found" "$LINENO" 5
13068 rm -f conftest.err conftest.i conftest.$ac_ext
13069 CPPFLAGS="$save_CPPFLAGS"
13071 if test "x$os_win32" = "xyes"; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to embed python" >&5
13074 $as_echo_n "checking for libraries required to embed python... " >&6; }
13075 py_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
13076 if test "x$PYTHON_LIBS" = x; then
13077 PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
13079 if test "x$PYTHON_LIB_LOC" = x; then
13080 PYTHON_LIB_LOC="${py_prefix}/lib"
13085 LIBS="$LIBS $PYTHON_LIBS"
13086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087 /* end confdefs.h. */
13089 /* Override any GCC internal prototype to avoid an error.
13090 Use char because int might match the return type of a GCC
13091 builtin and then its argument prototype would still apply. */
13095 char Py_Initialize ();
13099 return Py_Initialize ();
13104 if ac_fn_c_try_link "$LINENO"; then :
13105 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13106 $as_echo "yes" >&6; };
13108 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13109 $as_echo "no" >&6; }; as_fn_error $? "Python libs not found. Windows requires Python modules to be explicitly linked to libpython." "$LINENO" 5
13111 rm -f core conftest.err conftest.$ac_objext \
13112 conftest$ac_exeext conftest.$ac_ext
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PySignal_SetWakeupFd in Python.h" >&5
13118 $as_echo_n "checking for PySignal_SetWakeupFd in Python.h... " >&6; }
13119 old_CPPFLAGS=$CPPFLAGS
13120 CPPFLAGS="-Wall -Werror $PYTHON_INCLUDES"
13121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122 /* end confdefs.h. */
13123 #include <Python.h>
13127 PySignal_SetWakeupFd(0);
13132 if ac_fn_c_try_compile "$LINENO"; then :
13137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $setwakeupfd_ok" >&5
13139 $as_echo "$setwakeupfd_ok" >&6; }
13140 if test "x$setwakeupfd_ok" != xno; then
13142 $as_echo "#define HAVE_PYSIGNAL_SETWAKEUPFD 1" >>confdefs.h
13145 CPPFLAGS=$old_CPPFLAGS
13147 PLATFORM=`$PYTHON -c "import sys; from distutils import util; sys.stdout.write(util.get_platform())"`
13150 # Check whether --enable-thread was given.
13151 if test "${enable_thread+set}" = set; then :
13152 enableval=$enable_thread;
13159 py_mod_var=`echo thread'_' | sed 'y%./+-%__p_%'`
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module thread" >&5
13161 $as_echo_n "checking for python module thread... " >&6; }
13162 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13163 $as_echo_n "(cached) " >&6
13170 except ImportError:
13175 if $PYTHON -c "$prog" 1>&5 2>&5
13177 eval "py_cv_mod_$py_mod_var=yes"
13179 eval "py_cv_mod_$py_mod_var=no"
13184 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13185 if test "x$py_val" != xno; then
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13187 $as_echo "yes" >&6; }
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190 $as_echo "no" >&6; }
13191 enable_thread=check_for_py3_module
13194 if test "x$enable_thread" = xcheck_for_py3_module; then
13196 py_mod_var=`echo _thread'_' | sed 'y%./+-%__p_%'`
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module _thread" >&5
13198 $as_echo_n "checking for python module _thread... " >&6; }
13199 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13200 $as_echo_n "(cached) " >&6
13207 except ImportError:
13212 if $PYTHON -c "$prog" 1>&5 2>&5
13214 eval "py_cv_mod_$py_mod_var=yes"
13216 eval "py_cv_mod_$py_mod_var=no"
13221 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13222 if test "x$py_val" != xno; then
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13224 $as_echo "yes" >&6; }
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228 $as_echo "no" >&6; }
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable threading in pygobject" >&5
13235 $as_echo_n "checking whether to enable threading in pygobject... " >&6; }
13236 if test "x$enable_thread" != xno; then
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13240 $as_echo "yes" >&6; }
13243 THREADING_CFLAGS="-DDISABLE_THREADING"
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13245 $as_echo "no" >&6; }
13248 CPPFLAGS="${CPPFLAGS} $THREADING_CFLAGS"
13250 export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
13252 # Check whether --enable-glibtest was given.
13253 if test "${enable_glibtest+set}" = set; then :
13254 enableval=$enable_glibtest;
13256 enable_glibtest=yes
13260 pkg_config_args=glib-2.0
13261 for module in . gobject $extra_mods
13265 pkg_config_args="$pkg_config_args gmodule-2.0"
13268 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
13271 pkg_config_args="$pkg_config_args gobject-2.0"
13274 pkg_config_args="$pkg_config_args gthread-2.0"
13277 pkg_config_args="$pkg_config_args $module-2.0"
13289 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13290 if test -n "$ac_tool_prefix"; then
13291 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13292 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13294 $as_echo_n "checking for $ac_word... " >&6; }
13295 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13296 $as_echo_n "(cached) " >&6
13298 case $PKG_CONFIG in
13300 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13304 for as_dir in $PATH
13307 test -z "$as_dir" && as_dir=.
13308 for ac_exec_ext in '' $ac_executable_extensions; do
13309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13310 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13322 if test -n "$PKG_CONFIG"; then
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13324 $as_echo "$PKG_CONFIG" >&6; }
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327 $as_echo "no" >&6; }
13332 if test -z "$ac_cv_path_PKG_CONFIG"; then
13333 ac_pt_PKG_CONFIG=$PKG_CONFIG
13334 # Extract the first word of "pkg-config", so it can be a program name with args.
13335 set dummy pkg-config; ac_word=$2
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13337 $as_echo_n "checking for $ac_word... " >&6; }
13338 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13339 $as_echo_n "(cached) " >&6
13341 case $ac_pt_PKG_CONFIG in
13343 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13347 for as_dir in $PATH
13350 test -z "$as_dir" && as_dir=.
13351 for ac_exec_ext in '' $ac_executable_extensions; do
13352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13353 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13364 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13365 if test -n "$ac_pt_PKG_CONFIG"; then
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13367 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370 $as_echo "no" >&6; }
13373 if test "x$ac_pt_PKG_CONFIG" = x; then
13376 case $cross_compiling:$ac_tool_warned in
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13380 ac_tool_warned=yes ;;
13382 PKG_CONFIG=$ac_pt_PKG_CONFIG
13385 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13389 if test -n "$PKG_CONFIG"; then
13390 _pkg_min_version=0.16
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13392 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13393 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13395 $as_echo "yes" >&6; }
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13398 $as_echo "no" >&6; }
13405 if test "x$PKG_CONFIG" = x ; then
13410 min_glib_version=2.38.0
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
13412 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
13414 if test x$PKG_CONFIG != xno ; then
13415 ## don't try to run the test against uninstalled libtool libs
13416 if $PKG_CONFIG --uninstalled $pkg_config_args; then
13417 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
13421 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
13428 if test x"$no_glib" = x ; then
13429 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
13430 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
13431 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
13432 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
13434 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13435 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13436 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
13437 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13438 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
13439 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13440 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
13441 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13442 if test "x$enable_glibtest" = "xyes" ; then
13443 ac_save_CFLAGS="$CFLAGS"
13444 ac_save_LIBS="$LIBS"
13445 CFLAGS="$CFLAGS $GLIB_CFLAGS"
13446 LIBS="$GLIB_LIBS $LIBS"
13447 rm -f conf.glibtest
13448 if test "$cross_compiling" = yes; then :
13449 echo $ac_n "cross compiling; assumed OK... $ac_c"
13451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13452 /* end confdefs.h. */
13456 #include <stdlib.h>
13461 unsigned int major, minor, micro;
13463 fclose (fopen ("conf.glibtest", "w"));
13465 if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, µ) != 3) {
13466 printf("%s, bad version string\n", "$min_glib_version");
13470 if ((glib_major_version != $glib_config_major_version) ||
13471 (glib_minor_version != $glib_config_minor_version) ||
13472 (glib_micro_version != $glib_config_micro_version))
13474 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
13475 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
13476 glib_major_version, glib_minor_version, glib_micro_version);
13477 printf ("*** was found! If pkg-config was correct, then it is best\n");
13478 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
13479 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13480 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13481 printf("*** required on your system.\n");
13482 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
13483 printf("*** to point to the correct configuration files\n");
13485 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
13486 (glib_minor_version != GLIB_MINOR_VERSION) ||
13487 (glib_micro_version != GLIB_MICRO_VERSION))
13489 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
13490 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
13491 printf("*** library (version %d.%d.%d)\n",
13492 glib_major_version, glib_minor_version, glib_micro_version);
13496 if ((glib_major_version > major) ||
13497 ((glib_major_version == major) && (glib_minor_version > minor)) ||
13498 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
13504 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
13505 glib_major_version, glib_minor_version, glib_micro_version);
13506 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
13507 major, minor, micro);
13508 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
13510 printf("*** If you have already installed a sufficiently new version, this error\n");
13511 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
13512 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13513 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
13514 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
13515 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13516 printf("*** so that the correct libraries are found at run-time))\n");
13523 if ac_fn_c_try_run "$LINENO"; then :
13528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13529 conftest.$ac_objext conftest.beam conftest.$ac_ext
13532 CFLAGS="$ac_save_CFLAGS"
13533 LIBS="$ac_save_LIBS"
13536 if test "x$no_glib" = x ; then
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
13538 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13542 $as_echo "no" >&6; }
13543 if test "$PKG_CONFIG" = "no" ; then
13544 echo "*** A new enough version of pkg-config was not found."
13545 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
13547 if test -f conf.glibtest ; then
13550 echo "*** Could not run GLIB test program, checking why..."
13551 ac_save_CFLAGS="$CFLAGS"
13552 ac_save_LIBS="$LIBS"
13553 CFLAGS="$CFLAGS $GLIB_CFLAGS"
13554 LIBS="$LIBS $GLIB_LIBS"
13555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h. */
13564 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
13569 if ac_fn_c_try_link "$LINENO"; then :
13570 echo "*** The test program compiled, but did not run. This usually means"
13571 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
13572 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
13573 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13574 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13575 echo "*** is required on your system"
13577 echo "*** If you have an old version installed, it is best to remove it, although"
13578 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13580 echo "*** The test program failed to compile or link. See the file config.log for the"
13581 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
13583 rm -f core conftest.err conftest.$ac_objext \
13584 conftest$ac_exeext conftest.$ac_ext
13585 CFLAGS="$ac_save_CFLAGS"
13586 LIBS="$ac_save_LIBS"
13594 GLIB_COMPILE_RESOURCES=""
13595 as_fn_error $? "maybe you want the pygobject-2-4 branch?" "$LINENO" 5
13603 rm -f conf.glibtest
13605 if test -n "$export_dynamic"; then
13606 GLIB_LIBS=`echo $GLIB_LIBS | sed -e "s/$export_dynamic//"`
13608 PYTHON_BASENAME=`basename $PYTHON`
13615 prefix_save=$prefix
13616 exec_prefix_save=$exec_prefix
13618 if test "x$prefix" = "xNONE"; then
13619 prefix=$ac_default_prefix
13621 if test "x$exec_prefix" = "xNONE"; then
13622 exec_prefix=$prefix
13625 full_var="$FROM_VAR"
13627 new_full_var="`eval echo $full_var`"
13628 if test "x$new_full_var"="x$full_var"; then break; fi
13629 full_var=$new_full_var
13632 full_var=$new_full_var
13633 DATADIR="$full_var"
13636 prefix=$prefix_save
13637 exec_prefix=$exec_prefix_save
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
13643 $as_echo_n "checking for FFI... " >&6; }
13645 if test -n "$FFI_CFLAGS"; then
13646 pkg_cv_FFI_CFLAGS="$FFI_CFLAGS"
13647 elif test -n "$PKG_CONFIG"; then
13648 if test -n "$PKG_CONFIG" && \
13649 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
13650 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
13652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13653 test $ac_status = 0; }; then
13654 pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0" 2>/dev/null`
13655 test "x$?" != "x0" && pkg_failed=yes
13662 if test -n "$FFI_LIBS"; then
13663 pkg_cv_FFI_LIBS="$FFI_LIBS"
13664 elif test -n "$PKG_CONFIG"; then
13665 if test -n "$PKG_CONFIG" && \
13666 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
13667 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
13669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13670 test $ac_status = 0; }; then
13671 pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0" 2>/dev/null`
13672 test "x$?" != "x0" && pkg_failed=yes
13682 if test $pkg_failed = yes; then
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13684 $as_echo "no" >&6; }
13686 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13687 _pkg_short_errors_supported=yes
13689 _pkg_short_errors_supported=no
13691 if test $_pkg_short_errors_supported = yes; then
13692 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13694 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13696 # Put the nasty error message in config.log where it belongs
13697 echo "$FFI_PKG_ERRORS" >&5
13699 as_fn_error $? "Package requirements (libffi >= 3.0) were not met:
13703 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13704 installed software in a non-standard prefix.
13706 Alternatively, you may set the environment variables FFI_CFLAGS
13707 and FFI_LIBS to avoid the need to call pkg-config.
13708 See the pkg-config man page for more details." "$LINENO" 5
13709 elif test $pkg_failed = untried; then
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13711 $as_echo "no" >&6; }
13712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13714 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13715 is in your PATH or set the PKG_CONFIG environment variable to the full
13716 path to pkg-config.
13718 Alternatively, you may set the environment variables FFI_CFLAGS
13719 and FFI_LIBS to avoid the need to call pkg-config.
13720 See the pkg-config man page for more details.
13722 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13723 See \`config.log' for more details" "$LINENO" 5; }
13725 FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
13726 FFI_LIBS=$pkg_cv_FFI_LIBS
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13728 $as_echo "yes" >&6; }
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
13740 $as_echo_n "checking for GIO... " >&6; }
13742 if test -n "$GIO_CFLAGS"; then
13743 pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
13744 elif test -n "$PKG_CONFIG"; then
13745 if test -n "$PKG_CONFIG" && \
13746 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.38.0\""; } >&5
13747 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.38.0") 2>&5
13749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13750 test $ac_status = 0; }; then
13751 pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.38.0" 2>/dev/null`
13752 test "x$?" != "x0" && pkg_failed=yes
13759 if test -n "$GIO_LIBS"; then
13760 pkg_cv_GIO_LIBS="$GIO_LIBS"
13761 elif test -n "$PKG_CONFIG"; then
13762 if test -n "$PKG_CONFIG" && \
13763 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.38.0\""; } >&5
13764 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.38.0") 2>&5
13766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13767 test $ac_status = 0; }; then
13768 pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.38.0" 2>/dev/null`
13769 test "x$?" != "x0" && pkg_failed=yes
13779 if test $pkg_failed = yes; then
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13781 $as_echo "no" >&6; }
13783 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13784 _pkg_short_errors_supported=yes
13786 _pkg_short_errors_supported=no
13788 if test $_pkg_short_errors_supported = yes; then
13789 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.38.0" 2>&1`
13791 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.38.0" 2>&1`
13793 # Put the nasty error message in config.log where it belongs
13794 echo "$GIO_PKG_ERRORS" >&5
13796 as_fn_error $? "Package requirements (gio-2.0 >= 2.38.0) were not met:
13800 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13801 installed software in a non-standard prefix.
13803 Alternatively, you may set the environment variables GIO_CFLAGS
13804 and GIO_LIBS to avoid the need to call pkg-config.
13805 See the pkg-config man page for more details." "$LINENO" 5
13806 elif test $pkg_failed = untried; then
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13808 $as_echo "no" >&6; }
13809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13811 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13812 is in your PATH or set the PKG_CONFIG environment variable to the full
13813 path to pkg-config.
13815 Alternatively, you may set the environment variables GIO_CFLAGS
13816 and GIO_LIBS to avoid the need to call pkg-config.
13817 See the pkg-config man page for more details.
13819 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13820 See \`config.log' for more details" "$LINENO" 5; }
13822 GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
13823 GIO_LIBS=$pkg_cv_GIO_LIBS
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13825 $as_echo "yes" >&6; }
13829 # Check whether --enable-cairo was given.
13830 if test "${enable_cairo+set}" = set; then :
13831 enableval=$enable_cairo; enable_cairo=$enableval
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GI" >&5
13840 $as_echo_n "checking for GI... " >&6; }
13842 if test -n "$GI_CFLAGS"; then
13843 pkg_cv_GI_CFLAGS="$GI_CFLAGS"
13844 elif test -n "$PKG_CONFIG"; then
13845 if test -n "$PKG_CONFIG" && \
13846 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.38.0
13847 gobject-introspection-1.0 >= 1.39.0
13849 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0
13850 gobject-introspection-1.0 >= 1.39.0
13853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13854 test $ac_status = 0; }; then
13855 pkg_cv_GI_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.38.0
13856 gobject-introspection-1.0 >= 1.39.0
13858 test "x$?" != "x0" && pkg_failed=yes
13865 if test -n "$GI_LIBS"; then
13866 pkg_cv_GI_LIBS="$GI_LIBS"
13867 elif test -n "$PKG_CONFIG"; then
13868 if test -n "$PKG_CONFIG" && \
13869 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.38.0
13870 gobject-introspection-1.0 >= 1.39.0
13872 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0
13873 gobject-introspection-1.0 >= 1.39.0
13876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13877 test $ac_status = 0; }; then
13878 pkg_cv_GI_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.38.0
13879 gobject-introspection-1.0 >= 1.39.0
13881 test "x$?" != "x0" && pkg_failed=yes
13891 if test $pkg_failed = yes; then
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13893 $as_echo "no" >&6; }
13895 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13896 _pkg_short_errors_supported=yes
13898 _pkg_short_errors_supported=no
13900 if test $_pkg_short_errors_supported = yes; then
13901 GI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.38.0
13902 gobject-introspection-1.0 >= 1.39.0
13905 GI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.38.0
13906 gobject-introspection-1.0 >= 1.39.0
13909 # Put the nasty error message in config.log where it belongs
13910 echo "$GI_PKG_ERRORS" >&5
13912 as_fn_error $? "Package requirements (glib-2.0 >= 2.38.0
13913 gobject-introspection-1.0 >= 1.39.0
13918 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13919 installed software in a non-standard prefix.
13921 Alternatively, you may set the environment variables GI_CFLAGS
13922 and GI_LIBS to avoid the need to call pkg-config.
13923 See the pkg-config man page for more details." "$LINENO" 5
13924 elif test $pkg_failed = untried; then
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13926 $as_echo "no" >&6; }
13927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13929 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13930 is in your PATH or set the PKG_CONFIG environment variable to the full
13931 path to pkg-config.
13933 Alternatively, you may set the environment variables GI_CFLAGS
13934 and GI_LIBS to avoid the need to call pkg-config.
13935 See the pkg-config man page for more details.
13937 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13938 See \`config.log' for more details" "$LINENO" 5; }
13940 GI_CFLAGS=$pkg_cv_GI_CFLAGS
13941 GI_LIBS=$pkg_cv_GI_LIBS
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13943 $as_echo "yes" >&6; }
13947 GI_DATADIR=$($PKG_CONFIG --variable=gidatadir gobject-introspection-1.0)
13950 if test "$enable_cairo" != no; then
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
13954 $as_echo_n "checking for CAIRO... " >&6; }
13956 if test -n "$CAIRO_CFLAGS"; then
13957 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
13958 elif test -n "$PKG_CONFIG"; then
13959 if test -n "$PKG_CONFIG" && \
13960 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13961 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13964 test $ac_status = 0; }; then
13965 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo cairo-gobject" 2>/dev/null`
13966 test "x$?" != "x0" && pkg_failed=yes
13973 if test -n "$CAIRO_LIBS"; then
13974 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
13975 elif test -n "$PKG_CONFIG"; then
13976 if test -n "$PKG_CONFIG" && \
13977 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13978 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13981 test $ac_status = 0; }; then
13982 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo cairo-gobject" 2>/dev/null`
13983 test "x$?" != "x0" && pkg_failed=yes
13993 if test $pkg_failed = yes; then
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13995 $as_echo "no" >&6; }
13997 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13998 _pkg_short_errors_supported=yes
14000 _pkg_short_errors_supported=no
14002 if test $_pkg_short_errors_supported = yes; then
14003 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14005 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14007 # Put the nasty error message in config.log where it belongs
14008 echo "$CAIRO_PKG_ERRORS" >&5
14010 as_fn_error $? "Package requirements (cairo cairo-gobject) were not met:
14014 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14015 installed software in a non-standard prefix.
14017 Alternatively, you may set the environment variables CAIRO_CFLAGS
14018 and CAIRO_LIBS to avoid the need to call pkg-config.
14019 See the pkg-config man page for more details." "$LINENO" 5
14020 elif test $pkg_failed = untried; then
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022 $as_echo "no" >&6; }
14023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14025 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14026 is in your PATH or set the PKG_CONFIG environment variable to the full
14027 path to pkg-config.
14029 Alternatively, you may set the environment variables CAIRO_CFLAGS
14030 and CAIRO_LIBS to avoid the need to call pkg-config.
14031 See the pkg-config man page for more details.
14033 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14034 See \`config.log' for more details" "$LINENO" 5; }
14036 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
14037 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14039 $as_echo "yes" >&6; }
14043 if test $build_py3k = true; then
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14047 $as_echo_n "checking for PYCAIRO... " >&6; }
14049 if test -n "$PYCAIRO_CFLAGS"; then
14050 pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14051 elif test -n "$PKG_CONFIG"; then
14052 if test -n "$PKG_CONFIG" && \
14053 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14055 ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14059 test $ac_status = 0; }; then
14060 pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "py3cairo >= 1.10.0
14062 test "x$?" != "x0" && pkg_failed=yes
14069 if test -n "$PYCAIRO_LIBS"; then
14070 pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14071 elif test -n "$PKG_CONFIG"; then
14072 if test -n "$PKG_CONFIG" && \
14073 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14075 ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14079 test $ac_status = 0; }; then
14080 pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "py3cairo >= 1.10.0
14082 test "x$?" != "x0" && pkg_failed=yes
14092 if test $pkg_failed = yes; then
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14094 $as_echo "no" >&6; }
14096 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14097 _pkg_short_errors_supported=yes
14099 _pkg_short_errors_supported=no
14101 if test $_pkg_short_errors_supported = yes; then
14102 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "py3cairo >= 1.10.0
14105 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "py3cairo >= 1.10.0
14108 # Put the nasty error message in config.log where it belongs
14109 echo "$PYCAIRO_PKG_ERRORS" >&5
14111 as_fn_error $? "Package requirements (py3cairo >= 1.10.0
14114 $PYCAIRO_PKG_ERRORS
14116 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14117 installed software in a non-standard prefix.
14119 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14120 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14121 See the pkg-config man page for more details." "$LINENO" 5
14122 elif test $pkg_failed = untried; then
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14124 $as_echo "no" >&6; }
14125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14127 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14128 is in your PATH or set the PKG_CONFIG environment variable to the full
14129 path to pkg-config.
14131 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14132 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14133 See the pkg-config man page for more details.
14135 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14136 See \`config.log' for more details" "$LINENO" 5; }
14138 PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14139 PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14141 $as_echo "yes" >&6; }
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14148 $as_echo_n "checking for PYCAIRO... " >&6; }
14150 if test -n "$PYCAIRO_CFLAGS"; then
14151 pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14152 elif test -n "$PKG_CONFIG"; then
14153 if test -n "$PKG_CONFIG" && \
14154 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14156 ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14160 test $ac_status = 0; }; then
14161 pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "pycairo >= 1.2.0
14163 test "x$?" != "x0" && pkg_failed=yes
14170 if test -n "$PYCAIRO_LIBS"; then
14171 pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14172 elif test -n "$PKG_CONFIG"; then
14173 if test -n "$PKG_CONFIG" && \
14174 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14176 ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14180 test $ac_status = 0; }; then
14181 pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "pycairo >= 1.2.0
14183 test "x$?" != "x0" && pkg_failed=yes
14193 if test $pkg_failed = yes; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14195 $as_echo "no" >&6; }
14197 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14198 _pkg_short_errors_supported=yes
14200 _pkg_short_errors_supported=no
14202 if test $_pkg_short_errors_supported = yes; then
14203 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pycairo >= 1.2.0
14206 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pycairo >= 1.2.0
14209 # Put the nasty error message in config.log where it belongs
14210 echo "$PYCAIRO_PKG_ERRORS" >&5
14212 as_fn_error $? "Package requirements (pycairo >= 1.2.0
14215 $PYCAIRO_PKG_ERRORS
14217 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14218 installed software in a non-standard prefix.
14220 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14221 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14222 See the pkg-config man page for more details." "$LINENO" 5
14223 elif test $pkg_failed = untried; then
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14225 $as_echo "no" >&6; }
14226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14228 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14229 is in your PATH or set the PKG_CONFIG environment variable to the full
14230 path to pkg-config.
14232 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14233 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14234 See the pkg-config man page for more details.
14236 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14237 See \`config.log' for more details" "$LINENO" 5; }
14239 PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14240 PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14242 $as_echo "yes" >&6; }
14247 if test "$enable_cairo" = "yes"; then
14249 ENABLE_CAIRO_FALSE='#'
14251 ENABLE_CAIRO_TRUE='#'
14252 ENABLE_CAIRO_FALSE=
14257 # Check whether --with-common was given.
14258 if test "${with_common+set}" = set; then :
14259 withval=$with_common; with_common=$enableval
14264 if test "$with_common" = "yes"; then
14266 WITH_COMMON_FALSE='#'
14268 WITH_COMMON_TRUE='#'
14273 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14274 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14279 # compiler warnings, errors, required cflags, and code coverage support
14282 # Check whether --enable-compile-warnings was given.
14283 if test "${enable_compile_warnings+set}" = set; then :
14284 enableval=$enable_compile_warnings;
14286 enable_compile_warnings="maximum"
14290 if test "x$GCC" != xyes; then
14291 enable_compile_warnings=no
14295 realsave_CFLAGS="$CFLAGS"
14297 base_warn_flags=" \
14299 -Wstrict-prototypes \
14303 base_error_flags=" \
14304 -Werror=missing-prototypes \
14305 -Werror=implicit-function-declaration \
14306 -Werror=pointer-arith \
14307 -Werror=init-self \
14308 -Werror=format-security \
14310 -Werror=missing-include-dirs \
14313 additional_flags=""
14315 case "$enable_compile_warnings" in
14320 warning_flags="-Wall"
14323 warning_flags="$base_warn_flags $base_error_flags $additional_flags"
14326 as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5
14330 if test "$enable_compile_warnings" = "error" ; then
14331 warning_flags="$warning_flags -Werror"
14334 for option in $warning_flags; do
14335 save_CFLAGS="$CFLAGS"
14336 CFLAGS="$CFLAGS $option"
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5
14338 $as_echo_n "checking whether gcc understands $option... " >&6; }
14339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14340 /* end confdefs.h. */
14350 if ac_fn_c_try_compile "$LINENO"; then :
14355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14356 CFLAGS="$save_CFLAGS"
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
14358 $as_echo "$has_option" >&6; }
14359 if test $has_option = yes; then
14360 tested_warning_flags="$tested_warning_flags $option"
14366 CFLAGS="$realsave_CFLAGS"
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
14368 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tested_warning_flags" >&5
14370 $as_echo "$tested_warning_flags" >&6; }
14372 # Check whether --enable-iso-c was given.
14373 if test "${enable_iso_c+set}" = set; then :
14374 enableval=$enable_iso_c;
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what language compliance flags to pass to the C compiler" >&5
14381 $as_echo_n "checking what language compliance flags to pass to the C compiler... " >&6; }
14383 if test "x$enable_iso_c" != "xno"; then
14384 if test "x$GCC" = "xyes"; then
14385 case " $CFLAGS " in
14386 *\ \ -ansi\ \ *) ;;
14387 *) complCFLAGS="$complCFLAGS -ansi" ;;
14389 case " $CFLAGS " in
14390 *\ \ -pedantic\ \ *) ;;
14391 *) complCFLAGS="$complCFLAGS -pedantic" ;;
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $complCFLAGS" >&5
14396 $as_echo "$complCFLAGS" >&6; }
14398 WARN_CFLAGS="$tested_warning_flags $complCFLAGS"
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gnome code coverage support" >&5
14402 $as_echo_n "checking for Gnome code coverage support... " >&6; }
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14404 $as_echo "yes" >&6; }
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
14407 $as_echo_n "checking whether to build with code coverage support... " >&6; }
14408 # Check whether --enable-code-coverage was given.
14409 if test "${enable_code_coverage+set}" = set; then :
14410 enableval=$enable_code_coverage;
14412 enable_code_coverage=no
14415 if test x$enable_code_coverage = xyes; then
14416 CODE_COVERAGE_ENABLED_TRUE=
14417 CODE_COVERAGE_ENABLED_FALSE='#'
14419 CODE_COVERAGE_ENABLED_TRUE='#'
14420 CODE_COVERAGE_ENABLED_FALSE=
14423 CODE_COVERAGE_ENABLED=$enable_code_coverage
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
14426 $as_echo "$enable_code_coverage" >&6; }
14428 if test "$enable_code_coverage" = "yes" ; then :
14430 if test "$GCC" = "no" ; then :
14432 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
14436 # List of supported lcov versions.
14437 lcov_version_list="1.6 1.7 1.8 1.9 1.10"
14439 # Extract the first word of "lcov", so it can be a program name with args.
14440 set dummy lcov; ac_word=$2
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14442 $as_echo_n "checking for $ac_word... " >&6; }
14443 if ${ac_cv_prog_LCOV+:} false; then :
14444 $as_echo_n "(cached) " >&6
14446 if test -n "$LCOV"; then
14447 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
14449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14450 for as_dir in $PATH
14453 test -z "$as_dir" && as_dir=.
14454 for ac_exec_ext in '' $ac_executable_extensions; do
14455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14456 ac_cv_prog_LCOV="lcov"
14457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14466 LCOV=$ac_cv_prog_LCOV
14467 if test -n "$LCOV"; then
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
14469 $as_echo "$LCOV" >&6; }
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14472 $as_echo "no" >&6; }
14476 # Extract the first word of "genhtml", so it can be a program name with args.
14477 set dummy genhtml; ac_word=$2
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14479 $as_echo_n "checking for $ac_word... " >&6; }
14480 if ${ac_cv_prog_GENHTML+:} false; then :
14481 $as_echo_n "(cached) " >&6
14483 if test -n "$GENHTML"; then
14484 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
14486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14487 for as_dir in $PATH
14490 test -z "$as_dir" && as_dir=.
14491 for ac_exec_ext in '' $ac_executable_extensions; do
14492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14493 ac_cv_prog_GENHTML="genhtml"
14494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14503 GENHTML=$ac_cv_prog_GENHTML
14504 if test -n "$GENHTML"; then
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
14506 $as_echo "$GENHTML" >&6; }
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14509 $as_echo "no" >&6; }
14514 if test "$LCOV" ; then :
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
14517 $as_echo_n "checking for lcov version... " >&6; }
14518 if ${gnome_cv_lcov_version+:} false; then :
14519 $as_echo_n "(cached) " >&6
14522 gnome_cv_lcov_version=invalid
14523 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
14524 for lcov_check_version in $lcov_version_list; do
14525 if test "$lcov_version" = "$lcov_check_version"; then
14526 gnome_cv_lcov_version="$lcov_check_version (ok)"
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnome_cv_lcov_version" >&5
14532 $as_echo "$gnome_cv_lcov_version" >&6; }
14536 lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
14537 as_fn_error $? "$lcov_msg" "$LINENO" 5
14541 case $gnome_cv_lcov_version in
14543 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
14544 as_fn_error $? "$lcov_msg" "$LINENO" 5
14549 if test -z "$GENHTML" ; then :
14551 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
14555 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
14556 CODE_COVERAGE_LDFLAGS="-lgcov"
14563 GNOME_CODE_COVERAGE_RULES='
14567 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
14568 # (Default: $(top_builddir))
14569 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
14570 # by lcov for code coverage. (Default:
14571 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
14572 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
14573 # reports to be created. (Default:
14574 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
14575 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
14577 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
14578 # instance. (Default: empty)
14579 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
14581 # The generated report will be titled using the $(PACKAGE_NAME) and
14582 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
14583 # use the git-version-gen script, available online.
14585 # Optional variables
14586 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
14587 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
14588 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
14589 CODE_COVERAGE_LCOV_OPTIONS ?=
14590 CODE_COVERAGE_GENHTML_OPTIONS ?=
14591 CODE_COVERAGE_IGNORE_PATTERN ?=
14593 code_coverage_quiet = $(code_coverage_quiet_$(V))
14594 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
14595 code_coverage_quiet_0 = --quiet
14597 # Use recursive makes in order to ignore errors during check
14598 check-code-coverage:
14599 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14600 -$(MAKE) $(AM_MAKEFLAGS) -k check
14601 $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
14603 @echo "Need to reconfigure with --enable-code-coverage"
14606 # Capture code coverage data
14607 code-coverage-capture: code-coverage-capture-hook
14608 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14609 $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_OPTIONS)
14610 $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)"
14611 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
14612 LANG=C $(GENHTML) $(code_coverage_quiet) --prefix $(CODE_COVERAGE_DIRECTORY) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
14613 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
14615 @echo "Need to reconfigure with --enable-code-coverage"
14618 # Hook rule executed before code-coverage-capture, overridable by the user
14619 code-coverage-capture-hook:
14621 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14622 clean: code-coverage-clean
14623 code-coverage-clean:
14624 -$(LCOV) --directory $(top_builddir) -z
14625 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14626 -find . -name "*.gcda" -o -name "*.gcov" -delete
14630 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14632 DISTCHECK_CONFIGURE_FLAGS ?=
14633 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
14635 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
14642 if test "x$GCC" = "xyes"; then
14644 case " $CFLAGS " in
14645 *[\ \ ]-Wall[\ \ ]*)
14648 save_CFLAGS="$CFLAGS"
14649 CFLAGS="$CFLAGS -Wall"
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Wall" >&5
14651 $as_echo_n "checking whether $CC understands -Wall... " >&6; }
14652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14653 /* end confdefs.h. */
14663 if ac_fn_c_try_compile "$LINENO"; then :
14668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14670 $as_echo "$jh_has_option" >&6; }
14671 if test $jh_has_option = no; then
14672 CFLAGS="$save_CFLAGS"
14677 case " $CFLAGS " in
14678 *[\ \ ]-Werror=unused-variable[\ \ ]*)
14681 save_CFLAGS="$CFLAGS"
14682 CFLAGS="$CFLAGS -Werror=unused-variable"
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=unused-variable" >&5
14684 $as_echo_n "checking whether $CC understands -Werror=unused-variable... " >&6; }
14685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14686 /* end confdefs.h. */
14696 if ac_fn_c_try_compile "$LINENO"; then :
14701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14703 $as_echo "$jh_has_option" >&6; }
14704 if test $jh_has_option = no; then
14705 CFLAGS="$save_CFLAGS"
14710 case " $CFLAGS " in
14711 *[\ \ ]-fno-strict-aliasing[\ \ ]*)
14714 save_CFLAGS="$CFLAGS"
14715 CFLAGS="$CFLAGS -fno-strict-aliasing"
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -fno-strict-aliasing" >&5
14717 $as_echo_n "checking whether $CC understands -fno-strict-aliasing... " >&6; }
14718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14719 /* end confdefs.h. */
14729 if ac_fn_c_try_compile "$LINENO"; then :
14734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14736 $as_echo "$jh_has_option" >&6; }
14737 if test $jh_has_option = no; then
14738 CFLAGS="$save_CFLAGS"
14743 case " $CFLAGS " in
14744 *[\ \ ]-Werror=declaration-after-statement[\ \ ]*)
14747 save_CFLAGS="$CFLAGS"
14748 CFLAGS="$CFLAGS -Werror=declaration-after-statement"
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=declaration-after-statement" >&5
14750 $as_echo_n "checking whether $CC understands -Werror=declaration-after-statement... " >&6; }
14751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14752 /* end confdefs.h. */
14762 if ac_fn_c_try_compile "$LINENO"; then :
14767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14769 $as_echo "$jh_has_option" >&6; }
14770 if test $jh_has_option = no; then
14771 CFLAGS="$save_CFLAGS"
14781 case " $CFLAGS " in
14782 *[\ \ ]-std=c90[\ \ ]*)
14785 save_CFLAGS="$CFLAGS"
14786 CFLAGS="$CFLAGS -std=c90"
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -std=c90" >&5
14788 $as_echo_n "checking whether $CC understands -std=c90... " >&6; }
14789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14790 /* end confdefs.h. */
14800 if ac_fn_c_try_compile "$LINENO"; then :
14805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14807 $as_echo "$jh_has_option" >&6; }
14808 if test $jh_has_option = no; then
14809 CFLAGS="$save_CFLAGS"
14818 CFLAGS="$CFLAGS $WARN_CFLAGS $CODE_COVERAGE_CFLAGS"
14819 LDFLAGS="$LDFLAGS $CODE_COVERAGE_CFLAGS"
14821 ac_config_files="$ac_config_files Makefile pygobject-3.0.pc pygobject-3.0-uninstalled.pc gi/Makefile gi/repository/Makefile gi/overrides/Makefile gi/_gobject/Makefile examples/Makefile tests/Makefile pygtkcompat/Makefile PKG-INFO"
14823 cat >confcache <<\_ACEOF
14824 # This file is a shell script that caches the results of configure
14825 # tests run on this system so they can be shared between configure
14826 # scripts and configure runs, see configure's option --config-cache.
14827 # It is not useful on other systems. If it contains results you don't
14828 # want to keep, you may remove or edit it.
14830 # config.status only pays attention to the cache file if you give it
14831 # the --recheck option to rerun configure.
14833 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14834 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14835 # following values.
14839 # The following way of writing the cache mishandles newlines in values,
14840 # but we know of no workaround that is simple, portable, and efficient.
14841 # So, we kill variables containing newlines.
14842 # Ultrix sh set writes to stderr and can't be redirected directly,
14843 # and sets the high bit in the cache file unless we assign to the vars.
14845 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14846 eval ac_val=\$$ac_var
14850 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14851 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14854 _ | IFS | as_nl) ;; #(
14855 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14856 *) { eval $ac_var=; unset $ac_var;} ;;
14862 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14863 *${as_nl}ac_space=\ *)
14864 # `set' does not quote correctly, so add quotes: double-quote
14865 # substitution turns \\\\ into \\, and sed turns \\ into \.
14868 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14871 # `set' quotes correctly as required by POSIX, so do not add quotes.
14872 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14881 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14883 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14885 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14886 if test -w "$cache_file"; then
14887 if test "x$cache_file" != "x/dev/null"; then
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14889 $as_echo "$as_me: updating cache $cache_file" >&6;}
14890 if test ! -f "$cache_file" || test -h "$cache_file"; then
14891 cat confcache >"$cache_file"
14893 case $cache_file in #(
14895 mv -f confcache "$cache_file"$$ &&
14896 mv -f "$cache_file"$$ "$cache_file" ;; #(
14898 mv -f confcache "$cache_file" ;;
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14904 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14909 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14910 # Let make expand exec_prefix.
14911 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14913 DEFS=-DHAVE_CONFIG_H
14918 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14919 # 1. Remove the extension, and $U if already installed.
14920 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14921 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14922 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14923 # will be set to the directory where LIBOBJS objects are built.
14924 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14925 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14927 LIBOBJS=$ac_libobjs
14929 LTLIBOBJS=$ac_ltlibobjs
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14933 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14934 if test -n "$am_sleep_pid"; then
14935 # Hide warnings about reused PIDs.
14936 wait $am_sleep_pid 2>/dev/null
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14939 $as_echo "done" >&6; }
14940 if test -n "$EXEEXT"; then
14942 am__EXEEXT_FALSE='#'
14944 am__EXEEXT_TRUE='#'
14948 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
14949 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
14950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14952 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
14953 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
14954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14956 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14957 as_fn_error $? "conditional \"AMDEP\" was never defined.
14958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14960 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14961 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14964 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14965 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14968 if test -z "${ENABLE_CAIRO_TRUE}" && test -z "${ENABLE_CAIRO_FALSE}"; then
14969 as_fn_error $? "conditional \"ENABLE_CAIRO\" was never defined.
14970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14972 if test -z "${WITH_COMMON_TRUE}" && test -z "${WITH_COMMON_FALSE}"; then
14973 as_fn_error $? "conditional \"WITH_COMMON\" was never defined.
14974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14976 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
14977 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
14978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14981 : "${CONFIG_STATUS=./config.status}"
14983 ac_clean_files_save=$ac_clean_files
14984 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14986 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14988 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14990 # Generated by $as_me.
14991 # Run this file to recreate the current configuration.
14992 # Compiler output produced by configure, useful for debugging
14993 # configure, is in config.log if it exists.
14996 ac_cs_recheck=false
14999 SHELL=\${CONFIG_SHELL-$SHELL}
15002 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15003 ## -------------------- ##
15004 ## M4sh Initialization. ##
15005 ## -------------------- ##
15007 # Be more Bourne compatible
15008 DUALCASE=1; export DUALCASE # for MKS sh
15009 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15012 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15013 # is contrary to our usage. Disable this feature.
15014 alias -g '${1+"$@"}'='"$@"'
15015 setopt NO_GLOB_SUBST
15017 case `(set -o) 2>/dev/null` in #(
15029 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15030 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15031 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15032 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15033 # Prefer a ksh shell builtin over an external printf program on Solaris,
15034 # but without wasting forks for bash or zsh.
15035 if test -z "$BASH_VERSION$ZSH_VERSION" \
15036 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15037 as_echo='print -r --'
15038 as_echo_n='print -rn --'
15039 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15040 as_echo='printf %s\n'
15041 as_echo_n='printf %s'
15043 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15044 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15045 as_echo_n='/usr/ucb/echo -n'
15047 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15048 as_echo_n_body='eval
15052 expr "X$arg" : "X\\(.*\\)$as_nl";
15053 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15055 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15057 export as_echo_n_body
15058 as_echo_n='sh -c $as_echo_n_body as_echo'
15060 export as_echo_body
15061 as_echo='sh -c $as_echo_body as_echo'
15064 # The user is always right.
15065 if test "${PATH_SEPARATOR+set}" != set; then
15067 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15068 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15075 # We need space, tab and new line, in precisely that order. Quoting is
15076 # there to prevent editors from complaining about space-tab.
15077 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15078 # splitting by setting IFS to empty value.)
15081 # Find who we are. Look in the path if we contain no directory separator.
15084 *[\\/]* ) as_myself=$0 ;;
15085 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15086 for as_dir in $PATH
15089 test -z "$as_dir" && as_dir=.
15090 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15096 # We did not find ourselves, most probably we were run as `sh COMMAND'
15097 # in which case we are not to be found in the path.
15098 if test "x$as_myself" = x; then
15101 if test ! -f "$as_myself"; then
15102 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15106 # Unset variables that we do not need and which cause bugs (e.g. in
15107 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15108 # suppresses any "Segmentation fault" message there. '((' could
15109 # trigger a bug in pdksh 5.2.14.
15110 for as_var in BASH_ENV ENV MAIL MAILPATH
15111 do eval test x\${$as_var+set} = xset \
15112 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15125 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15128 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15129 # ----------------------------------------
15130 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15131 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15132 # script with STATUS, using 1 if that was 0.
15135 as_status=$1; test $as_status -eq 0 && as_status=1
15137 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15138 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15140 $as_echo "$as_me: error: $2" >&2
15141 as_fn_exit $as_status
15145 # as_fn_set_status STATUS
15146 # -----------------------
15147 # Set $? to STATUS, without forking.
15148 as_fn_set_status ()
15151 } # as_fn_set_status
15153 # as_fn_exit STATUS
15154 # -----------------
15155 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15159 as_fn_set_status $1
15165 # Portably unset VAR.
15168 { eval $1=; unset $1;}
15170 as_unset=as_fn_unset
15171 # as_fn_append VAR VALUE
15172 # ----------------------
15173 # Append the text in VALUE to the end of the definition contained in VAR. Take
15174 # advantage of any shell optimizations that allow amortized linear growth over
15175 # repeated appends, instead of the typical quadratic growth present in naive
15177 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15178 eval 'as_fn_append ()
15189 # as_fn_arith ARG...
15190 # ------------------
15191 # Perform arithmetic evaluation on the ARGs, and store the result in the
15192 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15193 # must be portable across $(()) and expr.
15194 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15195 eval 'as_fn_arith ()
15202 as_val=`expr "$@" || test $? -eq 1`
15207 if expr a : '\(a\)' >/dev/null 2>&1 &&
15208 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15214 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15215 as_basename=basename
15220 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15226 as_me=`$as_basename -- "$0" ||
15227 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15228 X"$0" : 'X\(//\)$' \| \
15229 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15231 sed '/^.*\/\([^/][^/]*\)\/*$/{
15245 # Avoid depending upon Character Ranges.
15246 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15247 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15248 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15249 as_cr_digits='0123456789'
15250 as_cr_alnum=$as_cr_Letters$as_cr_digits
15252 ECHO_C= ECHO_N= ECHO_T=
15253 case `echo -n x` in #(((((
15255 case `echo 'xy\c'` in
15256 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15258 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15265 rm -f conf$$ conf$$.exe conf$$.file
15266 if test -d conf$$.dir; then
15267 rm -f conf$$.dir/conf$$.file
15270 mkdir conf$$.dir 2>/dev/null
15272 if (echo >conf$$.file) 2>/dev/null; then
15273 if ln -s conf$$.file conf$$ 2>/dev/null; then
15275 # ... but there are two gotchas:
15276 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15277 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15278 # In both cases, we have to default to `cp -pR'.
15279 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15281 elif ln conf$$.file conf$$ 2>/dev/null; then
15289 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15290 rmdir conf$$.dir 2>/dev/null
15295 # Create "$as_dir" as a directory, including parents if necessary.
15300 -*) as_dir=./$as_dir;;
15302 test -d "$as_dir" || eval $as_mkdir_p || {
15306 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15307 *) as_qdir=$as_dir;;
15309 as_dirs="'$as_qdir' $as_dirs"
15310 as_dir=`$as_dirname -- "$as_dir" ||
15311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15312 X"$as_dir" : 'X\(//\)[^/]' \| \
15313 X"$as_dir" : 'X\(//\)$' \| \
15314 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15315 $as_echo X"$as_dir" |
15316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15320 /^X\(\/\/\)[^/].*/{
15333 test -d "$as_dir" && break
15335 test -z "$as_dirs" || eval "mkdir $as_dirs"
15336 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15340 if mkdir -p . 2>/dev/null; then
15341 as_mkdir_p='mkdir -p "$as_dir"'
15343 test -d ./-p && rmdir ./-p
15348 # as_fn_executable_p FILE
15349 # -----------------------
15350 # Test if FILE is an executable regular file.
15351 as_fn_executable_p ()
15353 test -f "$1" && test -x "$1"
15354 } # as_fn_executable_p
15355 as_test_x='test -x'
15356 as_executable_p=as_fn_executable_p
15358 # Sed expression to map a string onto a valid CPP name.
15359 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15361 # Sed expression to map a string onto a valid variable name.
15362 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15366 ## ----------------------------------- ##
15367 ## Main body of $CONFIG_STATUS script. ##
15368 ## ----------------------------------- ##
15370 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15373 # Save the log message, to keep $0 and so on meaningful, and to
15374 # report actual input values of CONFIG_FILES etc. instead of their
15375 # values after options handling.
15377 This file was extended by pygobject $as_me 3.13.3, which was
15378 generated by GNU Autoconf 2.69. Invocation command line was
15380 CONFIG_FILES = $CONFIG_FILES
15381 CONFIG_HEADERS = $CONFIG_HEADERS
15382 CONFIG_LINKS = $CONFIG_LINKS
15383 CONFIG_COMMANDS = $CONFIG_COMMANDS
15386 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15391 case $ac_config_files in *"
15392 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15395 case $ac_config_headers in *"
15396 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15401 # Files that config.status was made for.
15402 config_files="$ac_config_files"
15403 config_headers="$ac_config_headers"
15404 config_commands="$ac_config_commands"
15408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15410 \`$as_me' instantiates files and other configuration actions
15411 from templates according to the current configuration. Unless the files
15412 and actions are specified as TAGs, all are instantiated by default.
15414 Usage: $0 [OPTION]... [TAG]...
15416 -h, --help print this help, then exit
15417 -V, --version print version number and configuration settings, then exit
15418 --config print configuration, then exit
15419 -q, --quiet, --silent
15420 do not print progress messages
15421 -d, --debug don't remove temporary files
15422 --recheck update $as_me by reconfiguring in the same conditions
15423 --file=FILE[:TEMPLATE]
15424 instantiate the configuration file FILE
15425 --header=FILE[:TEMPLATE]
15426 instantiate the configuration header FILE
15428 Configuration files:
15431 Configuration headers:
15434 Configuration commands:
15437 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
15438 pygobject home page: <https://wiki.gnome.org/Projects/PyGObject/>."
15441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15442 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15444 pygobject config.status 3.13.3
15445 configured by $0, generated by GNU Autoconf 2.69,
15446 with options \\"\$ac_cs_config\\"
15448 Copyright (C) 2012 Free Software Foundation, Inc.
15449 This config.status script is free software; the Free Software Foundation
15450 gives unlimited permission to copy, distribute and modify it."
15457 test -n "\$AWK" || AWK=awk
15460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15461 # The default lists apply if the user does not specify any file.
15467 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15468 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15472 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15484 # Handling of the options.
15485 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15487 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15488 $as_echo "$ac_cs_version"; exit ;;
15489 --config | --confi | --conf | --con | --co | --c )
15490 $as_echo "$ac_cs_config"; exit ;;
15491 --debug | --debu | --deb | --de | --d | -d )
15493 --file | --fil | --fi | --f )
15496 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15497 '') as_fn_error $? "missing file argument" ;;
15499 as_fn_append CONFIG_FILES " '$ac_optarg'"
15500 ac_need_defaults=false;;
15501 --header | --heade | --head | --hea )
15504 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15506 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15507 ac_need_defaults=false;;
15509 # Conflict between --help and --header
15510 as_fn_error $? "ambiguous option: \`$1'
15511 Try \`$0 --help' for more information.";;
15512 --help | --hel | -h )
15513 $as_echo "$ac_cs_usage"; exit ;;
15514 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15515 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15518 # This is an error.
15519 -*) as_fn_error $? "unrecognized option: \`$1'
15520 Try \`$0 --help' for more information." ;;
15522 *) as_fn_append ac_config_targets " $1"
15523 ac_need_defaults=false ;;
15529 ac_configure_extra_args=
15531 if $ac_cs_silent; then
15533 ac_configure_extra_args="$ac_configure_extra_args --silent"
15537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15538 if \$ac_cs_recheck; then
15539 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15541 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15542 CONFIG_SHELL='$SHELL'
15543 export CONFIG_SHELL
15548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15552 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15553 ## Running $as_me. ##
15559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15563 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15566 # The HP-UX ksh and POSIX shell print the target directory to stdout
15567 # if CDPATH is set.
15568 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15570 sed_quote_subst='$sed_quote_subst'
15571 double_quote_subst='$double_quote_subst'
15572 delay_variable_subst='$delay_variable_subst'
15573 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15574 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15575 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15576 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15577 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15578 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15579 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15580 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15581 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15582 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15583 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15584 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15585 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15586 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15587 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15588 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15589 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15590 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15591 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15592 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15593 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15594 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15595 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15596 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15597 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15598 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15599 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15600 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15601 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15602 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15603 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15604 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15605 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15606 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15607 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15608 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15609 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15610 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15611 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15612 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15613 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15614 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15615 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15616 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15617 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15618 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15619 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15620 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15621 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15622 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15623 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15624 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15625 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15626 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15627 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15628 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15629 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15630 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"`'
15631 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15632 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15633 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15634 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15635 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15636 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15637 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15638 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15639 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15640 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15641 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15642 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15643 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15644 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15645 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15646 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15647 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15648 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15649 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15650 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15651 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15652 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15653 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15654 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15655 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15656 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15657 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15658 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15659 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15660 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15661 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15662 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15663 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15664 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15665 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15666 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15667 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15668 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15669 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15670 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15671 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15672 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15673 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15674 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15675 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15676 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15677 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15678 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15679 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15680 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15681 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15682 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15683 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15684 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15685 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15686 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15687 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15688 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15689 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15690 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15691 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15692 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15693 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15694 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15695 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15696 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15697 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15698 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15699 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15700 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15701 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15702 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15703 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15706 LTCFLAGS='$LTCFLAGS'
15707 compiler='$compiler_DEFAULT'
15709 # A function that is used when there is no print builtin or printf.
15710 func_fallback_echo ()
15712 eval 'cat <<_LTECHO_EOF
15717 # Quote evaled strings.
15734 deplibs_check_method \
15738 sharedlib_from_linklib_cmd \
15741 archiver_list_spec \
15747 lt_cv_sys_global_symbol_pipe \
15748 lt_cv_sys_global_symbol_to_cdecl \
15749 lt_cv_sys_global_symbol_to_c_name_address \
15750 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15751 nm_file_list_spec \
15752 lt_prog_compiler_no_builtin_flag \
15753 lt_prog_compiler_pic \
15754 lt_prog_compiler_wl \
15755 lt_prog_compiler_static \
15756 lt_cv_prog_compiler_c_o \
15765 export_dynamic_flag_spec \
15766 whole_archive_flag_spec \
15767 compiler_needs_object \
15769 allow_undefined_flag \
15770 no_undefined_flag \
15771 hardcode_libdir_flag_spec \
15772 hardcode_libdir_separator \
15776 variables_saved_for_relink \
15778 library_names_spec \
15780 install_override_mode \
15784 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15785 *[\\\\\\\`\\"\\\$]*)
15786 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15789 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15794 # Double-quote double-evaled strings.
15795 for var in reload_cmds \
15796 old_postinstall_cmds \
15797 old_postuninstall_cmds \
15799 extract_expsyms_cmds \
15800 old_archive_from_new_cmds \
15801 old_archive_from_expsyms_cmds \
15803 archive_expsym_cmds \
15805 module_expsym_cmds \
15806 export_symbols_cmds \
15810 postuninstall_cmds \
15812 sys_lib_search_path_spec \
15813 sys_lib_dlsearch_path_spec; do
15814 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15815 *[\\\\\\\`\\"\\\$]*)
15816 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15819 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15824 ac_aux_dir='$ac_aux_dir'
15825 xsi_shell='$xsi_shell'
15826 lt_shell_append='$lt_shell_append'
15828 # See if we are running on zsh, and set the options which allow our
15829 # commands through without removal of \ escapes INIT.
15830 if test -n "\${ZSH_VERSION+set}" ; then
15831 setopt NO_GLOB_SUBST
15837 TIMESTAMP='$TIMESTAMP'
15846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15848 # Handling of arguments.
15849 for ac_config_target in $ac_config_targets
15851 case $ac_config_target in
15852 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15853 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15854 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15855 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15856 "pygobject-3.0.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0.pc" ;;
15857 "pygobject-3.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0-uninstalled.pc" ;;
15858 "gi/Makefile") CONFIG_FILES="$CONFIG_FILES gi/Makefile" ;;
15859 "gi/repository/Makefile") CONFIG_FILES="$CONFIG_FILES gi/repository/Makefile" ;;
15860 "gi/overrides/Makefile") CONFIG_FILES="$CONFIG_FILES gi/overrides/Makefile" ;;
15861 "gi/_gobject/Makefile") CONFIG_FILES="$CONFIG_FILES gi/_gobject/Makefile" ;;
15862 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15863 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15864 "pygtkcompat/Makefile") CONFIG_FILES="$CONFIG_FILES pygtkcompat/Makefile" ;;
15865 "PKG-INFO") CONFIG_FILES="$CONFIG_FILES PKG-INFO" ;;
15867 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15872 # If the user did not use the arguments to specify the items to instantiate,
15873 # then the envvar interface is used. Set only those that are not.
15874 # We use the long form for the default assignment because of an extremely
15875 # bizarre bug on SunOS 4.1.3.
15876 if $ac_need_defaults; then
15877 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15878 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15879 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15882 # Have a temporary directory for convenience. Make it in the build tree
15883 # simply because there is no reason against having it here, and in addition,
15884 # creating and moving files from /tmp can sometimes cause problems.
15885 # Hook for its removal unless debugging.
15886 # Note that there is a small window in which the directory will not be cleaned:
15887 # after its creation but before its name has been assigned to `$tmp'.
15891 trap 'exit_status=$?
15892 : "${ac_tmp:=$tmp}"
15893 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15895 trap 'as_fn_exit 1' 1 2 13 15
15897 # Create a (secure) tmp directory for tmp files.
15900 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15904 tmp=./conf$$-$RANDOM
15905 (umask 077 && mkdir "$tmp")
15906 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15909 # Set up the scripts for CONFIG_FILES section.
15910 # No need to generate them if there are no CONFIG_FILES.
15911 # This happens for instance with `./config.status config.h'.
15912 if test -n "$CONFIG_FILES"; then
15915 ac_cr=`echo X | tr X '\015'`
15916 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15917 # But we know of no other shell where ac_cr would be empty at this
15918 # point, so we can use a bashism as a fallback.
15919 if test "x$ac_cr" = x; then
15920 eval ac_cr=\$\'\\r\'
15922 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15923 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15926 ac_cs_awk_cr=$ac_cr
15929 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15934 echo "cat >conf$$subs.awk <<_ACEOF" &&
15935 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15937 } >conf$$subs.sh ||
15938 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15939 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15941 for ac_last_try in false false false false false :; do
15942 . ./conf$$subs.sh ||
15943 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15945 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15946 if test $ac_delim_n = $ac_delim_num; then
15948 elif $ac_last_try; then
15949 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15951 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15954 rm -f conf$$subs.sh
15956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15957 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15961 s/^/S["/; s/!.*/"]=/
15971 s/\(.\{148\}\)..*/\1/
15973 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15978 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15985 s/\(.\{148\}\)..*/\1/
15987 s/["\\]/\\&/g; s/^/"/; s/$/"/
15991 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15996 ' <conf$$subs.awk | sed '
16001 ' >>$CONFIG_STATUS || ac_write_fail=1
16002 rm -f conf$$subs.awk
16003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16005 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16006 for (key in S) S_is_set[key] = 1
16012 nfields = split(line, field, "@")
16014 len = length(field[1])
16015 for (i = 2; i < nfields; i++) {
16017 keylen = length(key)
16018 if (S_is_set[key]) {
16020 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16021 len += length(value) + length(field[++i])
16032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16033 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16034 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16037 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16038 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16041 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16042 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16043 # trailing colons and then remove the whole line if VPATH becomes empty
16044 # (actually we leave an empty line to preserve line numbers).
16045 if test "x$srcdir" = x.; then
16046 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16065 fi # test -n "$CONFIG_FILES"
16067 # Set up the scripts for CONFIG_HEADERS section.
16068 # No need to generate them if there are no CONFIG_HEADERS.
16069 # This happens for instance with `./config.status Makefile'.
16070 if test -n "$CONFIG_HEADERS"; then
16071 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16075 # Transform confdefs.h into an awk script `defines.awk', embedded as
16076 # here-document in config.status, that substitutes the proper values into
16077 # config.h.in to produce config.h.
16079 # Create a delimiter string that does not exist in confdefs.h, to ease
16080 # handling of long lines.
16082 for ac_last_try in false false :; do
16083 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16084 if test -z "$ac_tt"; then
16086 elif $ac_last_try; then
16087 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16089 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16093 # For the awk script, D is an array of macro values keyed by name,
16094 # likewise P contains macro parameters if any. Preserve backslash
16095 # newline sequences.
16097 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16099 s/.\{148\}/&'"$ac_delim"'/g
16102 s/^[ ]*#[ ]*define[ ][ ]*/ /
16109 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16111 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16115 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16116 D["\1"]=" \3\\\\\\n"\\/p
16118 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16123 s/.\{148\}/&'"$ac_delim"'/g
16128 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16131 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16133 ' <confdefs.h | sed '
16134 s/'"$ac_delim"'/"\\\
16135 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16138 for (key in D) D_is_set[key] = 1
16141 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16143 split(line, arg, " ")
16144 if (arg[1] == "#") {
16148 defundef = substr(arg[1], 2)
16151 split(mac1, mac2, "(") #)
16153 prefix = substr(line, 1, index(line, defundef) - 1)
16154 if (D_is_set[macro]) {
16155 # Preserve the white space surrounding the "#".
16156 print prefix "define", macro P[macro] D[macro]
16159 # Replace #undef with comments. This is necessary, for example,
16160 # in the case of _POSIX_SOURCE, which is predefined and required
16161 # on some systems where configure will not decide to define it.
16162 if (defundef == "undef") {
16163 print "/*", prefix defundef, macro, "*/"
16171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16172 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16173 fi # test -n "$CONFIG_HEADERS"
16176 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16181 :[FHLC]) ac_mode=$ac_tag; continue;;
16183 case $ac_mode$ac_tag in
16185 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16186 :[FH]-) ac_tag=-:-;;
16187 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16204 -) ac_f="$ac_tmp/stdin";;
16205 *) # Look for the file first in the build tree, then in the source tree
16206 # (if the path is not absolute). The absolute path cannot be DOS-style,
16207 # because $ac_f cannot contain `:'.
16211 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16213 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16215 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16216 as_fn_append ac_file_inputs " '$ac_f'"
16219 # Let's still pretend it is `configure' which instantiates (i.e., don't
16220 # use $as_me), people would be surprised to read:
16221 # /* config.h. Generated by config.status. */
16222 configure_input='Generated from '`
16223 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16225 if test x"$ac_file" != x-; then
16226 configure_input="$ac_file. $configure_input"
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16228 $as_echo "$as_me: creating $ac_file" >&6;}
16230 # Neutralize special characters interpreted by sed in replacement strings.
16231 case $configure_input in #(
16232 *\&* | *\|* | *\\* )
16233 ac_sed_conf_input=`$as_echo "$configure_input" |
16234 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16235 *) ac_sed_conf_input=$configure_input;;
16239 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16240 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16245 ac_dir=`$as_dirname -- "$ac_file" ||
16246 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16247 X"$ac_file" : 'X\(//\)[^/]' \| \
16248 X"$ac_file" : 'X\(//\)$' \| \
16249 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16250 $as_echo X"$ac_file" |
16251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16255 /^X\(\/\/\)[^/].*/{
16268 as_dir="$ac_dir"; as_fn_mkdir_p
16272 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16274 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16275 # A ".." for each directory in $ac_dir_suffix.
16276 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16277 case $ac_top_builddir_sub in
16278 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16279 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16282 ac_abs_top_builddir=$ac_pwd
16283 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16284 # for backward compatibility:
16285 ac_top_builddir=$ac_top_build_prefix
16288 .) # We are building in place.
16290 ac_top_srcdir=$ac_top_builddir_sub
16291 ac_abs_top_srcdir=$ac_pwd ;;
16292 [\\/]* | ?:[\\/]* ) # Absolute name.
16293 ac_srcdir=$srcdir$ac_dir_suffix;
16294 ac_top_srcdir=$srcdir
16295 ac_abs_top_srcdir=$srcdir ;;
16296 *) # Relative name.
16297 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16298 ac_top_srcdir=$ac_top_build_prefix$srcdir
16299 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16301 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16311 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16312 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16314 ac_MKDIR_P=$MKDIR_P
16316 [\\/$]* | ?:[\\/]* ) ;;
16317 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16322 # If the template does not know about datarootdir, expand it.
16323 # FIXME: This hack should be removed a few years after 2.60.
16324 ac_datarootdir_hack=; ac_datarootdir_seen=
16335 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16336 *datarootdir*) ac_datarootdir_seen=yes;;
16337 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16339 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16342 ac_datarootdir_hack='
16343 s&@datadir@&$datadir&g
16344 s&@docdir@&$docdir&g
16345 s&@infodir@&$infodir&g
16346 s&@localedir@&$localedir&g
16347 s&@mandir@&$mandir&g
16348 s&\\\${datarootdir}&$datarootdir&g' ;;
16352 # Neutralize VPATH when `$srcdir' = `.'.
16353 # Shell code in configure.ac might set extrasub.
16354 # FIXME: do we really want to maintain this feature?
16355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16356 ac_sed_extra="$ac_vpsub
16359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16361 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16362 s|@configure_input@|$ac_sed_conf_input|;t t
16363 s&@top_builddir@&$ac_top_builddir_sub&;t t
16364 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16365 s&@srcdir@&$ac_srcdir&;t t
16366 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16367 s&@top_srcdir@&$ac_top_srcdir&;t t
16368 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16369 s&@builddir@&$ac_builddir&;t t
16370 s&@abs_builddir@&$ac_abs_builddir&;t t
16371 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16372 s&@INSTALL@&$ac_INSTALL&;t t
16373 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16374 $ac_datarootdir_hack
16376 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16377 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16379 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16380 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16381 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16382 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16384 which seems to be undefined. Please make sure it is defined" >&5
16385 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16386 which seems to be undefined. Please make sure it is defined" >&2;}
16388 rm -f "$ac_tmp/stdin"
16390 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16391 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16393 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16399 if test x"$ac_file" != x-; then
16401 $as_echo "/* $configure_input */" \
16402 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16403 } >"$ac_tmp/config.h" \
16404 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16405 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16407 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16410 mv "$ac_tmp/config.h" "$ac_file" \
16411 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16414 $as_echo "/* $configure_input */" \
16415 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16416 || as_fn_error $? "could not create -" "$LINENO" 5
16418 # Compute "$ac_file"'s index in $config_headers.
16421 for _am_header in $config_headers :; do
16422 case $_am_header in
16423 $_am_arg | $_am_arg:* )
16426 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16429 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16430 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16431 X"$_am_arg" : 'X\(//\)[^/]' \| \
16432 X"$_am_arg" : 'X\(//\)$' \| \
16433 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16434 $as_echo X"$_am_arg" |
16435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16439 /^X\(\/\/\)[^/].*/{
16451 s/.*/./; q'`/stamp-h$_am_stamp_count
16454 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16455 $as_echo "$as_me: executing $ac_file commands" >&6;}
16460 case $ac_file$ac_mode in
16461 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16462 # Older Autoconf quotes --file arguments for eval, but not when files
16463 # are listed without --file. Let's play safe and only enable the eval
16464 # if we detect the quoting.
16465 case $CONFIG_FILES in
16466 *\'*) eval set x "$CONFIG_FILES" ;;
16467 *) set x $CONFIG_FILES ;;
16472 # Strip MF so we end up with the name of the file.
16473 mf=`echo "$mf" | sed -e 's/:.*$//'`
16474 # Check whether this is an Automake generated Makefile or not.
16475 # We used to match only the files named 'Makefile.in', but
16476 # some people rename them; so instead we look at the file content.
16477 # Grep'ing the first line is not enough: some people post-process
16478 # each Makefile.in and add a new line on top of each file to say so.
16479 # Grep'ing the whole file is not good either: AIX grep has a line
16480 # limit of 2048, but all sed's we know have understand at least 4000.
16481 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16482 dirpart=`$as_dirname -- "$mf" ||
16483 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16484 X"$mf" : 'X\(//\)[^/]' \| \
16485 X"$mf" : 'X\(//\)$' \| \
16486 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16492 /^X\(\/\/\)[^/].*/{
16508 # Extract the definition of DEPDIR, am__include, and am__quote
16509 # from the Makefile without running 'make'.
16510 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16511 test -z "$DEPDIR" && continue
16512 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16513 test -z "$am__include" && continue
16514 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16515 # Find all dependency output files, they are included files with
16516 # $(DEPDIR) in their names. We invoke sed twice because it is the
16517 # simplest approach to changing $(DEPDIR) to its actual value in the
16519 for file in `sed -n "
16520 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16521 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16522 # Make sure the directory exists.
16523 test -f "$dirpart/$file" && continue
16524 fdir=`$as_dirname -- "$file" ||
16525 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16526 X"$file" : 'X\(//\)[^/]' \| \
16527 X"$file" : 'X\(//\)$' \| \
16528 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16529 $as_echo X"$file" |
16530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16534 /^X\(\/\/\)[^/].*/{
16547 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16548 # echo "creating $dirpart/$file"
16549 echo '# dummy' > "$dirpart/$file"
16556 # See if we are running on zsh, and set the options which allow our
16557 # commands through without removal of \ escapes.
16558 if test -n "${ZSH_VERSION+set}" ; then
16559 setopt NO_GLOB_SUBST
16562 cfgfile="${ofile}T"
16563 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16566 cat <<_LT_EOF >> "$cfgfile"
16569 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16570 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16571 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16572 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16574 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16575 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16577 # Written by Gordon Matzigkeit, 1996
16579 # This file is part of GNU Libtool.
16581 # GNU Libtool is free software; you can redistribute it and/or
16582 # modify it under the terms of the GNU General Public License as
16583 # published by the Free Software Foundation; either version 2 of
16584 # the License, or (at your option) any later version.
16586 # As a special exception to the GNU General Public License,
16587 # if you distribute this file as part of a program or library that
16588 # is built using GNU Libtool, you may include this file under the
16589 # same distribution terms that you use for the rest of that program.
16591 # GNU Libtool is distributed in the hope that it will be useful,
16592 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16593 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16594 # GNU General Public License for more details.
16596 # You should have received a copy of the GNU General Public License
16597 # along with GNU Libtool; see the file COPYING. If not, a copy
16598 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16599 # obtained by writing to the Free Software Foundation, Inc.,
16600 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16603 # The names of the tagged configurations supported by this script.
16606 # ### BEGIN LIBTOOL CONFIG
16608 # Which release of libtool.m4 was used?
16609 macro_version=$macro_version
16610 macro_revision=$macro_revision
16612 # Assembler program.
16615 # DLL creation program.
16616 DLLTOOL=$lt_DLLTOOL
16618 # Object dumper program.
16619 OBJDUMP=$lt_OBJDUMP
16621 # Whether or not to build static libraries.
16622 build_old_libs=$enable_static
16624 # Whether or not to build shared libraries.
16625 build_libtool_libs=$enable_shared
16627 # What type of objects to build.
16630 # Whether or not to optimize for fast installation.
16631 fast_install=$enable_fast_install
16633 # Shell to use when invoking shell scripts.
16636 # An echo program that protects backslashes.
16639 # The PATH separator for the build system.
16640 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16643 host_alias=$host_alias
16647 # The build system.
16648 build_alias=$build_alias
16652 # A sed program that does not truncate output.
16655 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16656 Xsed="\$SED -e 1s/^X//"
16658 # A grep program that handles long lines.
16664 # A literal string matcher.
16667 # A BSD- or MS-compatible name lister.
16670 # Whether we need soft or hard links.
16673 # What is the maximum length of a command?
16674 max_cmd_len=$max_cmd_len
16676 # Object file suffix (normally "o").
16679 # Executable file suffix (normally "").
16682 # whether the shell understands "unset".
16685 # turn spaces into newlines.
16688 # turn newlines into spaces.
16691 # convert \$build file names to \$host format.
16692 to_host_file_cmd=$lt_cv_to_host_file_cmd
16694 # convert \$build files to toolchain format.
16695 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16697 # Method to check whether dependent libraries are shared objects.
16698 deplibs_check_method=$lt_deplibs_check_method
16700 # Command to use when deplibs_check_method = "file_magic".
16701 file_magic_cmd=$lt_file_magic_cmd
16703 # How to find potential files when deplibs_check_method = "file_magic".
16704 file_magic_glob=$lt_file_magic_glob
16706 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16707 want_nocaseglob=$lt_want_nocaseglob
16709 # Command to associate shared and link libraries.
16710 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16715 # Flags to create an archive.
16716 AR_FLAGS=$lt_AR_FLAGS
16718 # How to feed a file listing to the archiver.
16719 archiver_list_spec=$lt_archiver_list_spec
16721 # A symbol stripping program.
16724 # Commands used to install an old-style archive.
16726 old_postinstall_cmds=$lt_old_postinstall_cmds
16727 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16729 # Whether to use a lock for old archive extraction.
16730 lock_old_archive_extraction=$lock_old_archive_extraction
16735 # LTCC compiler flags.
16736 LTCFLAGS=$lt_CFLAGS
16738 # Take the output of nm and produce a listing of raw symbols and C names.
16739 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16741 # Transform the output of nm in a proper C declaration.
16742 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16744 # Transform the output of nm in a C name address pair.
16745 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16747 # Transform the output of nm in a C name address pair when lib prefix is needed.
16748 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16750 # Specify filename containing input files for \$NM.
16751 nm_file_list_spec=$lt_nm_file_list_spec
16753 # The root where to search for dependent libraries,and in which our libraries should be installed.
16754 lt_sysroot=$lt_sysroot
16756 # The name of the directory that contains temporary libtool files.
16759 # Used to examine libraries when file_magic_cmd begins with "file".
16760 MAGIC_CMD=$MAGIC_CMD
16762 # Must we lock files when doing compilation?
16763 need_locks=$lt_need_locks
16766 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16768 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16769 DSYMUTIL=$lt_DSYMUTIL
16771 # Tool to change global to local symbols on Mac OS X.
16774 # Tool to manipulate fat objects and archives on Mac OS X.
16777 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16780 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16781 OTOOL64=$lt_OTOOL64
16783 # Old archive suffix (normally "a").
16786 # Shared library suffix (normally ".so").
16787 shrext_cmds=$lt_shrext_cmds
16789 # The commands to extract the exported symbol list from a shared archive.
16790 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16792 # Variables whose values should be saved in libtool wrapper scripts and
16793 # restored at link time.
16794 variables_saved_for_relink=$lt_variables_saved_for_relink
16796 # Do we need the "lib" prefix for modules?
16797 need_lib_prefix=$need_lib_prefix
16799 # Do we need a version for libraries?
16800 need_version=$need_version
16802 # Library versioning type.
16803 version_type=$version_type
16805 # Shared library runtime path variable.
16806 runpath_var=$runpath_var
16808 # Shared library path variable.
16809 shlibpath_var=$shlibpath_var
16811 # Is shlibpath searched before the hard-coded library search path?
16812 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16814 # Format of library name prefix.
16815 libname_spec=$lt_libname_spec
16817 # List of archive names. First name is the real one, the rest are links.
16818 # The last name is the one that the linker finds with -lNAME
16819 library_names_spec=$lt_library_names_spec
16821 # The coded name of the library, if different from the real name.
16822 soname_spec=$lt_soname_spec
16824 # Permission mode override for installation of shared libraries.
16825 install_override_mode=$lt_install_override_mode
16827 # Command to use after installation of a shared archive.
16828 postinstall_cmds=$lt_postinstall_cmds
16830 # Command to use after uninstallation of a shared archive.
16831 postuninstall_cmds=$lt_postuninstall_cmds
16833 # Commands used to finish a libtool library installation in a directory.
16834 finish_cmds=$lt_finish_cmds
16836 # As "finish_cmds", except a single script fragment to be evaled but
16838 finish_eval=$lt_finish_eval
16840 # Whether we should hardcode library paths into libraries.
16841 hardcode_into_libs=$hardcode_into_libs
16843 # Compile-time system search path for libraries.
16844 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16846 # Run-time system search path for libraries.
16847 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16849 # Whether dlopen is supported.
16850 dlopen_support=$enable_dlopen
16852 # Whether dlopen of programs is supported.
16853 dlopen_self=$enable_dlopen_self
16855 # Whether dlopen of statically linked programs is supported.
16856 dlopen_self_static=$enable_dlopen_self_static
16858 # Commands to strip libraries.
16859 old_striplib=$lt_old_striplib
16860 striplib=$lt_striplib
16863 # The linker used to build libraries.
16866 # How to create reloadable object files.
16867 reload_flag=$lt_reload_flag
16868 reload_cmds=$lt_reload_cmds
16870 # Commands used to build an old-style archive.
16871 old_archive_cmds=$lt_old_archive_cmds
16873 # A language specific compiler.
16876 # Is the compiler the GNU compiler?
16879 # Compiler flag to turn off builtin functions.
16880 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16882 # Additional compiler flags for building library objects.
16883 pic_flag=$lt_lt_prog_compiler_pic
16885 # How to pass a linker flag through the compiler.
16886 wl=$lt_lt_prog_compiler_wl
16888 # Compiler flag to prevent dynamic linking.
16889 link_static_flag=$lt_lt_prog_compiler_static
16891 # Does compiler simultaneously support -c and -o options?
16892 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16894 # Whether or not to add -lc for building shared libraries.
16895 build_libtool_need_lc=$archive_cmds_need_lc
16897 # Whether or not to disallow shared libs when runtime libs are static.
16898 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16900 # Compiler flag to allow reflexive dlopens.
16901 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16903 # Compiler flag to generate shared objects directly from archives.
16904 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16906 # Whether the compiler copes with passing no objects directly.
16907 compiler_needs_object=$lt_compiler_needs_object
16909 # Create an old-style archive from a shared archive.
16910 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16912 # Create a temporary old-style archive to link instead of a shared archive.
16913 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16915 # Commands used to build a shared archive.
16916 archive_cmds=$lt_archive_cmds
16917 archive_expsym_cmds=$lt_archive_expsym_cmds
16919 # Commands used to build a loadable module if different from building
16920 # a shared archive.
16921 module_cmds=$lt_module_cmds
16922 module_expsym_cmds=$lt_module_expsym_cmds
16924 # Whether we are building with GNU ld or not.
16925 with_gnu_ld=$lt_with_gnu_ld
16927 # Flag that allows shared libraries with undefined symbols to be built.
16928 allow_undefined_flag=$lt_allow_undefined_flag
16930 # Flag that enforces no undefined symbols.
16931 no_undefined_flag=$lt_no_undefined_flag
16933 # Flag to hardcode \$libdir into a binary during linking.
16934 # This must work even if \$libdir does not exist
16935 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16937 # Whether we need a single "-rpath" flag with a separated argument.
16938 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16940 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16941 # DIR into the resulting binary.
16942 hardcode_direct=$hardcode_direct
16944 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16945 # DIR into the resulting binary and the resulting library dependency is
16946 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16947 # library is relocated.
16948 hardcode_direct_absolute=$hardcode_direct_absolute
16950 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16951 # into the resulting binary.
16952 hardcode_minus_L=$hardcode_minus_L
16954 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16955 # into the resulting binary.
16956 hardcode_shlibpath_var=$hardcode_shlibpath_var
16958 # Set to "yes" if building a shared library automatically hardcodes DIR
16959 # into the library and all subsequent libraries and executables linked
16961 hardcode_automatic=$hardcode_automatic
16963 # Set to yes if linker adds runtime paths of dependent libraries
16964 # to runtime path list.
16965 inherit_rpath=$inherit_rpath
16967 # Whether libtool must link a program against all its dependency libraries.
16968 link_all_deplibs=$link_all_deplibs
16970 # Set to "yes" if exported symbols are required.
16971 always_export_symbols=$always_export_symbols
16973 # The commands to list exported symbols.
16974 export_symbols_cmds=$lt_export_symbols_cmds
16976 # Symbols that should not be listed in the preloaded symbols.
16977 exclude_expsyms=$lt_exclude_expsyms
16979 # Symbols that must always be exported.
16980 include_expsyms=$lt_include_expsyms
16982 # Commands necessary for linking programs (against libraries) with templates.
16983 prelink_cmds=$lt_prelink_cmds
16985 # Commands necessary for finishing linking programs.
16986 postlink_cmds=$lt_postlink_cmds
16988 # Specify filename containing input files.
16989 file_list_spec=$lt_file_list_spec
16991 # How to hardcode a shared library path into an executable.
16992 hardcode_action=$hardcode_action
16994 # ### END LIBTOOL CONFIG
17000 cat <<\_LT_EOF >> "$cfgfile"
17001 # AIX sometimes has problems with the GCC collect2 program. For some
17002 # reason, if we set the COLLECT_NAMES environment variable, the problems
17003 # vanish in a puff of smoke.
17004 if test "X${COLLECT_NAMES+set}" != Xset; then
17006 export COLLECT_NAMES
17013 ltmain="$ac_aux_dir/ltmain.sh"
17016 # We use sed instead of cat because bash on DJGPP gets confused if
17017 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17018 # text mode, it properly converts lines to CR/LF. This bash problem
17019 # is reportedly fixed, but why not run on old versions too?
17020 sed '$q' "$ltmain" >> "$cfgfile" \
17021 || (rm -f "$cfgfile"; exit 1)
17023 if test x"$xsi_shell" = xyes; then
17024 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17028 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17029 \ * ) func_dirname_result="${3}" ;;\
17031 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17032 && mv -f "$cfgfile.tmp" "$cfgfile" \
17033 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17034 test 0 -eq $? || _lt_function_replace_fail=:
17037 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17040 \ func_basename_result="${1##*/}"\
17041 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17042 && mv -f "$cfgfile.tmp" "$cfgfile" \
17043 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17044 test 0 -eq $? || _lt_function_replace_fail=:
17047 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17048 func_dirname_and_basename ()\
17051 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17052 \ * ) func_dirname_result="${3}" ;;\
17054 \ func_basename_result="${1##*/}"\
17055 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17056 && mv -f "$cfgfile.tmp" "$cfgfile" \
17057 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17058 test 0 -eq $? || _lt_function_replace_fail=:
17061 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17064 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17065 \ # positional parameters, so assign one to ordinary parameter first.\
17066 \ func_stripname_result=${3}\
17067 \ func_stripname_result=${func_stripname_result#"${1}"}\
17068 \ func_stripname_result=${func_stripname_result%"${2}"}\
17069 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17070 && mv -f "$cfgfile.tmp" "$cfgfile" \
17071 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17072 test 0 -eq $? || _lt_function_replace_fail=:
17075 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17076 func_split_long_opt ()\
17078 \ func_split_long_opt_name=${1%%=*}\
17079 \ func_split_long_opt_arg=${1#*=}\
17080 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17081 && mv -f "$cfgfile.tmp" "$cfgfile" \
17082 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17083 test 0 -eq $? || _lt_function_replace_fail=:
17086 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17087 func_split_short_opt ()\
17089 \ func_split_short_opt_arg=${1#??}\
17090 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17091 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17092 && mv -f "$cfgfile.tmp" "$cfgfile" \
17093 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17094 test 0 -eq $? || _lt_function_replace_fail=:
17097 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17101 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17102 \ *) func_lo2o_result=${1} ;;\
17104 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17105 && mv -f "$cfgfile.tmp" "$cfgfile" \
17106 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17107 test 0 -eq $? || _lt_function_replace_fail=:
17110 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17113 func_xform_result=${1%.*}.lo\
17114 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17115 && mv -f "$cfgfile.tmp" "$cfgfile" \
17116 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17117 test 0 -eq $? || _lt_function_replace_fail=:
17120 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17123 func_arith_result=$(( $* ))\
17124 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17125 && mv -f "$cfgfile.tmp" "$cfgfile" \
17126 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17127 test 0 -eq $? || _lt_function_replace_fail=:
17130 sed -e '/^func_len ()$/,/^} # func_len /c\
17133 func_len_result=${#1}\
17134 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17135 && mv -f "$cfgfile.tmp" "$cfgfile" \
17136 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17137 test 0 -eq $? || _lt_function_replace_fail=:
17141 if test x"$lt_shell_append" = xyes; then
17142 sed -e '/^func_append ()$/,/^} # func_append /c\
17145 eval "${1}+=\\${2}"\
17146 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17147 && mv -f "$cfgfile.tmp" "$cfgfile" \
17148 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17149 test 0 -eq $? || _lt_function_replace_fail=:
17152 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17153 func_append_quoted ()\
17155 \ func_quote_for_eval "${2}"\
17156 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17157 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17158 && mv -f "$cfgfile.tmp" "$cfgfile" \
17159 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17160 test 0 -eq $? || _lt_function_replace_fail=:
17163 # Save a `func_append' function call where possible by direct use of '+='
17164 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17165 && mv -f "$cfgfile.tmp" "$cfgfile" \
17166 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17167 test 0 -eq $? || _lt_function_replace_fail=:
17169 # Save a `func_append' function call even when '+=' is not available
17170 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17171 && mv -f "$cfgfile.tmp" "$cfgfile" \
17172 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17173 test 0 -eq $? || _lt_function_replace_fail=:
17176 if test x"$_lt_function_replace_fail" = x":"; then
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17178 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17182 mv -f "$cfgfile" "$ofile" ||
17183 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17194 ac_clean_files=$ac_clean_files_save
17196 test $ac_write_fail = 0 ||
17197 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17200 # configure is writing to config.log, and then calls config.status.
17201 # config.status does its own redirection, appending to config.log.
17202 # Unfortunately, on DOS this fails, as config.log is still kept open
17203 # by configure, so config.status won't be able to write to it; its
17204 # output is simply discarded. So we exec the FD to /dev/null,
17205 # effectively closing config.log, so it can be properly (re)opened and
17206 # appended to by config.status. When coming back to configure, we
17207 # need to make the FD available again.
17208 if test "$no_create" != yes; then
17210 ac_config_status_args=
17211 test "$silent" = yes &&
17212 ac_config_status_args="$ac_config_status_args --quiet"
17214 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17216 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17217 # would make configure fail if this is the last instruction.
17218 $ac_cs_success || as_fn_exit 1
17220 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17222 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
17229 Using python interpreter: $PYTHON
17230 cairo support: $enable_cairo
17231 thread support: $enable_thread
17232 code coverage support: $enable_code_coverage
17237 Using python interpreter: $PYTHON
17238 cairo support: $enable_cairo
17239 thread support: $enable_thread
17240 code coverage support: $enable_code_coverage