2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pygobject 3.18.0.
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.18.0'
595 PACKAGE_STRING='pygobject 3.18.0'
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
754 INSTALL_STRIP_PROGRAM
773 PYGOBJECT_MICRO_VERSION
774 PYGOBJECT_MINOR_VERSION
775 PYGOBJECT_MAJOR_VERSION
804 program_transform_name
817 enable_option_checking
823 enable_dependency_tracking
832 enable_compile_warnings
837 ac_precious_vars='build_alias
862 # Initialize some variables set by options.
864 ac_init_version=false
865 ac_unrecognized_opts=
867 # The variables have the same names as the options, with
868 # dashes changed to underlines.
876 program_transform_name=s,x,x,
884 # Installation directory options.
885 # These are left unexpanded so users can "make install exec_prefix=/foo"
886 # and all the variables that are supposed to be based on exec_prefix
887 # by default will actually change.
888 # Use braces instead of parens because sh, perl, etc. also accept them.
889 # (The list follows the same order as the GNU Coding Standards.)
890 bindir='${exec_prefix}/bin'
891 sbindir='${exec_prefix}/sbin'
892 libexecdir='${exec_prefix}/libexec'
893 datarootdir='${prefix}/share'
894 datadir='${datarootdir}'
895 sysconfdir='${prefix}/etc'
896 sharedstatedir='${prefix}/com'
897 localstatedir='${prefix}/var'
898 includedir='${prefix}/include'
899 oldincludedir='/usr/include'
900 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
901 infodir='${datarootdir}/info'
906 libdir='${exec_prefix}/lib'
907 localedir='${datarootdir}/locale'
908 mandir='${datarootdir}/man'
914 # If the previous option needs an argument, assign it.
915 if test -n "$ac_prev"; then
916 eval $ac_prev=\$ac_option
922 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 # Accept the important Cygnus configure options, so we can diagnose typos.
929 case $ac_dashdash$ac_option in
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 -build | --build | --buil | --bui | --bu)
939 ac_prev=build_alias ;;
940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941 build_alias=$ac_optarg ;;
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948 cache_file=$ac_optarg ;;
951 cache_file=config.cache ;;
953 -datadir | --datadir | --datadi | --datad)
955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
956 datadir=$ac_optarg ;;
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
965 -disable-* | --disable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
979 eval enable_$ac_useropt=no ;;
981 -docdir | --docdir | --docdi | --doc | --do)
983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 -enable-* | --enable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 as_fn_error $? "invalid feature name: $ac_useropt"
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_$ac_useropt"
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1005 eval enable_$ac_useropt=\$ac_optarg ;;
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036 htmldir=$ac_optarg ;;
1038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1050 -libdir | --libdir | --libdi | --libd)
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
1068 | --localstate | --localstat | --localsta | --localst | --locals)
1069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072 localstatedir=$ac_optarg ;;
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
1127 -program-transform-name=* | --program-transform-name=* \
1128 | --program-transform-nam=* | --program-transform-na=* \
1129 | --program-transform-n=* | --program-transform-=* \
1130 | --program-transform=* | --program-transfor=* \
1131 | --program-transfo=* | --program-transf=* \
1132 | --program-trans=* | --program-tran=* \
1133 | --progr-tra=* | --program-tr=* | --program-t=*)
1134 program_transform_name=$ac_optarg ;;
1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1141 -psdir | --psdir | --psdi | --psd | --ps)
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154 sbindir=$ac_optarg ;;
1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158 | --sharedst | --shareds | --shared | --share | --shar \
1160 ac_prev=sharedstatedir ;;
1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165 sharedstatedir=$ac_optarg ;;
1167 -site | --site | --sit)
1169 -site=* | --site=* | --sit=*)
1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175 srcdir=$ac_optarg ;;
1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178 | --syscon | --sysco | --sysc | --sys | --sy)
1179 ac_prev=sysconfdir ;;
1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182 sysconfdir=$ac_optarg ;;
1184 -target | --target | --targe | --targ | --tar | --ta | --t)
1185 ac_prev=target_alias ;;
1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187 target_alias=$ac_optarg ;;
1189 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 -version | --version | --versio | --versi | --vers | -V)
1193 ac_init_version=: ;;
1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error $? "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1209 eval with_$ac_useropt=\$ac_optarg ;;
1211 -without-* | --without-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error $? "invalid package name: $ac_useropt"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1225 eval with_$ac_useropt=no ;;
1228 # Obsolete; use --with-x.
1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232 | --x-incl | --x-inc | --x-in | --x-i)
1233 ac_prev=x_includes ;;
1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236 x_includes=$ac_optarg ;;
1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240 ac_prev=x_libraries ;;
1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243 x_libraries=$ac_optarg ;;
1245 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1246 Try \`$0 --help' for more information"
1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251 # Reject names that are not valid shell variable names.
1252 case $ac_envvar in #(
1253 '' | [0-9]* | *[!_$as_cr_alnum]* )
1254 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1256 eval $ac_envvar=\$ac_optarg
1257 export $ac_envvar ;;
1260 # FIXME: should be removed in autoconf 3.0.
1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1270 if test -n "$ac_prev"; then
1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272 as_fn_error $? "missing argument to $ac_option"
1275 if test -n "$ac_unrecognized_opts"; then
1276 case $enable_option_checking in
1278 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1279 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1283 # Check all directory arguments for consistency.
1284 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285 datadir sysconfdir sharedstatedir localstatedir includedir \
1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287 libdir localedir mandir
1289 eval ac_val=\$$ac_var
1290 # Remove trailing slashes.
1293 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1294 eval $ac_var=\$ac_val;;
1296 # Be sure to have absolute directory names.
1298 [\\/$]* | ?:[\\/]* ) continue;;
1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1304 # There might be people who depend on the old broken behavior: `$host'
1305 # used to hold the argument of --host etc.
1306 # FIXME: To remove some day.
1309 target=$target_alias
1311 # FIXME: To remove some day.
1312 if test "x$host_alias" != x; then
1313 if test "x$build_alias" = x; then
1314 cross_compiling=maybe
1315 elif test "x$build_alias" != "x$host_alias"; then
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323 test "$silent" = yes && exec 6>/dev/null
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329 as_fn_error $? "working directory cannot be determined"
1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331 as_fn_error $? "pwd does not report name of working directory"
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
1337 # Try the directory containing this script, then the parent directory.
1338 ac_confdir=`$as_dirname -- "$as_myself" ||
1339 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$as_myself" : 'X\(//\)[^/]' \| \
1341 X"$as_myself" : 'X\(//\)$' \| \
1342 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1343 $as_echo X"$as_myself" |
1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1366 ac_srcdir_defaulted=no
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1372 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1376 # When building in place, set srcdir=.
1377 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 # Remove unnecessary trailing slashes from srcdir.
1381 # Double slashes in file names in object file debugging info
1382 # mess up M-x gdb in Emacs.
1384 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386 for ac_var in $ac_precious_vars; do
1387 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_env_${ac_var}_value=\$${ac_var}
1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394 # Report the --help message.
1396 if test "$ac_init_help" = "long"; then
1397 # Omit some internal or obsolete options to make the list less imposing.
1398 # This message is too long to be a string in the A/UX 3.1 sh.
1400 \`configure' configures pygobject 3.18.0 to adapt to many kinds of systems.
1402 Usage: $0 [OPTION]... [VAR=VALUE]...
1404 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405 VAR=VALUE. See below for descriptions of some of the useful variables.
1407 Defaults for the options are specified in brackets.
1410 -h, --help display this help and exit
1411 --help=short display options specific to this package
1412 --help=recursive display the short help of all the included packages
1413 -V, --version display version information and exit
1414 -q, --quiet, --silent do not print \`checking ...' messages
1415 --cache-file=FILE cache test results in FILE [disabled]
1416 -C, --config-cache alias for \`--cache-file=config.cache'
1417 -n, --no-create do not create output files
1418 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1420 Installation directories:
1421 --prefix=PREFIX install architecture-independent files in PREFIX
1422 [$ac_default_prefix]
1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 By default, \`make install' will install all the files in
1427 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1428 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429 for instance \`--prefix=\$HOME'.
1431 For better control, use the options below.
1433 Fine tuning of the installation directories:
1434 --bindir=DIR user executables [EPREFIX/bin]
1435 --sbindir=DIR system admin executables [EPREFIX/sbin]
1436 --libexecdir=DIR program executables [EPREFIX/libexec]
1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1440 --libdir=DIR object code libraries [EPREFIX/lib]
1441 --includedir=DIR C header files [PREFIX/include]
1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445 --infodir=DIR info documentation [DATAROOTDIR/info]
1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447 --mandir=DIR man documentation [DATAROOTDIR/man]
1448 --docdir=DIR documentation root [DATAROOTDIR/doc/pygobject]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
1458 --program-prefix=PREFIX prepend PREFIX to installed program names
1459 --program-suffix=SUFFIX append SUFFIX to installed program names
1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1463 --build=BUILD configure for building on BUILD [guessed]
1464 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1468 if test -n "$ac_init_help"; then
1469 case $ac_init_help in
1470 short | recursive ) echo "Configuration of pygobject 3.18.0:";;
1475 --disable-option-checking ignore unrecognized --enable/--with options
1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1478 --enable-silent-rules less verbose build output (undo: "make V=1")
1479 --disable-silent-rules verbose build output (undo: "make V=0")
1480 --enable-static[=PKGS] build static libraries [default=no]
1481 --enable-shared[=PKGS] build shared libraries [default=yes]
1482 --enable-fast-install[=PKGS]
1483 optimize for fast installation [default=yes]
1484 --enable-dependency-tracking
1485 do not reject slow dependency extractors
1486 --disable-dependency-tracking
1487 speeds up one-time build
1488 --disable-libtool-lock avoid locking (might break parallel builds)
1489 --disable-thread Disable pygobject threading support
1490 --disable-glibtest do not try to compile and run a test GLIB program
1491 --enable-cairo Enable Cairo bindings using introspection
1493 --enable-compile-warnings=[no/minimum/yes/maximum/error]
1494 Turn on compiler warnings
1495 --enable-iso-c Try to warn if code is not ISO C
1496 --enable-code-coverage Whether to enable code coverage support
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1504 --with-sysroot=DIR Search for dependent libraries within DIR
1505 (or the compiler's sysroot if not specified).
1506 --with-python=PATH Path to Python interpreter; searches $PATH if only a
1507 program name is given; if not given, searches for a
1508 few standard names such as "python3" or "python2"
1509 --without-common For package maintainers: do not install Python
1510 version independent files
1511 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1513 Some influential environment variables:
1514 CC C compiler command
1515 CFLAGS C compiler flags
1516 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1517 nonstandard directory <lib dir>
1518 LIBS libraries to pass to the linker, e.g. -l<library>
1519 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520 you have headers in a nonstandard directory <include dir>
1522 PYTHON the Python interpreter
1523 PKG_CONFIG path to pkg-config utility
1525 directories to add to pkg-config's search path
1527 path overriding pkg-config's built-in search path
1528 FFI_CFLAGS C compiler flags for FFI, overriding pkg-config
1529 FFI_LIBS linker flags for FFI, overriding pkg-config
1530 GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
1531 GIO_LIBS linker flags for GIO, overriding pkg-config
1532 GI_CFLAGS C compiler flags for GI, overriding pkg-config
1533 GI_LIBS linker flags for GI, overriding pkg-config
1535 C compiler flags for CAIRO, overriding pkg-config
1536 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1538 C compiler flags for PYCAIRO, overriding pkg-config
1540 linker flags for PYCAIRO, overriding pkg-config
1542 Use these variables to override the choices made by `configure' or to help
1543 it to find libraries and programs with nonstandard names/locations.
1545 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
1546 pygobject home page: <https://wiki.gnome.org/Projects/PyGObject/>.
1551 if test "$ac_init_help" = "recursive"; then
1552 # If there are subdirs, report their specific --help.
1553 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1554 test -d "$ac_dir" ||
1555 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1563 # A ".." for each directory in $ac_dir_suffix.
1564 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1565 case $ac_top_builddir_sub in
1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570 ac_abs_top_builddir=$ac_pwd
1571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572 # for backward compatibility:
1573 ac_top_builddir=$ac_top_build_prefix
1576 .) # We are building in place.
1578 ac_top_srcdir=$ac_top_builddir_sub
1579 ac_abs_top_srcdir=$ac_pwd ;;
1580 [\\/]* | ?:[\\/]* ) # Absolute name.
1581 ac_srcdir=$srcdir$ac_dir_suffix;
1582 ac_top_srcdir=$srcdir
1583 ac_abs_top_srcdir=$srcdir ;;
1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586 ac_top_srcdir=$ac_top_build_prefix$srcdir
1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591 cd "$ac_dir" || { ac_status=$?; continue; }
1592 # Check for guested configure.
1593 if test -f "$ac_srcdir/configure.gnu"; then
1595 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1596 elif test -f "$ac_srcdir/configure"; then
1598 $SHELL "$ac_srcdir/configure" --help=recursive
1600 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602 cd "$ac_pwd" || { ac_status=$?; break; }
1606 test -n "$ac_init_help" && exit $ac_status
1607 if $ac_init_version; then
1609 pygobject configure 3.18.0
1610 generated by GNU Autoconf 2.69
1612 Copyright (C) 2012 Free Software Foundation, Inc.
1613 This configure script is free software; the Free Software Foundation
1614 gives unlimited permission to copy, distribute and modify it.
1619 ## ------------------------ ##
1620 ## Autoconf initialization. ##
1621 ## ------------------------ ##
1623 # ac_fn_c_try_compile LINENO
1624 # --------------------------
1625 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_c_try_compile ()
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 rm -f conftest.$ac_objext
1630 if { { ac_try="$ac_compile"
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_compile") 2>conftest.err
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && {
1646 test -z "$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 } && test -s conftest.$ac_objext; then :
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1659 } # ac_fn_c_try_compile
1661 # ac_fn_c_try_link LINENO
1662 # -----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded.
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext conftest$ac_exeext
1668 if { { ac_try="$ac_link"
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_link") 2>conftest.err
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest$ac_exeext && {
1687 test "$cross_compiling" = yes ||
1688 test -x conftest$ac_exeext
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1697 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1698 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1699 # interfere with the next link command; also delete a directory that is
1700 # left behind by Apple's compiler. We do this before executing the actions.
1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1705 } # ac_fn_c_try_link
1707 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1708 # -------------------------------------------------------
1709 # Tests whether HEADER exists and can be compiled using the include files in
1710 # INCLUDES, setting the cache variable VAR accordingly.
1711 ac_fn_c_check_header_compile ()
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715 $as_echo_n "checking for $2... " >&6; }
1716 if eval \${$3+:} false; then :
1717 $as_echo_n "(cached) " >&6
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1724 if ac_fn_c_try_compile "$LINENO"; then :
1729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 } # ac_fn_c_check_header_compile
1738 # ac_fn_c_try_cpp LINENO
1739 # ----------------------
1740 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_cpp conftest.$ac_ext"
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } > conftest.i && {
1760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1761 test ! -s conftest.err
1765 $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 as_fn_set_status $ac_retval
1775 # ac_fn_c_try_run LINENO
1776 # ----------------------
1777 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1778 # that executables *can* be run.
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 if { { ac_try="$ac_link"
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>&5
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1793 { { case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_try") 2>&5
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; }; }; then :
1805 $as_echo "$as_me: program exited with status $ac_status" >&5
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1809 ac_retval=$ac_status
1811 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 as_fn_set_status $ac_retval
1817 # ac_fn_c_check_func LINENO FUNC VAR
1818 # ----------------------------------
1819 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1820 ac_fn_c_check_func ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1830 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1832 #define $2 innocuous_$2
1834 /* System header to define __stub macros and hopefully few prototypes,
1835 which can conflict with char $2 (); below.
1836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1837 <limits.h> exists even on freestanding compilers. */
1840 # include <limits.h>
1842 # include <assert.h>
1847 /* Override any GCC internal prototype to avoid an error.
1848 Use char because int might match the return type of a GCC
1849 builtin and then its argument prototype would still apply. */
1854 /* The GNU C library defines this for functions which it implements
1855 to always fail with ENOSYS. Some functions are actually named
1856 something starting with __ and the normal name is an alias. */
1857 #if defined __stub_$2 || defined __stub___$2
1869 if ac_fn_c_try_link "$LINENO"; then :
1874 rm -f core conftest.err conftest.$ac_objext \
1875 conftest$ac_exeext conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 } # ac_fn_c_check_func
1883 cat >config.log <<_ACEOF
1884 This file contains any messages produced by compilers while
1885 running configure, to aid debugging if configure makes a mistake.
1887 It was created by pygobject $as_me 3.18.0, which was
1888 generated by GNU Autoconf 2.69. Invocation command line was
1900 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1901 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1902 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1903 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1904 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1906 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1907 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1909 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1910 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1911 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1912 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1913 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1914 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1915 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 test -z "$as_dir" && as_dir=.
1924 $as_echo "PATH: $as_dir"
1940 # Keep a trace of the command line.
1941 # Strip out --no-create and --no-recursion so they do not pile up.
1942 # Strip out --silent because we don't want to record it for future runs.
1943 # Also quote any args containing shell meta-characters.
1944 # Make two passes to allow for proper duplicate-argument suppression.
1948 ac_must_keep_next=false
1954 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1955 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1956 | -silent | --silent | --silen | --sile | --sil)
1959 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1962 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1964 as_fn_append ac_configure_args1 " '$ac_arg'"
1965 if test $ac_must_keep_next = true; then
1966 ac_must_keep_next=false # Got value, back to normal.
1969 *=* | --config-cache | -C | -disable-* | --disable-* \
1970 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1971 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1972 | -with-* | --with-* | -without-* | --without-* | --x)
1973 case "$ac_configure_args0 " in
1974 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1977 -* ) ac_must_keep_next=true ;;
1980 as_fn_append ac_configure_args " '$ac_arg'"
1985 { ac_configure_args0=; unset ac_configure_args0;}
1986 { ac_configure_args1=; unset ac_configure_args1;}
1988 # When interrupted or exit'd, cleanup temporary files, and complete
1989 # config.log. We remove comments because anyway the quotes in there
1990 # would cause problems or look ugly.
1991 # WARNING: Use '\'' to represent an apostrophe within the trap.
1992 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1993 trap 'exit_status=$?
1994 # Save into config.log some information that might help in debugging.
1998 $as_echo "## ---------------- ##
1999 ## Cache variables. ##
2000 ## ---------------- ##"
2002 # The following way of writing the cache mishandles newlines in values,
2004 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2005 eval ac_val=\$$ac_var
2009 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2010 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2013 _ | IFS | as_nl) ;; #(
2014 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2015 *) { eval $ac_var=; unset $ac_var;} ;;
2020 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2021 *${as_nl}ac_space=\ *)
2023 "s/'\''/'\''\\\\'\'''\''/g;
2024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2027 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2034 $as_echo "## ----------------- ##
2035 ## Output variables. ##
2036 ## ----------------- ##"
2038 for ac_var in $ac_subst_vars
2040 eval ac_val=\$$ac_var
2042 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2044 $as_echo "$ac_var='\''$ac_val'\''"
2048 if test -n "$ac_subst_files"; then
2049 $as_echo "## ------------------- ##
2050 ## File substitutions. ##
2051 ## ------------------- ##"
2053 for ac_var in $ac_subst_files
2055 eval ac_val=\$$ac_var
2057 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2059 $as_echo "$ac_var='\''$ac_val'\''"
2064 if test -s confdefs.h; then
2065 $as_echo "## ----------- ##
2072 test "$ac_signal" != 0 &&
2073 $as_echo "$as_me: caught signal $ac_signal"
2074 $as_echo "$as_me: exit $exit_status"
2076 rm -f core *.core core.conftest.* &&
2077 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2080 for ac_signal in 1 2 13 15; do
2081 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2085 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2086 rm -f -r conftest* confdefs.h
2088 $as_echo "/* confdefs.h */" > confdefs.h
2090 # Predefined preprocessor variables.
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_NAME "$PACKAGE_NAME"
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_STRING "$PACKAGE_STRING"
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_URL "$PACKAGE_URL"
2117 # Let the site file select an alternate cache file if it wants to.
2118 # Prefer an explicitly selected file to automatically selected ones.
2121 if test -n "$CONFIG_SITE"; then
2122 # We do not want a PATH search for config.site.
2123 case $CONFIG_SITE in #((
2124 -*) ac_site_file1=./$CONFIG_SITE;;
2125 */*) ac_site_file1=$CONFIG_SITE;;
2126 *) ac_site_file1=./$CONFIG_SITE;;
2128 elif test "x$prefix" != xNONE; then
2129 ac_site_file1=$prefix/share/config.site
2130 ac_site_file2=$prefix/etc/config.site
2132 ac_site_file1=$ac_default_prefix/share/config.site
2133 ac_site_file2=$ac_default_prefix/etc/config.site
2135 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2137 test "x$ac_site_file" = xNONE && continue
2138 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2140 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2141 sed 's/^/| /' "$ac_site_file" >&5
2143 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2145 as_fn_error $? "failed to load site script $ac_site_file
2146 See \`config.log' for more details" "$LINENO" 5; }
2150 if test -r "$cache_file"; then
2151 # Some versions of bash will fail to source /dev/null (special files
2152 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2153 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2155 $as_echo "$as_me: loading cache $cache_file" >&6;}
2157 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2158 *) . "./$cache_file";;
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2163 $as_echo "$as_me: creating cache $cache_file" >&6;}
2167 # Check that the precious variables saved in the cache have kept the same
2169 ac_cache_corrupted=false
2170 for ac_var in $ac_precious_vars; do
2171 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2172 eval ac_new_set=\$ac_env_${ac_var}_set
2173 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2174 eval ac_new_val=\$ac_env_${ac_var}_value
2175 case $ac_old_set,$ac_new_set in
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2178 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2179 ac_cache_corrupted=: ;;
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2182 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2183 ac_cache_corrupted=: ;;
2186 if test "x$ac_old_val" != "x$ac_new_val"; then
2187 # differences in whitespace do not lead to failure.
2188 ac_old_val_w=`echo x $ac_old_val`
2189 ac_new_val_w=`echo x $ac_new_val`
2190 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2192 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2193 ac_cache_corrupted=:
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2196 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2197 eval $ac_var=\$ac_old_val
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2200 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2202 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2205 # Pass precious variables to config.status.
2206 if test "$ac_new_set" = set; then
2208 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2209 *) ac_arg=$ac_var=$ac_new_val ;;
2211 case " $ac_configure_args " in
2212 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2213 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2217 if $ac_cache_corrupted; then
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2221 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2222 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2224 ## -------------------- ##
2225 ## Main body of script. ##
2226 ## -------------------- ##
2229 ac_cpp='$CPP $CPPFLAGS'
2230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2235 ACLOCAL_AMFLAGS="-I m4 -I ."
2241 $as_echo "#define PYGOBJECT_MAJOR_VERSION 3" >>confdefs.h
2243 PYGOBJECT_MAJOR_VERSION=3
2246 $as_echo "#define PYGOBJECT_MINOR_VERSION 18" >>confdefs.h
2248 PYGOBJECT_MINOR_VERSION=18
2251 $as_echo "#define PYGOBJECT_MICRO_VERSION 0" >>confdefs.h
2253 PYGOBJECT_MICRO_VERSION=0
2256 ac_config_headers="$ac_config_headers config.h"
2258 # Check whether --enable-silent-rules was given.
2259 if test "${enable_silent_rules+set}" = set; then :
2260 enableval=$enable_silent_rules;
2263 case $enable_silent_rules in # (((
2264 yes) AM_DEFAULT_VERBOSITY=0;;
2265 no) AM_DEFAULT_VERBOSITY=1;;
2266 *) AM_DEFAULT_VERBOSITY=0;;
2268 am_make=${MAKE-make}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2270 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2271 if ${am_cv_make_support_nested_variables+:} false; then :
2272 $as_echo_n "(cached) " >&6
2274 if $as_echo 'TRUE=$(BAR$(V))
2280 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2281 am_cv_make_support_nested_variables=yes
2283 am_cv_make_support_nested_variables=no
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2287 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2288 if test $am_cv_make_support_nested_variables = yes; then
2290 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2292 AM_V=$AM_DEFAULT_VERBOSITY
2293 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2297 am__api_version='1.14'
2300 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2301 if test -f "$ac_dir/install-sh"; then
2303 ac_install_sh="$ac_aux_dir/install-sh -c"
2305 elif test -f "$ac_dir/install.sh"; then
2307 ac_install_sh="$ac_aux_dir/install.sh -c"
2309 elif test -f "$ac_dir/shtool"; then
2311 ac_install_sh="$ac_aux_dir/shtool install -c"
2315 if test -z "$ac_aux_dir"; then
2316 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2319 # These three variables are undocumented and unsupported,
2320 # and are intended to be withdrawn in a future Autoconf release.
2321 # They can cause serious problems if a builder's source tree is in a directory
2322 # whose full name contains unusual characters.
2323 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2324 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2325 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2328 # Find a good install program. We prefer a C program (faster),
2329 # so one script is as good as another. But avoid the broken or
2330 # incompatible versions:
2331 # SysV /etc/install, /usr/sbin/install
2332 # SunOS /usr/etc/install
2333 # IRIX /sbin/install
2335 # AmigaOS /C/install, which installs bootblocks on floppy discs
2336 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2337 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2338 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2339 # OS/2's system install, which has a completely different semantic
2340 # ./install, which can be erroneously created by make from ./install.sh.
2341 # Reject install programs that cannot install multiple files.
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2343 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2344 if test -z "$INSTALL"; then
2345 if ${ac_cv_path_install+:} false; then :
2346 $as_echo_n "(cached) " >&6
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 test -z "$as_dir" && as_dir=.
2353 # Account for people who put trailing slashes in PATH elements.
2354 case $as_dir/ in #((
2355 ./ | .// | /[cC]/* | \
2356 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2357 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2360 # OSF1 and SCO ODT 3.0 have their own names for install.
2361 # Don't use installbsd from OSF since it installs stuff as root
2363 for ac_prog in ginstall scoinst install; do
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2366 if test $ac_prog = install &&
2367 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2368 # AIX install. It has an incompatible calling convention.
2370 elif test $ac_prog = install &&
2371 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2372 # program-specific install script used by HP pwplus--don't use.
2375 rm -rf conftest.one conftest.two conftest.dir
2376 echo one > conftest.one
2377 echo two > conftest.two
2379 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2380 test -s conftest.one && test -s conftest.two &&
2381 test -s conftest.dir/conftest.one &&
2382 test -s conftest.dir/conftest.two
2384 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2397 rm -rf conftest.one conftest.two conftest.dir
2400 if test "${ac_cv_path_install+set}" = set; then
2401 INSTALL=$ac_cv_path_install
2403 # As a last resort, use the slow shell script. Don't cache a
2404 # value for INSTALL within a source directory, because that will
2405 # break other packages using the cache if that directory is
2406 # removed, or if the value is a relative name.
2407 INSTALL=$ac_install_sh
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2411 $as_echo "$INSTALL" >&6; }
2413 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2414 # It thinks the first close brace ends the variable substitution.
2415 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2417 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2419 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2422 $as_echo_n "checking whether build environment is sane... " >&6; }
2423 # Reject unsafe characters in $srcdir or the absolute working directory
2424 # name. Accept space and tab only in the latter.
2428 *[\\\"\#\$\&\'\`$am_lf]*)
2429 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2432 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2433 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2436 # Do 'set' in a subshell so we don't clobber the current shell's
2437 # arguments. Must try -L first in case configure is actually a
2438 # symlink; some systems play weird games with the mod time of symlinks
2439 # (eg FreeBSD returns the mod time of the symlink's containing
2443 for am_try in 1 2; do
2444 echo "timestamp, slept: $am_has_slept" > conftest.file
2445 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2446 if test "$*" = "X"; then
2448 set X `ls -t "$srcdir/configure" conftest.file`
2450 if test "$*" != "X $srcdir/configure conftest.file" \
2451 && test "$*" != "X conftest.file $srcdir/configure"; then
2453 # If neither matched, then we have a broken ls. This can happen
2454 # if, for instance, CONFIG_SHELL is bash and it inherits a
2455 # broken ls alias from the environment. This has actually
2456 # happened. Such a system could not be considered "sane".
2457 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2458 alias in your environment" "$LINENO" 5
2460 if test "$2" = conftest.file || test $am_try -eq 2; then
2467 test "$2" = conftest.file
2473 as_fn_error $? "newly created file is older than distributed files!
2474 Check your system clock" "$LINENO" 5
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2477 $as_echo "yes" >&6; }
2478 # If we didn't sleep, we still need to ensure time stamps of config.status and
2479 # generated files are strictly newer.
2481 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2488 test "$program_prefix" != NONE &&
2489 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2490 # Use a double $ so make ignores it.
2491 test "$program_suffix" != NONE &&
2492 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2493 # Double any \ or $.
2494 # By default was `s,x,x', remove it if useless.
2495 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2496 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2498 # expand $ac_aux_dir to an absolute path
2499 am_aux_dir=`cd $ac_aux_dir && pwd`
2501 if test x"${MISSING+set}" != xset; then
2504 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2506 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2509 # Use eval to expand $SHELL
2510 if eval "$MISSING --is-lightweight"; then
2511 am_missing_run="$MISSING "
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2515 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2518 if test x"${install_sh}" != xset; then
2521 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2523 install_sh="\${SHELL} $am_aux_dir/install-sh"
2527 # Installed binaries are usually stripped using 'strip' when the user
2528 # run "make install-strip". However 'strip' might not be the right
2529 # tool to use in cross-compilation environments, therefore Automake
2530 # will honor the 'STRIP' environment variable to overrule this program.
2531 if test "$cross_compiling" != no; then
2532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}strip; ac_word=$2
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2536 $as_echo_n "checking for $ac_word... " >&6; }
2537 if ${ac_cv_prog_STRIP+:} false; then :
2538 $as_echo_n "(cached) " >&6
2540 if test -n "$STRIP"; then
2541 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2550 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 STRIP=$ac_cv_prog_STRIP
2561 if test -n "$STRIP"; then
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2563 $as_echo "$STRIP" >&6; }
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2566 $as_echo "no" >&6; }
2571 if test -z "$ac_cv_prog_STRIP"; then
2573 # Extract the first word of "strip", so it can be a program name with args.
2574 set dummy strip; ac_word=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2578 $as_echo_n "(cached) " >&6
2580 if test -n "$ac_ct_STRIP"; then
2581 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2590 ac_cv_prog_ac_ct_STRIP="strip"
2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2601 if test -n "$ac_ct_STRIP"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2603 $as_echo "$ac_ct_STRIP" >&6; }
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2609 if test "x$ac_ct_STRIP" = x; then
2612 case $cross_compiling:$ac_tool_warned in
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2616 ac_tool_warned=yes ;;
2621 STRIP="$ac_cv_prog_STRIP"
2625 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2628 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2629 if test -z "$MKDIR_P"; then
2630 if ${ac_cv_path_mkdir+:} false; then :
2631 $as_echo_n "(cached) " >&6
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2637 test -z "$as_dir" && as_dir=.
2638 for ac_prog in mkdir gmkdir; do
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2641 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2642 'mkdir (GNU coreutils) '* | \
2643 'mkdir (coreutils) '* | \
2644 'mkdir (fileutils) '4.1*)
2645 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2655 test -d ./--version && rmdir ./--version
2656 if test "${ac_cv_path_mkdir+set}" = set; then
2657 MKDIR_P="$ac_cv_path_mkdir -p"
2659 # As a last resort, use the slow shell script. Don't cache a
2660 # value for MKDIR_P within a source directory, because that will
2661 # break other packages using the cache if that directory is
2662 # removed, or if the value is a relative name.
2663 MKDIR_P="$ac_install_sh -d"
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2667 $as_echo "$MKDIR_P" >&6; }
2669 for ac_prog in gawk mawk nawk awk
2671 # Extract the first word of "$ac_prog", so it can be a program name with args.
2672 set dummy $ac_prog; ac_word=$2
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 $as_echo_n "checking for $ac_word... " >&6; }
2675 if ${ac_cv_prog_AWK+:} false; then :
2676 $as_echo_n "(cached) " >&6
2678 if test -n "$AWK"; then
2679 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688 ac_cv_prog_AWK="$ac_prog"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 if test -n "$AWK"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2701 $as_echo "$AWK" >&6; }
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704 $as_echo "no" >&6; }
2708 test -n "$AWK" && break
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2712 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2714 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2715 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2716 $as_echo_n "(cached) " >&6
2718 cat >conftest.make <<\_ACEOF
2721 @echo '@@@%%%=$(MAKE)=@@@%%%'
2723 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2724 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2726 eval ac_cv_prog_make_${ac_make}_set=yes;;
2728 eval ac_cv_prog_make_${ac_make}_set=no;;
2732 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2734 $as_echo "yes" >&6; }
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2739 SET_MAKE="MAKE=${MAKE-make}"
2742 rm -rf .tst 2>/dev/null
2743 mkdir .tst 2>/dev/null
2744 if test -d .tst; then
2749 rmdir .tst 2>/dev/null
2751 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2752 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2753 # is not polluted with repeated "-I."
2754 am__isrc=' -I$(srcdir)'
2755 # test to see if srcdir already configured
2756 if test -f $srcdir/config.status; then
2757 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2761 # test whether we have cygpath
2762 if test -z "$CYGPATH_W"; then
2763 if (cygpath --version) >/dev/null 2>/dev/null; then
2764 CYGPATH_W='cygpath -w'
2771 # Define the identity of the package.
2776 cat >>confdefs.h <<_ACEOF
2777 #define PACKAGE "$PACKAGE"
2781 cat >>confdefs.h <<_ACEOF
2782 #define VERSION "$VERSION"
2785 # Some tools Automake needs.
2787 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2790 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2793 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2796 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2799 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2801 # For better backward compatibility. To be removed once Automake 1.9.x
2802 # dies out for good. For more background, see:
2803 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2804 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2805 mkdir_p='$(MKDIR_P)'
2807 # We need awk for the "check" target. The system "awk" is bad on
2809 # Always define AMTAR for backward compatibility. Yes, it's still used
2810 # in the wild :-( We should find a proper way to deprecate it ...
2814 # We'll loop over all known methods to create a tar archive until one works.
2815 _am_tools='gnutar pax cpio none'
2817 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2824 # POSIX will say in a future version that running "rm -f" with no argument
2825 # is OK; and we want to be able to make that assumption in our Makefile
2826 # recipes. So use an aggressive probe to check that the usage we want is
2827 # actually supported "in the wild" to an acceptable degree.
2828 # See automake bug#10828.
2829 # To make any issue more visible, cause the running configure to be aborted
2830 # by default if the 'rm' program in use doesn't match our expectations; the
2831 # user can still override this though.
2832 if rm -f && rm -fr && rm -rf; then : OK; else
2836 Your 'rm' program seems unable to run without file operands specified
2837 on the command line, even when the '-f' option is present. This is contrary
2838 to the behaviour of most rm programs out there, and not conforming with
2839 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2841 Please tell bug-automake@gnu.org about your system, including the value
2842 of your $PATH and any error possibly output before this message. This
2843 can help us improve future automake versions.
2846 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2847 echo 'Configuration will proceed anyway, since you have set the' >&2
2848 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2852 Aborting the configuration process, to ensure you take notice of the issue.
2854 You can download and install GNU coreutils to get an 'rm' implementation
2855 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2857 If you want to complete the configuration process using your problematic
2858 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2859 to "yes", and re-run configure.
2862 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2866 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2868 # Make sure we can run config.sub.
2869 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2870 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2873 $as_echo_n "checking build system type... " >&6; }
2874 if ${ac_cv_build+:} false; then :
2875 $as_echo_n "(cached) " >&6
2877 ac_build_alias=$build_alias
2878 test "x$ac_build_alias" = x &&
2879 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2880 test "x$ac_build_alias" = x &&
2881 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2882 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2883 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2887 $as_echo "$ac_cv_build" >&6; }
2888 case $ac_cv_build in
2890 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2893 ac_save_IFS=$IFS; IFS='-'
2899 # Remember, the first character of IFS is used to create $*,
2900 # except with old shells:
2903 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2907 $as_echo_n "checking host system type... " >&6; }
2908 if ${ac_cv_host+:} false; then :
2909 $as_echo_n "(cached) " >&6
2911 if test "x$host_alias" = x; then
2912 ac_cv_host=$ac_cv_build
2914 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2915 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2920 $as_echo "$ac_cv_host" >&6; }
2923 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2926 ac_save_IFS=$IFS; IFS='-'
2932 # Remember, the first character of IFS is used to create $*,
2933 # except with old shells:
2936 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build time linking with Python (Darwin and Win32)" >&5
2940 $as_echo_n "checking for build time linking with Python (Darwin and Win32)... " >&6; }
2942 *-*-mingw*|*-*-cygwin*)
2944 link_python_libs=yes
2949 link_python_libs=yes
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $link_python_libs" >&5
2959 $as_echo "$link_python_libs" >&6; }
2960 if test "$os_win32" = "yes"; then
2971 cat >>confdefs.h <<_ACEOF
2972 #define OS_EXT "$OS_EXT"
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2980 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2985 macro_version='2.4.2'
2986 macro_revision='1.3337'
3000 ltmain="$ac_aux_dir/ltmain.sh"
3002 # Backslashify metacharacters that are still active within
3003 # double-quoted strings.
3004 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3006 # Same as above, but do not quote variable references.
3007 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3009 # Sed substitution to delay expansion of an escaped shell variable in a
3010 # double_quote_subst'ed string.
3011 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3013 # Sed substitution to delay expansion of an escaped single quote.
3014 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3016 # Sed substitution to avoid accidental globbing in evaled expressions
3017 no_glob_subst='s/\*/\\\*/g'
3019 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3020 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3021 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3024 $as_echo_n "checking how to print strings... " >&6; }
3025 # Test print first, because it will be a builtin if present.
3026 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3027 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3029 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3032 # Use this function as a fallback that always works.
3033 func_fallback_echo ()
3035 eval 'cat <<_LTECHO_EOF
3039 ECHO='func_fallback_echo'
3042 # func_echo_all arg...
3043 # Invoke $ECHO with all args, space-separated.
3050 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3051 $as_echo "printf" >&6; } ;;
3052 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3053 $as_echo "print -r" >&6; } ;;
3054 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3055 $as_echo "cat" >&6; } ;;
3071 DEPDIR="${am__leading_dot}deps"
3073 ac_config_commands="$ac_config_commands depfiles"
3076 am_make=${MAKE-make}
3077 cat > confinc << 'END'
3079 @echo this is the am__doit target
3082 # If we don't find an include directive, just comment out the code.
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3084 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3088 # First try GNU make style include.
3089 echo "include confinc" > confmf
3090 # Ignore all kinds of additional output from 'make'.
3091 case `$am_make -s -f confmf 2> /dev/null` in #(
3092 *the\ am__doit\ target*)
3098 # Now try BSD make style include.
3099 if test "$am__include" = "#"; then
3100 echo '.include "confinc"' > confmf
3101 case `$am_make -s -f confmf 2> /dev/null` in #(
3102 *the\ am__doit\ target*)
3103 am__include=.include
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3112 $as_echo "$_am_result" >&6; }
3113 rm -f confinc confmf
3115 # Check whether --enable-dependency-tracking was given.
3116 if test "${enable_dependency_tracking+set}" = set; then :
3117 enableval=$enable_dependency_tracking;
3120 if test "x$enable_dependency_tracking" != xno; then
3121 am_depcomp="$ac_aux_dir/depcomp"
3125 if test "x$enable_dependency_tracking" != xno; then
3135 ac_cpp='$CPP $CPPFLAGS'
3136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3139 if test -n "$ac_tool_prefix"; then
3140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3141 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if ${ac_cv_prog_CC+:} false; then :
3145 $as_echo_n "(cached) " >&6
3147 if test -n "$CC"; then
3148 ac_cv_prog_CC="$CC" # Let the user override the test.
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 if test -n "$CC"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3170 $as_echo "$CC" >&6; }
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3178 if test -z "$ac_cv_prog_CC"; then
3180 # Extract the first word of "gcc", so it can be a program name with args.
3181 set dummy gcc; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3185 $as_echo_n "(cached) " >&6
3187 if test -n "$ac_ct_CC"; then
3188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_ac_ct_CC="gcc"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3208 if test -n "$ac_ct_CC"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3210 $as_echo "$ac_ct_CC" >&6; }
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3216 if test "x$ac_ct_CC" = x; then
3219 case $cross_compiling:$ac_tool_warned in
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223 ac_tool_warned=yes ;;
3231 if test -z "$CC"; then
3232 if test -n "$ac_tool_prefix"; then
3233 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3234 set dummy ${ac_tool_prefix}cc; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_CC+:} false; then :
3238 $as_echo_n "(cached) " >&6
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250 ac_cv_prog_CC="${ac_tool_prefix}cc"
3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 if test -n "$CC"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263 $as_echo "$CC" >&6; }
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3272 if test -z "$CC"; then
3273 # Extract the first word of "cc", so it can be a program name with args.
3274 set dummy cc; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_CC+:} false; then :
3278 $as_echo_n "(cached) " >&6
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3292 ac_prog_rejected=yes
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 if test $ac_prog_rejected = yes; then
3304 # We found a bogon in the path, so make sure we never use it.
3305 set dummy $ac_cv_prog_CC
3307 if test $# != 0; then
3308 # We chose a different compiler from the bogus one.
3309 # However, it has the same basename, so the bogon will be chosen
3310 # first if we set CC to just the basename; use the full file name.
3312 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3318 if test -n "$CC"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3320 $as_echo "$CC" >&6; }
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3328 if test -z "$CC"; then
3329 if test -n "$ac_tool_prefix"; then
3330 for ac_prog in cl.exe
3332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335 $as_echo_n "checking for $ac_word... " >&6; }
3336 if ${ac_cv_prog_CC+:} false; then :
3337 $as_echo_n "(cached) " >&6
3339 if test -n "$CC"; then
3340 ac_cv_prog_CC="$CC" # Let the user override the test.
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 if test -n "$CC"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3362 $as_echo "$CC" >&6; }
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3369 test -n "$CC" && break
3372 if test -z "$CC"; then
3374 for ac_prog in cl.exe
3376 # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy $ac_prog; ac_word=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3381 $as_echo_n "(cached) " >&6
3383 if test -n "$ac_ct_CC"; then
3384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 ac_cv_prog_ac_ct_CC="$ac_prog"
3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3404 if test -n "$ac_ct_CC"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3406 $as_echo "$ac_ct_CC" >&6; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3413 test -n "$ac_ct_CC" && break
3416 if test "x$ac_ct_CC" = x; then
3419 case $cross_compiling:$ac_tool_warned in
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3423 ac_tool_warned=yes ;;
3432 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434 as_fn_error $? "no acceptable C compiler found in \$PATH
3435 See \`config.log' for more details" "$LINENO" 5; }
3437 # Provide some information about the compiler.
3438 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3441 for ac_option in --version -v -V -qversion; do
3442 { { ac_try="$ac_compiler $ac_option >&5"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3451 if test -s conftest.err; then
3453 ... rest of stderr output deleted ...
3454 10q' conftest.err >conftest.er1
3455 cat conftest.er1 >&5
3457 rm -f conftest.er1 conftest.err
3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3473 ac_clean_files_save=$ac_clean_files
3474 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3475 # Try to create an executable without -o first, disregard a.out.
3476 # It will help us diagnose broken compilers, and finding out an intuition
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3479 $as_echo_n "checking whether the C compiler works... " >&6; }
3480 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3482 # The possible output files:
3483 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3486 for ac_file in $ac_files
3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3490 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3495 if { { ac_try="$ac_link_default"
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501 $as_echo "$ac_try_echo"; } >&5
3502 (eval "$ac_link_default") 2>&5
3504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505 test $ac_status = 0; }; then :
3506 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3507 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3508 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3509 # so that the user can short-circuit this test for compilers unknown to
3511 for ac_file in $ac_files ''
3513 test -f "$ac_file" || continue
3515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3518 # We found the default executable, but exeext='' is most
3522 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3524 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3526 # We set ac_cv_exeext here because the later test for it is not
3527 # safe: cross compilers may not add the suffix if given an `-o'
3528 # argument, so we may need to know it at that point already.
3529 # Even if this section looks crufty: it has the advantage of
3536 test "$ac_cv_exeext" = no && ac_cv_exeext=
3541 if test -z "$ac_file"; then :
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3544 $as_echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3549 as_fn_error 77 "C compiler cannot create executables
3550 See \`config.log' for more details" "$LINENO" 5; }
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3553 $as_echo "yes" >&6; }
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3556 $as_echo_n "checking for C compiler default output file name... " >&6; }
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3558 $as_echo "$ac_file" >&6; }
3559 ac_exeext=$ac_cv_exeext
3561 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3562 ac_clean_files=$ac_clean_files_save
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3564 $as_echo_n "checking for suffix of executables... " >&6; }
3565 if { { ac_try="$ac_link"
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571 $as_echo "$ac_try_echo"; } >&5
3572 (eval "$ac_link") 2>&5
3574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575 test $ac_status = 0; }; then :
3576 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3577 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3578 # work properly (i.e., refer to `conftest.exe'), while it won't with
3580 for ac_file in conftest.exe conftest conftest.*; do
3581 test -f "$ac_file" || continue
3583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3584 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3593 See \`config.log' for more details" "$LINENO" 5; }
3595 rm -f conftest conftest$ac_cv_exeext
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3597 $as_echo "$ac_cv_exeext" >&6; }
3599 rm -f conftest.$ac_ext
3600 EXEEXT=$ac_cv_exeext
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3608 FILE *f = fopen ("conftest.out", "w");
3609 return ferror (f) || fclose (f) != 0;
3615 ac_clean_files="$ac_clean_files conftest.out"
3616 # Check that the compiler produces executables we can run. If not, either
3617 # the compiler is broken, or we cross compile.
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3619 $as_echo_n "checking whether we are cross compiling... " >&6; }
3620 if test "$cross_compiling" != yes; then
3621 { { ac_try="$ac_link"
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3627 $as_echo "$ac_try_echo"; } >&5
3628 (eval "$ac_link") 2>&5
3630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3631 test $ac_status = 0; }
3632 if { ac_try='./conftest$ac_cv_exeext'
3633 { { case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638 $as_echo "$ac_try_echo"; } >&5
3639 (eval "$ac_try") 2>&5
3641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642 test $ac_status = 0; }; }; then
3645 if test "$cross_compiling" = maybe; then
3648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3650 as_fn_error $? "cannot run C compiled programs.
3651 If you meant to cross compile, use \`--host'.
3652 See \`config.log' for more details" "$LINENO" 5; }
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3657 $as_echo "$cross_compiling" >&6; }
3659 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3660 ac_clean_files=$ac_clean_files_save
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3662 $as_echo_n "checking for suffix of object files... " >&6; }
3663 if ${ac_cv_objext+:} false; then :
3664 $as_echo_n "(cached) " >&6
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3677 rm -f conftest.o conftest.obj
3678 if { { ac_try="$ac_compile"
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3684 $as_echo "$ac_try_echo"; } >&5
3685 (eval "$ac_compile") 2>&5
3687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3688 test $ac_status = 0; }; then :
3689 for ac_file in conftest.o conftest.obj conftest.*; do
3690 test -f "$ac_file" || continue;
3692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3693 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3698 $as_echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3703 as_fn_error $? "cannot compute suffix of object files: cannot compile
3704 See \`config.log' for more details" "$LINENO" 5; }
3706 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3709 $as_echo "$ac_cv_objext" >&6; }
3710 OBJEXT=$ac_cv_objext
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3713 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3714 if ${ac_cv_c_compiler_gnu+:} false; then :
3715 $as_echo_n "(cached) " >&6
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3731 if ac_fn_c_try_compile "$LINENO"; then :
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3741 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3742 if test $ac_compiler_gnu = yes; then
3747 ac_test_CFLAGS=${CFLAGS+set}
3748 ac_save_CFLAGS=$CFLAGS
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3750 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3751 if ${ac_cv_prog_cc_g+:} false; then :
3752 $as_echo_n "(cached) " >&6
3754 ac_save_c_werror_flag=$ac_c_werror_flag
3755 ac_c_werror_flag=yes
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3769 if ac_fn_c_try_compile "$LINENO"; then :
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3784 if ac_fn_c_try_compile "$LINENO"; then :
3787 ac_c_werror_flag=$ac_save_c_werror_flag
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3800 if ac_fn_c_try_compile "$LINENO"; then :
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 ac_c_werror_flag=$ac_save_c_werror_flag
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3811 $as_echo "$ac_cv_prog_cc_g" >&6; }
3812 if test "$ac_test_CFLAGS" = set; then
3813 CFLAGS=$ac_save_CFLAGS
3814 elif test $ac_cv_prog_cc_g = yes; then
3815 if test "$GCC" = yes; then
3821 if test "$GCC" = yes; then
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3828 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3829 if ${ac_cv_prog_cc_c89+:} false; then :
3830 $as_echo_n "(cached) " >&6
3832 ac_cv_prog_cc_c89=no
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3840 struct buf { int x; };
3841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3842 static char *e (p, i)
3848 static char *f (char * (*g) (char **, int), char **p, ...)
3853 s = g (p, va_arg (v,int));
3858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3859 function prototypes and stuff, but not '\xHH' hex character constants.
3860 These don't provoke an error unfortunately, instead are silently treated
3861 as 'x'. The following induces an error, until -std is added to get
3862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3863 array size at least. It's necessary to write '\x00'==0 to get something
3864 that's true only with -std. */
3865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3867 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3868 inside strings and character constants. */
3870 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3872 int test (int i, double x);
3873 struct s1 {int (*f) (int a);};
3874 struct s2 {int (*f) (double a);};
3875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3886 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3889 CC="$ac_save_CC $ac_arg"
3890 if ac_fn_c_try_compile "$LINENO"; then :
3891 ac_cv_prog_cc_c89=$ac_arg
3893 rm -f core conftest.err conftest.$ac_objext
3894 test "x$ac_cv_prog_cc_c89" != "xno" && break
3896 rm -f conftest.$ac_ext
3901 case "x$ac_cv_prog_cc_c89" in
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3904 $as_echo "none needed" >&6; } ;;
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3907 $as_echo "unsupported" >&6; } ;;
3909 CC="$CC $ac_cv_prog_cc_c89"
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3911 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3913 if test "x$ac_cv_prog_cc_c89" != xno; then :
3918 ac_cpp='$CPP $CPPFLAGS'
3919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3924 ac_cpp='$CPP $CPPFLAGS'
3925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3929 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3930 if ${am_cv_prog_cc_c_o+:} false; then :
3931 $as_echo_n "(cached) " >&6
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3944 # Make sure it works both with $CC and with simple cc.
3945 # Following AC_PROG_CC_C_O, we do the test twice because some
3946 # compilers refuse to overwrite an existing .o file with -o,
3947 # though they will create one.
3948 am_cv_prog_cc_c_o=yes
3950 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3951 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); } \
3955 && test -f conftest2.$ac_objext; then
3958 am_cv_prog_cc_c_o=no
3962 rm -f core conftest*
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3966 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3967 if test "$am_cv_prog_cc_c_o" != yes; then
3968 # Losing compiler, so override with the script.
3969 # FIXME: It is wrong to rewrite CC.
3970 # But if we don't then we get into trouble of one sort or another.
3971 # A longer-term fix would be to have automake use am__CC in this case,
3972 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3973 CC="$am_aux_dir/compile $CC"
3976 ac_cpp='$CPP $CPPFLAGS'
3977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3982 depcc="$CC" am_compiler_list=
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3985 $as_echo_n "checking dependency style of $depcc... " >&6; }
3986 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3987 $as_echo_n "(cached) " >&6
3989 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3990 # We make a subdir and do the tests there. Otherwise we can end up
3991 # making bogus files that we don't know about and never remove. For
3992 # instance it was reported that on HP-UX the gcc test will end up
3993 # making a dummy file named 'D' -- because '-MD' means "put the output
3997 # Copy depcomp to subdir because otherwise we won't find it if we're
3998 # using a relative directory.
3999 cp "$am_depcomp" conftest.dir
4001 # We will build objects and dependencies in a subdirectory because
4002 # it helps to detect inapplicable dependency modes. For instance
4003 # both Tru64's cc and ICC support -MD to output dependencies as a
4004 # side effect of compilation, but ICC will put the dependencies in
4005 # the current directory while Tru64 will put them in the object
4009 am_cv_CC_dependencies_compiler_type=none
4010 if test "$am_compiler_list" = ""; then
4011 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4014 case " $depcc " in #(
4015 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4018 for depmode in $am_compiler_list; do
4019 # Setup a source with many dependencies, because some compilers
4020 # like to wrap large dependency lists on column 80 (with \), and
4021 # we should not choose a depcomp mode which is confused by this.
4023 # We need to recreate these files for each test, as the compiler may
4024 # overwrite some of them when testing with obscure command lines.
4025 # This happens at least with the AIX C compiler.
4027 for i in 1 2 3 4 5 6; do
4028 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4029 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4030 # Solaris 10 /bin/sh.
4031 echo '/* dummy */' > sub/conftst$i.h
4033 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4035 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4036 # mode. It turns out that the SunPro C++ compiler does not properly
4037 # handle '-M -o', and we need to detect this. Also, some Intel
4038 # versions had trouble with output in subdirs.
4039 am__obj=sub/conftest.${OBJEXT-o}
4040 am__minus_obj="-o $am__obj"
4043 # This depmode causes a compiler race in universal mode.
4044 test "$am__universal" = false || continue
4047 # After this tag, mechanisms are not by side-effect, so they'll
4048 # only be used when explicitly requested.
4049 if test "x$enable_dependency_tracking" = xyes; then
4055 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4056 # This compiler won't grok '-c -o', but also, the minuso test has
4057 # not run yet. These depmodes are late enough in the game, and
4058 # so weak that their functioning should not be impacted.
4059 am__obj=conftest.${OBJEXT-o}
4064 if depmode=$depmode \
4065 source=sub/conftest.c object=$am__obj \
4066 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4067 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4068 >/dev/null 2>conftest.err &&
4069 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4070 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4071 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4072 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4073 # icc doesn't choke on unknown options, it will just issue warnings
4074 # or remarks (even with -Werror). So we grep stderr for any message
4075 # that says an option was ignored or not supported.
4076 # When given -MP, icc 7.0 and 7.1 complain thusly:
4077 # icc: Command line warning: ignoring option '-M'; no argument required
4078 # The diagnosis changed in icc 8.0:
4079 # icc: Command line remark: option '-MP' not supported
4080 if (grep 'ignoring option' conftest.err ||
4081 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4082 am_cv_CC_dependencies_compiler_type=$depmode
4091 am_cv_CC_dependencies_compiler_type=none
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4096 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4097 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4100 test "x$enable_dependency_tracking" != xno \
4101 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4103 am__fastdepCC_FALSE='#'
4105 am__fastdepCC_TRUE='#'
4106 am__fastdepCC_FALSE=
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4111 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4112 if ${ac_cv_path_SED+:} false; then :
4113 $as_echo_n "(cached) " >&6
4115 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4116 for ac_i in 1 2 3 4 5 6 7; do
4117 ac_script="$ac_script$as_nl$ac_script"
4119 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4120 { ac_script=; unset ac_script;}
4121 if test -z "$SED"; then
4122 ac_path_SED_found=false
4123 # Loop through the user's path and test for each of PROGNAME-LIST
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 test -z "$as_dir" && as_dir=.
4129 for ac_prog in sed gsed; do
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4132 as_fn_executable_p "$ac_path_SED" || continue
4133 # Check for GNU ac_path_SED and select it if it is found.
4134 # Check for GNU $ac_path_SED
4135 case `"$ac_path_SED" --version 2>&1` in
4137 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4140 $as_echo_n 0123456789 >"conftest.in"
4143 cat "conftest.in" "conftest.in" >"conftest.tmp"
4144 mv "conftest.tmp" "conftest.in"
4145 cp "conftest.in" "conftest.nl"
4146 $as_echo '' >> "conftest.nl"
4147 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4148 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4149 as_fn_arith $ac_count + 1 && ac_count=$as_val
4150 if test $ac_count -gt ${ac_path_SED_max-0}; then
4151 # Best one so far, save it but keep looking for a better one
4152 ac_cv_path_SED="$ac_path_SED"
4153 ac_path_SED_max=$ac_count
4155 # 10*(2^10) chars as input seems more than enough
4156 test $ac_count -gt 10 && break
4158 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4161 $ac_path_SED_found && break 3
4166 if test -z "$ac_cv_path_SED"; then
4167 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4175 $as_echo "$ac_cv_path_SED" >&6; }
4176 SED="$ac_cv_path_SED"
4179 test -z "$SED" && SED=sed
4180 Xsed="$SED -e 1s/^X//"
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4193 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4194 if ${ac_cv_path_GREP+:} false; then :
4195 $as_echo_n "(cached) " >&6
4197 if test -z "$GREP"; then
4198 ac_path_GREP_found=false
4199 # Loop through the user's path and test for each of PROGNAME-LIST
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4204 test -z "$as_dir" && as_dir=.
4205 for ac_prog in grep ggrep; do
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4208 as_fn_executable_p "$ac_path_GREP" || continue
4209 # Check for GNU ac_path_GREP and select it if it is found.
4210 # Check for GNU $ac_path_GREP
4211 case `"$ac_path_GREP" --version 2>&1` in
4213 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4216 $as_echo_n 0123456789 >"conftest.in"
4219 cat "conftest.in" "conftest.in" >"conftest.tmp"
4220 mv "conftest.tmp" "conftest.in"
4221 cp "conftest.in" "conftest.nl"
4222 $as_echo 'GREP' >> "conftest.nl"
4223 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4225 as_fn_arith $ac_count + 1 && ac_count=$as_val
4226 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4227 # Best one so far, save it but keep looking for a better one
4228 ac_cv_path_GREP="$ac_path_GREP"
4229 ac_path_GREP_max=$ac_count
4231 # 10*(2^10) chars as input seems more than enough
4232 test $ac_count -gt 10 && break
4234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4237 $ac_path_GREP_found && break 3
4242 if test -z "$ac_cv_path_GREP"; then
4243 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4246 ac_cv_path_GREP=$GREP
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4251 $as_echo "$ac_cv_path_GREP" >&6; }
4252 GREP="$ac_cv_path_GREP"
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4256 $as_echo_n "checking for egrep... " >&6; }
4257 if ${ac_cv_path_EGREP+:} false; then :
4258 $as_echo_n "(cached) " >&6
4260 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4261 then ac_cv_path_EGREP="$GREP -E"
4263 if test -z "$EGREP"; then
4264 ac_path_EGREP_found=false
4265 # Loop through the user's path and test for each of PROGNAME-LIST
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4270 test -z "$as_dir" && as_dir=.
4271 for ac_prog in egrep; do
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4274 as_fn_executable_p "$ac_path_EGREP" || continue
4275 # Check for GNU ac_path_EGREP and select it if it is found.
4276 # Check for GNU $ac_path_EGREP
4277 case `"$ac_path_EGREP" --version 2>&1` in
4279 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4282 $as_echo_n 0123456789 >"conftest.in"
4285 cat "conftest.in" "conftest.in" >"conftest.tmp"
4286 mv "conftest.tmp" "conftest.in"
4287 cp "conftest.in" "conftest.nl"
4288 $as_echo 'EGREP' >> "conftest.nl"
4289 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4291 as_fn_arith $ac_count + 1 && ac_count=$as_val
4292 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4293 # Best one so far, save it but keep looking for a better one
4294 ac_cv_path_EGREP="$ac_path_EGREP"
4295 ac_path_EGREP_max=$ac_count
4297 # 10*(2^10) chars as input seems more than enough
4298 test $ac_count -gt 10 && break
4300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4303 $ac_path_EGREP_found && break 3
4308 if test -z "$ac_cv_path_EGREP"; then
4309 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4312 ac_cv_path_EGREP=$EGREP
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4318 $as_echo "$ac_cv_path_EGREP" >&6; }
4319 EGREP="$ac_cv_path_EGREP"
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4323 $as_echo_n "checking for fgrep... " >&6; }
4324 if ${ac_cv_path_FGREP+:} false; then :
4325 $as_echo_n "(cached) " >&6
4327 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4328 then ac_cv_path_FGREP="$GREP -F"
4330 if test -z "$FGREP"; then
4331 ac_path_FGREP_found=false
4332 # Loop through the user's path and test for each of PROGNAME-LIST
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4337 test -z "$as_dir" && as_dir=.
4338 for ac_prog in fgrep; do
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4341 as_fn_executable_p "$ac_path_FGREP" || continue
4342 # Check for GNU ac_path_FGREP and select it if it is found.
4343 # Check for GNU $ac_path_FGREP
4344 case `"$ac_path_FGREP" --version 2>&1` in
4346 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4349 $as_echo_n 0123456789 >"conftest.in"
4352 cat "conftest.in" "conftest.in" >"conftest.tmp"
4353 mv "conftest.tmp" "conftest.in"
4354 cp "conftest.in" "conftest.nl"
4355 $as_echo 'FGREP' >> "conftest.nl"
4356 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4357 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4358 as_fn_arith $ac_count + 1 && ac_count=$as_val
4359 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4360 # Best one so far, save it but keep looking for a better one
4361 ac_cv_path_FGREP="$ac_path_FGREP"
4362 ac_path_FGREP_max=$ac_count
4364 # 10*(2^10) chars as input seems more than enough
4365 test $ac_count -gt 10 && break
4367 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4370 $ac_path_FGREP_found && break 3
4375 if test -z "$ac_cv_path_FGREP"; then
4376 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4379 ac_cv_path_FGREP=$FGREP
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4385 $as_echo "$ac_cv_path_FGREP" >&6; }
4386 FGREP="$ac_cv_path_FGREP"
4389 test -z "$GREP" && GREP=grep
4409 # Check whether --with-gnu-ld was given.
4410 if test "${with_gnu_ld+set}" = set; then :
4411 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4417 if test "$GCC" = yes; then
4418 # Check if gcc -print-prog-name=ld gives a path.
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4420 $as_echo_n "checking for ld used by $CC... " >&6; }
4423 # gcc leaves a trailing carriage return which upsets mingw
4424 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4426 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4429 # Accept absolute paths.
4431 re_direlt='/[^/][^/]*/\.\./'
4432 # Canonicalize the pathname of ld
4433 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4434 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4435 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4437 test -z "$LD" && LD="$ac_prog"
4440 # If it fails, then pretend we aren't using GCC.
4444 # If it is relative, then search for the first ld in PATH.
4448 elif test "$with_gnu_ld" = yes; then
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4450 $as_echo_n "checking for GNU ld... " >&6; }
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4453 $as_echo_n "checking for non-GNU ld... " >&6; }
4455 if ${lt_cv_path_LD+:} false; then :
4456 $as_echo_n "(cached) " >&6
4458 if test -z "$LD"; then
4459 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4460 for ac_dir in $PATH; do
4462 test -z "$ac_dir" && ac_dir=.
4463 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4464 lt_cv_path_LD="$ac_dir/$ac_prog"
4465 # Check to see if the program is GNU ld. I'd rather use --version,
4466 # but apparently some variants of GNU ld only accept -v.
4467 # Break only if it was the GNU/non-GNU ld that we prefer.
4468 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4469 *GNU* | *'with BFD'*)
4470 test "$with_gnu_ld" != no && break
4473 test "$with_gnu_ld" != yes && break
4480 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4485 if test -n "$LD"; then
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4487 $as_echo "$LD" >&6; }
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490 $as_echo "no" >&6; }
4492 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4494 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4495 if ${lt_cv_prog_gnu_ld+:} false; then :
4496 $as_echo_n "(cached) " >&6
4498 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4499 case `$LD -v 2>&1 </dev/null` in
4500 *GNU* | *'with BFD'*)
4501 lt_cv_prog_gnu_ld=yes
4504 lt_cv_prog_gnu_ld=no
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4509 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4510 with_gnu_ld=$lt_cv_prog_gnu_ld
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4521 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4522 if ${lt_cv_path_NM+:} false; then :
4523 $as_echo_n "(cached) " >&6
4525 if test -n "$NM"; then
4526 # Let the user override the test.
4529 lt_nm_to_check="${ac_tool_prefix}nm"
4530 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4531 lt_nm_to_check="$lt_nm_to_check nm"
4533 for lt_tmp_nm in $lt_nm_to_check; do
4534 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4535 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4537 test -z "$ac_dir" && ac_dir=.
4538 tmp_nm="$ac_dir/$lt_tmp_nm"
4539 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4540 # Check to see if the nm accepts a BSD-compat flag.
4541 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4542 # nm: unknown option "B" ignored
4543 # Tru64's nm complains that /dev/null is an invalid object file
4544 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4545 */dev/null* | *'Invalid file or object type'*)
4546 lt_cv_path_NM="$tmp_nm -B"
4550 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4552 lt_cv_path_NM="$tmp_nm -p"
4556 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4557 continue # so that we can try to find one that supports BSD flags
4566 : ${lt_cv_path_NM=no}
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4570 $as_echo "$lt_cv_path_NM" >&6; }
4571 if test "$lt_cv_path_NM" != "no"; then
4574 # Didn't find any BSD compatible name lister, look for dumpbin.
4575 if test -n "$DUMPBIN"; then :
4576 # Let the user override the test.
4578 if test -n "$ac_tool_prefix"; then
4579 for ac_prog in dumpbin "link -dump"
4581 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4584 $as_echo_n "checking for $ac_word... " >&6; }
4585 if ${ac_cv_prog_DUMPBIN+:} false; then :
4586 $as_echo_n "(cached) " >&6
4588 if test -n "$DUMPBIN"; then
4589 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4598 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 DUMPBIN=$ac_cv_prog_DUMPBIN
4609 if test -n "$DUMPBIN"; then
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4611 $as_echo "$DUMPBIN" >&6; }
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614 $as_echo "no" >&6; }
4618 test -n "$DUMPBIN" && break
4621 if test -z "$DUMPBIN"; then
4622 ac_ct_DUMPBIN=$DUMPBIN
4623 for ac_prog in dumpbin "link -dump"
4625 # Extract the first word of "$ac_prog", so it can be a program name with args.
4626 set dummy $ac_prog; ac_word=$2
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628 $as_echo_n "checking for $ac_word... " >&6; }
4629 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4630 $as_echo_n "(cached) " >&6
4632 if test -n "$ac_ct_DUMPBIN"; then
4633 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4653 if test -n "$ac_ct_DUMPBIN"; then
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4655 $as_echo "$ac_ct_DUMPBIN" >&6; }
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 $as_echo "no" >&6; }
4662 test -n "$ac_ct_DUMPBIN" && break
4665 if test "x$ac_ct_DUMPBIN" = x; then
4668 case $cross_compiling:$ac_tool_warned in
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4672 ac_tool_warned=yes ;;
4674 DUMPBIN=$ac_ct_DUMPBIN
4678 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4680 DUMPBIN="$DUMPBIN -symbols"
4688 if test "$DUMPBIN" != ":"; then
4692 test -z "$NM" && NM=nm
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4700 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4701 if ${lt_cv_nm_interface+:} false; then :
4702 $as_echo_n "(cached) " >&6
4704 lt_cv_nm_interface="BSD nm"
4705 echo "int some_variable = 0;" > conftest.$ac_ext
4706 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4707 (eval "$ac_compile" 2>conftest.err)
4708 cat conftest.err >&5
4709 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4710 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4711 cat conftest.err >&5
4712 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4713 cat conftest.out >&5
4714 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4715 lt_cv_nm_interface="MS dumpbin"
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4720 $as_echo "$lt_cv_nm_interface" >&6; }
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4723 $as_echo_n "checking whether ln -s works... " >&6; }
4725 if test "$LN_S" = "ln -s"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4727 $as_echo "yes" >&6; }
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4730 $as_echo "no, using $LN_S" >&6; }
4733 # find the maximum length of command line arguments
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4735 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4736 if ${lt_cv_sys_max_cmd_len+:} false; then :
4737 $as_echo_n "(cached) " >&6
4744 # On DJGPP, this test can blow up pretty badly due to problems in libc
4745 # (any single argument exceeding 2000 bytes causes a buffer overrun
4746 # during glob expansion). Even if it were fixed, the result of this
4747 # check would be larger than it should be.
4748 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4752 # Under GNU Hurd, this test is not required because there is
4753 # no limit to the length of command line arguments.
4754 # Libtool will interpret -1 as no limit whatsoever
4755 lt_cv_sys_max_cmd_len=-1;
4758 cygwin* | mingw* | cegcc*)
4759 # On Win9x/ME, this test blows up -- it succeeds, but takes
4760 # about 5 minutes as the teststring grows exponentially.
4761 # Worse, since 9x/ME are not pre-emptively multitasking,
4762 # you end up with a "frozen" computer, even though with patience
4763 # the test eventually succeeds (with a max line length of 256k).
4764 # Instead, let's just punt: use the minimum linelength reported by
4765 # all of the supported platforms: 8192 (on NT/2K/XP).
4766 lt_cv_sys_max_cmd_len=8192;
4770 # On MiNT this can take a long time and run out of memory.
4771 lt_cv_sys_max_cmd_len=8192;
4775 # On AmigaOS with pdksh, this test takes hours, literally.
4776 # So we just punt and use a minimum line length of 8192.
4777 lt_cv_sys_max_cmd_len=8192;
4780 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4781 # This has been around since 386BSD, at least. Likely further.
4782 if test -x /sbin/sysctl; then
4783 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4784 elif test -x /usr/sbin/sysctl; then
4785 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4787 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4789 # And add a safety zone
4790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4795 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4796 lt_cv_sys_max_cmd_len=196608
4800 # The test takes a long time on OS/2.
4801 lt_cv_sys_max_cmd_len=8192
4805 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4806 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4807 # nice to cause kernel panics so lets avoid the loop below.
4808 # First set a reasonable default.
4809 lt_cv_sys_max_cmd_len=16384
4811 if test -x /sbin/sysconfig; then
4812 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4813 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4818 lt_cv_sys_max_cmd_len=102400
4820 sysv5* | sco5v6* | sysv4.2uw2*)
4821 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4822 if test -n "$kargmax"; then
4823 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4825 lt_cv_sys_max_cmd_len=32768
4829 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4830 if test -n "$lt_cv_sys_max_cmd_len" && \
4831 test undefined != "$lt_cv_sys_max_cmd_len"; then
4832 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4833 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4835 # Make teststring a little bigger before we do anything with it.
4836 # a 1K string should be a reasonable start.
4837 for i in 1 2 3 4 5 6 7 8 ; do
4838 teststring=$teststring$teststring
4840 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4841 # If test is not a shell built-in, we'll probably end up computing a
4842 # maximum length that is only half of the actual maximum length, but
4844 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4845 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4846 test $i != 17 # 1/2 MB should be enough
4849 teststring=$teststring$teststring
4851 # Only check the string length outside the loop.
4852 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4854 # Add a significant safety factor because C++ compilers can tack on
4855 # massive amounts of additional arguments before passing them to the
4856 # linker. It appears as though 1/2 is a usable value.
4857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4864 if test -n $lt_cv_sys_max_cmd_len ; then
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4866 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4869 $as_echo "none" >&6; }
4871 max_cmd_len=$lt_cv_sys_max_cmd_len
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4883 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4884 # Try some XSI features
4887 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4889 && eval 'test $(( 1 + 1 )) -eq 2 \
4890 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4893 $as_echo "$xsi_shell" >&6; }
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4897 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4899 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4901 && lt_shell_append=yes
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4903 $as_echo "$lt_shell_append" >&6; }
4906 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4916 # test EBCDIC or ASCII
4917 case `echo X|tr X '\101'` in
4918 A) # ASCII based system
4919 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4920 lt_SP2NL='tr \040 \012'
4921 lt_NL2SP='tr \015\012 \040\040'
4923 *) # EBCDIC based system
4924 lt_SP2NL='tr \100 \n'
4925 lt_NL2SP='tr \r\n \100\100'
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4938 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4939 if ${lt_cv_to_host_file_cmd+:} false; then :
4940 $as_echo_n "(cached) " >&6
4945 *-*-mingw* ) # actually msys
4946 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4949 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4951 * ) # otherwise, assume *nix
4952 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4958 *-*-mingw* ) # actually msys
4959 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4962 lt_cv_to_host_file_cmd=func_convert_file_noop
4964 * ) # otherwise, assume *nix
4965 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4969 * ) # unhandled hosts (and "normal" native builds)
4970 lt_cv_to_host_file_cmd=func_convert_file_noop
4976 to_host_file_cmd=$lt_cv_to_host_file_cmd
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4978 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4985 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4986 if ${lt_cv_to_tool_file_cmd+:} false; then :
4987 $as_echo_n "(cached) " >&6
4989 #assume ordinary cross tools, or native build.
4990 lt_cv_to_tool_file_cmd=func_convert_file_noop
4994 *-*-mingw* ) # actually msys
4995 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5003 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5005 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5012 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5013 if ${lt_cv_ld_reload_flag+:} false; then :
5014 $as_echo_n "(cached) " >&6
5016 lt_cv_ld_reload_flag='-r'
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5019 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5020 reload_flag=$lt_cv_ld_reload_flag
5021 case $reload_flag in
5023 *) reload_flag=" $reload_flag" ;;
5025 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5027 cygwin* | mingw* | pw32* | cegcc*)
5028 if test "$GCC" != yes; then
5033 if test "$GCC" = yes; then
5034 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5036 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5049 if test -n "$ac_tool_prefix"; then
5050 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5051 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if ${ac_cv_prog_OBJDUMP+:} false; then :
5055 $as_echo_n "(cached) " >&6
5057 if test -n "$OBJDUMP"; then
5058 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 OBJDUMP=$ac_cv_prog_OBJDUMP
5078 if test -n "$OBJDUMP"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5080 $as_echo "$OBJDUMP" >&6; }
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5088 if test -z "$ac_cv_prog_OBJDUMP"; then
5089 ac_ct_OBJDUMP=$OBJDUMP
5090 # Extract the first word of "objdump", so it can be a program name with args.
5091 set dummy objdump; ac_word=$2
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093 $as_echo_n "checking for $ac_word... " >&6; }
5094 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5095 $as_echo_n "(cached) " >&6
5097 if test -n "$ac_ct_OBJDUMP"; then
5098 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5118 if test -n "$ac_ct_OBJDUMP"; then
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5120 $as_echo "$ac_ct_OBJDUMP" >&6; }
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 $as_echo "no" >&6; }
5126 if test "x$ac_ct_OBJDUMP" = x; then
5129 case $cross_compiling:$ac_tool_warned in
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5133 ac_tool_warned=yes ;;
5135 OBJDUMP=$ac_ct_OBJDUMP
5138 OBJDUMP="$ac_cv_prog_OBJDUMP"
5141 test -z "$OBJDUMP" && OBJDUMP=objdump
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5149 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5150 if ${lt_cv_deplibs_check_method+:} false; then :
5151 $as_echo_n "(cached) " >&6
5153 lt_cv_file_magic_cmd='$MAGIC_CMD'
5154 lt_cv_file_magic_test_file=
5155 lt_cv_deplibs_check_method='unknown'
5156 # Need to set the preceding variable on all platforms that support
5157 # interlibrary dependencies.
5158 # 'none' -- dependencies not supported.
5159 # `unknown' -- same as none, but documents that we really don't know.
5160 # 'pass_all' -- all dependencies passed with no checks.
5161 # 'test_compile' -- check by making test program.
5162 # 'file_magic [[regex]]' -- check by looking for files in library path
5163 # which responds to the $file_magic_cmd with a given extended regex.
5164 # If you have `file' or equivalent on your system and you're not sure
5165 # whether `pass_all' will *always* work, you probably want this one.
5169 lt_cv_deplibs_check_method=pass_all
5173 lt_cv_deplibs_check_method=pass_all
5177 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5178 lt_cv_file_magic_cmd='/usr/bin/file -L'
5179 lt_cv_file_magic_test_file=/shlib/libc.so
5183 # func_win32_libid is a shell function defined in ltmain.sh
5184 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5185 lt_cv_file_magic_cmd='func_win32_libid'
5189 # Base MSYS/MinGW do not provide the 'file' command needed by
5190 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5191 # unless we find 'file', for example because we are cross-compiling.
5192 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5193 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5194 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5195 lt_cv_file_magic_cmd='func_win32_libid'
5197 # Keep this pattern in sync with the one in func_win32_libid.
5198 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5199 lt_cv_file_magic_cmd='$OBJDUMP -f'
5204 # use the weaker test based on 'objdump'. See mingw*.
5205 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5206 lt_cv_file_magic_cmd='$OBJDUMP -f'
5209 darwin* | rhapsody*)
5210 lt_cv_deplibs_check_method=pass_all
5213 freebsd* | dragonfly*)
5214 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5217 # Not sure whether the presence of OpenBSD here was a mistake.
5218 # Let's accept both of them until this is cleared up.
5219 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5220 lt_cv_file_magic_cmd=/usr/bin/file
5221 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5225 lt_cv_deplibs_check_method=pass_all
5230 lt_cv_deplibs_check_method=pass_all
5233 hpux10.20* | hpux11*)
5234 lt_cv_file_magic_cmd=/usr/bin/file
5237 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5238 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5241 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]'
5242 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5245 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5246 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5252 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5256 irix5* | irix6* | nonstopux*)
5258 *-32|*"-32 ") libmagic=32-bit;;
5259 *-n32|*"-n32 ") libmagic=N32;;
5260 *-64|*"-64 ") libmagic=64-bit;;
5261 *) libmagic=never-match;;
5263 lt_cv_deplibs_check_method=pass_all
5266 # This must be glibc/ELF.
5267 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5268 lt_cv_deplibs_check_method=pass_all
5271 netbsd* | netbsdelf*-gnu)
5272 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5275 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5280 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5281 lt_cv_file_magic_cmd=/usr/bin/file
5282 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5286 lt_cv_deplibs_check_method=pass_all
5290 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5291 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5293 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5297 osf3* | osf4* | osf5*)
5298 lt_cv_deplibs_check_method=pass_all
5302 lt_cv_deplibs_check_method=pass_all
5306 lt_cv_deplibs_check_method=pass_all
5309 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5310 lt_cv_deplibs_check_method=pass_all
5314 case $host_vendor in
5316 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]'
5317 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5320 lt_cv_deplibs_check_method=pass_all
5323 lt_cv_file_magic_cmd='/bin/file'
5324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5327 lt_cv_file_magic_cmd='/bin/file'
5328 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5329 lt_cv_file_magic_test_file=/lib/libc.so
5332 lt_cv_deplibs_check_method=pass_all
5335 lt_cv_deplibs_check_method=pass_all
5341 lt_cv_deplibs_check_method=pass_all
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5347 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5351 if test "$build" = "$host"; then
5354 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5357 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5363 file_magic_cmd=$lt_cv_file_magic_cmd
5364 deplibs_check_method=$lt_cv_deplibs_check_method
5365 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5388 if test -n "$ac_tool_prefix"; then
5389 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5390 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_prog_DLLTOOL+:} false; then :
5394 $as_echo_n "(cached) " >&6
5396 if test -n "$DLLTOOL"; then
5397 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5406 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 DLLTOOL=$ac_cv_prog_DLLTOOL
5417 if test -n "$DLLTOOL"; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5419 $as_echo "$DLLTOOL" >&6; }
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5427 if test -z "$ac_cv_prog_DLLTOOL"; then
5428 ac_ct_DLLTOOL=$DLLTOOL
5429 # Extract the first word of "dlltool", so it can be a program name with args.
5430 set dummy dlltool; ac_word=$2
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432 $as_echo_n "checking for $ac_word... " >&6; }
5433 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5434 $as_echo_n "(cached) " >&6
5436 if test -n "$ac_ct_DLLTOOL"; then
5437 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 test -z "$as_dir" && as_dir=.
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5446 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5457 if test -n "$ac_ct_DLLTOOL"; then
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5459 $as_echo "$ac_ct_DLLTOOL" >&6; }
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462 $as_echo "no" >&6; }
5465 if test "x$ac_ct_DLLTOOL" = x; then
5468 case $cross_compiling:$ac_tool_warned in
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5472 ac_tool_warned=yes ;;
5474 DLLTOOL=$ac_ct_DLLTOOL
5477 DLLTOOL="$ac_cv_prog_DLLTOOL"
5480 test -z "$DLLTOOL" && DLLTOOL=dlltool
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5489 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5490 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5491 $as_echo_n "(cached) " >&6
5493 lt_cv_sharedlib_from_linklib_cmd='unknown'
5496 cygwin* | mingw* | pw32* | cegcc*)
5497 # two different shell functions defined in ltmain.sh
5498 # decide which to use based on capabilities of $DLLTOOL
5499 case `$DLLTOOL --help 2>&1` in
5500 *--identify-strict*)
5501 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5504 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5509 # fallback: assume linklib IS sharedlib
5510 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5516 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5517 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5518 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5527 if test -n "$ac_tool_prefix"; then
5530 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5531 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if ${ac_cv_prog_AR+:} false; then :
5535 $as_echo_n "(cached) " >&6
5537 if test -n "$AR"; then
5538 ac_cv_prog_AR="$AR" # Let the user override the test.
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 test -z "$as_dir" && as_dir=.
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5547 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 if test -n "$AR"; then
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5560 $as_echo "$AR" >&6; }
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563 $as_echo "no" >&6; }
5567 test -n "$AR" && break
5570 if test -z "$AR"; then
5574 # Extract the first word of "$ac_prog", so it can be a program name with args.
5575 set dummy $ac_prog; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5579 $as_echo_n "(cached) " >&6
5581 if test -n "$ac_ct_AR"; then
5582 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591 ac_cv_prog_ac_ct_AR="$ac_prog"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5601 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5602 if test -n "$ac_ct_AR"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5604 $as_echo "$ac_ct_AR" >&6; }
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5611 test -n "$ac_ct_AR" && break
5614 if test "x$ac_ct_AR" = x; then
5617 case $cross_compiling:$ac_tool_warned in
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5621 ac_tool_warned=yes ;;
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5641 $as_echo_n "checking for archiver @FILE support... " >&6; }
5642 if ${lt_cv_ar_at_file+:} false; then :
5643 $as_echo_n "(cached) " >&6
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5657 if ac_fn_c_try_compile "$LINENO"; then :
5658 echo conftest.$ac_objext > conftest.lst
5659 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5661 (eval $lt_ar_try) 2>&5
5663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5664 test $ac_status = 0; }
5665 if test "$ac_status" -eq 0; then
5666 # Ensure the archiver fails upon bogus file names.
5667 rm -f conftest.$ac_objext libconftest.a
5668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5669 (eval $lt_ar_try) 2>&5
5671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5672 test $ac_status = 0; }
5673 if test "$ac_status" -ne 0; then
5677 rm -f conftest.* libconftest.a
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5684 $as_echo "$lt_cv_ar_at_file" >&6; }
5686 if test "x$lt_cv_ar_at_file" = xno; then
5689 archiver_list_spec=$lt_cv_ar_at_file
5698 if test -n "$ac_tool_prefix"; then
5699 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5700 set dummy ${ac_tool_prefix}strip; ac_word=$2
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702 $as_echo_n "checking for $ac_word... " >&6; }
5703 if ${ac_cv_prog_STRIP+:} false; then :
5704 $as_echo_n "(cached) " >&6
5706 if test -n "$STRIP"; then
5707 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 test -z "$as_dir" && as_dir=.
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5716 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 STRIP=$ac_cv_prog_STRIP
5727 if test -n "$STRIP"; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5729 $as_echo "$STRIP" >&6; }
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 $as_echo "no" >&6; }
5737 if test -z "$ac_cv_prog_STRIP"; then
5739 # Extract the first word of "strip", so it can be a program name with args.
5740 set dummy strip; ac_word=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5744 $as_echo_n "(cached) " >&6
5746 if test -n "$ac_ct_STRIP"; then
5747 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_ac_ct_STRIP="strip"
5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5767 if test -n "$ac_ct_STRIP"; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5769 $as_echo "$ac_ct_STRIP" >&6; }
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5775 if test "x$ac_ct_STRIP" = x; then
5778 case $cross_compiling:$ac_tool_warned in
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5782 ac_tool_warned=yes ;;
5787 STRIP="$ac_cv_prog_STRIP"
5790 test -z "$STRIP" && STRIP=:
5797 if test -n "$ac_tool_prefix"; then
5798 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5799 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if ${ac_cv_prog_RANLIB+:} false; then :
5803 $as_echo_n "(cached) " >&6
5805 if test -n "$RANLIB"; then
5806 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5815 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 RANLIB=$ac_cv_prog_RANLIB
5826 if test -n "$RANLIB"; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5828 $as_echo "$RANLIB" >&6; }
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5836 if test -z "$ac_cv_prog_RANLIB"; then
5837 ac_ct_RANLIB=$RANLIB
5838 # Extract the first word of "ranlib", so it can be a program name with args.
5839 set dummy ranlib; ac_word=$2
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841 $as_echo_n "checking for $ac_word... " >&6; }
5842 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5843 $as_echo_n "(cached) " >&6
5845 if test -n "$ac_ct_RANLIB"; then
5846 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 test -z "$as_dir" && as_dir=.
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5855 ac_cv_prog_ac_ct_RANLIB="ranlib"
5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5866 if test -n "$ac_ct_RANLIB"; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5868 $as_echo "$ac_ct_RANLIB" >&6; }
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5874 if test "x$ac_ct_RANLIB" = x; then
5877 case $cross_compiling:$ac_tool_warned in
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5881 ac_tool_warned=yes ;;
5883 RANLIB=$ac_ct_RANLIB
5886 RANLIB="$ac_cv_prog_RANLIB"
5889 test -z "$RANLIB" && RANLIB=:
5896 # Determine commands to create old-style static archives.
5897 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5898 old_postinstall_cmds='chmod 644 $oldlib'
5899 old_postuninstall_cmds=
5901 if test -n "$RANLIB"; then
5904 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5907 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5910 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5915 lock_old_archive_extraction=yes ;;
5917 lock_old_archive_extraction=no ;;
5958 # If no C compiler was specified, use CC.
5961 # If no C compiler flags were specified, use CFLAGS.
5962 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5964 # Allow CC to be a program name with arguments.
5968 # Check for command to grab the raw symbol name followed by C symbol from nm.
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5970 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5971 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5972 $as_echo_n "(cached) " >&6
5975 # These are sane defaults that work on at least a few old systems.
5976 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5978 # Character class describing NM global symbol codes.
5979 symcode='[BCDEGRST]'
5981 # Regexp to match symbols that can be accessed directly from C.
5982 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5984 # Define system-specific variables.
5989 cygwin* | mingw* | pw32* | cegcc*)
5990 symcode='[ABCDGISTW]'
5993 if test "$host_cpu" = ia64; then
5994 symcode='[ABCDEGRST]'
5998 symcode='[BCDEGRST]'
6001 symcode='[BCDEGQRST]'
6012 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6020 # If we're using GNU nm, then use its standard symbol codes.
6021 case `$NM -V 2>&1` in
6022 *GNU* | *'with BFD'*)
6023 symcode='[ABCDGIRSTW]' ;;
6026 # Transform an extracted symbol line into a proper C declaration.
6027 # Some systems (esp. on ia64) link data and code symbols differently,
6028 # so use this general approach.
6029 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6031 # Transform an extracted symbol line into symbol name and symbol address
6032 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6033 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6035 # Handle CRLF in mingw tool chain
6039 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6043 # Try without a prefix underscore, then with it.
6044 for ac_symprfx in "" "_"; do
6046 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6047 symxfrm="\\1 $ac_symprfx\\2 \\2"
6049 # Write the raw and C identifiers.
6050 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6051 # Fake it for dumpbin and say T for any non-static function
6052 # and D for any global variable.
6053 # Also find C++ and __fastcall symbols from MSVC++,
6054 # which start with @ or ?.
6055 lt_cv_sys_global_symbol_pipe="$AWK '"\
6056 " {last_section=section; section=\$ 3};"\
6057 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6058 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6059 " \$ 0!~/External *\|/{next};"\
6060 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6061 " {if(hide[section]) next};"\
6062 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6063 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6064 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6065 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6066 " ' prfx=^$ac_symprfx"
6068 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6070 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6072 # Check to see that the pipe works correctly.
6076 cat > conftest.$ac_ext <<_LT_EOF
6081 void nm_test_func(void);
6082 void nm_test_func(void){}
6086 int main(){nm_test_var='a';nm_test_func();return(0);}
6089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6090 (eval $ac_compile) 2>&5
6092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6093 test $ac_status = 0; }; then
6094 # Now try to grab the symbols.
6096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6097 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6100 test $ac_status = 0; } && test -s "$nlist"; then
6101 # Try sorting and uniquifying the output.
6102 if sort "$nlist" | uniq > "$nlist"T; then
6103 mv -f "$nlist"T "$nlist"
6108 # Make sure that we snagged all the symbols we need.
6109 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6110 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6111 cat <<_LT_EOF > conftest.$ac_ext
6112 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6113 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6114 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6115 relocations are performed -- see ld's documentation on pseudo-relocs. */
6116 # define LT_DLSYM_CONST
6117 #elif defined(__osf__)
6118 /* This system does not cope well with relocations in const data. */
6119 # define LT_DLSYM_CONST
6121 # define LT_DLSYM_CONST const
6129 # Now generate the symbol file.
6130 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6132 cat <<_LT_EOF >> conftest.$ac_ext
6134 /* The mapping between symbol names and symbols. */
6135 LT_DLSYM_CONST struct {
6139 lt__PROGRAM__LTX_preloaded_symbols[] =
6141 { "@PROGRAM@", (void *) 0 },
6143 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6144 cat <<\_LT_EOF >> conftest.$ac_ext
6148 /* This works around a problem in FreeBSD linker */
6149 #ifdef FREEBSD_WORKAROUND
6150 static const void *lt_preloaded_setup() {
6151 return lt__PROGRAM__LTX_preloaded_symbols;
6159 # Now try linking the two files.
6160 mv conftest.$ac_objext conftstm.$ac_objext
6161 lt_globsym_save_LIBS=$LIBS
6162 lt_globsym_save_CFLAGS=$CFLAGS
6163 LIBS="conftstm.$ac_objext"
6164 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6166 (eval $ac_link) 2>&5
6168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6169 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6172 LIBS=$lt_globsym_save_LIBS
6173 CFLAGS=$lt_globsym_save_CFLAGS
6175 echo "cannot find nm_test_func in $nlist" >&5
6178 echo "cannot find nm_test_var in $nlist" >&5
6181 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6184 echo "$progname: failed program was:" >&5
6185 cat conftest.$ac_ext >&5
6187 rm -rf conftest* conftst*
6189 # Do not use the global_symbol_pipe unless it works.
6190 if test "$pipe_works" = yes; then
6193 lt_cv_sys_global_symbol_pipe=
6199 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6200 lt_cv_sys_global_symbol_to_cdecl=
6202 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6204 $as_echo "failed" >&6; }
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6207 $as_echo "ok" >&6; }
6210 # Response file support.
6211 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6212 nm_file_list_spec='@'
6213 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6214 nm_file_list_spec='@'
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6244 $as_echo_n "checking for sysroot... " >&6; }
6246 # Check whether --with-sysroot was given.
6247 if test "${with_sysroot+set}" = set; then :
6248 withval=$with_sysroot;
6255 case ${with_sysroot} in #(
6257 if test "$GCC" = yes; then
6258 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6262 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6268 $as_echo "${with_sysroot}" >&6; }
6269 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6274 $as_echo "${lt_sysroot:-no}" >&6; }
6280 # Check whether --enable-libtool-lock was given.
6281 if test "${enable_libtool_lock+set}" = set; then :
6282 enableval=$enable_libtool_lock;
6285 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6287 # Some flags need to be propagated to the compiler or linker for good
6291 # Find out which ABI we are using.
6292 echo 'int i;' > conftest.$ac_ext
6293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6294 (eval $ac_compile) 2>&5
6296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6297 test $ac_status = 0; }; then
6298 case `/usr/bin/file conftest.$ac_objext` in
6310 # Find out which ABI we are using.
6311 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6313 (eval $ac_compile) 2>&5
6315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6316 test $ac_status = 0; }; then
6317 if test "$lt_cv_prog_gnu_ld" = yes; then
6318 case `/usr/bin/file conftest.$ac_objext` in
6320 LD="${LD-ld} -melf32bsmip"
6323 LD="${LD-ld} -melf32bmipn32"
6326 LD="${LD-ld} -melf64bmip"
6330 case `/usr/bin/file conftest.$ac_objext` in
6346 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6347 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6348 # Find out which ABI we are using.
6349 echo 'int i;' > conftest.$ac_ext
6350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6351 (eval $ac_compile) 2>&5
6353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6354 test $ac_status = 0; }; then
6355 case `/usr/bin/file conftest.o` in
6358 x86_64-*kfreebsd*-gnu)
6359 LD="${LD-ld} -m elf_i386_fbsd"
6362 case `/usr/bin/file conftest.o` in
6364 LD="${LD-ld} -m elf32_x86_64"
6367 LD="${LD-ld} -m elf_i386"
6372 LD="${LD-ld} -m elf32lppclinux"
6375 LD="${LD-ld} -m elf32ppclinux"
6378 LD="${LD-ld} -m elf_s390"
6381 LD="${LD-ld} -m elf32_sparc"
6387 x86_64-*kfreebsd*-gnu)
6388 LD="${LD-ld} -m elf_x86_64_fbsd"
6391 LD="${LD-ld} -m elf_x86_64"
6394 LD="${LD-ld} -m elf64lppc"
6397 LD="${LD-ld} -m elf64ppc"
6399 s390*-*linux*|s390*-*tpf*)
6400 LD="${LD-ld} -m elf64_s390"
6403 LD="${LD-ld} -m elf64_sparc"
6413 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6414 SAVE_CFLAGS="$CFLAGS"
6415 CFLAGS="$CFLAGS -belf"
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6417 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6418 if ${lt_cv_cc_needs_belf+:} false; then :
6419 $as_echo_n "(cached) " >&6
6422 ac_cpp='$CPP $CPPFLAGS'
6423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428 /* end confdefs.h. */
6438 if ac_fn_c_try_link "$LINENO"; then :
6439 lt_cv_cc_needs_belf=yes
6441 lt_cv_cc_needs_belf=no
6443 rm -f core conftest.err conftest.$ac_objext \
6444 conftest$ac_exeext conftest.$ac_ext
6446 ac_cpp='$CPP $CPPFLAGS'
6447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6453 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6454 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6455 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6456 CFLAGS="$SAVE_CFLAGS"
6460 # Find out which ABI we are using.
6461 echo 'int i;' > conftest.$ac_ext
6462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6463 (eval $ac_compile) 2>&5
6465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6466 test $ac_status = 0; }; then
6467 case `/usr/bin/file conftest.o` in
6469 case $lt_cv_prog_gnu_ld in
6473 LD="${LD-ld} -m elf_x86_64"
6476 LD="${LD-ld} -m elf64_sparc"
6479 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6480 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6485 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6497 need_locks="$enable_libtool_lock"
6499 if test -n "$ac_tool_prefix"; then
6500 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6501 set dummy ${ac_tool_prefix}mt; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6505 $as_echo_n "(cached) " >&6
6507 if test -n "$MANIFEST_TOOL"; then
6508 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6528 if test -n "$MANIFEST_TOOL"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6530 $as_echo "$MANIFEST_TOOL" >&6; }
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6538 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6539 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6540 # Extract the first word of "mt", so it can be a program name with args.
6541 set dummy mt; ac_word=$2
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543 $as_echo_n "checking for $ac_word... " >&6; }
6544 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6545 $as_echo_n "(cached) " >&6
6547 if test -n "$ac_ct_MANIFEST_TOOL"; then
6548 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6557 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6568 if test -n "$ac_ct_MANIFEST_TOOL"; then
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6570 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573 $as_echo "no" >&6; }
6576 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6579 case $cross_compiling:$ac_tool_warned in
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6583 ac_tool_warned=yes ;;
6585 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6588 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6591 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6593 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6594 if ${lt_cv_path_mainfest_tool+:} false; then :
6595 $as_echo_n "(cached) " >&6
6597 lt_cv_path_mainfest_tool=no
6598 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6599 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6600 cat conftest.err >&5
6601 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6602 lt_cv_path_mainfest_tool=yes
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6607 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6608 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6618 rhapsody* | darwin*)
6619 if test -n "$ac_tool_prefix"; then
6620 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6621 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623 $as_echo_n "checking for $ac_word... " >&6; }
6624 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6625 $as_echo_n "(cached) " >&6
6627 if test -n "$DSYMUTIL"; then
6628 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6637 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6648 if test -n "$DSYMUTIL"; then
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6650 $as_echo "$DSYMUTIL" >&6; }
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653 $as_echo "no" >&6; }
6658 if test -z "$ac_cv_prog_DSYMUTIL"; then
6659 ac_ct_DSYMUTIL=$DSYMUTIL
6660 # Extract the first word of "dsymutil", so it can be a program name with args.
6661 set dummy dsymutil; ac_word=$2
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663 $as_echo_n "checking for $ac_word... " >&6; }
6664 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6665 $as_echo_n "(cached) " >&6
6667 if test -n "$ac_ct_DSYMUTIL"; then
6668 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6677 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6688 if test -n "$ac_ct_DSYMUTIL"; then
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6690 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693 $as_echo "no" >&6; }
6696 if test "x$ac_ct_DSYMUTIL" = x; then
6699 case $cross_compiling:$ac_tool_warned in
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6703 ac_tool_warned=yes ;;
6705 DSYMUTIL=$ac_ct_DSYMUTIL
6708 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6711 if test -n "$ac_tool_prefix"; then
6712 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6713 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if ${ac_cv_prog_NMEDIT+:} false; then :
6717 $as_echo_n "(cached) " >&6
6719 if test -n "$NMEDIT"; then
6720 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 NMEDIT=$ac_cv_prog_NMEDIT
6740 if test -n "$NMEDIT"; then
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6742 $as_echo "$NMEDIT" >&6; }
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6750 if test -z "$ac_cv_prog_NMEDIT"; then
6751 ac_ct_NMEDIT=$NMEDIT
6752 # Extract the first word of "nmedit", so it can be a program name with args.
6753 set dummy nmedit; ac_word=$2
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6757 $as_echo_n "(cached) " >&6
6759 if test -n "$ac_ct_NMEDIT"; then
6760 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6780 if test -n "$ac_ct_NMEDIT"; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6782 $as_echo "$ac_ct_NMEDIT" >&6; }
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6788 if test "x$ac_ct_NMEDIT" = x; then
6791 case $cross_compiling:$ac_tool_warned in
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6795 ac_tool_warned=yes ;;
6797 NMEDIT=$ac_ct_NMEDIT
6800 NMEDIT="$ac_cv_prog_NMEDIT"
6803 if test -n "$ac_tool_prefix"; then
6804 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6805 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6807 $as_echo_n "checking for $ac_word... " >&6; }
6808 if ${ac_cv_prog_LIPO+:} false; then :
6809 $as_echo_n "(cached) " >&6
6811 if test -n "$LIPO"; then
6812 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6821 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 LIPO=$ac_cv_prog_LIPO
6832 if test -n "$LIPO"; then
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6834 $as_echo "$LIPO" >&6; }
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837 $as_echo "no" >&6; }
6842 if test -z "$ac_cv_prog_LIPO"; then
6844 # Extract the first word of "lipo", so it can be a program name with args.
6845 set dummy lipo; ac_word=$2
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6847 $as_echo_n "checking for $ac_word... " >&6; }
6848 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6849 $as_echo_n "(cached) " >&6
6851 if test -n "$ac_ct_LIPO"; then
6852 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6861 ac_cv_prog_ac_ct_LIPO="lipo"
6862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6872 if test -n "$ac_ct_LIPO"; then
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6874 $as_echo "$ac_ct_LIPO" >&6; }
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877 $as_echo "no" >&6; }
6880 if test "x$ac_ct_LIPO" = x; then
6883 case $cross_compiling:$ac_tool_warned in
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6887 ac_tool_warned=yes ;;
6892 LIPO="$ac_cv_prog_LIPO"
6895 if test -n "$ac_tool_prefix"; then
6896 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6897 set dummy ${ac_tool_prefix}otool; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if ${ac_cv_prog_OTOOL+:} false; then :
6901 $as_echo_n "(cached) " >&6
6903 if test -n "$OTOOL"; then
6904 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6913 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 OTOOL=$ac_cv_prog_OTOOL
6924 if test -n "$OTOOL"; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6926 $as_echo "$OTOOL" >&6; }
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6934 if test -z "$ac_cv_prog_OTOOL"; then
6936 # Extract the first word of "otool", so it can be a program name with args.
6937 set dummy otool; ac_word=$2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6941 $as_echo_n "(cached) " >&6
6943 if test -n "$ac_ct_OTOOL"; then
6944 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6953 ac_cv_prog_ac_ct_OTOOL="otool"
6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6964 if test -n "$ac_ct_OTOOL"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6966 $as_echo "$ac_ct_OTOOL" >&6; }
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6972 if test "x$ac_ct_OTOOL" = x; then
6975 case $cross_compiling:$ac_tool_warned in
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6979 ac_tool_warned=yes ;;
6984 OTOOL="$ac_cv_prog_OTOOL"
6987 if test -n "$ac_tool_prefix"; then
6988 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6989 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991 $as_echo_n "checking for $ac_word... " >&6; }
6992 if ${ac_cv_prog_OTOOL64+:} false; then :
6993 $as_echo_n "(cached) " >&6
6995 if test -n "$OTOOL64"; then
6996 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7005 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 OTOOL64=$ac_cv_prog_OTOOL64
7016 if test -n "$OTOOL64"; then
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7018 $as_echo "$OTOOL64" >&6; }
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021 $as_echo "no" >&6; }
7026 if test -z "$ac_cv_prog_OTOOL64"; then
7027 ac_ct_OTOOL64=$OTOOL64
7028 # Extract the first word of "otool64", so it can be a program name with args.
7029 set dummy otool64; ac_word=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7033 $as_echo_n "(cached) " >&6
7035 if test -n "$ac_ct_OTOOL64"; then
7036 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7045 ac_cv_prog_ac_ct_OTOOL64="otool64"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7056 if test -n "$ac_ct_OTOOL64"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7058 $as_echo "$ac_ct_OTOOL64" >&6; }
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7064 if test "x$ac_ct_OTOOL64" = x; then
7067 case $cross_compiling:$ac_tool_warned in
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7071 ac_tool_warned=yes ;;
7073 OTOOL64=$ac_ct_OTOOL64
7076 OTOOL64="$ac_cv_prog_OTOOL64"
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7106 $as_echo_n "checking for -single_module linker flag... " >&6; }
7107 if ${lt_cv_apple_cc_single_mod+:} false; then :
7108 $as_echo_n "(cached) " >&6
7110 lt_cv_apple_cc_single_mod=no
7111 if test -z "${LT_MULTI_MODULE}"; then
7112 # By default we will add the -single_module flag. You can override
7113 # by either setting the environment variable LT_MULTI_MODULE
7114 # non-empty at configure time, or by adding -multi_module to the
7116 rm -rf libconftest.dylib*
7117 echo "int foo(void){return 1;}" > conftest.c
7118 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7119 -dynamiclib -Wl,-single_module conftest.c" >&5
7120 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7121 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7123 # If there is a non-empty error log, and "single_module"
7124 # appears in it, assume the flag caused a linker warning
7125 if test -s conftest.err && $GREP single_module conftest.err; then
7126 cat conftest.err >&5
7127 # Otherwise, if the output was created with a 0 exit code from
7128 # the compiler, it worked.
7129 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7130 lt_cv_apple_cc_single_mod=yes
7132 cat conftest.err >&5
7134 rm -rf libconftest.dylib*
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7139 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7142 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7143 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7144 $as_echo_n "(cached) " >&6
7146 lt_cv_ld_exported_symbols_list=no
7147 save_LDFLAGS=$LDFLAGS
7148 echo "_main" > conftest.sym
7149 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7161 if ac_fn_c_try_link "$LINENO"; then :
7162 lt_cv_ld_exported_symbols_list=yes
7164 lt_cv_ld_exported_symbols_list=no
7166 rm -f core conftest.err conftest.$ac_objext \
7167 conftest$ac_exeext conftest.$ac_ext
7168 LDFLAGS="$save_LDFLAGS"
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7172 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7175 $as_echo_n "checking for -force_load linker flag... " >&6; }
7176 if ${lt_cv_ld_force_load+:} false; then :
7177 $as_echo_n "(cached) " >&6
7179 lt_cv_ld_force_load=no
7180 cat > conftest.c << _LT_EOF
7181 int forced_loaded() { return 2;}
7183 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7184 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7185 echo "$AR cru libconftest.a conftest.o" >&5
7186 $AR cru libconftest.a conftest.o 2>&5
7187 echo "$RANLIB libconftest.a" >&5
7188 $RANLIB libconftest.a 2>&5
7189 cat > conftest.c << _LT_EOF
7190 int main() { return 0;}
7192 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7193 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7195 if test -s conftest.err && $GREP force_load conftest.err; then
7196 cat conftest.err >&5
7197 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7198 lt_cv_ld_force_load=yes
7200 cat conftest.err >&5
7202 rm -f conftest.err libconftest.a conftest conftest.c
7203 rm -rf conftest.dSYM
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7207 $as_echo "$lt_cv_ld_force_load" >&6; }
7209 rhapsody* | darwin1.[012])
7210 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7212 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7213 darwin*) # darwin 5.x on
7214 # if running on 10.5 or later, the deployment target defaults
7215 # to the OS version, if on x86, and 10.4, the deployment
7216 # target defaults to 10.4. Don't you love it?
7217 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7218 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7219 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7221 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7223 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7227 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7228 _lt_dar_single_mod='$single_module'
7230 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7231 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7233 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7235 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7236 _lt_dsymutil='~$DSYMUTIL $lib || :'
7244 ac_cpp='$CPP $CPPFLAGS'
7245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7249 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7250 # On Suns, sometimes $CPP names a directory.
7251 if test -n "$CPP" && test -d "$CPP"; then
7254 if test -z "$CPP"; then
7255 if ${ac_cv_prog_CPP+:} false; then :
7256 $as_echo_n "(cached) " >&6
7258 # Double quotes because CPP needs to be expanded
7259 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7262 for ac_c_preproc_warn_flag in '' yes
7264 # Use a header file that comes with gcc, so configuring glibc
7265 # with a fresh cross-compiler works.
7266 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7267 # <limits.h> exists even on freestanding compilers.
7268 # On the NeXT, cc -E runs the code through the compiler's parser,
7269 # not just through cpp. "Syntax error" is here to catch this case.
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7273 # include <limits.h>
7275 # include <assert.h>
7279 if ac_fn_c_try_cpp "$LINENO"; then :
7282 # Broken: fails on valid input.
7285 rm -f conftest.err conftest.i conftest.$ac_ext
7287 # OK, works on sane cases. Now check whether nonexistent headers
7288 # can be detected and how.
7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h. */
7291 #include <ac_nonexistent.h>
7293 if ac_fn_c_try_cpp "$LINENO"; then :
7294 # Broken: success on invalid input.
7297 # Passes both tests.
7301 rm -f conftest.err conftest.i conftest.$ac_ext
7304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7305 rm -f conftest.i conftest.err conftest.$ac_ext
7306 if $ac_preproc_ok; then :
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7319 $as_echo "$CPP" >&6; }
7321 for ac_c_preproc_warn_flag in '' yes
7323 # Use a header file that comes with gcc, so configuring glibc
7324 # with a fresh cross-compiler works.
7325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7326 # <limits.h> exists even on freestanding compilers.
7327 # On the NeXT, cc -E runs the code through the compiler's parser,
7328 # not just through cpp. "Syntax error" is here to catch this case.
7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h. */
7332 # include <limits.h>
7334 # include <assert.h>
7338 if ac_fn_c_try_cpp "$LINENO"; then :
7341 # Broken: fails on valid input.
7344 rm -f conftest.err conftest.i conftest.$ac_ext
7346 # OK, works on sane cases. Now check whether nonexistent headers
7347 # can be detected and how.
7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h. */
7350 #include <ac_nonexistent.h>
7352 if ac_fn_c_try_cpp "$LINENO"; then :
7353 # Broken: success on invalid input.
7356 # Passes both tests.
7360 rm -f conftest.err conftest.i conftest.$ac_ext
7363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7364 rm -f conftest.i conftest.err conftest.$ac_ext
7365 if $ac_preproc_ok; then :
7368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7370 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7371 See \`config.log' for more details" "$LINENO" 5; }
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7382 $as_echo_n "checking for ANSI C header files... " >&6; }
7383 if ${ac_cv_header_stdc+:} false; then :
7384 $as_echo_n "(cached) " >&6
7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387 /* end confdefs.h. */
7401 if ac_fn_c_try_compile "$LINENO"; then :
7402 ac_cv_header_stdc=yes
7404 ac_cv_header_stdc=no
7406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408 if test $ac_cv_header_stdc = yes; then
7409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h. */
7415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7416 $EGREP "memchr" >/dev/null 2>&1; then :
7419 ac_cv_header_stdc=no
7425 if test $ac_cv_header_stdc = yes; then
7426 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h. */
7432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7433 $EGREP "free" >/dev/null 2>&1; then :
7436 ac_cv_header_stdc=no
7442 if test $ac_cv_header_stdc = yes; then
7443 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7444 if test "$cross_compiling" = yes; then :
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h. */
7451 #if ((' ' & 0x0FF) == 0x020)
7452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7455 # define ISLOWER(c) \
7456 (('a' <= (c) && (c) <= 'i') \
7457 || ('j' <= (c) && (c) <= 'r') \
7458 || ('s' <= (c) && (c) <= 'z'))
7459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7467 for (i = 0; i < 256; i++)
7468 if (XOR (islower (i), ISLOWER (i))
7469 || toupper (i) != TOUPPER (i))
7474 if ac_fn_c_try_run "$LINENO"; then :
7477 ac_cv_header_stdc=no
7479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7480 conftest.$ac_objext conftest.beam conftest.$ac_ext
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7486 $as_echo "$ac_cv_header_stdc" >&6; }
7487 if test $ac_cv_header_stdc = yes; then
7489 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7493 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7494 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7495 inttypes.h stdint.h unistd.h
7497 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7498 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7500 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7501 cat >>confdefs.h <<_ACEOF
7502 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7510 for ac_header in dlfcn.h
7512 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7514 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7515 cat >>confdefs.h <<_ACEOF
7516 #define HAVE_DLFCN_H 1
7529 enable_win32_dll=yes
7532 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7533 if test -n "$ac_tool_prefix"; then
7534 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7535 set dummy ${ac_tool_prefix}as; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if ${ac_cv_prog_AS+:} false; then :
7539 $as_echo_n "(cached) " >&6
7541 if test -n "$AS"; then
7542 ac_cv_prog_AS="$AS" # Let the user override the test.
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7551 ac_cv_prog_AS="${ac_tool_prefix}as"
7552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 if test -n "$AS"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7564 $as_echo "$AS" >&6; }
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7572 if test -z "$ac_cv_prog_AS"; then
7574 # Extract the first word of "as", so it can be a program name with args.
7575 set dummy as; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7579 $as_echo_n "(cached) " >&6
7581 if test -n "$ac_ct_AS"; then
7582 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7591 ac_cv_prog_ac_ct_AS="as"
7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7602 if test -n "$ac_ct_AS"; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7604 $as_echo "$ac_ct_AS" >&6; }
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7610 if test "x$ac_ct_AS" = x; then
7613 case $cross_compiling:$ac_tool_warned in
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7617 ac_tool_warned=yes ;;
7625 if test -n "$ac_tool_prefix"; then
7626 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7627 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629 $as_echo_n "checking for $ac_word... " >&6; }
7630 if ${ac_cv_prog_DLLTOOL+:} false; then :
7631 $as_echo_n "(cached) " >&6
7633 if test -n "$DLLTOOL"; then
7634 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7643 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 DLLTOOL=$ac_cv_prog_DLLTOOL
7654 if test -n "$DLLTOOL"; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7656 $as_echo "$DLLTOOL" >&6; }
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7664 if test -z "$ac_cv_prog_DLLTOOL"; then
7665 ac_ct_DLLTOOL=$DLLTOOL
7666 # Extract the first word of "dlltool", so it can be a program name with args.
7667 set dummy dlltool; ac_word=$2
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7669 $as_echo_n "checking for $ac_word... " >&6; }
7670 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7671 $as_echo_n "(cached) " >&6
7673 if test -n "$ac_ct_DLLTOOL"; then
7674 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 test -z "$as_dir" && as_dir=.
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7683 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7694 if test -n "$ac_ct_DLLTOOL"; then
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7696 $as_echo "$ac_ct_DLLTOOL" >&6; }
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699 $as_echo "no" >&6; }
7702 if test "x$ac_ct_DLLTOOL" = x; then
7705 case $cross_compiling:$ac_tool_warned in
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7709 ac_tool_warned=yes ;;
7711 DLLTOOL=$ac_ct_DLLTOOL
7714 DLLTOOL="$ac_cv_prog_DLLTOOL"
7717 if test -n "$ac_tool_prefix"; then
7718 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7719 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721 $as_echo_n "checking for $ac_word... " >&6; }
7722 if ${ac_cv_prog_OBJDUMP+:} false; then :
7723 $as_echo_n "(cached) " >&6
7725 if test -n "$OBJDUMP"; then
7726 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7735 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 OBJDUMP=$ac_cv_prog_OBJDUMP
7746 if test -n "$OBJDUMP"; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7748 $as_echo "$OBJDUMP" >&6; }
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7756 if test -z "$ac_cv_prog_OBJDUMP"; then
7757 ac_ct_OBJDUMP=$OBJDUMP
7758 # Extract the first word of "objdump", so it can be a program name with args.
7759 set dummy objdump; ac_word=$2
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761 $as_echo_n "checking for $ac_word... " >&6; }
7762 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7763 $as_echo_n "(cached) " >&6
7765 if test -n "$ac_ct_OBJDUMP"; then
7766 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7775 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7785 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7786 if test -n "$ac_ct_OBJDUMP"; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7788 $as_echo "$ac_ct_OBJDUMP" >&6; }
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791 $as_echo "no" >&6; }
7794 if test "x$ac_ct_OBJDUMP" = x; then
7797 case $cross_compiling:$ac_tool_warned in
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7801 ac_tool_warned=yes ;;
7803 OBJDUMP=$ac_ct_OBJDUMP
7806 OBJDUMP="$ac_cv_prog_OBJDUMP"
7812 test -z "$AS" && AS=as
7818 test -z "$DLLTOOL" && DLLTOOL=dlltool
7824 test -z "$OBJDUMP" && OBJDUMP=objdump
7829 # Check whether --enable-static was given.
7830 if test "${enable_static+set}" = set; then :
7831 enableval=$enable_static; p=${PACKAGE-default}
7833 yes) enable_static=yes ;;
7834 no) enable_static=no ;;
7837 # Look at the argument we got. We use all the common list separators.
7838 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7839 for pkg in $enableval; do
7841 if test "X$pkg" = "X$p"; then
7863 # Check whether --enable-shared was given.
7864 if test "${enable_shared+set}" = set; then :
7865 enableval=$enable_shared; p=${PACKAGE-default}
7867 yes) enable_shared=yes ;;
7868 no) enable_shared=no ;;
7871 # Look at the argument we got. We use all the common list separators.
7872 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7873 for pkg in $enableval; do
7875 if test "X$pkg" = "X$p"; then
7896 # Check whether --with-pic was given.
7897 if test "${with_pic+set}" = set; then :
7898 withval=$with_pic; lt_p=${PACKAGE-default}
7900 yes|no) pic_mode=$withval ;;
7903 # Look at the argument we got. We use all the common list separators.
7904 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7905 for lt_pkg in $withval; do
7907 if test "X$lt_pkg" = "X$lt_p"; then
7919 test -z "$pic_mode" && pic_mode=default
7927 # Check whether --enable-fast-install was given.
7928 if test "${enable_fast_install+set}" = set; then :
7929 enableval=$enable_fast_install; p=${PACKAGE-default}
7931 yes) enable_fast_install=yes ;;
7932 no) enable_fast_install=no ;;
7934 enable_fast_install=no
7935 # Look at the argument we got. We use all the common list separators.
7936 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7937 for pkg in $enableval; do
7939 if test "X$pkg" = "X$p"; then
7940 enable_fast_install=yes
7947 enable_fast_install=yes
7960 # This can be used to rebuild libtool when needed
7961 LIBTOOL_DEPS="$ltmain"
7963 # Always use our own libtool.
7964 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7995 test -z "$LN_S" && LN_S="ln -s"
8010 if test -n "${ZSH_VERSION+set}" ; then
8011 setopt NO_GLOB_SUBST
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8015 $as_echo_n "checking for objdir... " >&6; }
8016 if ${lt_cv_objdir+:} false; then :
8017 $as_echo_n "(cached) " >&6
8019 rm -f .libs 2>/dev/null
8020 mkdir .libs 2>/dev/null
8021 if test -d .libs; then
8024 # MS-DOS does not allow filenames that begin with a dot.
8027 rmdir .libs 2>/dev/null
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8030 $as_echo "$lt_cv_objdir" >&6; }
8031 objdir=$lt_cv_objdir
8037 cat >>confdefs.h <<_ACEOF
8038 #define LT_OBJDIR "$lt_cv_objdir/"
8046 # AIX sometimes has problems with the GCC collect2 program. For some
8047 # reason, if we set the COLLECT_NAMES environment variable, the problems
8048 # vanish in a puff of smoke.
8049 if test "X${COLLECT_NAMES+set}" != Xset; then
8051 export COLLECT_NAMES
8058 can_build_shared=yes
8060 # All known linkers require a `.a' archive for static linking (except MSVC,
8061 # which needs '.lib').
8064 with_gnu_ld="$lt_cv_prog_gnu_ld"
8067 old_CFLAGS="$CFLAGS"
8069 # Set sane defaults for various variables
8070 test -z "$CC" && CC=cc
8071 test -z "$LTCC" && LTCC=$CC
8072 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8073 test -z "$LD" && LD=ld
8074 test -z "$ac_objext" && ac_objext=o
8076 for cc_temp in $compiler""; do
8078 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8079 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8084 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8087 # Only perform the check for file, if the check method requires it
8088 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8089 case $deplibs_check_method in
8091 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8093 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8094 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8095 $as_echo_n "(cached) " >&6
8099 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8102 lt_save_MAGIC_CMD="$MAGIC_CMD"
8103 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8104 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8105 for ac_dir in $ac_dummy; do
8107 test -z "$ac_dir" && ac_dir=.
8108 if test -f $ac_dir/${ac_tool_prefix}file; then
8109 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8110 if test -n "$file_magic_test_file"; then
8111 case $deplibs_check_method in
8113 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8114 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8115 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8116 $EGREP "$file_magic_regex" > /dev/null; then
8121 *** Warning: the command libtool uses to detect shared libraries,
8122 *** $file_magic_cmd, produces output that libtool cannot recognize.
8123 *** The result is that libtool may fail to recognize shared libraries
8124 *** as such. This will affect the creation of libtool libraries that
8125 *** depend on shared libraries, but programs linked with such libtool
8126 *** libraries will work regardless of this problem. Nevertheless, you
8127 *** may want to report the problem to your system manager and/or to
8128 *** bug-libtool@gnu.org
8138 MAGIC_CMD="$lt_save_MAGIC_CMD"
8143 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8144 if test -n "$MAGIC_CMD"; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8146 $as_echo "$MAGIC_CMD" >&6; }
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 $as_echo "no" >&6; }
8156 if test -z "$lt_cv_path_MAGIC_CMD"; then
8157 if test -n "$ac_tool_prefix"; then
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8159 $as_echo_n "checking for file... " >&6; }
8160 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8161 $as_echo_n "(cached) " >&6
8165 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8168 lt_save_MAGIC_CMD="$MAGIC_CMD"
8169 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8170 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8171 for ac_dir in $ac_dummy; do
8173 test -z "$ac_dir" && ac_dir=.
8174 if test -f $ac_dir/file; then
8175 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8176 if test -n "$file_magic_test_file"; then
8177 case $deplibs_check_method in
8179 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8180 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8181 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8182 $EGREP "$file_magic_regex" > /dev/null; then
8187 *** Warning: the command libtool uses to detect shared libraries,
8188 *** $file_magic_cmd, produces output that libtool cannot recognize.
8189 *** The result is that libtool may fail to recognize shared libraries
8190 *** as such. This will affect the creation of libtool libraries that
8191 *** depend on shared libraries, but programs linked with such libtool
8192 *** libraries will work regardless of this problem. Nevertheless, you
8193 *** may want to report the problem to your system manager and/or to
8194 *** bug-libtool@gnu.org
8204 MAGIC_CMD="$lt_save_MAGIC_CMD"
8209 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8210 if test -n "$MAGIC_CMD"; then
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8212 $as_echo "$MAGIC_CMD" >&6; }
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 $as_echo "no" >&6; }
8228 # Use C for the default configuration in the libtool script
8232 ac_cpp='$CPP $CPPFLAGS'
8233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8238 # Source file extension for C test sources.
8241 # Object file extension for compiled C test sources.
8245 # Code to be used in simple compile tests
8246 lt_simple_compile_test_code="int some_variable = 0;"
8248 # Code to be used in simple link tests
8249 lt_simple_link_test_code='int main(){return(0);}'
8257 # If no C compiler was specified, use CC.
8260 # If no C compiler flags were specified, use CFLAGS.
8261 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8263 # Allow CC to be a program name with arguments.
8266 # Save the default compiler, since it gets overwritten when the other
8267 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8268 compiler_DEFAULT=$CC
8270 # save warnings/boilerplate of simple test code
8271 ac_outfile=conftest.$ac_objext
8272 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8273 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8274 _lt_compiler_boilerplate=`cat conftest.err`
8277 ac_outfile=conftest.$ac_objext
8278 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8279 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8280 _lt_linker_boilerplate=`cat conftest.err`
8285 ## There is no encapsulation within the following macros, do not change
8286 ## the running order or otherwise move them around unless you know exactly
8287 ## what you are doing...
8288 if test -n "$compiler"; then
8290 lt_prog_compiler_no_builtin_flag=
8292 if test "$GCC" = yes; then
8293 case $cc_basename in
8295 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8297 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8301 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8302 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8303 $as_echo_n "(cached) " >&6
8305 lt_cv_prog_compiler_rtti_exceptions=no
8306 ac_outfile=conftest.$ac_objext
8307 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8308 lt_compiler_flag="-fno-rtti -fno-exceptions"
8309 # Insert the option either (1) after the last *FLAGS variable, or
8310 # (2) before a word containing "conftest.", or (3) at the end.
8311 # Note that $ac_compile itself does not contain backslashes and begins
8312 # with a dollar sign (not a hyphen), so the echo should work correctly.
8313 # The option is referenced via a variable to avoid confusing sed.
8314 lt_compile=`echo "$ac_compile" | $SED \
8315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8317 -e 's:$: $lt_compiler_flag:'`
8318 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8319 (eval "$lt_compile" 2>conftest.err)
8321 cat conftest.err >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 if (exit $ac_status) && test -s "$ac_outfile"; then
8324 # The compiler can only warn and ignore the option if not recognized
8325 # So say no if there are warnings other than the usual output.
8326 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8328 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8329 lt_cv_prog_compiler_rtti_exceptions=yes
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8336 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8338 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8339 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8351 lt_prog_compiler_wl=
8352 lt_prog_compiler_pic=
8353 lt_prog_compiler_static=
8356 if test "$GCC" = yes; then
8357 lt_prog_compiler_wl='-Wl,'
8358 lt_prog_compiler_static='-static'
8362 # All AIX code is PIC.
8363 if test "$host_cpu" = ia64; then
8364 # AIX 5 now supports IA64 processor
8365 lt_prog_compiler_static='-Bstatic'
8372 # see comment about AmigaOS4 .so support
8373 lt_prog_compiler_pic='-fPIC'
8376 # FIXME: we need at least 68020 code to build shared libraries, but
8377 # adding the `-m68020' flag to GCC prevents building anything better,
8379 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8384 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8385 # PIC is the default for these OSes.
8388 mingw* | cygwin* | pw32* | os2* | cegcc*)
8389 # This hack is so that the source file can tell whether it is being
8390 # built for inclusion in a dll (and should export symbols for example).
8391 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8392 # (--disable-auto-import) libraries
8393 lt_prog_compiler_pic='-DDLL_EXPORT'
8396 darwin* | rhapsody*)
8397 # PIC is the default on this platform
8398 # Common symbols not allowed in MH_DYLIB files
8399 lt_prog_compiler_pic='-fno-common'
8403 # PIC is the default for Haiku.
8404 # The "-static" flag exists, but is broken.
8405 lt_prog_compiler_static=
8409 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8410 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8411 # sets the default TLS model and affects inlining.
8417 lt_prog_compiler_pic='-fPIC'
8423 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8424 # Instead, we relocate shared libraries at runtime.
8428 # Just because we use GCC doesn't mean we suddenly get shared libraries
8429 # on systems that don't support them.
8430 lt_prog_compiler_can_build_shared=no
8435 # QNX uses GNU C++, but need to define -shared option too, otherwise
8437 lt_prog_compiler_pic='-fPIC -shared'
8441 if test -d /usr/nec; then
8442 lt_prog_compiler_pic=-Kconform_pic
8447 lt_prog_compiler_pic='-fPIC'
8451 case $cc_basename in
8452 nvcc*) # Cuda Compiler Driver 2.2
8453 lt_prog_compiler_wl='-Xlinker '
8454 if test -n "$lt_prog_compiler_pic"; then
8455 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8460 # PORTME Check for flag to pass linker flags through the system compiler.
8463 lt_prog_compiler_wl='-Wl,'
8464 if test "$host_cpu" = ia64; then
8465 # AIX 5 now supports IA64 processor
8466 lt_prog_compiler_static='-Bstatic'
8468 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8472 mingw* | cygwin* | pw32* | os2* | cegcc*)
8473 # This hack is so that the source file can tell whether it is being
8474 # built for inclusion in a dll (and should export symbols for example).
8475 lt_prog_compiler_pic='-DDLL_EXPORT'
8478 hpux9* | hpux10* | hpux11*)
8479 lt_prog_compiler_wl='-Wl,'
8480 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8487 lt_prog_compiler_pic='+Z'
8490 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8491 lt_prog_compiler_static='${wl}-a ${wl}archive'
8494 irix5* | irix6* | nonstopux*)
8495 lt_prog_compiler_wl='-Wl,'
8496 # PIC (with -KPIC) is the default.
8497 lt_prog_compiler_static='-non_shared'
8500 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8501 case $cc_basename in
8502 # old Intel for x86_64 which still supported -KPIC.
8504 lt_prog_compiler_wl='-Wl,'
8505 lt_prog_compiler_pic='-KPIC'
8506 lt_prog_compiler_static='-static'
8508 # icc used to be incompatible with GCC.
8509 # ICC 10 doesn't accept -KPIC any more.
8511 lt_prog_compiler_wl='-Wl,'
8512 lt_prog_compiler_pic='-fPIC'
8513 lt_prog_compiler_static='-static'
8515 # Lahey Fortran 8.1.
8517 lt_prog_compiler_wl='-Wl,'
8518 lt_prog_compiler_pic='--shared'
8519 lt_prog_compiler_static='--static'
8522 # NAG Fortran compiler
8523 lt_prog_compiler_wl='-Wl,-Wl,,'
8524 lt_prog_compiler_pic='-PIC'
8525 lt_prog_compiler_static='-Bstatic'
8527 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8528 # Portland Group compilers (*not* the Pentium gcc compiler,
8529 # which looks to be a dead project)
8530 lt_prog_compiler_wl='-Wl,'
8531 lt_prog_compiler_pic='-fpic'
8532 lt_prog_compiler_static='-Bstatic'
8535 lt_prog_compiler_wl='-Wl,'
8536 # All Alpha code is PIC.
8537 lt_prog_compiler_static='-non_shared'
8539 xl* | bgxl* | bgf* | mpixl*)
8540 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8541 lt_prog_compiler_wl='-Wl,'
8542 lt_prog_compiler_pic='-qpic'
8543 lt_prog_compiler_static='-qstaticlink'
8546 case `$CC -V 2>&1 | sed 5q` in
8547 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8548 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8549 lt_prog_compiler_pic='-KPIC'
8550 lt_prog_compiler_static='-Bstatic'
8551 lt_prog_compiler_wl=''
8553 *Sun\ F* | *Sun*Fortran*)
8554 lt_prog_compiler_pic='-KPIC'
8555 lt_prog_compiler_static='-Bstatic'
8556 lt_prog_compiler_wl='-Qoption ld '
8560 lt_prog_compiler_pic='-KPIC'
8561 lt_prog_compiler_static='-Bstatic'
8562 lt_prog_compiler_wl='-Wl,'
8564 *Intel*\ [CF]*Compiler*)
8565 lt_prog_compiler_wl='-Wl,'
8566 lt_prog_compiler_pic='-fPIC'
8567 lt_prog_compiler_static='-static'
8570 lt_prog_compiler_wl='-Wl,'
8571 lt_prog_compiler_pic='-fpic'
8572 lt_prog_compiler_static='-Bstatic'
8580 lt_prog_compiler_pic='-KPIC'
8581 lt_prog_compiler_static='-Bstatic'
8585 # QNX uses GNU C++, but need to define -shared option too, otherwise
8587 lt_prog_compiler_pic='-fPIC -shared'
8590 osf3* | osf4* | osf5*)
8591 lt_prog_compiler_wl='-Wl,'
8592 # All OSF/1 code is PIC.
8593 lt_prog_compiler_static='-non_shared'
8597 lt_prog_compiler_static='-non_shared'
8601 lt_prog_compiler_pic='-KPIC'
8602 lt_prog_compiler_static='-Bstatic'
8603 case $cc_basename in
8604 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8605 lt_prog_compiler_wl='-Qoption ld ';;
8607 lt_prog_compiler_wl='-Wl,';;
8612 lt_prog_compiler_wl='-Qoption ld '
8613 lt_prog_compiler_pic='-PIC'
8614 lt_prog_compiler_static='-Bstatic'
8617 sysv4 | sysv4.2uw2* | sysv4.3*)
8618 lt_prog_compiler_wl='-Wl,'
8619 lt_prog_compiler_pic='-KPIC'
8620 lt_prog_compiler_static='-Bstatic'
8624 if test -d /usr/nec ;then
8625 lt_prog_compiler_pic='-Kconform_pic'
8626 lt_prog_compiler_static='-Bstatic'
8630 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8631 lt_prog_compiler_wl='-Wl,'
8632 lt_prog_compiler_pic='-KPIC'
8633 lt_prog_compiler_static='-Bstatic'
8637 lt_prog_compiler_wl='-Wl,'
8638 lt_prog_compiler_can_build_shared=no
8642 lt_prog_compiler_pic='-pic'
8643 lt_prog_compiler_static='-Bstatic'
8647 lt_prog_compiler_can_build_shared=no
8653 # For platforms which do not support PIC, -DPIC is meaningless:
8655 lt_prog_compiler_pic=
8658 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8663 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8664 if ${lt_cv_prog_compiler_pic+:} false; then :
8665 $as_echo_n "(cached) " >&6
8667 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8670 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8671 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8674 # Check to make sure the PIC flag actually works.
8676 if test -n "$lt_prog_compiler_pic"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8678 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8679 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8680 $as_echo_n "(cached) " >&6
8682 lt_cv_prog_compiler_pic_works=no
8683 ac_outfile=conftest.$ac_objext
8684 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8685 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8686 # Insert the option either (1) after the last *FLAGS variable, or
8687 # (2) before a word containing "conftest.", or (3) at the end.
8688 # Note that $ac_compile itself does not contain backslashes and begins
8689 # with a dollar sign (not a hyphen), so the echo should work correctly.
8690 # The option is referenced via a variable to avoid confusing sed.
8691 lt_compile=`echo "$ac_compile" | $SED \
8692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8694 -e 's:$: $lt_compiler_flag:'`
8695 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8696 (eval "$lt_compile" 2>conftest.err)
8698 cat conftest.err >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 if (exit $ac_status) && test -s "$ac_outfile"; then
8701 # The compiler can only warn and ignore the option if not recognized
8702 # So say no if there are warnings other than the usual output.
8703 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8705 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8706 lt_cv_prog_compiler_pic_works=yes
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8713 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8715 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8716 case $lt_prog_compiler_pic in
8718 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8721 lt_prog_compiler_pic=
8722 lt_prog_compiler_can_build_shared=no
8738 # Check to make sure the static flag actually works.
8740 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8742 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8743 if ${lt_cv_prog_compiler_static_works+:} false; then :
8744 $as_echo_n "(cached) " >&6
8746 lt_cv_prog_compiler_static_works=no
8747 save_LDFLAGS="$LDFLAGS"
8748 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8749 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8750 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8751 # The linker can only warn and ignore the option if not recognized
8752 # So say no if there are warnings
8753 if test -s conftest.err; then
8754 # Append any errors to the config.log.
8755 cat conftest.err 1>&5
8756 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8758 if diff conftest.exp conftest.er2 >/dev/null; then
8759 lt_cv_prog_compiler_static_works=yes
8762 lt_cv_prog_compiler_static_works=yes
8766 LDFLAGS="$save_LDFLAGS"
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8770 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8772 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8775 lt_prog_compiler_static=
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8785 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8786 if ${lt_cv_prog_compiler_c_o+:} false; then :
8787 $as_echo_n "(cached) " >&6
8789 lt_cv_prog_compiler_c_o=no
8790 $RM -r conftest 2>/dev/null
8794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8796 lt_compiler_flag="-o out/conftest2.$ac_objext"
8797 # Insert the option either (1) after the last *FLAGS variable, or
8798 # (2) before a word containing "conftest.", or (3) at the end.
8799 # Note that $ac_compile itself does not contain backslashes and begins
8800 # with a dollar sign (not a hyphen), so the echo should work correctly.
8801 lt_compile=`echo "$ac_compile" | $SED \
8802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8804 -e 's:$: $lt_compiler_flag:'`
8805 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8806 (eval "$lt_compile" 2>out/conftest.err)
8808 cat out/conftest.err >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8812 # The compiler can only warn and ignore the option if not recognized
8813 # So say no if there are warnings
8814 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8815 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8816 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8817 lt_cv_prog_compiler_c_o=yes
8822 # SGI C++ compiler will create directory out/ii_files/ for
8823 # template instantiation
8824 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8825 $RM out/* && rmdir out
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8832 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8840 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8841 if ${lt_cv_prog_compiler_c_o+:} false; then :
8842 $as_echo_n "(cached) " >&6
8844 lt_cv_prog_compiler_c_o=no
8845 $RM -r conftest 2>/dev/null
8849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8851 lt_compiler_flag="-o out/conftest2.$ac_objext"
8852 # Insert the option either (1) after the last *FLAGS variable, or
8853 # (2) before a word containing "conftest.", or (3) at the end.
8854 # Note that $ac_compile itself does not contain backslashes and begins
8855 # with a dollar sign (not a hyphen), so the echo should work correctly.
8856 lt_compile=`echo "$ac_compile" | $SED \
8857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8859 -e 's:$: $lt_compiler_flag:'`
8860 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8861 (eval "$lt_compile" 2>out/conftest.err)
8863 cat out/conftest.err >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8867 # The compiler can only warn and ignore the option if not recognized
8868 # So say no if there are warnings
8869 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8870 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8871 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8872 lt_cv_prog_compiler_c_o=yes
8877 # SGI C++ compiler will create directory out/ii_files/ for
8878 # template instantiation
8879 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8880 $RM out/* && rmdir out
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8887 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8892 hard_links="nottested"
8893 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8894 # do not overwrite the value of need_locks provided by the user
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8896 $as_echo_n "checking if we can lock with hard links... " >&6; }
8899 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8901 ln conftest.a conftest.b 2>&5 || hard_links=no
8902 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8904 $as_echo "$hard_links" >&6; }
8905 if test "$hard_links" = no; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8907 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8920 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8923 allow_undefined_flag=
8924 always_export_symbols=no
8926 archive_expsym_cmds=
8927 compiler_needs_object=no
8928 enable_shared_with_static_runtimes=no
8929 export_dynamic_flag_spec=
8930 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8931 hardcode_automatic=no
8933 hardcode_direct_absolute=no
8934 hardcode_libdir_flag_spec=
8935 hardcode_libdir_separator=
8937 hardcode_shlibpath_var=unsupported
8939 link_all_deplibs=unknown
8942 old_archive_from_new_cmds=
8943 old_archive_from_expsyms_cmds=
8944 thread_safe_flag_spec=
8945 whole_archive_flag_spec=
8946 # include_expsyms should be a list of space-separated symbols to be *always*
8947 # included in the symbol list
8949 # exclude_expsyms can be an extended regexp of symbols to exclude
8950 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8951 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8952 # as well as any symbol that contains `d'.
8953 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8954 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8955 # platforms (ab)use it in PIC code, but their linkers get confused if
8956 # the symbol is explicitly referenced. Since portable code cannot
8957 # rely on this symbol name, it's probably fine to never include it in
8958 # preloaded symbol tables.
8959 # Exclude shared library initialization/finalization symbols.
8960 extract_expsyms_cmds=
8963 cygwin* | mingw* | pw32* | cegcc*)
8964 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8965 # When not using gcc, we currently assume that we are using
8966 # Microsoft Visual C++.
8967 if test "$GCC" != yes; then
8972 # we just hope/assume this is gcc and not c89 (= MSVC++)
8978 linux* | k*bsd*-gnu | gnu*)
8985 # On some targets, GNU ld is compatible enough with the native linker
8986 # that we're better off using the native interface for both.
8987 lt_use_gnu_ld_interface=no
8988 if test "$with_gnu_ld" = yes; then
8991 # The AIX port of GNU ld has always aspired to compatibility
8992 # with the native linker. However, as the warning in the GNU ld
8993 # block says, versions before 2.19.5* couldn't really create working
8994 # shared libraries, regardless of the interface used.
8995 case `$LD -v 2>&1` in
8996 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8997 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8998 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9000 lt_use_gnu_ld_interface=yes
9005 lt_use_gnu_ld_interface=yes
9010 if test "$lt_use_gnu_ld_interface" = yes; then
9011 # If archive_cmds runs LD, not CC, wlarc should be empty
9014 # Set some defaults for GNU ld with shared library support. These
9015 # are reset later if shared libraries are not supported. Putting them
9016 # here allows them to be overridden if necessary.
9017 runpath_var=LD_RUN_PATH
9018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9019 export_dynamic_flag_spec='${wl}--export-dynamic'
9020 # ancient GNU ld didn't support --whole-archive et. al.
9021 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9022 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9024 whole_archive_flag_spec=
9026 supports_anon_versioning=no
9027 case `$LD -v 2>&1` in
9028 *GNU\ gold*) supports_anon_versioning=yes ;;
9029 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9030 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9031 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9032 *\ 2.11.*) ;; # other 2.11 versions
9033 *) supports_anon_versioning=yes ;;
9036 # See if GNU ld supports shared libraries.
9039 # On AIX/PPC, the GNU linker is very broken
9040 if test "$host_cpu" != ia64; then
9044 *** Warning: the GNU linker, at least up to release 2.19, is reported
9045 *** to be unable to reliably create shared libraries on AIX.
9046 *** Therefore, libtool is disabling shared libraries support. If you
9047 *** really care for shared libraries, you may want to install binutils
9048 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9049 *** You will then need to restart the configuration process.
9058 # see comment about AmigaOS4 .so support
9059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9060 archive_expsym_cmds=''
9063 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)'
9064 hardcode_libdir_flag_spec='-L$libdir'
9065 hardcode_minus_L=yes
9071 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9072 allow_undefined_flag=unsupported
9073 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9074 # support --undefined. This deserves some investigation. FIXME
9075 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9081 cygwin* | mingw* | pw32* | cegcc*)
9082 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9083 # as there is no search path for DLLs.
9084 hardcode_libdir_flag_spec='-L$libdir'
9085 export_dynamic_flag_spec='${wl}--export-all-symbols'
9086 allow_undefined_flag=unsupported
9087 always_export_symbols=no
9088 enable_shared_with_static_runtimes=yes
9089 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'
9090 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9092 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9094 # If the export-symbols file already is a .def file (1st line
9095 # is EXPORTS), use it as is; otherwise, prepend...
9096 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9097 cp $export_symbols $output_objdir/$soname.def;
9099 echo EXPORTS > $output_objdir/$soname.def;
9100 cat $export_symbols >> $output_objdir/$soname.def;
9102 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9110 link_all_deplibs=yes
9115 hardcode_shlibpath_var=no
9116 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9117 export_dynamic_flag_spec='${wl}-E'
9118 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9119 # Instead, shared libraries are loaded at an image base (0x10000000 by
9120 # default) and relocated if they conflict, which is a slow very memory
9121 # consuming and fragmenting process. To avoid this, we pick a random,
9122 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9123 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9124 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9125 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'
9128 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9130 if test "$host_os" = linux-dietlibc; then
9131 case $cc_basename in
9132 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9135 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9136 && test "$tmp_diet" = no
9138 tmp_addflag=' $pic_flag'
9139 tmp_sharedflag='-shared'
9140 case $cc_basename,$host_cpu in
9141 pgcc*) # Portland Group C compiler
9142 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'
9143 tmp_addflag=' $pic_flag'
9145 pgf77* | pgf90* | pgf95* | pgfortran*)
9146 # Portland Group f77 and f90 compilers
9147 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'
9148 tmp_addflag=' $pic_flag -Mnomain' ;;
9149 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9150 tmp_addflag=' -i_dynamic' ;;
9151 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9152 tmp_addflag=' -i_dynamic -nofor_main' ;;
9153 ifc* | ifort*) # Intel Fortran compiler
9154 tmp_addflag=' -nofor_main' ;;
9155 lf95*) # Lahey Fortran 8.1
9156 whole_archive_flag_spec=
9157 tmp_sharedflag='--shared' ;;
9158 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9159 tmp_sharedflag='-qmkshrobj'
9161 nvcc*) # Cuda Compiler Driver 2.2
9162 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'
9163 compiler_needs_object=yes
9166 case `$CC -V 2>&1 | sed 5q` in
9167 *Sun\ C*) # Sun C 5.9
9168 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'
9169 compiler_needs_object=yes
9170 tmp_sharedflag='-G' ;;
9171 *Sun\ F*) # Sun Fortran 8.3
9172 tmp_sharedflag='-G' ;;
9174 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9176 if test "x$supports_anon_versioning" = xyes; then
9177 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9178 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9179 echo "local: *; };" >> $output_objdir/$libname.ver~
9180 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9183 case $cc_basename in
9184 xlf* | bgf* | bgxlf* | mpixlf*)
9185 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9186 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9188 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9189 if test "x$supports_anon_versioning" = xyes; then
9190 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9191 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9192 echo "local: *; };" >> $output_objdir/$libname.ver~
9193 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9202 netbsd* | netbsdelf*-gnu)
9203 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9204 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9207 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9208 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9213 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9217 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9218 *** create shared libraries on Solaris systems. Therefore, libtool
9219 *** is disabling shared libraries support. We urge you to upgrade GNU
9220 *** binutils to release 2.9.1 or newer. Another option is to modify
9221 *** your PATH or compiler configuration so that the native linker is
9222 *** used, and then restart.
9225 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9226 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9227 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9234 case `$LD -v 2>&1` in
9235 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9239 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9240 *** reliably create shared libraries on SCO systems. Therefore, libtool
9241 *** is disabling shared libraries support. We urge you to upgrade GNU
9242 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9243 *** your PATH or compiler configuration so that the native linker is
9244 *** used, and then restart.
9249 # For security reasons, it is highly recommended that you always
9250 # use absolute paths for naming shared libraries, and exclude the
9251 # DT_RUNPATH tag from executables and libraries. But doing so
9252 # requires that you compile everything twice, which is a pain.
9253 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9256 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9265 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9268 hardcode_shlibpath_var=no
9272 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9273 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9274 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9281 if test "$ld_shlibs" = no; then
9283 hardcode_libdir_flag_spec=
9284 export_dynamic_flag_spec=
9285 whole_archive_flag_spec=
9288 # PORTME fill in a description of your system's linker (not GNU ld)
9291 allow_undefined_flag=unsupported
9292 always_export_symbols=yes
9293 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'
9294 # Note: this linker hardcodes the directories in LIBPATH if there
9295 # are no directories specified by -L.
9296 hardcode_minus_L=yes
9297 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9298 # Neither direct hardcoding nor static linking is supported with a
9300 hardcode_direct=unsupported
9305 if test "$host_cpu" = ia64; then
9306 # On IA64, the linker does run time linking by default, so we don't
9307 # have to do anything special.
9308 aix_use_runtimelinking=no
9309 exp_sym_flag='-Bexport'
9312 # If we're using GNU nm, then we don't want the "-C" option.
9313 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9314 # Also, AIX nm treats weak defined symbols like other global
9315 # defined symbols, whereas GNU nm marks them as "W".
9316 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9317 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9319 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9321 aix_use_runtimelinking=no
9323 # Test if we are trying to use run time linking or normal
9324 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9325 # need to do runtime linking.
9326 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9327 for ld_flag in $LDFLAGS; do
9328 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9329 aix_use_runtimelinking=yes
9336 exp_sym_flag='-bexport'
9337 no_entry_flag='-bnoentry'
9340 # When large executables or shared objects are built, AIX ld can
9341 # have problems creating the table of contents. If linking a library
9342 # or program results in "error TOC overflow" add -mminimal-toc to
9343 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9344 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9348 hardcode_direct_absolute=yes
9349 hardcode_libdir_separator=':'
9350 link_all_deplibs=yes
9351 file_list_spec='${wl}-f,'
9353 if test "$GCC" = yes; then
9354 case $host_os in aix4.[012]|aix4.[012].*)
9355 # We only want to do this on AIX 4.2 and lower, the check
9356 # below for broken collect2 doesn't work under 4.3+
9357 collect2name=`${CC} -print-prog-name=collect2`
9358 if test -f "$collect2name" &&
9359 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9361 # We have reworked collect2
9364 # We have old collect2
9365 hardcode_direct=unsupported
9366 # It fails to find uninstalled libraries when the uninstalled
9367 # path is not listed in the libpath. Setting hardcode_minus_L
9368 # to unsupported forces relinking
9369 hardcode_minus_L=yes
9370 hardcode_libdir_flag_spec='-L$libdir'
9371 hardcode_libdir_separator=
9375 shared_flag='-shared'
9376 if test "$aix_use_runtimelinking" = yes; then
9377 shared_flag="$shared_flag "'${wl}-G'
9382 if test "$host_cpu" = ia64; then
9383 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9384 # chokes on -Wl,-G. The following line is correct:
9387 if test "$aix_use_runtimelinking" = yes; then
9388 shared_flag='${wl}-G'
9390 shared_flag='${wl}-bM:SRE'
9395 export_dynamic_flag_spec='${wl}-bexpall'
9396 # It seems that -bexpall does not export symbols beginning with
9397 # underscore (_), so it is better to generate a list of symbols to export.
9398 always_export_symbols=yes
9399 if test "$aix_use_runtimelinking" = yes; then
9400 # Warning - without using the other runtime loading flags (-brtl),
9401 # -berok will link without error, but may produce a broken library.
9402 allow_undefined_flag='-berok'
9403 # Determine the default libpath from the value encoded in an
9405 if test "${lt_cv_aix_libpath+set}" = set; then
9406 aix_libpath=$lt_cv_aix_libpath
9408 if ${lt_cv_aix_libpath_+:} false; then :
9409 $as_echo_n "(cached) " >&6
9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h. */
9422 if ac_fn_c_try_link "$LINENO"; then :
9424 lt_aix_libpath_sed='
9425 /Import File Strings/,/^$/ {
9427 s/^0 *\([^ ]*\) *$/\1/
9431 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9432 # Check for a 64-bit object if we didn't find anything.
9433 if test -z "$lt_cv_aix_libpath_"; then
9434 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9437 rm -f core conftest.err conftest.$ac_objext \
9438 conftest$ac_exeext conftest.$ac_ext
9439 if test -z "$lt_cv_aix_libpath_"; then
9440 lt_cv_aix_libpath_="/usr/lib:/lib"
9445 aix_libpath=$lt_cv_aix_libpath_
9448 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9449 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9451 if test "$host_cpu" = ia64; then
9452 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9453 allow_undefined_flag="-z nodefs"
9454 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"
9456 # Determine the default libpath from the value encoded in an
9458 if test "${lt_cv_aix_libpath+set}" = set; then
9459 aix_libpath=$lt_cv_aix_libpath
9461 if ${lt_cv_aix_libpath_+:} false; then :
9462 $as_echo_n "(cached) " >&6
9464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9475 if ac_fn_c_try_link "$LINENO"; then :
9477 lt_aix_libpath_sed='
9478 /Import File Strings/,/^$/ {
9480 s/^0 *\([^ ]*\) *$/\1/
9484 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9485 # Check for a 64-bit object if we didn't find anything.
9486 if test -z "$lt_cv_aix_libpath_"; then
9487 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9490 rm -f core conftest.err conftest.$ac_objext \
9491 conftest$ac_exeext conftest.$ac_ext
9492 if test -z "$lt_cv_aix_libpath_"; then
9493 lt_cv_aix_libpath_="/usr/lib:/lib"
9498 aix_libpath=$lt_cv_aix_libpath_
9501 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9502 # Warning - without using the other run time loading flags,
9503 # -berok will link without error, but may produce a broken library.
9504 no_undefined_flag=' ${wl}-bernotok'
9505 allow_undefined_flag=' ${wl}-berok'
9506 if test "$with_gnu_ld" = yes; then
9507 # We only use this code for GNU lds that support --whole-archive.
9508 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9510 # Exported symbols can be pulled into shared objects from archives
9511 whole_archive_flag_spec='$convenience'
9513 archive_cmds_need_lc=yes
9514 # This is similar to how AIX traditionally builds its shared libraries.
9515 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9523 # see comment about AmigaOS4 .so support
9524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9525 archive_expsym_cmds=''
9528 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)'
9529 hardcode_libdir_flag_spec='-L$libdir'
9530 hardcode_minus_L=yes
9536 export_dynamic_flag_spec=-rdynamic
9539 cygwin* | mingw* | pw32* | cegcc*)
9540 # When not using gcc, we currently assume that we are using
9541 # Microsoft Visual C++.
9542 # hardcode_libdir_flag_spec is actually meaningless, as there is
9543 # no search path for DLLs.
9544 case $cc_basename in
9547 hardcode_libdir_flag_spec=' '
9548 allow_undefined_flag=unsupported
9549 always_export_symbols=yes
9551 # Tell ltmain to make .lib files, not .a files.
9553 # Tell ltmain to make .dll files, not .so files.
9555 # FIXME: Setting linknames here is a bad hack.
9556 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9557 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9558 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9560 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9562 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9564 # The linker will not automatically build a static lib if we build a DLL.
9565 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9566 enable_shared_with_static_runtimes=yes
9567 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9568 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9570 old_postinstall_cmds='chmod 644 $oldlib'
9571 postlink_cmds='lt_outputfile="@OUTPUT@"~
9572 lt_tool_outputfile="@TOOL_OUTPUT@"~
9573 case $lt_outputfile in
9576 lt_outputfile="$lt_outputfile.exe"
9577 lt_tool_outputfile="$lt_tool_outputfile.exe"
9580 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9581 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9582 $RM "$lt_outputfile.manifest";
9586 # Assume MSVC wrapper
9587 hardcode_libdir_flag_spec=' '
9588 allow_undefined_flag=unsupported
9589 # Tell ltmain to make .lib files, not .a files.
9591 # Tell ltmain to make .dll files, not .so files.
9593 # FIXME: Setting linknames here is a bad hack.
9594 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9595 # The linker will automatically build a .lib file if we build a DLL.
9596 old_archive_from_new_cmds='true'
9597 # FIXME: Should let the user specify the lib program.
9598 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9599 enable_shared_with_static_runtimes=yes
9604 darwin* | rhapsody*)
9607 archive_cmds_need_lc=no
9609 hardcode_automatic=yes
9610 hardcode_shlibpath_var=unsupported
9611 if test "$lt_cv_ld_force_load" = "yes"; then
9612 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\"`'
9615 whole_archive_flag_spec=''
9617 link_all_deplibs=yes
9618 allow_undefined_flag="$_lt_dar_allow_undefined"
9619 case $cc_basename in
9620 ifort*) _lt_dar_can_shared=yes ;;
9621 *) _lt_dar_can_shared=$GCC ;;
9623 if test "$_lt_dar_can_shared" = "yes"; then
9624 output_verbose_link_cmd=func_echo_all
9625 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9626 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9627 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}"
9628 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}"
9637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9638 hardcode_libdir_flag_spec='-L$libdir'
9639 hardcode_shlibpath_var=no
9642 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9643 # support. Future versions do this automatically, but an explicit c++rt0.o
9644 # does not break anything, and helps significantly (at the cost of a little
9647 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9648 hardcode_libdir_flag_spec='-R$libdir'
9650 hardcode_shlibpath_var=no
9653 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9657 hardcode_minus_L=yes
9658 hardcode_shlibpath_var=no
9661 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9662 freebsd* | dragonfly*)
9663 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9664 hardcode_libdir_flag_spec='-R$libdir'
9666 hardcode_shlibpath_var=no
9670 if test "$GCC" = yes; then
9671 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9673 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9675 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9676 hardcode_libdir_separator=:
9679 # hardcode_minus_L: Not really in the search PATH,
9680 # but as the default location of the library.
9681 hardcode_minus_L=yes
9682 export_dynamic_flag_spec='${wl}-E'
9686 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9687 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9689 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9691 if test "$with_gnu_ld" = no; then
9692 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9693 hardcode_libdir_separator=:
9695 hardcode_direct_absolute=yes
9696 export_dynamic_flag_spec='${wl}-E'
9697 # hardcode_minus_L: Not really in the search PATH,
9698 # but as the default location of the library.
9699 hardcode_minus_L=yes
9704 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9707 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9710 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9713 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9719 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9726 # Older versions of the 11.00 compiler do not understand -b yet
9727 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9729 $as_echo_n "checking if $CC understands -b... " >&6; }
9730 if ${lt_cv_prog_compiler__b+:} false; then :
9731 $as_echo_n "(cached) " >&6
9733 lt_cv_prog_compiler__b=no
9734 save_LDFLAGS="$LDFLAGS"
9735 LDFLAGS="$LDFLAGS -b"
9736 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9737 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9738 # The linker can only warn and ignore the option if not recognized
9739 # So say no if there are warnings
9740 if test -s conftest.err; then
9741 # Append any errors to the config.log.
9742 cat conftest.err 1>&5
9743 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9744 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9745 if diff conftest.exp conftest.er2 >/dev/null; then
9746 lt_cv_prog_compiler__b=yes
9749 lt_cv_prog_compiler__b=yes
9753 LDFLAGS="$save_LDFLAGS"
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9757 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9759 if test x"$lt_cv_prog_compiler__b" = xyes; then
9760 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9762 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9768 if test "$with_gnu_ld" = no; then
9769 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9770 hardcode_libdir_separator=:
9775 hardcode_shlibpath_var=no
9779 hardcode_direct_absolute=yes
9780 export_dynamic_flag_spec='${wl}-E'
9782 # hardcode_minus_L: Not really in the search PATH,
9783 # but as the default location of the library.
9784 hardcode_minus_L=yes
9790 irix5* | irix6* | nonstopux*)
9791 if test "$GCC" = yes; then
9792 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'
9793 # Try to use the -exported_symbol ld option, if it does not
9794 # work, assume that -exports_file does not work either and
9795 # implicitly export all symbols.
9796 # This should be the same for all languages, so no per-tag cache variable.
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9798 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9799 if ${lt_cv_irix_exported_symbol+:} false; then :
9800 $as_echo_n "(cached) " >&6
9802 save_LDFLAGS="$LDFLAGS"
9803 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805 /* end confdefs.h. */
9806 int foo (void) { return 0; }
9808 if ac_fn_c_try_link "$LINENO"; then :
9809 lt_cv_irix_exported_symbol=yes
9811 lt_cv_irix_exported_symbol=no
9813 rm -f core conftest.err conftest.$ac_objext \
9814 conftest$ac_exeext conftest.$ac_ext
9815 LDFLAGS="$save_LDFLAGS"
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9818 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9819 if test "$lt_cv_irix_exported_symbol" = yes; then
9820 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'
9823 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'
9824 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'
9826 archive_cmds_need_lc='no'
9827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9828 hardcode_libdir_separator=:
9830 link_all_deplibs=yes
9833 netbsd* | netbsdelf*-gnu)
9834 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9835 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9837 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9839 hardcode_libdir_flag_spec='-R$libdir'
9841 hardcode_shlibpath_var=no
9845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9847 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9848 hardcode_libdir_separator=:
9849 hardcode_shlibpath_var=no
9856 if test -f /usr/libexec/ld.so; then
9858 hardcode_shlibpath_var=no
9859 hardcode_direct_absolute=yes
9860 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9861 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9862 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9863 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9864 export_dynamic_flag_spec='${wl}-E'
9867 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9868 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9869 hardcode_libdir_flag_spec='-R$libdir'
9872 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9873 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9883 hardcode_libdir_flag_spec='-L$libdir'
9884 hardcode_minus_L=yes
9885 allow_undefined_flag=unsupported
9886 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9887 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9891 if test "$GCC" = yes; then
9892 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9893 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'
9895 allow_undefined_flag=' -expect_unresolved \*'
9896 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'
9898 archive_cmds_need_lc='no'
9899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9900 hardcode_libdir_separator=:
9903 osf4* | osf5*) # as osf3* with the addition of -msym flag
9904 if test "$GCC" = yes; then
9905 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9906 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'
9907 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9909 allow_undefined_flag=' -expect_unresolved \*'
9910 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'
9911 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~
9912 $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'
9914 # Both c and cxx compiler support -rpath directly
9915 hardcode_libdir_flag_spec='-rpath $libdir'
9917 archive_cmds_need_lc='no'
9918 hardcode_libdir_separator=:
9922 no_undefined_flag=' -z defs'
9923 if test "$GCC" = yes; then
9925 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9926 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9927 $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'
9929 case `$CC -V 2>&1` in
9932 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9933 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9934 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9938 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9939 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9940 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9944 hardcode_libdir_flag_spec='-R$libdir'
9945 hardcode_shlibpath_var=no
9947 solaris2.[0-5] | solaris2.[0-5].*) ;;
9949 # The compiler driver will combine and reorder linker options,
9950 # but understands `-z linker_flag'. GCC discards it without `$wl',
9951 # but is careful enough not to reorder.
9952 # Supported since Solaris 2.6 (maybe 2.5.1?)
9953 if test "$GCC" = yes; then
9954 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9956 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9960 link_all_deplibs=yes
9964 if test "x$host_vendor" = xsequent; then
9965 # Use $CC to link under sequent, because it throws in some extra .o
9966 # files that make .init and .fini sections work.
9967 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9969 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9971 hardcode_libdir_flag_spec='-L$libdir'
9973 hardcode_minus_L=yes
9974 hardcode_shlibpath_var=no
9978 case $host_vendor in
9980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9981 hardcode_direct=yes # is this really true???
9984 ## LD is ld it makes a PLAMLIB
9985 ## CC just makes a GrossModule.
9986 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9987 reload_cmds='$CC -r -o $output$reload_objs'
9991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9992 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9995 runpath_var='LD_RUN_PATH'
9996 hardcode_shlibpath_var=no
10000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10001 hardcode_shlibpath_var=no
10002 export_dynamic_flag_spec='-Bexport'
10006 if test -d /usr/nec; then
10007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10008 hardcode_shlibpath_var=no
10009 runpath_var=LD_RUN_PATH
10010 hardcode_runpath_var=yes
10015 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10016 no_undefined_flag='${wl}-z,text'
10017 archive_cmds_need_lc=no
10018 hardcode_shlibpath_var=no
10019 runpath_var='LD_RUN_PATH'
10021 if test "$GCC" = yes; then
10022 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10023 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10025 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10026 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10030 sysv5* | sco3.2v5* | sco5v6*)
10031 # Note: We can NOT use -z defs as we might desire, because we do not
10032 # link with -lc, and that would cause any symbols used from libc to
10033 # always be unresolved, which means just about no library would
10034 # ever link correctly. If we're not using GNU ld we use -z text
10035 # though, which does catch some bad symbols but isn't as heavy-handed
10037 no_undefined_flag='${wl}-z,text'
10038 allow_undefined_flag='${wl}-z,nodefs'
10039 archive_cmds_need_lc=no
10040 hardcode_shlibpath_var=no
10041 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10042 hardcode_libdir_separator=':'
10043 link_all_deplibs=yes
10044 export_dynamic_flag_spec='${wl}-Bexport'
10045 runpath_var='LD_RUN_PATH'
10047 if test "$GCC" = yes; then
10048 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10049 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10051 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10052 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10058 hardcode_libdir_flag_spec='-L$libdir'
10059 hardcode_shlibpath_var=no
10067 if test x$host_vendor = xsni; then
10069 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10070 export_dynamic_flag_spec='${wl}-Blargedynsym'
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10077 $as_echo "$ld_shlibs" >&6; }
10078 test "$ld_shlibs" = no && can_build_shared=no
10080 with_gnu_ld=$with_gnu_ld
10097 # Do we need to explicitly link libc?
10099 case "x$archive_cmds_need_lc" in
10101 # Assume -lc should be added
10102 archive_cmds_need_lc=yes
10104 if test "$enable_shared" = yes && test "$GCC" = yes; then
10105 case $archive_cmds in
10107 # FIXME: we may have to deal with multi-command sequences.
10110 # Test whether the compiler implicitly links with -lc since on some
10111 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10112 # to ld, don't add -lc before -lgcc.
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10114 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10115 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10116 $as_echo_n "(cached) " >&6
10119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10121 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10122 (eval $ac_compile) 2>&5
10124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10125 test $ac_status = 0; } 2>conftest.err; then
10128 libobjs=conftest.$ac_objext
10130 wl=$lt_prog_compiler_wl
10131 pic_flag=$lt_prog_compiler_pic
10137 lt_save_allow_undefined_flag=$allow_undefined_flag
10138 allow_undefined_flag=
10139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10140 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10143 test $ac_status = 0; }
10145 lt_cv_archive_cmds_need_lc=no
10147 lt_cv_archive_cmds_need_lc=yes
10149 allow_undefined_flag=$lt_save_allow_undefined_flag
10151 cat conftest.err 1>&5
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10157 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10158 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10317 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10319 if test "$GCC" = yes; then
10321 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10322 *) lt_awk_arg="/^libraries:/" ;;
10325 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10326 *) lt_sed_strip_eq="s,=/,/,g" ;;
10328 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10329 case $lt_search_path_spec in
10331 # if the path contains ";" then we assume it to be the separator
10332 # otherwise default to the standard path separator (i.e. ":") - it is
10333 # assumed that no part of a normal pathname contains ";" but that should
10334 # okay in the real world where ";" in dirpaths is itself problematic.
10335 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10338 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10341 # Ok, now we have the path, separated by spaces, we can step through it
10342 # and add multilib dir if necessary.
10343 lt_tmp_lt_search_path_spec=
10344 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10345 for lt_sys_path in $lt_search_path_spec; do
10346 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10347 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10349 test -d "$lt_sys_path" && \
10350 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10353 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10354 BEGIN {RS=" "; FS="/|\n";} {
10357 for (lt_i = NF; lt_i > 0; lt_i--) {
10358 if ($lt_i != "" && $lt_i != ".") {
10359 if ($lt_i == "..") {
10362 if (lt_count == 0) {
10363 lt_foo="/" $lt_i lt_foo;
10370 if (lt_foo != "") { lt_freq[lt_foo]++; }
10371 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10373 # AWK program above erroneously prepends '/' to C:/dos/paths
10376 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10377 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10379 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10381 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10383 library_names_spec=
10384 libname_spec='lib$name'
10388 postuninstall_cmds=
10392 shlibpath_overrides_runpath=unknown
10394 dynamic_linker="$host_os ld.so"
10395 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10396 need_lib_prefix=unknown
10397 hardcode_into_libs=no
10399 # when you set need_version to no, make sure it does not cause -set_version
10400 # flags to be left without arguments
10401 need_version=unknown
10405 version_type=linux # correct to gnu/linux during the next big refactor
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10407 shlibpath_var=LIBPATH
10409 # AIX 3 has no versioning support, so we append a major version to the name.
10410 soname_spec='${libname}${release}${shared_ext}$major'
10414 version_type=linux # correct to gnu/linux during the next big refactor
10417 hardcode_into_libs=yes
10418 if test "$host_cpu" = ia64; then
10419 # AIX 5 supports IA64
10420 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10421 shlibpath_var=LD_LIBRARY_PATH
10423 # With GCC up to 2.95.x, collect2 would create an import file
10424 # for dependence libraries. The import file would start with
10425 # the line `#! .'. This would cause the generated library to
10426 # depend on `.', always an invalid library. This was fixed in
10427 # development snapshots of GCC prior to 3.0.
10429 aix4 | aix4.[01] | aix4.[01].*)
10430 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10432 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10435 can_build_shared=no
10439 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10440 # soname into executable. Probably we can add versioning support to
10441 # collect2, so additional links can be useful in future.
10442 if test "$aix_use_runtimelinking" = yes; then
10443 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10444 # instead of lib<name>.a to let people know that these are not
10445 # typical AIX shared libraries.
10446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448 # We preserve .a as extension for shared libraries through AIX4.2
10449 # and later when we are not doing run time linking.
10450 library_names_spec='${libname}${release}.a $libname.a'
10451 soname_spec='${libname}${release}${shared_ext}$major'
10453 shlibpath_var=LIBPATH
10460 # Since July 2007 AmigaOS4 officially supports .so libraries.
10461 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465 library_names_spec='$libname.ixlibrary $libname.a'
10466 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10467 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10473 library_names_spec='${libname}${shared_ext}'
10474 dynamic_linker="$host_os ld.so"
10475 shlibpath_var=LIBRARY_PATH
10479 version_type=linux # correct to gnu/linux during the next big refactor
10481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10482 soname_spec='${libname}${release}${shared_ext}$major'
10483 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10484 shlibpath_var=LD_LIBRARY_PATH
10485 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10486 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10487 # the default ld.so.conf also contains /usr/contrib/lib and
10488 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10489 # libtool to hard-code these into programs
10492 cygwin* | mingw* | pw32* | cegcc*)
10493 version_type=windows
10498 case $GCC,$cc_basename in
10501 library_names_spec='$libname.dll.a'
10502 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10503 postinstall_cmds='base_file=`basename \${file}`~
10504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10505 dldir=$destdir/`dirname \$dlpath`~
10506 test -d \$dldir || mkdir -p \$dldir~
10507 $install_prog $dir/$dlname \$dldir/$dlname~
10508 chmod a+x \$dldir/$dlname~
10509 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10510 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10512 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10513 dlpath=$dir/\$dldll~
10515 shlibpath_overrides_runpath=yes
10519 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10520 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10522 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10525 # MinGW DLLs use traditional 'lib' prefix
10526 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10529 # pw32 DLLs use 'pw' prefix rather than 'lib'
10530 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10533 dynamic_linker='Win32 ld.exe'
10538 libname_spec='$name'
10539 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10540 library_names_spec='${libname}.dll.lib'
10544 sys_lib_search_path_spec=
10547 for lt_path in $LIB
10550 # Let DOS variable expansion print the short 8.3 style file name.
10551 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10552 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10555 # Convert to MSYS style.
10556 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10559 # Convert to unix form, then to dos form, then back to unix form
10560 # but this time dos style (no spaces!) so that the unix form looks
10561 # like /cygdrive/c/PROGRA~1:/cygdr...
10562 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10563 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10564 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10567 sys_lib_search_path_spec="$LIB"
10568 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10569 # It is most probably a Windows format PATH.
10570 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10572 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10574 # FIXME: find the short name or the path components, as spaces are
10575 # common. (e.g. "Program Files" -> "PROGRA~1")
10579 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10580 postinstall_cmds='base_file=`basename \${file}`~
10581 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10582 dldir=$destdir/`dirname \$dlpath`~
10583 test -d \$dldir || mkdir -p \$dldir~
10584 $install_prog $dir/$dlname \$dldir/$dlname'
10585 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10586 dlpath=$dir/\$dldll~
10588 shlibpath_overrides_runpath=yes
10589 dynamic_linker='Win32 link.exe'
10593 # Assume MSVC wrapper
10594 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10595 dynamic_linker='Win32 ld.exe'
10598 # FIXME: first we should search . and the directory the executable is in
10602 darwin* | rhapsody*)
10603 dynamic_linker="$host_os dyld"
10604 version_type=darwin
10607 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10608 soname_spec='${libname}${release}${major}$shared_ext'
10609 shlibpath_overrides_runpath=yes
10610 shlibpath_var=DYLD_LIBRARY_PATH
10611 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10613 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10614 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10618 version_type=linux # correct to gnu/linux during the next big refactor
10621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10622 soname_spec='${libname}${release}${shared_ext}$major'
10623 shlibpath_var=LD_LIBRARY_PATH
10626 freebsd* | dragonfly*)
10627 # DragonFly does not have aout. When/if they implement a new
10628 # versioning mechanism, adjust this.
10629 if test -x /usr/bin/objformat; then
10630 objformat=`/usr/bin/objformat`
10633 freebsd[23].*) objformat=aout ;;
10634 *) objformat=elf ;;
10637 version_type=freebsd-$objformat
10638 case $version_type in
10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10649 shlibpath_var=LD_LIBRARY_PATH
10652 shlibpath_overrides_runpath=yes
10654 freebsd3.[01]* | freebsdelf3.[01]*)
10655 shlibpath_overrides_runpath=yes
10656 hardcode_into_libs=yes
10658 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10659 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10660 shlibpath_overrides_runpath=no
10661 hardcode_into_libs=yes
10663 *) # from 4.6 on, and DragonFly
10664 shlibpath_overrides_runpath=yes
10665 hardcode_into_libs=yes
10671 version_type=linux # correct to gnu/linux during the next big refactor
10674 dynamic_linker="$host_os runtime_loader"
10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10676 soname_spec='${libname}${release}${shared_ext}$major'
10677 shlibpath_var=LIBRARY_PATH
10678 shlibpath_overrides_runpath=yes
10679 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10680 hardcode_into_libs=yes
10683 hpux9* | hpux10* | hpux11*)
10684 # Give a soname corresponding to the major version so that dld.sl refuses to
10685 # link against other versions.
10692 hardcode_into_libs=yes
10693 dynamic_linker="$host_os dld.so"
10694 shlibpath_var=LD_LIBRARY_PATH
10695 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10697 soname_spec='${libname}${release}${shared_ext}$major'
10698 if test "X$HPUX_IA64_MODE" = X32; then
10699 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10701 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10703 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10707 hardcode_into_libs=yes
10708 dynamic_linker="$host_os dld.sl"
10709 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10710 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10712 soname_spec='${libname}${release}${shared_ext}$major'
10713 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10714 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10718 dynamic_linker="$host_os dld.sl"
10719 shlibpath_var=SHLIB_PATH
10720 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722 soname_spec='${libname}${release}${shared_ext}$major'
10725 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10726 postinstall_cmds='chmod 555 $lib'
10727 # or fails outright, so override atomically:
10728 install_override_mode=555
10732 version_type=linux # correct to gnu/linux during the next big refactor
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10736 soname_spec='${libname}${release}${shared_ext}$major'
10737 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10738 shlibpath_var=LD_LIBRARY_PATH
10739 shlibpath_overrides_runpath=no
10740 hardcode_into_libs=yes
10743 irix5* | irix6* | nonstopux*)
10745 nonstopux*) version_type=nonstopux ;;
10747 if test "$lt_cv_prog_gnu_ld" = yes; then
10748 version_type=linux # correct to gnu/linux during the next big refactor
10755 soname_spec='${libname}${release}${shared_ext}$major'
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10758 irix5* | nonstopux*)
10759 libsuff= shlibsuff=
10762 case $LD in # libtool.m4 will add one of these switches to LD
10763 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10764 libsuff= shlibsuff= libmagic=32-bit;;
10765 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10766 libsuff=32 shlibsuff=N32 libmagic=N32;;
10767 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10768 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10769 *) libsuff= shlibsuff= libmagic=never-match;;
10773 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10774 shlibpath_overrides_runpath=no
10775 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10776 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10777 hardcode_into_libs=yes
10780 # No shared lib support for Linux oldld, aout, or coff.
10781 linux*oldld* | linux*aout* | linux*coff*)
10785 # This must be glibc/ELF.
10786 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10787 version_type=linux # correct to gnu/linux during the next big refactor
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10791 soname_spec='${libname}${release}${shared_ext}$major'
10792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10793 shlibpath_var=LD_LIBRARY_PATH
10794 shlibpath_overrides_runpath=no
10796 # Some binutils ld are patched to set DT_RUNPATH
10797 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10798 $as_echo_n "(cached) " >&6
10800 lt_cv_shlibpath_overrides_runpath=no
10801 save_LDFLAGS=$LDFLAGS
10802 save_libdir=$libdir
10803 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10804 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806 /* end confdefs.h. */
10816 if ac_fn_c_try_link "$LINENO"; then :
10817 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10818 lt_cv_shlibpath_overrides_runpath=yes
10821 rm -f core conftest.err conftest.$ac_objext \
10822 conftest$ac_exeext conftest.$ac_ext
10823 LDFLAGS=$save_LDFLAGS
10824 libdir=$save_libdir
10828 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10830 # This implies no fast_install, which is unacceptable.
10831 # Some rework will be needed to allow for fast_install
10832 # before this can be enabled.
10833 hardcode_into_libs=yes
10835 # Append ld.so.conf contents to the search path
10836 if test -f /etc/ld.so.conf; then
10837 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' ' '`
10838 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10841 # We used to test for /lib/ld.so.1 and disable shared libraries on
10842 # powerpc, because MkLinux only supported shared libraries with the
10843 # GNU dynamic linker. Since this was broken with cross compilers,
10844 # most powerpc-linux boxes support dynamic linking these days and
10845 # people can always --disable-shared, the test was removed, and we
10846 # assume the GNU/Linux dynamic linker is in use.
10847 dynamic_linker='GNU/Linux ld.so'
10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10855 soname_spec='${libname}${release}${shared_ext}$major'
10856 shlibpath_var=LD_LIBRARY_PATH
10857 shlibpath_overrides_runpath=no
10858 hardcode_into_libs=yes
10859 dynamic_linker='NetBSD ld.elf_so'
10866 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10869 dynamic_linker='NetBSD (a.out) ld.so'
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10872 soname_spec='${libname}${release}${shared_ext}$major'
10873 dynamic_linker='NetBSD ld.elf_so'
10875 shlibpath_var=LD_LIBRARY_PATH
10876 shlibpath_overrides_runpath=yes
10877 hardcode_into_libs=yes
10881 version_type=linux # correct to gnu/linux during the next big refactor
10882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10883 shlibpath_var=LD_LIBRARY_PATH
10884 shlibpath_overrides_runpath=yes
10891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892 soname_spec='${libname}${release}${shared_ext}$major'
10893 shlibpath_var=LD_LIBRARY_PATH
10894 shlibpath_overrides_runpath=no
10895 hardcode_into_libs=yes
10896 dynamic_linker='ldqnx.so'
10901 sys_lib_dlsearch_path_spec="/usr/lib"
10903 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10905 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10906 *) need_version=no ;;
10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10910 shlibpath_var=LD_LIBRARY_PATH
10911 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10913 openbsd2.[89] | openbsd2.[89].*)
10914 shlibpath_overrides_runpath=no
10917 shlibpath_overrides_runpath=yes
10921 shlibpath_overrides_runpath=yes
10926 libname_spec='$name'
10929 library_names_spec='$libname${shared_ext} $libname.a'
10930 dynamic_linker='OS/2 ld.exe'
10931 shlibpath_var=LIBPATH
10934 osf3* | osf4* | osf5*)
10938 soname_spec='${libname}${release}${shared_ext}$major'
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10940 shlibpath_var=LD_LIBRARY_PATH
10941 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10942 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10950 version_type=linux # correct to gnu/linux during the next big refactor
10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954 soname_spec='${libname}${release}${shared_ext}$major'
10955 shlibpath_var=LD_LIBRARY_PATH
10956 shlibpath_overrides_runpath=yes
10957 hardcode_into_libs=yes
10958 # ldd complains unless libraries are executable
10959 postinstall_cmds='chmod +x $lib'
10964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10965 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10966 shlibpath_var=LD_LIBRARY_PATH
10967 shlibpath_overrides_runpath=yes
10968 if test "$with_gnu_ld" = yes; then
10975 version_type=linux # correct to gnu/linux during the next big refactor
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10977 soname_spec='${libname}${release}${shared_ext}$major'
10978 shlibpath_var=LD_LIBRARY_PATH
10979 case $host_vendor in
10981 shlibpath_overrides_runpath=no
10983 runpath_var=LD_RUN_PATH
10991 shlibpath_overrides_runpath=no
10992 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10998 if test -d /usr/nec ;then
10999 version_type=linux # correct to gnu/linux during the next big refactor
11000 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11001 soname_spec='$libname${shared_ext}.$major'
11002 shlibpath_var=LD_LIBRARY_PATH
11006 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11007 version_type=freebsd-elf
11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11011 soname_spec='${libname}${release}${shared_ext}$major'
11012 shlibpath_var=LD_LIBRARY_PATH
11013 shlibpath_overrides_runpath=yes
11014 hardcode_into_libs=yes
11015 if test "$with_gnu_ld" = yes; then
11016 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11018 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11021 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11025 sys_lib_dlsearch_path_spec='/usr/lib'
11029 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11030 version_type=linux # correct to gnu/linux during the next big refactor
11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034 shlibpath_var=LD_LIBRARY_PATH
11035 shlibpath_overrides_runpath=no
11036 hardcode_into_libs=yes
11040 version_type=linux # correct to gnu/linux during the next big refactor
11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042 soname_spec='${libname}${release}${shared_ext}$major'
11043 shlibpath_var=LD_LIBRARY_PATH
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11051 $as_echo "$dynamic_linker" >&6; }
11052 test "$dynamic_linker" = no && can_build_shared=no
11054 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11055 if test "$GCC" = yes; then
11056 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11059 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11060 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11062 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11063 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11158 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11160 if test -n "$hardcode_libdir_flag_spec" ||
11161 test -n "$runpath_var" ||
11162 test "X$hardcode_automatic" = "Xyes" ; then
11164 # We can hardcode non-existent directories.
11165 if test "$hardcode_direct" != no &&
11166 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11167 # have to relink, otherwise we might link with an installed library
11168 # when we should be linking with a yet-to-be-installed one
11169 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11170 test "$hardcode_minus_L" != no; then
11171 # Linking always hardcodes the temporary library directory.
11172 hardcode_action=relink
11174 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11175 hardcode_action=immediate
11178 # We cannot hardcode anything, or else we can only hardcode existing
11180 hardcode_action=unsupported
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11183 $as_echo "$hardcode_action" >&6; }
11185 if test "$hardcode_action" = relink ||
11186 test "$inherit_rpath" = yes; then
11187 # Fast installation is not supported
11188 enable_fast_install=no
11189 elif test "$shlibpath_overrides_runpath" = yes ||
11190 test "$enable_shared" = no; then
11191 # Fast installation is not necessary
11192 enable_fast_install=needless
11200 if test "x$enable_dlopen" != xyes; then
11201 enable_dlopen=unknown
11202 enable_dlopen_self=unknown
11203 enable_dlopen_self_static=unknown
11210 lt_cv_dlopen="load_add_on"
11212 lt_cv_dlopen_self=yes
11215 mingw* | pw32* | cegcc*)
11216 lt_cv_dlopen="LoadLibrary"
11221 lt_cv_dlopen="dlopen"
11226 # if libdl is installed we need to link against it
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11228 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11229 if ${ac_cv_lib_dl_dlopen+:} false; then :
11230 $as_echo_n "(cached) " >&6
11232 ac_check_lib_save_LIBS=$LIBS
11234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11235 /* end confdefs.h. */
11237 /* Override any GCC internal prototype to avoid an error.
11238 Use char because int might match the return type of a GCC
11239 builtin and then its argument prototype would still apply. */
11252 if ac_fn_c_try_link "$LINENO"; then :
11253 ac_cv_lib_dl_dlopen=yes
11255 ac_cv_lib_dl_dlopen=no
11257 rm -f core conftest.err conftest.$ac_objext \
11258 conftest$ac_exeext conftest.$ac_ext
11259 LIBS=$ac_check_lib_save_LIBS
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11262 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11263 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11264 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11267 lt_cv_dlopen="dyld"
11269 lt_cv_dlopen_self=yes
11276 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11277 if test "x$ac_cv_func_shl_load" = xyes; then :
11278 lt_cv_dlopen="shl_load"
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11281 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11282 if ${ac_cv_lib_dld_shl_load+:} false; then :
11283 $as_echo_n "(cached) " >&6
11285 ac_check_lib_save_LIBS=$LIBS
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11290 /* Override any GCC internal prototype to avoid an error.
11291 Use char because int might match the return type of a GCC
11292 builtin and then its argument prototype would still apply. */
11300 return shl_load ();
11305 if ac_fn_c_try_link "$LINENO"; then :
11306 ac_cv_lib_dld_shl_load=yes
11308 ac_cv_lib_dld_shl_load=no
11310 rm -f core conftest.err conftest.$ac_objext \
11311 conftest$ac_exeext conftest.$ac_ext
11312 LIBS=$ac_check_lib_save_LIBS
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11315 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11316 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11317 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11319 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11320 if test "x$ac_cv_func_dlopen" = xyes; then :
11321 lt_cv_dlopen="dlopen"
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11324 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11325 if ${ac_cv_lib_dl_dlopen+:} false; then :
11326 $as_echo_n "(cached) " >&6
11328 ac_check_lib_save_LIBS=$LIBS
11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h. */
11333 /* Override any GCC internal prototype to avoid an error.
11334 Use char because int might match the return type of a GCC
11335 builtin and then its argument prototype would still apply. */
11348 if ac_fn_c_try_link "$LINENO"; then :
11349 ac_cv_lib_dl_dlopen=yes
11351 ac_cv_lib_dl_dlopen=no
11353 rm -f core conftest.err conftest.$ac_objext \
11354 conftest$ac_exeext conftest.$ac_ext
11355 LIBS=$ac_check_lib_save_LIBS
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11358 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11359 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11360 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11363 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11364 if ${ac_cv_lib_svld_dlopen+:} false; then :
11365 $as_echo_n "(cached) " >&6
11367 ac_check_lib_save_LIBS=$LIBS
11368 LIBS="-lsvld $LIBS"
11369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370 /* end confdefs.h. */
11372 /* Override any GCC internal prototype to avoid an error.
11373 Use char because int might match the return type of a GCC
11374 builtin and then its argument prototype would still apply. */
11387 if ac_fn_c_try_link "$LINENO"; then :
11388 ac_cv_lib_svld_dlopen=yes
11390 ac_cv_lib_svld_dlopen=no
11392 rm -f core conftest.err conftest.$ac_objext \
11393 conftest$ac_exeext conftest.$ac_ext
11394 LIBS=$ac_check_lib_save_LIBS
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11397 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11398 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11399 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11402 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11403 if ${ac_cv_lib_dld_dld_link+:} false; then :
11404 $as_echo_n "(cached) " >&6
11406 ac_check_lib_save_LIBS=$LIBS
11408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409 /* end confdefs.h. */
11411 /* Override any GCC internal prototype to avoid an error.
11412 Use char because int might match the return type of a GCC
11413 builtin and then its argument prototype would still apply. */
11421 return dld_link ();
11426 if ac_fn_c_try_link "$LINENO"; then :
11427 ac_cv_lib_dld_dld_link=yes
11429 ac_cv_lib_dld_dld_link=no
11431 rm -f core conftest.err conftest.$ac_objext \
11432 conftest$ac_exeext conftest.$ac_ext
11433 LIBS=$ac_check_lib_save_LIBS
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11436 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11437 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11438 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11459 if test "x$lt_cv_dlopen" != xno; then
11465 case $lt_cv_dlopen in
11467 save_CPPFLAGS="$CPPFLAGS"
11468 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11470 save_LDFLAGS="$LDFLAGS"
11471 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11474 LIBS="$lt_cv_dlopen_libs $LIBS"
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11477 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11478 if ${lt_cv_dlopen_self+:} false; then :
11479 $as_echo_n "(cached) " >&6
11481 if test "$cross_compiling" = yes; then :
11482 lt_cv_dlopen_self=cross
11484 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11485 lt_status=$lt_dlunknown
11486 cat > conftest.$ac_ext <<_LT_EOF
11487 #line $LINENO "configure"
11488 #include "confdefs.h"
11497 # define LT_DLGLOBAL RTLD_GLOBAL
11500 # define LT_DLGLOBAL DL_GLOBAL
11502 # define LT_DLGLOBAL 0
11506 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11507 find out it does not work in some platform. */
11508 #ifndef LT_DLLAZY_OR_NOW
11510 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11513 # define LT_DLLAZY_OR_NOW DL_LAZY
11516 # define LT_DLLAZY_OR_NOW RTLD_NOW
11519 # define LT_DLLAZY_OR_NOW DL_NOW
11521 # define LT_DLLAZY_OR_NOW 0
11528 /* When -fvisbility=hidden is used, assume the code has been annotated
11529 correspondingly for the symbols needed. */
11530 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11531 int fnord () __attribute__((visibility("default")));
11534 int fnord () { return 42; }
11537 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11538 int status = $lt_dlunknown;
11542 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11545 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11546 else puts (dlerror ());
11548 /* dlclose (self); */
11556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11557 (eval $ac_link) 2>&5
11559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11560 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11561 (./conftest; exit; ) >&5 2>/dev/null
11563 case x$lt_status in
11564 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11565 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11566 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11569 # compilation failed
11570 lt_cv_dlopen_self=no
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11578 $as_echo "$lt_cv_dlopen_self" >&6; }
11580 if test "x$lt_cv_dlopen_self" = xyes; then
11581 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11583 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11584 if ${lt_cv_dlopen_self_static+:} false; then :
11585 $as_echo_n "(cached) " >&6
11587 if test "$cross_compiling" = yes; then :
11588 lt_cv_dlopen_self_static=cross
11590 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11591 lt_status=$lt_dlunknown
11592 cat > conftest.$ac_ext <<_LT_EOF
11593 #line $LINENO "configure"
11594 #include "confdefs.h"
11603 # define LT_DLGLOBAL RTLD_GLOBAL
11606 # define LT_DLGLOBAL DL_GLOBAL
11608 # define LT_DLGLOBAL 0
11612 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11613 find out it does not work in some platform. */
11614 #ifndef LT_DLLAZY_OR_NOW
11616 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11619 # define LT_DLLAZY_OR_NOW DL_LAZY
11622 # define LT_DLLAZY_OR_NOW RTLD_NOW
11625 # define LT_DLLAZY_OR_NOW DL_NOW
11627 # define LT_DLLAZY_OR_NOW 0
11634 /* When -fvisbility=hidden is used, assume the code has been annotated
11635 correspondingly for the symbols needed. */
11636 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11637 int fnord () __attribute__((visibility("default")));
11640 int fnord () { return 42; }
11643 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11644 int status = $lt_dlunknown;
11648 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11651 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11652 else puts (dlerror ());
11654 /* dlclose (self); */
11662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11663 (eval $ac_link) 2>&5
11665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11666 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11667 (./conftest; exit; ) >&5 2>/dev/null
11669 case x$lt_status in
11670 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11671 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11672 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11675 # compilation failed
11676 lt_cv_dlopen_self_static=no
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11684 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11687 CPPFLAGS="$save_CPPFLAGS"
11688 LDFLAGS="$save_LDFLAGS"
11693 case $lt_cv_dlopen_self in
11694 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11695 *) enable_dlopen_self=unknown ;;
11698 case $lt_cv_dlopen_self_static in
11699 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11700 *) enable_dlopen_self_static=unknown ;;
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11723 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11724 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11725 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11726 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11728 $as_echo "yes" >&6; }
11730 # FIXME - insert some real tests, host_os isn't really good enough
11733 if test -n "$STRIP" ; then
11734 striplib="$STRIP -x"
11735 old_striplib="$STRIP -S"
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11737 $as_echo "yes" >&6; }
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11740 $as_echo "no" >&6; }
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; }
11761 # Report which library types will actually be built
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11763 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11765 $as_echo "$can_build_shared" >&6; }
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11768 $as_echo_n "checking whether to build shared libraries... " >&6; }
11769 test "$can_build_shared" = "no" && enable_shared=no
11771 # On AIX, shared libraries and static libraries use the same namespace, and
11772 # are all built from PIC.
11775 test "$enable_shared" = yes && enable_static=no
11776 if test -n "$RANLIB"; then
11777 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11778 postinstall_cmds='$RANLIB $lib'
11783 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11784 test "$enable_shared" = yes && enable_static=no
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11789 $as_echo "$enable_shared" >&6; }
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11792 $as_echo_n "checking whether to build static libraries... " >&6; }
11793 # Make sure either enable_shared or enable_static is yes.
11794 test "$enable_shared" = yes || enable_static=yes
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11796 $as_echo "$enable_static" >&6; }
11803 ac_cpp='$CPP $CPPFLAGS'
11804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11824 ac_config_commands="$ac_config_commands libtool"
11829 # Only expand once:
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
11834 $as_echo_n "checking for library containing strerror... " >&6; }
11835 if ${ac_cv_search_strerror+:} false; then :
11836 $as_echo_n "(cached) " >&6
11838 ac_func_search_save_LIBS=$LIBS
11839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840 /* end confdefs.h. */
11842 /* Override any GCC internal prototype to avoid an error.
11843 Use char because int might match the return type of a GCC
11844 builtin and then its argument prototype would still apply. */
11852 return strerror ();
11857 for ac_lib in '' cposix; do
11858 if test -z "$ac_lib"; then
11859 ac_res="none required"
11862 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11864 if ac_fn_c_try_link "$LINENO"; then :
11865 ac_cv_search_strerror=$ac_res
11867 rm -f core conftest.err conftest.$ac_objext \
11869 if ${ac_cv_search_strerror+:} false; then :
11873 if ${ac_cv_search_strerror+:} false; then :
11876 ac_cv_search_strerror=no
11878 rm conftest.$ac_ext
11879 LIBS=$ac_func_search_save_LIBS
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
11882 $as_echo "$ac_cv_search_strerror" >&6; }
11883 ac_res=$ac_cv_search_strerror
11884 if test "$ac_res" != no; then :
11885 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11890 ac_cpp='$CPP $CPPFLAGS'
11891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11894 if test -n "$ac_tool_prefix"; then
11895 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11896 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11898 $as_echo_n "checking for $ac_word... " >&6; }
11899 if ${ac_cv_prog_CC+:} false; then :
11900 $as_echo_n "(cached) " >&6
11902 if test -n "$CC"; then
11903 ac_cv_prog_CC="$CC" # Let the user override the test.
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11923 if test -n "$CC"; then
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11925 $as_echo "$CC" >&6; }
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928 $as_echo "no" >&6; }
11933 if test -z "$ac_cv_prog_CC"; then
11935 # Extract the first word of "gcc", so it can be a program name with args.
11936 set dummy gcc; ac_word=$2
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11938 $as_echo_n "checking for $ac_word... " >&6; }
11939 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11940 $as_echo_n "(cached) " >&6
11942 if test -n "$ac_ct_CC"; then
11943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11946 for as_dir in $PATH
11949 test -z "$as_dir" && as_dir=.
11950 for ac_exec_ext in '' $ac_executable_extensions; do
11951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11952 ac_cv_prog_ac_ct_CC="gcc"
11953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11963 if test -n "$ac_ct_CC"; then
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11965 $as_echo "$ac_ct_CC" >&6; }
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11968 $as_echo "no" >&6; }
11971 if test "x$ac_ct_CC" = x; then
11974 case $cross_compiling:$ac_tool_warned in
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11978 ac_tool_warned=yes ;;
11983 CC="$ac_cv_prog_CC"
11986 if test -z "$CC"; then
11987 if test -n "$ac_tool_prefix"; then
11988 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11989 set dummy ${ac_tool_prefix}cc; ac_word=$2
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11991 $as_echo_n "checking for $ac_word... " >&6; }
11992 if ${ac_cv_prog_CC+:} false; then :
11993 $as_echo_n "(cached) " >&6
11995 if test -n "$CC"; then
11996 ac_cv_prog_CC="$CC" # Let the user override the test.
11998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11999 for as_dir in $PATH
12002 test -z "$as_dir" && as_dir=.
12003 for ac_exec_ext in '' $ac_executable_extensions; do
12004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12005 ac_cv_prog_CC="${ac_tool_prefix}cc"
12006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12016 if test -n "$CC"; then
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12018 $as_echo "$CC" >&6; }
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12027 if test -z "$CC"; then
12028 # Extract the first word of "cc", so it can be a program name with args.
12029 set dummy cc; ac_word=$2
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12031 $as_echo_n "checking for $ac_word... " >&6; }
12032 if ${ac_cv_prog_CC+:} false; then :
12033 $as_echo_n "(cached) " >&6
12035 if test -n "$CC"; then
12036 ac_cv_prog_CC="$CC" # Let the user override the test.
12038 ac_prog_rejected=no
12039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12040 for as_dir in $PATH
12043 test -z "$as_dir" && as_dir=.
12044 for ac_exec_ext in '' $ac_executable_extensions; do
12045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12046 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12047 ac_prog_rejected=yes
12051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12058 if test $ac_prog_rejected = yes; then
12059 # We found a bogon in the path, so make sure we never use it.
12060 set dummy $ac_cv_prog_CC
12062 if test $# != 0; then
12063 # We chose a different compiler from the bogus one.
12064 # However, it has the same basename, so the bogon will be chosen
12065 # first if we set CC to just the basename; use the full file name.
12067 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12073 if test -n "$CC"; then
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12075 $as_echo "$CC" >&6; }
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078 $as_echo "no" >&6; }
12083 if test -z "$CC"; then
12084 if test -n "$ac_tool_prefix"; then
12085 for ac_prog in cl.exe
12087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12090 $as_echo_n "checking for $ac_word... " >&6; }
12091 if ${ac_cv_prog_CC+:} false; then :
12092 $as_echo_n "(cached) " >&6
12094 if test -n "$CC"; then
12095 ac_cv_prog_CC="$CC" # Let the user override the test.
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098 for as_dir in $PATH
12101 test -z "$as_dir" && as_dir=.
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12104 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12115 if test -n "$CC"; then
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12117 $as_echo "$CC" >&6; }
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12120 $as_echo "no" >&6; }
12124 test -n "$CC" && break
12127 if test -z "$CC"; then
12129 for ac_prog in cl.exe
12131 # Extract the first word of "$ac_prog", so it can be a program name with args.
12132 set dummy $ac_prog; ac_word=$2
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12134 $as_echo_n "checking for $ac_word... " >&6; }
12135 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12136 $as_echo_n "(cached) " >&6
12138 if test -n "$ac_ct_CC"; then
12139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12142 for as_dir in $PATH
12145 test -z "$as_dir" && as_dir=.
12146 for ac_exec_ext in '' $ac_executable_extensions; do
12147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12148 ac_cv_prog_ac_ct_CC="$ac_prog"
12149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12159 if test -n "$ac_ct_CC"; then
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12161 $as_echo "$ac_ct_CC" >&6; }
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164 $as_echo "no" >&6; }
12168 test -n "$ac_ct_CC" && break
12171 if test "x$ac_ct_CC" = x; then
12174 case $cross_compiling:$ac_tool_warned in
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12178 ac_tool_warned=yes ;;
12187 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12189 as_fn_error $? "no acceptable C compiler found in \$PATH
12190 See \`config.log' for more details" "$LINENO" 5; }
12192 # Provide some information about the compiler.
12193 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12196 for ac_option in --version -v -V -qversion; do
12197 { { ac_try="$ac_compiler $ac_option >&5"
12198 case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12203 $as_echo "$ac_try_echo"; } >&5
12204 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12206 if test -s conftest.err; then
12208 ... rest of stderr output deleted ...
12209 10q' conftest.err >conftest.er1
12210 cat conftest.er1 >&5
12212 rm -f conftest.er1 conftest.err
12213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12214 test $ac_status = 0; }
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12218 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12219 if ${ac_cv_c_compiler_gnu+:} false; then :
12220 $as_echo_n "(cached) " >&6
12222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223 /* end confdefs.h. */
12236 if ac_fn_c_try_compile "$LINENO"; then :
12237 ac_compiler_gnu=yes
12241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12242 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12246 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12247 if test $ac_compiler_gnu = yes; then
12252 ac_test_CFLAGS=${CFLAGS+set}
12253 ac_save_CFLAGS=$CFLAGS
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12255 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12256 if ${ac_cv_prog_cc_g+:} false; then :
12257 $as_echo_n "(cached) " >&6
12259 ac_save_c_werror_flag=$ac_c_werror_flag
12260 ac_c_werror_flag=yes
12263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h. */
12274 if ac_fn_c_try_compile "$LINENO"; then :
12275 ac_cv_prog_cc_g=yes
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12289 if ac_fn_c_try_compile "$LINENO"; then :
12292 ac_c_werror_flag=$ac_save_c_werror_flag
12294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12295 /* end confdefs.h. */
12305 if ac_fn_c_try_compile "$LINENO"; then :
12306 ac_cv_prog_cc_g=yes
12308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12313 ac_c_werror_flag=$ac_save_c_werror_flag
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12316 $as_echo "$ac_cv_prog_cc_g" >&6; }
12317 if test "$ac_test_CFLAGS" = set; then
12318 CFLAGS=$ac_save_CFLAGS
12319 elif test $ac_cv_prog_cc_g = yes; then
12320 if test "$GCC" = yes; then
12326 if test "$GCC" = yes; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12333 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12334 if ${ac_cv_prog_cc_c89+:} false; then :
12335 $as_echo_n "(cached) " >&6
12337 ac_cv_prog_cc_c89=no
12339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h. */
12341 #include <stdarg.h>
12344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12345 struct buf { int x; };
12346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12347 static char *e (p, i)
12353 static char *f (char * (*g) (char **, int), char **p, ...)
12358 s = g (p, va_arg (v,int));
12363 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12364 function prototypes and stuff, but not '\xHH' hex character constants.
12365 These don't provoke an error unfortunately, instead are silently treated
12366 as 'x'. The following induces an error, until -std is added to get
12367 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12368 array size at least. It's necessary to write '\x00'==0 to get something
12369 that's true only with -std. */
12370 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12372 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12373 inside strings and character constants. */
12375 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12377 int test (int i, double x);
12378 struct s1 {int (*f) (int a);};
12379 struct s2 {int (*f) (double a);};
12380 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12386 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12391 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12392 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12394 CC="$ac_save_CC $ac_arg"
12395 if ac_fn_c_try_compile "$LINENO"; then :
12396 ac_cv_prog_cc_c89=$ac_arg
12398 rm -f core conftest.err conftest.$ac_objext
12399 test "x$ac_cv_prog_cc_c89" != "xno" && break
12401 rm -f conftest.$ac_ext
12406 case "x$ac_cv_prog_cc_c89" in
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12409 $as_echo "none needed" >&6; } ;;
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12412 $as_echo "unsupported" >&6; } ;;
12414 CC="$CC $ac_cv_prog_cc_c89"
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12416 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12418 if test "x$ac_cv_prog_cc_c89" != xno; then :
12423 ac_cpp='$CPP $CPPFLAGS'
12424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12429 ac_cpp='$CPP $CPPFLAGS'
12430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12434 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12435 if ${am_cv_prog_cc_c_o+:} false; then :
12436 $as_echo_n "(cached) " >&6
12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h. */
12449 # Make sure it works both with $CC and with simple cc.
12450 # Following AC_PROG_CC_C_O, we do the test twice because some
12451 # compilers refuse to overwrite an existing .o file with -o,
12452 # though they will create one.
12453 am_cv_prog_cc_c_o=yes
12454 for am_i in 1 2; do
12455 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12456 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } \
12460 && test -f conftest2.$ac_objext; then
12463 am_cv_prog_cc_c_o=no
12467 rm -f core conftest*
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12471 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12472 if test "$am_cv_prog_cc_c_o" != yes; then
12473 # Losing compiler, so override with the script.
12474 # FIXME: It is wrong to rewrite CC.
12475 # But if we don't then we get into trouble of one sort or another.
12476 # A longer-term fix would be to have automake use am__CC in this case,
12477 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12478 CC="$am_aux_dir/compile $CC"
12481 ac_cpp='$CPP $CPPFLAGS'
12482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12487 depcc="$CC" am_compiler_list=
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12490 $as_echo_n "checking dependency style of $depcc... " >&6; }
12491 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12492 $as_echo_n "(cached) " >&6
12494 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12495 # We make a subdir and do the tests there. Otherwise we can end up
12496 # making bogus files that we don't know about and never remove. For
12497 # instance it was reported that on HP-UX the gcc test will end up
12498 # making a dummy file named 'D' -- because '-MD' means "put the output
12500 rm -rf conftest.dir
12502 # Copy depcomp to subdir because otherwise we won't find it if we're
12503 # using a relative directory.
12504 cp "$am_depcomp" conftest.dir
12506 # We will build objects and dependencies in a subdirectory because
12507 # it helps to detect inapplicable dependency modes. For instance
12508 # both Tru64's cc and ICC support -MD to output dependencies as a
12509 # side effect of compilation, but ICC will put the dependencies in
12510 # the current directory while Tru64 will put them in the object
12514 am_cv_CC_dependencies_compiler_type=none
12515 if test "$am_compiler_list" = ""; then
12516 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12518 am__universal=false
12519 case " $depcc " in #(
12520 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12523 for depmode in $am_compiler_list; do
12524 # Setup a source with many dependencies, because some compilers
12525 # like to wrap large dependency lists on column 80 (with \), and
12526 # we should not choose a depcomp mode which is confused by this.
12528 # We need to recreate these files for each test, as the compiler may
12529 # overwrite some of them when testing with obscure command lines.
12530 # This happens at least with the AIX C compiler.
12532 for i in 1 2 3 4 5 6; do
12533 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12534 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12535 # Solaris 10 /bin/sh.
12536 echo '/* dummy */' > sub/conftst$i.h
12538 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12540 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12541 # mode. It turns out that the SunPro C++ compiler does not properly
12542 # handle '-M -o', and we need to detect this. Also, some Intel
12543 # versions had trouble with output in subdirs.
12544 am__obj=sub/conftest.${OBJEXT-o}
12545 am__minus_obj="-o $am__obj"
12548 # This depmode causes a compiler race in universal mode.
12549 test "$am__universal" = false || continue
12552 # After this tag, mechanisms are not by side-effect, so they'll
12553 # only be used when explicitly requested.
12554 if test "x$enable_dependency_tracking" = xyes; then
12560 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12561 # This compiler won't grok '-c -o', but also, the minuso test has
12562 # not run yet. These depmodes are late enough in the game, and
12563 # so weak that their functioning should not be impacted.
12564 am__obj=conftest.${OBJEXT-o}
12569 if depmode=$depmode \
12570 source=sub/conftest.c object=$am__obj \
12571 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12572 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12573 >/dev/null 2>conftest.err &&
12574 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12575 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12576 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12577 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12578 # icc doesn't choke on unknown options, it will just issue warnings
12579 # or remarks (even with -Werror). So we grep stderr for any message
12580 # that says an option was ignored or not supported.
12581 # When given -MP, icc 7.0 and 7.1 complain thusly:
12582 # icc: Command line warning: ignoring option '-M'; no argument required
12583 # The diagnosis changed in icc 8.0:
12584 # icc: Command line remark: option '-MP' not supported
12585 if (grep 'ignoring option' conftest.err ||
12586 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12587 am_cv_CC_dependencies_compiler_type=$depmode
12594 rm -rf conftest.dir
12596 am_cv_CC_dependencies_compiler_type=none
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12601 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12602 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12605 test "x$enable_dependency_tracking" != xno \
12606 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12607 am__fastdepCC_TRUE=
12608 am__fastdepCC_FALSE='#'
12610 am__fastdepCC_TRUE='#'
12611 am__fastdepCC_FALSE=
12617 # option to specify python interpreter to use; this just sets $PYTHON, so that
12618 # we will fallback to reading $PYTHON if --with-python is not given, and
12619 # python.m4 will get the expected input
12621 # Check whether --with-python was given.
12622 if test "${with_python+set}" = set; then :
12623 withval=$with_python; PYTHON="$withval"
12626 if test x"$PYTHON" = xyes; then
12627 as_fn_error $? "--with-python option requires a path or program argument" "$LINENO" 5
12629 if test -n "$PYTHON" && ! which "$PYTHON"; then
12630 as_fn_error $? "Python interpreter $PYTHON does not exist" "$LINENO" 5
12633 # check that we have the minimum version of python necessary to build
12638 if test -n "$PYTHON"; then
12639 # If the user set $PYTHON, use it and don't search something else.
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.7" >&5
12641 $as_echo_n "checking whether $PYTHON version >= 2.7... " >&6; }
12643 # split strings by '.' and convert to numeric. Append some zeros
12644 # because we need at least 4 digits for the hex conversion.
12645 # map returns an iterator in Python 3.0 and a list in 2.x
12646 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
12648 # xrange is not present in Python 3.0 and range returns an iterator
12649 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12650 sys.exit(sys.hexversion < minverhex)"
12651 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12652 ($PYTHON -c "$prog") >&5 2>&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; then :
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12657 $as_echo "yes" >&6; }
12659 as_fn_error $? "too old" "$LINENO" 5
12661 am_display_PYTHON=$PYTHON
12663 # Otherwise, try each interpreter until we find one that satisfies
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
12666 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
12667 if ${am_cv_pathless_PYTHON+:} false; then :
12668 $as_echo_n "(cached) " >&6
12671 for am_cv_pathless_PYTHON in python3 python3.3 python3.2 python3.1 python2 python2.7 python none; do
12672 test "$am_cv_pathless_PYTHON" = none && break
12674 # split strings by '.' and convert to numeric. Append some zeros
12675 # because we need at least 4 digits for the hex conversion.
12676 # map returns an iterator in Python 3.0 and a list in 2.x
12677 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
12679 # xrange is not present in Python 3.0 and range returns an iterator
12680 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12681 sys.exit(sys.hexversion < minverhex)"
12682 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
12683 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; then :
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
12692 $as_echo "$am_cv_pathless_PYTHON" >&6; }
12693 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
12694 if test "$am_cv_pathless_PYTHON" = none; then
12697 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
12698 set dummy $am_cv_pathless_PYTHON; ac_word=$2
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12700 $as_echo_n "checking for $ac_word... " >&6; }
12701 if ${ac_cv_path_PYTHON+:} false; then :
12702 $as_echo_n "(cached) " >&6
12706 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12710 for as_dir in $PATH
12713 test -z "$as_dir" && as_dir=.
12714 for ac_exec_ext in '' $ac_executable_extensions; do
12715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12716 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12727 PYTHON=$ac_cv_path_PYTHON
12728 if test -n "$PYTHON"; then
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12730 $as_echo "$PYTHON" >&6; }
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733 $as_echo "no" >&6; }
12738 am_display_PYTHON=$am_cv_pathless_PYTHON
12742 if test "$PYTHON" = :; then
12743 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12748 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12749 if ${am_cv_python_version+:} false; then :
12750 $as_echo_n "(cached) " >&6
12752 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12755 $as_echo "$am_cv_python_version" >&6; }
12756 PYTHON_VERSION=$am_cv_python_version
12760 PYTHON_PREFIX='${prefix}'
12762 PYTHON_EXEC_PREFIX='${exec_prefix}'
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12767 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12768 if ${am_cv_python_platform+:} false; then :
12769 $as_echo_n "(cached) " >&6
12771 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12774 $as_echo "$am_cv_python_platform" >&6; }
12775 PYTHON_PLATFORM=$am_cv_python_platform
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12781 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12782 if ${am_cv_python_pythondir+:} false; then :
12783 $as_echo_n "(cached) " >&6
12785 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX'))" 2>/dev/null ||
12786 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12789 $as_echo "$am_cv_python_pythondir" >&6; }
12790 pythondir=$am_cv_python_pythondir
12794 pkgpythondir=\${pythondir}/$PACKAGE
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12798 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12799 if ${am_cv_python_pyexecdir+:} false; then :
12800 $as_echo_n "(cached) " >&6
12802 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX'))" 2>/dev/null ||
12803 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12806 $as_echo "$am_cv_python_pyexecdir" >&6; }
12807 pyexecdir=$am_cv_python_pyexecdir
12811 pkgpyexecdir=\${pyexecdir}/$PACKAGE
12819 # check if we are building for python 3
12821 # split strings by '.' and convert to numeric. Append some zeros
12822 # because we need at least 4 digits for the hex conversion.
12823 # map returns an iterator in Python 3.0 and a list in 2.x
12824 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
12826 # xrange is not present in Python 3.0 and range returns an iterator
12827 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12828 sys.exit(sys.hexversion < minverhex)"
12829 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12830 ($PYTHON -c "$prog") >&5 2>&5
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; then :
12839 # if building for python 3 make sure we have the minimum version supported
12840 if test $build_py3k = true ; then
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON >= 3.1" >&5
12842 $as_echo_n "checking for $PYTHON >= 3.1... " >&6; }
12844 # split strings by '.' and convert to numeric. Append some zeros
12845 # because we need at least 4 digits for the hex conversion.
12846 # map returns an iterator in Python 3.0 and a list in 2.x
12847 minver = list(map(int, '3.1'.split('.'))) + [0, 0, 0]
12849 # xrange is not present in Python 3.0 and range returns an iterator
12850 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12851 sys.exit(sys.hexversion < minverhex)"
12852 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12853 ($PYTHON -c "$prog") >&5 2>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; then :
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12858 $as_echo "yes" >&6; }
12860 as_fn_error $? "too old" "$LINENO" 5
12864 # - 'SO' for PyPy, CPython 2.7-3.2
12865 # - 'EXT_SUFFIX' for CPython3.3+ (http://bugs.python.org/issue16754)
12866 # - fallback to '.so'
12867 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');"`
12876 # Find any Python interpreter.
12877 if test -z "$PYTHON"; then
12878 for ac_prog in python3 python3.3 python3.2 python3.1 python2 python2.7 python
12880 # Extract the first word of "$ac_prog", so it can be a program name with args.
12881 set dummy $ac_prog; ac_word=$2
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12883 $as_echo_n "checking for $ac_word... " >&6; }
12884 if ${ac_cv_path_PYTHON+:} false; then :
12885 $as_echo_n "(cached) " >&6
12889 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12893 for as_dir in $PATH
12896 test -z "$as_dir" && as_dir=.
12897 for ac_exec_ext in '' $ac_executable_extensions; do
12898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12899 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12910 PYTHON=$ac_cv_path_PYTHON
12911 if test -n "$PYTHON"; then
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12913 $as_echo "$PYTHON" >&6; }
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 $as_echo "no" >&6; }
12920 test -n "$PYTHON" && break
12922 test -n "$PYTHON" || PYTHON=":"
12925 am_display_PYTHON=python
12928 if test "$PYTHON" = :; then
12929 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12934 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12935 if ${am_cv_python_version+:} false; then :
12936 $as_echo_n "(cached) " >&6
12938 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12941 $as_echo "$am_cv_python_version" >&6; }
12942 PYTHON_VERSION=$am_cv_python_version
12946 PYTHON_PREFIX='${prefix}'
12948 PYTHON_EXEC_PREFIX='${exec_prefix}'
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12953 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12954 if ${am_cv_python_platform+:} false; then :
12955 $as_echo_n "(cached) " >&6
12957 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12960 $as_echo "$am_cv_python_platform" >&6; }
12961 PYTHON_PLATFORM=$am_cv_python_platform
12964 # Just factor out some code duplication.
12965 am_python_setup_sysconfig="\
12967 # Prefer sysconfig over distutils.sysconfig, for better compatibility
12968 # with python 3.x. See automake bug#10227.
12971 except ImportError:
12972 can_use_sysconfig = 0
12974 can_use_sysconfig = 1
12975 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
12976 # <https://github.com/pypa/virtualenv/issues/118>
12978 from platform import python_implementation
12979 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
12980 can_use_sysconfig = 0
12981 except ImportError:
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12986 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12987 if ${am_cv_python_pythondir+:} false; then :
12988 $as_echo_n "(cached) " >&6
12990 if test "x$prefix" = xNONE
12992 am_py_prefix=$ac_default_prefix
12994 am_py_prefix=$prefix
12996 am_cv_python_pythondir=`$PYTHON -c "
12997 $am_python_setup_sysconfig
12998 if can_use_sysconfig:
12999 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
13001 from distutils import sysconfig
13002 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
13003 sys.stdout.write(sitedir)"`
13004 case $am_cv_python_pythondir in
13006 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
13007 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
13010 case $am_py_prefix in
13013 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13021 $as_echo "$am_cv_python_pythondir" >&6; }
13022 pythondir=$am_cv_python_pythondir
13026 pkgpythondir=\${pythondir}/$PACKAGE
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
13030 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
13031 if ${am_cv_python_pyexecdir+:} false; then :
13032 $as_echo_n "(cached) " >&6
13034 if test "x$exec_prefix" = xNONE
13036 am_py_exec_prefix=$am_py_prefix
13038 am_py_exec_prefix=$exec_prefix
13040 am_cv_python_pyexecdir=`$PYTHON -c "
13041 $am_python_setup_sysconfig
13042 if can_use_sysconfig:
13043 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
13045 from distutils import sysconfig
13046 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
13047 sys.stdout.write(sitedir)"`
13048 case $am_cv_python_pyexecdir in
13049 $am_py_exec_prefix*)
13050 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
13051 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
13054 case $am_py_exec_prefix in
13057 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13065 $as_echo "$am_cv_python_pyexecdir" >&6; }
13066 pyexecdir=$am_cv_python_pyexecdir
13070 pkgpyexecdir=\${pyexecdir}/$PACKAGE
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
13079 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
13080 if test "x$PYTHON_INCLUDES" = x; then
13081 PYTHON_CONFIG=`which $PYTHON`-config
13082 if test -x "$PYTHON_CONFIG"; then
13083 PYTHON_INCLUDES=`$PYTHON_CONFIG --includes 2>/dev/null`
13085 PYTHON_INCLUDES=`$PYTHON -c "import distutils.sysconfig, sys; sys.stdout.write(distutils.sysconfig.get_python_inc(True))"`
13086 PYTHON_INCLUDES="-I$PYTHON_INCLUDES"
13090 save_CPPFLAGS="$CPPFLAGS"
13091 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h. */
13094 #include <Python.h>
13096 if ac_fn_c_try_cpp "$LINENO"; then :
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13098 $as_echo "found" >&6; }
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13102 $as_echo "not found" >&6; }
13103 as_fn_error $? "Python headers not found" "$LINENO" 5
13105 rm -f conftest.err conftest.i conftest.$ac_ext
13106 CPPFLAGS="$save_CPPFLAGS"
13108 if test "x$link_python_libs" = "xyes"; then
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to embed python" >&5
13111 $as_echo_n "checking for libraries required to embed python... " >&6; }
13112 py_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
13113 if test "x$PYTHON_LIBS" = x; then
13114 PYTHON_CONFIG=`which $PYTHON`-config
13115 if test -x "$PYTHON_CONFIG"; then
13116 PYTHON_LIBS=`$PYTHON_CONFIG --ldflags 2>/dev/null`
13118 PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
13121 if test "x$PYTHON_LIB_LOC" = x; then
13122 PYTHON_LIB_LOC="${py_prefix}/lib"
13127 LIBS="$LIBS $PYTHON_LIBS"
13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h. */
13131 /* Override any GCC internal prototype to avoid an error.
13132 Use char because int might match the return type of a GCC
13133 builtin and then its argument prototype would still apply. */
13137 char Py_Initialize ();
13141 return Py_Initialize ();
13146 if ac_fn_c_try_link "$LINENO"; then :
13147 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13148 $as_echo "yes" >&6; };
13150 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151 $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
13153 rm -f core conftest.err conftest.$ac_objext \
13154 conftest$ac_exeext conftest.$ac_ext
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PySignal_SetWakeupFd in Python.h" >&5
13160 $as_echo_n "checking for PySignal_SetWakeupFd in Python.h... " >&6; }
13161 old_CPPFLAGS=$CPPFLAGS
13162 CPPFLAGS="-Wall -Werror $PYTHON_INCLUDES"
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h. */
13165 #include <Python.h>
13169 PySignal_SetWakeupFd(0);
13174 if ac_fn_c_try_compile "$LINENO"; then :
13179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $setwakeupfd_ok" >&5
13181 $as_echo "$setwakeupfd_ok" >&6; }
13182 if test "x$setwakeupfd_ok" != xno; then
13184 $as_echo "#define HAVE_PYSIGNAL_SETWAKEUPFD 1" >>confdefs.h
13187 CPPFLAGS=$old_CPPFLAGS
13189 PLATFORM=`$PYTHON -c "import sys; from distutils import util; sys.stdout.write(util.get_platform())"`
13192 # Check whether --enable-thread was given.
13193 if test "${enable_thread+set}" = set; then :
13194 enableval=$enable_thread;
13201 py_mod_var=`echo thread'_' | sed 'y%./+-%__p_%'`
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module thread" >&5
13203 $as_echo_n "checking for python module thread... " >&6; }
13204 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13205 $as_echo_n "(cached) " >&6
13212 except ImportError:
13217 if $PYTHON -c "$prog" 1>&5 2>&5
13219 eval "py_cv_mod_$py_mod_var=yes"
13221 eval "py_cv_mod_$py_mod_var=no"
13226 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13227 if test "x$py_val" != xno; then
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13229 $as_echo "yes" >&6; }
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13232 $as_echo "no" >&6; }
13233 enable_thread=check_for_py3_module
13236 if test "x$enable_thread" = xcheck_for_py3_module; then
13238 py_mod_var=`echo _thread'_' | sed 'y%./+-%__p_%'`
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module _thread" >&5
13240 $as_echo_n "checking for python module _thread... " >&6; }
13241 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13242 $as_echo_n "(cached) " >&6
13249 except ImportError:
13254 if $PYTHON -c "$prog" 1>&5 2>&5
13256 eval "py_cv_mod_$py_mod_var=yes"
13258 eval "py_cv_mod_$py_mod_var=no"
13263 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13264 if test "x$py_val" != xno; then
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13266 $as_echo "yes" >&6; }
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270 $as_echo "no" >&6; }
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable threading in pygobject" >&5
13277 $as_echo_n "checking whether to enable threading in pygobject... " >&6; }
13278 if test "x$enable_thread" != xno; then
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13282 $as_echo "yes" >&6; }
13285 THREADING_CFLAGS="-DDISABLE_THREADING"
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13287 $as_echo "no" >&6; }
13290 CPPFLAGS="${CPPFLAGS} $THREADING_CFLAGS"
13292 export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
13294 # Check whether --enable-glibtest was given.
13295 if test "${enable_glibtest+set}" = set; then :
13296 enableval=$enable_glibtest;
13298 enable_glibtest=yes
13302 pkg_config_args=glib-2.0
13303 for module in . gobject $extra_mods
13307 pkg_config_args="$pkg_config_args gmodule-2.0"
13310 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
13313 pkg_config_args="$pkg_config_args gobject-2.0"
13316 pkg_config_args="$pkg_config_args gthread-2.0"
13319 pkg_config_args="$pkg_config_args $module-2.0"
13331 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13332 if test -n "$ac_tool_prefix"; then
13333 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13334 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13336 $as_echo_n "checking for $ac_word... " >&6; }
13337 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13338 $as_echo_n "(cached) " >&6
13340 case $PKG_CONFIG in
13342 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13346 for as_dir in $PATH
13349 test -z "$as_dir" && as_dir=.
13350 for ac_exec_ext in '' $ac_executable_extensions; do
13351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13352 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13363 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13364 if test -n "$PKG_CONFIG"; then
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13366 $as_echo "$PKG_CONFIG" >&6; }
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369 $as_echo "no" >&6; }
13374 if test -z "$ac_cv_path_PKG_CONFIG"; then
13375 ac_pt_PKG_CONFIG=$PKG_CONFIG
13376 # Extract the first word of "pkg-config", so it can be a program name with args.
13377 set dummy pkg-config; ac_word=$2
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13379 $as_echo_n "checking for $ac_word... " >&6; }
13380 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13381 $as_echo_n "(cached) " >&6
13383 case $ac_pt_PKG_CONFIG in
13385 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13389 for as_dir in $PATH
13392 test -z "$as_dir" && as_dir=.
13393 for ac_exec_ext in '' $ac_executable_extensions; do
13394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13395 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13406 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13407 if test -n "$ac_pt_PKG_CONFIG"; then
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13409 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13412 $as_echo "no" >&6; }
13415 if test "x$ac_pt_PKG_CONFIG" = x; then
13418 case $cross_compiling:$ac_tool_warned in
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13422 ac_tool_warned=yes ;;
13424 PKG_CONFIG=$ac_pt_PKG_CONFIG
13427 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13431 if test -n "$PKG_CONFIG"; then
13432 _pkg_min_version=0.16
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13434 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13435 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13437 $as_echo "yes" >&6; }
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13440 $as_echo "no" >&6; }
13447 if test "x$PKG_CONFIG" = x ; then
13452 min_glib_version=2.38.0
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
13454 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
13456 if test x$PKG_CONFIG != xno ; then
13457 ## don't try to run the test against uninstalled libtool libs
13458 if $PKG_CONFIG --uninstalled $pkg_config_args; then
13459 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
13463 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
13470 if test x"$no_glib" = x ; then
13471 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
13472 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
13473 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
13474 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
13476 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13477 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13478 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
13479 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13480 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
13481 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13482 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
13483 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13484 if test "x$enable_glibtest" = "xyes" ; then
13485 ac_save_CFLAGS="$CFLAGS"
13486 ac_save_LIBS="$LIBS"
13487 CFLAGS="$CFLAGS $GLIB_CFLAGS"
13488 LIBS="$GLIB_LIBS $LIBS"
13489 rm -f conf.glibtest
13490 if test "$cross_compiling" = yes; then :
13491 echo $ac_n "cross compiling; assumed OK... $ac_c"
13493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h. */
13498 #include <stdlib.h>
13503 unsigned int major, minor, micro;
13505 fclose (fopen ("conf.glibtest", "w"));
13507 if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, µ) != 3) {
13508 printf("%s, bad version string\n", "$min_glib_version");
13512 if ((glib_major_version != $glib_config_major_version) ||
13513 (glib_minor_version != $glib_config_minor_version) ||
13514 (glib_micro_version != $glib_config_micro_version))
13516 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
13517 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
13518 glib_major_version, glib_minor_version, glib_micro_version);
13519 printf ("*** was found! If pkg-config was correct, then it is best\n");
13520 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
13521 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13522 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13523 printf("*** required on your system.\n");
13524 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
13525 printf("*** to point to the correct configuration files\n");
13527 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
13528 (glib_minor_version != GLIB_MINOR_VERSION) ||
13529 (glib_micro_version != GLIB_MICRO_VERSION))
13531 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
13532 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
13533 printf("*** library (version %d.%d.%d)\n",
13534 glib_major_version, glib_minor_version, glib_micro_version);
13538 if ((glib_major_version > major) ||
13539 ((glib_major_version == major) && (glib_minor_version > minor)) ||
13540 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
13546 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
13547 glib_major_version, glib_minor_version, glib_micro_version);
13548 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
13549 major, minor, micro);
13550 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
13552 printf("*** If you have already installed a sufficiently new version, this error\n");
13553 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
13554 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13555 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
13556 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
13557 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13558 printf("*** so that the correct libraries are found at run-time))\n");
13565 if ac_fn_c_try_run "$LINENO"; then :
13570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13571 conftest.$ac_objext conftest.beam conftest.$ac_ext
13574 CFLAGS="$ac_save_CFLAGS"
13575 LIBS="$ac_save_LIBS"
13578 if test "x$no_glib" = x ; then
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
13580 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13584 $as_echo "no" >&6; }
13585 if test "$PKG_CONFIG" = "no" ; then
13586 echo "*** A new enough version of pkg-config was not found."
13587 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
13589 if test -f conf.glibtest ; then
13592 echo "*** Could not run GLIB test program, checking why..."
13593 ac_save_CFLAGS="$CFLAGS"
13594 ac_save_LIBS="$LIBS"
13595 CFLAGS="$CFLAGS $GLIB_CFLAGS"
13596 LIBS="$LIBS $GLIB_LIBS"
13597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13598 /* end confdefs.h. */
13606 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
13611 if ac_fn_c_try_link "$LINENO"; then :
13612 echo "*** The test program compiled, but did not run. This usually means"
13613 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
13614 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
13615 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13616 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13617 echo "*** is required on your system"
13619 echo "*** If you have an old version installed, it is best to remove it, although"
13620 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13622 echo "*** The test program failed to compile or link. See the file config.log for the"
13623 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
13625 rm -f core conftest.err conftest.$ac_objext \
13626 conftest$ac_exeext conftest.$ac_ext
13627 CFLAGS="$ac_save_CFLAGS"
13628 LIBS="$ac_save_LIBS"
13636 GLIB_COMPILE_RESOURCES=""
13637 as_fn_error $? "maybe you want the pygobject-2-4 branch?" "$LINENO" 5
13645 rm -f conf.glibtest
13647 if test -n "$export_dynamic"; then
13648 GLIB_LIBS=`echo $GLIB_LIBS | sed -e "s/$export_dynamic//"`
13650 PYTHON_BASENAME=`basename $PYTHON`
13657 prefix_save=$prefix
13658 exec_prefix_save=$exec_prefix
13660 if test "x$prefix" = "xNONE"; then
13661 prefix=$ac_default_prefix
13663 if test "x$exec_prefix" = "xNONE"; then
13664 exec_prefix=$prefix
13667 full_var="$FROM_VAR"
13669 new_full_var="`eval echo $full_var`"
13670 if test "x$new_full_var"="x$full_var"; then break; fi
13671 full_var=$new_full_var
13674 full_var=$new_full_var
13675 DATADIR="$full_var"
13678 prefix=$prefix_save
13679 exec_prefix=$exec_prefix_save
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
13685 $as_echo_n "checking for FFI... " >&6; }
13687 if test -n "$FFI_CFLAGS"; then
13688 pkg_cv_FFI_CFLAGS="$FFI_CFLAGS"
13689 elif test -n "$PKG_CONFIG"; then
13690 if test -n "$PKG_CONFIG" && \
13691 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
13692 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
13694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13695 test $ac_status = 0; }; then
13696 pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0" 2>/dev/null`
13697 test "x$?" != "x0" && pkg_failed=yes
13704 if test -n "$FFI_LIBS"; then
13705 pkg_cv_FFI_LIBS="$FFI_LIBS"
13706 elif test -n "$PKG_CONFIG"; then
13707 if test -n "$PKG_CONFIG" && \
13708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
13709 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
13711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13712 test $ac_status = 0; }; then
13713 pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0" 2>/dev/null`
13714 test "x$?" != "x0" && pkg_failed=yes
13724 if test $pkg_failed = yes; then
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13726 $as_echo "no" >&6; }
13728 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13729 _pkg_short_errors_supported=yes
13731 _pkg_short_errors_supported=no
13733 if test $_pkg_short_errors_supported = yes; then
13734 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13736 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13738 # Put the nasty error message in config.log where it belongs
13739 echo "$FFI_PKG_ERRORS" >&5
13741 as_fn_error $? "Package requirements (libffi >= 3.0) were not met:
13745 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13746 installed software in a non-standard prefix.
13748 Alternatively, you may set the environment variables FFI_CFLAGS
13749 and FFI_LIBS to avoid the need to call pkg-config.
13750 See the pkg-config man page for more details." "$LINENO" 5
13751 elif test $pkg_failed = untried; then
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13753 $as_echo "no" >&6; }
13754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13756 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13757 is in your PATH or set the PKG_CONFIG environment variable to the full
13758 path to pkg-config.
13760 Alternatively, you may set the environment variables FFI_CFLAGS
13761 and FFI_LIBS to avoid the need to call pkg-config.
13762 See the pkg-config man page for more details.
13764 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13765 See \`config.log' for more details" "$LINENO" 5; }
13767 FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
13768 FFI_LIBS=$pkg_cv_FFI_LIBS
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13770 $as_echo "yes" >&6; }
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
13782 $as_echo_n "checking for GIO... " >&6; }
13784 if test -n "$GIO_CFLAGS"; then
13785 pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
13786 elif test -n "$PKG_CONFIG"; then
13787 if test -n "$PKG_CONFIG" && \
13788 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.38.0\""; } >&5
13789 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.38.0") 2>&5
13791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13792 test $ac_status = 0; }; then
13793 pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.38.0" 2>/dev/null`
13794 test "x$?" != "x0" && pkg_failed=yes
13801 if test -n "$GIO_LIBS"; then
13802 pkg_cv_GIO_LIBS="$GIO_LIBS"
13803 elif test -n "$PKG_CONFIG"; then
13804 if test -n "$PKG_CONFIG" && \
13805 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.38.0\""; } >&5
13806 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.38.0") 2>&5
13808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13809 test $ac_status = 0; }; then
13810 pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.38.0" 2>/dev/null`
13811 test "x$?" != "x0" && pkg_failed=yes
13821 if test $pkg_failed = yes; then
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13823 $as_echo "no" >&6; }
13825 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13826 _pkg_short_errors_supported=yes
13828 _pkg_short_errors_supported=no
13830 if test $_pkg_short_errors_supported = yes; then
13831 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.38.0" 2>&1`
13833 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.38.0" 2>&1`
13835 # Put the nasty error message in config.log where it belongs
13836 echo "$GIO_PKG_ERRORS" >&5
13838 as_fn_error $? "Package requirements (gio-2.0 >= 2.38.0) were not met:
13842 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13843 installed software in a non-standard prefix.
13845 Alternatively, you may set the environment variables GIO_CFLAGS
13846 and GIO_LIBS to avoid the need to call pkg-config.
13847 See the pkg-config man page for more details." "$LINENO" 5
13848 elif test $pkg_failed = untried; then
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13850 $as_echo "no" >&6; }
13851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13853 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13854 is in your PATH or set the PKG_CONFIG environment variable to the full
13855 path to pkg-config.
13857 Alternatively, you may set the environment variables GIO_CFLAGS
13858 and GIO_LIBS to avoid the need to call pkg-config.
13859 See the pkg-config man page for more details.
13861 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13862 See \`config.log' for more details" "$LINENO" 5; }
13864 GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
13865 GIO_LIBS=$pkg_cv_GIO_LIBS
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13867 $as_echo "yes" >&6; }
13871 # Check whether --enable-cairo was given.
13872 if test "${enable_cairo+set}" = set; then :
13873 enableval=$enable_cairo; enable_cairo=$enableval
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GI" >&5
13882 $as_echo_n "checking for GI... " >&6; }
13884 if test -n "$GI_CFLAGS"; then
13885 pkg_cv_GI_CFLAGS="$GI_CFLAGS"
13886 elif test -n "$PKG_CONFIG"; then
13887 if test -n "$PKG_CONFIG" && \
13888 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.38.0
13889 gobject-introspection-1.0 >= 1.39.0
13891 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0
13892 gobject-introspection-1.0 >= 1.39.0
13895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13896 test $ac_status = 0; }; then
13897 pkg_cv_GI_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.38.0
13898 gobject-introspection-1.0 >= 1.39.0
13900 test "x$?" != "x0" && pkg_failed=yes
13907 if test -n "$GI_LIBS"; then
13908 pkg_cv_GI_LIBS="$GI_LIBS"
13909 elif test -n "$PKG_CONFIG"; then
13910 if test -n "$PKG_CONFIG" && \
13911 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.38.0
13912 gobject-introspection-1.0 >= 1.39.0
13914 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0
13915 gobject-introspection-1.0 >= 1.39.0
13918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13919 test $ac_status = 0; }; then
13920 pkg_cv_GI_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.38.0
13921 gobject-introspection-1.0 >= 1.39.0
13923 test "x$?" != "x0" && pkg_failed=yes
13933 if test $pkg_failed = yes; then
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13935 $as_echo "no" >&6; }
13937 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13938 _pkg_short_errors_supported=yes
13940 _pkg_short_errors_supported=no
13942 if test $_pkg_short_errors_supported = yes; then
13943 GI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.38.0
13944 gobject-introspection-1.0 >= 1.39.0
13947 GI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.38.0
13948 gobject-introspection-1.0 >= 1.39.0
13951 # Put the nasty error message in config.log where it belongs
13952 echo "$GI_PKG_ERRORS" >&5
13954 as_fn_error $? "Package requirements (glib-2.0 >= 2.38.0
13955 gobject-introspection-1.0 >= 1.39.0
13960 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13961 installed software in a non-standard prefix.
13963 Alternatively, you may set the environment variables GI_CFLAGS
13964 and GI_LIBS to avoid the need to call pkg-config.
13965 See the pkg-config man page for more details." "$LINENO" 5
13966 elif test $pkg_failed = untried; then
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13968 $as_echo "no" >&6; }
13969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13971 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13972 is in your PATH or set the PKG_CONFIG environment variable to the full
13973 path to pkg-config.
13975 Alternatively, you may set the environment variables GI_CFLAGS
13976 and GI_LIBS to avoid the need to call pkg-config.
13977 See the pkg-config man page for more details.
13979 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13980 See \`config.log' for more details" "$LINENO" 5; }
13982 GI_CFLAGS=$pkg_cv_GI_CFLAGS
13983 GI_LIBS=$pkg_cv_GI_LIBS
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13985 $as_echo "yes" >&6; }
13989 GI_DATADIR=$($PKG_CONFIG --variable=gidatadir gobject-introspection-1.0)
13992 if test "$enable_cairo" != no; then
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
13996 $as_echo_n "checking for CAIRO... " >&6; }
13998 if test -n "$CAIRO_CFLAGS"; then
13999 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
14000 elif test -n "$PKG_CONFIG"; then
14001 if test -n "$PKG_CONFIG" && \
14002 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
14003 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
14005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14006 test $ac_status = 0; }; then
14007 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo cairo-gobject" 2>/dev/null`
14008 test "x$?" != "x0" && pkg_failed=yes
14015 if test -n "$CAIRO_LIBS"; then
14016 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
14017 elif test -n "$PKG_CONFIG"; then
14018 if test -n "$PKG_CONFIG" && \
14019 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
14020 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
14022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14023 test $ac_status = 0; }; then
14024 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo cairo-gobject" 2>/dev/null`
14025 test "x$?" != "x0" && pkg_failed=yes
14035 if test $pkg_failed = yes; then
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14037 $as_echo "no" >&6; }
14039 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14040 _pkg_short_errors_supported=yes
14042 _pkg_short_errors_supported=no
14044 if test $_pkg_short_errors_supported = yes; then
14045 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14047 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14049 # Put the nasty error message in config.log where it belongs
14050 echo "$CAIRO_PKG_ERRORS" >&5
14052 as_fn_error $? "Package requirements (cairo cairo-gobject) were not met:
14056 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14057 installed software in a non-standard prefix.
14059 Alternatively, you may set the environment variables CAIRO_CFLAGS
14060 and CAIRO_LIBS to avoid the need to call pkg-config.
14061 See the pkg-config man page for more details." "$LINENO" 5
14062 elif test $pkg_failed = untried; then
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14064 $as_echo "no" >&6; }
14065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14067 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14068 is in your PATH or set the PKG_CONFIG environment variable to the full
14069 path to pkg-config.
14071 Alternatively, you may set the environment variables CAIRO_CFLAGS
14072 and CAIRO_LIBS to avoid the need to call pkg-config.
14073 See the pkg-config man page for more details.
14075 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14076 See \`config.log' for more details" "$LINENO" 5; }
14078 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
14079 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14081 $as_echo "yes" >&6; }
14085 if test $build_py3k = true; then
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14089 $as_echo_n "checking for PYCAIRO... " >&6; }
14091 if test -n "$PYCAIRO_CFLAGS"; then
14092 pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14093 elif test -n "$PKG_CONFIG"; then
14094 if test -n "$PKG_CONFIG" && \
14095 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14097 ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14101 test $ac_status = 0; }; then
14102 pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "py3cairo >= 1.10.0
14104 test "x$?" != "x0" && pkg_failed=yes
14111 if test -n "$PYCAIRO_LIBS"; then
14112 pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14113 elif test -n "$PKG_CONFIG"; then
14114 if test -n "$PKG_CONFIG" && \
14115 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14117 ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14121 test $ac_status = 0; }; then
14122 pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "py3cairo >= 1.10.0
14124 test "x$?" != "x0" && pkg_failed=yes
14134 if test $pkg_failed = yes; then
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14136 $as_echo "no" >&6; }
14138 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14139 _pkg_short_errors_supported=yes
14141 _pkg_short_errors_supported=no
14143 if test $_pkg_short_errors_supported = yes; then
14144 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "py3cairo >= 1.10.0
14147 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "py3cairo >= 1.10.0
14150 # Put the nasty error message in config.log where it belongs
14151 echo "$PYCAIRO_PKG_ERRORS" >&5
14153 as_fn_error $? "Package requirements (py3cairo >= 1.10.0
14156 $PYCAIRO_PKG_ERRORS
14158 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14159 installed software in a non-standard prefix.
14161 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14162 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14163 See the pkg-config man page for more details." "$LINENO" 5
14164 elif test $pkg_failed = untried; then
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14166 $as_echo "no" >&6; }
14167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14169 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14170 is in your PATH or set the PKG_CONFIG environment variable to the full
14171 path to pkg-config.
14173 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14174 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14175 See the pkg-config man page for more details.
14177 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14178 See \`config.log' for more details" "$LINENO" 5; }
14180 PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14181 PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14183 $as_echo "yes" >&6; }
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14190 $as_echo_n "checking for PYCAIRO... " >&6; }
14192 if test -n "$PYCAIRO_CFLAGS"; then
14193 pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14194 elif test -n "$PKG_CONFIG"; then
14195 if test -n "$PKG_CONFIG" && \
14196 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14198 ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14202 test $ac_status = 0; }; then
14203 pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "pycairo >= 1.2.0
14205 test "x$?" != "x0" && pkg_failed=yes
14212 if test -n "$PYCAIRO_LIBS"; then
14213 pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14214 elif test -n "$PKG_CONFIG"; then
14215 if test -n "$PKG_CONFIG" && \
14216 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14218 ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14222 test $ac_status = 0; }; then
14223 pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "pycairo >= 1.2.0
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 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pycairo >= 1.2.0
14248 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pycairo >= 1.2.0
14251 # Put the nasty error message in config.log where it belongs
14252 echo "$PYCAIRO_PKG_ERRORS" >&5
14254 as_fn_error $? "Package requirements (pycairo >= 1.2.0
14257 $PYCAIRO_PKG_ERRORS
14259 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14260 installed software in a non-standard prefix.
14262 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14263 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14264 See the pkg-config man page for more details." "$LINENO" 5
14265 elif test $pkg_failed = untried; then
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14267 $as_echo "no" >&6; }
14268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14270 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14271 is in your PATH or set the PKG_CONFIG environment variable to the full
14272 path to pkg-config.
14274 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14275 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14276 See the pkg-config man page for more details.
14278 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14279 See \`config.log' for more details" "$LINENO" 5; }
14281 PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14282 PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14284 $as_echo "yes" >&6; }
14289 if test "$enable_cairo" = "yes"; then
14291 ENABLE_CAIRO_FALSE='#'
14293 ENABLE_CAIRO_TRUE='#'
14294 ENABLE_CAIRO_FALSE=
14299 # Check whether --with-common was given.
14300 if test "${with_common+set}" = set; then :
14301 withval=$with_common; with_common=$enableval
14306 if test "$with_common" = "yes"; then
14308 WITH_COMMON_FALSE='#'
14310 WITH_COMMON_TRUE='#'
14315 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14316 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14321 # compiler warnings, errors, required cflags, and code coverage support
14324 # Check whether --enable-compile-warnings was given.
14325 if test "${enable_compile_warnings+set}" = set; then :
14326 enableval=$enable_compile_warnings;
14328 enable_compile_warnings="maximum"
14332 if test "x$GCC" != xyes; then
14333 enable_compile_warnings=no
14337 realsave_CFLAGS="$CFLAGS"
14339 base_warn_flags=" \
14341 -Wstrict-prototypes \
14345 base_error_flags=" \
14346 -Werror=missing-prototypes \
14347 -Werror=implicit-function-declaration \
14348 -Werror=pointer-arith \
14349 -Werror=init-self \
14350 -Werror=format-security \
14352 -Werror=missing-include-dirs \
14355 additional_flags=""
14357 case "$enable_compile_warnings" in
14362 warning_flags="-Wall"
14365 warning_flags="$base_warn_flags $base_error_flags $additional_flags"
14368 as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5
14372 if test "$enable_compile_warnings" = "error" ; then
14373 warning_flags="$warning_flags -Werror"
14376 for option in $warning_flags; do
14377 save_CFLAGS="$CFLAGS"
14378 CFLAGS="$CFLAGS $option"
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5
14380 $as_echo_n "checking whether gcc understands $option... " >&6; }
14381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14382 /* end confdefs.h. */
14392 if ac_fn_c_try_compile "$LINENO"; then :
14397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14398 CFLAGS="$save_CFLAGS"
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
14400 $as_echo "$has_option" >&6; }
14401 if test $has_option = yes; then
14402 tested_warning_flags="$tested_warning_flags $option"
14408 CFLAGS="$realsave_CFLAGS"
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
14410 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tested_warning_flags" >&5
14412 $as_echo "$tested_warning_flags" >&6; }
14414 # Check whether --enable-iso-c was given.
14415 if test "${enable_iso_c+set}" = set; then :
14416 enableval=$enable_iso_c;
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what language compliance flags to pass to the C compiler" >&5
14423 $as_echo_n "checking what language compliance flags to pass to the C compiler... " >&6; }
14425 if test "x$enable_iso_c" != "xno"; then
14426 if test "x$GCC" = "xyes"; then
14427 case " $CFLAGS " in
14428 *\ \ -ansi\ \ *) ;;
14429 *) complCFLAGS="$complCFLAGS -ansi" ;;
14431 case " $CFLAGS " in
14432 *\ \ -pedantic\ \ *) ;;
14433 *) complCFLAGS="$complCFLAGS -pedantic" ;;
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $complCFLAGS" >&5
14438 $as_echo "$complCFLAGS" >&6; }
14440 WARN_CFLAGS="$tested_warning_flags $complCFLAGS"
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gnome code coverage support" >&5
14444 $as_echo_n "checking for Gnome code coverage support... " >&6; }
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14446 $as_echo "yes" >&6; }
14451 # allow to override gcov location
14453 # Check whether --with-gcov was given.
14454 if test "${with_gcov+set}" = set; then :
14455 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
14457 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
14462 $as_echo_n "checking whether to build with code coverage support... " >&6; }
14463 # Check whether --enable-code-coverage was given.
14464 if test "${enable_code_coverage+set}" = set; then :
14465 enableval=$enable_code_coverage;
14467 enable_code_coverage=no
14471 if test x$enable_code_coverage = xyes; then
14472 CODE_COVERAGE_ENABLED_TRUE=
14473 CODE_COVERAGE_ENABLED_FALSE='#'
14475 CODE_COVERAGE_ENABLED_TRUE='#'
14476 CODE_COVERAGE_ENABLED_FALSE=
14479 CODE_COVERAGE_ENABLED=$enable_code_coverage
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
14482 $as_echo "$enable_code_coverage" >&6; }
14484 if test "$enable_code_coverage" = "yes" ; then :
14487 if test -n "$ac_tool_prefix"; then
14488 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
14489 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14491 $as_echo_n "checking for $ac_word... " >&6; }
14492 if ${ac_cv_prog_GCOV+:} false; then :
14493 $as_echo_n "(cached) " >&6
14495 if test -n "$GCOV"; then
14496 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
14498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14499 for as_dir in $PATH
14502 test -z "$as_dir" && as_dir=.
14503 for ac_exec_ext in '' $ac_executable_extensions; do
14504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14505 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
14506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14515 GCOV=$ac_cv_prog_GCOV
14516 if test -n "$GCOV"; then
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
14518 $as_echo "$GCOV" >&6; }
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14521 $as_echo "no" >&6; }
14526 if test -z "$ac_cv_prog_GCOV"; then
14528 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
14529 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14531 $as_echo_n "checking for $ac_word... " >&6; }
14532 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
14533 $as_echo_n "(cached) " >&6
14535 if test -n "$ac_ct_GCOV"; then
14536 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
14538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14539 for as_dir in $PATH
14542 test -z "$as_dir" && as_dir=.
14543 for ac_exec_ext in '' $ac_executable_extensions; do
14544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14545 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
14546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14555 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
14556 if test -n "$ac_ct_GCOV"; then
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
14558 $as_echo "$ac_ct_GCOV" >&6; }
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14561 $as_echo "no" >&6; }
14564 if test "x$ac_ct_GCOV" = x; then
14567 case $cross_compiling:$ac_tool_warned in
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14571 ac_tool_warned=yes ;;
14576 GCOV="$ac_cv_prog_GCOV"
14579 if test "X$GCOV" = "X:"; then :
14580 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
14584 if test "$GCC" = "no" ; then :
14586 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
14590 # List of supported lcov versions.
14591 lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11"
14593 # Extract the first word of "lcov", so it can be a program name with args.
14594 set dummy lcov; ac_word=$2
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14596 $as_echo_n "checking for $ac_word... " >&6; }
14597 if ${ac_cv_prog_LCOV+:} false; then :
14598 $as_echo_n "(cached) " >&6
14600 if test -n "$LCOV"; then
14601 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
14603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14604 for as_dir in $PATH
14607 test -z "$as_dir" && as_dir=.
14608 for ac_exec_ext in '' $ac_executable_extensions; do
14609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14610 ac_cv_prog_LCOV="lcov"
14611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14620 LCOV=$ac_cv_prog_LCOV
14621 if test -n "$LCOV"; then
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
14623 $as_echo "$LCOV" >&6; }
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14626 $as_echo "no" >&6; }
14630 # Extract the first word of "genhtml", so it can be a program name with args.
14631 set dummy genhtml; ac_word=$2
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14633 $as_echo_n "checking for $ac_word... " >&6; }
14634 if ${ac_cv_prog_GENHTML+:} false; then :
14635 $as_echo_n "(cached) " >&6
14637 if test -n "$GENHTML"; then
14638 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
14640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14641 for as_dir in $PATH
14644 test -z "$as_dir" && as_dir=.
14645 for ac_exec_ext in '' $ac_executable_extensions; do
14646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14647 ac_cv_prog_GENHTML="genhtml"
14648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14657 GENHTML=$ac_cv_prog_GENHTML
14658 if test -n "$GENHTML"; then
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
14660 $as_echo "$GENHTML" >&6; }
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14663 $as_echo "no" >&6; }
14668 if test "$LCOV" ; then :
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
14671 $as_echo_n "checking for lcov version... " >&6; }
14672 if ${ax_cv_lcov_version+:} false; then :
14673 $as_echo_n "(cached) " >&6
14676 ax_cv_lcov_version=invalid
14677 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
14678 for lcov_check_version in $lcov_version_list; do
14679 if test "$lcov_version" = "$lcov_check_version"; then
14680 ax_cv_lcov_version="$lcov_check_version (ok)"
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lcov_version" >&5
14686 $as_echo "$ax_cv_lcov_version" >&6; }
14690 lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
14691 as_fn_error $? "$lcov_msg" "$LINENO" 5
14695 case $ax_cv_lcov_version in
14697 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
14698 as_fn_error $? "$lcov_msg" "$LINENO" 5
14703 if test -z "$GENHTML" ; then :
14705 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
14709 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
14710 CODE_COVERAGE_LDFLAGS="-lgcov"
14717 CODE_COVERAGE_RULES='
14721 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
14722 # (Default: $(top_builddir))
14723 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
14724 # by lcov for code coverage. (Default:
14725 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
14726 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
14727 # reports to be created. (Default:
14728 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
14729 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
14730 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the lcov instance.
14731 # (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
14732 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
14733 # (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
14734 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
14735 # instance. (Default: empty)
14736 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
14738 # The generated report will be titled using the $(PACKAGE_NAME) and
14739 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
14740 # use the git-version-gen script, available online.
14742 # Optional variables
14743 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
14744 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
14745 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
14746 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
14747 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
14748 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
14749 CODE_COVERAGE_GENHTML_OPTIONS ?=
14750 CODE_COVERAGE_IGNORE_PATTERN ?=
14752 code_coverage_quiet = $(code_coverage_quiet_$(V))
14753 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
14754 code_coverage_quiet_0 = --quiet
14756 # Use recursive makes in order to ignore errors during check
14757 check-code-coverage:
14758 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14759 -$(MAKE) $(AM_MAKEFLAGS) -k check
14760 $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
14762 @echo "Need to reconfigure with --enable-code-coverage"
14765 # Capture code coverage data
14766 code-coverage-capture: code-coverage-capture-hook
14767 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14768 $(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)
14769 $(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)"
14770 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
14771 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)
14772 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
14774 @echo "Need to reconfigure with --enable-code-coverage"
14777 # Hook rule executed before code-coverage-capture, overridable by the user
14778 code-coverage-capture-hook:
14780 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14781 clean: code-coverage-clean
14782 code-coverage-clean:
14783 -$(LCOV) --directory $(top_builddir) -z
14784 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14785 -find . -name "*.gcda" -o -name "*.gcov" -delete
14789 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14791 DISTCHECK_CONFIGURE_FLAGS ?=
14792 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
14794 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
14800 GNOME_CODE_COVERAGE_RULES=$CODE_COVERAGE_RULES
14806 if test "x$GCC" = "xyes"; then
14808 case " $CFLAGS " in
14809 *[\ \ ]-Wall[\ \ ]*)
14812 save_CFLAGS="$CFLAGS"
14813 CFLAGS="$CFLAGS -Wall"
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Wall" >&5
14815 $as_echo_n "checking whether $CC understands -Wall... " >&6; }
14816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14817 /* end confdefs.h. */
14827 if ac_fn_c_try_compile "$LINENO"; then :
14832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14834 $as_echo "$jh_has_option" >&6; }
14835 if test $jh_has_option = no; then
14836 CFLAGS="$save_CFLAGS"
14841 case " $CFLAGS " in
14842 *[\ \ ]-Werror=unused-variable[\ \ ]*)
14845 save_CFLAGS="$CFLAGS"
14846 CFLAGS="$CFLAGS -Werror=unused-variable"
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=unused-variable" >&5
14848 $as_echo_n "checking whether $CC understands -Werror=unused-variable... " >&6; }
14849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14850 /* end confdefs.h. */
14860 if ac_fn_c_try_compile "$LINENO"; then :
14865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14867 $as_echo "$jh_has_option" >&6; }
14868 if test $jh_has_option = no; then
14869 CFLAGS="$save_CFLAGS"
14874 case " $CFLAGS " in
14875 *[\ \ ]-fno-strict-aliasing[\ \ ]*)
14878 save_CFLAGS="$CFLAGS"
14879 CFLAGS="$CFLAGS -fno-strict-aliasing"
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -fno-strict-aliasing" >&5
14881 $as_echo_n "checking whether $CC understands -fno-strict-aliasing... " >&6; }
14882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14883 /* end confdefs.h. */
14893 if ac_fn_c_try_compile "$LINENO"; then :
14898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14900 $as_echo "$jh_has_option" >&6; }
14901 if test $jh_has_option = no; then
14902 CFLAGS="$save_CFLAGS"
14907 case " $CFLAGS " in
14908 *[\ \ ]-Werror=declaration-after-statement[\ \ ]*)
14911 save_CFLAGS="$CFLAGS"
14912 CFLAGS="$CFLAGS -Werror=declaration-after-statement"
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=declaration-after-statement" >&5
14914 $as_echo_n "checking whether $CC understands -Werror=declaration-after-statement... " >&6; }
14915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14916 /* end confdefs.h. */
14926 if ac_fn_c_try_compile "$LINENO"; then :
14931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14933 $as_echo "$jh_has_option" >&6; }
14934 if test $jh_has_option = no; then
14935 CFLAGS="$save_CFLAGS"
14945 case " $CFLAGS " in
14946 *[\ \ ]-std=c90[\ \ ]*)
14949 save_CFLAGS="$CFLAGS"
14950 CFLAGS="$CFLAGS -std=c90"
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -std=c90" >&5
14952 $as_echo_n "checking whether $CC understands -std=c90... " >&6; }
14953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14954 /* end confdefs.h. */
14964 if ac_fn_c_try_compile "$LINENO"; then :
14969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14971 $as_echo "$jh_has_option" >&6; }
14972 if test $jh_has_option = no; then
14973 CFLAGS="$save_CFLAGS"
14982 CFLAGS="$CFLAGS $WARN_CFLAGS $CODE_COVERAGE_CFLAGS"
14983 LDFLAGS="$LDFLAGS $CODE_COVERAGE_CFLAGS"
14985 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"
14987 cat >confcache <<\_ACEOF
14988 # This file is a shell script that caches the results of configure
14989 # tests run on this system so they can be shared between configure
14990 # scripts and configure runs, see configure's option --config-cache.
14991 # It is not useful on other systems. If it contains results you don't
14992 # want to keep, you may remove or edit it.
14994 # config.status only pays attention to the cache file if you give it
14995 # the --recheck option to rerun configure.
14997 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14998 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14999 # following values.
15003 # The following way of writing the cache mishandles newlines in values,
15004 # but we know of no workaround that is simple, portable, and efficient.
15005 # So, we kill variables containing newlines.
15006 # Ultrix sh set writes to stderr and can't be redirected directly,
15007 # and sets the high bit in the cache file unless we assign to the vars.
15009 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15010 eval ac_val=\$$ac_var
15014 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15015 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15018 _ | IFS | as_nl) ;; #(
15019 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15020 *) { eval $ac_var=; unset $ac_var;} ;;
15026 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15027 *${as_nl}ac_space=\ *)
15028 # `set' does not quote correctly, so add quotes: double-quote
15029 # substitution turns \\\\ into \\, and sed turns \\ into \.
15032 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15035 # `set' quotes correctly as required by POSIX, so do not add quotes.
15036 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15045 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15047 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15049 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15050 if test -w "$cache_file"; then
15051 if test "x$cache_file" != "x/dev/null"; then
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15053 $as_echo "$as_me: updating cache $cache_file" >&6;}
15054 if test ! -f "$cache_file" || test -h "$cache_file"; then
15055 cat confcache >"$cache_file"
15057 case $cache_file in #(
15059 mv -f confcache "$cache_file"$$ &&
15060 mv -f "$cache_file"$$ "$cache_file" ;; #(
15062 mv -f confcache "$cache_file" ;;
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15068 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15073 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15074 # Let make expand exec_prefix.
15075 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15077 DEFS=-DHAVE_CONFIG_H
15082 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15083 # 1. Remove the extension, and $U if already installed.
15084 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15085 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15086 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15087 # will be set to the directory where LIBOBJS objects are built.
15088 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15089 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15091 LIBOBJS=$ac_libobjs
15093 LTLIBOBJS=$ac_ltlibobjs
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15097 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15098 if test -n "$am_sleep_pid"; then
15099 # Hide warnings about reused PIDs.
15100 wait $am_sleep_pid 2>/dev/null
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15103 $as_echo "done" >&6; }
15104 if test -n "$EXEEXT"; then
15106 am__EXEEXT_FALSE='#'
15108 am__EXEEXT_TRUE='#'
15112 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
15113 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
15114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15116 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15117 as_fn_error $? "conditional \"AMDEP\" was never defined.
15118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15120 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15121 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15124 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15125 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15128 if test -z "${ENABLE_CAIRO_TRUE}" && test -z "${ENABLE_CAIRO_FALSE}"; then
15129 as_fn_error $? "conditional \"ENABLE_CAIRO\" was never defined.
15130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15132 if test -z "${WITH_COMMON_TRUE}" && test -z "${WITH_COMMON_FALSE}"; then
15133 as_fn_error $? "conditional \"WITH_COMMON\" was never defined.
15134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15136 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
15137 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
15138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15141 : "${CONFIG_STATUS=./config.status}"
15143 ac_clean_files_save=$ac_clean_files
15144 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15146 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15148 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15150 # Generated by $as_me.
15151 # Run this file to recreate the current configuration.
15152 # Compiler output produced by configure, useful for debugging
15153 # configure, is in config.log if it exists.
15156 ac_cs_recheck=false
15159 SHELL=\${CONFIG_SHELL-$SHELL}
15162 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15163 ## -------------------- ##
15164 ## M4sh Initialization. ##
15165 ## -------------------- ##
15167 # Be more Bourne compatible
15168 DUALCASE=1; export DUALCASE # for MKS sh
15169 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15172 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15173 # is contrary to our usage. Disable this feature.
15174 alias -g '${1+"$@"}'='"$@"'
15175 setopt NO_GLOB_SUBST
15177 case `(set -o) 2>/dev/null` in #(
15189 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15190 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15191 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15192 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15193 # Prefer a ksh shell builtin over an external printf program on Solaris,
15194 # but without wasting forks for bash or zsh.
15195 if test -z "$BASH_VERSION$ZSH_VERSION" \
15196 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15197 as_echo='print -r --'
15198 as_echo_n='print -rn --'
15199 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15200 as_echo='printf %s\n'
15201 as_echo_n='printf %s'
15203 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15204 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15205 as_echo_n='/usr/ucb/echo -n'
15207 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15208 as_echo_n_body='eval
15212 expr "X$arg" : "X\\(.*\\)$as_nl";
15213 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15215 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15217 export as_echo_n_body
15218 as_echo_n='sh -c $as_echo_n_body as_echo'
15220 export as_echo_body
15221 as_echo='sh -c $as_echo_body as_echo'
15224 # The user is always right.
15225 if test "${PATH_SEPARATOR+set}" != set; then
15227 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15228 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15235 # We need space, tab and new line, in precisely that order. Quoting is
15236 # there to prevent editors from complaining about space-tab.
15237 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15238 # splitting by setting IFS to empty value.)
15241 # Find who we are. Look in the path if we contain no directory separator.
15244 *[\\/]* ) as_myself=$0 ;;
15245 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15246 for as_dir in $PATH
15249 test -z "$as_dir" && as_dir=.
15250 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15256 # We did not find ourselves, most probably we were run as `sh COMMAND'
15257 # in which case we are not to be found in the path.
15258 if test "x$as_myself" = x; then
15261 if test ! -f "$as_myself"; then
15262 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15266 # Unset variables that we do not need and which cause bugs (e.g. in
15267 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15268 # suppresses any "Segmentation fault" message there. '((' could
15269 # trigger a bug in pdksh 5.2.14.
15270 for as_var in BASH_ENV ENV MAIL MAILPATH
15271 do eval test x\${$as_var+set} = xset \
15272 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15288 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15289 # ----------------------------------------
15290 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15291 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15292 # script with STATUS, using 1 if that was 0.
15295 as_status=$1; test $as_status -eq 0 && as_status=1
15297 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15298 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15300 $as_echo "$as_me: error: $2" >&2
15301 as_fn_exit $as_status
15305 # as_fn_set_status STATUS
15306 # -----------------------
15307 # Set $? to STATUS, without forking.
15308 as_fn_set_status ()
15311 } # as_fn_set_status
15313 # as_fn_exit STATUS
15314 # -----------------
15315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15319 as_fn_set_status $1
15325 # Portably unset VAR.
15328 { eval $1=; unset $1;}
15330 as_unset=as_fn_unset
15331 # as_fn_append VAR VALUE
15332 # ----------------------
15333 # Append the text in VALUE to the end of the definition contained in VAR. Take
15334 # advantage of any shell optimizations that allow amortized linear growth over
15335 # repeated appends, instead of the typical quadratic growth present in naive
15337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15338 eval 'as_fn_append ()
15349 # as_fn_arith ARG...
15350 # ------------------
15351 # Perform arithmetic evaluation on the ARGs, and store the result in the
15352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15353 # must be portable across $(()) and expr.
15354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15355 eval 'as_fn_arith ()
15362 as_val=`expr "$@" || test $? -eq 1`
15367 if expr a : '\(a\)' >/dev/null 2>&1 &&
15368 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15374 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15375 as_basename=basename
15380 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15386 as_me=`$as_basename -- "$0" ||
15387 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15388 X"$0" : 'X\(//\)$' \| \
15389 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15391 sed '/^.*\/\([^/][^/]*\)\/*$/{
15405 # Avoid depending upon Character Ranges.
15406 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15407 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15408 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15409 as_cr_digits='0123456789'
15410 as_cr_alnum=$as_cr_Letters$as_cr_digits
15412 ECHO_C= ECHO_N= ECHO_T=
15413 case `echo -n x` in #(((((
15415 case `echo 'xy\c'` in
15416 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15418 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15425 rm -f conf$$ conf$$.exe conf$$.file
15426 if test -d conf$$.dir; then
15427 rm -f conf$$.dir/conf$$.file
15430 mkdir conf$$.dir 2>/dev/null
15432 if (echo >conf$$.file) 2>/dev/null; then
15433 if ln -s conf$$.file conf$$ 2>/dev/null; then
15435 # ... but there are two gotchas:
15436 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15437 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15438 # In both cases, we have to default to `cp -pR'.
15439 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15441 elif ln conf$$.file conf$$ 2>/dev/null; then
15449 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15450 rmdir conf$$.dir 2>/dev/null
15455 # Create "$as_dir" as a directory, including parents if necessary.
15460 -*) as_dir=./$as_dir;;
15462 test -d "$as_dir" || eval $as_mkdir_p || {
15466 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15467 *) as_qdir=$as_dir;;
15469 as_dirs="'$as_qdir' $as_dirs"
15470 as_dir=`$as_dirname -- "$as_dir" ||
15471 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15472 X"$as_dir" : 'X\(//\)[^/]' \| \
15473 X"$as_dir" : 'X\(//\)$' \| \
15474 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15475 $as_echo X"$as_dir" |
15476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15480 /^X\(\/\/\)[^/].*/{
15493 test -d "$as_dir" && break
15495 test -z "$as_dirs" || eval "mkdir $as_dirs"
15496 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15500 if mkdir -p . 2>/dev/null; then
15501 as_mkdir_p='mkdir -p "$as_dir"'
15503 test -d ./-p && rmdir ./-p
15508 # as_fn_executable_p FILE
15509 # -----------------------
15510 # Test if FILE is an executable regular file.
15511 as_fn_executable_p ()
15513 test -f "$1" && test -x "$1"
15514 } # as_fn_executable_p
15515 as_test_x='test -x'
15516 as_executable_p=as_fn_executable_p
15518 # Sed expression to map a string onto a valid CPP name.
15519 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15521 # Sed expression to map a string onto a valid variable name.
15522 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15526 ## ----------------------------------- ##
15527 ## Main body of $CONFIG_STATUS script. ##
15528 ## ----------------------------------- ##
15530 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15533 # Save the log message, to keep $0 and so on meaningful, and to
15534 # report actual input values of CONFIG_FILES etc. instead of their
15535 # values after options handling.
15537 This file was extended by pygobject $as_me 3.18.0, which was
15538 generated by GNU Autoconf 2.69. Invocation command line was
15540 CONFIG_FILES = $CONFIG_FILES
15541 CONFIG_HEADERS = $CONFIG_HEADERS
15542 CONFIG_LINKS = $CONFIG_LINKS
15543 CONFIG_COMMANDS = $CONFIG_COMMANDS
15546 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15551 case $ac_config_files in *"
15552 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15555 case $ac_config_headers in *"
15556 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15561 # Files that config.status was made for.
15562 config_files="$ac_config_files"
15563 config_headers="$ac_config_headers"
15564 config_commands="$ac_config_commands"
15568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15570 \`$as_me' instantiates files and other configuration actions
15571 from templates according to the current configuration. Unless the files
15572 and actions are specified as TAGs, all are instantiated by default.
15574 Usage: $0 [OPTION]... [TAG]...
15576 -h, --help print this help, then exit
15577 -V, --version print version number and configuration settings, then exit
15578 --config print configuration, then exit
15579 -q, --quiet, --silent
15580 do not print progress messages
15581 -d, --debug don't remove temporary files
15582 --recheck update $as_me by reconfiguring in the same conditions
15583 --file=FILE[:TEMPLATE]
15584 instantiate the configuration file FILE
15585 --header=FILE[:TEMPLATE]
15586 instantiate the configuration header FILE
15588 Configuration files:
15591 Configuration headers:
15594 Configuration commands:
15597 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
15598 pygobject home page: <https://wiki.gnome.org/Projects/PyGObject/>."
15601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15602 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15604 pygobject config.status 3.18.0
15605 configured by $0, generated by GNU Autoconf 2.69,
15606 with options \\"\$ac_cs_config\\"
15608 Copyright (C) 2012 Free Software Foundation, Inc.
15609 This config.status script is free software; the Free Software Foundation
15610 gives unlimited permission to copy, distribute and modify it."
15617 test -n "\$AWK" || AWK=awk
15620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15621 # The default lists apply if the user does not specify any file.
15627 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15628 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15632 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15644 # Handling of the options.
15645 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15647 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15648 $as_echo "$ac_cs_version"; exit ;;
15649 --config | --confi | --conf | --con | --co | --c )
15650 $as_echo "$ac_cs_config"; exit ;;
15651 --debug | --debu | --deb | --de | --d | -d )
15653 --file | --fil | --fi | --f )
15656 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15657 '') as_fn_error $? "missing file argument" ;;
15659 as_fn_append CONFIG_FILES " '$ac_optarg'"
15660 ac_need_defaults=false;;
15661 --header | --heade | --head | --hea )
15664 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15666 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15667 ac_need_defaults=false;;
15669 # Conflict between --help and --header
15670 as_fn_error $? "ambiguous option: \`$1'
15671 Try \`$0 --help' for more information.";;
15672 --help | --hel | -h )
15673 $as_echo "$ac_cs_usage"; exit ;;
15674 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15675 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15678 # This is an error.
15679 -*) as_fn_error $? "unrecognized option: \`$1'
15680 Try \`$0 --help' for more information." ;;
15682 *) as_fn_append ac_config_targets " $1"
15683 ac_need_defaults=false ;;
15689 ac_configure_extra_args=
15691 if $ac_cs_silent; then
15693 ac_configure_extra_args="$ac_configure_extra_args --silent"
15697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15698 if \$ac_cs_recheck; then
15699 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15701 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15702 CONFIG_SHELL='$SHELL'
15703 export CONFIG_SHELL
15708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15712 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15713 ## Running $as_me. ##
15719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15723 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15726 # The HP-UX ksh and POSIX shell print the target directory to stdout
15727 # if CDPATH is set.
15728 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15730 sed_quote_subst='$sed_quote_subst'
15731 double_quote_subst='$double_quote_subst'
15732 delay_variable_subst='$delay_variable_subst'
15733 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15734 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15735 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15736 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15737 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15738 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15739 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15740 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15741 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15742 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15743 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15744 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15745 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15746 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15747 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15748 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15749 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15750 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15751 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15752 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15753 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15754 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15755 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15756 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15757 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15758 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15759 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15760 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15761 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15762 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15763 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15764 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15765 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15766 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15767 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15768 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15769 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15770 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15771 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15772 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15773 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15774 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15775 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15776 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15777 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15778 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15779 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15780 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15781 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15782 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15783 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15784 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15785 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15786 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15787 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15788 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15789 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15790 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"`'
15791 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15792 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15793 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15794 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15795 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15796 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15797 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15798 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15799 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15800 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15801 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15802 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15803 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15804 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15805 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15806 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15807 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15808 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15809 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15810 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15811 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15812 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15813 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15814 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15815 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15816 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15817 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15818 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15819 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15820 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15821 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15822 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15823 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15824 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15825 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15826 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15827 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15828 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15829 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15830 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15831 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15832 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15833 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15834 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15835 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15836 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15837 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15838 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15839 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15840 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15841 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15842 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15843 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15844 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15845 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15846 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15847 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15848 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15849 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15850 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15851 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15852 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15853 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15854 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15855 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15856 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15857 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15858 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15859 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15860 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15861 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15862 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15863 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15866 LTCFLAGS='$LTCFLAGS'
15867 compiler='$compiler_DEFAULT'
15869 # A function that is used when there is no print builtin or printf.
15870 func_fallback_echo ()
15872 eval 'cat <<_LTECHO_EOF
15877 # Quote evaled strings.
15894 deplibs_check_method \
15898 sharedlib_from_linklib_cmd \
15901 archiver_list_spec \
15907 lt_cv_sys_global_symbol_pipe \
15908 lt_cv_sys_global_symbol_to_cdecl \
15909 lt_cv_sys_global_symbol_to_c_name_address \
15910 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15911 nm_file_list_spec \
15912 lt_prog_compiler_no_builtin_flag \
15913 lt_prog_compiler_pic \
15914 lt_prog_compiler_wl \
15915 lt_prog_compiler_static \
15916 lt_cv_prog_compiler_c_o \
15925 export_dynamic_flag_spec \
15926 whole_archive_flag_spec \
15927 compiler_needs_object \
15929 allow_undefined_flag \
15930 no_undefined_flag \
15931 hardcode_libdir_flag_spec \
15932 hardcode_libdir_separator \
15936 variables_saved_for_relink \
15938 library_names_spec \
15940 install_override_mode \
15944 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15945 *[\\\\\\\`\\"\\\$]*)
15946 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15949 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15954 # Double-quote double-evaled strings.
15955 for var in reload_cmds \
15956 old_postinstall_cmds \
15957 old_postuninstall_cmds \
15959 extract_expsyms_cmds \
15960 old_archive_from_new_cmds \
15961 old_archive_from_expsyms_cmds \
15963 archive_expsym_cmds \
15965 module_expsym_cmds \
15966 export_symbols_cmds \
15970 postuninstall_cmds \
15972 sys_lib_search_path_spec \
15973 sys_lib_dlsearch_path_spec; do
15974 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15975 *[\\\\\\\`\\"\\\$]*)
15976 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15979 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15984 ac_aux_dir='$ac_aux_dir'
15985 xsi_shell='$xsi_shell'
15986 lt_shell_append='$lt_shell_append'
15988 # See if we are running on zsh, and set the options which allow our
15989 # commands through without removal of \ escapes INIT.
15990 if test -n "\${ZSH_VERSION+set}" ; then
15991 setopt NO_GLOB_SUBST
15997 TIMESTAMP='$TIMESTAMP'
16006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16008 # Handling of arguments.
16009 for ac_config_target in $ac_config_targets
16011 case $ac_config_target in
16012 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16013 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16014 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16015 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16016 "pygobject-3.0.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0.pc" ;;
16017 "pygobject-3.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0-uninstalled.pc" ;;
16018 "gi/Makefile") CONFIG_FILES="$CONFIG_FILES gi/Makefile" ;;
16019 "gi/repository/Makefile") CONFIG_FILES="$CONFIG_FILES gi/repository/Makefile" ;;
16020 "gi/overrides/Makefile") CONFIG_FILES="$CONFIG_FILES gi/overrides/Makefile" ;;
16021 "gi/_gobject/Makefile") CONFIG_FILES="$CONFIG_FILES gi/_gobject/Makefile" ;;
16022 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
16023 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16024 "pygtkcompat/Makefile") CONFIG_FILES="$CONFIG_FILES pygtkcompat/Makefile" ;;
16025 "PKG-INFO") CONFIG_FILES="$CONFIG_FILES PKG-INFO" ;;
16027 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16032 # If the user did not use the arguments to specify the items to instantiate,
16033 # then the envvar interface is used. Set only those that are not.
16034 # We use the long form for the default assignment because of an extremely
16035 # bizarre bug on SunOS 4.1.3.
16036 if $ac_need_defaults; then
16037 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16038 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16039 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16042 # Have a temporary directory for convenience. Make it in the build tree
16043 # simply because there is no reason against having it here, and in addition,
16044 # creating and moving files from /tmp can sometimes cause problems.
16045 # Hook for its removal unless debugging.
16046 # Note that there is a small window in which the directory will not be cleaned:
16047 # after its creation but before its name has been assigned to `$tmp'.
16051 trap 'exit_status=$?
16052 : "${ac_tmp:=$tmp}"
16053 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16055 trap 'as_fn_exit 1' 1 2 13 15
16057 # Create a (secure) tmp directory for tmp files.
16060 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16064 tmp=./conf$$-$RANDOM
16065 (umask 077 && mkdir "$tmp")
16066 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16069 # Set up the scripts for CONFIG_FILES section.
16070 # No need to generate them if there are no CONFIG_FILES.
16071 # This happens for instance with `./config.status config.h'.
16072 if test -n "$CONFIG_FILES"; then
16075 ac_cr=`echo X | tr X '\015'`
16076 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16077 # But we know of no other shell where ac_cr would be empty at this
16078 # point, so we can use a bashism as a fallback.
16079 if test "x$ac_cr" = x; then
16080 eval ac_cr=\$\'\\r\'
16082 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16083 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16086 ac_cs_awk_cr=$ac_cr
16089 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16094 echo "cat >conf$$subs.awk <<_ACEOF" &&
16095 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16097 } >conf$$subs.sh ||
16098 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16099 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16101 for ac_last_try in false false false false false :; do
16102 . ./conf$$subs.sh ||
16103 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16105 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16106 if test $ac_delim_n = $ac_delim_num; then
16108 elif $ac_last_try; then
16109 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16111 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16114 rm -f conf$$subs.sh
16116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16117 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16121 s/^/S["/; s/!.*/"]=/
16131 s/\(.\{148\}\)..*/\1/
16133 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16138 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16145 s/\(.\{148\}\)..*/\1/
16147 s/["\\]/\\&/g; s/^/"/; s/$/"/
16151 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16156 ' <conf$$subs.awk | sed '
16161 ' >>$CONFIG_STATUS || ac_write_fail=1
16162 rm -f conf$$subs.awk
16163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16165 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16166 for (key in S) S_is_set[key] = 1
16172 nfields = split(line, field, "@")
16174 len = length(field[1])
16175 for (i = 2; i < nfields; i++) {
16177 keylen = length(key)
16178 if (S_is_set[key]) {
16180 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16181 len += length(value) + length(field[++i])
16192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16193 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16194 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16197 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16198 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16201 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16202 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16203 # trailing colons and then remove the whole line if VPATH becomes empty
16204 # (actually we leave an empty line to preserve line numbers).
16205 if test "x$srcdir" = x.; then
16206 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16225 fi # test -n "$CONFIG_FILES"
16227 # Set up the scripts for CONFIG_HEADERS section.
16228 # No need to generate them if there are no CONFIG_HEADERS.
16229 # This happens for instance with `./config.status Makefile'.
16230 if test -n "$CONFIG_HEADERS"; then
16231 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16235 # Transform confdefs.h into an awk script `defines.awk', embedded as
16236 # here-document in config.status, that substitutes the proper values into
16237 # config.h.in to produce config.h.
16239 # Create a delimiter string that does not exist in confdefs.h, to ease
16240 # handling of long lines.
16242 for ac_last_try in false false :; do
16243 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16244 if test -z "$ac_tt"; then
16246 elif $ac_last_try; then
16247 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16249 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16253 # For the awk script, D is an array of macro values keyed by name,
16254 # likewise P contains macro parameters if any. Preserve backslash
16255 # newline sequences.
16257 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16259 s/.\{148\}/&'"$ac_delim"'/g
16262 s/^[ ]*#[ ]*define[ ][ ]*/ /
16269 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16271 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16275 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16276 D["\1"]=" \3\\\\\\n"\\/p
16278 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16283 s/.\{148\}/&'"$ac_delim"'/g
16288 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16291 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16293 ' <confdefs.h | sed '
16294 s/'"$ac_delim"'/"\\\
16295 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16298 for (key in D) D_is_set[key] = 1
16301 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16303 split(line, arg, " ")
16304 if (arg[1] == "#") {
16308 defundef = substr(arg[1], 2)
16311 split(mac1, mac2, "(") #)
16313 prefix = substr(line, 1, index(line, defundef) - 1)
16314 if (D_is_set[macro]) {
16315 # Preserve the white space surrounding the "#".
16316 print prefix "define", macro P[macro] D[macro]
16319 # Replace #undef with comments. This is necessary, for example,
16320 # in the case of _POSIX_SOURCE, which is predefined and required
16321 # on some systems where configure will not decide to define it.
16322 if (defundef == "undef") {
16323 print "/*", prefix defundef, macro, "*/"
16331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16332 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16333 fi # test -n "$CONFIG_HEADERS"
16336 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16341 :[FHLC]) ac_mode=$ac_tag; continue;;
16343 case $ac_mode$ac_tag in
16345 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16346 :[FH]-) ac_tag=-:-;;
16347 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16364 -) ac_f="$ac_tmp/stdin";;
16365 *) # Look for the file first in the build tree, then in the source tree
16366 # (if the path is not absolute). The absolute path cannot be DOS-style,
16367 # because $ac_f cannot contain `:'.
16371 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16373 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16375 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16376 as_fn_append ac_file_inputs " '$ac_f'"
16379 # Let's still pretend it is `configure' which instantiates (i.e., don't
16380 # use $as_me), people would be surprised to read:
16381 # /* config.h. Generated by config.status. */
16382 configure_input='Generated from '`
16383 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16385 if test x"$ac_file" != x-; then
16386 configure_input="$ac_file. $configure_input"
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16388 $as_echo "$as_me: creating $ac_file" >&6;}
16390 # Neutralize special characters interpreted by sed in replacement strings.
16391 case $configure_input in #(
16392 *\&* | *\|* | *\\* )
16393 ac_sed_conf_input=`$as_echo "$configure_input" |
16394 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16395 *) ac_sed_conf_input=$configure_input;;
16399 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16400 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16405 ac_dir=`$as_dirname -- "$ac_file" ||
16406 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16407 X"$ac_file" : 'X\(//\)[^/]' \| \
16408 X"$ac_file" : 'X\(//\)$' \| \
16409 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16410 $as_echo X"$ac_file" |
16411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16415 /^X\(\/\/\)[^/].*/{
16428 as_dir="$ac_dir"; as_fn_mkdir_p
16432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16435 # A ".." for each directory in $ac_dir_suffix.
16436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16437 case $ac_top_builddir_sub in
16438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16442 ac_abs_top_builddir=$ac_pwd
16443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16444 # for backward compatibility:
16445 ac_top_builddir=$ac_top_build_prefix
16448 .) # We are building in place.
16450 ac_top_srcdir=$ac_top_builddir_sub
16451 ac_abs_top_srcdir=$ac_pwd ;;
16452 [\\/]* | ?:[\\/]* ) # Absolute name.
16453 ac_srcdir=$srcdir$ac_dir_suffix;
16454 ac_top_srcdir=$srcdir
16455 ac_abs_top_srcdir=$srcdir ;;
16456 *) # Relative name.
16457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16458 ac_top_srcdir=$ac_top_build_prefix$srcdir
16459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16471 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16472 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16474 ac_MKDIR_P=$MKDIR_P
16476 [\\/$]* | ?:[\\/]* ) ;;
16477 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16482 # If the template does not know about datarootdir, expand it.
16483 # FIXME: This hack should be removed a few years after 2.60.
16484 ac_datarootdir_hack=; ac_datarootdir_seen=
16495 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16496 *datarootdir*) ac_datarootdir_seen=yes;;
16497 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16499 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16502 ac_datarootdir_hack='
16503 s&@datadir@&$datadir&g
16504 s&@docdir@&$docdir&g
16505 s&@infodir@&$infodir&g
16506 s&@localedir@&$localedir&g
16507 s&@mandir@&$mandir&g
16508 s&\\\${datarootdir}&$datarootdir&g' ;;
16512 # Neutralize VPATH when `$srcdir' = `.'.
16513 # Shell code in configure.ac might set extrasub.
16514 # FIXME: do we really want to maintain this feature?
16515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16516 ac_sed_extra="$ac_vpsub
16519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16521 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16522 s|@configure_input@|$ac_sed_conf_input|;t t
16523 s&@top_builddir@&$ac_top_builddir_sub&;t t
16524 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16525 s&@srcdir@&$ac_srcdir&;t t
16526 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16527 s&@top_srcdir@&$ac_top_srcdir&;t t
16528 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16529 s&@builddir@&$ac_builddir&;t t
16530 s&@abs_builddir@&$ac_abs_builddir&;t t
16531 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16532 s&@INSTALL@&$ac_INSTALL&;t t
16533 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16534 $ac_datarootdir_hack
16536 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16537 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16539 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16540 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16541 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16542 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16544 which seems to be undefined. Please make sure it is defined" >&5
16545 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16546 which seems to be undefined. Please make sure it is defined" >&2;}
16548 rm -f "$ac_tmp/stdin"
16550 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16551 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16553 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16559 if test x"$ac_file" != x-; then
16561 $as_echo "/* $configure_input */" \
16562 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16563 } >"$ac_tmp/config.h" \
16564 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16565 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16567 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16570 mv "$ac_tmp/config.h" "$ac_file" \
16571 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16574 $as_echo "/* $configure_input */" \
16575 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16576 || as_fn_error $? "could not create -" "$LINENO" 5
16578 # Compute "$ac_file"'s index in $config_headers.
16581 for _am_header in $config_headers :; do
16582 case $_am_header in
16583 $_am_arg | $_am_arg:* )
16586 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16589 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16590 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16591 X"$_am_arg" : 'X\(//\)[^/]' \| \
16592 X"$_am_arg" : 'X\(//\)$' \| \
16593 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16594 $as_echo X"$_am_arg" |
16595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16599 /^X\(\/\/\)[^/].*/{
16611 s/.*/./; q'`/stamp-h$_am_stamp_count
16614 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16615 $as_echo "$as_me: executing $ac_file commands" >&6;}
16620 case $ac_file$ac_mode in
16621 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16622 # Older Autoconf quotes --file arguments for eval, but not when files
16623 # are listed without --file. Let's play safe and only enable the eval
16624 # if we detect the quoting.
16625 case $CONFIG_FILES in
16626 *\'*) eval set x "$CONFIG_FILES" ;;
16627 *) set x $CONFIG_FILES ;;
16632 # Strip MF so we end up with the name of the file.
16633 mf=`echo "$mf" | sed -e 's/:.*$//'`
16634 # Check whether this is an Automake generated Makefile or not.
16635 # We used to match only the files named 'Makefile.in', but
16636 # some people rename them; so instead we look at the file content.
16637 # Grep'ing the first line is not enough: some people post-process
16638 # each Makefile.in and add a new line on top of each file to say so.
16639 # Grep'ing the whole file is not good either: AIX grep has a line
16640 # limit of 2048, but all sed's we know have understand at least 4000.
16641 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16642 dirpart=`$as_dirname -- "$mf" ||
16643 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16644 X"$mf" : 'X\(//\)[^/]' \| \
16645 X"$mf" : 'X\(//\)$' \| \
16646 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16652 /^X\(\/\/\)[^/].*/{
16668 # Extract the definition of DEPDIR, am__include, and am__quote
16669 # from the Makefile without running 'make'.
16670 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16671 test -z "$DEPDIR" && continue
16672 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16673 test -z "$am__include" && continue
16674 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16675 # Find all dependency output files, they are included files with
16676 # $(DEPDIR) in their names. We invoke sed twice because it is the
16677 # simplest approach to changing $(DEPDIR) to its actual value in the
16679 for file in `sed -n "
16680 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16681 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16682 # Make sure the directory exists.
16683 test -f "$dirpart/$file" && continue
16684 fdir=`$as_dirname -- "$file" ||
16685 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16686 X"$file" : 'X\(//\)[^/]' \| \
16687 X"$file" : 'X\(//\)$' \| \
16688 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16689 $as_echo X"$file" |
16690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16694 /^X\(\/\/\)[^/].*/{
16707 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16708 # echo "creating $dirpart/$file"
16709 echo '# dummy' > "$dirpart/$file"
16716 # See if we are running on zsh, and set the options which allow our
16717 # commands through without removal of \ escapes.
16718 if test -n "${ZSH_VERSION+set}" ; then
16719 setopt NO_GLOB_SUBST
16722 cfgfile="${ofile}T"
16723 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16726 cat <<_LT_EOF >> "$cfgfile"
16729 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16730 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16731 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16732 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16734 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16735 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16737 # Written by Gordon Matzigkeit, 1996
16739 # This file is part of GNU Libtool.
16741 # GNU Libtool is free software; you can redistribute it and/or
16742 # modify it under the terms of the GNU General Public License as
16743 # published by the Free Software Foundation; either version 2 of
16744 # the License, or (at your option) any later version.
16746 # As a special exception to the GNU General Public License,
16747 # if you distribute this file as part of a program or library that
16748 # is built using GNU Libtool, you may include this file under the
16749 # same distribution terms that you use for the rest of that program.
16751 # GNU Libtool is distributed in the hope that it will be useful,
16752 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16753 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16754 # GNU General Public License for more details.
16756 # You should have received a copy of the GNU General Public License
16757 # along with GNU Libtool; see the file COPYING. If not, a copy
16758 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16759 # obtained by writing to the Free Software Foundation, Inc.,
16760 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16763 # The names of the tagged configurations supported by this script.
16766 # ### BEGIN LIBTOOL CONFIG
16768 # Which release of libtool.m4 was used?
16769 macro_version=$macro_version
16770 macro_revision=$macro_revision
16772 # Assembler program.
16775 # DLL creation program.
16776 DLLTOOL=$lt_DLLTOOL
16778 # Object dumper program.
16779 OBJDUMP=$lt_OBJDUMP
16781 # Whether or not to build static libraries.
16782 build_old_libs=$enable_static
16784 # Whether or not to build shared libraries.
16785 build_libtool_libs=$enable_shared
16787 # What type of objects to build.
16790 # Whether or not to optimize for fast installation.
16791 fast_install=$enable_fast_install
16793 # Shell to use when invoking shell scripts.
16796 # An echo program that protects backslashes.
16799 # The PATH separator for the build system.
16800 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16803 host_alias=$host_alias
16807 # The build system.
16808 build_alias=$build_alias
16812 # A sed program that does not truncate output.
16815 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16816 Xsed="\$SED -e 1s/^X//"
16818 # A grep program that handles long lines.
16824 # A literal string matcher.
16827 # A BSD- or MS-compatible name lister.
16830 # Whether we need soft or hard links.
16833 # What is the maximum length of a command?
16834 max_cmd_len=$max_cmd_len
16836 # Object file suffix (normally "o").
16839 # Executable file suffix (normally "").
16842 # whether the shell understands "unset".
16845 # turn spaces into newlines.
16848 # turn newlines into spaces.
16851 # convert \$build file names to \$host format.
16852 to_host_file_cmd=$lt_cv_to_host_file_cmd
16854 # convert \$build files to toolchain format.
16855 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16857 # Method to check whether dependent libraries are shared objects.
16858 deplibs_check_method=$lt_deplibs_check_method
16860 # Command to use when deplibs_check_method = "file_magic".
16861 file_magic_cmd=$lt_file_magic_cmd
16863 # How to find potential files when deplibs_check_method = "file_magic".
16864 file_magic_glob=$lt_file_magic_glob
16866 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16867 want_nocaseglob=$lt_want_nocaseglob
16869 # Command to associate shared and link libraries.
16870 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16875 # Flags to create an archive.
16876 AR_FLAGS=$lt_AR_FLAGS
16878 # How to feed a file listing to the archiver.
16879 archiver_list_spec=$lt_archiver_list_spec
16881 # A symbol stripping program.
16884 # Commands used to install an old-style archive.
16886 old_postinstall_cmds=$lt_old_postinstall_cmds
16887 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16889 # Whether to use a lock for old archive extraction.
16890 lock_old_archive_extraction=$lock_old_archive_extraction
16895 # LTCC compiler flags.
16896 LTCFLAGS=$lt_CFLAGS
16898 # Take the output of nm and produce a listing of raw symbols and C names.
16899 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16901 # Transform the output of nm in a proper C declaration.
16902 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16904 # Transform the output of nm in a C name address pair.
16905 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16907 # Transform the output of nm in a C name address pair when lib prefix is needed.
16908 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16910 # Specify filename containing input files for \$NM.
16911 nm_file_list_spec=$lt_nm_file_list_spec
16913 # The root where to search for dependent libraries,and in which our libraries should be installed.
16914 lt_sysroot=$lt_sysroot
16916 # The name of the directory that contains temporary libtool files.
16919 # Used to examine libraries when file_magic_cmd begins with "file".
16920 MAGIC_CMD=$MAGIC_CMD
16922 # Must we lock files when doing compilation?
16923 need_locks=$lt_need_locks
16926 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16928 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16929 DSYMUTIL=$lt_DSYMUTIL
16931 # Tool to change global to local symbols on Mac OS X.
16934 # Tool to manipulate fat objects and archives on Mac OS X.
16937 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16940 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16941 OTOOL64=$lt_OTOOL64
16943 # Old archive suffix (normally "a").
16946 # Shared library suffix (normally ".so").
16947 shrext_cmds=$lt_shrext_cmds
16949 # The commands to extract the exported symbol list from a shared archive.
16950 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16952 # Variables whose values should be saved in libtool wrapper scripts and
16953 # restored at link time.
16954 variables_saved_for_relink=$lt_variables_saved_for_relink
16956 # Do we need the "lib" prefix for modules?
16957 need_lib_prefix=$need_lib_prefix
16959 # Do we need a version for libraries?
16960 need_version=$need_version
16962 # Library versioning type.
16963 version_type=$version_type
16965 # Shared library runtime path variable.
16966 runpath_var=$runpath_var
16968 # Shared library path variable.
16969 shlibpath_var=$shlibpath_var
16971 # Is shlibpath searched before the hard-coded library search path?
16972 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16974 # Format of library name prefix.
16975 libname_spec=$lt_libname_spec
16977 # List of archive names. First name is the real one, the rest are links.
16978 # The last name is the one that the linker finds with -lNAME
16979 library_names_spec=$lt_library_names_spec
16981 # The coded name of the library, if different from the real name.
16982 soname_spec=$lt_soname_spec
16984 # Permission mode override for installation of shared libraries.
16985 install_override_mode=$lt_install_override_mode
16987 # Command to use after installation of a shared archive.
16988 postinstall_cmds=$lt_postinstall_cmds
16990 # Command to use after uninstallation of a shared archive.
16991 postuninstall_cmds=$lt_postuninstall_cmds
16993 # Commands used to finish a libtool library installation in a directory.
16994 finish_cmds=$lt_finish_cmds
16996 # As "finish_cmds", except a single script fragment to be evaled but
16998 finish_eval=$lt_finish_eval
17000 # Whether we should hardcode library paths into libraries.
17001 hardcode_into_libs=$hardcode_into_libs
17003 # Compile-time system search path for libraries.
17004 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17006 # Run-time system search path for libraries.
17007 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17009 # Whether dlopen is supported.
17010 dlopen_support=$enable_dlopen
17012 # Whether dlopen of programs is supported.
17013 dlopen_self=$enable_dlopen_self
17015 # Whether dlopen of statically linked programs is supported.
17016 dlopen_self_static=$enable_dlopen_self_static
17018 # Commands to strip libraries.
17019 old_striplib=$lt_old_striplib
17020 striplib=$lt_striplib
17023 # The linker used to build libraries.
17026 # How to create reloadable object files.
17027 reload_flag=$lt_reload_flag
17028 reload_cmds=$lt_reload_cmds
17030 # Commands used to build an old-style archive.
17031 old_archive_cmds=$lt_old_archive_cmds
17033 # A language specific compiler.
17036 # Is the compiler the GNU compiler?
17039 # Compiler flag to turn off builtin functions.
17040 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17042 # Additional compiler flags for building library objects.
17043 pic_flag=$lt_lt_prog_compiler_pic
17045 # How to pass a linker flag through the compiler.
17046 wl=$lt_lt_prog_compiler_wl
17048 # Compiler flag to prevent dynamic linking.
17049 link_static_flag=$lt_lt_prog_compiler_static
17051 # Does compiler simultaneously support -c and -o options?
17052 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17054 # Whether or not to add -lc for building shared libraries.
17055 build_libtool_need_lc=$archive_cmds_need_lc
17057 # Whether or not to disallow shared libs when runtime libs are static.
17058 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17060 # Compiler flag to allow reflexive dlopens.
17061 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17063 # Compiler flag to generate shared objects directly from archives.
17064 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17066 # Whether the compiler copes with passing no objects directly.
17067 compiler_needs_object=$lt_compiler_needs_object
17069 # Create an old-style archive from a shared archive.
17070 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17072 # Create a temporary old-style archive to link instead of a shared archive.
17073 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17075 # Commands used to build a shared archive.
17076 archive_cmds=$lt_archive_cmds
17077 archive_expsym_cmds=$lt_archive_expsym_cmds
17079 # Commands used to build a loadable module if different from building
17080 # a shared archive.
17081 module_cmds=$lt_module_cmds
17082 module_expsym_cmds=$lt_module_expsym_cmds
17084 # Whether we are building with GNU ld or not.
17085 with_gnu_ld=$lt_with_gnu_ld
17087 # Flag that allows shared libraries with undefined symbols to be built.
17088 allow_undefined_flag=$lt_allow_undefined_flag
17090 # Flag that enforces no undefined symbols.
17091 no_undefined_flag=$lt_no_undefined_flag
17093 # Flag to hardcode \$libdir into a binary during linking.
17094 # This must work even if \$libdir does not exist
17095 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17097 # Whether we need a single "-rpath" flag with a separated argument.
17098 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17100 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17101 # DIR into the resulting binary.
17102 hardcode_direct=$hardcode_direct
17104 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17105 # DIR into the resulting binary and the resulting library dependency is
17106 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17107 # library is relocated.
17108 hardcode_direct_absolute=$hardcode_direct_absolute
17110 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17111 # into the resulting binary.
17112 hardcode_minus_L=$hardcode_minus_L
17114 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17115 # into the resulting binary.
17116 hardcode_shlibpath_var=$hardcode_shlibpath_var
17118 # Set to "yes" if building a shared library automatically hardcodes DIR
17119 # into the library and all subsequent libraries and executables linked
17121 hardcode_automatic=$hardcode_automatic
17123 # Set to yes if linker adds runtime paths of dependent libraries
17124 # to runtime path list.
17125 inherit_rpath=$inherit_rpath
17127 # Whether libtool must link a program against all its dependency libraries.
17128 link_all_deplibs=$link_all_deplibs
17130 # Set to "yes" if exported symbols are required.
17131 always_export_symbols=$always_export_symbols
17133 # The commands to list exported symbols.
17134 export_symbols_cmds=$lt_export_symbols_cmds
17136 # Symbols that should not be listed in the preloaded symbols.
17137 exclude_expsyms=$lt_exclude_expsyms
17139 # Symbols that must always be exported.
17140 include_expsyms=$lt_include_expsyms
17142 # Commands necessary for linking programs (against libraries) with templates.
17143 prelink_cmds=$lt_prelink_cmds
17145 # Commands necessary for finishing linking programs.
17146 postlink_cmds=$lt_postlink_cmds
17148 # Specify filename containing input files.
17149 file_list_spec=$lt_file_list_spec
17151 # How to hardcode a shared library path into an executable.
17152 hardcode_action=$hardcode_action
17154 # ### END LIBTOOL CONFIG
17160 cat <<\_LT_EOF >> "$cfgfile"
17161 # AIX sometimes has problems with the GCC collect2 program. For some
17162 # reason, if we set the COLLECT_NAMES environment variable, the problems
17163 # vanish in a puff of smoke.
17164 if test "X${COLLECT_NAMES+set}" != Xset; then
17166 export COLLECT_NAMES
17173 ltmain="$ac_aux_dir/ltmain.sh"
17176 # We use sed instead of cat because bash on DJGPP gets confused if
17177 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17178 # text mode, it properly converts lines to CR/LF. This bash problem
17179 # is reportedly fixed, but why not run on old versions too?
17180 sed '$q' "$ltmain" >> "$cfgfile" \
17181 || (rm -f "$cfgfile"; exit 1)
17183 if test x"$xsi_shell" = xyes; then
17184 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17188 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17189 \ * ) func_dirname_result="${3}" ;;\
17191 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17192 && mv -f "$cfgfile.tmp" "$cfgfile" \
17193 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17194 test 0 -eq $? || _lt_function_replace_fail=:
17197 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17200 \ func_basename_result="${1##*/}"\
17201 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17202 && mv -f "$cfgfile.tmp" "$cfgfile" \
17203 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17204 test 0 -eq $? || _lt_function_replace_fail=:
17207 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17208 func_dirname_and_basename ()\
17211 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17212 \ * ) func_dirname_result="${3}" ;;\
17214 \ func_basename_result="${1##*/}"\
17215 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17216 && mv -f "$cfgfile.tmp" "$cfgfile" \
17217 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17218 test 0 -eq $? || _lt_function_replace_fail=:
17221 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17224 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17225 \ # positional parameters, so assign one to ordinary parameter first.\
17226 \ func_stripname_result=${3}\
17227 \ func_stripname_result=${func_stripname_result#"${1}"}\
17228 \ func_stripname_result=${func_stripname_result%"${2}"}\
17229 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17230 && mv -f "$cfgfile.tmp" "$cfgfile" \
17231 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17232 test 0 -eq $? || _lt_function_replace_fail=:
17235 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17236 func_split_long_opt ()\
17238 \ func_split_long_opt_name=${1%%=*}\
17239 \ func_split_long_opt_arg=${1#*=}\
17240 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17241 && mv -f "$cfgfile.tmp" "$cfgfile" \
17242 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17243 test 0 -eq $? || _lt_function_replace_fail=:
17246 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17247 func_split_short_opt ()\
17249 \ func_split_short_opt_arg=${1#??}\
17250 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17251 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17252 && mv -f "$cfgfile.tmp" "$cfgfile" \
17253 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17254 test 0 -eq $? || _lt_function_replace_fail=:
17257 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17261 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17262 \ *) func_lo2o_result=${1} ;;\
17264 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17265 && mv -f "$cfgfile.tmp" "$cfgfile" \
17266 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17267 test 0 -eq $? || _lt_function_replace_fail=:
17270 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17273 func_xform_result=${1%.*}.lo\
17274 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17275 && mv -f "$cfgfile.tmp" "$cfgfile" \
17276 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17277 test 0 -eq $? || _lt_function_replace_fail=:
17280 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17283 func_arith_result=$(( $* ))\
17284 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17285 && mv -f "$cfgfile.tmp" "$cfgfile" \
17286 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17287 test 0 -eq $? || _lt_function_replace_fail=:
17290 sed -e '/^func_len ()$/,/^} # func_len /c\
17293 func_len_result=${#1}\
17294 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17295 && mv -f "$cfgfile.tmp" "$cfgfile" \
17296 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17297 test 0 -eq $? || _lt_function_replace_fail=:
17301 if test x"$lt_shell_append" = xyes; then
17302 sed -e '/^func_append ()$/,/^} # func_append /c\
17305 eval "${1}+=\\${2}"\
17306 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17307 && mv -f "$cfgfile.tmp" "$cfgfile" \
17308 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17309 test 0 -eq $? || _lt_function_replace_fail=:
17312 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17313 func_append_quoted ()\
17315 \ func_quote_for_eval "${2}"\
17316 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17317 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17318 && mv -f "$cfgfile.tmp" "$cfgfile" \
17319 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17320 test 0 -eq $? || _lt_function_replace_fail=:
17323 # Save a `func_append' function call where possible by direct use of '+='
17324 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17325 && mv -f "$cfgfile.tmp" "$cfgfile" \
17326 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17327 test 0 -eq $? || _lt_function_replace_fail=:
17329 # Save a `func_append' function call even when '+=' is not available
17330 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17331 && mv -f "$cfgfile.tmp" "$cfgfile" \
17332 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17333 test 0 -eq $? || _lt_function_replace_fail=:
17336 if test x"$_lt_function_replace_fail" = x":"; then
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17338 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17342 mv -f "$cfgfile" "$ofile" ||
17343 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17354 ac_clean_files=$ac_clean_files_save
17356 test $ac_write_fail = 0 ||
17357 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17360 # configure is writing to config.log, and then calls config.status.
17361 # config.status does its own redirection, appending to config.log.
17362 # Unfortunately, on DOS this fails, as config.log is still kept open
17363 # by configure, so config.status won't be able to write to it; its
17364 # output is simply discarded. So we exec the FD to /dev/null,
17365 # effectively closing config.log, so it can be properly (re)opened and
17366 # appended to by config.status. When coming back to configure, we
17367 # need to make the FD available again.
17368 if test "$no_create" != yes; then
17370 ac_config_status_args=
17371 test "$silent" = yes &&
17372 ac_config_status_args="$ac_config_status_args --quiet"
17374 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17376 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17377 # would make configure fail if this is the last instruction.
17378 $ac_cs_success || as_fn_exit 1
17380 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17382 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
17389 Using python interpreter: $PYTHON
17390 cairo support: $enable_cairo
17391 thread support: $enable_thread
17392 code coverage support: $enable_code_coverage
17397 Using python interpreter: $PYTHON
17398 cairo support: $enable_cairo
17399 thread support: $enable_thread
17400 code coverage support: $enable_code_coverage