2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pygobject 3.21.91.
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.21.91'
595 PACKAGE_STRING='pygobject 3.21.91'
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
642 CODE_COVERAGE_LDFLAGS
647 CODE_COVERAGE_ENABLED
648 CODE_COVERAGE_ENABLED_FALSE
649 CODE_COVERAGE_ENABLED_TRUE
651 INTROSPECTION_COMPILER
652 INTROSPECTION_SCANNER
671 GLIB_COMPILE_RESOURCES
755 INSTALL_STRIP_PROGRAM
774 PYGOBJECT_MICRO_VERSION
775 PYGOBJECT_MINOR_VERSION
776 PYGOBJECT_MAJOR_VERSION
806 program_transform_name
819 enable_option_checking
826 enable_dependency_tracking
835 enable_compile_warnings
840 ac_precious_vars='build_alias
866 # Initialize some variables set by options.
868 ac_init_version=false
869 ac_unrecognized_opts=
871 # The variables have the same names as the options, with
872 # dashes changed to underlines.
880 program_transform_name=s,x,x,
888 # Installation directory options.
889 # These are left unexpanded so users can "make install exec_prefix=/foo"
890 # and all the variables that are supposed to be based on exec_prefix
891 # by default will actually change.
892 # Use braces instead of parens because sh, perl, etc. also accept them.
893 # (The list follows the same order as the GNU Coding Standards.)
894 bindir='${exec_prefix}/bin'
895 sbindir='${exec_prefix}/sbin'
896 libexecdir='${exec_prefix}/libexec'
897 datarootdir='${prefix}/share'
898 datadir='${datarootdir}'
899 sysconfdir='${prefix}/etc'
900 sharedstatedir='${prefix}/com'
901 localstatedir='${prefix}/var'
902 runstatedir='${localstatedir}/run'
903 includedir='${prefix}/include'
904 oldincludedir='/usr/include'
905 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
906 infodir='${datarootdir}/info'
911 libdir='${exec_prefix}/lib'
912 localedir='${datarootdir}/locale'
913 mandir='${datarootdir}/man'
919 # If the previous option needs an argument, assign it.
920 if test -n "$ac_prev"; then
921 eval $ac_prev=\$ac_option
927 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932 # Accept the important Cygnus configure options, so we can diagnose typos.
934 case $ac_dashdash$ac_option in
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
956 cache_file=config.cache ;;
958 -datadir | --datadir | --datadi | --datad)
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
984 eval enable_$ac_useropt=no ;;
986 -docdir | --docdir | --docdi | --doc | --do)
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996 -enable-* | --enable-*)
997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 as_fn_error $? "invalid feature name: $ac_useropt"
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1005 "enable_$ac_useropt"
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1010 eval enable_$ac_useropt=\$ac_optarg ;;
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1041 htmldir=$ac_optarg ;;
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1055 -libdir | --libdir | --libdi | --libd)
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1146 -psdir | --psdir | --psdi | --psd | --ps)
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1155 -runstatedir | --runstatedir | --runstatedi | --runstated \
1156 | --runstate | --runstat | --runsta | --runst | --runs \
1157 | --run | --ru | --r)
1158 ac_prev=runstatedir ;;
1159 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1160 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1161 | --run=* | --ru=* | --r=*)
1162 runstatedir=$ac_optarg ;;
1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168 sbindir=$ac_optarg ;;
1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172 | --sharedst | --shareds | --shared | --share | --shar \
1174 ac_prev=sharedstatedir ;;
1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179 sharedstatedir=$ac_optarg ;;
1181 -site | --site | --sit)
1183 -site=* | --site=* | --sit=*)
1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189 srcdir=$ac_optarg ;;
1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192 | --syscon | --sysco | --sysc | --sys | --sy)
1193 ac_prev=sysconfdir ;;
1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196 sysconfdir=$ac_optarg ;;
1198 -target | --target | --targe | --targ | --tar | --ta | --t)
1199 ac_prev=target_alias ;;
1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201 target_alias=$ac_optarg ;;
1203 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 -version | --version | --versio | --versi | --vers | -V)
1207 ac_init_version=: ;;
1210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1223 eval with_$ac_useropt=\$ac_optarg ;;
1225 -without-* | --without-*)
1226 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error $? "invalid package name: $ac_useropt"
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1239 eval with_$ac_useropt=no ;;
1242 # Obsolete; use --with-x.
1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246 | --x-incl | --x-inc | --x-in | --x-i)
1247 ac_prev=x_includes ;;
1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250 x_includes=$ac_optarg ;;
1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254 ac_prev=x_libraries ;;
1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257 x_libraries=$ac_optarg ;;
1259 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1260 Try \`$0 --help' for more information"
1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265 # Reject names that are not valid shell variable names.
1266 case $ac_envvar in #(
1267 '' | [0-9]* | *[!_$as_cr_alnum]* )
1268 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1270 eval $ac_envvar=\$ac_optarg
1271 export $ac_envvar ;;
1274 # FIXME: should be removed in autoconf 3.0.
1275 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1278 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1284 if test -n "$ac_prev"; then
1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286 as_fn_error $? "missing argument to $ac_option"
1289 if test -n "$ac_unrecognized_opts"; then
1290 case $enable_option_checking in
1292 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1293 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297 # Check all directory arguments for consistency.
1298 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299 datadir sysconfdir sharedstatedir localstatedir includedir \
1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301 libdir localedir mandir runstatedir
1303 eval ac_val=\$$ac_var
1304 # Remove trailing slashes.
1307 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1308 eval $ac_var=\$ac_val;;
1310 # Be sure to have absolute directory names.
1312 [\\/$]* | ?:[\\/]* ) continue;;
1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1318 # There might be people who depend on the old broken behavior: `$host'
1319 # used to hold the argument of --host etc.
1320 # FIXME: To remove some day.
1323 target=$target_alias
1325 # FIXME: To remove some day.
1326 if test "x$host_alias" != x; then
1327 if test "x$build_alias" = x; then
1328 cross_compiling=maybe
1329 elif test "x$build_alias" != "x$host_alias"; then
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337 test "$silent" = yes && exec 6>/dev/null
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 as_fn_error $? "working directory cannot be determined"
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345 as_fn_error $? "pwd does not report name of working directory"
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350 ac_srcdir_defaulted=yes
1351 # Try the directory containing this script, then the parent directory.
1352 ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$as_myself" : 'X\(//\)[^/]' \| \
1355 X"$as_myself" : 'X\(//\)$' \| \
1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 $as_echo X"$as_myself" |
1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1380 ac_srcdir_defaulted=no
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 # Report the --help message.
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1414 \`configure' configures pygobject 3.21.91 to adapt to many kinds of systems.
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1421 Defaults for the options are specified in brackets.
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print \`checking ...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for \`--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1445 For better control, use the options below.
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/pygobject]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1473 --program-prefix=PREFIX prepend PREFIX to installed program names
1474 --program-suffix=SUFFIX append SUFFIX to installed program names
1475 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1478 --build=BUILD configure for building on BUILD [guessed]
1479 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1483 if test -n "$ac_init_help"; then
1484 case $ac_init_help in
1485 short | recursive ) echo "Configuration of pygobject 3.21.91:";;
1490 --disable-option-checking ignore unrecognized --enable/--with options
1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1493 --enable-silent-rules less verbose build output (undo: "make V=1")
1494 --disable-silent-rules verbose build output (undo: "make V=0")
1495 --enable-static[=PKGS] build static libraries [default=no]
1496 --enable-shared[=PKGS] build shared libraries [default=yes]
1497 --enable-fast-install[=PKGS]
1498 optimize for fast installation [default=yes]
1499 --enable-dependency-tracking
1500 do not reject slow dependency extractors
1501 --disable-dependency-tracking
1502 speeds up one-time build
1503 --disable-libtool-lock avoid locking (might break parallel builds)
1504 --disable-thread Disable pygobject threading support
1505 --disable-glibtest do not try to compile and run a test GLIB program
1506 --enable-cairo Enable Cairo bindings using introspection
1508 --enable-compile-warnings=[no/minimum/yes/maximum/error]
1509 Turn on compiler warnings
1510 --enable-iso-c Try to warn if code is not ISO C
1511 --enable-code-coverage Whether to enable code coverage support
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1518 --with-aix-soname=aix|svr4|both
1519 shared library versioning (aka "SONAME") variant to
1520 provide on AIX, [default=aix].
1521 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1522 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1523 compiler's sysroot if not specified).
1524 --with-python=PATH Path to Python interpreter; searches $PATH if only a
1525 program name is given; if not given, searches for a
1526 few standard names such as "python3" or "python2"
1527 --without-common For package maintainers: do not install Python
1528 version independent files
1529 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1531 Some influential environment variables:
1532 CC C compiler command
1533 CFLAGS C compiler flags
1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535 nonstandard directory <lib dir>
1536 LIBS libraries to pass to the linker, e.g. -l<library>
1537 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538 you have headers in a nonstandard directory <include dir>
1540 User-defined run-time library search path.
1542 PYTHON the Python interpreter
1543 PKG_CONFIG path to pkg-config utility
1545 directories to add to pkg-config's search path
1547 path overriding pkg-config's built-in search path
1548 FFI_CFLAGS C compiler flags for FFI, overriding pkg-config
1549 FFI_LIBS linker flags for FFI, overriding pkg-config
1550 GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
1551 GIO_LIBS linker flags for GIO, overriding pkg-config
1552 GI_CFLAGS C compiler flags for GI, overriding pkg-config
1553 GI_LIBS linker flags for GI, overriding pkg-config
1555 C compiler flags for CAIRO, overriding pkg-config
1556 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1558 C compiler flags for PYCAIRO, overriding pkg-config
1560 linker flags for PYCAIRO, overriding pkg-config
1562 Use these variables to override the choices made by `configure' or to help
1563 it to find libraries and programs with nonstandard names/locations.
1565 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
1566 pygobject home page: <https://wiki.gnome.org/Projects/PyGObject/>.
1571 if test "$ac_init_help" = "recursive"; then
1572 # If there are subdirs, report their specific --help.
1573 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1574 test -d "$ac_dir" ||
1575 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1580 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1583 # A ".." for each directory in $ac_dir_suffix.
1584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1585 case $ac_top_builddir_sub in
1586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1590 ac_abs_top_builddir=$ac_pwd
1591 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1592 # for backward compatibility:
1593 ac_top_builddir=$ac_top_build_prefix
1596 .) # We are building in place.
1598 ac_top_srcdir=$ac_top_builddir_sub
1599 ac_abs_top_srcdir=$ac_pwd ;;
1600 [\\/]* | ?:[\\/]* ) # Absolute name.
1601 ac_srcdir=$srcdir$ac_dir_suffix;
1602 ac_top_srcdir=$srcdir
1603 ac_abs_top_srcdir=$srcdir ;;
1605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1606 ac_top_srcdir=$ac_top_build_prefix$srcdir
1607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1609 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1611 cd "$ac_dir" || { ac_status=$?; continue; }
1612 # Check for guested configure.
1613 if test -f "$ac_srcdir/configure.gnu"; then
1615 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1616 elif test -f "$ac_srcdir/configure"; then
1618 $SHELL "$ac_srcdir/configure" --help=recursive
1620 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1622 cd "$ac_pwd" || { ac_status=$?; break; }
1626 test -n "$ac_init_help" && exit $ac_status
1627 if $ac_init_version; then
1629 pygobject configure 3.21.91
1630 generated by GNU Autoconf 2.69
1632 Copyright (C) 2012 Free Software Foundation, Inc.
1633 This configure script is free software; the Free Software Foundation
1634 gives unlimited permission to copy, distribute and modify it.
1639 ## ------------------------ ##
1640 ## Autoconf initialization. ##
1641 ## ------------------------ ##
1643 # ac_fn_c_try_compile LINENO
1644 # --------------------------
1645 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_compile ()
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 rm -f conftest.$ac_objext
1650 if { { ac_try="$ac_compile"
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_compile") 2>conftest.err
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && {
1666 test -z "$ac_c_werror_flag" ||
1667 test ! -s conftest.err
1668 } && test -s conftest.$ac_objext; then :
1671 $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677 as_fn_set_status $ac_retval
1679 } # ac_fn_c_try_compile
1681 # ac_fn_c_try_link LINENO
1682 # -----------------------
1683 # Try to link conftest.$ac_ext, and return whether this succeeded.
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext conftest$ac_exeext
1688 if { { ac_try="$ac_link"
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_link") 2>conftest.err
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest$ac_exeext && {
1707 test "$cross_compiling" = yes ||
1708 test -x conftest$ac_exeext
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1719 # interfere with the next link command; also delete a directory that is
1720 # left behind by Apple's compiler. We do this before executing the actions.
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1725 } # ac_fn_c_try_link
1727 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1728 # -------------------------------------------------------
1729 # Tests whether HEADER exists and can be compiled using the include files in
1730 # INCLUDES, setting the cache variable VAR accordingly.
1731 ac_fn_c_check_header_compile ()
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval \${$3+:} false; then :
1737 $as_echo_n "(cached) " >&6
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h. */
1744 if ac_fn_c_try_compile "$LINENO"; then :
1749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 $as_echo "$ac_res" >&6; }
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 } # ac_fn_c_check_header_compile
1758 # ac_fn_c_try_cpp LINENO
1759 # ----------------------
1760 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { { ac_try="$ac_cpp conftest.$ac_ext"
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } > conftest.i && {
1780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 as_fn_set_status $ac_retval
1795 # ac_fn_c_try_run LINENO
1796 # ----------------------
1797 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1798 # that executables *can* be run.
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 if { { ac_try="$ac_link"
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_link") 2>&5
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1813 { { case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_try") 2>&5
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; }; }; then :
1825 $as_echo "$as_me: program exited with status $ac_status" >&5
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1829 ac_retval=$ac_status
1831 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1837 # ac_fn_c_check_func LINENO FUNC VAR
1838 # ----------------------------------
1839 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1840 ac_fn_c_check_func ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if eval \${$3+:} false; then :
1846 $as_echo_n "(cached) " >&6
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1852 #define $2 innocuous_$2
1854 /* System header to define __stub macros and hopefully few prototypes,
1855 which can conflict with char $2 (); below.
1856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1857 <limits.h> exists even on freestanding compilers. */
1860 # include <limits.h>
1862 # include <assert.h>
1867 /* Override any GCC internal prototype to avoid an error.
1868 Use char because int might match the return type of a GCC
1869 builtin and then its argument prototype would still apply. */
1874 /* The GNU C library defines this for functions which it implements
1875 to always fail with ENOSYS. Some functions are actually named
1876 something starting with __ and the normal name is an alias. */
1877 #if defined __stub_$2 || defined __stub___$2
1889 if ac_fn_c_try_link "$LINENO"; then :
1894 rm -f core conftest.err conftest.$ac_objext \
1895 conftest$ac_exeext conftest.$ac_ext
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 } # ac_fn_c_check_func
1903 cat >config.log <<_ACEOF
1904 This file contains any messages produced by compilers while
1905 running configure, to aid debugging if configure makes a mistake.
1907 It was created by pygobject $as_me 3.21.91, which was
1908 generated by GNU Autoconf 2.69. Invocation command line was
1920 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1921 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1922 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1923 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1924 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1926 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1927 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1929 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1930 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1931 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1932 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1933 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1934 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1935 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 test -z "$as_dir" && as_dir=.
1944 $as_echo "PATH: $as_dir"
1960 # Keep a trace of the command line.
1961 # Strip out --no-create and --no-recursion so they do not pile up.
1962 # Strip out --silent because we don't want to record it for future runs.
1963 # Also quote any args containing shell meta-characters.
1964 # Make two passes to allow for proper duplicate-argument suppression.
1968 ac_must_keep_next=false
1974 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1976 | -silent | --silent | --silen | --sile | --sil)
1979 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1982 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1984 as_fn_append ac_configure_args1 " '$ac_arg'"
1985 if test $ac_must_keep_next = true; then
1986 ac_must_keep_next=false # Got value, back to normal.
1989 *=* | --config-cache | -C | -disable-* | --disable-* \
1990 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1991 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1992 | -with-* | --with-* | -without-* | --without-* | --x)
1993 case "$ac_configure_args0 " in
1994 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1997 -* ) ac_must_keep_next=true ;;
2000 as_fn_append ac_configure_args " '$ac_arg'"
2005 { ac_configure_args0=; unset ac_configure_args0;}
2006 { ac_configure_args1=; unset ac_configure_args1;}
2008 # When interrupted or exit'd, cleanup temporary files, and complete
2009 # config.log. We remove comments because anyway the quotes in there
2010 # would cause problems or look ugly.
2011 # WARNING: Use '\'' to represent an apostrophe within the trap.
2012 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2013 trap 'exit_status=$?
2014 # Save into config.log some information that might help in debugging.
2018 $as_echo "## ---------------- ##
2019 ## Cache variables. ##
2020 ## ---------------- ##"
2022 # The following way of writing the cache mishandles newlines in values,
2024 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2025 eval ac_val=\$$ac_var
2029 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2030 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2033 _ | IFS | as_nl) ;; #(
2034 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2035 *) { eval $ac_var=; unset $ac_var;} ;;
2040 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2041 *${as_nl}ac_space=\ *)
2043 "s/'\''/'\''\\\\'\'''\''/g;
2044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2047 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2054 $as_echo "## ----------------- ##
2055 ## Output variables. ##
2056 ## ----------------- ##"
2058 for ac_var in $ac_subst_vars
2060 eval ac_val=\$$ac_var
2062 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064 $as_echo "$ac_var='\''$ac_val'\''"
2068 if test -n "$ac_subst_files"; then
2069 $as_echo "## ------------------- ##
2070 ## File substitutions. ##
2071 ## ------------------- ##"
2073 for ac_var in $ac_subst_files
2075 eval ac_val=\$$ac_var
2077 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2079 $as_echo "$ac_var='\''$ac_val'\''"
2084 if test -s confdefs.h; then
2085 $as_echo "## ----------- ##
2092 test "$ac_signal" != 0 &&
2093 $as_echo "$as_me: caught signal $ac_signal"
2094 $as_echo "$as_me: exit $exit_status"
2096 rm -f core *.core core.conftest.* &&
2097 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2100 for ac_signal in 1 2 13 15; do
2101 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2105 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2106 rm -f -r conftest* confdefs.h
2108 $as_echo "/* confdefs.h */" > confdefs.h
2110 # Predefined preprocessor variables.
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_NAME "$PACKAGE_NAME"
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_STRING "$PACKAGE_STRING"
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_URL "$PACKAGE_URL"
2137 # Let the site file select an alternate cache file if it wants to.
2138 # Prefer an explicitly selected file to automatically selected ones.
2141 if test -n "$CONFIG_SITE"; then
2142 # We do not want a PATH search for config.site.
2143 case $CONFIG_SITE in #((
2144 -*) ac_site_file1=./$CONFIG_SITE;;
2145 */*) ac_site_file1=$CONFIG_SITE;;
2146 *) ac_site_file1=./$CONFIG_SITE;;
2148 elif test "x$prefix" != xNONE; then
2149 ac_site_file1=$prefix/share/config.site
2150 ac_site_file2=$prefix/etc/config.site
2152 ac_site_file1=$ac_default_prefix/share/config.site
2153 ac_site_file2=$ac_default_prefix/etc/config.site
2155 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2157 test "x$ac_site_file" = xNONE && continue
2158 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2160 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2161 sed 's/^/| /' "$ac_site_file" >&5
2163 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2165 as_fn_error $? "failed to load site script $ac_site_file
2166 See \`config.log' for more details" "$LINENO" 5; }
2170 if test -r "$cache_file"; then
2171 # Some versions of bash will fail to source /dev/null (special files
2172 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2173 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2175 $as_echo "$as_me: loading cache $cache_file" >&6;}
2177 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2178 *) . "./$cache_file";;
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2183 $as_echo "$as_me: creating cache $cache_file" >&6;}
2187 # Check that the precious variables saved in the cache have kept the same
2189 ac_cache_corrupted=false
2190 for ac_var in $ac_precious_vars; do
2191 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2192 eval ac_new_set=\$ac_env_${ac_var}_set
2193 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2194 eval ac_new_val=\$ac_env_${ac_var}_value
2195 case $ac_old_set,$ac_new_set in
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2198 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2199 ac_cache_corrupted=: ;;
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2202 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2203 ac_cache_corrupted=: ;;
2206 if test "x$ac_old_val" != "x$ac_new_val"; then
2207 # differences in whitespace do not lead to failure.
2208 ac_old_val_w=`echo x $ac_old_val`
2209 ac_new_val_w=`echo x $ac_new_val`
2210 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2212 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2213 ac_cache_corrupted=:
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2216 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2217 eval $ac_var=\$ac_old_val
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2220 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2222 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2225 # Pass precious variables to config.status.
2226 if test "$ac_new_set" = set; then
2228 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2229 *) ac_arg=$ac_var=$ac_new_val ;;
2231 case " $ac_configure_args " in
2232 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2233 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2237 if $ac_cache_corrupted; then
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2241 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2242 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2244 ## -------------------- ##
2245 ## Main body of script. ##
2246 ## -------------------- ##
2249 ac_cpp='$CPP $CPPFLAGS'
2250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2255 ACLOCAL_AMFLAGS="-I m4 -I ."
2261 $as_echo "#define PYGOBJECT_MAJOR_VERSION 3" >>confdefs.h
2263 PYGOBJECT_MAJOR_VERSION=3
2266 $as_echo "#define PYGOBJECT_MINOR_VERSION 21" >>confdefs.h
2268 PYGOBJECT_MINOR_VERSION=21
2271 $as_echo "#define PYGOBJECT_MICRO_VERSION 91" >>confdefs.h
2273 PYGOBJECT_MICRO_VERSION=91
2276 ac_config_headers="$ac_config_headers config.h"
2278 # Check whether --enable-silent-rules was given.
2279 if test "${enable_silent_rules+set}" = set; then :
2280 enableval=$enable_silent_rules;
2283 case $enable_silent_rules in # (((
2284 yes) AM_DEFAULT_VERBOSITY=0;;
2285 no) AM_DEFAULT_VERBOSITY=1;;
2286 *) AM_DEFAULT_VERBOSITY=0;;
2288 am_make=${MAKE-make}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2290 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2291 if ${am_cv_make_support_nested_variables+:} false; then :
2292 $as_echo_n "(cached) " >&6
2294 if $as_echo 'TRUE=$(BAR$(V))
2300 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2301 am_cv_make_support_nested_variables=yes
2303 am_cv_make_support_nested_variables=no
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2307 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2308 if test $am_cv_make_support_nested_variables = yes; then
2310 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2312 AM_V=$AM_DEFAULT_VERBOSITY
2313 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2317 # 1.12.6 to get a py-compile supporting newer Python 3 versions.
2318 # See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=8847
2319 am__api_version='1.15'
2322 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2323 if test -f "$ac_dir/install-sh"; then
2325 ac_install_sh="$ac_aux_dir/install-sh -c"
2327 elif test -f "$ac_dir/install.sh"; then
2329 ac_install_sh="$ac_aux_dir/install.sh -c"
2331 elif test -f "$ac_dir/shtool"; then
2333 ac_install_sh="$ac_aux_dir/shtool install -c"
2337 if test -z "$ac_aux_dir"; then
2338 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2341 # These three variables are undocumented and unsupported,
2342 # and are intended to be withdrawn in a future Autoconf release.
2343 # They can cause serious problems if a builder's source tree is in a directory
2344 # whose full name contains unusual characters.
2345 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2346 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2347 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2350 # Find a good install program. We prefer a C program (faster),
2351 # so one script is as good as another. But avoid the broken or
2352 # incompatible versions:
2353 # SysV /etc/install, /usr/sbin/install
2354 # SunOS /usr/etc/install
2355 # IRIX /sbin/install
2357 # AmigaOS /C/install, which installs bootblocks on floppy discs
2358 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2359 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2360 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2361 # OS/2's system install, which has a completely different semantic
2362 # ./install, which can be erroneously created by make from ./install.sh.
2363 # Reject install programs that cannot install multiple files.
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2365 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2366 if test -z "$INSTALL"; then
2367 if ${ac_cv_path_install+:} false; then :
2368 $as_echo_n "(cached) " >&6
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 test -z "$as_dir" && as_dir=.
2375 # Account for people who put trailing slashes in PATH elements.
2376 case $as_dir/ in #((
2377 ./ | .// | /[cC]/* | \
2378 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2379 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2382 # OSF1 and SCO ODT 3.0 have their own names for install.
2383 # Don't use installbsd from OSF since it installs stuff as root
2385 for ac_prog in ginstall scoinst install; do
2386 for ac_exec_ext in '' $ac_executable_extensions; do
2387 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2388 if test $ac_prog = install &&
2389 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2390 # AIX install. It has an incompatible calling convention.
2392 elif test $ac_prog = install &&
2393 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2394 # program-specific install script used by HP pwplus--don't use.
2397 rm -rf conftest.one conftest.two conftest.dir
2398 echo one > conftest.one
2399 echo two > conftest.two
2401 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2402 test -s conftest.one && test -s conftest.two &&
2403 test -s conftest.dir/conftest.one &&
2404 test -s conftest.dir/conftest.two
2406 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2419 rm -rf conftest.one conftest.two conftest.dir
2422 if test "${ac_cv_path_install+set}" = set; then
2423 INSTALL=$ac_cv_path_install
2425 # As a last resort, use the slow shell script. Don't cache a
2426 # value for INSTALL within a source directory, because that will
2427 # break other packages using the cache if that directory is
2428 # removed, or if the value is a relative name.
2429 INSTALL=$ac_install_sh
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2433 $as_echo "$INSTALL" >&6; }
2435 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2436 # It thinks the first close brace ends the variable substitution.
2437 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2439 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2441 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2444 $as_echo_n "checking whether build environment is sane... " >&6; }
2445 # Reject unsafe characters in $srcdir or the absolute working directory
2446 # name. Accept space and tab only in the latter.
2450 *[\\\"\#\$\&\'\`$am_lf]*)
2451 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2454 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2455 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2458 # Do 'set' in a subshell so we don't clobber the current shell's
2459 # arguments. Must try -L first in case configure is actually a
2460 # symlink; some systems play weird games with the mod time of symlinks
2461 # (eg FreeBSD returns the mod time of the symlink's containing
2465 for am_try in 1 2; do
2466 echo "timestamp, slept: $am_has_slept" > conftest.file
2467 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2468 if test "$*" = "X"; then
2470 set X `ls -t "$srcdir/configure" conftest.file`
2472 if test "$*" != "X $srcdir/configure conftest.file" \
2473 && test "$*" != "X conftest.file $srcdir/configure"; then
2475 # If neither matched, then we have a broken ls. This can happen
2476 # if, for instance, CONFIG_SHELL is bash and it inherits a
2477 # broken ls alias from the environment. This has actually
2478 # happened. Such a system could not be considered "sane".
2479 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2480 alias in your environment" "$LINENO" 5
2482 if test "$2" = conftest.file || test $am_try -eq 2; then
2489 test "$2" = conftest.file
2495 as_fn_error $? "newly created file is older than distributed files!
2496 Check your system clock" "$LINENO" 5
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2499 $as_echo "yes" >&6; }
2500 # If we didn't sleep, we still need to ensure time stamps of config.status and
2501 # generated files are strictly newer.
2503 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2510 test "$program_prefix" != NONE &&
2511 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2512 # Use a double $ so make ignores it.
2513 test "$program_suffix" != NONE &&
2514 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2515 # Double any \ or $.
2516 # By default was `s,x,x', remove it if useless.
2517 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2518 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2520 # Expand $ac_aux_dir to an absolute path.
2521 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2523 if test x"${MISSING+set}" != xset; then
2526 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2528 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2531 # Use eval to expand $SHELL
2532 if eval "$MISSING --is-lightweight"; then
2533 am_missing_run="$MISSING "
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2537 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2540 if test x"${install_sh+set}" != xset; then
2543 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2545 install_sh="\${SHELL} $am_aux_dir/install-sh"
2549 # Installed binaries are usually stripped using 'strip' when the user
2550 # run "make install-strip". However 'strip' might not be the right
2551 # tool to use in cross-compilation environments, therefore Automake
2552 # will honor the 'STRIP' environment variable to overrule this program.
2553 if test "$cross_compiling" != no; then
2554 if test -n "$ac_tool_prefix"; then
2555 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2556 set dummy ${ac_tool_prefix}strip; ac_word=$2
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2558 $as_echo_n "checking for $ac_word... " >&6; }
2559 if ${ac_cv_prog_STRIP+:} false; then :
2560 $as_echo_n "(cached) " >&6
2562 if test -n "$STRIP"; then
2563 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2572 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 STRIP=$ac_cv_prog_STRIP
2583 if test -n "$STRIP"; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2585 $as_echo "$STRIP" >&6; }
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2588 $as_echo "no" >&6; }
2593 if test -z "$ac_cv_prog_STRIP"; then
2595 # Extract the first word of "strip", so it can be a program name with args.
2596 set dummy strip; ac_word=$2
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2598 $as_echo_n "checking for $ac_word... " >&6; }
2599 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2600 $as_echo_n "(cached) " >&6
2602 if test -n "$ac_ct_STRIP"; then
2603 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 test -z "$as_dir" && as_dir=.
2610 for ac_exec_ext in '' $ac_executable_extensions; do
2611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2612 ac_cv_prog_ac_ct_STRIP="strip"
2613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2623 if test -n "$ac_ct_STRIP"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2625 $as_echo "$ac_ct_STRIP" >&6; }
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2628 $as_echo "no" >&6; }
2631 if test "x$ac_ct_STRIP" = x; then
2634 case $cross_compiling:$ac_tool_warned in
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2638 ac_tool_warned=yes ;;
2643 STRIP="$ac_cv_prog_STRIP"
2647 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2650 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2651 if test -z "$MKDIR_P"; then
2652 if ${ac_cv_path_mkdir+:} false; then :
2653 $as_echo_n "(cached) " >&6
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2659 test -z "$as_dir" && as_dir=.
2660 for ac_prog in mkdir gmkdir; do
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2663 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2664 'mkdir (GNU coreutils) '* | \
2665 'mkdir (coreutils) '* | \
2666 'mkdir (fileutils) '4.1*)
2667 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2677 test -d ./--version && rmdir ./--version
2678 if test "${ac_cv_path_mkdir+set}" = set; then
2679 MKDIR_P="$ac_cv_path_mkdir -p"
2681 # As a last resort, use the slow shell script. Don't cache a
2682 # value for MKDIR_P within a source directory, because that will
2683 # break other packages using the cache if that directory is
2684 # removed, or if the value is a relative name.
2685 MKDIR_P="$ac_install_sh -d"
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2689 $as_echo "$MKDIR_P" >&6; }
2691 for ac_prog in gawk mawk nawk awk
2693 # Extract the first word of "$ac_prog", so it can be a program name with args.
2694 set dummy $ac_prog; ac_word=$2
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if ${ac_cv_prog_AWK+:} false; then :
2698 $as_echo_n "(cached) " >&6
2700 if test -n "$AWK"; then
2701 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710 ac_cv_prog_AWK="$ac_prog"
2711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 if test -n "$AWK"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2723 $as_echo "$AWK" >&6; }
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2730 test -n "$AWK" && break
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2734 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2736 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2737 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2738 $as_echo_n "(cached) " >&6
2740 cat >conftest.make <<\_ACEOF
2743 @echo '@@@%%%=$(MAKE)=@@@%%%'
2745 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2746 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2748 eval ac_cv_prog_make_${ac_make}_set=yes;;
2750 eval ac_cv_prog_make_${ac_make}_set=no;;
2754 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2756 $as_echo "yes" >&6; }
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760 $as_echo "no" >&6; }
2761 SET_MAKE="MAKE=${MAKE-make}"
2764 rm -rf .tst 2>/dev/null
2765 mkdir .tst 2>/dev/null
2766 if test -d .tst; then
2771 rmdir .tst 2>/dev/null
2773 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2774 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2775 # is not polluted with repeated "-I."
2776 am__isrc=' -I$(srcdir)'
2777 # test to see if srcdir already configured
2778 if test -f $srcdir/config.status; then
2779 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2783 # test whether we have cygpath
2784 if test -z "$CYGPATH_W"; then
2785 if (cygpath --version) >/dev/null 2>/dev/null; then
2786 CYGPATH_W='cygpath -w'
2793 # Define the identity of the package.
2798 cat >>confdefs.h <<_ACEOF
2799 #define PACKAGE "$PACKAGE"
2803 cat >>confdefs.h <<_ACEOF
2804 #define VERSION "$VERSION"
2807 # Some tools Automake needs.
2809 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2812 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2815 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2818 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2821 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2823 # For better backward compatibility. To be removed once Automake 1.9.x
2824 # dies out for good. For more background, see:
2825 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2826 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2827 mkdir_p='$(MKDIR_P)'
2829 # We need awk for the "check" target (and possibly the TAP driver). The
2830 # system "awk" is bad on some platforms.
2831 # Always define AMTAR for backward compatibility. Yes, it's still used
2832 # in the wild :-( We should find a proper way to deprecate it ...
2836 # We'll loop over all known methods to create a tar archive until one works.
2837 _am_tools='gnutar pax cpio none'
2839 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2846 # POSIX will say in a future version that running "rm -f" with no argument
2847 # is OK; and we want to be able to make that assumption in our Makefile
2848 # recipes. So use an aggressive probe to check that the usage we want is
2849 # actually supported "in the wild" to an acceptable degree.
2850 # See automake bug#10828.
2851 # To make any issue more visible, cause the running configure to be aborted
2852 # by default if the 'rm' program in use doesn't match our expectations; the
2853 # user can still override this though.
2854 if rm -f && rm -fr && rm -rf; then : OK; else
2858 Your 'rm' program seems unable to run without file operands specified
2859 on the command line, even when the '-f' option is present. This is contrary
2860 to the behaviour of most rm programs out there, and not conforming with
2861 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2863 Please tell bug-automake@gnu.org about your system, including the value
2864 of your $PATH and any error possibly output before this message. This
2865 can help us improve future automake versions.
2868 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2869 echo 'Configuration will proceed anyway, since you have set the' >&2
2870 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2874 Aborting the configuration process, to ensure you take notice of the issue.
2876 You can download and install GNU coreutils to get an 'rm' implementation
2877 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2879 If you want to complete the configuration process using your problematic
2880 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2881 to "yes", and re-run configure.
2884 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2889 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2891 # Make sure we can run config.sub.
2892 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2893 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2896 $as_echo_n "checking build system type... " >&6; }
2897 if ${ac_cv_build+:} false; then :
2898 $as_echo_n "(cached) " >&6
2900 ac_build_alias=$build_alias
2901 test "x$ac_build_alias" = x &&
2902 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2903 test "x$ac_build_alias" = x &&
2904 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2905 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2906 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2910 $as_echo "$ac_cv_build" >&6; }
2911 case $ac_cv_build in
2913 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2916 ac_save_IFS=$IFS; IFS='-'
2922 # Remember, the first character of IFS is used to create $*,
2923 # except with old shells:
2926 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2930 $as_echo_n "checking host system type... " >&6; }
2931 if ${ac_cv_host+:} false; then :
2932 $as_echo_n "(cached) " >&6
2934 if test "x$host_alias" = x; then
2935 ac_cv_host=$ac_cv_build
2937 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2938 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2943 $as_echo "$ac_cv_host" >&6; }
2946 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2949 ac_save_IFS=$IFS; IFS='-'
2955 # Remember, the first character of IFS is used to create $*,
2956 # except with old shells:
2959 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build time linking with Python (Darwin and Win32)" >&5
2963 $as_echo_n "checking for build time linking with Python (Darwin and Win32)... " >&6; }
2965 *-*-mingw*|*-*-cygwin*)
2967 link_python_libs=yes
2972 link_python_libs=yes
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $link_python_libs" >&5
2982 $as_echo "$link_python_libs" >&6; }
2983 if test "$os_win32" = "yes"; then
2994 cat >>confdefs.h <<_ACEOF
2995 #define OS_EXT "$OS_EXT"
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3003 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3008 macro_version='2.4.6'
3009 macro_revision='2.4.6'
3023 ltmain=$ac_aux_dir/ltmain.sh
3025 # Backslashify metacharacters that are still active within
3026 # double-quoted strings.
3027 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3029 # Same as above, but do not quote variable references.
3030 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3032 # Sed substitution to delay expansion of an escaped shell variable in a
3033 # double_quote_subst'ed string.
3034 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3036 # Sed substitution to delay expansion of an escaped single quote.
3037 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3039 # Sed substitution to avoid accidental globbing in evaled expressions
3040 no_glob_subst='s/\*/\\\*/g'
3042 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3043 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3044 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3047 $as_echo_n "checking how to print strings... " >&6; }
3048 # Test print first, because it will be a builtin if present.
3049 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3050 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3052 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3055 # Use this function as a fallback that always works.
3056 func_fallback_echo ()
3058 eval 'cat <<_LTECHO_EOF
3062 ECHO='func_fallback_echo'
3065 # func_echo_all arg...
3066 # Invoke $ECHO with all args, space-separated.
3073 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3074 $as_echo "printf" >&6; } ;;
3075 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3076 $as_echo "print -r" >&6; } ;;
3077 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3078 $as_echo "cat" >&6; } ;;
3094 DEPDIR="${am__leading_dot}deps"
3096 ac_config_commands="$ac_config_commands depfiles"
3099 am_make=${MAKE-make}
3100 cat > confinc << 'END'
3102 @echo this is the am__doit target
3105 # If we don't find an include directive, just comment out the code.
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3107 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3111 # First try GNU make style include.
3112 echo "include confinc" > confmf
3113 # Ignore all kinds of additional output from 'make'.
3114 case `$am_make -s -f confmf 2> /dev/null` in #(
3115 *the\ am__doit\ target*)
3121 # Now try BSD make style include.
3122 if test "$am__include" = "#"; then
3123 echo '.include "confinc"' > confmf
3124 case `$am_make -s -f confmf 2> /dev/null` in #(
3125 *the\ am__doit\ target*)
3126 am__include=.include
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3135 $as_echo "$_am_result" >&6; }
3136 rm -f confinc confmf
3138 # Check whether --enable-dependency-tracking was given.
3139 if test "${enable_dependency_tracking+set}" = set; then :
3140 enableval=$enable_dependency_tracking;
3143 if test "x$enable_dependency_tracking" != xno; then
3144 am_depcomp="$ac_aux_dir/depcomp"
3148 if test "x$enable_dependency_tracking" != xno; then
3158 ac_cpp='$CPP $CPPFLAGS'
3159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3162 if test -n "$ac_tool_prefix"; then
3163 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3164 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_CC+:} false; then :
3168 $as_echo_n "(cached) " >&6
3170 if test -n "$CC"; then
3171 ac_cv_prog_CC="$CC" # Let the user override the test.
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 if test -n "$CC"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3193 $as_echo "$CC" >&6; }
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3201 if test -z "$ac_cv_prog_CC"; then
3203 # Extract the first word of "gcc", so it can be a program name with args.
3204 set dummy gcc; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3208 $as_echo_n "(cached) " >&6
3210 if test -n "$ac_ct_CC"; then
3211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220 ac_cv_prog_ac_ct_CC="gcc"
3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3231 if test -n "$ac_ct_CC"; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3233 $as_echo "$ac_ct_CC" >&6; }
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3239 if test "x$ac_ct_CC" = x; then
3242 case $cross_compiling:$ac_tool_warned in
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3246 ac_tool_warned=yes ;;
3254 if test -z "$CC"; then
3255 if test -n "$ac_tool_prefix"; then
3256 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3257 set dummy ${ac_tool_prefix}cc; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if ${ac_cv_prog_CC+:} false; then :
3261 $as_echo_n "(cached) " >&6
3263 if test -n "$CC"; then
3264 ac_cv_prog_CC="$CC" # Let the user override the test.
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273 ac_cv_prog_CC="${ac_tool_prefix}cc"
3274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 if test -n "$CC"; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3286 $as_echo "$CC" >&6; }
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3295 if test -z "$CC"; then
3296 # Extract the first word of "cc", so it can be a program name with args.
3297 set dummy cc; ac_word=$2
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299 $as_echo_n "checking for $ac_word... " >&6; }
3300 if ${ac_cv_prog_CC+:} false; then :
3301 $as_echo_n "(cached) " >&6
3303 if test -n "$CC"; then
3304 ac_cv_prog_CC="$CC" # Let the user override the test.
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3315 ac_prog_rejected=yes
3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 if test $ac_prog_rejected = yes; then
3327 # We found a bogon in the path, so make sure we never use it.
3328 set dummy $ac_cv_prog_CC
3330 if test $# != 0; then
3331 # We chose a different compiler from the bogus one.
3332 # However, it has the same basename, so the bogon will be chosen
3333 # first if we set CC to just the basename; use the full file name.
3335 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3341 if test -n "$CC"; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3343 $as_echo "$CC" >&6; }
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 $as_echo "no" >&6; }
3351 if test -z "$CC"; then
3352 if test -n "$ac_tool_prefix"; then
3353 for ac_prog in cl.exe
3355 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3356 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 $as_echo_n "checking for $ac_word... " >&6; }
3359 if ${ac_cv_prog_CC+:} false; then :
3360 $as_echo_n "(cached) " >&6
3362 if test -n "$CC"; then
3363 ac_cv_prog_CC="$CC" # Let the user override the test.
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 if test -n "$CC"; then
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3385 $as_echo "$CC" >&6; }
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3392 test -n "$CC" && break
3395 if test -z "$CC"; then
3397 for ac_prog in cl.exe
3399 # Extract the first word of "$ac_prog", so it can be a program name with args.
3400 set dummy $ac_prog; ac_word=$2
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402 $as_echo_n "checking for $ac_word... " >&6; }
3403 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3404 $as_echo_n "(cached) " >&6
3406 if test -n "$ac_ct_CC"; then
3407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 test -z "$as_dir" && as_dir=.
3414 for ac_exec_ext in '' $ac_executable_extensions; do
3415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3416 ac_cv_prog_ac_ct_CC="$ac_prog"
3417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3427 if test -n "$ac_ct_CC"; then
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3429 $as_echo "$ac_ct_CC" >&6; }
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432 $as_echo "no" >&6; }
3436 test -n "$ac_ct_CC" && break
3439 if test "x$ac_ct_CC" = x; then
3442 case $cross_compiling:$ac_tool_warned in
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3446 ac_tool_warned=yes ;;
3455 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error $? "no acceptable C compiler found in \$PATH
3458 See \`config.log' for more details" "$LINENO" 5; }
3460 # Provide some information about the compiler.
3461 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3464 for ac_option in --version -v -V -qversion; do
3465 { { ac_try="$ac_compiler $ac_option >&5"
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 $as_echo "$ac_try_echo"; } >&5
3472 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3474 if test -s conftest.err; then
3476 ... rest of stderr output deleted ...
3477 10q' conftest.err >conftest.er1
3478 cat conftest.er1 >&5
3480 rm -f conftest.er1 conftest.err
3481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482 test $ac_status = 0; }
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3496 ac_clean_files_save=$ac_clean_files
3497 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3498 # Try to create an executable without -o first, disregard a.out.
3499 # It will help us diagnose broken compilers, and finding out an intuition
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3502 $as_echo_n "checking whether the C compiler works... " >&6; }
3503 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3505 # The possible output files:
3506 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3509 for ac_file in $ac_files
3512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3513 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3518 if { { ac_try="$ac_link_default"
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_link_default") 2>&5
3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528 test $ac_status = 0; }; then :
3529 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3530 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3531 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3532 # so that the user can short-circuit this test for compilers unknown to
3534 for ac_file in $ac_files ''
3536 test -f "$ac_file" || continue
3538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3541 # We found the default executable, but exeext='' is most
3545 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3547 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3549 # We set ac_cv_exeext here because the later test for it is not
3550 # safe: cross compilers may not add the suffix if given an `-o'
3551 # argument, so we may need to know it at that point already.
3552 # Even if this section looks crufty: it has the advantage of
3559 test "$ac_cv_exeext" = no && ac_cv_exeext=
3564 if test -z "$ac_file"; then :
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3567 $as_echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 as_fn_error 77 "C compiler cannot create executables
3573 See \`config.log' for more details" "$LINENO" 5; }
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3576 $as_echo "yes" >&6; }
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3579 $as_echo_n "checking for C compiler default output file name... " >&6; }
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3581 $as_echo "$ac_file" >&6; }
3582 ac_exeext=$ac_cv_exeext
3584 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3585 ac_clean_files=$ac_clean_files_save
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3587 $as_echo_n "checking for suffix of executables... " >&6; }
3588 if { { ac_try="$ac_link"
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594 $as_echo "$ac_try_echo"; } >&5
3595 (eval "$ac_link") 2>&5
3597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3598 test $ac_status = 0; }; then :
3599 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3600 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3601 # work properly (i.e., refer to `conftest.exe'), while it won't with
3603 for ac_file in conftest.exe conftest conftest.*; do
3604 test -f "$ac_file" || continue
3606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3607 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3615 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3616 See \`config.log' for more details" "$LINENO" 5; }
3618 rm -f conftest conftest$ac_cv_exeext
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3620 $as_echo "$ac_cv_exeext" >&6; }
3622 rm -f conftest.$ac_ext
3623 EXEEXT=$ac_cv_exeext
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3631 FILE *f = fopen ("conftest.out", "w");
3632 return ferror (f) || fclose (f) != 0;
3638 ac_clean_files="$ac_clean_files conftest.out"
3639 # Check that the compiler produces executables we can run. If not, either
3640 # the compiler is broken, or we cross compile.
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3642 $as_echo_n "checking whether we are cross compiling... " >&6; }
3643 if test "$cross_compiling" != yes; then
3644 { { ac_try="$ac_link"
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650 $as_echo "$ac_try_echo"; } >&5
3651 (eval "$ac_link") 2>&5
3653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654 test $ac_status = 0; }
3655 if { ac_try='./conftest$ac_cv_exeext'
3656 { { case "(($ac_try" in
3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658 *) ac_try_echo=$ac_try;;
3660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3661 $as_echo "$ac_try_echo"; } >&5
3662 (eval "$ac_try") 2>&5
3664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3665 test $ac_status = 0; }; }; then
3668 if test "$cross_compiling" = maybe; then
3671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3673 as_fn_error $? "cannot run C compiled programs.
3674 If you meant to cross compile, use \`--host'.
3675 See \`config.log' for more details" "$LINENO" 5; }
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3680 $as_echo "$cross_compiling" >&6; }
3682 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3683 ac_clean_files=$ac_clean_files_save
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3685 $as_echo_n "checking for suffix of object files... " >&6; }
3686 if ${ac_cv_objext+:} false; then :
3687 $as_echo_n "(cached) " >&6
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3700 rm -f conftest.o conftest.obj
3701 if { { ac_try="$ac_compile"
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3707 $as_echo "$ac_try_echo"; } >&5
3708 (eval "$ac_compile") 2>&5
3710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3711 test $ac_status = 0; }; then :
3712 for ac_file in conftest.o conftest.obj conftest.*; do
3713 test -f "$ac_file" || continue;
3715 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3716 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3721 $as_echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3726 as_fn_error $? "cannot compute suffix of object files: cannot compile
3727 See \`config.log' for more details" "$LINENO" 5; }
3729 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3732 $as_echo "$ac_cv_objext" >&6; }
3733 OBJEXT=$ac_cv_objext
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3736 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3737 if ${ac_cv_c_compiler_gnu+:} false; then :
3738 $as_echo_n "(cached) " >&6
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3754 if ac_fn_c_try_compile "$LINENO"; then :
3759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3764 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3765 if test $ac_compiler_gnu = yes; then
3770 ac_test_CFLAGS=${CFLAGS+set}
3771 ac_save_CFLAGS=$CFLAGS
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3773 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3774 if ${ac_cv_prog_cc_g+:} false; then :
3775 $as_echo_n "(cached) " >&6
3777 ac_save_c_werror_flag=$ac_c_werror_flag
3778 ac_c_werror_flag=yes
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3792 if ac_fn_c_try_compile "$LINENO"; then :
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3807 if ac_fn_c_try_compile "$LINENO"; then :
3810 ac_c_werror_flag=$ac_save_c_werror_flag
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3823 if ac_fn_c_try_compile "$LINENO"; then :
3826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 ac_c_werror_flag=$ac_save_c_werror_flag
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3834 $as_echo "$ac_cv_prog_cc_g" >&6; }
3835 if test "$ac_test_CFLAGS" = set; then
3836 CFLAGS=$ac_save_CFLAGS
3837 elif test $ac_cv_prog_cc_g = yes; then
3838 if test "$GCC" = yes; then
3844 if test "$GCC" = yes; then
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3851 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3852 if ${ac_cv_prog_cc_c89+:} false; then :
3853 $as_echo_n "(cached) " >&6
3855 ac_cv_prog_cc_c89=no
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3862 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3863 struct buf { int x; };
3864 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3865 static char *e (p, i)
3871 static char *f (char * (*g) (char **, int), char **p, ...)
3876 s = g (p, va_arg (v,int));
3881 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3882 function prototypes and stuff, but not '\xHH' hex character constants.
3883 These don't provoke an error unfortunately, instead are silently treated
3884 as 'x'. The following induces an error, until -std is added to get
3885 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3886 array size at least. It's necessary to write '\x00'==0 to get something
3887 that's true only with -std. */
3888 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3890 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3891 inside strings and character constants. */
3893 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3895 int test (int i, double x);
3896 struct s1 {int (*f) (int a);};
3897 struct s2 {int (*f) (double a);};
3898 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3904 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3909 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3910 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3912 CC="$ac_save_CC $ac_arg"
3913 if ac_fn_c_try_compile "$LINENO"; then :
3914 ac_cv_prog_cc_c89=$ac_arg
3916 rm -f core conftest.err conftest.$ac_objext
3917 test "x$ac_cv_prog_cc_c89" != "xno" && break
3919 rm -f conftest.$ac_ext
3924 case "x$ac_cv_prog_cc_c89" in
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3927 $as_echo "none needed" >&6; } ;;
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3930 $as_echo "unsupported" >&6; } ;;
3932 CC="$CC $ac_cv_prog_cc_c89"
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3934 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3936 if test "x$ac_cv_prog_cc_c89" != xno; then :
3941 ac_cpp='$CPP $CPPFLAGS'
3942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3947 ac_cpp='$CPP $CPPFLAGS'
3948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3952 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3953 if ${am_cv_prog_cc_c_o+:} false; then :
3954 $as_echo_n "(cached) " >&6
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3967 # Make sure it works both with $CC and with simple cc.
3968 # Following AC_PROG_CC_C_O, we do the test twice because some
3969 # compilers refuse to overwrite an existing .o file with -o,
3970 # though they will create one.
3971 am_cv_prog_cc_c_o=yes
3973 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3974 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); } \
3978 && test -f conftest2.$ac_objext; then
3981 am_cv_prog_cc_c_o=no
3985 rm -f core conftest*
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3989 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3990 if test "$am_cv_prog_cc_c_o" != yes; then
3991 # Losing compiler, so override with the script.
3992 # FIXME: It is wrong to rewrite CC.
3993 # But if we don't then we get into trouble of one sort or another.
3994 # A longer-term fix would be to have automake use am__CC in this case,
3995 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3996 CC="$am_aux_dir/compile $CC"
3999 ac_cpp='$CPP $CPPFLAGS'
4000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4005 depcc="$CC" am_compiler_list=
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4008 $as_echo_n "checking dependency style of $depcc... " >&6; }
4009 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4010 $as_echo_n "(cached) " >&6
4012 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4013 # We make a subdir and do the tests there. Otherwise we can end up
4014 # making bogus files that we don't know about and never remove. For
4015 # instance it was reported that on HP-UX the gcc test will end up
4016 # making a dummy file named 'D' -- because '-MD' means "put the output
4020 # Copy depcomp to subdir because otherwise we won't find it if we're
4021 # using a relative directory.
4022 cp "$am_depcomp" conftest.dir
4024 # We will build objects and dependencies in a subdirectory because
4025 # it helps to detect inapplicable dependency modes. For instance
4026 # both Tru64's cc and ICC support -MD to output dependencies as a
4027 # side effect of compilation, but ICC will put the dependencies in
4028 # the current directory while Tru64 will put them in the object
4032 am_cv_CC_dependencies_compiler_type=none
4033 if test "$am_compiler_list" = ""; then
4034 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4037 case " $depcc " in #(
4038 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4041 for depmode in $am_compiler_list; do
4042 # Setup a source with many dependencies, because some compilers
4043 # like to wrap large dependency lists on column 80 (with \), and
4044 # we should not choose a depcomp mode which is confused by this.
4046 # We need to recreate these files for each test, as the compiler may
4047 # overwrite some of them when testing with obscure command lines.
4048 # This happens at least with the AIX C compiler.
4050 for i in 1 2 3 4 5 6; do
4051 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4052 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4053 # Solaris 10 /bin/sh.
4054 echo '/* dummy */' > sub/conftst$i.h
4056 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4058 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4059 # mode. It turns out that the SunPro C++ compiler does not properly
4060 # handle '-M -o', and we need to detect this. Also, some Intel
4061 # versions had trouble with output in subdirs.
4062 am__obj=sub/conftest.${OBJEXT-o}
4063 am__minus_obj="-o $am__obj"
4066 # This depmode causes a compiler race in universal mode.
4067 test "$am__universal" = false || continue
4070 # After this tag, mechanisms are not by side-effect, so they'll
4071 # only be used when explicitly requested.
4072 if test "x$enable_dependency_tracking" = xyes; then
4078 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4079 # This compiler won't grok '-c -o', but also, the minuso test has
4080 # not run yet. These depmodes are late enough in the game, and
4081 # so weak that their functioning should not be impacted.
4082 am__obj=conftest.${OBJEXT-o}
4087 if depmode=$depmode \
4088 source=sub/conftest.c object=$am__obj \
4089 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4090 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4091 >/dev/null 2>conftest.err &&
4092 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4093 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4094 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4095 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4096 # icc doesn't choke on unknown options, it will just issue warnings
4097 # or remarks (even with -Werror). So we grep stderr for any message
4098 # that says an option was ignored or not supported.
4099 # When given -MP, icc 7.0 and 7.1 complain thusly:
4100 # icc: Command line warning: ignoring option '-M'; no argument required
4101 # The diagnosis changed in icc 8.0:
4102 # icc: Command line remark: option '-MP' not supported
4103 if (grep 'ignoring option' conftest.err ||
4104 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4105 am_cv_CC_dependencies_compiler_type=$depmode
4114 am_cv_CC_dependencies_compiler_type=none
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4119 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4120 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4123 test "x$enable_dependency_tracking" != xno \
4124 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4126 am__fastdepCC_FALSE='#'
4128 am__fastdepCC_TRUE='#'
4129 am__fastdepCC_FALSE=
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4134 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4135 if ${ac_cv_path_SED+:} false; then :
4136 $as_echo_n "(cached) " >&6
4138 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4139 for ac_i in 1 2 3 4 5 6 7; do
4140 ac_script="$ac_script$as_nl$ac_script"
4142 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4143 { ac_script=; unset ac_script;}
4144 if test -z "$SED"; then
4145 ac_path_SED_found=false
4146 # Loop through the user's path and test for each of PROGNAME-LIST
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 test -z "$as_dir" && as_dir=.
4152 for ac_prog in sed gsed; do
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4155 as_fn_executable_p "$ac_path_SED" || continue
4156 # Check for GNU ac_path_SED and select it if it is found.
4157 # Check for GNU $ac_path_SED
4158 case `"$ac_path_SED" --version 2>&1` in
4160 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4163 $as_echo_n 0123456789 >"conftest.in"
4166 cat "conftest.in" "conftest.in" >"conftest.tmp"
4167 mv "conftest.tmp" "conftest.in"
4168 cp "conftest.in" "conftest.nl"
4169 $as_echo '' >> "conftest.nl"
4170 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4171 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4172 as_fn_arith $ac_count + 1 && ac_count=$as_val
4173 if test $ac_count -gt ${ac_path_SED_max-0}; then
4174 # Best one so far, save it but keep looking for a better one
4175 ac_cv_path_SED="$ac_path_SED"
4176 ac_path_SED_max=$ac_count
4178 # 10*(2^10) chars as input seems more than enough
4179 test $ac_count -gt 10 && break
4181 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4184 $ac_path_SED_found && break 3
4189 if test -z "$ac_cv_path_SED"; then
4190 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4198 $as_echo "$ac_cv_path_SED" >&6; }
4199 SED="$ac_cv_path_SED"
4202 test -z "$SED" && SED=sed
4203 Xsed="$SED -e 1s/^X//"
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4216 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4217 if ${ac_cv_path_GREP+:} false; then :
4218 $as_echo_n "(cached) " >&6
4220 if test -z "$GREP"; then
4221 ac_path_GREP_found=false
4222 # Loop through the user's path and test for each of PROGNAME-LIST
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4227 test -z "$as_dir" && as_dir=.
4228 for ac_prog in grep ggrep; do
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4231 as_fn_executable_p "$ac_path_GREP" || continue
4232 # Check for GNU ac_path_GREP and select it if it is found.
4233 # Check for GNU $ac_path_GREP
4234 case `"$ac_path_GREP" --version 2>&1` in
4236 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4239 $as_echo_n 0123456789 >"conftest.in"
4242 cat "conftest.in" "conftest.in" >"conftest.tmp"
4243 mv "conftest.tmp" "conftest.in"
4244 cp "conftest.in" "conftest.nl"
4245 $as_echo 'GREP' >> "conftest.nl"
4246 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4247 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4248 as_fn_arith $ac_count + 1 && ac_count=$as_val
4249 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4250 # Best one so far, save it but keep looking for a better one
4251 ac_cv_path_GREP="$ac_path_GREP"
4252 ac_path_GREP_max=$ac_count
4254 # 10*(2^10) chars as input seems more than enough
4255 test $ac_count -gt 10 && break
4257 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4260 $ac_path_GREP_found && break 3
4265 if test -z "$ac_cv_path_GREP"; then
4266 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4269 ac_cv_path_GREP=$GREP
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4274 $as_echo "$ac_cv_path_GREP" >&6; }
4275 GREP="$ac_cv_path_GREP"
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4279 $as_echo_n "checking for egrep... " >&6; }
4280 if ${ac_cv_path_EGREP+:} false; then :
4281 $as_echo_n "(cached) " >&6
4283 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4284 then ac_cv_path_EGREP="$GREP -E"
4286 if test -z "$EGREP"; then
4287 ac_path_EGREP_found=false
4288 # Loop through the user's path and test for each of PROGNAME-LIST
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4293 test -z "$as_dir" && as_dir=.
4294 for ac_prog in egrep; do
4295 for ac_exec_ext in '' $ac_executable_extensions; do
4296 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4297 as_fn_executable_p "$ac_path_EGREP" || continue
4298 # Check for GNU ac_path_EGREP and select it if it is found.
4299 # Check for GNU $ac_path_EGREP
4300 case `"$ac_path_EGREP" --version 2>&1` in
4302 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4305 $as_echo_n 0123456789 >"conftest.in"
4308 cat "conftest.in" "conftest.in" >"conftest.tmp"
4309 mv "conftest.tmp" "conftest.in"
4310 cp "conftest.in" "conftest.nl"
4311 $as_echo 'EGREP' >> "conftest.nl"
4312 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4314 as_fn_arith $ac_count + 1 && ac_count=$as_val
4315 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4316 # Best one so far, save it but keep looking for a better one
4317 ac_cv_path_EGREP="$ac_path_EGREP"
4318 ac_path_EGREP_max=$ac_count
4320 # 10*(2^10) chars as input seems more than enough
4321 test $ac_count -gt 10 && break
4323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4326 $ac_path_EGREP_found && break 3
4331 if test -z "$ac_cv_path_EGREP"; then
4332 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4335 ac_cv_path_EGREP=$EGREP
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4341 $as_echo "$ac_cv_path_EGREP" >&6; }
4342 EGREP="$ac_cv_path_EGREP"
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4346 $as_echo_n "checking for fgrep... " >&6; }
4347 if ${ac_cv_path_FGREP+:} false; then :
4348 $as_echo_n "(cached) " >&6
4350 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4351 then ac_cv_path_FGREP="$GREP -F"
4353 if test -z "$FGREP"; then
4354 ac_path_FGREP_found=false
4355 # Loop through the user's path and test for each of PROGNAME-LIST
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4360 test -z "$as_dir" && as_dir=.
4361 for ac_prog in fgrep; do
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4364 as_fn_executable_p "$ac_path_FGREP" || continue
4365 # Check for GNU ac_path_FGREP and select it if it is found.
4366 # Check for GNU $ac_path_FGREP
4367 case `"$ac_path_FGREP" --version 2>&1` in
4369 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4372 $as_echo_n 0123456789 >"conftest.in"
4375 cat "conftest.in" "conftest.in" >"conftest.tmp"
4376 mv "conftest.tmp" "conftest.in"
4377 cp "conftest.in" "conftest.nl"
4378 $as_echo 'FGREP' >> "conftest.nl"
4379 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4381 as_fn_arith $ac_count + 1 && ac_count=$as_val
4382 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4383 # Best one so far, save it but keep looking for a better one
4384 ac_cv_path_FGREP="$ac_path_FGREP"
4385 ac_path_FGREP_max=$ac_count
4387 # 10*(2^10) chars as input seems more than enough
4388 test $ac_count -gt 10 && break
4390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4393 $ac_path_FGREP_found && break 3
4398 if test -z "$ac_cv_path_FGREP"; then
4399 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4402 ac_cv_path_FGREP=$FGREP
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4408 $as_echo "$ac_cv_path_FGREP" >&6; }
4409 FGREP="$ac_cv_path_FGREP"
4412 test -z "$GREP" && GREP=grep
4432 # Check whether --with-gnu-ld was given.
4433 if test "${with_gnu_ld+set}" = set; then :
4434 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4440 if test yes = "$GCC"; then
4441 # Check if gcc -print-prog-name=ld gives a path.
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4443 $as_echo_n "checking for ld used by $CC... " >&6; }
4446 # gcc leaves a trailing carriage return, which upsets mingw
4447 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4449 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4452 # Accept absolute paths.
4454 re_direlt='/[^/][^/]*/\.\./'
4455 # Canonicalize the pathname of ld
4456 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4457 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4458 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4460 test -z "$LD" && LD=$ac_prog
4463 # If it fails, then pretend we aren't using GCC.
4467 # If it is relative, then search for the first ld in PATH.
4471 elif test yes = "$with_gnu_ld"; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4473 $as_echo_n "checking for GNU ld... " >&6; }
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4476 $as_echo_n "checking for non-GNU ld... " >&6; }
4478 if ${lt_cv_path_LD+:} false; then :
4479 $as_echo_n "(cached) " >&6
4481 if test -z "$LD"; then
4482 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4483 for ac_dir in $PATH; do
4485 test -z "$ac_dir" && ac_dir=.
4486 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4487 lt_cv_path_LD=$ac_dir/$ac_prog
4488 # Check to see if the program is GNU ld. I'd rather use --version,
4489 # but apparently some variants of GNU ld only accept -v.
4490 # Break only if it was the GNU/non-GNU ld that we prefer.
4491 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4492 *GNU* | *'with BFD'*)
4493 test no != "$with_gnu_ld" && break
4496 test yes != "$with_gnu_ld" && break
4503 lt_cv_path_LD=$LD # Let the user override the test with a path.
4508 if test -n "$LD"; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4510 $as_echo "$LD" >&6; }
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 $as_echo "no" >&6; }
4515 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4517 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4518 if ${lt_cv_prog_gnu_ld+:} false; then :
4519 $as_echo_n "(cached) " >&6
4521 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4522 case `$LD -v 2>&1 </dev/null` in
4523 *GNU* | *'with BFD'*)
4524 lt_cv_prog_gnu_ld=yes
4527 lt_cv_prog_gnu_ld=no
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4532 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4533 with_gnu_ld=$lt_cv_prog_gnu_ld
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4544 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4545 if ${lt_cv_path_NM+:} false; then :
4546 $as_echo_n "(cached) " >&6
4548 if test -n "$NM"; then
4549 # Let the user override the test.
4552 lt_nm_to_check=${ac_tool_prefix}nm
4553 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4554 lt_nm_to_check="$lt_nm_to_check nm"
4556 for lt_tmp_nm in $lt_nm_to_check; do
4557 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4558 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4560 test -z "$ac_dir" && ac_dir=.
4561 tmp_nm=$ac_dir/$lt_tmp_nm
4562 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4563 # Check to see if the nm accepts a BSD-compat flag.
4564 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4565 # nm: unknown option "B" ignored
4566 # Tru64's nm complains that /dev/null is an invalid object file
4567 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4569 mingw*) lt_bad_file=conftest.nm/nofile ;;
4570 *) lt_bad_file=/dev/null ;;
4572 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4573 *$lt_bad_file* | *'Invalid file or object type'*)
4574 lt_cv_path_NM="$tmp_nm -B"
4578 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4580 lt_cv_path_NM="$tmp_nm -p"
4584 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4585 continue # so that we can try to find one that supports BSD flags
4594 : ${lt_cv_path_NM=no}
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4598 $as_echo "$lt_cv_path_NM" >&6; }
4599 if test no != "$lt_cv_path_NM"; then
4602 # Didn't find any BSD compatible name lister, look for dumpbin.
4603 if test -n "$DUMPBIN"; then :
4604 # Let the user override the test.
4606 if test -n "$ac_tool_prefix"; then
4607 for ac_prog in dumpbin "link -dump"
4609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4610 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612 $as_echo_n "checking for $ac_word... " >&6; }
4613 if ${ac_cv_prog_DUMPBIN+:} false; then :
4614 $as_echo_n "(cached) " >&6
4616 if test -n "$DUMPBIN"; then
4617 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 test -z "$as_dir" && as_dir=.
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4626 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 DUMPBIN=$ac_cv_prog_DUMPBIN
4637 if test -n "$DUMPBIN"; then
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4639 $as_echo "$DUMPBIN" >&6; }
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642 $as_echo "no" >&6; }
4646 test -n "$DUMPBIN" && break
4649 if test -z "$DUMPBIN"; then
4650 ac_ct_DUMPBIN=$DUMPBIN
4651 for ac_prog in dumpbin "link -dump"
4653 # Extract the first word of "$ac_prog", so it can be a program name with args.
4654 set dummy $ac_prog; ac_word=$2
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656 $as_echo_n "checking for $ac_word... " >&6; }
4657 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4658 $as_echo_n "(cached) " >&6
4660 if test -n "$ac_ct_DUMPBIN"; then
4661 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4670 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4681 if test -n "$ac_ct_DUMPBIN"; then
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4683 $as_echo "$ac_ct_DUMPBIN" >&6; }
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 $as_echo "no" >&6; }
4690 test -n "$ac_ct_DUMPBIN" && break
4693 if test "x$ac_ct_DUMPBIN" = x; then
4696 case $cross_compiling:$ac_tool_warned in
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4700 ac_tool_warned=yes ;;
4702 DUMPBIN=$ac_ct_DUMPBIN
4706 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4708 DUMPBIN="$DUMPBIN -symbols -headers"
4716 if test : != "$DUMPBIN"; then
4720 test -z "$NM" && NM=nm
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4728 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4729 if ${lt_cv_nm_interface+:} false; then :
4730 $as_echo_n "(cached) " >&6
4732 lt_cv_nm_interface="BSD nm"
4733 echo "int some_variable = 0;" > conftest.$ac_ext
4734 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4735 (eval "$ac_compile" 2>conftest.err)
4736 cat conftest.err >&5
4737 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4738 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4739 cat conftest.err >&5
4740 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4741 cat conftest.out >&5
4742 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4743 lt_cv_nm_interface="MS dumpbin"
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4748 $as_echo "$lt_cv_nm_interface" >&6; }
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4751 $as_echo_n "checking whether ln -s works... " >&6; }
4753 if test "$LN_S" = "ln -s"; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4755 $as_echo "yes" >&6; }
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4758 $as_echo "no, using $LN_S" >&6; }
4761 # find the maximum length of command line arguments
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4763 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4764 if ${lt_cv_sys_max_cmd_len+:} false; then :
4765 $as_echo_n "(cached) " >&6
4772 # On DJGPP, this test can blow up pretty badly due to problems in libc
4773 # (any single argument exceeding 2000 bytes causes a buffer overrun
4774 # during glob expansion). Even if it were fixed, the result of this
4775 # check would be larger than it should be.
4776 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4780 # Under GNU Hurd, this test is not required because there is
4781 # no limit to the length of command line arguments.
4782 # Libtool will interpret -1 as no limit whatsoever
4783 lt_cv_sys_max_cmd_len=-1;
4786 cygwin* | mingw* | cegcc*)
4787 # On Win9x/ME, this test blows up -- it succeeds, but takes
4788 # about 5 minutes as the teststring grows exponentially.
4789 # Worse, since 9x/ME are not pre-emptively multitasking,
4790 # you end up with a "frozen" computer, even though with patience
4791 # the test eventually succeeds (with a max line length of 256k).
4792 # Instead, let's just punt: use the minimum linelength reported by
4793 # all of the supported platforms: 8192 (on NT/2K/XP).
4794 lt_cv_sys_max_cmd_len=8192;
4798 # On MiNT this can take a long time and run out of memory.
4799 lt_cv_sys_max_cmd_len=8192;
4803 # On AmigaOS with pdksh, this test takes hours, literally.
4804 # So we just punt and use a minimum line length of 8192.
4805 lt_cv_sys_max_cmd_len=8192;
4808 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4809 # This has been around since 386BSD, at least. Likely further.
4810 if test -x /sbin/sysctl; then
4811 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4812 elif test -x /usr/sbin/sysctl; then
4813 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4815 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4817 # And add a safety zone
4818 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4819 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4823 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4824 lt_cv_sys_max_cmd_len=196608
4828 # The test takes a long time on OS/2.
4829 lt_cv_sys_max_cmd_len=8192
4833 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4834 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4835 # nice to cause kernel panics so lets avoid the loop below.
4836 # First set a reasonable default.
4837 lt_cv_sys_max_cmd_len=16384
4839 if test -x /sbin/sysconfig; then
4840 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4841 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4846 lt_cv_sys_max_cmd_len=102400
4848 sysv5* | sco5v6* | sysv4.2uw2*)
4849 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4850 if test -n "$kargmax"; then
4851 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4853 lt_cv_sys_max_cmd_len=32768
4857 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4858 if test -n "$lt_cv_sys_max_cmd_len" && \
4859 test undefined != "$lt_cv_sys_max_cmd_len"; then
4860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4863 # Make teststring a little bigger before we do anything with it.
4864 # a 1K string should be a reasonable start.
4865 for i in 1 2 3 4 5 6 7 8; do
4866 teststring=$teststring$teststring
4868 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4869 # If test is not a shell built-in, we'll probably end up computing a
4870 # maximum length that is only half of the actual maximum length, but
4872 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4873 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4874 test 17 != "$i" # 1/2 MB should be enough
4877 teststring=$teststring$teststring
4879 # Only check the string length outside the loop.
4880 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4882 # Add a significant safety factor because C++ compilers can tack on
4883 # massive amounts of additional arguments before passing them to the
4884 # linker. It appears as though 1/2 is a usable value.
4885 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4892 if test -n "$lt_cv_sys_max_cmd_len"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4894 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4897 $as_echo "none" >&6; }
4899 max_cmd_len=$lt_cv_sys_max_cmd_len
4910 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4920 # test EBCDIC or ASCII
4921 case `echo X|tr X '\101'` in
4922 A) # ASCII based system
4923 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4924 lt_SP2NL='tr \040 \012'
4925 lt_NL2SP='tr \015\012 \040\040'
4927 *) # EBCDIC based system
4928 lt_SP2NL='tr \100 \n'
4929 lt_NL2SP='tr \r\n \100\100'
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4942 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4943 if ${lt_cv_to_host_file_cmd+:} false; then :
4944 $as_echo_n "(cached) " >&6
4949 *-*-mingw* ) # actually msys
4950 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4953 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4955 * ) # otherwise, assume *nix
4956 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4962 *-*-mingw* ) # actually msys
4963 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4966 lt_cv_to_host_file_cmd=func_convert_file_noop
4968 * ) # otherwise, assume *nix
4969 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4973 * ) # unhandled hosts (and "normal" native builds)
4974 lt_cv_to_host_file_cmd=func_convert_file_noop
4980 to_host_file_cmd=$lt_cv_to_host_file_cmd
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4982 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4989 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4990 if ${lt_cv_to_tool_file_cmd+:} false; then :
4991 $as_echo_n "(cached) " >&6
4993 #assume ordinary cross tools, or native build.
4994 lt_cv_to_tool_file_cmd=func_convert_file_noop
4998 *-*-mingw* ) # actually msys
4999 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5007 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5009 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5016 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5017 if ${lt_cv_ld_reload_flag+:} false; then :
5018 $as_echo_n "(cached) " >&6
5020 lt_cv_ld_reload_flag='-r'
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5023 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5024 reload_flag=$lt_cv_ld_reload_flag
5025 case $reload_flag in
5027 *) reload_flag=" $reload_flag" ;;
5029 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5031 cygwin* | mingw* | pw32* | cegcc*)
5032 if test yes != "$GCC"; then
5037 if test yes = "$GCC"; then
5038 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5040 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5053 if test -n "$ac_tool_prefix"; then
5054 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5055 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if ${ac_cv_prog_OBJDUMP+:} false; then :
5059 $as_echo_n "(cached) " >&6
5061 if test -n "$OBJDUMP"; then
5062 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 OBJDUMP=$ac_cv_prog_OBJDUMP
5082 if test -n "$OBJDUMP"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5084 $as_echo "$OBJDUMP" >&6; }
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5092 if test -z "$ac_cv_prog_OBJDUMP"; then
5093 ac_ct_OBJDUMP=$OBJDUMP
5094 # Extract the first word of "objdump", so it can be a program name with args.
5095 set dummy objdump; ac_word=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5099 $as_echo_n "(cached) " >&6
5101 if test -n "$ac_ct_OBJDUMP"; then
5102 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5111 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5122 if test -n "$ac_ct_OBJDUMP"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5124 $as_echo "$ac_ct_OBJDUMP" >&6; }
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5130 if test "x$ac_ct_OBJDUMP" = x; then
5133 case $cross_compiling:$ac_tool_warned in
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5137 ac_tool_warned=yes ;;
5139 OBJDUMP=$ac_ct_OBJDUMP
5142 OBJDUMP="$ac_cv_prog_OBJDUMP"
5145 test -z "$OBJDUMP" && OBJDUMP=objdump
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5153 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5154 if ${lt_cv_deplibs_check_method+:} false; then :
5155 $as_echo_n "(cached) " >&6
5157 lt_cv_file_magic_cmd='$MAGIC_CMD'
5158 lt_cv_file_magic_test_file=
5159 lt_cv_deplibs_check_method='unknown'
5160 # Need to set the preceding variable on all platforms that support
5161 # interlibrary dependencies.
5162 # 'none' -- dependencies not supported.
5163 # 'unknown' -- same as none, but documents that we really don't know.
5164 # 'pass_all' -- all dependencies passed with no checks.
5165 # 'test_compile' -- check by making test program.
5166 # 'file_magic [[regex]]' -- check by looking for files in library path
5167 # that responds to the $file_magic_cmd with a given extended regex.
5168 # If you have 'file' or equivalent on your system and you're not sure
5169 # whether 'pass_all' will *always* work, you probably want this one.
5173 lt_cv_deplibs_check_method=pass_all
5177 lt_cv_deplibs_check_method=pass_all
5181 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5182 lt_cv_file_magic_cmd='/usr/bin/file -L'
5183 lt_cv_file_magic_test_file=/shlib/libc.so
5187 # func_win32_libid is a shell function defined in ltmain.sh
5188 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5189 lt_cv_file_magic_cmd='func_win32_libid'
5193 # Base MSYS/MinGW do not provide the 'file' command needed by
5194 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5195 # unless we find 'file', for example because we are cross-compiling.
5196 if ( file / ) >/dev/null 2>&1; then
5197 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5198 lt_cv_file_magic_cmd='func_win32_libid'
5200 # Keep this pattern in sync with the one in func_win32_libid.
5201 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5202 lt_cv_file_magic_cmd='$OBJDUMP -f'
5207 # use the weaker test based on 'objdump'. See mingw*.
5208 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5209 lt_cv_file_magic_cmd='$OBJDUMP -f'
5212 darwin* | rhapsody*)
5213 lt_cv_deplibs_check_method=pass_all
5216 freebsd* | dragonfly*)
5217 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5220 # Not sure whether the presence of OpenBSD here was a mistake.
5221 # Let's accept both of them until this is cleared up.
5222 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5223 lt_cv_file_magic_cmd=/usr/bin/file
5224 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5228 lt_cv_deplibs_check_method=pass_all
5233 lt_cv_deplibs_check_method=pass_all
5236 hpux10.20* | hpux11*)
5237 lt_cv_file_magic_cmd=/usr/bin/file
5240 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5241 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5244 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]'
5245 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5248 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5249 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5255 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5259 irix5* | irix6* | nonstopux*)
5261 *-32|*"-32 ") libmagic=32-bit;;
5262 *-n32|*"-n32 ") libmagic=N32;;
5263 *-64|*"-64 ") libmagic=64-bit;;
5264 *) libmagic=never-match;;
5266 lt_cv_deplibs_check_method=pass_all
5269 # This must be glibc/ELF.
5270 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5271 lt_cv_deplibs_check_method=pass_all
5274 netbsd* | netbsdelf*-gnu)
5275 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5276 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5284 lt_cv_file_magic_cmd=/usr/bin/file
5285 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5289 lt_cv_deplibs_check_method=pass_all
5293 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5294 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5296 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5300 osf3* | osf4* | osf5*)
5301 lt_cv_deplibs_check_method=pass_all
5305 lt_cv_deplibs_check_method=pass_all
5309 lt_cv_deplibs_check_method=pass_all
5312 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5313 lt_cv_deplibs_check_method=pass_all
5317 case $host_vendor in
5319 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]'
5320 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5323 lt_cv_deplibs_check_method=pass_all
5326 lt_cv_file_magic_cmd='/bin/file'
5327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5330 lt_cv_file_magic_cmd='/bin/file'
5331 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5332 lt_cv_file_magic_test_file=/lib/libc.so
5335 lt_cv_deplibs_check_method=pass_all
5338 lt_cv_deplibs_check_method=pass_all
5344 lt_cv_deplibs_check_method=pass_all
5347 lt_cv_deplibs_check_method=pass_all
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5353 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5357 if test "$build" = "$host"; then
5360 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5363 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5369 file_magic_cmd=$lt_cv_file_magic_cmd
5370 deplibs_check_method=$lt_cv_deplibs_check_method
5371 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5394 if test -n "$ac_tool_prefix"; then
5395 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5396 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if ${ac_cv_prog_DLLTOOL+:} false; then :
5400 $as_echo_n "(cached) " >&6
5402 if test -n "$DLLTOOL"; then
5403 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5412 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 DLLTOOL=$ac_cv_prog_DLLTOOL
5423 if test -n "$DLLTOOL"; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5425 $as_echo "$DLLTOOL" >&6; }
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428 $as_echo "no" >&6; }
5433 if test -z "$ac_cv_prog_DLLTOOL"; then
5434 ac_ct_DLLTOOL=$DLLTOOL
5435 # Extract the first word of "dlltool", so it can be a program name with args.
5436 set dummy dlltool; 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_ac_ct_DLLTOOL+:} false; then :
5440 $as_echo_n "(cached) " >&6
5442 if test -n "$ac_ct_DLLTOOL"; then
5443 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_ac_ct_DLLTOOL="dlltool"
5453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5462 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5463 if test -n "$ac_ct_DLLTOOL"; then
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5465 $as_echo "$ac_ct_DLLTOOL" >&6; }
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5471 if test "x$ac_ct_DLLTOOL" = x; then
5474 case $cross_compiling:$ac_tool_warned in
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5478 ac_tool_warned=yes ;;
5480 DLLTOOL=$ac_ct_DLLTOOL
5483 DLLTOOL="$ac_cv_prog_DLLTOOL"
5486 test -z "$DLLTOOL" && DLLTOOL=dlltool
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5495 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5496 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5497 $as_echo_n "(cached) " >&6
5499 lt_cv_sharedlib_from_linklib_cmd='unknown'
5502 cygwin* | mingw* | pw32* | cegcc*)
5503 # two different shell functions defined in ltmain.sh;
5504 # decide which one to use based on capabilities of $DLLTOOL
5505 case `$DLLTOOL --help 2>&1` in
5506 *--identify-strict*)
5507 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5510 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5515 # fallback: assume linklib IS sharedlib
5516 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5522 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5523 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5524 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5533 if test -n "$ac_tool_prefix"; then
5536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5539 $as_echo_n "checking for $ac_word... " >&6; }
5540 if ${ac_cv_prog_AR+:} false; then :
5541 $as_echo_n "(cached) " >&6
5543 if test -n "$AR"; then
5544 ac_cv_prog_AR="$AR" # Let the user override the test.
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 test -z "$as_dir" && as_dir=.
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5553 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 if test -n "$AR"; then
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5566 $as_echo "$AR" >&6; }
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5573 test -n "$AR" && break
5576 if test -z "$AR"; then
5580 # Extract the first word of "$ac_prog", so it can be a program name with args.
5581 set dummy $ac_prog; ac_word=$2
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; }
5584 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5585 $as_echo_n "(cached) " >&6
5587 if test -n "$ac_ct_AR"; then
5588 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5597 ac_cv_prog_ac_ct_AR="$ac_prog"
5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5608 if test -n "$ac_ct_AR"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5610 $as_echo "$ac_ct_AR" >&6; }
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5617 test -n "$ac_ct_AR" && break
5620 if test "x$ac_ct_AR" = x; then
5623 case $cross_compiling:$ac_tool_warned in
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5627 ac_tool_warned=yes ;;
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5647 $as_echo_n "checking for archiver @FILE support... " >&6; }
5648 if ${lt_cv_ar_at_file+:} false; then :
5649 $as_echo_n "(cached) " >&6
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5663 if ac_fn_c_try_compile "$LINENO"; then :
5664 echo conftest.$ac_objext > conftest.lst
5665 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5667 (eval $lt_ar_try) 2>&5
5669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5670 test $ac_status = 0; }
5671 if test 0 -eq "$ac_status"; then
5672 # Ensure the archiver fails upon bogus file names.
5673 rm -f conftest.$ac_objext libconftest.a
5674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5675 (eval $lt_ar_try) 2>&5
5677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5678 test $ac_status = 0; }
5679 if test 0 -ne "$ac_status"; then
5683 rm -f conftest.* libconftest.a
5686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5690 $as_echo "$lt_cv_ar_at_file" >&6; }
5692 if test no = "$lt_cv_ar_at_file"; then
5695 archiver_list_spec=$lt_cv_ar_at_file
5704 if test -n "$ac_tool_prefix"; then
5705 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5706 set dummy ${ac_tool_prefix}strip; ac_word=$2
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708 $as_echo_n "checking for $ac_word... " >&6; }
5709 if ${ac_cv_prog_STRIP+:} false; then :
5710 $as_echo_n "(cached) " >&6
5712 if test -n "$STRIP"; then
5713 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 test -z "$as_dir" && as_dir=.
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5722 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5732 STRIP=$ac_cv_prog_STRIP
5733 if test -n "$STRIP"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5735 $as_echo "$STRIP" >&6; }
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5743 if test -z "$ac_cv_prog_STRIP"; then
5745 # Extract the first word of "strip", so it can be a program name with args.
5746 set dummy strip; ac_word=$2
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748 $as_echo_n "checking for $ac_word... " >&6; }
5749 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5750 $as_echo_n "(cached) " >&6
5752 if test -n "$ac_ct_STRIP"; then
5753 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5762 ac_cv_prog_ac_ct_STRIP="strip"
5763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5773 if test -n "$ac_ct_STRIP"; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5775 $as_echo "$ac_ct_STRIP" >&6; }
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 $as_echo "no" >&6; }
5781 if test "x$ac_ct_STRIP" = x; then
5784 case $cross_compiling:$ac_tool_warned in
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5788 ac_tool_warned=yes ;;
5793 STRIP="$ac_cv_prog_STRIP"
5796 test -z "$STRIP" && STRIP=:
5803 if test -n "$ac_tool_prefix"; then
5804 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5805 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807 $as_echo_n "checking for $ac_word... " >&6; }
5808 if ${ac_cv_prog_RANLIB+:} false; then :
5809 $as_echo_n "(cached) " >&6
5811 if test -n "$RANLIB"; then
5812 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5821 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 RANLIB=$ac_cv_prog_RANLIB
5832 if test -n "$RANLIB"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5834 $as_echo "$RANLIB" >&6; }
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 $as_echo "no" >&6; }
5842 if test -z "$ac_cv_prog_RANLIB"; then
5843 ac_ct_RANLIB=$RANLIB
5844 # Extract the first word of "ranlib", so it can be a program name with args.
5845 set dummy ranlib; ac_word=$2
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847 $as_echo_n "checking for $ac_word... " >&6; }
5848 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5849 $as_echo_n "(cached) " >&6
5851 if test -n "$ac_ct_RANLIB"; then
5852 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861 ac_cv_prog_ac_ct_RANLIB="ranlib"
5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5872 if test -n "$ac_ct_RANLIB"; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5874 $as_echo "$ac_ct_RANLIB" >&6; }
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 $as_echo "no" >&6; }
5880 if test "x$ac_ct_RANLIB" = x; then
5883 case $cross_compiling:$ac_tool_warned in
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5887 ac_tool_warned=yes ;;
5889 RANLIB=$ac_ct_RANLIB
5892 RANLIB="$ac_cv_prog_RANLIB"
5895 test -z "$RANLIB" && RANLIB=:
5902 # Determine commands to create old-style static archives.
5903 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5904 old_postinstall_cmds='chmod 644 $oldlib'
5905 old_postuninstall_cmds=
5907 if test -n "$RANLIB"; then
5910 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5913 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5916 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5921 lock_old_archive_extraction=yes ;;
5923 lock_old_archive_extraction=no ;;
5964 # If no C compiler was specified, use CC.
5967 # If no C compiler flags were specified, use CFLAGS.
5968 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5970 # Allow CC to be a program name with arguments.
5974 # Check for command to grab the raw symbol name followed by C symbol from nm.
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5976 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5977 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5978 $as_echo_n "(cached) " >&6
5981 # These are sane defaults that work on at least a few old systems.
5982 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5984 # Character class describing NM global symbol codes.
5985 symcode='[BCDEGRST]'
5987 # Regexp to match symbols that can be accessed directly from C.
5988 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5990 # Define system-specific variables.
5995 cygwin* | mingw* | pw32* | cegcc*)
5996 symcode='[ABCDGISTW]'
5999 if test ia64 = "$host_cpu"; then
6000 symcode='[ABCDEGRST]'
6004 symcode='[BCDEGRST]'
6007 symcode='[BCDEGQRST]'
6018 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6026 # If we're using GNU nm, then use its standard symbol codes.
6027 case `$NM -V 2>&1` in
6028 *GNU* | *'with BFD'*)
6029 symcode='[ABCDGIRSTW]' ;;
6032 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6033 # Gets list of data symbols to import.
6034 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6035 # Adjust the below global symbol transforms to fixup imported variables.
6036 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6037 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6038 lt_c_name_lib_hook="\
6039 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6040 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6042 # Disable hooks by default.
6043 lt_cv_sys_global_symbol_to_import=
6049 # Transform an extracted symbol line into a proper C declaration.
6050 # Some systems (esp. on ia64) link data and code symbols differently,
6051 # so use this general approach.
6052 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6054 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6055 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6057 # Transform an extracted symbol line into symbol name and symbol address
6058 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6060 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6061 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6063 # Transform an extracted symbol line into symbol name with lib prefix and
6065 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6066 $lt_c_name_lib_hook\
6067 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6068 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6069 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6071 # Handle CRLF in mingw tool chain
6075 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6079 # Try without a prefix underscore, then with it.
6080 for ac_symprfx in "" "_"; do
6082 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6083 symxfrm="\\1 $ac_symprfx\\2 \\2"
6085 # Write the raw and C identifiers.
6086 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6087 # Fake it for dumpbin and say T for any non-static function,
6088 # D for any global variable and I for any imported variable.
6089 # Also find C++ and __fastcall symbols from MSVC++,
6090 # which start with @ or ?.
6091 lt_cv_sys_global_symbol_pipe="$AWK '"\
6092 " {last_section=section; section=\$ 3};"\
6093 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6094 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6095 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6096 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6097 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6098 " \$ 0!~/External *\|/{next};"\
6099 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6100 " {if(hide[section]) next};"\
6101 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6102 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6103 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6104 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6105 " ' prfx=^$ac_symprfx"
6107 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6109 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6111 # Check to see that the pipe works correctly.
6115 cat > conftest.$ac_ext <<_LT_EOF
6120 void nm_test_func(void);
6121 void nm_test_func(void){}
6125 int main(){nm_test_var='a';nm_test_func();return(0);}
6128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6129 (eval $ac_compile) 2>&5
6131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6132 test $ac_status = 0; }; then
6133 # Now try to grab the symbols.
6135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6136 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6139 test $ac_status = 0; } && test -s "$nlist"; then
6140 # Try sorting and uniquifying the output.
6141 if sort "$nlist" | uniq > "$nlist"T; then
6142 mv -f "$nlist"T "$nlist"
6147 # Make sure that we snagged all the symbols we need.
6148 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6149 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6150 cat <<_LT_EOF > conftest.$ac_ext
6151 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6152 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6153 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6154 relocations are performed -- see ld's documentation on pseudo-relocs. */
6155 # define LT_DLSYM_CONST
6156 #elif defined __osf__
6157 /* This system does not cope well with relocations in const data. */
6158 # define LT_DLSYM_CONST
6160 # define LT_DLSYM_CONST const
6168 # Now generate the symbol file.
6169 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6171 cat <<_LT_EOF >> conftest.$ac_ext
6173 /* The mapping between symbol names and symbols. */
6174 LT_DLSYM_CONST struct {
6178 lt__PROGRAM__LTX_preloaded_symbols[] =
6180 { "@PROGRAM@", (void *) 0 },
6182 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6183 cat <<\_LT_EOF >> conftest.$ac_ext
6187 /* This works around a problem in FreeBSD linker */
6188 #ifdef FREEBSD_WORKAROUND
6189 static const void *lt_preloaded_setup() {
6190 return lt__PROGRAM__LTX_preloaded_symbols;
6198 # Now try linking the two files.
6199 mv conftest.$ac_objext conftstm.$ac_objext
6200 lt_globsym_save_LIBS=$LIBS
6201 lt_globsym_save_CFLAGS=$CFLAGS
6202 LIBS=conftstm.$ac_objext
6203 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6205 (eval $ac_link) 2>&5
6207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6208 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6211 LIBS=$lt_globsym_save_LIBS
6212 CFLAGS=$lt_globsym_save_CFLAGS
6214 echo "cannot find nm_test_func in $nlist" >&5
6217 echo "cannot find nm_test_var in $nlist" >&5
6220 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6223 echo "$progname: failed program was:" >&5
6224 cat conftest.$ac_ext >&5
6226 rm -rf conftest* conftst*
6228 # Do not use the global_symbol_pipe unless it works.
6229 if test yes = "$pipe_works"; then
6232 lt_cv_sys_global_symbol_pipe=
6238 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6239 lt_cv_sys_global_symbol_to_cdecl=
6241 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6243 $as_echo "failed" >&6; }
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6246 $as_echo "ok" >&6; }
6249 # Response file support.
6250 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6251 nm_file_list_spec='@'
6252 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6253 nm_file_list_spec='@'
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6293 $as_echo_n "checking for sysroot... " >&6; }
6295 # Check whether --with-sysroot was given.
6296 if test "${with_sysroot+set}" = set; then :
6297 withval=$with_sysroot;
6304 case $with_sysroot in #(
6306 if test yes = "$GCC"; then
6307 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6311 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6317 $as_echo "$with_sysroot" >&6; }
6318 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6323 $as_echo "${lt_sysroot:-no}" >&6; }
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6330 $as_echo_n "checking for a working dd... " >&6; }
6331 if ${ac_cv_path_lt_DD+:} false; then :
6332 $as_echo_n "(cached) " >&6
6334 printf 0123456789abcdef0123456789abcdef >conftest.i
6335 cat conftest.i conftest.i >conftest2.i
6337 if test -z "$lt_DD"; then
6338 ac_path_lt_DD_found=false
6339 # Loop through the user's path and test for each of PROGNAME-LIST
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 test -z "$as_dir" && as_dir=.
6345 for ac_prog in dd; do
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6348 as_fn_executable_p "$ac_path_lt_DD" || continue
6349 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6350 cmp -s conftest.i conftest.out \
6351 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6353 $ac_path_lt_DD_found && break 3
6358 if test -z "$ac_cv_path_lt_DD"; then
6362 ac_cv_path_lt_DD=$lt_DD
6365 rm -f conftest.i conftest2.i conftest.out
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6368 $as_echo "$ac_cv_path_lt_DD" >&6; }
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6372 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6373 if ${lt_cv_truncate_bin+:} false; then :
6374 $as_echo_n "(cached) " >&6
6376 printf 0123456789abcdef0123456789abcdef >conftest.i
6377 cat conftest.i conftest.i >conftest2.i
6379 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6380 cmp -s conftest.i conftest.out \
6381 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6383 rm -f conftest.i conftest2.i conftest.out
6384 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6387 $as_echo "$lt_cv_truncate_bin" >&6; }
6395 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6398 for cc_temp in $*""; do
6400 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6401 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6406 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6409 # Check whether --enable-libtool-lock was given.
6410 if test "${enable_libtool_lock+set}" = set; then :
6411 enableval=$enable_libtool_lock;
6414 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6416 # Some flags need to be propagated to the compiler or linker for good
6420 # Find out what ABI is being produced by ac_compile, and set mode
6421 # options accordingly.
6422 echo 'int i;' > conftest.$ac_ext
6423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6424 (eval $ac_compile) 2>&5
6426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6427 test $ac_status = 0; }; then
6428 case `/usr/bin/file conftest.$ac_objext` in
6440 # Find out what ABI is being produced by ac_compile, and set linker
6441 # options accordingly.
6442 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6444 (eval $ac_compile) 2>&5
6446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447 test $ac_status = 0; }; then
6448 if test yes = "$lt_cv_prog_gnu_ld"; then
6449 case `/usr/bin/file conftest.$ac_objext` in
6451 LD="${LD-ld} -melf32bsmip"
6454 LD="${LD-ld} -melf32bmipn32"
6457 LD="${LD-ld} -melf64bmip"
6461 case `/usr/bin/file conftest.$ac_objext` in
6478 # Find out what ABI is being produced by ac_compile, and set linker
6479 # options accordingly.
6480 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6482 (eval $ac_compile) 2>&5
6484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6485 test $ac_status = 0; }; then
6487 case `/usr/bin/file conftest.$ac_objext` in
6495 case `/usr/bin/file conftest.$ac_objext` in
6497 emul="${emul}btsmip"
6500 emul="${emul}ltsmip"
6503 case `/usr/bin/file conftest.$ac_objext` in
6508 LD="${LD-ld} -m $emul"
6513 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6514 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6515 # Find out what ABI is being produced by ac_compile, and set linker
6516 # options accordingly. Note that the listed cases only cover the
6517 # situations where additional linker options are needed (such as when
6518 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6519 # vice versa); the common cases where no linker options are needed do
6520 # not appear in the list.
6521 echo 'int i;' > conftest.$ac_ext
6522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6523 (eval $ac_compile) 2>&5
6525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6526 test $ac_status = 0; }; then
6527 case `/usr/bin/file conftest.o` in
6530 x86_64-*kfreebsd*-gnu)
6531 LD="${LD-ld} -m elf_i386_fbsd"
6534 case `/usr/bin/file conftest.o` in
6536 LD="${LD-ld} -m elf32_x86_64"
6539 LD="${LD-ld} -m elf_i386"
6543 powerpc64le-*linux*)
6544 LD="${LD-ld} -m elf32lppclinux"
6547 LD="${LD-ld} -m elf32ppclinux"
6550 LD="${LD-ld} -m elf_s390"
6553 LD="${LD-ld} -m elf32_sparc"
6559 x86_64-*kfreebsd*-gnu)
6560 LD="${LD-ld} -m elf_x86_64_fbsd"
6563 LD="${LD-ld} -m elf_x86_64"
6566 LD="${LD-ld} -m elf64lppc"
6569 LD="${LD-ld} -m elf64ppc"
6571 s390*-*linux*|s390*-*tpf*)
6572 LD="${LD-ld} -m elf64_s390"
6575 LD="${LD-ld} -m elf64_sparc"
6585 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6587 CFLAGS="$CFLAGS -belf"
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6589 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6590 if ${lt_cv_cc_needs_belf+:} false; then :
6591 $as_echo_n "(cached) " >&6
6594 ac_cpp='$CPP $CPPFLAGS'
6595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6610 if ac_fn_c_try_link "$LINENO"; then :
6611 lt_cv_cc_needs_belf=yes
6613 lt_cv_cc_needs_belf=no
6615 rm -f core conftest.err conftest.$ac_objext \
6616 conftest$ac_exeext conftest.$ac_ext
6618 ac_cpp='$CPP $CPPFLAGS'
6619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6625 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6626 if test yes != "$lt_cv_cc_needs_belf"; then
6627 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6632 # Find out what ABI is being produced by ac_compile, and set linker
6633 # options accordingly.
6634 echo 'int i;' > conftest.$ac_ext
6635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6636 (eval $ac_compile) 2>&5
6638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6639 test $ac_status = 0; }; then
6640 case `/usr/bin/file conftest.o` in
6642 case $lt_cv_prog_gnu_ld in
6645 i?86-*-solaris*|x86_64-*-solaris*)
6646 LD="${LD-ld} -m elf_x86_64"
6649 LD="${LD-ld} -m elf64_sparc"
6652 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6653 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6658 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6670 need_locks=$enable_libtool_lock
6672 if test -n "$ac_tool_prefix"; then
6673 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6674 set dummy ${ac_tool_prefix}mt; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6678 $as_echo_n "(cached) " >&6
6680 if test -n "$MANIFEST_TOOL"; then
6681 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6701 if test -n "$MANIFEST_TOOL"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6703 $as_echo "$MANIFEST_TOOL" >&6; }
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6711 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6712 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6713 # Extract the first word of "mt", so it can be a program name with args.
6714 set dummy mt; ac_word=$2
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716 $as_echo_n "checking for $ac_word... " >&6; }
6717 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6718 $as_echo_n "(cached) " >&6
6720 if test -n "$ac_ct_MANIFEST_TOOL"; then
6721 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6741 if test -n "$ac_ct_MANIFEST_TOOL"; then
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6743 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746 $as_echo "no" >&6; }
6749 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6752 case $cross_compiling:$ac_tool_warned in
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6756 ac_tool_warned=yes ;;
6758 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6761 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6764 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6766 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6767 if ${lt_cv_path_mainfest_tool+:} false; then :
6768 $as_echo_n "(cached) " >&6
6770 lt_cv_path_mainfest_tool=no
6771 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6772 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6773 cat conftest.err >&5
6774 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6775 lt_cv_path_mainfest_tool=yes
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6780 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6781 if test yes != "$lt_cv_path_mainfest_tool"; then
6791 rhapsody* | darwin*)
6792 if test -n "$ac_tool_prefix"; then
6793 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6794 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6798 $as_echo_n "(cached) " >&6
6800 if test -n "$DSYMUTIL"; then
6801 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6810 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6821 if test -n "$DSYMUTIL"; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6823 $as_echo "$DSYMUTIL" >&6; }
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6831 if test -z "$ac_cv_prog_DSYMUTIL"; then
6832 ac_ct_DSYMUTIL=$DSYMUTIL
6833 # Extract the first word of "dsymutil", so it can be a program name with args.
6834 set dummy dsymutil; ac_word=$2
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836 $as_echo_n "checking for $ac_word... " >&6; }
6837 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6838 $as_echo_n "(cached) " >&6
6840 if test -n "$ac_ct_DSYMUTIL"; then
6841 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6861 if test -n "$ac_ct_DSYMUTIL"; then
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6863 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6869 if test "x$ac_ct_DSYMUTIL" = x; then
6872 case $cross_compiling:$ac_tool_warned in
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6876 ac_tool_warned=yes ;;
6878 DSYMUTIL=$ac_ct_DSYMUTIL
6881 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6884 if test -n "$ac_tool_prefix"; then
6885 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6886 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if ${ac_cv_prog_NMEDIT+:} false; then :
6890 $as_echo_n "(cached) " >&6
6892 if test -n "$NMEDIT"; then
6893 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6902 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 NMEDIT=$ac_cv_prog_NMEDIT
6913 if test -n "$NMEDIT"; then
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6915 $as_echo "$NMEDIT" >&6; }
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918 $as_echo "no" >&6; }
6923 if test -z "$ac_cv_prog_NMEDIT"; then
6924 ac_ct_NMEDIT=$NMEDIT
6925 # Extract the first word of "nmedit", so it can be a program name with args.
6926 set dummy nmedit; ac_word=$2
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6928 $as_echo_n "checking for $ac_word... " >&6; }
6929 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6930 $as_echo_n "(cached) " >&6
6932 if test -n "$ac_ct_NMEDIT"; then
6933 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6953 if test -n "$ac_ct_NMEDIT"; then
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6955 $as_echo "$ac_ct_NMEDIT" >&6; }
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 $as_echo "no" >&6; }
6961 if test "x$ac_ct_NMEDIT" = x; then
6964 case $cross_compiling:$ac_tool_warned in
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6968 ac_tool_warned=yes ;;
6970 NMEDIT=$ac_ct_NMEDIT
6973 NMEDIT="$ac_cv_prog_NMEDIT"
6976 if test -n "$ac_tool_prefix"; then
6977 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6978 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980 $as_echo_n "checking for $ac_word... " >&6; }
6981 if ${ac_cv_prog_LIPO+:} false; then :
6982 $as_echo_n "(cached) " >&6
6984 if test -n "$LIPO"; then
6985 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 test -z "$as_dir" && as_dir=.
6992 for ac_exec_ext in '' $ac_executable_extensions; do
6993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6994 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 LIPO=$ac_cv_prog_LIPO
7005 if test -n "$LIPO"; then
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7007 $as_echo "$LIPO" >&6; }
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010 $as_echo "no" >&6; }
7015 if test -z "$ac_cv_prog_LIPO"; then
7017 # Extract the first word of "lipo", so it can be a program name with args.
7018 set dummy lipo; ac_word=$2
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7022 $as_echo_n "(cached) " >&6
7024 if test -n "$ac_ct_LIPO"; then
7025 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034 ac_cv_prog_ac_ct_LIPO="lipo"
7035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7045 if test -n "$ac_ct_LIPO"; then
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7047 $as_echo "$ac_ct_LIPO" >&6; }
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7053 if test "x$ac_ct_LIPO" = x; then
7056 case $cross_compiling:$ac_tool_warned in
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7060 ac_tool_warned=yes ;;
7065 LIPO="$ac_cv_prog_LIPO"
7068 if test -n "$ac_tool_prefix"; then
7069 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7070 set dummy ${ac_tool_prefix}otool; ac_word=$2
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if ${ac_cv_prog_OTOOL+:} false; then :
7074 $as_echo_n "(cached) " >&6
7076 if test -n "$OTOOL"; then
7077 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 OTOOL=$ac_cv_prog_OTOOL
7097 if test -n "$OTOOL"; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7099 $as_echo "$OTOOL" >&6; }
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7107 if test -z "$ac_cv_prog_OTOOL"; then
7109 # Extract the first word of "otool", so it can be a program name with args.
7110 set dummy otool; ac_word=$2
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112 $as_echo_n "checking for $ac_word... " >&6; }
7113 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7114 $as_echo_n "(cached) " >&6
7116 if test -n "$ac_ct_OTOOL"; then
7117 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126 ac_cv_prog_ac_ct_OTOOL="otool"
7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7137 if test -n "$ac_ct_OTOOL"; then
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7139 $as_echo "$ac_ct_OTOOL" >&6; }
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 $as_echo "no" >&6; }
7145 if test "x$ac_ct_OTOOL" = x; then
7148 case $cross_compiling:$ac_tool_warned in
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7152 ac_tool_warned=yes ;;
7157 OTOOL="$ac_cv_prog_OTOOL"
7160 if test -n "$ac_tool_prefix"; then
7161 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7162 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 $as_echo_n "checking for $ac_word... " >&6; }
7165 if ${ac_cv_prog_OTOOL64+:} false; then :
7166 $as_echo_n "(cached) " >&6
7168 if test -n "$OTOOL64"; then
7169 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 OTOOL64=$ac_cv_prog_OTOOL64
7189 if test -n "$OTOOL64"; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7191 $as_echo "$OTOOL64" >&6; }
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7199 if test -z "$ac_cv_prog_OTOOL64"; then
7200 ac_ct_OTOOL64=$OTOOL64
7201 # Extract the first word of "otool64", so it can be a program name with args.
7202 set dummy otool64; ac_word=$2
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204 $as_echo_n "checking for $ac_word... " >&6; }
7205 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7206 $as_echo_n "(cached) " >&6
7208 if test -n "$ac_ct_OTOOL64"; then
7209 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 test -z "$as_dir" && as_dir=.
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7218 ac_cv_prog_ac_ct_OTOOL64="otool64"
7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7229 if test -n "$ac_ct_OTOOL64"; then
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7231 $as_echo "$ac_ct_OTOOL64" >&6; }
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234 $as_echo "no" >&6; }
7237 if test "x$ac_ct_OTOOL64" = x; then
7240 case $cross_compiling:$ac_tool_warned in
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7244 ac_tool_warned=yes ;;
7246 OTOOL64=$ac_ct_OTOOL64
7249 OTOOL64="$ac_cv_prog_OTOOL64"
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7279 $as_echo_n "checking for -single_module linker flag... " >&6; }
7280 if ${lt_cv_apple_cc_single_mod+:} false; then :
7281 $as_echo_n "(cached) " >&6
7283 lt_cv_apple_cc_single_mod=no
7284 if test -z "$LT_MULTI_MODULE"; then
7285 # By default we will add the -single_module flag. You can override
7286 # by either setting the environment variable LT_MULTI_MODULE
7287 # non-empty at configure time, or by adding -multi_module to the
7289 rm -rf libconftest.dylib*
7290 echo "int foo(void){return 1;}" > conftest.c
7291 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7292 -dynamiclib -Wl,-single_module conftest.c" >&5
7293 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7294 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7296 # If there is a non-empty error log, and "single_module"
7297 # appears in it, assume the flag caused a linker warning
7298 if test -s conftest.err && $GREP single_module conftest.err; then
7299 cat conftest.err >&5
7300 # Otherwise, if the output was created with a 0 exit code from
7301 # the compiler, it worked.
7302 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7303 lt_cv_apple_cc_single_mod=yes
7305 cat conftest.err >&5
7307 rm -rf libconftest.dylib*
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7312 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7315 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7316 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7317 $as_echo_n "(cached) " >&6
7319 lt_cv_ld_exported_symbols_list=no
7320 save_LDFLAGS=$LDFLAGS
7321 echo "_main" > conftest.sym
7322 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h. */
7334 if ac_fn_c_try_link "$LINENO"; then :
7335 lt_cv_ld_exported_symbols_list=yes
7337 lt_cv_ld_exported_symbols_list=no
7339 rm -f core conftest.err conftest.$ac_objext \
7340 conftest$ac_exeext conftest.$ac_ext
7341 LDFLAGS=$save_LDFLAGS
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7345 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7348 $as_echo_n "checking for -force_load linker flag... " >&6; }
7349 if ${lt_cv_ld_force_load+:} false; then :
7350 $as_echo_n "(cached) " >&6
7352 lt_cv_ld_force_load=no
7353 cat > conftest.c << _LT_EOF
7354 int forced_loaded() { return 2;}
7356 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7357 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7358 echo "$AR cru libconftest.a conftest.o" >&5
7359 $AR cru libconftest.a conftest.o 2>&5
7360 echo "$RANLIB libconftest.a" >&5
7361 $RANLIB libconftest.a 2>&5
7362 cat > conftest.c << _LT_EOF
7363 int main() { return 0;}
7365 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7366 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7368 if test -s conftest.err && $GREP force_load conftest.err; then
7369 cat conftest.err >&5
7370 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7371 lt_cv_ld_force_load=yes
7373 cat conftest.err >&5
7375 rm -f conftest.err libconftest.a conftest conftest.c
7376 rm -rf conftest.dSYM
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7380 $as_echo "$lt_cv_ld_force_load" >&6; }
7382 rhapsody* | darwin1.[012])
7383 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7385 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7386 darwin*) # darwin 5.x on
7387 # if running on 10.5 or later, the deployment target defaults
7388 # to the OS version, if on x86, and 10.4, the deployment
7389 # target defaults to 10.4. Don't you love it?
7390 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7391 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7392 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7394 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7396 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7400 if test yes = "$lt_cv_apple_cc_single_mod"; then
7401 _lt_dar_single_mod='$single_module'
7403 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7404 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7406 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7408 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7409 _lt_dsymutil='~$DSYMUTIL $lib || :'
7416 # func_munge_path_list VARIABLE PATH
7417 # -----------------------------------
7418 # VARIABLE is name of variable containing _space_ separated list of
7419 # directories to be munged by the contents of PATH, which is string
7422 # string "DIR[ DIR]" will be prepended to VARIABLE
7424 # string "DIR[ DIR]" will be appended to VARIABLE
7425 # "DIRP[:DIRP]::[DIRA:]DIRA"
7426 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7427 # "DIRA[ DIRA]" will be appended to VARIABLE
7429 # VARIABLE will be replaced by "DIR[ DIR]"
7430 func_munge_path_list ()
7436 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7439 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7442 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7443 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7446 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7452 ac_cpp='$CPP $CPPFLAGS'
7453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7457 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7458 # On Suns, sometimes $CPP names a directory.
7459 if test -n "$CPP" && test -d "$CPP"; then
7462 if test -z "$CPP"; then
7463 if ${ac_cv_prog_CPP+:} false; then :
7464 $as_echo_n "(cached) " >&6
7466 # Double quotes because CPP needs to be expanded
7467 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7470 for ac_c_preproc_warn_flag in '' yes
7472 # Use a header file that comes with gcc, so configuring glibc
7473 # with a fresh cross-compiler works.
7474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7475 # <limits.h> exists even on freestanding compilers.
7476 # On the NeXT, cc -E runs the code through the compiler's parser,
7477 # not just through cpp. "Syntax error" is here to catch this case.
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7481 # include <limits.h>
7483 # include <assert.h>
7487 if ac_fn_c_try_cpp "$LINENO"; then :
7490 # Broken: fails on valid input.
7493 rm -f conftest.err conftest.i conftest.$ac_ext
7495 # OK, works on sane cases. Now check whether nonexistent headers
7496 # can be detected and how.
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7499 #include <ac_nonexistent.h>
7501 if ac_fn_c_try_cpp "$LINENO"; then :
7502 # Broken: success on invalid input.
7505 # Passes both tests.
7509 rm -f conftest.err conftest.i conftest.$ac_ext
7512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7513 rm -f conftest.i conftest.err conftest.$ac_ext
7514 if $ac_preproc_ok; then :
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7527 $as_echo "$CPP" >&6; }
7529 for ac_c_preproc_warn_flag in '' yes
7531 # Use a header file that comes with gcc, so configuring glibc
7532 # with a fresh cross-compiler works.
7533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7534 # <limits.h> exists even on freestanding compilers.
7535 # On the NeXT, cc -E runs the code through the compiler's parser,
7536 # not just through cpp. "Syntax error" is here to catch this case.
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h. */
7540 # include <limits.h>
7542 # include <assert.h>
7546 if ac_fn_c_try_cpp "$LINENO"; then :
7549 # Broken: fails on valid input.
7552 rm -f conftest.err conftest.i conftest.$ac_ext
7554 # OK, works on sane cases. Now check whether nonexistent headers
7555 # can be detected and how.
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7558 #include <ac_nonexistent.h>
7560 if ac_fn_c_try_cpp "$LINENO"; then :
7561 # Broken: success on invalid input.
7564 # Passes both tests.
7568 rm -f conftest.err conftest.i conftest.$ac_ext
7571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7572 rm -f conftest.i conftest.err conftest.$ac_ext
7573 if $ac_preproc_ok; then :
7576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7578 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7579 See \`config.log' for more details" "$LINENO" 5; }
7583 ac_cpp='$CPP $CPPFLAGS'
7584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7590 $as_echo_n "checking for ANSI C header files... " >&6; }
7591 if ${ac_cv_header_stdc+:} false; then :
7592 $as_echo_n "(cached) " >&6
7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h. */
7609 if ac_fn_c_try_compile "$LINENO"; then :
7610 ac_cv_header_stdc=yes
7612 ac_cv_header_stdc=no
7614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616 if test $ac_cv_header_stdc = yes; then
7617 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h. */
7623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7624 $EGREP "memchr" >/dev/null 2>&1; then :
7627 ac_cv_header_stdc=no
7633 if test $ac_cv_header_stdc = yes; then
7634 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7641 $EGREP "free" >/dev/null 2>&1; then :
7644 ac_cv_header_stdc=no
7650 if test $ac_cv_header_stdc = yes; then
7651 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7652 if test "$cross_compiling" = yes; then :
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7659 #if ((' ' & 0x0FF) == 0x020)
7660 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7661 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7663 # define ISLOWER(c) \
7664 (('a' <= (c) && (c) <= 'i') \
7665 || ('j' <= (c) && (c) <= 'r') \
7666 || ('s' <= (c) && (c) <= 'z'))
7667 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7670 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7675 for (i = 0; i < 256; i++)
7676 if (XOR (islower (i), ISLOWER (i))
7677 || toupper (i) != TOUPPER (i))
7682 if ac_fn_c_try_run "$LINENO"; then :
7685 ac_cv_header_stdc=no
7687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7688 conftest.$ac_objext conftest.beam conftest.$ac_ext
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7694 $as_echo "$ac_cv_header_stdc" >&6; }
7695 if test $ac_cv_header_stdc = yes; then
7697 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7701 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7702 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7703 inttypes.h stdint.h unistd.h
7705 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7706 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7708 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7709 cat >>confdefs.h <<_ACEOF
7710 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7718 for ac_header in dlfcn.h
7720 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7722 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7723 cat >>confdefs.h <<_ACEOF
7724 #define HAVE_DLFCN_H 1
7737 enable_win32_dll=yes
7740 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7741 if test -n "$ac_tool_prefix"; then
7742 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7743 set dummy ${ac_tool_prefix}as; ac_word=$2
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7745 $as_echo_n "checking for $ac_word... " >&6; }
7746 if ${ac_cv_prog_AS+:} false; then :
7747 $as_echo_n "(cached) " >&6
7749 if test -n "$AS"; then
7750 ac_cv_prog_AS="$AS" # Let the user override the test.
7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756 test -z "$as_dir" && as_dir=.
7757 for ac_exec_ext in '' $ac_executable_extensions; do
7758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7759 ac_cv_prog_AS="${ac_tool_prefix}as"
7760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 if test -n "$AS"; then
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7772 $as_echo "$AS" >&6; }
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7780 if test -z "$ac_cv_prog_AS"; then
7782 # Extract the first word of "as", so it can be a program name with args.
7783 set dummy as; ac_word=$2
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 $as_echo_n "checking for $ac_word... " >&6; }
7786 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7787 $as_echo_n "(cached) " >&6
7789 if test -n "$ac_ct_AS"; then
7790 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7799 ac_cv_prog_ac_ct_AS="as"
7800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7810 if test -n "$ac_ct_AS"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7812 $as_echo "$ac_ct_AS" >&6; }
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7818 if test "x$ac_ct_AS" = x; then
7821 case $cross_compiling:$ac_tool_warned in
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7825 ac_tool_warned=yes ;;
7833 if test -n "$ac_tool_prefix"; then
7834 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7835 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7837 $as_echo_n "checking for $ac_word... " >&6; }
7838 if ${ac_cv_prog_DLLTOOL+:} false; then :
7839 $as_echo_n "(cached) " >&6
7841 if test -n "$DLLTOOL"; then
7842 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 test -z "$as_dir" && as_dir=.
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7851 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 DLLTOOL=$ac_cv_prog_DLLTOOL
7862 if test -n "$DLLTOOL"; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7864 $as_echo "$DLLTOOL" >&6; }
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 $as_echo "no" >&6; }
7872 if test -z "$ac_cv_prog_DLLTOOL"; then
7873 ac_ct_DLLTOOL=$DLLTOOL
7874 # Extract the first word of "dlltool", so it can be a program name with args.
7875 set dummy dlltool; ac_word=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7879 $as_echo_n "(cached) " >&6
7881 if test -n "$ac_ct_DLLTOOL"; then
7882 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888 test -z "$as_dir" && as_dir=.
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7891 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7902 if test -n "$ac_ct_DLLTOOL"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7904 $as_echo "$ac_ct_DLLTOOL" >&6; }
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7910 if test "x$ac_ct_DLLTOOL" = x; then
7913 case $cross_compiling:$ac_tool_warned in
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7917 ac_tool_warned=yes ;;
7919 DLLTOOL=$ac_ct_DLLTOOL
7922 DLLTOOL="$ac_cv_prog_DLLTOOL"
7925 if test -n "$ac_tool_prefix"; then
7926 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7927 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7929 $as_echo_n "checking for $ac_word... " >&6; }
7930 if ${ac_cv_prog_OBJDUMP+:} false; then :
7931 $as_echo_n "(cached) " >&6
7933 if test -n "$OBJDUMP"; then
7934 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 test -z "$as_dir" && as_dir=.
7941 for ac_exec_ext in '' $ac_executable_extensions; do
7942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7943 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7953 OBJDUMP=$ac_cv_prog_OBJDUMP
7954 if test -n "$OBJDUMP"; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7956 $as_echo "$OBJDUMP" >&6; }
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7964 if test -z "$ac_cv_prog_OBJDUMP"; then
7965 ac_ct_OBJDUMP=$OBJDUMP
7966 # Extract the first word of "objdump", so it can be a program name with args.
7967 set dummy objdump; ac_word=$2
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969 $as_echo_n "checking for $ac_word... " >&6; }
7970 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7971 $as_echo_n "(cached) " >&6
7973 if test -n "$ac_ct_OBJDUMP"; then
7974 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 test -z "$as_dir" && as_dir=.
7981 for ac_exec_ext in '' $ac_executable_extensions; do
7982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7983 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7993 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7994 if test -n "$ac_ct_OBJDUMP"; then
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7996 $as_echo "$ac_ct_OBJDUMP" >&6; }
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999 $as_echo "no" >&6; }
8002 if test "x$ac_ct_OBJDUMP" = x; then
8005 case $cross_compiling:$ac_tool_warned in
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8009 ac_tool_warned=yes ;;
8011 OBJDUMP=$ac_ct_OBJDUMP
8014 OBJDUMP="$ac_cv_prog_OBJDUMP"
8020 test -z "$AS" && AS=as
8026 test -z "$DLLTOOL" && DLLTOOL=dlltool
8032 test -z "$OBJDUMP" && OBJDUMP=objdump
8037 # Check whether --enable-static was given.
8038 if test "${enable_static+set}" = set; then :
8039 enableval=$enable_static; p=${PACKAGE-default}
8041 yes) enable_static=yes ;;
8042 no) enable_static=no ;;
8045 # Look at the argument we got. We use all the common list separators.
8046 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8047 for pkg in $enableval; do
8049 if test "X$pkg" = "X$p"; then
8071 # Check whether --enable-shared was given.
8072 if test "${enable_shared+set}" = set; then :
8073 enableval=$enable_shared; p=${PACKAGE-default}
8075 yes) enable_shared=yes ;;
8076 no) enable_shared=no ;;
8079 # Look at the argument we got. We use all the common list separators.
8080 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8081 for pkg in $enableval; do
8083 if test "X$pkg" = "X$p"; then
8104 # Check whether --with-pic was given.
8105 if test "${with_pic+set}" = set; then :
8106 withval=$with_pic; lt_p=${PACKAGE-default}
8108 yes|no) pic_mode=$withval ;;
8111 # Look at the argument we got. We use all the common list separators.
8112 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8113 for lt_pkg in $withval; do
8115 if test "X$lt_pkg" = "X$lt_p"; then
8133 # Check whether --enable-fast-install was given.
8134 if test "${enable_fast_install+set}" = set; then :
8135 enableval=$enable_fast_install; p=${PACKAGE-default}
8137 yes) enable_fast_install=yes ;;
8138 no) enable_fast_install=no ;;
8140 enable_fast_install=no
8141 # Look at the argument we got. We use all the common list separators.
8142 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8143 for pkg in $enableval; do
8145 if test "X$pkg" = "X$p"; then
8146 enable_fast_install=yes
8153 enable_fast_install=yes
8163 shared_archive_member_spec=
8164 case $host,$enable_shared in
8165 power*-*-aix[5-9]*,yes)
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8167 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8169 # Check whether --with-aix-soname was given.
8170 if test "${with_aix_soname+set}" = set; then :
8171 withval=$with_aix_soname; case $withval in
8175 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8178 lt_cv_with_aix_soname=$with_aix_soname
8180 if ${lt_cv_with_aix_soname+:} false; then :
8181 $as_echo_n "(cached) " >&6
8183 lt_cv_with_aix_soname=aix
8186 with_aix_soname=$lt_cv_with_aix_soname
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8190 $as_echo "$with_aix_soname" >&6; }
8191 if test aix != "$with_aix_soname"; then
8192 # For the AIX way of multilib, we name the shared archive member
8193 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8194 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8195 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8196 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8197 if test 64 = "${OBJECT_MODE-32}"; then
8198 shared_archive_member_spec=shr_64
8200 shared_archive_member_spec=shr
8218 # This can be used to rebuild libtool when needed
8219 LIBTOOL_DEPS=$ltmain
8221 # Always use our own libtool.
8222 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8253 test -z "$LN_S" && LN_S="ln -s"
8268 if test -n "${ZSH_VERSION+set}"; then
8269 setopt NO_GLOB_SUBST
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8273 $as_echo_n "checking for objdir... " >&6; }
8274 if ${lt_cv_objdir+:} false; then :
8275 $as_echo_n "(cached) " >&6
8277 rm -f .libs 2>/dev/null
8278 mkdir .libs 2>/dev/null
8279 if test -d .libs; then
8282 # MS-DOS does not allow filenames that begin with a dot.
8285 rmdir .libs 2>/dev/null
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8288 $as_echo "$lt_cv_objdir" >&6; }
8289 objdir=$lt_cv_objdir
8295 cat >>confdefs.h <<_ACEOF
8296 #define LT_OBJDIR "$lt_cv_objdir/"
8304 # AIX sometimes has problems with the GCC collect2 program. For some
8305 # reason, if we set the COLLECT_NAMES environment variable, the problems
8306 # vanish in a puff of smoke.
8307 if test set != "${COLLECT_NAMES+set}"; then
8309 export COLLECT_NAMES
8316 can_build_shared=yes
8318 # All known linkers require a '.a' archive for static linking (except MSVC,
8319 # which needs '.lib').
8322 with_gnu_ld=$lt_cv_prog_gnu_ld
8327 # Set sane defaults for various variables
8328 test -z "$CC" && CC=cc
8329 test -z "$LTCC" && LTCC=$CC
8330 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8331 test -z "$LD" && LD=ld
8332 test -z "$ac_objext" && ac_objext=o
8334 func_cc_basename $compiler
8335 cc_basename=$func_cc_basename_result
8338 # Only perform the check for file, if the check method requires it
8339 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8340 case $deplibs_check_method in
8342 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8344 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8345 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8346 $as_echo_n "(cached) " >&6
8350 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8353 lt_save_MAGIC_CMD=$MAGIC_CMD
8354 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8355 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8356 for ac_dir in $ac_dummy; do
8358 test -z "$ac_dir" && ac_dir=.
8359 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8360 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8361 if test -n "$file_magic_test_file"; then
8362 case $deplibs_check_method in
8364 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8365 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8366 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8367 $EGREP "$file_magic_regex" > /dev/null; then
8372 *** Warning: the command libtool uses to detect shared libraries,
8373 *** $file_magic_cmd, produces output that libtool cannot recognize.
8374 *** The result is that libtool may fail to recognize shared libraries
8375 *** as such. This will affect the creation of libtool libraries that
8376 *** depend on shared libraries, but programs linked with such libtool
8377 *** libraries will work regardless of this problem. Nevertheless, you
8378 *** may want to report the problem to your system manager and/or to
8379 *** bug-libtool@gnu.org
8389 MAGIC_CMD=$lt_save_MAGIC_CMD
8394 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8395 if test -n "$MAGIC_CMD"; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8397 $as_echo "$MAGIC_CMD" >&6; }
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400 $as_echo "no" >&6; }
8407 if test -z "$lt_cv_path_MAGIC_CMD"; then
8408 if test -n "$ac_tool_prefix"; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8410 $as_echo_n "checking for file... " >&6; }
8411 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8412 $as_echo_n "(cached) " >&6
8416 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8419 lt_save_MAGIC_CMD=$MAGIC_CMD
8420 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8421 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8422 for ac_dir in $ac_dummy; do
8424 test -z "$ac_dir" && ac_dir=.
8425 if test -f "$ac_dir/file"; then
8426 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8427 if test -n "$file_magic_test_file"; then
8428 case $deplibs_check_method in
8430 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8431 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8432 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8433 $EGREP "$file_magic_regex" > /dev/null; then
8438 *** Warning: the command libtool uses to detect shared libraries,
8439 *** $file_magic_cmd, produces output that libtool cannot recognize.
8440 *** The result is that libtool may fail to recognize shared libraries
8441 *** as such. This will affect the creation of libtool libraries that
8442 *** depend on shared libraries, but programs linked with such libtool
8443 *** libraries will work regardless of this problem. Nevertheless, you
8444 *** may want to report the problem to your system manager and/or to
8445 *** bug-libtool@gnu.org
8455 MAGIC_CMD=$lt_save_MAGIC_CMD
8460 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8461 if test -n "$MAGIC_CMD"; then
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8463 $as_echo "$MAGIC_CMD" >&6; }
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8466 $as_echo "no" >&6; }
8479 # Use C for the default configuration in the libtool script
8483 ac_cpp='$CPP $CPPFLAGS'
8484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8489 # Source file extension for C test sources.
8492 # Object file extension for compiled C test sources.
8496 # Code to be used in simple compile tests
8497 lt_simple_compile_test_code="int some_variable = 0;"
8499 # Code to be used in simple link tests
8500 lt_simple_link_test_code='int main(){return(0);}'
8508 # If no C compiler was specified, use CC.
8511 # If no C compiler flags were specified, use CFLAGS.
8512 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8514 # Allow CC to be a program name with arguments.
8517 # Save the default compiler, since it gets overwritten when the other
8518 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8519 compiler_DEFAULT=$CC
8521 # save warnings/boilerplate of simple test code
8522 ac_outfile=conftest.$ac_objext
8523 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8524 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8525 _lt_compiler_boilerplate=`cat conftest.err`
8528 ac_outfile=conftest.$ac_objext
8529 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8530 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8531 _lt_linker_boilerplate=`cat conftest.err`
8536 ## There is no encapsulation within the following macros, do not change
8537 ## the running order or otherwise move them around unless you know exactly
8538 ## what you are doing...
8539 if test -n "$compiler"; then
8541 lt_prog_compiler_no_builtin_flag=
8543 if test yes = "$GCC"; then
8544 case $cc_basename in
8546 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8548 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8552 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8553 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8554 $as_echo_n "(cached) " >&6
8556 lt_cv_prog_compiler_rtti_exceptions=no
8557 ac_outfile=conftest.$ac_objext
8558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8559 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8560 # Insert the option either (1) after the last *FLAGS variable, or
8561 # (2) before a word containing "conftest.", or (3) at the end.
8562 # Note that $ac_compile itself does not contain backslashes and begins
8563 # with a dollar sign (not a hyphen), so the echo should work correctly.
8564 # The option is referenced via a variable to avoid confusing sed.
8565 lt_compile=`echo "$ac_compile" | $SED \
8566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8568 -e 's:$: $lt_compiler_flag:'`
8569 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8570 (eval "$lt_compile" 2>conftest.err)
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 if (exit $ac_status) && test -s "$ac_outfile"; then
8575 # The compiler can only warn and ignore the option if not recognized
8576 # So say no if there are warnings other than the usual output.
8577 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8578 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8579 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8580 lt_cv_prog_compiler_rtti_exceptions=yes
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8587 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8589 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8590 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8602 lt_prog_compiler_wl=
8603 lt_prog_compiler_pic=
8604 lt_prog_compiler_static=
8607 if test yes = "$GCC"; then
8608 lt_prog_compiler_wl='-Wl,'
8609 lt_prog_compiler_static='-static'
8613 # All AIX code is PIC.
8614 if test ia64 = "$host_cpu"; then
8615 # AIX 5 now supports IA64 processor
8616 lt_prog_compiler_static='-Bstatic'
8618 lt_prog_compiler_pic='-fPIC'
8624 # see comment about AmigaOS4 .so support
8625 lt_prog_compiler_pic='-fPIC'
8628 # FIXME: we need at least 68020 code to build shared libraries, but
8629 # adding the '-m68020' flag to GCC prevents building anything better,
8631 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8636 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8637 # PIC is the default for these OSes.
8640 mingw* | cygwin* | pw32* | os2* | cegcc*)
8641 # This hack is so that the source file can tell whether it is being
8642 # built for inclusion in a dll (and should export symbols for example).
8643 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8644 # (--disable-auto-import) libraries
8645 lt_prog_compiler_pic='-DDLL_EXPORT'
8648 lt_prog_compiler_static='$wl-static'
8653 darwin* | rhapsody*)
8654 # PIC is the default on this platform
8655 # Common symbols not allowed in MH_DYLIB files
8656 lt_prog_compiler_pic='-fno-common'
8660 # PIC is the default for Haiku.
8661 # The "-static" flag exists, but is broken.
8662 lt_prog_compiler_static=
8666 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8667 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8668 # sets the default TLS model and affects inlining.
8674 lt_prog_compiler_pic='-fPIC'
8680 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8681 # Instead, we relocate shared libraries at runtime.
8685 # Just because we use GCC doesn't mean we suddenly get shared libraries
8686 # on systems that don't support them.
8687 lt_prog_compiler_can_build_shared=no
8692 # QNX uses GNU C++, but need to define -shared option too, otherwise
8694 lt_prog_compiler_pic='-fPIC -shared'
8698 if test -d /usr/nec; then
8699 lt_prog_compiler_pic=-Kconform_pic
8704 lt_prog_compiler_pic='-fPIC'
8708 case $cc_basename in
8709 nvcc*) # Cuda Compiler Driver 2.2
8710 lt_prog_compiler_wl='-Xlinker '
8711 if test -n "$lt_prog_compiler_pic"; then
8712 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8717 # PORTME Check for flag to pass linker flags through the system compiler.
8720 lt_prog_compiler_wl='-Wl,'
8721 if test ia64 = "$host_cpu"; then
8722 # AIX 5 now supports IA64 processor
8723 lt_prog_compiler_static='-Bstatic'
8725 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8729 darwin* | rhapsody*)
8730 # PIC is the default on this platform
8731 # Common symbols not allowed in MH_DYLIB files
8732 lt_prog_compiler_pic='-fno-common'
8733 case $cc_basename in
8735 # NAG Fortran compiler
8736 lt_prog_compiler_wl='-Wl,-Wl,,'
8737 lt_prog_compiler_pic='-PIC'
8738 lt_prog_compiler_static='-Bstatic'
8743 mingw* | cygwin* | pw32* | os2* | cegcc*)
8744 # This hack is so that the source file can tell whether it is being
8745 # built for inclusion in a dll (and should export symbols for example).
8746 lt_prog_compiler_pic='-DDLL_EXPORT'
8749 lt_prog_compiler_static='$wl-static'
8754 hpux9* | hpux10* | hpux11*)
8755 lt_prog_compiler_wl='-Wl,'
8756 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8763 lt_prog_compiler_pic='+Z'
8766 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8767 lt_prog_compiler_static='$wl-a ${wl}archive'
8770 irix5* | irix6* | nonstopux*)
8771 lt_prog_compiler_wl='-Wl,'
8772 # PIC (with -KPIC) is the default.
8773 lt_prog_compiler_static='-non_shared'
8776 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8777 case $cc_basename in
8778 # old Intel for x86_64, which still supported -KPIC.
8780 lt_prog_compiler_wl='-Wl,'
8781 lt_prog_compiler_pic='-KPIC'
8782 lt_prog_compiler_static='-static'
8784 # icc used to be incompatible with GCC.
8785 # ICC 10 doesn't accept -KPIC any more.
8787 lt_prog_compiler_wl='-Wl,'
8788 lt_prog_compiler_pic='-fPIC'
8789 lt_prog_compiler_static='-static'
8791 # Lahey Fortran 8.1.
8793 lt_prog_compiler_wl='-Wl,'
8794 lt_prog_compiler_pic='--shared'
8795 lt_prog_compiler_static='--static'
8798 # NAG Fortran compiler
8799 lt_prog_compiler_wl='-Wl,-Wl,,'
8800 lt_prog_compiler_pic='-PIC'
8801 lt_prog_compiler_static='-Bstatic'
8804 # Fabrice Bellard et al's Tiny C Compiler
8805 lt_prog_compiler_wl='-Wl,'
8806 lt_prog_compiler_pic='-fPIC'
8807 lt_prog_compiler_static='-static'
8809 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8810 # Portland Group compilers (*not* the Pentium gcc compiler,
8811 # which looks to be a dead project)
8812 lt_prog_compiler_wl='-Wl,'
8813 lt_prog_compiler_pic='-fpic'
8814 lt_prog_compiler_static='-Bstatic'
8817 lt_prog_compiler_wl='-Wl,'
8818 # All Alpha code is PIC.
8819 lt_prog_compiler_static='-non_shared'
8821 xl* | bgxl* | bgf* | mpixl*)
8822 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8823 lt_prog_compiler_wl='-Wl,'
8824 lt_prog_compiler_pic='-qpic'
8825 lt_prog_compiler_static='-qstaticlink'
8828 case `$CC -V 2>&1 | sed 5q` in
8829 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8830 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8831 lt_prog_compiler_pic='-KPIC'
8832 lt_prog_compiler_static='-Bstatic'
8833 lt_prog_compiler_wl=''
8835 *Sun\ F* | *Sun*Fortran*)
8836 lt_prog_compiler_pic='-KPIC'
8837 lt_prog_compiler_static='-Bstatic'
8838 lt_prog_compiler_wl='-Qoption ld '
8842 lt_prog_compiler_pic='-KPIC'
8843 lt_prog_compiler_static='-Bstatic'
8844 lt_prog_compiler_wl='-Wl,'
8846 *Intel*\ [CF]*Compiler*)
8847 lt_prog_compiler_wl='-Wl,'
8848 lt_prog_compiler_pic='-fPIC'
8849 lt_prog_compiler_static='-static'
8852 lt_prog_compiler_wl='-Wl,'
8853 lt_prog_compiler_pic='-fpic'
8854 lt_prog_compiler_static='-Bstatic'
8862 lt_prog_compiler_pic='-KPIC'
8863 lt_prog_compiler_static='-Bstatic'
8867 # QNX uses GNU C++, but need to define -shared option too, otherwise
8869 lt_prog_compiler_pic='-fPIC -shared'
8872 osf3* | osf4* | osf5*)
8873 lt_prog_compiler_wl='-Wl,'
8874 # All OSF/1 code is PIC.
8875 lt_prog_compiler_static='-non_shared'
8879 lt_prog_compiler_static='-non_shared'
8883 lt_prog_compiler_pic='-KPIC'
8884 lt_prog_compiler_static='-Bstatic'
8885 case $cc_basename in
8886 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8887 lt_prog_compiler_wl='-Qoption ld ';;
8889 lt_prog_compiler_wl='-Wl,';;
8894 lt_prog_compiler_wl='-Qoption ld '
8895 lt_prog_compiler_pic='-PIC'
8896 lt_prog_compiler_static='-Bstatic'
8899 sysv4 | sysv4.2uw2* | sysv4.3*)
8900 lt_prog_compiler_wl='-Wl,'
8901 lt_prog_compiler_pic='-KPIC'
8902 lt_prog_compiler_static='-Bstatic'
8906 if test -d /usr/nec; then
8907 lt_prog_compiler_pic='-Kconform_pic'
8908 lt_prog_compiler_static='-Bstatic'
8912 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8913 lt_prog_compiler_wl='-Wl,'
8914 lt_prog_compiler_pic='-KPIC'
8915 lt_prog_compiler_static='-Bstatic'
8919 lt_prog_compiler_wl='-Wl,'
8920 lt_prog_compiler_can_build_shared=no
8924 lt_prog_compiler_pic='-pic'
8925 lt_prog_compiler_static='-Bstatic'
8929 lt_prog_compiler_can_build_shared=no
8935 # For platforms that do not support PIC, -DPIC is meaningless:
8937 lt_prog_compiler_pic=
8940 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8945 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8946 if ${lt_cv_prog_compiler_pic+:} false; then :
8947 $as_echo_n "(cached) " >&6
8949 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8952 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8953 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8956 # Check to make sure the PIC flag actually works.
8958 if test -n "$lt_prog_compiler_pic"; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8960 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8961 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8962 $as_echo_n "(cached) " >&6
8964 lt_cv_prog_compiler_pic_works=no
8965 ac_outfile=conftest.$ac_objext
8966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8967 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8968 # Insert the option either (1) after the last *FLAGS variable, or
8969 # (2) before a word containing "conftest.", or (3) at the end.
8970 # Note that $ac_compile itself does not contain backslashes and begins
8971 # with a dollar sign (not a hyphen), so the echo should work correctly.
8972 # The option is referenced via a variable to avoid confusing sed.
8973 lt_compile=`echo "$ac_compile" | $SED \
8974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8976 -e 's:$: $lt_compiler_flag:'`
8977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8978 (eval "$lt_compile" 2>conftest.err)
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 if (exit $ac_status) && test -s "$ac_outfile"; then
8983 # The compiler can only warn and ignore the option if not recognized
8984 # So say no if there are warnings other than the usual output.
8985 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8986 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8987 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8988 lt_cv_prog_compiler_pic_works=yes
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8995 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8997 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8998 case $lt_prog_compiler_pic in
9000 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9003 lt_prog_compiler_pic=
9004 lt_prog_compiler_can_build_shared=no
9020 # Check to make sure the static flag actually works.
9022 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9024 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9025 if ${lt_cv_prog_compiler_static_works+:} false; then :
9026 $as_echo_n "(cached) " >&6
9028 lt_cv_prog_compiler_static_works=no
9029 save_LDFLAGS=$LDFLAGS
9030 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9031 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9032 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9033 # The linker can only warn and ignore the option if not recognized
9034 # So say no if there are warnings
9035 if test -s conftest.err; then
9036 # Append any errors to the config.log.
9037 cat conftest.err 1>&5
9038 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9039 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9040 if diff conftest.exp conftest.er2 >/dev/null; then
9041 lt_cv_prog_compiler_static_works=yes
9044 lt_cv_prog_compiler_static_works=yes
9048 LDFLAGS=$save_LDFLAGS
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9052 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9054 if test yes = "$lt_cv_prog_compiler_static_works"; then
9057 lt_prog_compiler_static=
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9067 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9068 if ${lt_cv_prog_compiler_c_o+:} false; then :
9069 $as_echo_n "(cached) " >&6
9071 lt_cv_prog_compiler_c_o=no
9072 $RM -r conftest 2>/dev/null
9076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9078 lt_compiler_flag="-o out/conftest2.$ac_objext"
9079 # Insert the option either (1) after the last *FLAGS variable, or
9080 # (2) before a word containing "conftest.", or (3) at the end.
9081 # Note that $ac_compile itself does not contain backslashes and begins
9082 # with a dollar sign (not a hyphen), so the echo should work correctly.
9083 lt_compile=`echo "$ac_compile" | $SED \
9084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9086 -e 's:$: $lt_compiler_flag:'`
9087 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9088 (eval "$lt_compile" 2>out/conftest.err)
9090 cat out/conftest.err >&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9094 # The compiler can only warn and ignore the option if not recognized
9095 # So say no if there are warnings
9096 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9097 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9098 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9099 lt_cv_prog_compiler_c_o=yes
9104 # SGI C++ compiler will create directory out/ii_files/ for
9105 # template instantiation
9106 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9107 $RM out/* && rmdir out
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9114 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9122 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9123 if ${lt_cv_prog_compiler_c_o+:} false; then :
9124 $as_echo_n "(cached) " >&6
9126 lt_cv_prog_compiler_c_o=no
9127 $RM -r conftest 2>/dev/null
9131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9133 lt_compiler_flag="-o out/conftest2.$ac_objext"
9134 # Insert the option either (1) after the last *FLAGS variable, or
9135 # (2) before a word containing "conftest.", or (3) at the end.
9136 # Note that $ac_compile itself does not contain backslashes and begins
9137 # with a dollar sign (not a hyphen), so the echo should work correctly.
9138 lt_compile=`echo "$ac_compile" | $SED \
9139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9141 -e 's:$: $lt_compiler_flag:'`
9142 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9143 (eval "$lt_compile" 2>out/conftest.err)
9145 cat out/conftest.err >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9149 # The compiler can only warn and ignore the option if not recognized
9150 # So say no if there are warnings
9151 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9152 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9153 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9154 lt_cv_prog_compiler_c_o=yes
9159 # SGI C++ compiler will create directory out/ii_files/ for
9160 # template instantiation
9161 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9162 $RM out/* && rmdir out
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9169 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9174 hard_links=nottested
9175 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9176 # do not overwrite the value of need_locks provided by the user
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9178 $as_echo_n "checking if we can lock with hard links... " >&6; }
9181 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9183 ln conftest.a conftest.b 2>&5 || hard_links=no
9184 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9186 $as_echo "$hard_links" >&6; }
9187 if test no = "$hard_links"; then
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9189 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9202 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9205 allow_undefined_flag=
9206 always_export_symbols=no
9208 archive_expsym_cmds=
9209 compiler_needs_object=no
9210 enable_shared_with_static_runtimes=no
9211 export_dynamic_flag_spec=
9212 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9213 hardcode_automatic=no
9215 hardcode_direct_absolute=no
9216 hardcode_libdir_flag_spec=
9217 hardcode_libdir_separator=
9219 hardcode_shlibpath_var=unsupported
9221 link_all_deplibs=unknown
9224 old_archive_from_new_cmds=
9225 old_archive_from_expsyms_cmds=
9226 thread_safe_flag_spec=
9227 whole_archive_flag_spec=
9228 # include_expsyms should be a list of space-separated symbols to be *always*
9229 # included in the symbol list
9231 # exclude_expsyms can be an extended regexp of symbols to exclude
9232 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9233 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9234 # as well as any symbol that contains 'd'.
9235 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9236 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9237 # platforms (ab)use it in PIC code, but their linkers get confused if
9238 # the symbol is explicitly referenced. Since portable code cannot
9239 # rely on this symbol name, it's probably fine to never include it in
9240 # preloaded symbol tables.
9241 # Exclude shared library initialization/finalization symbols.
9242 extract_expsyms_cmds=
9245 cygwin* | mingw* | pw32* | cegcc*)
9246 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9247 # When not using gcc, we currently assume that we are using
9248 # Microsoft Visual C++.
9249 if test yes != "$GCC"; then
9254 # we just hope/assume this is gcc and not c89 (= MSVC++)
9260 linux* | k*bsd*-gnu | gnu*)
9267 # On some targets, GNU ld is compatible enough with the native linker
9268 # that we're better off using the native interface for both.
9269 lt_use_gnu_ld_interface=no
9270 if test yes = "$with_gnu_ld"; then
9273 # The AIX port of GNU ld has always aspired to compatibility
9274 # with the native linker. However, as the warning in the GNU ld
9275 # block says, versions before 2.19.5* couldn't really create working
9276 # shared libraries, regardless of the interface used.
9277 case `$LD -v 2>&1` in
9278 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9279 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9280 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9282 lt_use_gnu_ld_interface=yes
9287 lt_use_gnu_ld_interface=yes
9292 if test yes = "$lt_use_gnu_ld_interface"; then
9293 # If archive_cmds runs LD, not CC, wlarc should be empty
9296 # Set some defaults for GNU ld with shared library support. These
9297 # are reset later if shared libraries are not supported. Putting them
9298 # here allows them to be overridden if necessary.
9299 runpath_var=LD_RUN_PATH
9300 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9301 export_dynamic_flag_spec='$wl--export-dynamic'
9302 # ancient GNU ld didn't support --whole-archive et. al.
9303 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9304 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9306 whole_archive_flag_spec=
9308 supports_anon_versioning=no
9309 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9310 *GNU\ gold*) supports_anon_versioning=yes ;;
9311 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9312 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9313 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9314 *\ 2.11.*) ;; # other 2.11 versions
9315 *) supports_anon_versioning=yes ;;
9318 # See if GNU ld supports shared libraries.
9321 # On AIX/PPC, the GNU linker is very broken
9322 if test ia64 != "$host_cpu"; then
9326 *** Warning: the GNU linker, at least up to release 2.19, is reported
9327 *** to be unable to reliably create shared libraries on AIX.
9328 *** Therefore, libtool is disabling shared libraries support. If you
9329 *** really care for shared libraries, you may want to install binutils
9330 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9331 *** You will then need to restart the configuration process.
9340 # see comment about AmigaOS4 .so support
9341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9342 archive_expsym_cmds=''
9345 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)'
9346 hardcode_libdir_flag_spec='-L$libdir'
9347 hardcode_minus_L=yes
9353 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9354 allow_undefined_flag=unsupported
9355 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9356 # support --undefined. This deserves some investigation. FIXME
9357 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9363 cygwin* | mingw* | pw32* | cegcc*)
9364 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9365 # as there is no search path for DLLs.
9366 hardcode_libdir_flag_spec='-L$libdir'
9367 export_dynamic_flag_spec='$wl--export-all-symbols'
9368 allow_undefined_flag=unsupported
9369 always_export_symbols=no
9370 enable_shared_with_static_runtimes=yes
9371 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'
9372 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9374 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9376 # If the export-symbols file already is a .def file, use it as
9377 # is; otherwise, prepend EXPORTS...
9378 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9379 cp $export_symbols $output_objdir/$soname.def;
9381 echo EXPORTS > $output_objdir/$soname.def;
9382 cat $export_symbols >> $output_objdir/$soname.def;
9384 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9392 link_all_deplibs=yes
9396 hardcode_libdir_flag_spec='-L$libdir'
9397 hardcode_minus_L=yes
9398 allow_undefined_flag=unsupported
9400 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9401 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9402 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9403 $ECHO EXPORTS >> $output_objdir/$libname.def~
9404 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9405 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9406 emximp -o $lib $output_objdir/$libname.def'
9407 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9408 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9409 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9410 $ECHO EXPORTS >> $output_objdir/$libname.def~
9412 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9413 prefix_cmds="$prefix_cmds -e 1d";
9415 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9416 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9417 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9418 emximp -o $lib $output_objdir/$libname.def'
9419 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9420 enable_shared_with_static_runtimes=yes
9425 hardcode_shlibpath_var=no
9426 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9427 export_dynamic_flag_spec='$wl-E'
9428 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9429 # Instead, shared libraries are loaded at an image base (0x10000000 by
9430 # default) and relocated if they conflict, which is a slow very memory
9431 # consuming and fragmenting process. To avoid this, we pick a random,
9432 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9433 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9434 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9435 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'
9438 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9440 if test linux-dietlibc = "$host_os"; then
9441 case $cc_basename in
9442 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9445 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9446 && test no = "$tmp_diet"
9448 tmp_addflag=' $pic_flag'
9449 tmp_sharedflag='-shared'
9450 case $cc_basename,$host_cpu in
9451 pgcc*) # Portland Group C compiler
9452 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'
9453 tmp_addflag=' $pic_flag'
9455 pgf77* | pgf90* | pgf95* | pgfortran*)
9456 # Portland Group f77 and f90 compilers
9457 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'
9458 tmp_addflag=' $pic_flag -Mnomain' ;;
9459 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9460 tmp_addflag=' -i_dynamic' ;;
9461 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9462 tmp_addflag=' -i_dynamic -nofor_main' ;;
9463 ifc* | ifort*) # Intel Fortran compiler
9464 tmp_addflag=' -nofor_main' ;;
9465 lf95*) # Lahey Fortran 8.1
9466 whole_archive_flag_spec=
9467 tmp_sharedflag='--shared' ;;
9468 nagfor*) # NAGFOR 5.3
9469 tmp_sharedflag='-Wl,-shared' ;;
9470 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9471 tmp_sharedflag='-qmkshrobj'
9473 nvcc*) # Cuda Compiler Driver 2.2
9474 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'
9475 compiler_needs_object=yes
9478 case `$CC -V 2>&1 | sed 5q` in
9479 *Sun\ C*) # Sun C 5.9
9480 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'
9481 compiler_needs_object=yes
9482 tmp_sharedflag='-G' ;;
9483 *Sun\ F*) # Sun Fortran 8.3
9484 tmp_sharedflag='-G' ;;
9486 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9488 if test yes = "$supports_anon_versioning"; then
9489 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9490 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9491 echo "local: *; };" >> $output_objdir/$libname.ver~
9492 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9495 case $cc_basename in
9497 export_dynamic_flag_spec='-rdynamic'
9499 xlf* | bgf* | bgxlf* | mpixlf*)
9500 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9501 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9502 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9503 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9504 if test yes = "$supports_anon_versioning"; then
9505 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9506 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9507 echo "local: *; };" >> $output_objdir/$libname.ver~
9508 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9517 netbsd* | netbsdelf*-gnu)
9518 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9519 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9522 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9523 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9528 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9532 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9533 *** create shared libraries on Solaris systems. Therefore, libtool
9534 *** is disabling shared libraries support. We urge you to upgrade GNU
9535 *** binutils to release 2.9.1 or newer. Another option is to modify
9536 *** your PATH or compiler configuration so that the native linker is
9537 *** used, and then restart.
9540 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9541 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9542 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9548 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9549 case `$LD -v 2>&1` in
9550 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9554 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9555 *** reliably create shared libraries on SCO systems. Therefore, libtool
9556 *** is disabling shared libraries support. We urge you to upgrade GNU
9557 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9558 *** your PATH or compiler configuration so that the native linker is
9559 *** used, and then restart.
9564 # For security reasons, it is highly recommended that you always
9565 # use absolute paths for naming shared libraries, and exclude the
9566 # DT_RUNPATH tag from executables and libraries. But doing so
9567 # requires that you compile everything twice, which is a pain.
9568 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9569 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9571 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9580 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9583 hardcode_shlibpath_var=no
9587 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9588 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9589 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9596 if test no = "$ld_shlibs"; then
9598 hardcode_libdir_flag_spec=
9599 export_dynamic_flag_spec=
9600 whole_archive_flag_spec=
9603 # PORTME fill in a description of your system's linker (not GNU ld)
9606 allow_undefined_flag=unsupported
9607 always_export_symbols=yes
9608 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'
9609 # Note: this linker hardcodes the directories in LIBPATH if there
9610 # are no directories specified by -L.
9611 hardcode_minus_L=yes
9612 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9613 # Neither direct hardcoding nor static linking is supported with a
9615 hardcode_direct=unsupported
9620 if test ia64 = "$host_cpu"; then
9621 # On IA64, the linker does run time linking by default, so we don't
9622 # have to do anything special.
9623 aix_use_runtimelinking=no
9624 exp_sym_flag='-Bexport'
9627 # If we're using GNU nm, then we don't want the "-C" option.
9628 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9629 # Without the "-l" option, or with the "-B" option, AIX nm treats
9630 # weak defined symbols like other global defined symbols, whereas
9631 # GNU nm marks them as "W".
9632 # While the 'weak' keyword is ignored in the Export File, we need
9633 # it in the Import File for the 'aix-soname' feature, so we have
9634 # to replace the "-B" option with "-P" for AIX nm.
9635 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9636 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9638 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9640 aix_use_runtimelinking=no
9642 # Test if we are trying to use run time linking or normal
9643 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9644 # have runtime linking enabled, and use it for executables.
9645 # For shared libraries, we enable/disable runtime linking
9646 # depending on the kind of the shared library created -
9647 # when "with_aix_soname,aix_use_runtimelinking" is:
9648 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9649 # "aix,yes" lib.so shared, rtl:yes, for executables
9650 # lib.a static archive
9651 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9652 # lib.a(lib.so.V) shared, rtl:no, for executables
9653 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9654 # lib.a(lib.so.V) shared, rtl:no
9655 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9656 # lib.a static archive
9657 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9658 for ld_flag in $LDFLAGS; do
9659 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9660 aix_use_runtimelinking=yes
9664 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9665 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9666 # so we don't have lib.a shared libs to link our executables.
9667 # We have to force runtime linking in this case.
9668 aix_use_runtimelinking=yes
9669 LDFLAGS="$LDFLAGS -Wl,-brtl"
9674 exp_sym_flag='-bexport'
9675 no_entry_flag='-bnoentry'
9678 # When large executables or shared objects are built, AIX ld can
9679 # have problems creating the table of contents. If linking a library
9680 # or program results in "error TOC overflow" add -mminimal-toc to
9681 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9682 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9686 hardcode_direct_absolute=yes
9687 hardcode_libdir_separator=':'
9688 link_all_deplibs=yes
9689 file_list_spec='$wl-f,'
9690 case $with_aix_soname,$aix_use_runtimelinking in
9691 aix,*) ;; # traditional, no import file
9692 svr4,* | *,yes) # use import file
9693 # The Import File defines what to hardcode.
9695 hardcode_direct_absolute=no
9699 if test yes = "$GCC"; then
9700 case $host_os in aix4.[012]|aix4.[012].*)
9701 # We only want to do this on AIX 4.2 and lower, the check
9702 # below for broken collect2 doesn't work under 4.3+
9703 collect2name=`$CC -print-prog-name=collect2`
9704 if test -f "$collect2name" &&
9705 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9707 # We have reworked collect2
9710 # We have old collect2
9711 hardcode_direct=unsupported
9712 # It fails to find uninstalled libraries when the uninstalled
9713 # path is not listed in the libpath. Setting hardcode_minus_L
9714 # to unsupported forces relinking
9715 hardcode_minus_L=yes
9716 hardcode_libdir_flag_spec='-L$libdir'
9717 hardcode_libdir_separator=
9721 shared_flag='-shared'
9722 if test yes = "$aix_use_runtimelinking"; then
9723 shared_flag="$shared_flag "'$wl-G'
9725 # Need to ensure runtime linking is disabled for the traditional
9726 # shared library, or the linker may eventually find shared libraries
9727 # /with/ Import File - we do not want to mix them.
9728 shared_flag_aix='-shared'
9729 shared_flag_svr4='-shared $wl-G'
9732 if test ia64 = "$host_cpu"; then
9733 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9734 # chokes on -Wl,-G. The following line is correct:
9737 if test yes = "$aix_use_runtimelinking"; then
9740 shared_flag='$wl-bM:SRE'
9742 shared_flag_aix='$wl-bM:SRE'
9743 shared_flag_svr4='$wl-G'
9747 export_dynamic_flag_spec='$wl-bexpall'
9748 # It seems that -bexpall does not export symbols beginning with
9749 # underscore (_), so it is better to generate a list of symbols to export.
9750 always_export_symbols=yes
9751 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9752 # Warning - without using the other runtime loading flags (-brtl),
9753 # -berok will link without error, but may produce a broken library.
9754 allow_undefined_flag='-berok'
9755 # Determine the default libpath from the value encoded in an
9757 if test set = "${lt_cv_aix_libpath+set}"; then
9758 aix_libpath=$lt_cv_aix_libpath
9760 if ${lt_cv_aix_libpath_+:} false; then :
9761 $as_echo_n "(cached) " >&6
9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h. */
9774 if ac_fn_c_try_link "$LINENO"; then :
9776 lt_aix_libpath_sed='
9777 /Import File Strings/,/^$/ {
9779 s/^0 *\([^ ]*\) *$/\1/
9783 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9784 # Check for a 64-bit object if we didn't find anything.
9785 if test -z "$lt_cv_aix_libpath_"; then
9786 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9789 rm -f core conftest.err conftest.$ac_objext \
9790 conftest$ac_exeext conftest.$ac_ext
9791 if test -z "$lt_cv_aix_libpath_"; then
9792 lt_cv_aix_libpath_=/usr/lib:/lib
9797 aix_libpath=$lt_cv_aix_libpath_
9800 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9801 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9803 if test ia64 = "$host_cpu"; then
9804 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9805 allow_undefined_flag="-z nodefs"
9806 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"
9808 # Determine the default libpath from the value encoded in an
9810 if test set = "${lt_cv_aix_libpath+set}"; then
9811 aix_libpath=$lt_cv_aix_libpath
9813 if ${lt_cv_aix_libpath_+:} false; then :
9814 $as_echo_n "(cached) " >&6
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9827 if ac_fn_c_try_link "$LINENO"; then :
9829 lt_aix_libpath_sed='
9830 /Import File Strings/,/^$/ {
9832 s/^0 *\([^ ]*\) *$/\1/
9836 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9837 # Check for a 64-bit object if we didn't find anything.
9838 if test -z "$lt_cv_aix_libpath_"; then
9839 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9842 rm -f core conftest.err conftest.$ac_objext \
9843 conftest$ac_exeext conftest.$ac_ext
9844 if test -z "$lt_cv_aix_libpath_"; then
9845 lt_cv_aix_libpath_=/usr/lib:/lib
9850 aix_libpath=$lt_cv_aix_libpath_
9853 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9854 # Warning - without using the other run time loading flags,
9855 # -berok will link without error, but may produce a broken library.
9856 no_undefined_flag=' $wl-bernotok'
9857 allow_undefined_flag=' $wl-berok'
9858 if test yes = "$with_gnu_ld"; then
9859 # We only use this code for GNU lds that support --whole-archive.
9860 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9862 # Exported symbols can be pulled into shared objects from archives
9863 whole_archive_flag_spec='$convenience'
9865 archive_cmds_need_lc=yes
9866 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9867 # -brtl affects multiple linker settings, -berok does not and is overridden later
9868 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9869 if test svr4 != "$with_aix_soname"; then
9870 # This is similar to how AIX traditionally builds its shared libraries.
9871 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9873 if test aix != "$with_aix_soname"; then
9874 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9876 # used by -dlpreopen to get the symbols
9877 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9879 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9887 # see comment about AmigaOS4 .so support
9888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9889 archive_expsym_cmds=''
9892 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)'
9893 hardcode_libdir_flag_spec='-L$libdir'
9894 hardcode_minus_L=yes
9900 export_dynamic_flag_spec=-rdynamic
9903 cygwin* | mingw* | pw32* | cegcc*)
9904 # When not using gcc, we currently assume that we are using
9905 # Microsoft Visual C++.
9906 # hardcode_libdir_flag_spec is actually meaningless, as there is
9907 # no search path for DLLs.
9908 case $cc_basename in
9911 hardcode_libdir_flag_spec=' '
9912 allow_undefined_flag=unsupported
9913 always_export_symbols=yes
9915 # Tell ltmain to make .lib files, not .a files.
9917 # Tell ltmain to make .dll files, not .so files.
9919 # FIXME: Setting linknames here is a bad hack.
9920 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9921 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9922 cp "$export_symbols" "$output_objdir/$soname.def";
9923 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9925 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9927 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9929 # The linker will not automatically build a static lib if we build a DLL.
9930 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9931 enable_shared_with_static_runtimes=yes
9932 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9933 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9935 old_postinstall_cmds='chmod 644 $oldlib'
9936 postlink_cmds='lt_outputfile="@OUTPUT@"~
9937 lt_tool_outputfile="@TOOL_OUTPUT@"~
9938 case $lt_outputfile in
9941 lt_outputfile=$lt_outputfile.exe
9942 lt_tool_outputfile=$lt_tool_outputfile.exe
9945 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9946 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9947 $RM "$lt_outputfile.manifest";
9951 # Assume MSVC wrapper
9952 hardcode_libdir_flag_spec=' '
9953 allow_undefined_flag=unsupported
9954 # Tell ltmain to make .lib files, not .a files.
9956 # Tell ltmain to make .dll files, not .so files.
9958 # FIXME: Setting linknames here is a bad hack.
9959 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9960 # The linker will automatically build a .lib file if we build a DLL.
9961 old_archive_from_new_cmds='true'
9962 # FIXME: Should let the user specify the lib program.
9963 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9964 enable_shared_with_static_runtimes=yes
9969 darwin* | rhapsody*)
9972 archive_cmds_need_lc=no
9974 hardcode_automatic=yes
9975 hardcode_shlibpath_var=unsupported
9976 if test yes = "$lt_cv_ld_force_load"; then
9977 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\"`'
9980 whole_archive_flag_spec=''
9982 link_all_deplibs=yes
9983 allow_undefined_flag=$_lt_dar_allow_undefined
9984 case $cc_basename in
9985 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9986 *) _lt_dar_can_shared=$GCC ;;
9988 if test yes = "$_lt_dar_can_shared"; then
9989 output_verbose_link_cmd=func_echo_all
9990 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9991 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9992 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"
9993 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"
10002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10003 hardcode_libdir_flag_spec='-L$libdir'
10004 hardcode_shlibpath_var=no
10007 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10008 # support. Future versions do this automatically, but an explicit c++rt0.o
10009 # does not break anything, and helps significantly (at the cost of a little
10012 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10013 hardcode_libdir_flag_spec='-R$libdir'
10014 hardcode_direct=yes
10015 hardcode_shlibpath_var=no
10018 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10020 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10021 hardcode_direct=yes
10022 hardcode_minus_L=yes
10023 hardcode_shlibpath_var=no
10026 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10027 freebsd* | dragonfly*)
10028 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10029 hardcode_libdir_flag_spec='-R$libdir'
10030 hardcode_direct=yes
10031 hardcode_shlibpath_var=no
10035 if test yes = "$GCC"; then
10036 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10038 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10040 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10041 hardcode_libdir_separator=:
10042 hardcode_direct=yes
10044 # hardcode_minus_L: Not really in the search PATH,
10045 # but as the default location of the library.
10046 hardcode_minus_L=yes
10047 export_dynamic_flag_spec='$wl-E'
10051 if test yes,no = "$GCC,$with_gnu_ld"; then
10052 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10054 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10056 if test no = "$with_gnu_ld"; then
10057 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10058 hardcode_libdir_separator=:
10059 hardcode_direct=yes
10060 hardcode_direct_absolute=yes
10061 export_dynamic_flag_spec='$wl-E'
10062 # hardcode_minus_L: Not really in the search PATH,
10063 # but as the default location of the library.
10064 hardcode_minus_L=yes
10069 if test yes,no = "$GCC,$with_gnu_ld"; then
10072 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10075 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10078 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10084 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10087 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10091 # Older versions of the 11.00 compiler do not understand -b yet
10092 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10094 $as_echo_n "checking if $CC understands -b... " >&6; }
10095 if ${lt_cv_prog_compiler__b+:} false; then :
10096 $as_echo_n "(cached) " >&6
10098 lt_cv_prog_compiler__b=no
10099 save_LDFLAGS=$LDFLAGS
10100 LDFLAGS="$LDFLAGS -b"
10101 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10102 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10103 # The linker can only warn and ignore the option if not recognized
10104 # So say no if there are warnings
10105 if test -s conftest.err; then
10106 # Append any errors to the config.log.
10107 cat conftest.err 1>&5
10108 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10110 if diff conftest.exp conftest.er2 >/dev/null; then
10111 lt_cv_prog_compiler__b=yes
10114 lt_cv_prog_compiler__b=yes
10118 LDFLAGS=$save_LDFLAGS
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10122 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10124 if test yes = "$lt_cv_prog_compiler__b"; then
10125 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10127 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10133 if test no = "$with_gnu_ld"; then
10134 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10135 hardcode_libdir_separator=:
10140 hardcode_shlibpath_var=no
10143 hardcode_direct=yes
10144 hardcode_direct_absolute=yes
10145 export_dynamic_flag_spec='$wl-E'
10147 # hardcode_minus_L: Not really in the search PATH,
10148 # but as the default location of the library.
10149 hardcode_minus_L=yes
10155 irix5* | irix6* | nonstopux*)
10156 if test yes = "$GCC"; then
10157 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'
10158 # Try to use the -exported_symbol ld option, if it does not
10159 # work, assume that -exports_file does not work either and
10160 # implicitly export all symbols.
10161 # This should be the same for all languages, so no per-tag cache variable.
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10163 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10164 if ${lt_cv_irix_exported_symbol+:} false; then :
10165 $as_echo_n "(cached) " >&6
10167 save_LDFLAGS=$LDFLAGS
10168 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h. */
10171 int foo (void) { return 0; }
10173 if ac_fn_c_try_link "$LINENO"; then :
10174 lt_cv_irix_exported_symbol=yes
10176 lt_cv_irix_exported_symbol=no
10178 rm -f core conftest.err conftest.$ac_objext \
10179 conftest$ac_exeext conftest.$ac_ext
10180 LDFLAGS=$save_LDFLAGS
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10183 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10184 if test yes = "$lt_cv_irix_exported_symbol"; then
10185 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'
10187 link_all_deplibs=no
10189 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'
10190 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'
10192 archive_cmds_need_lc='no'
10193 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10194 hardcode_libdir_separator=:
10196 link_all_deplibs=yes
10200 case $cc_basename in
10202 # Fabrice Bellard et al's Tiny C Compiler
10204 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10209 netbsd* | netbsdelf*-gnu)
10210 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10213 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10215 hardcode_libdir_flag_spec='-R$libdir'
10216 hardcode_direct=yes
10217 hardcode_shlibpath_var=no
10221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10222 hardcode_direct=yes
10223 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10224 hardcode_libdir_separator=:
10225 hardcode_shlibpath_var=no
10231 openbsd* | bitrig*)
10232 if test -f /usr/libexec/ld.so; then
10233 hardcode_direct=yes
10234 hardcode_shlibpath_var=no
10235 hardcode_direct_absolute=yes
10236 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10237 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10238 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10239 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10240 export_dynamic_flag_spec='$wl-E'
10242 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10243 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10251 hardcode_libdir_flag_spec='-L$libdir'
10252 hardcode_minus_L=yes
10253 allow_undefined_flag=unsupported
10255 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10256 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10257 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10258 $ECHO EXPORTS >> $output_objdir/$libname.def~
10259 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10260 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10261 emximp -o $lib $output_objdir/$libname.def'
10262 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10263 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10264 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10265 $ECHO EXPORTS >> $output_objdir/$libname.def~
10266 prefix_cmds="$SED"~
10267 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10268 prefix_cmds="$prefix_cmds -e 1d";
10270 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10271 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10272 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10273 emximp -o $lib $output_objdir/$libname.def'
10274 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10275 enable_shared_with_static_runtimes=yes
10279 if test yes = "$GCC"; then
10280 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10281 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'
10283 allow_undefined_flag=' -expect_unresolved \*'
10284 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'
10286 archive_cmds_need_lc='no'
10287 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10288 hardcode_libdir_separator=:
10291 osf4* | osf5*) # as osf3* with the addition of -msym flag
10292 if test yes = "$GCC"; then
10293 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10294 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'
10295 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10297 allow_undefined_flag=' -expect_unresolved \*'
10298 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'
10299 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~
10300 $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'
10302 # Both c and cxx compiler support -rpath directly
10303 hardcode_libdir_flag_spec='-rpath $libdir'
10305 archive_cmds_need_lc='no'
10306 hardcode_libdir_separator=:
10310 no_undefined_flag=' -z defs'
10311 if test yes = "$GCC"; then
10313 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10314 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10315 $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'
10317 case `$CC -V 2>&1` in
10320 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10321 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10322 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10326 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10327 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10328 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10332 hardcode_libdir_flag_spec='-R$libdir'
10333 hardcode_shlibpath_var=no
10335 solaris2.[0-5] | solaris2.[0-5].*) ;;
10337 # The compiler driver will combine and reorder linker options,
10338 # but understands '-z linker_flag'. GCC discards it without '$wl',
10339 # but is careful enough not to reorder.
10340 # Supported since Solaris 2.6 (maybe 2.5.1?)
10341 if test yes = "$GCC"; then
10342 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10344 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10348 link_all_deplibs=yes
10352 if test sequent = "$host_vendor"; then
10353 # Use $CC to link under sequent, because it throws in some extra .o
10354 # files that make .init and .fini sections work.
10355 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10357 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10359 hardcode_libdir_flag_spec='-L$libdir'
10360 hardcode_direct=yes
10361 hardcode_minus_L=yes
10362 hardcode_shlibpath_var=no
10366 case $host_vendor in
10368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10369 hardcode_direct=yes # is this really true???
10372 ## LD is ld it makes a PLAMLIB
10373 ## CC just makes a GrossModule.
10374 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10375 reload_cmds='$CC -r -o $output$reload_objs'
10379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10380 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10383 runpath_var='LD_RUN_PATH'
10384 hardcode_shlibpath_var=no
10388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10389 hardcode_shlibpath_var=no
10390 export_dynamic_flag_spec='-Bexport'
10394 if test -d /usr/nec; then
10395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10396 hardcode_shlibpath_var=no
10397 runpath_var=LD_RUN_PATH
10398 hardcode_runpath_var=yes
10403 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10404 no_undefined_flag='$wl-z,text'
10405 archive_cmds_need_lc=no
10406 hardcode_shlibpath_var=no
10407 runpath_var='LD_RUN_PATH'
10409 if test yes = "$GCC"; then
10410 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10411 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10413 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10414 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10418 sysv5* | sco3.2v5* | sco5v6*)
10419 # Note: We CANNOT use -z defs as we might desire, because we do not
10420 # link with -lc, and that would cause any symbols used from libc to
10421 # always be unresolved, which means just about no library would
10422 # ever link correctly. If we're not using GNU ld we use -z text
10423 # though, which does catch some bad symbols but isn't as heavy-handed
10425 no_undefined_flag='$wl-z,text'
10426 allow_undefined_flag='$wl-z,nodefs'
10427 archive_cmds_need_lc=no
10428 hardcode_shlibpath_var=no
10429 hardcode_libdir_flag_spec='$wl-R,$libdir'
10430 hardcode_libdir_separator=':'
10431 link_all_deplibs=yes
10432 export_dynamic_flag_spec='$wl-Bexport'
10433 runpath_var='LD_RUN_PATH'
10435 if test yes = "$GCC"; then
10436 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10437 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10439 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10440 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10446 hardcode_libdir_flag_spec='-L$libdir'
10447 hardcode_shlibpath_var=no
10455 if test sni = "$host_vendor"; then
10457 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10458 export_dynamic_flag_spec='$wl-Blargedynsym'
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10465 $as_echo "$ld_shlibs" >&6; }
10466 test no = "$ld_shlibs" && can_build_shared=no
10468 with_gnu_ld=$with_gnu_ld
10485 # Do we need to explicitly link libc?
10487 case "x$archive_cmds_need_lc" in
10489 # Assume -lc should be added
10490 archive_cmds_need_lc=yes
10492 if test yes,yes = "$GCC,$enable_shared"; then
10493 case $archive_cmds in
10495 # FIXME: we may have to deal with multi-command sequences.
10498 # Test whether the compiler implicitly links with -lc since on some
10499 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10500 # to ld, don't add -lc before -lgcc.
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10502 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10503 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10504 $as_echo_n "(cached) " >&6
10507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10510 (eval $ac_compile) 2>&5
10512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10513 test $ac_status = 0; } 2>conftest.err; then
10516 libobjs=conftest.$ac_objext
10518 wl=$lt_prog_compiler_wl
10519 pic_flag=$lt_prog_compiler_pic
10525 lt_save_allow_undefined_flag=$allow_undefined_flag
10526 allow_undefined_flag=
10527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10528 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10531 test $ac_status = 0; }
10533 lt_cv_archive_cmds_need_lc=no
10535 lt_cv_archive_cmds_need_lc=yes
10537 allow_undefined_flag=$lt_save_allow_undefined_flag
10539 cat conftest.err 1>&5
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10545 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10546 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10705 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10707 if test yes = "$GCC"; then
10709 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10710 *) lt_awk_arg='/^libraries:/' ;;
10713 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10714 *) lt_sed_strip_eq='s|=/|/|g' ;;
10716 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10717 case $lt_search_path_spec in
10719 # if the path contains ";" then we assume it to be the separator
10720 # otherwise default to the standard path separator (i.e. ":") - it is
10721 # assumed that no part of a normal pathname contains ";" but that should
10722 # okay in the real world where ";" in dirpaths is itself problematic.
10723 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10726 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10729 # Ok, now we have the path, separated by spaces, we can step through it
10730 # and add multilib dir if necessary...
10731 lt_tmp_lt_search_path_spec=
10732 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10733 # ...but if some path component already ends with the multilib dir we assume
10734 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10735 case "$lt_multi_os_dir; $lt_search_path_spec " in
10736 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10740 for lt_sys_path in $lt_search_path_spec; do
10741 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10742 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10743 elif test -n "$lt_multi_os_dir"; then
10744 test -d "$lt_sys_path" && \
10745 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10748 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10749 BEGIN {RS = " "; FS = "/|\n";} {
10752 for (lt_i = NF; lt_i > 0; lt_i--) {
10753 if ($lt_i != "" && $lt_i != ".") {
10754 if ($lt_i == "..") {
10757 if (lt_count == 0) {
10758 lt_foo = "/" $lt_i lt_foo;
10765 if (lt_foo != "") { lt_freq[lt_foo]++; }
10766 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10768 # AWK program above erroneously prepends '/' to C:/dos/paths
10771 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10772 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10774 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10776 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10778 library_names_spec=
10779 libname_spec='lib$name'
10783 postuninstall_cmds=
10787 shlibpath_overrides_runpath=unknown
10789 dynamic_linker="$host_os ld.so"
10790 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10791 need_lib_prefix=unknown
10792 hardcode_into_libs=no
10794 # when you set need_version to no, make sure it does not cause -set_version
10795 # flags to be left without arguments
10796 need_version=unknown
10802 version_type=linux # correct to gnu/linux during the next big refactor
10803 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10804 shlibpath_var=LIBPATH
10806 # AIX 3 has no versioning support, so we append a major version to the name.
10807 soname_spec='$libname$release$shared_ext$major'
10811 version_type=linux # correct to gnu/linux during the next big refactor
10814 hardcode_into_libs=yes
10815 if test ia64 = "$host_cpu"; then
10816 # AIX 5 supports IA64
10817 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10818 shlibpath_var=LD_LIBRARY_PATH
10820 # With GCC up to 2.95.x, collect2 would create an import file
10821 # for dependence libraries. The import file would start with
10822 # the line '#! .'. This would cause the generated library to
10823 # depend on '.', always an invalid library. This was fixed in
10824 # development snapshots of GCC prior to 3.0.
10826 aix4 | aix4.[01] | aix4.[01].*)
10827 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10829 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10832 can_build_shared=no
10836 # Using Import Files as archive members, it is possible to support
10837 # filename-based versioning of shared library archives on AIX. While
10838 # this would work for both with and without runtime linking, it will
10839 # prevent static linking of such archives. So we do filename-based
10840 # shared library versioning with .so extension only, which is used
10841 # when both runtime linking and shared linking is enabled.
10842 # Unfortunately, runtime linking may impact performance, so we do
10843 # not want this to be the default eventually. Also, we use the
10844 # versioned .so libs for executables only if there is the -brtl
10845 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10846 # To allow for filename-based versioning support, we need to create
10847 # libNAME.so.V as an archive file, containing:
10848 # *) an Import File, referring to the versioned filename of the
10849 # archive as well as the shared archive member, telling the
10850 # bitwidth (32 or 64) of that shared object, and providing the
10851 # list of exported symbols of that shared object, eventually
10852 # decorated with the 'weak' keyword
10853 # *) the shared object with the F_LOADONLY flag set, to really avoid
10854 # it being seen by the linker.
10855 # At run time we better use the real file rather than another symlink,
10856 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10858 case $with_aix_soname,$aix_use_runtimelinking in
10859 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10860 # soname into executable. Probably we can add versioning support to
10861 # collect2, so additional links can be useful in future.
10862 aix,yes) # traditional libtool
10863 dynamic_linker='AIX unversionable lib.so'
10864 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10865 # instead of lib<name>.a to let people know that these are not
10866 # typical AIX shared libraries.
10867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10869 aix,no) # traditional AIX only
10870 dynamic_linker='AIX lib.a(lib.so.V)'
10871 # We preserve .a as extension for shared libraries through AIX4.2
10872 # and later when we are not doing run time linking.
10873 library_names_spec='$libname$release.a $libname.a'
10874 soname_spec='$libname$release$shared_ext$major'
10876 svr4,*) # full svr4 only
10877 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10878 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10879 # We do not specify a path in Import Files, so LIBPATH fires.
10880 shlibpath_overrides_runpath=yes
10882 *,yes) # both, prefer svr4
10883 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10884 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10885 # unpreferred sharedlib libNAME.a needs extra handling
10886 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10887 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10888 # We do not specify a path in Import Files, so LIBPATH fires.
10889 shlibpath_overrides_runpath=yes
10891 *,no) # both, prefer aix
10892 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10893 library_names_spec='$libname$release.a $libname.a'
10894 soname_spec='$libname$release$shared_ext$major'
10895 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10896 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10897 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10900 shlibpath_var=LIBPATH
10907 # Since July 2007 AmigaOS4 officially supports .so libraries.
10908 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10912 library_names_spec='$libname.ixlibrary $libname.a'
10913 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10914 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10920 library_names_spec='$libname$shared_ext'
10921 dynamic_linker="$host_os ld.so"
10922 shlibpath_var=LIBRARY_PATH
10926 version_type=linux # correct to gnu/linux during the next big refactor
10928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10929 soname_spec='$libname$release$shared_ext$major'
10930 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10931 shlibpath_var=LD_LIBRARY_PATH
10932 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10933 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10934 # the default ld.so.conf also contains /usr/contrib/lib and
10935 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10936 # libtool to hard-code these into programs
10939 cygwin* | mingw* | pw32* | cegcc*)
10940 version_type=windows
10945 case $GCC,$cc_basename in
10948 library_names_spec='$libname.dll.a'
10949 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10950 postinstall_cmds='base_file=`basename \$file`~
10951 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10952 dldir=$destdir/`dirname \$dlpath`~
10953 test -d \$dldir || mkdir -p \$dldir~
10954 $install_prog $dir/$dlname \$dldir/$dlname~
10955 chmod a+x \$dldir/$dlname~
10956 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10957 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10959 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10960 dlpath=$dir/\$dldll~
10962 shlibpath_overrides_runpath=yes
10966 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10967 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10969 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10972 # MinGW DLLs use traditional 'lib' prefix
10973 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10976 # pw32 DLLs use 'pw' prefix rather than 'lib'
10977 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10980 dynamic_linker='Win32 ld.exe'
10985 libname_spec='$name'
10986 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10987 library_names_spec='$libname.dll.lib'
10991 sys_lib_search_path_spec=
10994 for lt_path in $LIB
10997 # Let DOS variable expansion print the short 8.3 style file name.
10998 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10999 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11002 # Convert to MSYS style.
11003 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11006 # Convert to unix form, then to dos form, then back to unix form
11007 # but this time dos style (no spaces!) so that the unix form looks
11008 # like /cygdrive/c/PROGRA~1:/cygdr...
11009 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11010 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11011 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11014 sys_lib_search_path_spec=$LIB
11015 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11016 # It is most probably a Windows format PATH.
11017 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11019 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11021 # FIXME: find the short name or the path components, as spaces are
11022 # common. (e.g. "Program Files" -> "PROGRA~1")
11026 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11027 postinstall_cmds='base_file=`basename \$file`~
11028 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11029 dldir=$destdir/`dirname \$dlpath`~
11030 test -d \$dldir || mkdir -p \$dldir~
11031 $install_prog $dir/$dlname \$dldir/$dlname'
11032 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11033 dlpath=$dir/\$dldll~
11035 shlibpath_overrides_runpath=yes
11036 dynamic_linker='Win32 link.exe'
11040 # Assume MSVC wrapper
11041 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11042 dynamic_linker='Win32 ld.exe'
11045 # FIXME: first we should search . and the directory the executable is in
11049 darwin* | rhapsody*)
11050 dynamic_linker="$host_os dyld"
11051 version_type=darwin
11054 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11055 soname_spec='$libname$release$major$shared_ext'
11056 shlibpath_overrides_runpath=yes
11057 shlibpath_var=DYLD_LIBRARY_PATH
11058 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11060 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11061 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11065 version_type=linux # correct to gnu/linux during the next big refactor
11068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11069 soname_spec='$libname$release$shared_ext$major'
11070 shlibpath_var=LD_LIBRARY_PATH
11073 freebsd* | dragonfly*)
11074 # DragonFly does not have aout. When/if they implement a new
11075 # versioning mechanism, adjust this.
11076 if test -x /usr/bin/objformat; then
11077 objformat=`/usr/bin/objformat`
11080 freebsd[23].*) objformat=aout ;;
11081 *) objformat=elf ;;
11084 version_type=freebsd-$objformat
11085 case $version_type in
11087 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11088 soname_spec='$libname$release$shared_ext$major'
11093 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11097 shlibpath_var=LD_LIBRARY_PATH
11100 shlibpath_overrides_runpath=yes
11102 freebsd3.[01]* | freebsdelf3.[01]*)
11103 shlibpath_overrides_runpath=yes
11104 hardcode_into_libs=yes
11106 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11107 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11108 shlibpath_overrides_runpath=no
11109 hardcode_into_libs=yes
11111 *) # from 4.6 on, and DragonFly
11112 shlibpath_overrides_runpath=yes
11113 hardcode_into_libs=yes
11119 version_type=linux # correct to gnu/linux during the next big refactor
11122 dynamic_linker="$host_os runtime_loader"
11123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11124 soname_spec='$libname$release$shared_ext$major'
11125 shlibpath_var=LIBRARY_PATH
11126 shlibpath_overrides_runpath=no
11127 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11128 hardcode_into_libs=yes
11131 hpux9* | hpux10* | hpux11*)
11132 # Give a soname corresponding to the major version so that dld.sl refuses to
11133 # link against other versions.
11140 hardcode_into_libs=yes
11141 dynamic_linker="$host_os dld.so"
11142 shlibpath_var=LD_LIBRARY_PATH
11143 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11144 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11145 soname_spec='$libname$release$shared_ext$major'
11146 if test 32 = "$HPUX_IA64_MODE"; then
11147 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11148 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11150 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11151 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11156 hardcode_into_libs=yes
11157 dynamic_linker="$host_os dld.sl"
11158 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11159 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11160 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11161 soname_spec='$libname$release$shared_ext$major'
11162 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11167 dynamic_linker="$host_os dld.sl"
11168 shlibpath_var=SHLIB_PATH
11169 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11170 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11171 soname_spec='$libname$release$shared_ext$major'
11174 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11175 postinstall_cmds='chmod 555 $lib'
11176 # or fails outright, so override atomically:
11177 install_override_mode=555
11181 version_type=linux # correct to gnu/linux during the next big refactor
11184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11185 soname_spec='$libname$release$shared_ext$major'
11186 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11187 shlibpath_var=LD_LIBRARY_PATH
11188 shlibpath_overrides_runpath=no
11189 hardcode_into_libs=yes
11192 irix5* | irix6* | nonstopux*)
11194 nonstopux*) version_type=nonstopux ;;
11196 if test yes = "$lt_cv_prog_gnu_ld"; then
11197 version_type=linux # correct to gnu/linux during the next big refactor
11204 soname_spec='$libname$release$shared_ext$major'
11205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11207 irix5* | nonstopux*)
11208 libsuff= shlibsuff=
11211 case $LD in # libtool.m4 will add one of these switches to LD
11212 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11213 libsuff= shlibsuff= libmagic=32-bit;;
11214 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11215 libsuff=32 shlibsuff=N32 libmagic=N32;;
11216 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11217 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11218 *) libsuff= shlibsuff= libmagic=never-match;;
11222 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11223 shlibpath_overrides_runpath=no
11224 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11225 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11226 hardcode_into_libs=yes
11229 # No shared lib support for Linux oldld, aout, or coff.
11230 linux*oldld* | linux*aout* | linux*coff*)
11235 version_type=none # Android doesn't support versioned libraries.
11238 library_names_spec='$libname$release$shared_ext'
11239 soname_spec='$libname$release$shared_ext'
11241 shlibpath_var=LD_LIBRARY_PATH
11242 shlibpath_overrides_runpath=yes
11244 # This implies no fast_install, which is unacceptable.
11245 # Some rework will be needed to allow for fast_install
11246 # before this can be enabled.
11247 hardcode_into_libs=yes
11249 dynamic_linker='Android linker'
11250 # Don't embed -rpath directories since the linker doesn't support them.
11251 hardcode_libdir_flag_spec='-L$libdir'
11254 # This must be glibc/ELF.
11255 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11256 version_type=linux # correct to gnu/linux during the next big refactor
11259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11260 soname_spec='$libname$release$shared_ext$major'
11261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11262 shlibpath_var=LD_LIBRARY_PATH
11263 shlibpath_overrides_runpath=no
11265 # Some binutils ld are patched to set DT_RUNPATH
11266 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11267 $as_echo_n "(cached) " >&6
11269 lt_cv_shlibpath_overrides_runpath=no
11270 save_LDFLAGS=$LDFLAGS
11271 save_libdir=$libdir
11272 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11273 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11275 /* end confdefs.h. */
11285 if ac_fn_c_try_link "$LINENO"; then :
11286 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11287 lt_cv_shlibpath_overrides_runpath=yes
11290 rm -f core conftest.err conftest.$ac_objext \
11291 conftest$ac_exeext conftest.$ac_ext
11292 LDFLAGS=$save_LDFLAGS
11293 libdir=$save_libdir
11297 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11299 # This implies no fast_install, which is unacceptable.
11300 # Some rework will be needed to allow for fast_install
11301 # before this can be enabled.
11302 hardcode_into_libs=yes
11304 # Ideally, we could use ldconfig to report *all* directores which are
11305 # searched for libraries, however this is still not possible. Aside from not
11306 # being certain /sbin/ldconfig is available, command
11307 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11308 # even though it is searched at run-time. Try to do the best guess by
11309 # appending ld.so.conf contents (and includes) to the search path.
11310 if test -f /etc/ld.so.conf; then
11311 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' ' '`
11312 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11315 # We used to test for /lib/ld.so.1 and disable shared libraries on
11316 # powerpc, because MkLinux only supported shared libraries with the
11317 # GNU dynamic linker. Since this was broken with cross compilers,
11318 # most powerpc-linux boxes support dynamic linking these days and
11319 # people can always --disable-shared, the test was removed, and we
11320 # assume the GNU/Linux dynamic linker is in use.
11321 dynamic_linker='GNU/Linux ld.so'
11328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11329 soname_spec='${libname}${release}${shared_ext}$major'
11330 shlibpath_var=LD_LIBRARY_PATH
11331 shlibpath_overrides_runpath=no
11332 hardcode_into_libs=yes
11333 dynamic_linker='NetBSD ld.elf_so'
11340 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11341 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11343 dynamic_linker='NetBSD (a.out) ld.so'
11345 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11346 soname_spec='$libname$release$shared_ext$major'
11347 dynamic_linker='NetBSD ld.elf_so'
11349 shlibpath_var=LD_LIBRARY_PATH
11350 shlibpath_overrides_runpath=yes
11351 hardcode_into_libs=yes
11355 version_type=linux # correct to gnu/linux during the next big refactor
11356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11357 shlibpath_var=LD_LIBRARY_PATH
11358 shlibpath_overrides_runpath=yes
11365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11366 soname_spec='$libname$release$shared_ext$major'
11367 shlibpath_var=LD_LIBRARY_PATH
11368 shlibpath_overrides_runpath=no
11369 hardcode_into_libs=yes
11370 dynamic_linker='ldqnx.so'
11373 openbsd* | bitrig*)
11375 sys_lib_dlsearch_path_spec=/usr/lib
11377 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11382 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11384 shlibpath_var=LD_LIBRARY_PATH
11385 shlibpath_overrides_runpath=yes
11389 libname_spec='$name'
11390 version_type=windows
11394 # OS/2 can only load a DLL with a base name of 8 characters or less.
11395 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11396 v=$($ECHO $release$versuffix | tr -d .-);
11397 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11398 $ECHO $n$v`$shared_ext'
11399 library_names_spec='${libname}_dll.$libext'
11400 dynamic_linker='OS/2 ld.exe'
11401 shlibpath_var=BEGINLIBPATH
11402 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11403 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11404 postinstall_cmds='base_file=`basename \$file`~
11405 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11406 dldir=$destdir/`dirname \$dlpath`~
11407 test -d \$dldir || mkdir -p \$dldir~
11408 $install_prog $dir/$dlname \$dldir/$dlname~
11409 chmod a+x \$dldir/$dlname~
11410 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11411 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11413 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11414 dlpath=$dir/\$dldll~
11418 osf3* | osf4* | osf5*)
11422 soname_spec='$libname$release$shared_ext$major'
11423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11424 shlibpath_var=LD_LIBRARY_PATH
11425 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11426 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11434 version_type=linux # correct to gnu/linux during the next big refactor
11437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11438 soname_spec='$libname$release$shared_ext$major'
11439 shlibpath_var=LD_LIBRARY_PATH
11440 shlibpath_overrides_runpath=yes
11441 hardcode_into_libs=yes
11442 # ldd complains unless libraries are executable
11443 postinstall_cmds='chmod +x $lib'
11448 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11449 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11450 shlibpath_var=LD_LIBRARY_PATH
11451 shlibpath_overrides_runpath=yes
11452 if test yes = "$with_gnu_ld"; then
11459 version_type=linux # correct to gnu/linux during the next big refactor
11460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11461 soname_spec='$libname$release$shared_ext$major'
11462 shlibpath_var=LD_LIBRARY_PATH
11463 case $host_vendor in
11465 shlibpath_overrides_runpath=no
11467 runpath_var=LD_RUN_PATH
11475 shlibpath_overrides_runpath=no
11476 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11482 if test -d /usr/nec; then
11483 version_type=linux # correct to gnu/linux during the next big refactor
11484 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11485 soname_spec='$libname$shared_ext.$major'
11486 shlibpath_var=LD_LIBRARY_PATH
11490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11495 soname_spec='$libname$release$shared_ext$major'
11496 shlibpath_var=LD_LIBRARY_PATH
11497 shlibpath_overrides_runpath=yes
11498 hardcode_into_libs=yes
11499 if test yes = "$with_gnu_ld"; then
11500 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11502 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11505 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11509 sys_lib_dlsearch_path_spec='/usr/lib'
11513 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11514 version_type=linux # correct to gnu/linux during the next big refactor
11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11518 shlibpath_var=LD_LIBRARY_PATH
11519 shlibpath_overrides_runpath=no
11520 hardcode_into_libs=yes
11524 version_type=linux # correct to gnu/linux during the next big refactor
11525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11526 soname_spec='$libname$release$shared_ext$major'
11527 shlibpath_var=LD_LIBRARY_PATH
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11535 $as_echo "$dynamic_linker" >&6; }
11536 test no = "$dynamic_linker" && can_build_shared=no
11538 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11539 if test yes = "$GCC"; then
11540 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11543 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11544 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11547 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11548 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11551 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11552 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11554 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11555 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11557 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11558 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11657 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11659 if test -n "$hardcode_libdir_flag_spec" ||
11660 test -n "$runpath_var" ||
11661 test yes = "$hardcode_automatic"; then
11663 # We can hardcode non-existent directories.
11664 if test no != "$hardcode_direct" &&
11665 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11666 # have to relink, otherwise we might link with an installed library
11667 # when we should be linking with a yet-to-be-installed one
11668 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11669 test no != "$hardcode_minus_L"; then
11670 # Linking always hardcodes the temporary library directory.
11671 hardcode_action=relink
11673 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11674 hardcode_action=immediate
11677 # We cannot hardcode anything, or else we can only hardcode existing
11679 hardcode_action=unsupported
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11682 $as_echo "$hardcode_action" >&6; }
11684 if test relink = "$hardcode_action" ||
11685 test yes = "$inherit_rpath"; then
11686 # Fast installation is not supported
11687 enable_fast_install=no
11688 elif test yes = "$shlibpath_overrides_runpath" ||
11689 test no = "$enable_shared"; then
11690 # Fast installation is not necessary
11691 enable_fast_install=needless
11699 if test yes != "$enable_dlopen"; then
11700 enable_dlopen=unknown
11701 enable_dlopen_self=unknown
11702 enable_dlopen_self_static=unknown
11709 lt_cv_dlopen=load_add_on
11711 lt_cv_dlopen_self=yes
11714 mingw* | pw32* | cegcc*)
11715 lt_cv_dlopen=LoadLibrary
11720 lt_cv_dlopen=dlopen
11725 # if libdl is installed we need to link against it
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11727 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11728 if ${ac_cv_lib_dl_dlopen+:} false; then :
11729 $as_echo_n "(cached) " >&6
11731 ac_check_lib_save_LIBS=$LIBS
11733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11734 /* end confdefs.h. */
11736 /* Override any GCC internal prototype to avoid an error.
11737 Use char because int might match the return type of a GCC
11738 builtin and then its argument prototype would still apply. */
11751 if ac_fn_c_try_link "$LINENO"; then :
11752 ac_cv_lib_dl_dlopen=yes
11754 ac_cv_lib_dl_dlopen=no
11756 rm -f core conftest.err conftest.$ac_objext \
11757 conftest$ac_exeext conftest.$ac_ext
11758 LIBS=$ac_check_lib_save_LIBS
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11761 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11762 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11763 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11768 lt_cv_dlopen_self=yes
11775 # Don't try to run any link tests for TPF. We know it's impossible
11776 # because TPF is a cross-compiler, and we know how we open DSOs.
11777 lt_cv_dlopen=dlopen
11779 lt_cv_dlopen_self=no
11783 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11784 if test "x$ac_cv_func_shl_load" = xyes; then :
11785 lt_cv_dlopen=shl_load
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11788 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11789 if ${ac_cv_lib_dld_shl_load+:} false; then :
11790 $as_echo_n "(cached) " >&6
11792 ac_check_lib_save_LIBS=$LIBS
11794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795 /* end confdefs.h. */
11797 /* Override any GCC internal prototype to avoid an error.
11798 Use char because int might match the return type of a GCC
11799 builtin and then its argument prototype would still apply. */
11807 return shl_load ();
11812 if ac_fn_c_try_link "$LINENO"; then :
11813 ac_cv_lib_dld_shl_load=yes
11815 ac_cv_lib_dld_shl_load=no
11817 rm -f core conftest.err conftest.$ac_objext \
11818 conftest$ac_exeext conftest.$ac_ext
11819 LIBS=$ac_check_lib_save_LIBS
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11822 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11823 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11824 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11826 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11827 if test "x$ac_cv_func_dlopen" = xyes; then :
11828 lt_cv_dlopen=dlopen
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11831 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11832 if ${ac_cv_lib_dl_dlopen+:} false; then :
11833 $as_echo_n "(cached) " >&6
11835 ac_check_lib_save_LIBS=$LIBS
11837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838 /* end confdefs.h. */
11840 /* Override any GCC internal prototype to avoid an error.
11841 Use char because int might match the return type of a GCC
11842 builtin and then its argument prototype would still apply. */
11855 if ac_fn_c_try_link "$LINENO"; then :
11856 ac_cv_lib_dl_dlopen=yes
11858 ac_cv_lib_dl_dlopen=no
11860 rm -f core conftest.err conftest.$ac_objext \
11861 conftest$ac_exeext conftest.$ac_ext
11862 LIBS=$ac_check_lib_save_LIBS
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11865 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11866 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11867 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11870 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11871 if ${ac_cv_lib_svld_dlopen+:} false; then :
11872 $as_echo_n "(cached) " >&6
11874 ac_check_lib_save_LIBS=$LIBS
11875 LIBS="-lsvld $LIBS"
11876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h. */
11879 /* Override any GCC internal prototype to avoid an error.
11880 Use char because int might match the return type of a GCC
11881 builtin and then its argument prototype would still apply. */
11894 if ac_fn_c_try_link "$LINENO"; then :
11895 ac_cv_lib_svld_dlopen=yes
11897 ac_cv_lib_svld_dlopen=no
11899 rm -f core conftest.err conftest.$ac_objext \
11900 conftest$ac_exeext conftest.$ac_ext
11901 LIBS=$ac_check_lib_save_LIBS
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11904 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11905 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11906 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11909 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11910 if ${ac_cv_lib_dld_dld_link+:} false; then :
11911 $as_echo_n "(cached) " >&6
11913 ac_check_lib_save_LIBS=$LIBS
11915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11916 /* end confdefs.h. */
11918 /* Override any GCC internal prototype to avoid an error.
11919 Use char because int might match the return type of a GCC
11920 builtin and then its argument prototype would still apply. */
11928 return dld_link ();
11933 if ac_fn_c_try_link "$LINENO"; then :
11934 ac_cv_lib_dld_dld_link=yes
11936 ac_cv_lib_dld_dld_link=no
11938 rm -f core conftest.err conftest.$ac_objext \
11939 conftest$ac_exeext conftest.$ac_ext
11940 LIBS=$ac_check_lib_save_LIBS
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11943 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11944 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11945 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11966 if test no = "$lt_cv_dlopen"; then
11972 case $lt_cv_dlopen in
11974 save_CPPFLAGS=$CPPFLAGS
11975 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11977 save_LDFLAGS=$LDFLAGS
11978 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11981 LIBS="$lt_cv_dlopen_libs $LIBS"
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11984 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11985 if ${lt_cv_dlopen_self+:} false; then :
11986 $as_echo_n "(cached) " >&6
11988 if test yes = "$cross_compiling"; then :
11989 lt_cv_dlopen_self=cross
11991 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11992 lt_status=$lt_dlunknown
11993 cat > conftest.$ac_ext <<_LT_EOF
11994 #line $LINENO "configure"
11995 #include "confdefs.h"
12004 # define LT_DLGLOBAL RTLD_GLOBAL
12007 # define LT_DLGLOBAL DL_GLOBAL
12009 # define LT_DLGLOBAL 0
12013 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12014 find out it does not work in some platform. */
12015 #ifndef LT_DLLAZY_OR_NOW
12017 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12020 # define LT_DLLAZY_OR_NOW DL_LAZY
12023 # define LT_DLLAZY_OR_NOW RTLD_NOW
12026 # define LT_DLLAZY_OR_NOW DL_NOW
12028 # define LT_DLLAZY_OR_NOW 0
12035 /* When -fvisibility=hidden is used, assume the code has been annotated
12036 correspondingly for the symbols needed. */
12037 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12038 int fnord () __attribute__((visibility("default")));
12041 int fnord () { return 42; }
12044 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12045 int status = $lt_dlunknown;
12049 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12052 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12053 else puts (dlerror ());
12055 /* dlclose (self); */
12063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12064 (eval $ac_link) 2>&5
12066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12067 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12068 (./conftest; exit; ) >&5 2>/dev/null
12070 case x$lt_status in
12071 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12072 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12073 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12076 # compilation failed
12077 lt_cv_dlopen_self=no
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12085 $as_echo "$lt_cv_dlopen_self" >&6; }
12087 if test yes = "$lt_cv_dlopen_self"; then
12088 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12090 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12091 if ${lt_cv_dlopen_self_static+:} false; then :
12092 $as_echo_n "(cached) " >&6
12094 if test yes = "$cross_compiling"; then :
12095 lt_cv_dlopen_self_static=cross
12097 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12098 lt_status=$lt_dlunknown
12099 cat > conftest.$ac_ext <<_LT_EOF
12100 #line $LINENO "configure"
12101 #include "confdefs.h"
12110 # define LT_DLGLOBAL RTLD_GLOBAL
12113 # define LT_DLGLOBAL DL_GLOBAL
12115 # define LT_DLGLOBAL 0
12119 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12120 find out it does not work in some platform. */
12121 #ifndef LT_DLLAZY_OR_NOW
12123 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12126 # define LT_DLLAZY_OR_NOW DL_LAZY
12129 # define LT_DLLAZY_OR_NOW RTLD_NOW
12132 # define LT_DLLAZY_OR_NOW DL_NOW
12134 # define LT_DLLAZY_OR_NOW 0
12141 /* When -fvisibility=hidden is used, assume the code has been annotated
12142 correspondingly for the symbols needed. */
12143 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12144 int fnord () __attribute__((visibility("default")));
12147 int fnord () { return 42; }
12150 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12151 int status = $lt_dlunknown;
12155 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12158 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12159 else puts (dlerror ());
12161 /* dlclose (self); */
12169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12170 (eval $ac_link) 2>&5
12172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12173 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12174 (./conftest; exit; ) >&5 2>/dev/null
12176 case x$lt_status in
12177 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12178 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12179 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12182 # compilation failed
12183 lt_cv_dlopen_self_static=no
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12191 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12194 CPPFLAGS=$save_CPPFLAGS
12195 LDFLAGS=$save_LDFLAGS
12200 case $lt_cv_dlopen_self in
12201 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12202 *) enable_dlopen_self=unknown ;;
12205 case $lt_cv_dlopen_self_static in
12206 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12207 *) enable_dlopen_self_static=unknown ;;
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12230 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12231 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12232 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12233 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12235 $as_echo "yes" >&6; }
12237 # FIXME - insert some real tests, host_os isn't really good enough
12240 if test -n "$STRIP"; then
12241 striplib="$STRIP -x"
12242 old_striplib="$STRIP -S"
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12244 $as_echo "yes" >&6; }
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12247 $as_echo "no" >&6; }
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252 $as_echo "no" >&6; }
12268 # Report what library types will actually be built
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12270 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12272 $as_echo "$can_build_shared" >&6; }
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12275 $as_echo_n "checking whether to build shared libraries... " >&6; }
12276 test no = "$can_build_shared" && enable_shared=no
12278 # On AIX, shared libraries and static libraries use the same namespace, and
12279 # are all built from PIC.
12282 test yes = "$enable_shared" && enable_static=no
12283 if test -n "$RANLIB"; then
12284 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12285 postinstall_cmds='$RANLIB $lib'
12290 if test ia64 != "$host_cpu"; then
12291 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12292 yes,aix,yes) ;; # shared object as lib.so file only
12293 yes,svr4,*) ;; # shared object as lib.so archive member only
12294 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12300 $as_echo "$enable_shared" >&6; }
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12303 $as_echo_n "checking whether to build static libraries... " >&6; }
12304 # Make sure either enable_shared or enable_static is yes.
12305 test yes = "$enable_shared" || enable_static=yes
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12307 $as_echo "$enable_static" >&6; }
12314 ac_cpp='$CPP $CPPFLAGS'
12315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12335 ac_config_commands="$ac_config_commands libtool"
12340 # Only expand once:
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
12345 $as_echo_n "checking for library containing strerror... " >&6; }
12346 if ${ac_cv_search_strerror+:} false; then :
12347 $as_echo_n "(cached) " >&6
12349 ac_func_search_save_LIBS=$LIBS
12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h. */
12353 /* Override any GCC internal prototype to avoid an error.
12354 Use char because int might match the return type of a GCC
12355 builtin and then its argument prototype would still apply. */
12363 return strerror ();
12368 for ac_lib in '' cposix; do
12369 if test -z "$ac_lib"; then
12370 ac_res="none required"
12373 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12375 if ac_fn_c_try_link "$LINENO"; then :
12376 ac_cv_search_strerror=$ac_res
12378 rm -f core conftest.err conftest.$ac_objext \
12380 if ${ac_cv_search_strerror+:} false; then :
12384 if ${ac_cv_search_strerror+:} false; then :
12387 ac_cv_search_strerror=no
12389 rm conftest.$ac_ext
12390 LIBS=$ac_func_search_save_LIBS
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
12393 $as_echo "$ac_cv_search_strerror" >&6; }
12394 ac_res=$ac_cv_search_strerror
12395 if test "$ac_res" != no; then :
12396 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12401 ac_cpp='$CPP $CPPFLAGS'
12402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12405 if test -n "$ac_tool_prefix"; then
12406 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12407 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12409 $as_echo_n "checking for $ac_word... " >&6; }
12410 if ${ac_cv_prog_CC+:} false; then :
12411 $as_echo_n "(cached) " >&6
12413 if test -n "$CC"; then
12414 ac_cv_prog_CC="$CC" # Let the user override the test.
12416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12417 for as_dir in $PATH
12420 test -z "$as_dir" && as_dir=.
12421 for ac_exec_ext in '' $ac_executable_extensions; do
12422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12423 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12434 if test -n "$CC"; then
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12436 $as_echo "$CC" >&6; }
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 $as_echo "no" >&6; }
12444 if test -z "$ac_cv_prog_CC"; then
12446 # Extract the first word of "gcc", so it can be a program name with args.
12447 set dummy gcc; ac_word=$2
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12449 $as_echo_n "checking for $ac_word... " >&6; }
12450 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12451 $as_echo_n "(cached) " >&6
12453 if test -n "$ac_ct_CC"; then
12454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12457 for as_dir in $PATH
12460 test -z "$as_dir" && as_dir=.
12461 for ac_exec_ext in '' $ac_executable_extensions; do
12462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12463 ac_cv_prog_ac_ct_CC="gcc"
12464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12474 if test -n "$ac_ct_CC"; then
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12476 $as_echo "$ac_ct_CC" >&6; }
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12479 $as_echo "no" >&6; }
12482 if test "x$ac_ct_CC" = x; then
12485 case $cross_compiling:$ac_tool_warned in
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12489 ac_tool_warned=yes ;;
12494 CC="$ac_cv_prog_CC"
12497 if test -z "$CC"; then
12498 if test -n "$ac_tool_prefix"; then
12499 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12500 set dummy ${ac_tool_prefix}cc; ac_word=$2
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12502 $as_echo_n "checking for $ac_word... " >&6; }
12503 if ${ac_cv_prog_CC+:} false; then :
12504 $as_echo_n "(cached) " >&6
12506 if test -n "$CC"; then
12507 ac_cv_prog_CC="$CC" # Let the user override the test.
12509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12510 for as_dir in $PATH
12513 test -z "$as_dir" && as_dir=.
12514 for ac_exec_ext in '' $ac_executable_extensions; do
12515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12516 ac_cv_prog_CC="${ac_tool_prefix}cc"
12517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12527 if test -n "$CC"; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12529 $as_echo "$CC" >&6; }
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12532 $as_echo "no" >&6; }
12538 if test -z "$CC"; then
12539 # Extract the first word of "cc", so it can be a program name with args.
12540 set dummy cc; ac_word=$2
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12542 $as_echo_n "checking for $ac_word... " >&6; }
12543 if ${ac_cv_prog_CC+:} false; then :
12544 $as_echo_n "(cached) " >&6
12546 if test -n "$CC"; then
12547 ac_cv_prog_CC="$CC" # Let the user override the test.
12549 ac_prog_rejected=no
12550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12551 for as_dir in $PATH
12554 test -z "$as_dir" && as_dir=.
12555 for ac_exec_ext in '' $ac_executable_extensions; do
12556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12557 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12558 ac_prog_rejected=yes
12562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12569 if test $ac_prog_rejected = yes; then
12570 # We found a bogon in the path, so make sure we never use it.
12571 set dummy $ac_cv_prog_CC
12573 if test $# != 0; then
12574 # We chose a different compiler from the bogus one.
12575 # However, it has the same basename, so the bogon will be chosen
12576 # first if we set CC to just the basename; use the full file name.
12578 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12584 if test -n "$CC"; then
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12586 $as_echo "$CC" >&6; }
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589 $as_echo "no" >&6; }
12594 if test -z "$CC"; then
12595 if test -n "$ac_tool_prefix"; then
12596 for ac_prog in cl.exe
12598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12601 $as_echo_n "checking for $ac_word... " >&6; }
12602 if ${ac_cv_prog_CC+:} false; then :
12603 $as_echo_n "(cached) " >&6
12605 if test -n "$CC"; then
12606 ac_cv_prog_CC="$CC" # Let the user override the test.
12608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12609 for as_dir in $PATH
12612 test -z "$as_dir" && as_dir=.
12613 for ac_exec_ext in '' $ac_executable_extensions; do
12614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12615 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12626 if test -n "$CC"; then
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12628 $as_echo "$CC" >&6; }
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631 $as_echo "no" >&6; }
12635 test -n "$CC" && break
12638 if test -z "$CC"; then
12640 for ac_prog in cl.exe
12642 # Extract the first word of "$ac_prog", so it can be a program name with args.
12643 set dummy $ac_prog; ac_word=$2
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12645 $as_echo_n "checking for $ac_word... " >&6; }
12646 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12647 $as_echo_n "(cached) " >&6
12649 if test -n "$ac_ct_CC"; then
12650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12653 for as_dir in $PATH
12656 test -z "$as_dir" && as_dir=.
12657 for ac_exec_ext in '' $ac_executable_extensions; do
12658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12659 ac_cv_prog_ac_ct_CC="$ac_prog"
12660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12670 if test -n "$ac_ct_CC"; then
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12672 $as_echo "$ac_ct_CC" >&6; }
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675 $as_echo "no" >&6; }
12679 test -n "$ac_ct_CC" && break
12682 if test "x$ac_ct_CC" = x; then
12685 case $cross_compiling:$ac_tool_warned in
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12689 ac_tool_warned=yes ;;
12698 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12700 as_fn_error $? "no acceptable C compiler found in \$PATH
12701 See \`config.log' for more details" "$LINENO" 5; }
12703 # Provide some information about the compiler.
12704 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12707 for ac_option in --version -v -V -qversion; do
12708 { { ac_try="$ac_compiler $ac_option >&5"
12709 case "(($ac_try" in
12710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711 *) ac_try_echo=$ac_try;;
12713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12714 $as_echo "$ac_try_echo"; } >&5
12715 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12717 if test -s conftest.err; then
12719 ... rest of stderr output deleted ...
12720 10q' conftest.err >conftest.er1
12721 cat conftest.er1 >&5
12723 rm -f conftest.er1 conftest.err
12724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12725 test $ac_status = 0; }
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12729 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12730 if ${ac_cv_c_compiler_gnu+:} false; then :
12731 $as_echo_n "(cached) " >&6
12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h. */
12747 if ac_fn_c_try_compile "$LINENO"; then :
12748 ac_compiler_gnu=yes
12752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12753 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12757 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12758 if test $ac_compiler_gnu = yes; then
12763 ac_test_CFLAGS=${CFLAGS+set}
12764 ac_save_CFLAGS=$CFLAGS
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12766 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12767 if ${ac_cv_prog_cc_g+:} false; then :
12768 $as_echo_n "(cached) " >&6
12770 ac_save_c_werror_flag=$ac_c_werror_flag
12771 ac_c_werror_flag=yes
12774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12775 /* end confdefs.h. */
12785 if ac_fn_c_try_compile "$LINENO"; then :
12786 ac_cv_prog_cc_g=yes
12789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790 /* end confdefs.h. */
12800 if ac_fn_c_try_compile "$LINENO"; then :
12803 ac_c_werror_flag=$ac_save_c_werror_flag
12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806 /* end confdefs.h. */
12816 if ac_fn_c_try_compile "$LINENO"; then :
12817 ac_cv_prog_cc_g=yes
12819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12824 ac_c_werror_flag=$ac_save_c_werror_flag
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12827 $as_echo "$ac_cv_prog_cc_g" >&6; }
12828 if test "$ac_test_CFLAGS" = set; then
12829 CFLAGS=$ac_save_CFLAGS
12830 elif test $ac_cv_prog_cc_g = yes; then
12831 if test "$GCC" = yes; then
12837 if test "$GCC" = yes; then
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12844 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12845 if ${ac_cv_prog_cc_c89+:} false; then :
12846 $as_echo_n "(cached) " >&6
12848 ac_cv_prog_cc_c89=no
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12852 #include <stdarg.h>
12855 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12856 struct buf { int x; };
12857 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12858 static char *e (p, i)
12864 static char *f (char * (*g) (char **, int), char **p, ...)
12869 s = g (p, va_arg (v,int));
12874 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12875 function prototypes and stuff, but not '\xHH' hex character constants.
12876 These don't provoke an error unfortunately, instead are silently treated
12877 as 'x'. The following induces an error, until -std is added to get
12878 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12879 array size at least. It's necessary to write '\x00'==0 to get something
12880 that's true only with -std. */
12881 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12883 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12884 inside strings and character constants. */
12886 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12888 int test (int i, double x);
12889 struct s1 {int (*f) (int a);};
12890 struct s2 {int (*f) (double a);};
12891 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12897 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12902 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12903 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12905 CC="$ac_save_CC $ac_arg"
12906 if ac_fn_c_try_compile "$LINENO"; then :
12907 ac_cv_prog_cc_c89=$ac_arg
12909 rm -f core conftest.err conftest.$ac_objext
12910 test "x$ac_cv_prog_cc_c89" != "xno" && break
12912 rm -f conftest.$ac_ext
12917 case "x$ac_cv_prog_cc_c89" in
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12920 $as_echo "none needed" >&6; } ;;
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12923 $as_echo "unsupported" >&6; } ;;
12925 CC="$CC $ac_cv_prog_cc_c89"
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12927 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12929 if test "x$ac_cv_prog_cc_c89" != xno; then :
12934 ac_cpp='$CPP $CPPFLAGS'
12935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12940 ac_cpp='$CPP $CPPFLAGS'
12941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12945 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12946 if ${am_cv_prog_cc_c_o+:} false; then :
12947 $as_echo_n "(cached) " >&6
12949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h. */
12960 # Make sure it works both with $CC and with simple cc.
12961 # Following AC_PROG_CC_C_O, we do the test twice because some
12962 # compilers refuse to overwrite an existing .o file with -o,
12963 # though they will create one.
12964 am_cv_prog_cc_c_o=yes
12965 for am_i in 1 2; do
12966 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12967 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } \
12971 && test -f conftest2.$ac_objext; then
12974 am_cv_prog_cc_c_o=no
12978 rm -f core conftest*
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12982 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12983 if test "$am_cv_prog_cc_c_o" != yes; then
12984 # Losing compiler, so override with the script.
12985 # FIXME: It is wrong to rewrite CC.
12986 # But if we don't then we get into trouble of one sort or another.
12987 # A longer-term fix would be to have automake use am__CC in this case,
12988 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12989 CC="$am_aux_dir/compile $CC"
12992 ac_cpp='$CPP $CPPFLAGS'
12993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12998 depcc="$CC" am_compiler_list=
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13001 $as_echo_n "checking dependency style of $depcc... " >&6; }
13002 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13003 $as_echo_n "(cached) " >&6
13005 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13006 # We make a subdir and do the tests there. Otherwise we can end up
13007 # making bogus files that we don't know about and never remove. For
13008 # instance it was reported that on HP-UX the gcc test will end up
13009 # making a dummy file named 'D' -- because '-MD' means "put the output
13011 rm -rf conftest.dir
13013 # Copy depcomp to subdir because otherwise we won't find it if we're
13014 # using a relative directory.
13015 cp "$am_depcomp" conftest.dir
13017 # We will build objects and dependencies in a subdirectory because
13018 # it helps to detect inapplicable dependency modes. For instance
13019 # both Tru64's cc and ICC support -MD to output dependencies as a
13020 # side effect of compilation, but ICC will put the dependencies in
13021 # the current directory while Tru64 will put them in the object
13025 am_cv_CC_dependencies_compiler_type=none
13026 if test "$am_compiler_list" = ""; then
13027 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13029 am__universal=false
13030 case " $depcc " in #(
13031 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13034 for depmode in $am_compiler_list; do
13035 # Setup a source with many dependencies, because some compilers
13036 # like to wrap large dependency lists on column 80 (with \), and
13037 # we should not choose a depcomp mode which is confused by this.
13039 # We need to recreate these files for each test, as the compiler may
13040 # overwrite some of them when testing with obscure command lines.
13041 # This happens at least with the AIX C compiler.
13043 for i in 1 2 3 4 5 6; do
13044 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13045 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13046 # Solaris 10 /bin/sh.
13047 echo '/* dummy */' > sub/conftst$i.h
13049 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13051 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13052 # mode. It turns out that the SunPro C++ compiler does not properly
13053 # handle '-M -o', and we need to detect this. Also, some Intel
13054 # versions had trouble with output in subdirs.
13055 am__obj=sub/conftest.${OBJEXT-o}
13056 am__minus_obj="-o $am__obj"
13059 # This depmode causes a compiler race in universal mode.
13060 test "$am__universal" = false || continue
13063 # After this tag, mechanisms are not by side-effect, so they'll
13064 # only be used when explicitly requested.
13065 if test "x$enable_dependency_tracking" = xyes; then
13071 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13072 # This compiler won't grok '-c -o', but also, the minuso test has
13073 # not run yet. These depmodes are late enough in the game, and
13074 # so weak that their functioning should not be impacted.
13075 am__obj=conftest.${OBJEXT-o}
13080 if depmode=$depmode \
13081 source=sub/conftest.c object=$am__obj \
13082 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13083 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13084 >/dev/null 2>conftest.err &&
13085 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13086 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13087 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13088 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13089 # icc doesn't choke on unknown options, it will just issue warnings
13090 # or remarks (even with -Werror). So we grep stderr for any message
13091 # that says an option was ignored or not supported.
13092 # When given -MP, icc 7.0 and 7.1 complain thusly:
13093 # icc: Command line warning: ignoring option '-M'; no argument required
13094 # The diagnosis changed in icc 8.0:
13095 # icc: Command line remark: option '-MP' not supported
13096 if (grep 'ignoring option' conftest.err ||
13097 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13098 am_cv_CC_dependencies_compiler_type=$depmode
13105 rm -rf conftest.dir
13107 am_cv_CC_dependencies_compiler_type=none
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13112 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13113 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13116 test "x$enable_dependency_tracking" != xno \
13117 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13118 am__fastdepCC_TRUE=
13119 am__fastdepCC_FALSE='#'
13121 am__fastdepCC_TRUE='#'
13122 am__fastdepCC_FALSE=
13128 # option to specify python interpreter to use; this just sets $PYTHON, so that
13129 # we will fallback to reading $PYTHON if --with-python is not given, and
13130 # python.m4 will get the expected input
13132 # Check whether --with-python was given.
13133 if test "${with_python+set}" = set; then :
13134 withval=$with_python; PYTHON="$withval"
13137 if test x"$PYTHON" = xyes; then
13138 as_fn_error $? "--with-python option requires a path or program argument" "$LINENO" 5
13140 if test -n "$PYTHON" && ! which "$PYTHON"; then
13141 as_fn_error $? "Python interpreter $PYTHON does not exist" "$LINENO" 5
13144 # check that we have the minimum version of python necessary to build
13149 if test -n "$PYTHON"; then
13150 # If the user set $PYTHON, use it and don't search something else.
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.7" >&5
13152 $as_echo_n "checking whether $PYTHON version >= 2.7... " >&6; }
13154 # split strings by '.' and convert to numeric. Append some zeros
13155 # because we need at least 4 digits for the hex conversion.
13156 # map returns an iterator in Python 3.0 and a list in 2.x
13157 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
13159 # xrange is not present in Python 3.0 and range returns an iterator
13160 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13161 sys.exit(sys.hexversion < minverhex)"
13162 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13163 ($PYTHON -c "$prog") >&5 2>&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; then :
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13168 $as_echo "yes" >&6; }
13170 as_fn_error $? "too old" "$LINENO" 5
13172 am_display_PYTHON=$PYTHON
13174 # Otherwise, try each interpreter until we find one that satisfies
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
13177 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
13178 if ${am_cv_pathless_PYTHON+:} false; then :
13179 $as_echo_n "(cached) " >&6
13182 for am_cv_pathless_PYTHON in python3 python3.3 python3.2 python3.1 python2 python2.7 python none; do
13183 test "$am_cv_pathless_PYTHON" = none && break
13185 # split strings by '.' and convert to numeric. Append some zeros
13186 # because we need at least 4 digits for the hex conversion.
13187 # map returns an iterator in Python 3.0 and a list in 2.x
13188 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
13190 # xrange is not present in Python 3.0 and range returns an iterator
13191 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13192 sys.exit(sys.hexversion < minverhex)"
13193 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
13194 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; then :
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
13203 $as_echo "$am_cv_pathless_PYTHON" >&6; }
13204 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
13205 if test "$am_cv_pathless_PYTHON" = none; then
13208 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
13209 set dummy $am_cv_pathless_PYTHON; ac_word=$2
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13211 $as_echo_n "checking for $ac_word... " >&6; }
13212 if ${ac_cv_path_PYTHON+:} false; then :
13213 $as_echo_n "(cached) " >&6
13217 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13221 for as_dir in $PATH
13224 test -z "$as_dir" && as_dir=.
13225 for ac_exec_ext in '' $ac_executable_extensions; do
13226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13227 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13238 PYTHON=$ac_cv_path_PYTHON
13239 if test -n "$PYTHON"; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13241 $as_echo "$PYTHON" >&6; }
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244 $as_echo "no" >&6; }
13249 am_display_PYTHON=$am_cv_pathless_PYTHON
13253 if test "$PYTHON" = :; then
13254 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
13259 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
13260 if ${am_cv_python_version+:} false; then :
13261 $as_echo_n "(cached) " >&6
13263 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
13266 $as_echo "$am_cv_python_version" >&6; }
13267 PYTHON_VERSION=$am_cv_python_version
13271 PYTHON_PREFIX='${prefix}'
13273 PYTHON_EXEC_PREFIX='${exec_prefix}'
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
13278 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
13279 if ${am_cv_python_platform+:} false; then :
13280 $as_echo_n "(cached) " >&6
13282 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
13285 $as_echo "$am_cv_python_platform" >&6; }
13286 PYTHON_PLATFORM=$am_cv_python_platform
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
13292 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
13293 if ${am_cv_python_pythondir+:} false; then :
13294 $as_echo_n "(cached) " >&6
13296 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX'))" 2>/dev/null ||
13297 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13300 $as_echo "$am_cv_python_pythondir" >&6; }
13301 pythondir=$am_cv_python_pythondir
13305 pkgpythondir=\${pythondir}/$PACKAGE
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
13309 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
13310 if ${am_cv_python_pyexecdir+:} false; then :
13311 $as_echo_n "(cached) " >&6
13313 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX'))" 2>/dev/null ||
13314 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13317 $as_echo "$am_cv_python_pyexecdir" >&6; }
13318 pyexecdir=$am_cv_python_pyexecdir
13322 pkgpyexecdir=\${pyexecdir}/$PACKAGE
13330 # check if we are building for python 3
13332 # split strings by '.' and convert to numeric. Append some zeros
13333 # because we need at least 4 digits for the hex conversion.
13334 # map returns an iterator in Python 3.0 and a list in 2.x
13335 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
13337 # xrange is not present in Python 3.0 and range returns an iterator
13338 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13339 sys.exit(sys.hexversion < minverhex)"
13340 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13341 ($PYTHON -c "$prog") >&5 2>&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; then :
13350 # if building for python 3 make sure we have the minimum version supported
13351 if test $build_py3k = true ; then
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON >= 3.1" >&5
13353 $as_echo_n "checking for $PYTHON >= 3.1... " >&6; }
13355 # split strings by '.' and convert to numeric. Append some zeros
13356 # because we need at least 4 digits for the hex conversion.
13357 # map returns an iterator in Python 3.0 and a list in 2.x
13358 minver = list(map(int, '3.1'.split('.'))) + [0, 0, 0]
13360 # xrange is not present in Python 3.0 and range returns an iterator
13361 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13362 sys.exit(sys.hexversion < minverhex)"
13363 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13364 ($PYTHON -c "$prog") >&5 2>&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; then :
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13369 $as_echo "yes" >&6; }
13371 as_fn_error $? "too old" "$LINENO" 5
13375 # - 'SO' for PyPy, CPython 2.7-3.2
13376 # - 'EXT_SUFFIX' for CPython3.3+ (http://bugs.python.org/issue16754)
13377 # - fallback to '.so'
13378 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');"`
13387 # Find any Python interpreter.
13388 if test -z "$PYTHON"; then
13389 for ac_prog in python3 python3.3 python3.2 python3.1 python2 python2.7 python
13391 # Extract the first word of "$ac_prog", so it can be a program name with args.
13392 set dummy $ac_prog; ac_word=$2
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13394 $as_echo_n "checking for $ac_word... " >&6; }
13395 if ${ac_cv_path_PYTHON+:} false; then :
13396 $as_echo_n "(cached) " >&6
13400 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13404 for as_dir in $PATH
13407 test -z "$as_dir" && as_dir=.
13408 for ac_exec_ext in '' $ac_executable_extensions; do
13409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13410 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13421 PYTHON=$ac_cv_path_PYTHON
13422 if test -n "$PYTHON"; then
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13424 $as_echo "$PYTHON" >&6; }
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427 $as_echo "no" >&6; }
13431 test -n "$PYTHON" && break
13433 test -n "$PYTHON" || PYTHON=":"
13436 am_display_PYTHON=python
13439 if test "$PYTHON" = :; then
13440 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
13445 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
13446 if ${am_cv_python_version+:} false; then :
13447 $as_echo_n "(cached) " >&6
13449 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
13452 $as_echo "$am_cv_python_version" >&6; }
13453 PYTHON_VERSION=$am_cv_python_version
13457 PYTHON_PREFIX='${prefix}'
13459 PYTHON_EXEC_PREFIX='${exec_prefix}'
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
13464 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
13465 if ${am_cv_python_platform+:} false; then :
13466 $as_echo_n "(cached) " >&6
13468 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
13471 $as_echo "$am_cv_python_platform" >&6; }
13472 PYTHON_PLATFORM=$am_cv_python_platform
13475 # Just factor out some code duplication.
13476 am_python_setup_sysconfig="\
13478 # Prefer sysconfig over distutils.sysconfig, for better compatibility
13479 # with python 3.x. See automake bug#10227.
13482 except ImportError:
13483 can_use_sysconfig = 0
13485 can_use_sysconfig = 1
13486 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
13487 # <https://github.com/pypa/virtualenv/issues/118>
13489 from platform import python_implementation
13490 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
13491 can_use_sysconfig = 0
13492 except ImportError:
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
13497 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
13498 if ${am_cv_python_pythondir+:} false; then :
13499 $as_echo_n "(cached) " >&6
13501 if test "x$prefix" = xNONE
13503 am_py_prefix=$ac_default_prefix
13505 am_py_prefix=$prefix
13507 am_cv_python_pythondir=`$PYTHON -c "
13508 $am_python_setup_sysconfig
13509 if can_use_sysconfig:
13510 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
13512 from distutils import sysconfig
13513 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
13514 sys.stdout.write(sitedir)"`
13515 case $am_cv_python_pythondir in
13517 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
13518 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
13521 case $am_py_prefix in
13524 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13532 $as_echo "$am_cv_python_pythondir" >&6; }
13533 pythondir=$am_cv_python_pythondir
13537 pkgpythondir=\${pythondir}/$PACKAGE
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
13541 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
13542 if ${am_cv_python_pyexecdir+:} false; then :
13543 $as_echo_n "(cached) " >&6
13545 if test "x$exec_prefix" = xNONE
13547 am_py_exec_prefix=$am_py_prefix
13549 am_py_exec_prefix=$exec_prefix
13551 am_cv_python_pyexecdir=`$PYTHON -c "
13552 $am_python_setup_sysconfig
13553 if can_use_sysconfig:
13554 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
13556 from distutils import sysconfig
13557 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
13558 sys.stdout.write(sitedir)"`
13559 case $am_cv_python_pyexecdir in
13560 $am_py_exec_prefix*)
13561 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
13562 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
13565 case $am_py_exec_prefix in
13568 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13576 $as_echo "$am_cv_python_pyexecdir" >&6; }
13577 pyexecdir=$am_cv_python_pyexecdir
13581 pkgpyexecdir=\${pyexecdir}/$PACKAGE
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
13590 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
13591 if test "x$PYTHON_INCLUDES" = x; then
13592 PYTHON_CONFIG=`which $PYTHON`-config
13593 if test -x "$PYTHON_CONFIG"; then
13594 PYTHON_INCLUDES=`$PYTHON_CONFIG --includes 2>/dev/null`
13596 PYTHON_INCLUDES=`$PYTHON -c "import distutils.sysconfig, sys; sys.stdout.write(distutils.sysconfig.get_python_inc(True))"`
13597 PYTHON_INCLUDES="-I$PYTHON_INCLUDES"
13601 save_CPPFLAGS="$CPPFLAGS"
13602 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
13603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604 /* end confdefs.h. */
13605 #include <Python.h>
13607 if ac_fn_c_try_cpp "$LINENO"; then :
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13609 $as_echo "found" >&6; }
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13613 $as_echo "not found" >&6; }
13614 as_fn_error $? "Python headers not found" "$LINENO" 5
13616 rm -f conftest.err conftest.i conftest.$ac_ext
13617 CPPFLAGS="$save_CPPFLAGS"
13619 if test "x$link_python_libs" = "xyes"; then
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to embed python" >&5
13622 $as_echo_n "checking for libraries required to embed python... " >&6; }
13623 py_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
13624 if test "x$PYTHON_LIBS" = x; then
13625 PYTHON_CONFIG=`which $PYTHON`-config
13626 if test -x "$PYTHON_CONFIG"; then
13627 PYTHON_LIBS=`$PYTHON_CONFIG --ldflags 2>/dev/null`
13629 PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
13632 if test "x$PYTHON_LIB_LOC" = x; then
13633 PYTHON_LIB_LOC="${py_prefix}/lib"
13638 LIBS="$LIBS $PYTHON_LIBS"
13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640 /* end confdefs.h. */
13642 /* Override any GCC internal prototype to avoid an error.
13643 Use char because int might match the return type of a GCC
13644 builtin and then its argument prototype would still apply. */
13648 char Py_Initialize ();
13652 return Py_Initialize ();
13657 if ac_fn_c_try_link "$LINENO"; then :
13658 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13659 $as_echo "yes" >&6; };
13661 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13662 $as_echo "no" >&6; }; as_fn_error $? "Python libs not found. Windows and Darwin require Python modules to be explicitly linked to libpython." "$LINENO" 5
13664 rm -f core conftest.err conftest.$ac_objext \
13665 conftest$ac_exeext conftest.$ac_ext
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PySignal_SetWakeupFd in Python.h" >&5
13671 $as_echo_n "checking for PySignal_SetWakeupFd in Python.h... " >&6; }
13672 old_CPPFLAGS=$CPPFLAGS
13673 CPPFLAGS="-Wall -Werror $PYTHON_INCLUDES"
13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h. */
13676 #include <Python.h>
13680 PySignal_SetWakeupFd(0);
13685 if ac_fn_c_try_compile "$LINENO"; then :
13690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $setwakeupfd_ok" >&5
13692 $as_echo "$setwakeupfd_ok" >&6; }
13693 if test "x$setwakeupfd_ok" != xno; then
13695 $as_echo "#define HAVE_PYSIGNAL_SETWAKEUPFD 1" >>confdefs.h
13698 CPPFLAGS=$old_CPPFLAGS
13700 PLATFORM=`$PYTHON -c "import sys; from distutils import util; sys.stdout.write(util.get_platform())"`
13703 # Check whether --enable-thread was given.
13704 if test "${enable_thread+set}" = set; then :
13705 enableval=$enable_thread;
13712 py_mod_var=`echo thread'_' | sed 'y%./+-%__p_%'`
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module thread" >&5
13714 $as_echo_n "checking for python module thread... " >&6; }
13715 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13716 $as_echo_n "(cached) " >&6
13723 except ImportError:
13728 if $PYTHON -c "$prog" 1>&5 2>&5
13730 eval "py_cv_mod_$py_mod_var=yes"
13732 eval "py_cv_mod_$py_mod_var=no"
13737 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13738 if test "x$py_val" != xno; then
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13740 $as_echo "yes" >&6; }
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13743 $as_echo "no" >&6; }
13744 enable_thread=check_for_py3_module
13747 if test "x$enable_thread" = xcheck_for_py3_module; then
13749 py_mod_var=`echo _thread'_' | sed 'y%./+-%__p_%'`
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module _thread" >&5
13751 $as_echo_n "checking for python module _thread... " >&6; }
13752 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13753 $as_echo_n "(cached) " >&6
13760 except ImportError:
13765 if $PYTHON -c "$prog" 1>&5 2>&5
13767 eval "py_cv_mod_$py_mod_var=yes"
13769 eval "py_cv_mod_$py_mod_var=no"
13774 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13775 if test "x$py_val" != xno; then
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13777 $as_echo "yes" >&6; }
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13781 $as_echo "no" >&6; }
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable threading in pygobject" >&5
13788 $as_echo_n "checking whether to enable threading in pygobject... " >&6; }
13789 if test "x$enable_thread" != xno; then
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13793 $as_echo "yes" >&6; }
13796 THREADING_CFLAGS="-DDISABLE_THREADING"
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13798 $as_echo "no" >&6; }
13801 CPPFLAGS="${CPPFLAGS} $THREADING_CFLAGS"
13803 export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
13805 # Check whether --enable-glibtest was given.
13806 if test "${enable_glibtest+set}" = set; then :
13807 enableval=$enable_glibtest;
13809 enable_glibtest=yes
13813 pkg_config_args=glib-2.0
13814 for module in . gobject $extra_mods
13818 pkg_config_args="$pkg_config_args gmodule-2.0"
13821 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
13824 pkg_config_args="$pkg_config_args gobject-2.0"
13827 pkg_config_args="$pkg_config_args gthread-2.0"
13830 pkg_config_args="$pkg_config_args $module-2.0"
13842 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13843 if test -n "$ac_tool_prefix"; then
13844 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13845 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13847 $as_echo_n "checking for $ac_word... " >&6; }
13848 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13849 $as_echo_n "(cached) " >&6
13851 case $PKG_CONFIG in
13853 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13857 for as_dir in $PATH
13860 test -z "$as_dir" && as_dir=.
13861 for ac_exec_ext in '' $ac_executable_extensions; do
13862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13863 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13874 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13875 if test -n "$PKG_CONFIG"; then
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13877 $as_echo "$PKG_CONFIG" >&6; }
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13880 $as_echo "no" >&6; }
13885 if test -z "$ac_cv_path_PKG_CONFIG"; then
13886 ac_pt_PKG_CONFIG=$PKG_CONFIG
13887 # Extract the first word of "pkg-config", so it can be a program name with args.
13888 set dummy pkg-config; ac_word=$2
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13890 $as_echo_n "checking for $ac_word... " >&6; }
13891 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13892 $as_echo_n "(cached) " >&6
13894 case $ac_pt_PKG_CONFIG in
13896 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13900 for as_dir in $PATH
13903 test -z "$as_dir" && as_dir=.
13904 for ac_exec_ext in '' $ac_executable_extensions; do
13905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13906 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13917 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13918 if test -n "$ac_pt_PKG_CONFIG"; then
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13920 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13923 $as_echo "no" >&6; }
13926 if test "x$ac_pt_PKG_CONFIG" = x; then
13929 case $cross_compiling:$ac_tool_warned in
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13933 ac_tool_warned=yes ;;
13935 PKG_CONFIG=$ac_pt_PKG_CONFIG
13938 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13942 if test -n "$PKG_CONFIG"; then
13943 _pkg_min_version=0.16
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13945 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13946 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13948 $as_echo "yes" >&6; }
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13951 $as_echo "no" >&6; }
13958 if test "x$PKG_CONFIG" = x ; then
13963 min_glib_version=2.38.0
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
13965 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
13967 if test x$PKG_CONFIG != xno ; then
13968 ## don't try to run the test against uninstalled libtool libs
13969 if $PKG_CONFIG --uninstalled $pkg_config_args; then
13970 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
13974 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
13981 if test x"$no_glib" = x ; then
13982 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
13983 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
13984 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
13985 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
13987 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13988 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13989 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
13990 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13991 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
13992 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13993 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
13994 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13995 if test "x$enable_glibtest" = "xyes" ; then
13996 ac_save_CFLAGS="$CFLAGS"
13997 ac_save_LIBS="$LIBS"
13998 CFLAGS="$CFLAGS $GLIB_CFLAGS"
13999 LIBS="$GLIB_LIBS $LIBS"
14000 rm -f conf.glibtest
14001 if test "$cross_compiling" = yes; then :
14002 echo $ac_n "cross compiling; assumed OK... $ac_c"
14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005 /* end confdefs.h. */
14009 #include <stdlib.h>
14014 unsigned int major, minor, micro;
14016 fclose (fopen ("conf.glibtest", "w"));
14018 if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, µ) != 3) {
14019 printf("%s, bad version string\n", "$min_glib_version");
14023 if ((glib_major_version != $glib_config_major_version) ||
14024 (glib_minor_version != $glib_config_minor_version) ||
14025 (glib_micro_version != $glib_config_micro_version))
14027 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
14028 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
14029 glib_major_version, glib_minor_version, glib_micro_version);
14030 printf ("*** was found! If pkg-config was correct, then it is best\n");
14031 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
14032 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
14033 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
14034 printf("*** required on your system.\n");
14035 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
14036 printf("*** to point to the correct configuration files\n");
14038 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
14039 (glib_minor_version != GLIB_MINOR_VERSION) ||
14040 (glib_micro_version != GLIB_MICRO_VERSION))
14042 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
14043 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
14044 printf("*** library (version %d.%d.%d)\n",
14045 glib_major_version, glib_minor_version, glib_micro_version);
14049 if ((glib_major_version > major) ||
14050 ((glib_major_version == major) && (glib_minor_version > minor)) ||
14051 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
14057 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
14058 glib_major_version, glib_minor_version, glib_micro_version);
14059 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
14060 major, minor, micro);
14061 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
14063 printf("*** If you have already installed a sufficiently new version, this error\n");
14064 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
14065 printf("*** being found. The easiest way to fix this is to remove the old version\n");
14066 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
14067 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
14068 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
14069 printf("*** so that the correct libraries are found at run-time))\n");
14076 if ac_fn_c_try_run "$LINENO"; then :
14081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14082 conftest.$ac_objext conftest.beam conftest.$ac_ext
14085 CFLAGS="$ac_save_CFLAGS"
14086 LIBS="$ac_save_LIBS"
14089 if test "x$no_glib" = x ; then
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
14091 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14095 $as_echo "no" >&6; }
14096 if test "$PKG_CONFIG" = "no" ; then
14097 echo "*** A new enough version of pkg-config was not found."
14098 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
14100 if test -f conf.glibtest ; then
14103 echo "*** Could not run GLIB test program, checking why..."
14104 ac_save_CFLAGS="$CFLAGS"
14105 ac_save_LIBS="$LIBS"
14106 CFLAGS="$CFLAGS $GLIB_CFLAGS"
14107 LIBS="$LIBS $GLIB_LIBS"
14108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14109 /* end confdefs.h. */
14117 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
14122 if ac_fn_c_try_link "$LINENO"; then :
14123 echo "*** The test program compiled, but did not run. This usually means"
14124 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
14125 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
14126 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14127 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14128 echo "*** is required on your system"
14130 echo "*** If you have an old version installed, it is best to remove it, although"
14131 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14133 echo "*** The test program failed to compile or link. See the file config.log for the"
14134 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
14136 rm -f core conftest.err conftest.$ac_objext \
14137 conftest$ac_exeext conftest.$ac_ext
14138 CFLAGS="$ac_save_CFLAGS"
14139 LIBS="$ac_save_LIBS"
14147 GLIB_COMPILE_RESOURCES=""
14148 as_fn_error $? "maybe you want the pygobject-2-4 branch?" "$LINENO" 5
14156 rm -f conf.glibtest
14158 if test -n "$export_dynamic"; then
14159 GLIB_LIBS=`echo $GLIB_LIBS | sed -e "s/$export_dynamic//"`
14161 PYTHON_BASENAME=`basename $PYTHON`
14168 prefix_save=$prefix
14169 exec_prefix_save=$exec_prefix
14171 if test "x$prefix" = "xNONE"; then
14172 prefix=$ac_default_prefix
14174 if test "x$exec_prefix" = "xNONE"; then
14175 exec_prefix=$prefix
14178 full_var="$FROM_VAR"
14180 new_full_var="`eval echo $full_var`"
14181 if test "x$new_full_var"="x$full_var"; then break; fi
14182 full_var=$new_full_var
14185 full_var=$new_full_var
14186 DATADIR="$full_var"
14189 prefix=$prefix_save
14190 exec_prefix=$exec_prefix_save
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
14196 $as_echo_n "checking for FFI... " >&6; }
14198 if test -n "$FFI_CFLAGS"; then
14199 pkg_cv_FFI_CFLAGS="$FFI_CFLAGS"
14200 elif test -n "$PKG_CONFIG"; then
14201 if test -n "$PKG_CONFIG" && \
14202 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
14203 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
14205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14206 test $ac_status = 0; }; then
14207 pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0" 2>/dev/null`
14208 test "x$?" != "x0" && pkg_failed=yes
14215 if test -n "$FFI_LIBS"; then
14216 pkg_cv_FFI_LIBS="$FFI_LIBS"
14217 elif test -n "$PKG_CONFIG"; then
14218 if test -n "$PKG_CONFIG" && \
14219 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
14220 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
14222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14223 test $ac_status = 0; }; then
14224 pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0" 2>/dev/null`
14225 test "x$?" != "x0" && pkg_failed=yes
14235 if test $pkg_failed = yes; then
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14237 $as_echo "no" >&6; }
14239 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14240 _pkg_short_errors_supported=yes
14242 _pkg_short_errors_supported=no
14244 if test $_pkg_short_errors_supported = yes; then
14245 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
14247 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
14249 # Put the nasty error message in config.log where it belongs
14250 echo "$FFI_PKG_ERRORS" >&5
14252 as_fn_error $? "Package requirements (libffi >= 3.0) were not met:
14256 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14257 installed software in a non-standard prefix.
14259 Alternatively, you may set the environment variables FFI_CFLAGS
14260 and FFI_LIBS to avoid the need to call pkg-config.
14261 See the pkg-config man page for more details." "$LINENO" 5
14262 elif test $pkg_failed = untried; then
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14264 $as_echo "no" >&6; }
14265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14267 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14268 is in your PATH or set the PKG_CONFIG environment variable to the full
14269 path to pkg-config.
14271 Alternatively, you may set the environment variables FFI_CFLAGS
14272 and FFI_LIBS to avoid the need to call pkg-config.
14273 See the pkg-config man page for more details.
14275 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14276 See \`config.log' for more details" "$LINENO" 5; }
14278 FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
14279 FFI_LIBS=$pkg_cv_FFI_LIBS
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14281 $as_echo "yes" >&6; }
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
14293 $as_echo_n "checking for GIO... " >&6; }
14295 if test -n "$GIO_CFLAGS"; then
14296 pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
14297 elif test -n "$PKG_CONFIG"; then
14298 if test -n "$PKG_CONFIG" && \
14299 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.38.0\""; } >&5
14300 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.38.0") 2>&5
14302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14303 test $ac_status = 0; }; then
14304 pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.38.0" 2>/dev/null`
14305 test "x$?" != "x0" && pkg_failed=yes
14312 if test -n "$GIO_LIBS"; then
14313 pkg_cv_GIO_LIBS="$GIO_LIBS"
14314 elif test -n "$PKG_CONFIG"; then
14315 if test -n "$PKG_CONFIG" && \
14316 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.38.0\""; } >&5
14317 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.38.0") 2>&5
14319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14320 test $ac_status = 0; }; then
14321 pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.38.0" 2>/dev/null`
14322 test "x$?" != "x0" && pkg_failed=yes
14332 if test $pkg_failed = yes; then
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14334 $as_echo "no" >&6; }
14336 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14337 _pkg_short_errors_supported=yes
14339 _pkg_short_errors_supported=no
14341 if test $_pkg_short_errors_supported = yes; then
14342 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.38.0" 2>&1`
14344 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.38.0" 2>&1`
14346 # Put the nasty error message in config.log where it belongs
14347 echo "$GIO_PKG_ERRORS" >&5
14349 as_fn_error $? "Package requirements (gio-2.0 >= 2.38.0) were not met:
14353 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14354 installed software in a non-standard prefix.
14356 Alternatively, you may set the environment variables GIO_CFLAGS
14357 and GIO_LIBS to avoid the need to call pkg-config.
14358 See the pkg-config man page for more details." "$LINENO" 5
14359 elif test $pkg_failed = untried; then
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14361 $as_echo "no" >&6; }
14362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14364 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14365 is in your PATH or set the PKG_CONFIG environment variable to the full
14366 path to pkg-config.
14368 Alternatively, you may set the environment variables GIO_CFLAGS
14369 and GIO_LIBS to avoid the need to call pkg-config.
14370 See the pkg-config man page for more details.
14372 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14373 See \`config.log' for more details" "$LINENO" 5; }
14375 GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
14376 GIO_LIBS=$pkg_cv_GIO_LIBS
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14378 $as_echo "yes" >&6; }
14382 # Check whether --enable-cairo was given.
14383 if test "${enable_cairo+set}" = set; then :
14384 enableval=$enable_cairo; enable_cairo=$enableval
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GI" >&5
14393 $as_echo_n "checking for GI... " >&6; }
14395 if test -n "$GI_CFLAGS"; then
14396 pkg_cv_GI_CFLAGS="$GI_CFLAGS"
14397 elif test -n "$PKG_CONFIG"; then
14398 if test -n "$PKG_CONFIG" && \
14399 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.38.0
14400 gobject-introspection-1.0 >= 1.46.0
14402 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0
14403 gobject-introspection-1.0 >= 1.46.0
14406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14407 test $ac_status = 0; }; then
14408 pkg_cv_GI_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.38.0
14409 gobject-introspection-1.0 >= 1.46.0
14411 test "x$?" != "x0" && pkg_failed=yes
14418 if test -n "$GI_LIBS"; then
14419 pkg_cv_GI_LIBS="$GI_LIBS"
14420 elif test -n "$PKG_CONFIG"; then
14421 if test -n "$PKG_CONFIG" && \
14422 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.38.0
14423 gobject-introspection-1.0 >= 1.46.0
14425 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0
14426 gobject-introspection-1.0 >= 1.46.0
14429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14430 test $ac_status = 0; }; then
14431 pkg_cv_GI_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.38.0
14432 gobject-introspection-1.0 >= 1.46.0
14434 test "x$?" != "x0" && pkg_failed=yes
14444 if test $pkg_failed = yes; then
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14446 $as_echo "no" >&6; }
14448 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14449 _pkg_short_errors_supported=yes
14451 _pkg_short_errors_supported=no
14453 if test $_pkg_short_errors_supported = yes; then
14454 GI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.38.0
14455 gobject-introspection-1.0 >= 1.46.0
14458 GI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.38.0
14459 gobject-introspection-1.0 >= 1.46.0
14462 # Put the nasty error message in config.log where it belongs
14463 echo "$GI_PKG_ERRORS" >&5
14465 as_fn_error $? "Package requirements (glib-2.0 >= 2.38.0
14466 gobject-introspection-1.0 >= 1.46.0
14471 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14472 installed software in a non-standard prefix.
14474 Alternatively, you may set the environment variables GI_CFLAGS
14475 and GI_LIBS to avoid the need to call pkg-config.
14476 See the pkg-config man page for more details." "$LINENO" 5
14477 elif test $pkg_failed = untried; then
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14479 $as_echo "no" >&6; }
14480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14482 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14483 is in your PATH or set the PKG_CONFIG environment variable to the full
14484 path to pkg-config.
14486 Alternatively, you may set the environment variables GI_CFLAGS
14487 and GI_LIBS to avoid the need to call pkg-config.
14488 See the pkg-config man page for more details.
14490 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14491 See \`config.log' for more details" "$LINENO" 5; }
14493 GI_CFLAGS=$pkg_cv_GI_CFLAGS
14494 GI_LIBS=$pkg_cv_GI_LIBS
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14496 $as_echo "yes" >&6; }
14500 GI_DATADIR=$($PKG_CONFIG --variable=gidatadir gobject-introspection-1.0)
14503 if test "$enable_cairo" != no; then
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
14507 $as_echo_n "checking for CAIRO... " >&6; }
14509 if test -n "$CAIRO_CFLAGS"; then
14510 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
14511 elif test -n "$PKG_CONFIG"; then
14512 if test -n "$PKG_CONFIG" && \
14513 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
14514 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
14516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14517 test $ac_status = 0; }; then
14518 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo cairo-gobject" 2>/dev/null`
14519 test "x$?" != "x0" && pkg_failed=yes
14526 if test -n "$CAIRO_LIBS"; then
14527 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
14528 elif test -n "$PKG_CONFIG"; then
14529 if test -n "$PKG_CONFIG" && \
14530 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
14531 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
14533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14534 test $ac_status = 0; }; then
14535 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo cairo-gobject" 2>/dev/null`
14536 test "x$?" != "x0" && pkg_failed=yes
14546 if test $pkg_failed = yes; then
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14548 $as_echo "no" >&6; }
14550 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14551 _pkg_short_errors_supported=yes
14553 _pkg_short_errors_supported=no
14555 if test $_pkg_short_errors_supported = yes; then
14556 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14558 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14560 # Put the nasty error message in config.log where it belongs
14561 echo "$CAIRO_PKG_ERRORS" >&5
14563 as_fn_error $? "Package requirements (cairo cairo-gobject) were not met:
14567 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14568 installed software in a non-standard prefix.
14570 Alternatively, you may set the environment variables CAIRO_CFLAGS
14571 and CAIRO_LIBS to avoid the need to call pkg-config.
14572 See the pkg-config man page for more details." "$LINENO" 5
14573 elif test $pkg_failed = untried; then
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14575 $as_echo "no" >&6; }
14576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14578 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14579 is in your PATH or set the PKG_CONFIG environment variable to the full
14580 path to pkg-config.
14582 Alternatively, you may set the environment variables CAIRO_CFLAGS
14583 and CAIRO_LIBS to avoid the need to call pkg-config.
14584 See the pkg-config man page for more details.
14586 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14587 See \`config.log' for more details" "$LINENO" 5; }
14589 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
14590 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14592 $as_echo "yes" >&6; }
14596 if test $build_py3k = true; then
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14600 $as_echo_n "checking for PYCAIRO... " >&6; }
14602 if test -n "$PYCAIRO_CFLAGS"; then
14603 pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14604 elif test -n "$PKG_CONFIG"; then
14605 if test -n "$PKG_CONFIG" && \
14606 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14608 ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14612 test $ac_status = 0; }; then
14613 pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "py3cairo >= 1.10.0
14615 test "x$?" != "x0" && pkg_failed=yes
14622 if test -n "$PYCAIRO_LIBS"; then
14623 pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14624 elif test -n "$PKG_CONFIG"; then
14625 if test -n "$PKG_CONFIG" && \
14626 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14628 ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14632 test $ac_status = 0; }; then
14633 pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "py3cairo >= 1.10.0
14635 test "x$?" != "x0" && pkg_failed=yes
14645 if test $pkg_failed = yes; then
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14647 $as_echo "no" >&6; }
14649 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14650 _pkg_short_errors_supported=yes
14652 _pkg_short_errors_supported=no
14654 if test $_pkg_short_errors_supported = yes; then
14655 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "py3cairo >= 1.10.0
14658 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "py3cairo >= 1.10.0
14661 # Put the nasty error message in config.log where it belongs
14662 echo "$PYCAIRO_PKG_ERRORS" >&5
14664 as_fn_error $? "Package requirements (py3cairo >= 1.10.0
14667 $PYCAIRO_PKG_ERRORS
14669 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14670 installed software in a non-standard prefix.
14672 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14673 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14674 See the pkg-config man page for more details." "$LINENO" 5
14675 elif test $pkg_failed = untried; then
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14677 $as_echo "no" >&6; }
14678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14680 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14681 is in your PATH or set the PKG_CONFIG environment variable to the full
14682 path to pkg-config.
14684 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14685 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14686 See the pkg-config man page for more details.
14688 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14689 See \`config.log' for more details" "$LINENO" 5; }
14691 PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14692 PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14694 $as_echo "yes" >&6; }
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14701 $as_echo_n "checking for PYCAIRO... " >&6; }
14703 if test -n "$PYCAIRO_CFLAGS"; then
14704 pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14705 elif test -n "$PKG_CONFIG"; then
14706 if test -n "$PKG_CONFIG" && \
14707 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14709 ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14713 test $ac_status = 0; }; then
14714 pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "pycairo >= 1.2.0
14716 test "x$?" != "x0" && pkg_failed=yes
14723 if test -n "$PYCAIRO_LIBS"; then
14724 pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14725 elif test -n "$PKG_CONFIG"; then
14726 if test -n "$PKG_CONFIG" && \
14727 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14729 ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14733 test $ac_status = 0; }; then
14734 pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "pycairo >= 1.2.0
14736 test "x$?" != "x0" && pkg_failed=yes
14746 if test $pkg_failed = yes; then
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14748 $as_echo "no" >&6; }
14750 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14751 _pkg_short_errors_supported=yes
14753 _pkg_short_errors_supported=no
14755 if test $_pkg_short_errors_supported = yes; then
14756 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pycairo >= 1.2.0
14759 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pycairo >= 1.2.0
14762 # Put the nasty error message in config.log where it belongs
14763 echo "$PYCAIRO_PKG_ERRORS" >&5
14765 as_fn_error $? "Package requirements (pycairo >= 1.2.0
14768 $PYCAIRO_PKG_ERRORS
14770 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14771 installed software in a non-standard prefix.
14773 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14774 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14775 See the pkg-config man page for more details." "$LINENO" 5
14776 elif test $pkg_failed = untried; then
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14778 $as_echo "no" >&6; }
14779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14781 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14782 is in your PATH or set the PKG_CONFIG environment variable to the full
14783 path to pkg-config.
14785 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14786 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14787 See the pkg-config man page for more details.
14789 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14790 See \`config.log' for more details" "$LINENO" 5; }
14792 PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14793 PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14795 $as_echo "yes" >&6; }
14800 if test "$enable_cairo" = "yes"; then
14802 ENABLE_CAIRO_FALSE='#'
14804 ENABLE_CAIRO_TRUE='#'
14805 ENABLE_CAIRO_FALSE=
14810 # Check whether --with-common was given.
14811 if test "${with_common+set}" = set; then :
14812 withval=$with_common; with_common=$enableval
14817 if test "$with_common" = "yes"; then
14819 WITH_COMMON_FALSE='#'
14821 WITH_COMMON_TRUE='#'
14826 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14827 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14832 # compiler warnings, errors, required cflags, and code coverage support
14835 # Check whether --enable-compile-warnings was given.
14836 if test "${enable_compile_warnings+set}" = set; then :
14837 enableval=$enable_compile_warnings;
14839 enable_compile_warnings="maximum"
14843 if test "x$GCC" != xyes; then
14844 enable_compile_warnings=no
14848 realsave_CFLAGS="$CFLAGS"
14850 base_warn_flags=" \
14852 -Wstrict-prototypes \
14856 base_error_flags=" \
14857 -Werror=missing-prototypes \
14858 -Werror=implicit-function-declaration \
14859 -Werror=pointer-arith \
14860 -Werror=init-self \
14861 -Werror=format-security \
14863 -Werror=missing-include-dirs \
14864 -Werror=return-type \
14867 additional_flags=""
14869 case "$enable_compile_warnings" in
14874 warning_flags="-Wall"
14877 warning_flags="$base_warn_flags $base_error_flags $additional_flags"
14880 as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5
14884 if test "$enable_compile_warnings" = "error" ; then
14885 warning_flags="$warning_flags -Werror"
14888 for option in $warning_flags; do
14889 save_CFLAGS="$CFLAGS"
14890 CFLAGS="$CFLAGS $option"
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5
14892 $as_echo_n "checking whether gcc understands $option... " >&6; }
14893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14894 /* end confdefs.h. */
14904 if ac_fn_c_try_compile "$LINENO"; then :
14909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14910 CFLAGS="$save_CFLAGS"
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
14912 $as_echo "$has_option" >&6; }
14913 if test $has_option = yes; then
14914 tested_warning_flags="$tested_warning_flags $option"
14920 CFLAGS="$realsave_CFLAGS"
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
14922 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tested_warning_flags" >&5
14924 $as_echo "$tested_warning_flags" >&6; }
14926 # Check whether --enable-iso-c was given.
14927 if test "${enable_iso_c+set}" = set; then :
14928 enableval=$enable_iso_c;
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what language compliance flags to pass to the C compiler" >&5
14935 $as_echo_n "checking what language compliance flags to pass to the C compiler... " >&6; }
14937 if test "x$enable_iso_c" != "xno"; then
14938 if test "x$GCC" = "xyes"; then
14939 case " $CFLAGS " in
14940 *\ \ -ansi\ \ *) ;;
14941 *) complCFLAGS="$complCFLAGS -ansi" ;;
14943 case " $CFLAGS " in
14944 *\ \ -pedantic\ \ *) ;;
14945 *) complCFLAGS="$complCFLAGS -pedantic" ;;
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $complCFLAGS" >&5
14950 $as_echo "$complCFLAGS" >&6; }
14952 WARN_CFLAGS="$tested_warning_flags $complCFLAGS"
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gnome code coverage support" >&5
14956 $as_echo_n "checking for Gnome code coverage support... " >&6; }
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14958 $as_echo "yes" >&6; }
14963 # allow to override gcov location
14965 # Check whether --with-gcov was given.
14966 if test "${with_gcov+set}" = set; then :
14967 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
14969 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
14974 $as_echo_n "checking whether to build with code coverage support... " >&6; }
14975 # Check whether --enable-code-coverage was given.
14976 if test "${enable_code_coverage+set}" = set; then :
14977 enableval=$enable_code_coverage;
14979 enable_code_coverage=no
14983 if test x$enable_code_coverage = xyes; then
14984 CODE_COVERAGE_ENABLED_TRUE=
14985 CODE_COVERAGE_ENABLED_FALSE='#'
14987 CODE_COVERAGE_ENABLED_TRUE='#'
14988 CODE_COVERAGE_ENABLED_FALSE=
14991 CODE_COVERAGE_ENABLED=$enable_code_coverage
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
14994 $as_echo "$enable_code_coverage" >&6; }
14996 if test "$enable_code_coverage" = "yes" ; then :
14999 if test -n "$ac_tool_prefix"; then
15000 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
15001 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15003 $as_echo_n "checking for $ac_word... " >&6; }
15004 if ${ac_cv_prog_GCOV+:} false; then :
15005 $as_echo_n "(cached) " >&6
15007 if test -n "$GCOV"; then
15008 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
15010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15011 for as_dir in $PATH
15014 test -z "$as_dir" && as_dir=.
15015 for ac_exec_ext in '' $ac_executable_extensions; do
15016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15017 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
15018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15027 GCOV=$ac_cv_prog_GCOV
15028 if test -n "$GCOV"; then
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
15030 $as_echo "$GCOV" >&6; }
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15033 $as_echo "no" >&6; }
15038 if test -z "$ac_cv_prog_GCOV"; then
15040 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
15041 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15043 $as_echo_n "checking for $ac_word... " >&6; }
15044 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
15045 $as_echo_n "(cached) " >&6
15047 if test -n "$ac_ct_GCOV"; then
15048 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
15050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15051 for as_dir in $PATH
15054 test -z "$as_dir" && as_dir=.
15055 for ac_exec_ext in '' $ac_executable_extensions; do
15056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15057 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
15058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15067 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
15068 if test -n "$ac_ct_GCOV"; then
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
15070 $as_echo "$ac_ct_GCOV" >&6; }
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15073 $as_echo "no" >&6; }
15076 if test "x$ac_ct_GCOV" = x; then
15079 case $cross_compiling:$ac_tool_warned in
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15083 ac_tool_warned=yes ;;
15088 GCOV="$ac_cv_prog_GCOV"
15091 if test "X$GCOV" = "X:"; then :
15092 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
15096 if test "$GCC" = "no" ; then :
15098 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
15102 # List of supported lcov versions.
15103 lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11"
15105 # Extract the first word of "lcov", so it can be a program name with args.
15106 set dummy lcov; ac_word=$2
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15108 $as_echo_n "checking for $ac_word... " >&6; }
15109 if ${ac_cv_prog_LCOV+:} false; then :
15110 $as_echo_n "(cached) " >&6
15112 if test -n "$LCOV"; then
15113 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
15115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15116 for as_dir in $PATH
15119 test -z "$as_dir" && as_dir=.
15120 for ac_exec_ext in '' $ac_executable_extensions; do
15121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15122 ac_cv_prog_LCOV="lcov"
15123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15132 LCOV=$ac_cv_prog_LCOV
15133 if test -n "$LCOV"; then
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
15135 $as_echo "$LCOV" >&6; }
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15138 $as_echo "no" >&6; }
15142 # Extract the first word of "genhtml", so it can be a program name with args.
15143 set dummy genhtml; ac_word=$2
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15145 $as_echo_n "checking for $ac_word... " >&6; }
15146 if ${ac_cv_prog_GENHTML+:} false; then :
15147 $as_echo_n "(cached) " >&6
15149 if test -n "$GENHTML"; then
15150 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
15152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15153 for as_dir in $PATH
15156 test -z "$as_dir" && as_dir=.
15157 for ac_exec_ext in '' $ac_executable_extensions; do
15158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15159 ac_cv_prog_GENHTML="genhtml"
15160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15169 GENHTML=$ac_cv_prog_GENHTML
15170 if test -n "$GENHTML"; then
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
15172 $as_echo "$GENHTML" >&6; }
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15175 $as_echo "no" >&6; }
15180 if test "$LCOV" ; then :
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
15183 $as_echo_n "checking for lcov version... " >&6; }
15184 if ${ax_cv_lcov_version+:} false; then :
15185 $as_echo_n "(cached) " >&6
15188 ax_cv_lcov_version=invalid
15189 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
15190 for lcov_check_version in $lcov_version_list; do
15191 if test "$lcov_version" = "$lcov_check_version"; then
15192 ax_cv_lcov_version="$lcov_check_version (ok)"
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lcov_version" >&5
15198 $as_echo "$ax_cv_lcov_version" >&6; }
15202 lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
15203 as_fn_error $? "$lcov_msg" "$LINENO" 5
15207 case $ax_cv_lcov_version in
15209 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
15210 as_fn_error $? "$lcov_msg" "$LINENO" 5
15215 if test -z "$GENHTML" ; then :
15217 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
15221 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
15222 CODE_COVERAGE_LDFLAGS="-lgcov"
15229 CODE_COVERAGE_RULES='
15233 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
15234 # (Default: $(top_builddir))
15235 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
15236 # by lcov for code coverage. (Default:
15237 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
15238 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
15239 # reports to be created. (Default:
15240 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
15241 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
15242 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the lcov instance.
15243 # (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
15244 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
15245 # (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
15246 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
15247 # instance. (Default: empty)
15248 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
15250 # The generated report will be titled using the $(PACKAGE_NAME) and
15251 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
15252 # use the git-version-gen script, available online.
15254 # Optional variables
15255 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
15256 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
15257 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
15258 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
15259 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
15260 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
15261 CODE_COVERAGE_GENHTML_OPTIONS ?=
15262 CODE_COVERAGE_IGNORE_PATTERN ?=
15264 code_coverage_quiet = $(code_coverage_quiet_$(V))
15265 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
15266 code_coverage_quiet_0 = --quiet
15268 # Use recursive makes in order to ignore errors during check
15269 check-code-coverage:
15270 ifeq ($(CODE_COVERAGE_ENABLED),yes)
15271 -$(MAKE) $(AM_MAKEFLAGS) -k check
15272 $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
15274 @echo "Need to reconfigure with --enable-code-coverage"
15277 # Capture code coverage data
15278 code-coverage-capture: code-coverage-capture-hook
15279 ifeq ($(CODE_COVERAGE_ENABLED),yes)
15280 $(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)
15281 $(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)"
15282 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
15283 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)
15284 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
15286 @echo "Need to reconfigure with --enable-code-coverage"
15289 # Hook rule executed before code-coverage-capture, overridable by the user
15290 code-coverage-capture-hook:
15292 ifeq ($(CODE_COVERAGE_ENABLED),yes)
15293 clean: code-coverage-clean
15294 code-coverage-clean:
15295 -$(LCOV) --directory $(top_builddir) -z
15296 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
15297 -find . -name "*.gcda" -o -name "*.gcov" -delete
15301 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
15303 DISTCHECK_CONFIGURE_FLAGS ?=
15304 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
15306 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
15312 GNOME_CODE_COVERAGE_RULES=$CODE_COVERAGE_RULES
15318 if test "x$GCC" = "xyes"; then
15320 case " $CFLAGS " in
15321 *[\ \ ]-Wall[\ \ ]*)
15324 save_CFLAGS="$CFLAGS"
15325 CFLAGS="$CFLAGS -Wall"
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Wall" >&5
15327 $as_echo_n "checking whether $CC understands -Wall... " >&6; }
15328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329 /* end confdefs.h. */
15339 if ac_fn_c_try_compile "$LINENO"; then :
15344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
15346 $as_echo "$jh_has_option" >&6; }
15347 if test $jh_has_option = no; then
15348 CFLAGS="$save_CFLAGS"
15353 case " $CFLAGS " in
15354 *[\ \ ]-Werror=unused-variable[\ \ ]*)
15357 save_CFLAGS="$CFLAGS"
15358 CFLAGS="$CFLAGS -Werror=unused-variable"
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=unused-variable" >&5
15360 $as_echo_n "checking whether $CC understands -Werror=unused-variable... " >&6; }
15361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h. */
15372 if ac_fn_c_try_compile "$LINENO"; then :
15377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
15379 $as_echo "$jh_has_option" >&6; }
15380 if test $jh_has_option = no; then
15381 CFLAGS="$save_CFLAGS"
15386 case " $CFLAGS " in
15387 *[\ \ ]-fno-strict-aliasing[\ \ ]*)
15390 save_CFLAGS="$CFLAGS"
15391 CFLAGS="$CFLAGS -fno-strict-aliasing"
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -fno-strict-aliasing" >&5
15393 $as_echo_n "checking whether $CC understands -fno-strict-aliasing... " >&6; }
15394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15395 /* end confdefs.h. */
15405 if ac_fn_c_try_compile "$LINENO"; then :
15410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
15412 $as_echo "$jh_has_option" >&6; }
15413 if test $jh_has_option = no; then
15414 CFLAGS="$save_CFLAGS"
15419 case " $CFLAGS " in
15420 *[\ \ ]-Werror=declaration-after-statement[\ \ ]*)
15423 save_CFLAGS="$CFLAGS"
15424 CFLAGS="$CFLAGS -Werror=declaration-after-statement"
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=declaration-after-statement" >&5
15426 $as_echo_n "checking whether $CC understands -Werror=declaration-after-statement... " >&6; }
15427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428 /* end confdefs.h. */
15438 if ac_fn_c_try_compile "$LINENO"; then :
15443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
15445 $as_echo "$jh_has_option" >&6; }
15446 if test $jh_has_option = no; then
15447 CFLAGS="$save_CFLAGS"
15453 CFLAGS="$CFLAGS $WARN_CFLAGS $CODE_COVERAGE_CFLAGS"
15454 LDFLAGS="$LDFLAGS $CODE_COVERAGE_CFLAGS"
15456 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"
15458 cat >confcache <<\_ACEOF
15459 # This file is a shell script that caches the results of configure
15460 # tests run on this system so they can be shared between configure
15461 # scripts and configure runs, see configure's option --config-cache.
15462 # It is not useful on other systems. If it contains results you don't
15463 # want to keep, you may remove or edit it.
15465 # config.status only pays attention to the cache file if you give it
15466 # the --recheck option to rerun configure.
15468 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15469 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15470 # following values.
15474 # The following way of writing the cache mishandles newlines in values,
15475 # but we know of no workaround that is simple, portable, and efficient.
15476 # So, we kill variables containing newlines.
15477 # Ultrix sh set writes to stderr and can't be redirected directly,
15478 # and sets the high bit in the cache file unless we assign to the vars.
15480 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15481 eval ac_val=\$$ac_var
15485 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15486 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15489 _ | IFS | as_nl) ;; #(
15490 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15491 *) { eval $ac_var=; unset $ac_var;} ;;
15497 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15498 *${as_nl}ac_space=\ *)
15499 # `set' does not quote correctly, so add quotes: double-quote
15500 # substitution turns \\\\ into \\, and sed turns \\ into \.
15503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15506 # `set' quotes correctly as required by POSIX, so do not add quotes.
15507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15516 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15518 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15520 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15521 if test -w "$cache_file"; then
15522 if test "x$cache_file" != "x/dev/null"; then
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15524 $as_echo "$as_me: updating cache $cache_file" >&6;}
15525 if test ! -f "$cache_file" || test -h "$cache_file"; then
15526 cat confcache >"$cache_file"
15528 case $cache_file in #(
15530 mv -f confcache "$cache_file"$$ &&
15531 mv -f "$cache_file"$$ "$cache_file" ;; #(
15533 mv -f confcache "$cache_file" ;;
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15539 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15545 # Let make expand exec_prefix.
15546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15548 DEFS=-DHAVE_CONFIG_H
15553 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15554 # 1. Remove the extension, and $U if already installed.
15555 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15556 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15557 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15558 # will be set to the directory where LIBOBJS objects are built.
15559 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15560 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15562 LIBOBJS=$ac_libobjs
15564 LTLIBOBJS=$ac_ltlibobjs
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15568 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15569 if test -n "$am_sleep_pid"; then
15570 # Hide warnings about reused PIDs.
15571 wait $am_sleep_pid 2>/dev/null
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15574 $as_echo "done" >&6; }
15575 if test -n "$EXEEXT"; then
15577 am__EXEEXT_FALSE='#'
15579 am__EXEEXT_TRUE='#'
15583 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
15584 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
15585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15587 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15588 as_fn_error $? "conditional \"AMDEP\" was never defined.
15589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15591 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15592 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15595 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15596 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15599 if test -z "${ENABLE_CAIRO_TRUE}" && test -z "${ENABLE_CAIRO_FALSE}"; then
15600 as_fn_error $? "conditional \"ENABLE_CAIRO\" was never defined.
15601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15603 if test -z "${WITH_COMMON_TRUE}" && test -z "${WITH_COMMON_FALSE}"; then
15604 as_fn_error $? "conditional \"WITH_COMMON\" was never defined.
15605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15607 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
15608 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
15609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15612 : "${CONFIG_STATUS=./config.status}"
15614 ac_clean_files_save=$ac_clean_files
15615 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15617 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15619 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15621 # Generated by $as_me.
15622 # Run this file to recreate the current configuration.
15623 # Compiler output produced by configure, useful for debugging
15624 # configure, is in config.log if it exists.
15627 ac_cs_recheck=false
15630 SHELL=\${CONFIG_SHELL-$SHELL}
15633 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15634 ## -------------------- ##
15635 ## M4sh Initialization. ##
15636 ## -------------------- ##
15638 # Be more Bourne compatible
15639 DUALCASE=1; export DUALCASE # for MKS sh
15640 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15643 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15644 # is contrary to our usage. Disable this feature.
15645 alias -g '${1+"$@"}'='"$@"'
15646 setopt NO_GLOB_SUBST
15648 case `(set -o) 2>/dev/null` in #(
15660 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15661 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15662 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15663 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15664 # Prefer a ksh shell builtin over an external printf program on Solaris,
15665 # but without wasting forks for bash or zsh.
15666 if test -z "$BASH_VERSION$ZSH_VERSION" \
15667 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15668 as_echo='print -r --'
15669 as_echo_n='print -rn --'
15670 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15671 as_echo='printf %s\n'
15672 as_echo_n='printf %s'
15674 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15675 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15676 as_echo_n='/usr/ucb/echo -n'
15678 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15679 as_echo_n_body='eval
15683 expr "X$arg" : "X\\(.*\\)$as_nl";
15684 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15686 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15688 export as_echo_n_body
15689 as_echo_n='sh -c $as_echo_n_body as_echo'
15691 export as_echo_body
15692 as_echo='sh -c $as_echo_body as_echo'
15695 # The user is always right.
15696 if test "${PATH_SEPARATOR+set}" != set; then
15698 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15699 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15706 # We need space, tab and new line, in precisely that order. Quoting is
15707 # there to prevent editors from complaining about space-tab.
15708 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15709 # splitting by setting IFS to empty value.)
15712 # Find who we are. Look in the path if we contain no directory separator.
15715 *[\\/]* ) as_myself=$0 ;;
15716 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15717 for as_dir in $PATH
15720 test -z "$as_dir" && as_dir=.
15721 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15727 # We did not find ourselves, most probably we were run as `sh COMMAND'
15728 # in which case we are not to be found in the path.
15729 if test "x$as_myself" = x; then
15732 if test ! -f "$as_myself"; then
15733 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15737 # Unset variables that we do not need and which cause bugs (e.g. in
15738 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15739 # suppresses any "Segmentation fault" message there. '((' could
15740 # trigger a bug in pdksh 5.2.14.
15741 for as_var in BASH_ENV ENV MAIL MAILPATH
15742 do eval test x\${$as_var+set} = xset \
15743 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15756 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15759 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15760 # ----------------------------------------
15761 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15762 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15763 # script with STATUS, using 1 if that was 0.
15766 as_status=$1; test $as_status -eq 0 && as_status=1
15768 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15769 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15771 $as_echo "$as_me: error: $2" >&2
15772 as_fn_exit $as_status
15776 # as_fn_set_status STATUS
15777 # -----------------------
15778 # Set $? to STATUS, without forking.
15779 as_fn_set_status ()
15782 } # as_fn_set_status
15784 # as_fn_exit STATUS
15785 # -----------------
15786 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15790 as_fn_set_status $1
15796 # Portably unset VAR.
15799 { eval $1=; unset $1;}
15801 as_unset=as_fn_unset
15802 # as_fn_append VAR VALUE
15803 # ----------------------
15804 # Append the text in VALUE to the end of the definition contained in VAR. Take
15805 # advantage of any shell optimizations that allow amortized linear growth over
15806 # repeated appends, instead of the typical quadratic growth present in naive
15808 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15809 eval 'as_fn_append ()
15820 # as_fn_arith ARG...
15821 # ------------------
15822 # Perform arithmetic evaluation on the ARGs, and store the result in the
15823 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15824 # must be portable across $(()) and expr.
15825 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15826 eval 'as_fn_arith ()
15833 as_val=`expr "$@" || test $? -eq 1`
15838 if expr a : '\(a\)' >/dev/null 2>&1 &&
15839 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15845 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15846 as_basename=basename
15851 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15857 as_me=`$as_basename -- "$0" ||
15858 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15859 X"$0" : 'X\(//\)$' \| \
15860 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15862 sed '/^.*\/\([^/][^/]*\)\/*$/{
15876 # Avoid depending upon Character Ranges.
15877 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15878 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15879 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15880 as_cr_digits='0123456789'
15881 as_cr_alnum=$as_cr_Letters$as_cr_digits
15883 ECHO_C= ECHO_N= ECHO_T=
15884 case `echo -n x` in #(((((
15886 case `echo 'xy\c'` in
15887 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15889 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15896 rm -f conf$$ conf$$.exe conf$$.file
15897 if test -d conf$$.dir; then
15898 rm -f conf$$.dir/conf$$.file
15901 mkdir conf$$.dir 2>/dev/null
15903 if (echo >conf$$.file) 2>/dev/null; then
15904 if ln -s conf$$.file conf$$ 2>/dev/null; then
15906 # ... but there are two gotchas:
15907 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15908 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15909 # In both cases, we have to default to `cp -pR'.
15910 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15912 elif ln conf$$.file conf$$ 2>/dev/null; then
15920 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15921 rmdir conf$$.dir 2>/dev/null
15926 # Create "$as_dir" as a directory, including parents if necessary.
15931 -*) as_dir=./$as_dir;;
15933 test -d "$as_dir" || eval $as_mkdir_p || {
15937 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15938 *) as_qdir=$as_dir;;
15940 as_dirs="'$as_qdir' $as_dirs"
15941 as_dir=`$as_dirname -- "$as_dir" ||
15942 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15943 X"$as_dir" : 'X\(//\)[^/]' \| \
15944 X"$as_dir" : 'X\(//\)$' \| \
15945 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15946 $as_echo X"$as_dir" |
15947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15951 /^X\(\/\/\)[^/].*/{
15964 test -d "$as_dir" && break
15966 test -z "$as_dirs" || eval "mkdir $as_dirs"
15967 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15971 if mkdir -p . 2>/dev/null; then
15972 as_mkdir_p='mkdir -p "$as_dir"'
15974 test -d ./-p && rmdir ./-p
15979 # as_fn_executable_p FILE
15980 # -----------------------
15981 # Test if FILE is an executable regular file.
15982 as_fn_executable_p ()
15984 test -f "$1" && test -x "$1"
15985 } # as_fn_executable_p
15986 as_test_x='test -x'
15987 as_executable_p=as_fn_executable_p
15989 # Sed expression to map a string onto a valid CPP name.
15990 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15992 # Sed expression to map a string onto a valid variable name.
15993 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15997 ## ----------------------------------- ##
15998 ## Main body of $CONFIG_STATUS script. ##
15999 ## ----------------------------------- ##
16001 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16004 # Save the log message, to keep $0 and so on meaningful, and to
16005 # report actual input values of CONFIG_FILES etc. instead of their
16006 # values after options handling.
16008 This file was extended by pygobject $as_me 3.21.91, which was
16009 generated by GNU Autoconf 2.69. Invocation command line was
16011 CONFIG_FILES = $CONFIG_FILES
16012 CONFIG_HEADERS = $CONFIG_HEADERS
16013 CONFIG_LINKS = $CONFIG_LINKS
16014 CONFIG_COMMANDS = $CONFIG_COMMANDS
16017 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16022 case $ac_config_files in *"
16023 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16026 case $ac_config_headers in *"
16027 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16032 # Files that config.status was made for.
16033 config_files="$ac_config_files"
16034 config_headers="$ac_config_headers"
16035 config_commands="$ac_config_commands"
16039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16041 \`$as_me' instantiates files and other configuration actions
16042 from templates according to the current configuration. Unless the files
16043 and actions are specified as TAGs, all are instantiated by default.
16045 Usage: $0 [OPTION]... [TAG]...
16047 -h, --help print this help, then exit
16048 -V, --version print version number and configuration settings, then exit
16049 --config print configuration, then exit
16050 -q, --quiet, --silent
16051 do not print progress messages
16052 -d, --debug don't remove temporary files
16053 --recheck update $as_me by reconfiguring in the same conditions
16054 --file=FILE[:TEMPLATE]
16055 instantiate the configuration file FILE
16056 --header=FILE[:TEMPLATE]
16057 instantiate the configuration header FILE
16059 Configuration files:
16062 Configuration headers:
16065 Configuration commands:
16068 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
16069 pygobject home page: <https://wiki.gnome.org/Projects/PyGObject/>."
16072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16073 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16075 pygobject config.status 3.21.91
16076 configured by $0, generated by GNU Autoconf 2.69,
16077 with options \\"\$ac_cs_config\\"
16079 Copyright (C) 2012 Free Software Foundation, Inc.
16080 This config.status script is free software; the Free Software Foundation
16081 gives unlimited permission to copy, distribute and modify it."
16088 test -n "\$AWK" || AWK=awk
16091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16092 # The default lists apply if the user does not specify any file.
16098 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16099 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16103 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16115 # Handling of the options.
16116 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16118 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16119 $as_echo "$ac_cs_version"; exit ;;
16120 --config | --confi | --conf | --con | --co | --c )
16121 $as_echo "$ac_cs_config"; exit ;;
16122 --debug | --debu | --deb | --de | --d | -d )
16124 --file | --fil | --fi | --f )
16127 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16128 '') as_fn_error $? "missing file argument" ;;
16130 as_fn_append CONFIG_FILES " '$ac_optarg'"
16131 ac_need_defaults=false;;
16132 --header | --heade | --head | --hea )
16135 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16137 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16138 ac_need_defaults=false;;
16140 # Conflict between --help and --header
16141 as_fn_error $? "ambiguous option: \`$1'
16142 Try \`$0 --help' for more information.";;
16143 --help | --hel | -h )
16144 $as_echo "$ac_cs_usage"; exit ;;
16145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16146 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16149 # This is an error.
16150 -*) as_fn_error $? "unrecognized option: \`$1'
16151 Try \`$0 --help' for more information." ;;
16153 *) as_fn_append ac_config_targets " $1"
16154 ac_need_defaults=false ;;
16160 ac_configure_extra_args=
16162 if $ac_cs_silent; then
16164 ac_configure_extra_args="$ac_configure_extra_args --silent"
16168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16169 if \$ac_cs_recheck; then
16170 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16172 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16173 CONFIG_SHELL='$SHELL'
16174 export CONFIG_SHELL
16179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16183 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16184 ## Running $as_me. ##
16190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16194 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16197 # The HP-UX ksh and POSIX shell print the target directory to stdout
16198 # if CDPATH is set.
16199 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16201 sed_quote_subst='$sed_quote_subst'
16202 double_quote_subst='$double_quote_subst'
16203 delay_variable_subst='$delay_variable_subst'
16204 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16205 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16206 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16207 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16208 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16209 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16210 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16211 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16212 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16213 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16214 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16215 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16216 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16217 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16218 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16219 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16220 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16221 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16222 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16223 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16224 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16225 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16226 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16227 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16228 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16229 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16230 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16231 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16232 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16233 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16234 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16235 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16236 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16237 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16238 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16239 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16240 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16241 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16242 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16243 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16244 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16245 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16246 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16247 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16248 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16249 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16250 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16251 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16252 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16253 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16254 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16255 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16256 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16257 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16258 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16259 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16260 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16261 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16262 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16263 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"`'
16264 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16265 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16266 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16267 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16268 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16269 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16270 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16271 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16272 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16273 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16274 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16275 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16276 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16277 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16278 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16279 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16280 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16281 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16282 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16283 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16284 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16285 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16286 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16287 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16288 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16289 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16290 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16291 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16292 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16293 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16294 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16295 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16296 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16297 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16298 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16299 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16300 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16301 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16302 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16303 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16304 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16305 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16306 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16307 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16308 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16309 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16310 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16311 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16312 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16313 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16314 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16315 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16316 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16317 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16318 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16319 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16320 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16321 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16322 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16323 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16324 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16325 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16326 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16327 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16328 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16329 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16330 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16331 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16332 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16333 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16334 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16335 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16336 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16337 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16338 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16339 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16342 LTCFLAGS='$LTCFLAGS'
16343 compiler='$compiler_DEFAULT'
16345 # A function that is used when there is no print builtin or printf.
16346 func_fallback_echo ()
16348 eval 'cat <<_LTECHO_EOF
16353 # Quote evaled strings.
16370 deplibs_check_method \
16374 sharedlib_from_linklib_cmd \
16377 archiver_list_spec \
16383 lt_cv_sys_global_symbol_pipe \
16384 lt_cv_sys_global_symbol_to_cdecl \
16385 lt_cv_sys_global_symbol_to_import \
16386 lt_cv_sys_global_symbol_to_c_name_address \
16387 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16388 lt_cv_nm_interface \
16389 nm_file_list_spec \
16390 lt_cv_truncate_bin \
16391 lt_prog_compiler_no_builtin_flag \
16392 lt_prog_compiler_pic \
16393 lt_prog_compiler_wl \
16394 lt_prog_compiler_static \
16395 lt_cv_prog_compiler_c_o \
16404 export_dynamic_flag_spec \
16405 whole_archive_flag_spec \
16406 compiler_needs_object \
16408 allow_undefined_flag \
16409 no_undefined_flag \
16410 hardcode_libdir_flag_spec \
16411 hardcode_libdir_separator \
16415 variables_saved_for_relink \
16417 library_names_spec \
16419 install_override_mode \
16423 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16424 *[\\\\\\\`\\"\\\$]*)
16425 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16428 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16433 # Double-quote double-evaled strings.
16434 for var in reload_cmds \
16435 old_postinstall_cmds \
16436 old_postuninstall_cmds \
16438 extract_expsyms_cmds \
16439 old_archive_from_new_cmds \
16440 old_archive_from_expsyms_cmds \
16442 archive_expsym_cmds \
16444 module_expsym_cmds \
16445 export_symbols_cmds \
16449 postuninstall_cmds \
16451 sys_lib_search_path_spec \
16452 configure_time_dlsearch_path \
16453 configure_time_lt_sys_library_path; do
16454 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16455 *[\\\\\\\`\\"\\\$]*)
16456 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16459 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16464 ac_aux_dir='$ac_aux_dir'
16466 # See if we are running on zsh, and set the options that allow our
16467 # commands through without removal of \ escapes INIT.
16468 if test -n "\${ZSH_VERSION+set}"; then
16469 setopt NO_GLOB_SUBST
16483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16485 # Handling of arguments.
16486 for ac_config_target in $ac_config_targets
16488 case $ac_config_target in
16489 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16490 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16491 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16492 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16493 "pygobject-3.0.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0.pc" ;;
16494 "pygobject-3.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0-uninstalled.pc" ;;
16495 "gi/Makefile") CONFIG_FILES="$CONFIG_FILES gi/Makefile" ;;
16496 "gi/repository/Makefile") CONFIG_FILES="$CONFIG_FILES gi/repository/Makefile" ;;
16497 "gi/overrides/Makefile") CONFIG_FILES="$CONFIG_FILES gi/overrides/Makefile" ;;
16498 "gi/_gobject/Makefile") CONFIG_FILES="$CONFIG_FILES gi/_gobject/Makefile" ;;
16499 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
16500 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16501 "pygtkcompat/Makefile") CONFIG_FILES="$CONFIG_FILES pygtkcompat/Makefile" ;;
16502 "PKG-INFO") CONFIG_FILES="$CONFIG_FILES PKG-INFO" ;;
16504 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16509 # If the user did not use the arguments to specify the items to instantiate,
16510 # then the envvar interface is used. Set only those that are not.
16511 # We use the long form for the default assignment because of an extremely
16512 # bizarre bug on SunOS 4.1.3.
16513 if $ac_need_defaults; then
16514 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16515 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16516 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16519 # Have a temporary directory for convenience. Make it in the build tree
16520 # simply because there is no reason against having it here, and in addition,
16521 # creating and moving files from /tmp can sometimes cause problems.
16522 # Hook for its removal unless debugging.
16523 # Note that there is a small window in which the directory will not be cleaned:
16524 # after its creation but before its name has been assigned to `$tmp'.
16528 trap 'exit_status=$?
16529 : "${ac_tmp:=$tmp}"
16530 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16532 trap 'as_fn_exit 1' 1 2 13 15
16534 # Create a (secure) tmp directory for tmp files.
16537 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16541 tmp=./conf$$-$RANDOM
16542 (umask 077 && mkdir "$tmp")
16543 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16546 # Set up the scripts for CONFIG_FILES section.
16547 # No need to generate them if there are no CONFIG_FILES.
16548 # This happens for instance with `./config.status config.h'.
16549 if test -n "$CONFIG_FILES"; then
16552 ac_cr=`echo X | tr X '\015'`
16553 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16554 # But we know of no other shell where ac_cr would be empty at this
16555 # point, so we can use a bashism as a fallback.
16556 if test "x$ac_cr" = x; then
16557 eval ac_cr=\$\'\\r\'
16559 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16560 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16563 ac_cs_awk_cr=$ac_cr
16566 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16571 echo "cat >conf$$subs.awk <<_ACEOF" &&
16572 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16574 } >conf$$subs.sh ||
16575 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16576 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16578 for ac_last_try in false false false false false :; do
16579 . ./conf$$subs.sh ||
16580 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16582 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16583 if test $ac_delim_n = $ac_delim_num; then
16585 elif $ac_last_try; then
16586 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16588 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16591 rm -f conf$$subs.sh
16593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16594 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16598 s/^/S["/; s/!.*/"]=/
16608 s/\(.\{148\}\)..*/\1/
16610 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16615 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16622 s/\(.\{148\}\)..*/\1/
16624 s/["\\]/\\&/g; s/^/"/; s/$/"/
16628 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16633 ' <conf$$subs.awk | sed '
16638 ' >>$CONFIG_STATUS || ac_write_fail=1
16639 rm -f conf$$subs.awk
16640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16642 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16643 for (key in S) S_is_set[key] = 1
16649 nfields = split(line, field, "@")
16651 len = length(field[1])
16652 for (i = 2; i < nfields; i++) {
16654 keylen = length(key)
16655 if (S_is_set[key]) {
16657 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16658 len += length(value) + length(field[++i])
16669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16670 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16671 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16674 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16675 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16678 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16679 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16680 # trailing colons and then remove the whole line if VPATH becomes empty
16681 # (actually we leave an empty line to preserve line numbers).
16682 if test "x$srcdir" = x.; then
16683 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16702 fi # test -n "$CONFIG_FILES"
16704 # Set up the scripts for CONFIG_HEADERS section.
16705 # No need to generate them if there are no CONFIG_HEADERS.
16706 # This happens for instance with `./config.status Makefile'.
16707 if test -n "$CONFIG_HEADERS"; then
16708 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16712 # Transform confdefs.h into an awk script `defines.awk', embedded as
16713 # here-document in config.status, that substitutes the proper values into
16714 # config.h.in to produce config.h.
16716 # Create a delimiter string that does not exist in confdefs.h, to ease
16717 # handling of long lines.
16719 for ac_last_try in false false :; do
16720 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16721 if test -z "$ac_tt"; then
16723 elif $ac_last_try; then
16724 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16726 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16730 # For the awk script, D is an array of macro values keyed by name,
16731 # likewise P contains macro parameters if any. Preserve backslash
16732 # newline sequences.
16734 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16736 s/.\{148\}/&'"$ac_delim"'/g
16739 s/^[ ]*#[ ]*define[ ][ ]*/ /
16746 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16748 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16752 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16753 D["\1"]=" \3\\\\\\n"\\/p
16755 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16760 s/.\{148\}/&'"$ac_delim"'/g
16765 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16768 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16770 ' <confdefs.h | sed '
16771 s/'"$ac_delim"'/"\\\
16772 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16775 for (key in D) D_is_set[key] = 1
16778 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16780 split(line, arg, " ")
16781 if (arg[1] == "#") {
16785 defundef = substr(arg[1], 2)
16788 split(mac1, mac2, "(") #)
16790 prefix = substr(line, 1, index(line, defundef) - 1)
16791 if (D_is_set[macro]) {
16792 # Preserve the white space surrounding the "#".
16793 print prefix "define", macro P[macro] D[macro]
16796 # Replace #undef with comments. This is necessary, for example,
16797 # in the case of _POSIX_SOURCE, which is predefined and required
16798 # on some systems where configure will not decide to define it.
16799 if (defundef == "undef") {
16800 print "/*", prefix defundef, macro, "*/"
16808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16809 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16810 fi # test -n "$CONFIG_HEADERS"
16813 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16818 :[FHLC]) ac_mode=$ac_tag; continue;;
16820 case $ac_mode$ac_tag in
16822 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16823 :[FH]-) ac_tag=-:-;;
16824 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16841 -) ac_f="$ac_tmp/stdin";;
16842 *) # Look for the file first in the build tree, then in the source tree
16843 # (if the path is not absolute). The absolute path cannot be DOS-style,
16844 # because $ac_f cannot contain `:'.
16848 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16850 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16852 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16853 as_fn_append ac_file_inputs " '$ac_f'"
16856 # Let's still pretend it is `configure' which instantiates (i.e., don't
16857 # use $as_me), people would be surprised to read:
16858 # /* config.h. Generated by config.status. */
16859 configure_input='Generated from '`
16860 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16862 if test x"$ac_file" != x-; then
16863 configure_input="$ac_file. $configure_input"
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16865 $as_echo "$as_me: creating $ac_file" >&6;}
16867 # Neutralize special characters interpreted by sed in replacement strings.
16868 case $configure_input in #(
16869 *\&* | *\|* | *\\* )
16870 ac_sed_conf_input=`$as_echo "$configure_input" |
16871 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16872 *) ac_sed_conf_input=$configure_input;;
16876 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16877 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16882 ac_dir=`$as_dirname -- "$ac_file" ||
16883 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16884 X"$ac_file" : 'X\(//\)[^/]' \| \
16885 X"$ac_file" : 'X\(//\)$' \| \
16886 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16887 $as_echo X"$ac_file" |
16888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16892 /^X\(\/\/\)[^/].*/{
16905 as_dir="$ac_dir"; as_fn_mkdir_p
16909 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16911 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16912 # A ".." for each directory in $ac_dir_suffix.
16913 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16914 case $ac_top_builddir_sub in
16915 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16916 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16919 ac_abs_top_builddir=$ac_pwd
16920 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16921 # for backward compatibility:
16922 ac_top_builddir=$ac_top_build_prefix
16925 .) # We are building in place.
16927 ac_top_srcdir=$ac_top_builddir_sub
16928 ac_abs_top_srcdir=$ac_pwd ;;
16929 [\\/]* | ?:[\\/]* ) # Absolute name.
16930 ac_srcdir=$srcdir$ac_dir_suffix;
16931 ac_top_srcdir=$srcdir
16932 ac_abs_top_srcdir=$srcdir ;;
16933 *) # Relative name.
16934 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16935 ac_top_srcdir=$ac_top_build_prefix$srcdir
16936 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16938 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16948 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16949 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16951 ac_MKDIR_P=$MKDIR_P
16953 [\\/$]* | ?:[\\/]* ) ;;
16954 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16959 # If the template does not know about datarootdir, expand it.
16960 # FIXME: This hack should be removed a few years after 2.60.
16961 ac_datarootdir_hack=; ac_datarootdir_seen=
16972 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16973 *datarootdir*) ac_datarootdir_seen=yes;;
16974 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16976 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16979 ac_datarootdir_hack='
16980 s&@datadir@&$datadir&g
16981 s&@docdir@&$docdir&g
16982 s&@infodir@&$infodir&g
16983 s&@localedir@&$localedir&g
16984 s&@mandir@&$mandir&g
16985 s&\\\${datarootdir}&$datarootdir&g' ;;
16989 # Neutralize VPATH when `$srcdir' = `.'.
16990 # Shell code in configure.ac might set extrasub.
16991 # FIXME: do we really want to maintain this feature?
16992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16993 ac_sed_extra="$ac_vpsub
16996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16998 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16999 s|@configure_input@|$ac_sed_conf_input|;t t
17000 s&@top_builddir@&$ac_top_builddir_sub&;t t
17001 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17002 s&@srcdir@&$ac_srcdir&;t t
17003 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17004 s&@top_srcdir@&$ac_top_srcdir&;t t
17005 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17006 s&@builddir@&$ac_builddir&;t t
17007 s&@abs_builddir@&$ac_abs_builddir&;t t
17008 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17009 s&@INSTALL@&$ac_INSTALL&;t t
17010 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17011 $ac_datarootdir_hack
17013 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17014 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17016 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17017 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17018 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17019 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17021 which seems to be undefined. Please make sure it is defined" >&5
17022 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17023 which seems to be undefined. Please make sure it is defined" >&2;}
17025 rm -f "$ac_tmp/stdin"
17027 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17028 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17030 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17036 if test x"$ac_file" != x-; then
17038 $as_echo "/* $configure_input */" \
17039 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17040 } >"$ac_tmp/config.h" \
17041 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17042 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17044 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17047 mv "$ac_tmp/config.h" "$ac_file" \
17048 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17051 $as_echo "/* $configure_input */" \
17052 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17053 || as_fn_error $? "could not create -" "$LINENO" 5
17055 # Compute "$ac_file"'s index in $config_headers.
17058 for _am_header in $config_headers :; do
17059 case $_am_header in
17060 $_am_arg | $_am_arg:* )
17063 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17066 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17067 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17068 X"$_am_arg" : 'X\(//\)[^/]' \| \
17069 X"$_am_arg" : 'X\(//\)$' \| \
17070 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17071 $as_echo X"$_am_arg" |
17072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17076 /^X\(\/\/\)[^/].*/{
17088 s/.*/./; q'`/stamp-h$_am_stamp_count
17091 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17092 $as_echo "$as_me: executing $ac_file commands" >&6;}
17097 case $ac_file$ac_mode in
17098 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17099 # Older Autoconf quotes --file arguments for eval, but not when files
17100 # are listed without --file. Let's play safe and only enable the eval
17101 # if we detect the quoting.
17102 case $CONFIG_FILES in
17103 *\'*) eval set x "$CONFIG_FILES" ;;
17104 *) set x $CONFIG_FILES ;;
17109 # Strip MF so we end up with the name of the file.
17110 mf=`echo "$mf" | sed -e 's/:.*$//'`
17111 # Check whether this is an Automake generated Makefile or not.
17112 # We used to match only the files named 'Makefile.in', but
17113 # some people rename them; so instead we look at the file content.
17114 # Grep'ing the first line is not enough: some people post-process
17115 # each Makefile.in and add a new line on top of each file to say so.
17116 # Grep'ing the whole file is not good either: AIX grep has a line
17117 # limit of 2048, but all sed's we know have understand at least 4000.
17118 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17119 dirpart=`$as_dirname -- "$mf" ||
17120 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17121 X"$mf" : 'X\(//\)[^/]' \| \
17122 X"$mf" : 'X\(//\)$' \| \
17123 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17129 /^X\(\/\/\)[^/].*/{
17145 # Extract the definition of DEPDIR, am__include, and am__quote
17146 # from the Makefile without running 'make'.
17147 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17148 test -z "$DEPDIR" && continue
17149 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17150 test -z "$am__include" && continue
17151 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17152 # Find all dependency output files, they are included files with
17153 # $(DEPDIR) in their names. We invoke sed twice because it is the
17154 # simplest approach to changing $(DEPDIR) to its actual value in the
17156 for file in `sed -n "
17157 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17158 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17159 # Make sure the directory exists.
17160 test -f "$dirpart/$file" && continue
17161 fdir=`$as_dirname -- "$file" ||
17162 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17163 X"$file" : 'X\(//\)[^/]' \| \
17164 X"$file" : 'X\(//\)$' \| \
17165 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17166 $as_echo X"$file" |
17167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17171 /^X\(\/\/\)[^/].*/{
17184 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17185 # echo "creating $dirpart/$file"
17186 echo '# dummy' > "$dirpart/$file"
17193 # See if we are running on zsh, and set the options that allow our
17194 # commands through without removal of \ escapes.
17195 if test -n "${ZSH_VERSION+set}"; then
17196 setopt NO_GLOB_SUBST
17200 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17203 cat <<_LT_EOF >> "$cfgfile"
17205 # Generated automatically by $as_me ($PACKAGE) $VERSION
17206 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17208 # Provide generalized library-building support services.
17209 # Written by Gordon Matzigkeit, 1996
17211 # Copyright (C) 2014 Free Software Foundation, Inc.
17212 # This is free software; see the source for copying conditions. There is NO
17213 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17215 # GNU Libtool is free software; you can redistribute it and/or modify
17216 # it under the terms of the GNU General Public License as published by
17217 # the Free Software Foundation; either version 2 of of the License, or
17218 # (at your option) any later version.
17220 # As a special exception to the GNU General Public License, if you
17221 # distribute this file as part of a program or library that is built
17222 # using GNU Libtool, you may include this file under the same
17223 # distribution terms that you use for the rest of that program.
17225 # GNU Libtool is distributed in the hope that it will be useful, but
17226 # WITHOUT ANY WARRANTY; without even the implied warranty of
17227 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17228 # GNU General Public License for more details.
17230 # You should have received a copy of the GNU General Public License
17231 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17234 # The names of the tagged configurations supported by this script.
17237 # Configured defaults for sys_lib_dlsearch_path munging.
17238 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17240 # ### BEGIN LIBTOOL CONFIG
17242 # Which release of libtool.m4 was used?
17243 macro_version=$macro_version
17244 macro_revision=$macro_revision
17246 # Assembler program.
17249 # DLL creation program.
17250 DLLTOOL=$lt_DLLTOOL
17252 # Object dumper program.
17253 OBJDUMP=$lt_OBJDUMP
17255 # Whether or not to build static libraries.
17256 build_old_libs=$enable_static
17258 # Whether or not to build shared libraries.
17259 build_libtool_libs=$enable_shared
17261 # What type of objects to build.
17264 # Whether or not to optimize for fast installation.
17265 fast_install=$enable_fast_install
17267 # Shared archive member basename,for filename based shared library versioning on AIX.
17268 shared_archive_member_spec=$shared_archive_member_spec
17270 # Shell to use when invoking shell scripts.
17273 # An echo program that protects backslashes.
17276 # The PATH separator for the build system.
17277 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17280 host_alias=$host_alias
17284 # The build system.
17285 build_alias=$build_alias
17289 # A sed program that does not truncate output.
17292 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17293 Xsed="\$SED -e 1s/^X//"
17295 # A grep program that handles long lines.
17301 # A literal string matcher.
17304 # A BSD- or MS-compatible name lister.
17307 # Whether we need soft or hard links.
17310 # What is the maximum length of a command?
17311 max_cmd_len=$max_cmd_len
17313 # Object file suffix (normally "o").
17316 # Executable file suffix (normally "").
17319 # whether the shell understands "unset".
17322 # turn spaces into newlines.
17325 # turn newlines into spaces.
17328 # convert \$build file names to \$host format.
17329 to_host_file_cmd=$lt_cv_to_host_file_cmd
17331 # convert \$build files to toolchain format.
17332 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17334 # Method to check whether dependent libraries are shared objects.
17335 deplibs_check_method=$lt_deplibs_check_method
17337 # Command to use when deplibs_check_method = "file_magic".
17338 file_magic_cmd=$lt_file_magic_cmd
17340 # How to find potential files when deplibs_check_method = "file_magic".
17341 file_magic_glob=$lt_file_magic_glob
17343 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17344 want_nocaseglob=$lt_want_nocaseglob
17346 # Command to associate shared and link libraries.
17347 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17352 # Flags to create an archive.
17353 AR_FLAGS=$lt_AR_FLAGS
17355 # How to feed a file listing to the archiver.
17356 archiver_list_spec=$lt_archiver_list_spec
17358 # A symbol stripping program.
17361 # Commands used to install an old-style archive.
17363 old_postinstall_cmds=$lt_old_postinstall_cmds
17364 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17366 # Whether to use a lock for old archive extraction.
17367 lock_old_archive_extraction=$lock_old_archive_extraction
17372 # LTCC compiler flags.
17373 LTCFLAGS=$lt_CFLAGS
17375 # Take the output of nm and produce a listing of raw symbols and C names.
17376 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17378 # Transform the output of nm in a proper C declaration.
17379 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17381 # Transform the output of nm into a list of symbols to manually relocate.
17382 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17384 # Transform the output of nm in a C name address pair.
17385 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17387 # Transform the output of nm in a C name address pair when lib prefix is needed.
17388 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17390 # The name lister interface.
17391 nm_interface=$lt_lt_cv_nm_interface
17393 # Specify filename containing input files for \$NM.
17394 nm_file_list_spec=$lt_nm_file_list_spec
17396 # The root where to search for dependent libraries,and where our libraries should be installed.
17397 lt_sysroot=$lt_sysroot
17399 # Command to truncate a binary pipe.
17400 lt_truncate_bin=$lt_lt_cv_truncate_bin
17402 # The name of the directory that contains temporary libtool files.
17405 # Used to examine libraries when file_magic_cmd begins with "file".
17406 MAGIC_CMD=$MAGIC_CMD
17408 # Must we lock files when doing compilation?
17409 need_locks=$lt_need_locks
17412 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17414 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17415 DSYMUTIL=$lt_DSYMUTIL
17417 # Tool to change global to local symbols on Mac OS X.
17420 # Tool to manipulate fat objects and archives on Mac OS X.
17423 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17426 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17427 OTOOL64=$lt_OTOOL64
17429 # Old archive suffix (normally "a").
17432 # Shared library suffix (normally ".so").
17433 shrext_cmds=$lt_shrext_cmds
17435 # The commands to extract the exported symbol list from a shared archive.
17436 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17438 # Variables whose values should be saved in libtool wrapper scripts and
17439 # restored at link time.
17440 variables_saved_for_relink=$lt_variables_saved_for_relink
17442 # Do we need the "lib" prefix for modules?
17443 need_lib_prefix=$need_lib_prefix
17445 # Do we need a version for libraries?
17446 need_version=$need_version
17448 # Library versioning type.
17449 version_type=$version_type
17451 # Shared library runtime path variable.
17452 runpath_var=$runpath_var
17454 # Shared library path variable.
17455 shlibpath_var=$shlibpath_var
17457 # Is shlibpath searched before the hard-coded library search path?
17458 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17460 # Format of library name prefix.
17461 libname_spec=$lt_libname_spec
17463 # List of archive names. First name is the real one, the rest are links.
17464 # The last name is the one that the linker finds with -lNAME
17465 library_names_spec=$lt_library_names_spec
17467 # The coded name of the library, if different from the real name.
17468 soname_spec=$lt_soname_spec
17470 # Permission mode override for installation of shared libraries.
17471 install_override_mode=$lt_install_override_mode
17473 # Command to use after installation of a shared archive.
17474 postinstall_cmds=$lt_postinstall_cmds
17476 # Command to use after uninstallation of a shared archive.
17477 postuninstall_cmds=$lt_postuninstall_cmds
17479 # Commands used to finish a libtool library installation in a directory.
17480 finish_cmds=$lt_finish_cmds
17482 # As "finish_cmds", except a single script fragment to be evaled but
17484 finish_eval=$lt_finish_eval
17486 # Whether we should hardcode library paths into libraries.
17487 hardcode_into_libs=$hardcode_into_libs
17489 # Compile-time system search path for libraries.
17490 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17492 # Detected run-time system search path for libraries.
17493 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17495 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17496 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17498 # Whether dlopen is supported.
17499 dlopen_support=$enable_dlopen
17501 # Whether dlopen of programs is supported.
17502 dlopen_self=$enable_dlopen_self
17504 # Whether dlopen of statically linked programs is supported.
17505 dlopen_self_static=$enable_dlopen_self_static
17507 # Commands to strip libraries.
17508 old_striplib=$lt_old_striplib
17509 striplib=$lt_striplib
17512 # The linker used to build libraries.
17515 # How to create reloadable object files.
17516 reload_flag=$lt_reload_flag
17517 reload_cmds=$lt_reload_cmds
17519 # Commands used to build an old-style archive.
17520 old_archive_cmds=$lt_old_archive_cmds
17522 # A language specific compiler.
17525 # Is the compiler the GNU compiler?
17528 # Compiler flag to turn off builtin functions.
17529 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17531 # Additional compiler flags for building library objects.
17532 pic_flag=$lt_lt_prog_compiler_pic
17534 # How to pass a linker flag through the compiler.
17535 wl=$lt_lt_prog_compiler_wl
17537 # Compiler flag to prevent dynamic linking.
17538 link_static_flag=$lt_lt_prog_compiler_static
17540 # Does compiler simultaneously support -c and -o options?
17541 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17543 # Whether or not to add -lc for building shared libraries.
17544 build_libtool_need_lc=$archive_cmds_need_lc
17546 # Whether or not to disallow shared libs when runtime libs are static.
17547 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17549 # Compiler flag to allow reflexive dlopens.
17550 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17552 # Compiler flag to generate shared objects directly from archives.
17553 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17555 # Whether the compiler copes with passing no objects directly.
17556 compiler_needs_object=$lt_compiler_needs_object
17558 # Create an old-style archive from a shared archive.
17559 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17561 # Create a temporary old-style archive to link instead of a shared archive.
17562 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17564 # Commands used to build a shared archive.
17565 archive_cmds=$lt_archive_cmds
17566 archive_expsym_cmds=$lt_archive_expsym_cmds
17568 # Commands used to build a loadable module if different from building
17569 # a shared archive.
17570 module_cmds=$lt_module_cmds
17571 module_expsym_cmds=$lt_module_expsym_cmds
17573 # Whether we are building with GNU ld or not.
17574 with_gnu_ld=$lt_with_gnu_ld
17576 # Flag that allows shared libraries with undefined symbols to be built.
17577 allow_undefined_flag=$lt_allow_undefined_flag
17579 # Flag that enforces no undefined symbols.
17580 no_undefined_flag=$lt_no_undefined_flag
17582 # Flag to hardcode \$libdir into a binary during linking.
17583 # This must work even if \$libdir does not exist
17584 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17586 # Whether we need a single "-rpath" flag with a separated argument.
17587 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17589 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17590 # DIR into the resulting binary.
17591 hardcode_direct=$hardcode_direct
17593 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17594 # DIR into the resulting binary and the resulting library dependency is
17595 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17596 # library is relocated.
17597 hardcode_direct_absolute=$hardcode_direct_absolute
17599 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17600 # into the resulting binary.
17601 hardcode_minus_L=$hardcode_minus_L
17603 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17604 # into the resulting binary.
17605 hardcode_shlibpath_var=$hardcode_shlibpath_var
17607 # Set to "yes" if building a shared library automatically hardcodes DIR
17608 # into the library and all subsequent libraries and executables linked
17610 hardcode_automatic=$hardcode_automatic
17612 # Set to yes if linker adds runtime paths of dependent libraries
17613 # to runtime path list.
17614 inherit_rpath=$inherit_rpath
17616 # Whether libtool must link a program against all its dependency libraries.
17617 link_all_deplibs=$link_all_deplibs
17619 # Set to "yes" if exported symbols are required.
17620 always_export_symbols=$always_export_symbols
17622 # The commands to list exported symbols.
17623 export_symbols_cmds=$lt_export_symbols_cmds
17625 # Symbols that should not be listed in the preloaded symbols.
17626 exclude_expsyms=$lt_exclude_expsyms
17628 # Symbols that must always be exported.
17629 include_expsyms=$lt_include_expsyms
17631 # Commands necessary for linking programs (against libraries) with templates.
17632 prelink_cmds=$lt_prelink_cmds
17634 # Commands necessary for finishing linking programs.
17635 postlink_cmds=$lt_postlink_cmds
17637 # Specify filename containing input files.
17638 file_list_spec=$lt_file_list_spec
17640 # How to hardcode a shared library path into an executable.
17641 hardcode_action=$hardcode_action
17643 # ### END LIBTOOL CONFIG
17647 cat <<'_LT_EOF' >> "$cfgfile"
17649 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17651 # func_munge_path_list VARIABLE PATH
17652 # -----------------------------------
17653 # VARIABLE is name of variable containing _space_ separated list of
17654 # directories to be munged by the contents of PATH, which is string
17657 # string "DIR[ DIR]" will be prepended to VARIABLE
17659 # string "DIR[ DIR]" will be appended to VARIABLE
17660 # "DIRP[:DIRP]::[DIRA:]DIRA"
17661 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17662 # "DIRA[ DIRA]" will be appended to VARIABLE
17664 # VARIABLE will be replaced by "DIR[ DIR]"
17665 func_munge_path_list ()
17671 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17674 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17677 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17678 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17681 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17687 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17688 func_cc_basename ()
17690 for cc_temp in $*""; do
17692 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17693 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17698 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17702 # ### END FUNCTIONS SHARED WITH CONFIGURE
17708 cat <<\_LT_EOF >> "$cfgfile"
17709 # AIX sometimes has problems with the GCC collect2 program. For some
17710 # reason, if we set the COLLECT_NAMES environment variable, the problems
17711 # vanish in a puff of smoke.
17712 if test set != "${COLLECT_NAMES+set}"; then
17714 export COLLECT_NAMES
17721 ltmain=$ac_aux_dir/ltmain.sh
17724 # We use sed instead of cat because bash on DJGPP gets confused if
17725 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17726 # text mode, it properly converts lines to CR/LF. This bash problem
17727 # is reportedly fixed, but why not run on old versions too?
17728 sed '$q' "$ltmain" >> "$cfgfile" \
17729 || (rm -f "$cfgfile"; exit 1)
17731 mv -f "$cfgfile" "$ofile" ||
17732 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17743 ac_clean_files=$ac_clean_files_save
17745 test $ac_write_fail = 0 ||
17746 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17749 # configure is writing to config.log, and then calls config.status.
17750 # config.status does its own redirection, appending to config.log.
17751 # Unfortunately, on DOS this fails, as config.log is still kept open
17752 # by configure, so config.status won't be able to write to it; its
17753 # output is simply discarded. So we exec the FD to /dev/null,
17754 # effectively closing config.log, so it can be properly (re)opened and
17755 # appended to by config.status. When coming back to configure, we
17756 # need to make the FD available again.
17757 if test "$no_create" != yes; then
17759 ac_config_status_args=
17760 test "$silent" = yes &&
17761 ac_config_status_args="$ac_config_status_args --quiet"
17763 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17765 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17766 # would make configure fail if this is the last instruction.
17767 $ac_cs_success || as_fn_exit 1
17769 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17771 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
17778 Using python interpreter: $PYTHON
17779 cairo support: $enable_cairo
17780 thread support: $enable_thread
17781 code coverage support: $enable_code_coverage
17786 Using python interpreter: $PYTHON
17787 cairo support: $enable_cairo
17788 thread support: $enable_thread
17789 code coverage support: $enable_code_coverage